Commit | Line | Data |
---|---|---|
4445e8f5 AB |
1 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
2 | ||
3 | * riscv-tdep.c (struct riscv_register_feature): Fix whitespace | |
4 | errors. | |
5 | ||
767a879e AB |
6 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
7 | ||
8 | * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from | |
9 | riscv-opc.h. | |
10 | (class riscv_pending_register_alias): New class. | |
11 | (riscv_check_tdesc_feature): Take vector of pending aliases and | |
12 | populate it as appropriate. | |
13 | (riscv_setup_register_aliases): Delete. | |
14 | (riscv_gdbarch_init): Create vector of pending aliases and pass it | |
15 | to riscv_check_tdesc_feature in all cases. Use the vector to | |
16 | create the register aliases. | |
17 | ||
bb6e55f3 RO |
18 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
19 | ||
20 | * sol2-tdep.c (sol2_static_transform_name): Remove. | |
21 | (sol2_init_abi): Don't register it. | |
22 | * gdbarch.sh (static_transform_name): Remove. | |
23 | * gdbarch.c, gdbarch.h: Regenerate. | |
24 | ||
25 | * dbxread.c (read_dbx_symtab) <'S'>: Remove call to | |
26 | gdbarch_static_transform_name. | |
27 | * mdebugread.c (parse_partial_symbols) <'S'>: Likewise. | |
28 | * stabsread.c (define_symbol) <'X'>: Remove. | |
29 | (define_symbol) <'S'>: Remove gdbarch_static_transform_name | |
30 | handling. | |
31 | <'V'>: Likewise. | |
32 | * xcoffread.c (scan_xcoff_symtab): Remove gdbarch. | |
33 | <'S'>: Remove call to gdbarch_static_transform_name. | |
34 | ||
c6d36836 RO |
35 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
36 | ||
37 | * procfs.c (procfs_pre_trace): New function. | |
38 | (procfs_target::create_inferior): Pass it to fork_inferior. | |
39 | ||
a7e6196b RO |
40 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
41 | ||
42 | * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove | |
43 | sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o. | |
44 | <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o, | |
45 | sol2-tdep.o, sparc-sol2-tdep.o. | |
46 | * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static. | |
47 | * sparc-tdep.h (sparc32_sol2_init_abi): Remove. | |
48 | * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static. | |
49 | * sparc64-tdep.h (sparc64_sol2_init_abi): Remove. | |
50 | ||
d412e696 RO |
51 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
52 | ||
53 | * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove. | |
54 | (amd64_sol2_init_abi): Use sol2_sigtramp_p. | |
55 | Call sol2_init_abi. | |
56 | Remove calls to set_gdbarch_skip_solib_resolver, | |
57 | set_gdbarch_core_pid_to_str. | |
58 | * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove. | |
59 | (i386_sol2_static_transform_name): Remove. | |
60 | (i386_sol2_init_abi): Call sol2_init_abi. | |
61 | Remove calls to set_gdbarch_sofun_address_maybe_missing, | |
62 | set_gdbarch_static_transform_name, | |
63 | set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str. | |
64 | Use sol2_sigtramp_p. | |
65 | * sol2-tdep.c (sol2_pc_in_sigtramp): New function. | |
66 | (sol2_sigtramp_p): New function. | |
67 | (sol2_static_transform_name): New function. | |
68 | (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static. | |
69 | (sol2_init_abi): New function. | |
70 | * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare. | |
71 | (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove. | |
72 | * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove. | |
73 | (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p. | |
74 | (sparc_sol2_static_transform_name): Remove. | |
75 | (sparc32_sol2_init_abi): Call sol2_init_abi. | |
76 | Remove calls to set_gdbarch_sofun_address_maybe_missing, | |
77 | set_gdbarch_static_transform_name, | |
78 | set_gdbarch_skip_solib_resolver, | |
79 | set_gdbarch_core_pid_to_str. | |
80 | * sparc-tdep.h (sparc_sol2_pc_in_sigtramp) | |
81 | (sparc_sol2_static_transform_name): Remove | |
82 | * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just | |
83 | call sol2_sigtramp_p. | |
84 | (sparc64_sol2_init_abi): Call sol2_init_abi. | |
85 | Remove calls to set_gdbarch_sofun_address_maybe_missing, | |
86 | set_gdbarch_static_transform_name, | |
87 | set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str. | |
88 | ||
a8654e7d PW |
89 | 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
90 | ||
91 | * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM. | |
92 | * exec.c (validate_exec_file): If from_tty, set both | |
93 | SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM. | |
94 | * symfile.c (symbol_file_add_with_addrs): if always_confirm | |
95 | and from_tty, unconditionally ask a confirmation. | |
96 | ||
caa7fd04 AB |
97 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
98 | ||
99 | * target-descriptions.c (tdesc_architecture_name): Protect against | |
100 | NULL pointer dereference. | |
101 | (maint_print_xml_tdesc_cmd): New function. | |
102 | (_initialize_target_descriptions): Register new 'maint print | |
103 | xml-tdesc' command and give it the filename completer. | |
104 | * NEWS: Mention new 'maint print xml-tdesc' command. | |
105 | ||
fbf42f4e AB |
106 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
107 | ||
108 | * target-descriptions.c (class tdesc_compatible_info): New class. | |
109 | (struct target_desc): Change type of compatible vector. | |
110 | (tdesc_compatible_p): Update for change in type of | |
111 | target_desc::compatible. | |
112 | (tdesc_compatible_info_list): New function. | |
113 | (tdesc_compatible_info_arch_name): New function. | |
114 | (tdesc_add_compatible): Update for change in type of | |
115 | target_desc::compatible. | |
116 | (print_c_tdesc::visit_pre): Likewise. | |
117 | ||
20821f4e AB |
118 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
119 | ||
120 | * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change | |
121 | whitespace to underscore. | |
122 | (maint_print_c_tdesc_cmd): Use fake filename for target | |
123 | descriptions that came from the target. | |
124 | (_initialize_target_descriptions): Add filename command completion | |
125 | for 'maint print c-tdesc'. | |
126 | ||
1fb5ee62 SM |
127 | 2020-06-23 Simon Marchi <simon.marchi@efficios.com> |
128 | ||
129 | * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty | |
130 | lines. | |
131 | ||
fc3ecb3e SM |
132 | 2020-06-23 Simon Marchi <simon.marchi@efficios.com> |
133 | ||
134 | * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty | |
135 | lines. | |
136 | (dwarf2_find_location_expression): Likewise. | |
137 | (call_site_parameter_matches): Likewise. | |
138 | (dwarf2_compile_expr_to_ax): Likewise. | |
139 | (disassemble_dwarf_expression): Likewise. | |
140 | (loclist_describe_location): Likewise. | |
141 | ||
236ef034 PA |
142 | 2020-06-23 Pedro Alves <palves@redhat.com> |
143 | ||
144 | * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or | |
145 | progspace-and-thread.h. Include scoped-mock-context.h instead. | |
146 | (register_to_value_test): Use scoped_mock_context. | |
147 | * regcache.c: Include "scoped-mock-context.h". | |
148 | (cooked_read_test): Don't error out if a target is already pushed. | |
149 | Use scoped_mock_context. Adjust. | |
150 | * scoped-mock-context.h: New file. | |
151 | ||
39e7ecca AB |
152 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
153 | ||
154 | * ada-lang.c (ada_language_data): Delete la_is_string_type_p | |
155 | initializer. | |
156 | (ada_language::is_string_type_p): New member function. | |
157 | * c-lang.c (c_language_data): Delete la_is_string_type_p | |
158 | initializer. | |
159 | (cplus_language_data): Likewise. | |
160 | (asm_language_data): Likewise. | |
161 | (minimal_language_data): Likewise. | |
162 | * d-lang.c (d_language_data): Likewise. | |
163 | * f-lang.c (f_is_string_type_p): Delete function, implementation | |
164 | moved to f_language::is_string_type_p. | |
165 | (f_language_data): Delete la_is_string_type_p initializer. | |
166 | (f_language::is_string_type_p): New member function, | |
167 | implementation from f_is_string_type_p. | |
168 | * go-lang.c (go_is_string_type_p): Delete function, implementation | |
169 | moved to go_language::is_string_type_p. | |
170 | (go_language_data): Delete la_is_string_type_p initializer. | |
171 | (go_language::is_string_type_p): New member function, | |
172 | implementation from go_is_string_type_p. | |
173 | * language.c (language_defn::is_string_type_p): Define new member | |
174 | function. | |
175 | (default_is_string_type_p): Make static, add comment copied from | |
176 | header file. | |
177 | (unknown_language_data): Delete la_is_string_type_p initializer. | |
178 | (unknown_language::is_string_type_p): New member function. | |
179 | (auto_language_data): Delete la_is_string_type_p initializer. | |
180 | (auto_language::is_string_type_p): New member function. | |
181 | * language.h (language_data): Delete la_is_string_type_p field. | |
182 | (language_defn::is_string_type_p): Declare new function. | |
183 | (default_is_string_type_p): Delete desclaration, move comment to | |
184 | definition. | |
185 | * m2-lang.c (m2_is_string_type_p): Delete function, implementation | |
186 | moved to m2_language::is_string_type_p. | |
187 | (m2_language_data): Delete la_is_string_type_p initializer. | |
188 | (m2_language::is_string_type_p): New member function, | |
189 | implementation from m2_is_string_type_p. | |
190 | * objc-lang.c (objc_language_data): Delete la_is_string_type_p | |
191 | initializer. | |
192 | * opencl-lang.c (opencl_language_data): Likewise. | |
193 | * p-lang.c (pascal_is_string_type_p): Delete function, | |
194 | implementation moved to pascal_language::is_string_type_p. | |
195 | (pascal_language_data): Delete la_is_string_type_p initializer. | |
196 | (pascal_language::is_string_type_p): New member function, | |
197 | implementation from pascal_is_string_type_p. | |
198 | * rust-lang.c (rust_is_string_type_p): Delete function, | |
199 | implementation moved to rust_language::is_string_type_p. | |
200 | (rust_language_data): Delete la_is_string_type_p initializer. | |
201 | (rust_language::is_string_type_p): New member function, | |
202 | implementation from rust_is_string_type_p. | |
203 | * valprint.c (val_print_scalar_or_string_type_p): Update call to | |
204 | is_string_type_p. | |
205 | ||
4ffc13fb AB |
206 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
207 | ||
208 | * ada-lang.c (ada_language_data): Delete la_print_typedef | |
209 | initializer. | |
210 | (ada_language::print_typedef): New member function. | |
211 | * c-lang.c (c_language_data): Delete la_print_typedef initializer. | |
212 | (cplus_language_data): Likewise. | |
213 | (asm_language_data): Likewise. | |
214 | (minimal_language_data): Likewise. | |
215 | * d-lang.c (d_language_data): Likewise. | |
216 | * f-lang.c (f_language_data): Likewise. | |
217 | (f_language::print_typedef): New member function. | |
218 | * go-lang.c (go_language_data): Delete la_print_typedef | |
219 | initializer. | |
220 | * language.c (language_defn::print_typedef): Define member | |
221 | function. | |
222 | (unknown_language_data): Delete la_print_typedef initializer. | |
223 | (unknown_language::print_typedef): New member function. | |
224 | (auto_language_data): Delete la_print_typedef initializer. | |
225 | (auto_language::print_typedef): New member function. | |
226 | * language.h (language_data): Delete la_print_typedef field. | |
227 | (language_defn::print_typedef): Declare new member function. | |
228 | (LA_PRINT_TYPEDEF): Update call to print_typedef. | |
229 | (default_print_typedef): Delete declaration. | |
230 | * m2-lang.c (m2_language_data): Delete la_print_typedef | |
231 | initializer. | |
232 | (m2_language::print_typedef): New member function. | |
233 | * objc-lang.c (objc_language_data): Delete la_print_typedef | |
234 | initializer. | |
235 | * opencl-lang.c (opencl_language_data): Likewise. | |
236 | * p-lang.c (pascal_language_data): Likewise. | |
237 | (pascal_language::print_typedef): New member function. | |
238 | * rust-lang.c (rust_print_typedef): Delete function, | |
239 | implementation moved to rust_language::print_typedef. | |
240 | (rust_language): Delete la_print_typedef initializer. | |
241 | (rust_language::print_typedef): New member function, | |
242 | implementation from rust_print_typedef. | |
243 | * typeprint.c (default_print_typedef): Delete. | |
244 | ||
d711ee67 AB |
245 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
246 | ||
247 | * ada-lang.c (ada_language_data): Delete la_printstr initializer. | |
248 | (ada_language::printstr): New member function. | |
249 | * c-lang.c (c_language_data): Delete la_printstr initializer. | |
250 | (cplus_language_data): Likewise. | |
251 | (asm_language_data): Likewise. | |
252 | (minimal_language_data): Likewise. | |
253 | * d-lang.c (d_language_data): Likewise. | |
254 | * f-lang.c (f_printstr): Rename to f_language::printstr. | |
255 | (f_language_data): Delete la_printstr initializer. | |
256 | (f_language::printstr): New member function, implementation from | |
257 | f_printstr. | |
258 | * go-lang.c (go_language_data): Delete la_printstr initializer. | |
259 | * language.c (language_defn::printstr): Define new member | |
260 | function. | |
261 | (unk_lang_printstr): Delete. | |
262 | (unknown_language_data): Delete la_printstr initializer. | |
263 | (unknown_language::printstr): New member function. | |
264 | (auto_language_data): Delete la_printstr initializer. | |
265 | (auto_language::printstr): New member function. | |
266 | * language.h (language_data): Delete la_printstr field. | |
267 | (language_defn::printstr): Declare new member function. | |
268 | (LA_PRINT_STRING): Update call to printstr. | |
269 | * m2-lang.c (m2_printstr): Rename to m2_language::printstr. | |
270 | (m2_language_data): Delete la_printstr initializer. | |
271 | (m2_language::printstr): New member function, implementation from | |
272 | m2_printstr. | |
273 | * objc-lang.c (objc_language_data): Delete la_printstr | |
274 | initializer. | |
275 | * opencl-lang.c (opencl_language_data): Likewise. | |
276 | * p-lang.c (pascal_printstr): Rename to pascal_language::printstr. | |
277 | (pascal_language_data): Delete la_printstr initializer. | |
278 | (pascal_language::printstr): New member function, implementation | |
279 | from pascal_printstr. | |
280 | * p-lang.h (pascal_printstr): Delete declaration. | |
281 | * rust-lang.c (rust_printstr): Update header comment. | |
282 | (rust_language_data): Delete la_printstr initializer. | |
283 | (rust_language::printstr): New member function. | |
284 | ||
52b50f2c AB |
285 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
286 | ||
287 | * ada-lang.c (ada_language_data): Delete la_printchar initializer. | |
288 | (ada_language::printchar): New member function. | |
289 | * c-lang.c (c_language_data): Delete la_printchar initializer. | |
290 | (cplus_language_data): Likewise. | |
291 | (asm_language_data): Likewise. | |
292 | (minimal_language_data): Likewise. | |
293 | * d-lang.c (d_language_data): Likewise. | |
294 | * f-lang.c (f_printchar): Rename to f_language::printchar. | |
295 | (f_language_data): Delete la_printchar initializer. | |
296 | (f_language::printchar): New member function, implementation from | |
297 | f_printchar. | |
298 | * go-lang.c (go_language_data): Delete la_printchar initializer. | |
299 | * language.c (unk_lang_printchar): Delete. | |
300 | (language_defn::printchar): Define new member function. | |
301 | (unknown_language_data): Delete la_printchar initializer. | |
302 | (unknown_language::printchar): New member function. | |
303 | (auto_language_data): Delete la_printchar initializer. | |
304 | (auto_language::printchar): New member function. | |
305 | * language.h (language_data): Delete la_printchar field. | |
306 | (language_defn::printchar): Declare new member function. | |
307 | (LA_PRINT_CHAR): Update call to printchar. | |
308 | * m2-lang.c (m2_language_data): Delete la_printchar initializer. | |
309 | (m2_language::printchar): New member function. | |
310 | * objc-lang.c (objc_language_data): Delete la_printchar | |
311 | initializer. | |
312 | * opencl-lang.c (opencl_language_data): Likewise. | |
313 | * p-lang.c (pascal_language_data): Delete la_printchar | |
314 | initializer. | |
315 | (pascal_language::printchar): New member function. | |
316 | * rust-lang.c (rust_printchar): Rename to | |
317 | rust_language::printchar. | |
318 | (rust_language_data): Delete la_printchar initializer. | |
319 | (rust_language::printchar): New member function, implementation | |
320 | from rust_printchar. | |
321 | ||
ec8cec5b AB |
322 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
323 | ||
324 | * ada-lang.c (emit_char): Renamed to ada_language::emitchar. | |
325 | (ada_language_data): Delete la_emitchar initializer. | |
326 | (ada_language::emitchar): New member function, implementation from | |
327 | emit_char. | |
328 | * c-lang.c (c_language_data): Delete la_emitchar initializer. | |
329 | (cplus_language_data): Likewise. | |
330 | (asm_language_data): Likewise. | |
331 | (minimal_language_data): Likewise. | |
332 | * d-lang.c (d_language_data): Likewise. | |
333 | * f-lang.c (f_emit_char): Rename to f_language::emitchar. | |
334 | (f_language_data): Delete la_emitchar initializer. | |
335 | (f_language::emitchar): New member function, implementation from | |
336 | f_emit_char. | |
337 | * go-lang.c (go_language_data): Delete la_emitchar initializer. | |
338 | * language.c (unk_lang_emit_char): Delete. | |
339 | (language_defn::emitchar): New member function definition. | |
340 | (unknown_language_data): Delete la_emitchar initializer. | |
341 | (unknown_language::emitchar): New member function. | |
342 | (auto_language_data): Delete la_emitchar initializer. | |
343 | (auto_language::emitchar): New member function. | |
344 | * language.h (language_data): Delete la_emitchar field. | |
345 | (language_defn::emitchar): New member field declaration. | |
346 | (LA_EMIT_CHAR): Update call to emitchar. | |
347 | * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar. | |
348 | (m2_language_data): Delete la_emitchar initializer. | |
349 | (m2_language::emitchar): New member function, implementation from | |
350 | m2_emit_char. | |
351 | * objc-lang.c (objc_language_data): Delete la_emitchar | |
352 | initializer. | |
353 | * opencl-lang.c (opencl_language_data): Likewise. | |
354 | * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar. | |
355 | (pascal_language_data): Delete la_emitchar initializer. | |
356 | (pascal_language::emitchar): New member function, implementation | |
357 | from pascal_emit_char. | |
358 | * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar. | |
359 | (rust_language_data): Delete la_emitchar initializer. | |
360 | (rust_language::emitchar): New member function, implementation | |
361 | from rust_emitchar. | |
362 | ||
1bf9c363 AB |
363 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
364 | ||
365 | * ada-lang.c (resolve): Rename to ada_language::post_parser. | |
366 | (ada_language_data): Delete la_post_parser initializer. | |
367 | (ada_language::post_parser): New member function. | |
368 | * c-lang.c (c_language_data): Delete la_post_parser initializer. | |
369 | (cplus_language_data): Likewise. | |
370 | (asm_language_data): Likewise. | |
371 | (minimal_language_data): Likewise. | |
372 | * d-lang.c (d_language_data): Likewise. | |
373 | * f-lang.c (f_language_data): Likewise. | |
374 | * go-lang.c (go_language_data): Likewise. | |
375 | * language.c (unknown_language_data): Likewise. | |
376 | (auto_language_data): Likewise. | |
377 | * language.h (language_data): Delete la_post_parser field. | |
378 | (language_defn::post_parser): New member function. | |
379 | * m2-lang.c (m2_language_data): Delete la_post_parser initializer. | |
380 | * objc-lang.c (objc_language_data): Likewise. | |
381 | * opencl-lang.c (opencl_language_data): Likewise. | |
382 | * p-lang.c (pascal_language_data): Likewise. | |
383 | * parse.c (parse_exp_in_context): Update call to post_parser. | |
384 | (null_post_parser): Delete definition. | |
385 | * parser-defs.h (null_post_parser): Delete declaration. | |
386 | * rust-lang.c (rust_language_data): Delete la_post_parser | |
387 | initializer. | |
388 | ||
87afa652 AB |
389 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
390 | ||
391 | * ada-lang.c (parse): Rename to ada_language::parser. | |
392 | (ada_language_data): Delete la_parser initializer. | |
393 | (ada_language::parser): New member function, implementation from | |
394 | parse. | |
395 | * c-lang.c (c_language_data): Delete la_parser initializer. | |
396 | (cplus_language_data): Likewise. | |
397 | (asm_language_data): Likewise. | |
398 | (minimal_language_data): Likewise. | |
399 | * d-lang.c (d_language_data): Likewise. | |
400 | (d_language::parser): New member function. | |
401 | * f-lang.c (f_language_data): Delete la_parser initializer. | |
402 | (f_language::parser): New member function. | |
403 | * go-lang.c (go_language_data): Delete la_parser initializer. | |
404 | (go_language::parser): New member function. | |
405 | * language.c (unk_lang_parser): Delete. | |
406 | (language_defn::parser): Define new member function. | |
407 | (unknown_language_data): Delete la_parser initializer. | |
408 | (unknown_language::parser): New member function. | |
409 | (auto_language_data): Delete la_parser initializer. | |
410 | (auto_language::parser): New member function. | |
411 | * language.h (language_data): Delete la_parser field. | |
412 | (language_defn::parser): Declare new member function. | |
413 | * m2-lang.c (m2_language_data): Delete la_parser initializer. | |
414 | (m2_language::parser): New member function. | |
415 | * objc-lang.c (objc_language_data): Delete la_parser initializer. | |
416 | * opencl-lang.c (opencl_language_data): Likewise. | |
417 | * p-lang.c (pascal_language_data): Likewise. | |
418 | (pascal_language::parser): New member function. | |
419 | * parse.c (parse_exp_in_context): Update call to parser. | |
420 | * rust-lang.c (rust_language_data): Delete la_parser initializer. | |
421 | (rust_language::parser): New member function. | |
422 | ||
37825800 AB |
423 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
424 | ||
425 | * top.c (print_gdb_configuration): Print --with-python-libdir | |
426 | configuration value. | |
427 | ||
5b860c93 PW |
428 | 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
429 | ||
430 | * NEWS: Mention change to the alias command. | |
431 | ||
cf00cd6f PW |
432 | 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
433 | ||
434 | * cli/cli-cmds.c (lookup_cmd_for_default_args) | |
435 | (alias_command_completer) | |
436 | (make_alias_options_def_group): New functions. | |
437 | (alias_opts, alias_option_defs): New struct and array. | |
438 | (alias_usage_error): Update usage. | |
439 | (alias_command): Handles optional DEFAULT-ARGS... arguments. | |
440 | Use option framework. | |
441 | (_initialize_cli_cmds): Update alias command help. | |
442 | Update aliases command help. | |
443 | (show_user): | |
444 | Add NULL for new default_args lookup_cmd argument. | |
445 | (valid_command_p): Rename to validate_aliased_command. | |
446 | Add NULL for new default_args lookup_cmd argument. Verify that the | |
447 | aliased_command has no default args. | |
448 | * cli/cli-decode.c (help_cmd): Show aliases definitions. | |
449 | (lookup_cmd_1, lookup_cmd): New argument default_args. | |
450 | (add_alias_cmd): | |
451 | Add NULL for new default_args lookup_cmd argument. | |
452 | (print_help_for_command): Show default args under the layout | |
453 | alias some_alias = some_aliased_cmd some_alias_default_arg. | |
454 | * cli/cli-decode.h (struct cmd_list_element): New member default_args. | |
455 | xfree default_args in destructor. | |
456 | * cli/cli-script.c (process_next_line, do_define_command): | |
457 | Add NULL for new default_args lookup_cmd argument. | |
458 | * command.h: Declare new default_args argument in lookup_cmd | |
459 | and lookup_cmd_1. | |
460 | * completer.c (complete_line_internal_1): | |
461 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. | |
462 | * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise. | |
463 | * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p): | |
464 | Likewise. | |
465 | * infcmd.c (_initialize_infcmd): Likewise. | |
466 | * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise. | |
467 | * python/py-cmd.c (gdbpy_parse_command_name): Likewise. | |
468 | * python/py-param.c (add_setshow_generic): Likewise. | |
469 | * remote.c (_initialize_remote): Likewise. | |
470 | * top.c (execute_command): Prepend default_args if command has some. | |
471 | (set_verbose): | |
472 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. | |
473 | * tracepoint.c (validate_actionline, encode_actions_1): | |
474 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. | |
475 | ||
bd920864 TBA |
476 | 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
477 | ||
478 | * jit.c (jit_read_descriptor): Use bool as the return type. | |
479 | (jit_breakpoint_re_set_internal): Use bool as the return type. | |
480 | Invert the return value logic; return true if the jit breakpoint | |
481 | has been successfully initialized. | |
482 | (jit_inferior_init): Update the call to | |
483 | jit_breakpoint_re_set_internal. | |
484 | ||
f8098322 PA |
485 | 2020-06-22 Pedro Alves <palves@redhat.com> |
486 | ||
487 | PR gdb/25939 | |
488 | * procfs.c (procfs_target::wait): Don't reference inferior_ptid. | |
489 | Use the current inferior instead. Don't return | |
490 | TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and | |
491 | wait again. | |
492 | * sol-thread.c (sol_thread_target::wait): Don't reference | |
493 | inferior_ptid. | |
494 | (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs) | |
495 | (sol_update_thread_list_callback): Use the current inferior's pid | |
496 | instead of inferior_ptid. | |
497 | ||
196535a6 RO |
498 | 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
499 | ||
500 | * procfs.c: Cleanup many comments. | |
501 | ||
502 | (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG) | |
503 | (AFTER_WATCHFLAG): Replace by value. | |
504 | ||
505 | (MAIN_PROC_NAME_FORMAT): Inline ... | |
506 | (create_procinfo): ... here. | |
507 | ||
508 | (procfs_debug_inferior): Remove SYS_exec handling. | |
509 | (syscall_is_exec): Likewise. | |
510 | (procfs_set_exec_trap): Likewise. | |
511 | ||
512 | (syscall_is_lwp_exit): Inline in callers. | |
513 | (syscall_is_exit): Likewise. | |
514 | (syscall_is_exec): Likewise. | |
515 | (syscall_is_lwp_create): Likewise. | |
516 | ||
517 | (invalidate_cache): Remove #if 0 code. | |
518 | ||
519 | (make_signal_thread_runnable): Remove. | |
520 | (procfs_target::resume): Remove #if 0 code. | |
521 | ||
cf6f3e86 RO |
522 | 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
523 | ||
524 | PR gdb/25939 | |
525 | * procfs.c (procfs_target::procfs_init_inferior): Move push_target | |
526 | call ... | |
527 | (procfs_target::create_inferior): ... here. | |
528 | ||
48e9cc84 PW |
529 | 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
530 | ||
531 | * exec.c (validate_exec_file): Ensure the build-id is up to | |
532 | date by calling reopen_exec_file (that checks file timestamp | |
533 | to decide to re-read the file). | |
534 | ||
3922b302 PA |
535 | 2020-06-18 Pedro Alves <palves@redhat.com> |
536 | ||
537 | PR gdb/25412 | |
538 | * gdbthread.h (delete_thread, delete_thread_silent) | |
539 | (find_thread_ptid): Update comments. | |
540 | * thread.c (current_thread_): New global. | |
541 | (is_current_thread): Move higher, and reimplement. | |
542 | (inferior_thread): Reimplement. | |
543 | (set_thread_exited): Use bool. Add assertions. | |
544 | (add_thread_silent): Simplify thread-reuse handling by always | |
545 | calling delete_thread. | |
546 | (delete_thread): Remove intro comment. | |
547 | (find_thread_ptid): Skip exited threads. | |
548 | (switch_to_thread_no_regs): Write to current_thread_. | |
549 | (switch_to_no_thread): Check CURRENT_THREAD_ instead of | |
550 | INFERIOR_PTID. Clear current_thread_. | |
551 | ||
6dbdab44 PA |
552 | 2020-06-18 Pedro Alves <palves@redhat.com> |
553 | ||
554 | * aix-thread.c (pd_update): Use switch_to_thread. | |
555 | ||
2da4b788 PA |
556 | 2020-06-18 Pedro Alves <palves@redhat.com> |
557 | ||
558 | * ravenscar-thread.c (ravenscar_thread_target): Update. | |
559 | (ravenscar_thread_target::update_inferior_ptid): Rename to ... | |
560 | (ravenscar_thread_target::add_active_thread): ... this. Don't | |
561 | set m_base_ptid here. Update to avoid referencing inferior_ptid. | |
562 | (ravenscar_thread_target::wait): Don't write to inferior_ptid. | |
563 | ||
50838d1b PA |
564 | 2020-06-18 Pedro Alves <palves@redhat.com> |
565 | ||
566 | * nat/windows-nat.c (current_windows_thread): Remove. | |
567 | * nat/windows-nat.h (current_windows_thread): Remove. | |
568 | * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint): | |
569 | Adjust. | |
570 | (display_selectors): Adjust to fetch the current | |
571 | windows_thread_info based on inferior_ptid. | |
572 | (fake_create_process): No longer write to current_windows_thread. | |
573 | (windows_nat_target::get_windows_debug_event): | |
574 | Don't set inferior_ptid or current_windows_thread. | |
575 | (windows_nat_target::wait): Adjust to not rely on | |
576 | current_windows_thread. | |
577 | (do_initial_windows_stuff): Now a method of windows_nat_target. | |
578 | Switch to the last_ptid thread. | |
579 | (windows_nat_target::attach): Adjust. | |
580 | (windows_nat_target::detach): Use switch_to_no_thread instead of | |
581 | writing to inferior_ptid directly. | |
582 | (windows_nat_target::create_inferior): Adjust. | |
583 | ||
31ce04e9 PA |
584 | 2020-06-18 Pedro Alves <palves@redhat.com> |
585 | ||
586 | * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid. | |
587 | ||
1ee1a363 PA |
588 | 2020-06-18 Pedro Alves <palves@redhat.com> |
589 | ||
590 | * go32-nat.c (go32_nat_target::create_inferior): Switch to thread | |
591 | after creating it, instead of writing to inferior_ptid. Don't | |
592 | write to inferior_ptid. | |
593 | ||
6d350754 PA |
594 | 2020-06-18 Pedro Alves <palves@redhat.com> |
595 | ||
596 | * fork-child.c (postfork_hook): Don't write to inferior_ptid. | |
597 | ||
5d971d48 PA |
598 | 2020-06-18 Pedro Alves <palves@redhat.com> |
599 | ||
600 | * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding | |
601 | it, instead of writing to inferior_ptid. | |
602 | ||
86e57d1b PA |
603 | 2020-06-18 Pedro Alves <palves@redhat.com> |
604 | ||
605 | * btrace.c (btrace_fetch): Use switch_to_thread instead of writing | |
606 | to inferior_ptid. | |
607 | ||
f2e1c129 PA |
608 | 2020-06-18 Pedro Alves <palves@redhat.com> |
609 | ||
610 | * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread | |
611 | instead of writing to inferior_ptid directly. | |
612 | ||
60db1b85 PA |
613 | 2020-06-18 Pedro Alves <palves@redhat.com> |
614 | ||
615 | * corelow.c (core_target::close): Use switch_to_no_thread instead | |
616 | of writing to inferior_ptid directly. | |
617 | (add_to_thread_list, core_target_open): Use switch_to_thread | |
618 | instead of writing to inferior_ptid directly. | |
619 | ||
fe7d6a8d PA |
620 | 2020-06-18 Pedro Alves <palves@redhat.com> |
621 | ||
622 | * darwin-nat.c (darwin_nat_target::decode_message): Don't write to | |
623 | inferior_ptid. | |
624 | (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid | |
625 | inferior_ptid. | |
626 | (darwin_attach_pid): Use switch_to_no_thread instead of writing to | |
627 | inferior_ptid directly. | |
628 | (darwin_nat_target::init_thread_list): Switch to thread, instead | |
629 | of writing to inferior_ptid. | |
630 | (darwin_nat_target::attach): Don't write to inferior_ptid. | |
631 | (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid. | |
632 | ||
975f8708 PA |
633 | 2020-06-18 Pedro Alves <palves@redhat.com> |
634 | ||
635 | * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added | |
636 | thread. | |
637 | (gnu_nat_target::attach): Don't write to inferior_ptid directly. | |
638 | Instead use switch_to_thread. | |
639 | (gnu_nat_target::detach): Use switch_to_no_thread | |
640 | instead of writing to inferior_ptid directly. Used passed-in | |
641 | inferior instead of looking up the inferior by pid. | |
642 | ||
1a204730 PA |
643 | 2020-06-18 Pedro Alves <palves@redhat.com> |
644 | ||
645 | * go32-nat.c (go32_nat_target::create_inferior): Don't write to | |
646 | inferior_ptid. | |
647 | ||
ebe84f23 PA |
648 | 2020-06-18 Pedro Alves <palves@redhat.com> |
649 | ||
650 | * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid | |
651 | inferior_ptid. | |
652 | (nto_procfs_target::attach): Avoid inferior_ptid. Switch to | |
653 | thread. | |
654 | (nto_procfs_target::detach): Avoid referencing | |
655 | inferior_ptid. Use switch_to_no_thread instead of writing to | |
656 | inferior_ptid directly. | |
657 | (nto_procfs_target::mourn_inferior): Use switch_to_no_thread | |
658 | instead of writing to inferior_ptid directly. | |
659 | (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch | |
660 | to thread. | |
661 | ||
191f02e5 PA |
662 | 2020-06-18 Pedro Alves <palves@redhat.com> |
663 | ||
664 | * remote-sim.c (gdbsim_target::create_inferior): Switch to thread | |
665 | after creating it, instead of writing to inferior_ptid. | |
666 | (gdbsim_target_open): Use switch_to_no_thread instead of writing | |
667 | to inferior_ptid directly. | |
668 | (gdbsim_target::wait): Don't write to inferior_ptid. | |
669 | ||
0ac55310 PA |
670 | 2020-06-18 Pedro Alves <palves@redhat.com> |
671 | ||
672 | * remote.c (remote_target::remote_notice_new_inferior): Use | |
673 | switch_to_thread instead of writing to inferior_ptid directly. | |
674 | (remote_target::add_current_inferior_and_thread): Use | |
675 | switch_to_no_thread instead of writing to inferior_ptid directly. | |
676 | (extended_remote_target::attach): Use switch_to_inferior_no_thread | |
677 | and switch_to_thread instead of using set_current_inferior or | |
678 | writing to inferior_ptid directly. | |
679 | ||
5233f39b PA |
680 | 2020-06-18 Pedro Alves <palves@redhat.com> |
681 | ||
682 | * tracectf.c (ctf_target_open): Switch to added thread instead of | |
683 | writing to inferior_ptid directly. | |
684 | (ctf_target::close): Use switch_to_no_thread instead of writing to | |
685 | inferior_ptid directly. | |
686 | ||
087e161b PA |
687 | 2020-06-18 Pedro Alves <palves@redhat.com> |
688 | ||
689 | * tracefile-tfile.c (tfile_target_open): Don't write to | |
690 | inferior_ptid directly, instead switch to added thread. | |
691 | (tfile_target::close): Use switch_to_no_thread instead of writing | |
692 | to inferior_ptid directly. | |
693 | ||
7fb43e53 PA |
694 | 2020-06-18 Pedro Alves <palves@redhat.com> |
695 | ||
696 | * procfs.c (procfs_target::attach): Don't write to inferior_ptid. | |
697 | (procfs_target::detach): Use switch_to_no_thread | |
698 | instead of writing to inferior_ptid directly. | |
699 | (do_attach): Change return type to void. Switch to the added | |
700 | thread. | |
701 | (procfs_target::create_inferior): Switch to the added thread. | |
702 | (procfs_do_thread_registers): Don't write to inferior_ptid. | |
703 | ||
18493a00 PA |
704 | 2020-06-18 Pedro Alves <palves@redhat.com> |
705 | ||
706 | * infrun.c (generic_mourn_inferior): Use switch_to_thread instead | |
707 | of writing to inferior_ptid. | |
708 | (scoped_restore_exited_inferior): Delete. | |
709 | (handle_vfork_child_exec_or_exit): Simplify using | |
710 | scoped_restore_current_pspace_and_thread. Use switch_to_thread | |
711 | instead of writing to inferior_ptid. | |
712 | (THREAD_STOPPED_BY): Delete. | |
713 | (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint) | |
714 | (thread_stopped_by_hw_breakpoint): Delete. | |
715 | (save_waitstatus): Use | |
716 | scoped_restore_current_thread+switch_to_thread, and call | |
717 | target_stopped_by_watchpoint instead of | |
718 | thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint | |
719 | instead of thread_stopped_by_sw_breakpoint, and | |
720 | target_stopped_by_hw_breakpoint instead of | |
721 | thread_stopped_by_hw_breakpoint. | |
722 | (handle_inferior_event) | |
723 | <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to | |
724 | inferior_ptid directly, nor | |
725 | set_current_inferior/set_current_program_space. Use | |
726 | switch_to_thread / switch_to_inferior_no_thread instead. | |
727 | ||
a0776b13 PA |
728 | 2020-06-18 Pedro Alves <palves@redhat.com> |
729 | ||
730 | * target.c (generic_mourn_inferior): Use switch_to_no_thread | |
731 | instead of writing to inferior_ptid. | |
732 | ||
6155c136 PA |
733 | 2020-06-18 Pedro Alves <palves@redhat.com> |
734 | ||
735 | * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the | |
736 | added thread. | |
737 | (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch | |
738 | to the added thread. | |
739 | (inf_ptrace_target::detach_success): Use switch_to_no_thread | |
740 | instead of writing to inferior_ptid. | |
741 | ||
c5316fc6 PA |
742 | 2020-06-18 Pedro Alves <palves@redhat.com> |
743 | ||
744 | * gdbarch-selftests.c: Include "progspace-and-thread.h". | |
745 | (register_to_value_test): Mock a program_space too. Heap-allocate | |
746 | the address space. Don't write to inferior_ptid. Use | |
747 | switch_to_thread instead. | |
748 | ||
8df01799 PA |
749 | 2020-06-18 Pedro Alves <palves@redhat.com> |
750 | ||
751 | * linux-tdep.c (find_signalled_thread(thread_info *,void *)): | |
752 | Delete. | |
753 | (find_signalled_thread()): New, factored out from | |
754 | linux_make_corefile_notes and adjusted to handle exited threads. | |
755 | (linux_make_corefile_notes): Adjust to use the new | |
756 | find_signalled_thread. | |
757 | ||
41792d68 PA |
758 | 2020-06-18 Pedro Alves <palves@redhat.com> |
759 | ||
760 | * linux-tdep.c (btrace_fetch): Save/restore current thread instead | |
761 | of saving/restoring inferior_ptid. | |
762 | ||
612f258a TT |
763 | 2020-06-17 Tom Tromey <tom@tromey.com> |
764 | ||
765 | * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward) | |
766 | (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't | |
767 | declare. | |
768 | * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove. | |
769 | ||
efb763a5 SM |
770 | 2020-06-15 Simon Marchi <simon.marchi@efficios.com> |
771 | ||
772 | * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence | |
773 | of partial symtabs. | |
774 | ||
2951f6c0 SM |
775 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
776 | ||
777 | * regformats/reg-arm.dat: Remove. | |
778 | * regformats/reg-bfin.dat: Remove. | |
779 | * regformats/reg-cris.dat: Remove. | |
780 | * regformats/reg-crisv32.dat: Remove. | |
781 | * regformats/reg-m32r.dat: Remove. | |
782 | * regformats/reg-tilegx.dat: Remove. | |
783 | * regformats/reg-tilegx32.dat: Remove. | |
784 | ||
7d458ea5 SM |
785 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
786 | ||
787 | * features/Makefile (WHICH): Remove arm files. | |
788 | * regformats/arm/arm-with-iwmmxt.dat: Remove. | |
789 | * regformats/arm/arm-with-neon.dat: Remove. | |
790 | * regformats/arm/arm-with-vfpv2.dat: Remove. | |
791 | * regformats/arm/arm-with-vfpv3.dat: Remove. | |
792 | ||
3af96c0d SM |
793 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
794 | ||
795 | * features/Makefile (XMLTOC): Remove rx.xml. | |
796 | ||
b25e22fd PA |
797 | 2020-06-17 Pedro Alves <palves@redhat.com> |
798 | ||
799 | * gdbthread.h (thread_control_state) <trap_expected> Update | |
800 | comments. | |
801 | ||
a78a19b1 AB |
802 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
803 | ||
804 | * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to | |
805 | ada_language::lookup_symbol_nonlocal. | |
806 | (ada_language_data): Delete la_lookup_symbol_nonlocal initializer. | |
807 | (ada_language::lookup_symbol_nonlocal): New member function, | |
808 | implementation from ada_lookup_symbol_nonlocal. | |
809 | * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal | |
810 | initializer. | |
811 | (cplus_language_data): Delete la_lookup_symbol_nonlocal | |
812 | initializer. | |
813 | (cplus_language::lookup_symbol_nonlocal): New member function. | |
814 | (asm_language_data): Delete la_lookup_symbol_nonlocal initializer. | |
815 | (minimal_language_data) Likewise. | |
816 | * cp-namespace.c (cp_lookup_nested_symbol): Update comment. | |
817 | * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal | |
818 | initializer. | |
819 | (d_language::lookup_symbol_nonlocal): New member function. | |
820 | * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal | |
821 | initializer. | |
822 | (f_language::lookup_symbol_nonlocal): New member function. | |
823 | * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal | |
824 | initializer. | |
825 | * language.c (unknown_language_data): Likewise. | |
826 | (auto_language_data): Likewise. | |
827 | * language.h (language_data): Delete la_lookup_symbol_nonlocal | |
828 | field. | |
829 | (language_defn::lookup_symbol_nonlocal): New member function. | |
830 | * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal | |
831 | initializer. | |
832 | * objc-lang.c (objc_language_data): Likewise. | |
833 | * opencl-lang.c (opencl_language_data): Likewise. | |
834 | * p-lang.c (pascal_language_data): Likewise. | |
835 | * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to | |
836 | rust_language::lookup_symbol_nonlocal. | |
837 | (rust_language_data): Delete la_lookup_symbol_nonlocal | |
838 | initializer. | |
839 | (rust_language::lookup_symbol_nonlocal): New member function, | |
840 | implementation from rust_lookup_symbol_nonlocal. | |
841 | * symtab.c (lookup_symbol_aux): Update call to | |
842 | lookup_symbol_nonlocal. | |
843 | (basic_lookup_symbol_nonlocal): Rename to... | |
844 | (language_defn::lookup_symbol_nonlocal): ...this, and update | |
845 | header comment. Remove language_defn parameter, and replace with | |
846 | uses of `this'. | |
847 | * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration. | |
848 | ||
ebe2334e AB |
849 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
850 | ||
851 | * ada-lang.c (ada_language_data): Delete la_value_print_inner | |
852 | initializer. | |
853 | (ada_language::value_print_inner): New member function. | |
854 | * c-lang.c (c_language_data): Delete la_value_print_inner | |
855 | initializer. | |
856 | (cplus_language_data): Likewise. | |
857 | (asm_language_data): Likewise. | |
858 | (minimal_language_data): Likewise. | |
859 | * d-lang.c (d_language_data): Likewise. | |
860 | (d_language::value_print_inner): New member function. | |
861 | * f-lang.c (f_language_data): Delete la_value_print_inner | |
862 | initializer. | |
863 | (f_language::value_print_inner): New member function. | |
864 | * f-lang.h (f_value_print_innner): Rename to... | |
865 | (f_value_print_inner): ...this (note spelling of 'inner'). | |
866 | * f-valprint.c (f_value_print_innner): Rename to... | |
867 | (f_value_print_inner): ...this (note spelling of 'inner'). | |
868 | * go-lang.c (go_language_data): Delete la_value_print_inner | |
869 | initializer. | |
870 | (go_language::value_print_inner): New member function. | |
871 | * language.c (language_defn::value_print_inner): Define new member | |
872 | function. | |
873 | (unk_lang_value_print_inner): Delete. | |
874 | (unknown_language_data): Delete la_value_print_inner initializer. | |
875 | (unknown_language::value_print_inner): New member function. | |
876 | (auto_language_data): Delete la_value_print_inner initializer. | |
877 | (auto_language::value_print_inner): New member function. | |
878 | * language.h (language_data): Delete la_value_print_inner field. | |
879 | (language_defn::value_print_inner): Delcare new member function. | |
880 | * m2-lang.c (m2_language_data): Delete la_value_print_inner | |
881 | initializer. | |
882 | (m2_language::value_print_inner): New member function. | |
883 | * objc-lang.c (objc_language_data): Delete la_value_print_inner | |
884 | initializer. | |
885 | * opencl-lang.c (opencl_language_data): Likewise. | |
886 | * p-lang.c (pascal_language_data): Likewise. | |
887 | (pascal_language::value_print_inner): New member function. | |
888 | * rust-lang.c (rust_language_data): Delete la_value_print_inner | |
889 | initializer. | |
890 | (rust_language::value_print_inner): New member function. | |
891 | * valprint.c (do_val_print): Update call to value_print_inner. | |
892 | ||
a1d1fa3e AB |
893 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
894 | ||
895 | * ada-lang.c (ada_language_data): Delete la_value_print | |
896 | initializer. | |
897 | (ada_language::value_print): New member function. | |
898 | * c-lang.c (c_language_data): Delete la_value_print initializer. | |
899 | (cplus_language_data): Likewise. | |
900 | (asm_language_data): Likewise. | |
901 | (minimal_language_data): Likewise. | |
902 | * d-lang.c (d_language_data): Likewise. | |
903 | * f-lang.c (f_language_data): Likewise. | |
904 | * go-lang.c (go_language_data): Likewise. | |
905 | * language.c (unk_lang_value_print): Delete. | |
906 | (language_defn::value_print): Define new member function. | |
907 | (unknown_language_data): Delete la_value_print initializer. | |
908 | (unknown_language::value_print): New member function. | |
909 | (auto_language_data): Delete la_value_print initializer. | |
910 | (auto_language::value_print): New member function. | |
911 | * language.h (language_data): Delete la_value_print field. | |
912 | (language_defn::value_print): Declare new member function. | |
913 | (LA_VALUE_PRINT): Update call to value_print. | |
914 | * m2-lang.c (m2_language_data): Delete la_value_print initializer. | |
915 | * objc-lang.c (objc_language_data): Likewise. | |
916 | * opencl-lang.c (opencl_language_data): Likewise. | |
917 | * p-lang.c (pascal_language_data): Likewise. | |
918 | (pascal_language::value_print): New member function. | |
919 | * rust-lang.c (rust_language_data): Delete la_value_print | |
920 | initializer. | |
921 | ||
f16a9f57 AB |
922 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
923 | ||
924 | * ada-lang.c (ada_watch_location_expression): Rename to | |
925 | ada_language::watch_location_expression. | |
926 | (ada_language_data): Delete la_watch_location_expression | |
927 | initializer. | |
928 | (ada_language::watch_location_expression): New member function, | |
929 | implementation from ada_watch_location_expression. | |
930 | * breakpoint.c (watch_command_1): Update call to | |
931 | watch_location_expression. | |
932 | * c-lang.c (c_watch_location_expression): Rename to | |
933 | language_defn::watch_location_expression. | |
934 | (c_language_data): Delete la_watch_location_expression | |
935 | initializer. | |
936 | (cplus_language_data): Likewise. | |
937 | (asm_language_data): Likewise. | |
938 | (minimal_language_data): Likewise. | |
939 | * c-lang.h (c_watch_location_expression): Delete declaration. | |
940 | * d-lang.c (d_language_data): Delete la_watch_location_expression | |
941 | initializer. | |
942 | * f-lang.c (f_language_data): Likewise. | |
943 | * go-lang.c (go_language_data): Likewise. | |
944 | * language.c (language_defn::watch_location_expression): Member | |
945 | function implementation from c_watch_location_expression. | |
946 | (unknown_language_data): Delete la_watch_location_expression | |
947 | initializer. | |
948 | (auto_language_data): Likewise. | |
949 | * language.h (language_data): Delete la_watch_location_expression | |
950 | field. | |
951 | (language_defn::watch_location_expression): Declare new member | |
952 | function. | |
953 | * m2-lang.c (m2_language_data): Delete | |
954 | la_watch_location_expression initializer. | |
955 | * objc-lang.c (objc_language_data): Likewise. | |
956 | * opencl-lang.c (opencl_language_data): Likewise. | |
957 | * p-lang.c (pascal_language_data): Likewise. | |
958 | * rust-lang.c (rust_watch_location_expression): Rename to | |
959 | rust_language::watch_location_expression. | |
960 | (rust_language_data): Delete la_watch_location_expression | |
961 | initializer. | |
962 | (rust_language::watch_location_expression): New member function, | |
963 | implementation from rust_watch_location_expression. | |
964 | ||
7e56227d AB |
965 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
966 | ||
967 | * ada-lang.c (ada_collect_symbol_completion_matches): Rename to | |
968 | ada_language::collect_symbol_completion_matches. | |
969 | (ada_language_data): Delete la_collect_symbol_completion_matches | |
970 | initializer. | |
971 | (ada_language::collect_symbol_completion_matches): New member | |
972 | function, implementation from | |
973 | ada_collect_symbol_completion_matches. | |
974 | * c-lang.c (c_language_data): Delete | |
975 | la_collect_symbol_completion_matches initializer. | |
976 | (cplus_language_data): Likewise. | |
977 | (asm_language_data): Likewise. | |
978 | (minimal_language_data): Likewise. | |
979 | * d-lang.c (d_language_data): Likewise. | |
980 | * f-lang.c (f_collect_symbol_completion_matches): Rename to | |
981 | f_language::collect_symbol_completion_matches. | |
982 | (f_language_data): Delete la_collect_symbol_completion_matches | |
983 | initializer. | |
984 | (f_language::collect_symbol_completion_matches) New member | |
985 | function, implementation from f_collect_symbol_completion_matches. | |
986 | * go-lang.c (go_language_data): Delete | |
987 | la_collect_symbol_completion_matches initializer. | |
988 | * language.c (unknown_language_data): Likewise. | |
989 | (auto_language_data): Likewise. | |
990 | * language.h (language_data): Delete | |
991 | la_collect_symbol_completion_matches field. | |
992 | (language_defn::collect_symbol_completion_matches): New member | |
993 | function. | |
994 | * m2-lang.c (m2_language_data): Delete | |
995 | la_collect_symbol_completion_matches initializer. | |
996 | * objc-lang.c (objc_language_data): Likewise. | |
997 | * opencl-lang.c (opencl_language_data): Likewise. | |
998 | * p-lang.c (pascal_language_data): Likewise. | |
999 | * rust-lang.c (rust_language_data): Likewise. | |
1000 | * symtab.c (default_collect_symbol_completion_matches): Delete. | |
1001 | (collect_symbol_completion_matches): Update call to | |
1002 | collect_symbol_completion_matches. | |
1003 | (collect_symbol_completion_matches_type): Likewise. | |
1004 | * symtab.h (default_collect_symbol_completion_matches): Delete | |
1005 | declaration. | |
1006 | ||
53fc67f8 AB |
1007 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
1008 | ||
1009 | * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete. | |
1010 | (ada_language_data): Delete la_word_break_characters initializer. | |
1011 | (ada_language::word_break_characters): New member function. | |
1012 | * c-lang.c (c_language_data): Delete la_word_break_characters | |
1013 | initializer. | |
1014 | (cplus_language_data): Likewise. | |
1015 | (asm_language_data): Likewise. | |
1016 | (minimal_language_data): Likewise. | |
1017 | * completer.c: Update global comment. | |
1018 | (advance_to_expression_complete_word_point): Update call to | |
1019 | word_break_characters. | |
1020 | (complete_files_symbols): Likewise. | |
1021 | (complete_line_internal_1): Likewise. | |
1022 | (default_completer_handle_brkchars): Likewise. | |
1023 | (skip_quoted_chars): Likewise. | |
1024 | * d-lang.c (d_language_data): Delete la_word_break_characters | |
1025 | initializer. | |
1026 | * f-lang.c (f_word_break_characters): Delete. | |
1027 | (f_language_data): Delete la_word_break_characters initializer. | |
1028 | (f_language::word_break_characters): New member function. | |
1029 | * go-lang.c (go_language_data): Delete la_word_break_characters | |
1030 | initializer. | |
1031 | * language.c (unknown_language_data): Likewise. | |
1032 | (auto_language_data): Likewise. | |
1033 | * language.h (default_word_break_characters): Move declaration to | |
1034 | earlier in the file. | |
1035 | (language_data): Delete la_word_break_characters field. | |
1036 | (language_defn::word_break_characters): New member function. | |
1037 | * m2-lang.c (m2_language_data): Delete la_word_break_characters | |
1038 | initializer. | |
1039 | * objc-lang.c (objc_language_data): Likewise. | |
1040 | * opencl-lang.c (opencl_language_data): Likewise. | |
1041 | * p-lang.c (pascal_language_data): Likewise. | |
1042 | * rust-lang.c (rust_language_data): Likewise. | |
1043 | ||
c9debfb9 AB |
1044 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
1045 | ||
1046 | * ada-lang.c (ada_get_symbol_name_matcher): Update header comment. | |
1047 | (ada_language_data): Delete la_get_symbol_name_matcher | |
1048 | initializer. | |
1049 | (language_defn::get_symbol_name_matcher_inner): New member | |
1050 | function. | |
1051 | * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher | |
1052 | initializer. | |
1053 | (cplus_language_data): Likewise. | |
1054 | (cplus_language::get_symbol_name_matcher_inner): New member | |
1055 | function. | |
1056 | (asm_language_data): Delete la_get_symbol_name_matcher initializer. | |
1057 | (minimal_language_data): Likewise. | |
1058 | * cp-support.h (cp_get_symbol_name_matcher): Update header comment. | |
1059 | * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher | |
1060 | initializer. | |
1061 | * dictionary.c (iter_match_first_hashed): Update call to | |
1062 | get_symbol_name_matcher. | |
1063 | (iter_match_next_hashed): Likewise. | |
1064 | (iter_match_next_linear): Likewise. | |
1065 | * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise. | |
1066 | * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher | |
1067 | initializer. | |
1068 | (f_language::get_symbol_name_matcher_inner): New member function. | |
1069 | * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher | |
1070 | initializer. | |
1071 | * language.c (default_symbol_name_matcher): Update header comment, | |
1072 | make static. | |
1073 | (language_defn::get_symbol_name_matcher): New definition. | |
1074 | (language_defn::get_symbol_name_matcher_inner): Likewise. | |
1075 | (get_symbol_name_matcher): Delete. | |
1076 | (unknown_language_data): Delete la_get_symbol_name_matcher | |
1077 | initializer. | |
1078 | (auto_language_data): Likewise. | |
1079 | * language.h (language_data): Delete la_get_symbol_name_matcher | |
1080 | field. | |
1081 | (language_defn::get_symbol_name_matcher): New member function. | |
1082 | (language_defn::get_symbol_name_matcher_inner): Likewise. | |
1083 | (default_symbol_name_matcher): Delete declaration. | |
1084 | * linespec.c (find_methods): Update call to | |
1085 | get_symbol_name_matcher. | |
1086 | * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher | |
1087 | initializer. | |
1088 | * minsyms.c (lookup_minimal_symbol): Update call to | |
1089 | get_symbol_name_matcher. | |
1090 | (iterate_over_minimal_symbols): Likewise. | |
1091 | * objc-lang.c (objc_language_data): Delete | |
1092 | la_get_symbol_name_matcher initializer. | |
1093 | * opencl-lang.c (opencl_language_data): Likewise. | |
1094 | * p-lang.c (pascal_language_data): Likewise. | |
1095 | * psymtab.c (psymbol_name_matches): Update call to | |
1096 | get_symbol_name_matcher. | |
1097 | * rust-lang.c (rust_language_data): Delete | |
1098 | la_get_symbol_name_matcher initializer. | |
1099 | * symtab.c (symbol_matches_search_name): Update call to | |
1100 | get_symbol_name_matcher. | |
1101 | (compare_symbol_name): Likewise. | |
1102 | ||
9a49ad8c AB |
1103 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
1104 | ||
1105 | * ada-lang.c (ada_language_data): Delete la_compute_program | |
1106 | initializer. | |
1107 | * c-lang.c (c_language_data): Likewise. | |
1108 | (c_language::compute_program): New member function. | |
1109 | (cplus_language_data): Delete la_compute_program initializer. | |
1110 | (cplus_language::compute_program): New member function. | |
1111 | (asm_language_data): Delete la_compute_program initializer. | |
1112 | (minimal_language_data): Likewise. | |
1113 | * c-lang.h (c_compute_program): Update comment. | |
1114 | (cplus_compute_program): Likewise. | |
1115 | * compile/compile-c-support.c (c_compute_program): Likewise. | |
1116 | (cplus_compute_program): Likewise. | |
1117 | * compile/compile.c (compile_to_object): Update call to | |
1118 | la_compute_program. | |
1119 | * d-lang.c (d_language_data): Delete la_compute_program | |
1120 | initializer. | |
1121 | * f-lang.c (f_language_data): Likewise. | |
1122 | * go-lang.c (go_language_data): Likewise. | |
1123 | * language.c (unknown_language_data): Likewise. | |
1124 | (auto_language_data): Likewise. | |
1125 | * language.h (language_data): Delete la_compute_program field. | |
1126 | (language_defn::compute_program): New member function. | |
1127 | * m2-lang.c (m2_language_data): Delete la_compute_program | |
1128 | initializer. | |
1129 | * objc-lang.c (objc_language_data): Likewise. | |
1130 | * opencl-lang.c (opencl_language_data): Likewise. | |
1131 | * p-lang.c (pascal_language_data): Likewise. | |
1132 | * rust-lang.c (rust_language_data): Likewise. | |
1133 | ||
eff93b4d AB |
1134 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
1135 | ||
1136 | * ada-lang.c (ada_language_data) Delete | |
1137 | la_class_name_from_physname initializer. | |
1138 | * c-lang.c (c_language_data): Likewise. | |
1139 | (cplus_language_data): Likewise. | |
1140 | (cplus_language::class_name_from_physname): New member function. | |
1141 | (asm_language_data): Delete la_class_name_from_physname | |
1142 | initializer. | |
1143 | (minimal_language_data): Likewise. | |
1144 | * d-lang.c (d_language_data): Likewise. | |
1145 | * dwarf2/read.c (guess_partial_die_structure_name): Update to call | |
1146 | method on language_defn class. | |
1147 | (guess_full_die_structure_name): Likewise. | |
1148 | * f-lang.c (f_language_data): Delete la_class_name_from_physname | |
1149 | initializer. | |
1150 | * go-lang.c (go_language_data): Likewise. | |
1151 | * language.c (language_class_name_from_physname): Delete. | |
1152 | (unk_lang_class_name): Delete. | |
1153 | (unknown_language_data): Delete la_class_name_from_physname | |
1154 | initializer. | |
1155 | (auto_language_data): Likewise. | |
1156 | * language.h (language_data): Delete la_class_name_from_physname | |
1157 | field. | |
1158 | (language_defn::class_name_from_physname): New function. | |
1159 | (language_class_name_from_physname): Delete declaration. | |
1160 | * m2-lang.c (m2_language_data): Delete la_class_name_from_physname | |
1161 | initializer. | |
1162 | * objc-lang.c (objc_language_data): Likewise. | |
1163 | * opencl-lang.c (opencl_language_data): Likewise. | |
1164 | * p-lang.c (pascal_language_data): Likewise. | |
1165 | * rust-lang.c (rust_language_data): Likewise. | |
1166 | ||
de543742 TT |
1167 | 2020-06-16 Tom Tromey <tom@tromey.com> |
1168 | ||
1169 | * tui/tui-data.h (STATUS_NAME): New macro. | |
1170 | * tui/tui-layout.c (tui_remove_some_windows) | |
1171 | (initialize_known_windows, tui_register_window) | |
1172 | (tui_layout_split::remove_windows, initialize_layouts) | |
1173 | (tui_new_layout_command): Don't use hard-coded window names. | |
1174 | ||
a350efd4 TT |
1175 | 2020-06-16 Tom Tromey <tom@tromey.com> |
1176 | ||
1177 | PR tui/25348: | |
1178 | * tui/tui.c (tui_ensure_readline_initialized): Rename from | |
1179 | tui_initialize_readline. Only run once. Call rl_initialize. | |
1180 | * tui/tui.h (tui_ensure_readline_initialized): Rename from | |
1181 | tui_initialize_readline. | |
1182 | * tui/tui-io.c (tui_setup_io): Call | |
1183 | tui_ensure_readline_initialized. | |
1184 | * tui/tui-interp.c (tui_interp::init): Update. | |
1185 | ||
39ec0490 TT |
1186 | 2020-06-16 Tom Tromey <tom@tromey.com> |
1187 | ||
1188 | * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic. | |
1189 | Also preserve the status window. | |
1190 | ||
d2d1ea20 TT |
1191 | 2020-06-16 Tom Tromey <tom@tromey.com> |
1192 | ||
1193 | * python/py-tui.c (tui_py_window::~tui_py_window): Handle case | |
1194 | where m_window==nullptr. | |
1195 | ||
66920317 TT |
1196 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
1197 | ||
1198 | * windows-nat.c (windows_nat::handle_output_debug_string): | |
1199 | Update. | |
1200 | (windows_nat::handle_ms_vc_exception): Update. | |
1201 | * target.h (target_read_string): Change API. | |
1202 | * target.c (target_read_string): Change API. | |
1203 | * solib-svr4.c (open_symbol_file_object, svr4_read_so_list): | |
1204 | Update. | |
1205 | * solib-frv.c (frv_current_sos): Update. | |
1206 | * solib-dsbt.c (dsbt_current_sos): Update. | |
1207 | * solib-darwin.c (darwin_current_sos): Update. | |
1208 | * linux-thread-db.c (inferior_has_bug): Update. | |
1209 | * expprint.c (print_subexp_standard): Update. | |
1210 | * ada-lang.c (ada_main_name, ada_tag_name_from_tsd) | |
1211 | (ada_exception_message_1): Update. | |
1212 | ||
a5d871dd TT |
1213 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
1214 | ||
1215 | * linux-tdep.c (dump_mapping_p): Use target_read_memory. | |
1216 | ||
670e35fa TT |
1217 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
1218 | ||
1219 | * valprint.c (read_string): Update comment. | |
1220 | * target.c (MIN): Remove. | |
1221 | (target_read_string): Rewrite. | |
1222 | ||
f5272a3b TT |
1223 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
1224 | ||
1225 | * corefile.c (read_memory_string): Remove. | |
1226 | * ada-valprint.c (ada_value_print_ptr): Update. | |
1227 | * ada-lang.h (ada_tag_name): Change return type. | |
1228 | * ada-lang.c (type_from_tag): Update. | |
1229 | (ada_tag_name_from_tsd): Change return type. Use | |
1230 | target_read_string. | |
1231 | (ada_tag_name): Likewise. | |
1232 | * gdbcore.h (read_memory_string): Don't declare. | |
1233 | ||
2c074f49 HD |
1234 | 2020-06-14 Hannes Domani <ssbssa@yahoo.de> |
1235 | ||
1236 | * symtab.c (rbreak_command): Ignore Windows drive colon. | |
1237 | ||
6a17d503 SM |
1238 | 2020-06-12 Simon Marchi <simon.marchi@efficios.com> |
1239 | ||
1240 | * NEWS: Mention removed GDBserver host support. | |
1241 | ||
453c733f NC |
1242 | 2020-06-12 Nelson Chu <nelson.chu@sifive.com> |
1243 | ||
1244 | * features/riscv/rebuild-csr-xml.sh: Updated. | |
1245 | ||
2b4e6a3f TT |
1246 | 2020-06-11 Tom Tromey <tom@tromey.com> |
1247 | ||
1248 | PR gdb/18318: | |
1249 | * c-exp.y (lex_one_token): Handle 'p' like 'e'. | |
1250 | ||
4412332f JG |
1251 | 2020-06-09 Jonny Grant <jg@jguk.org> |
1252 | 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca> | |
1253 | ||
1254 | * main.c (captured_main_1): Don't print new line after help. | |
1255 | (print_gdb_help): add mailing list and IRC channel information | |
1256 | to --help. Add new lines between items in the footer. Remove | |
1257 | quotes around bug url. | |
1258 | ||
2f33032a KS |
1259 | 2020-06-11 Keith Seitz <keiths@redhat.com> |
1260 | ||
1261 | PR gdb/21356 | |
1262 | * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct): | |
1263 | Resolve typedefs for type length calculations. | |
1264 | ||
7ab96794 TV |
1265 | 2020-06-10 Tom de Vries <tdevries@suse.de> |
1266 | ||
1267 | PR ada/24713 | |
1268 | * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack. | |
1269 | (write_psymbols): Enable .gdb_index for ada. | |
1270 | * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for | |
1271 | ada. | |
1272 | ||
e5f3ece2 TV |
1273 | 2020-06-10 Tom de Vries <tdevries@suse.de> |
1274 | ||
1275 | * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ... | |
1276 | (dw2_symtab_iter_init): ... here. Add variant with "offset_type | |
1277 | namei" instead of "const char *name" argument. | |
1278 | (dw2_map_matching_symbols): Use "offset_type namei" variant of | |
1279 | dw2_symtab_iter_init. | |
1280 | ||
940da03e SM |
1281 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
1282 | ||
1283 | * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites | |
1284 | to use type::field and field::type instead. | |
1285 | ||
b6cdac4b SM |
1286 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
1287 | ||
1288 | * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites | |
1289 | to use field::type instead. | |
1290 | ||
5d14b6e5 SM |
1291 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
1292 | ||
1293 | * gdbtypes.h (struct field) <type, set_type>: New methods. | |
1294 | Rename `type` field to... | |
1295 | <m_type>: ... this. Change references throughout to use type or | |
1296 | set_type methods. | |
1297 | (FIELD_TYPE): Use field::type. Change call sites that modify | |
1298 | the field's type to use field::set_type instead. | |
1299 | ||
3d967001 SM |
1300 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
1301 | ||
1302 | * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites | |
1303 | to use type::index_type instead. | |
1304 | ||
262abc0d SM |
1305 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
1306 | ||
1307 | * gdbtypes.h (struct type) <index_type, set_index_type>: New | |
1308 | methods. | |
1309 | (TYPE_INDEX_TYPE): Use type::index_type. | |
1310 | * gdbtypes.c (create_array_type_with_stride): Likewise. | |
1311 | ||
82836c92 TT |
1312 | 2020-06-07 Tom Tromey <tom@tromey.com> |
1313 | ||
1314 | * valprint.c (generic_val_print_float): Remove "embedded_offset" | |
1315 | parameter. | |
1316 | (generic_value_print): Update. | |
1317 | ||
940dace9 AB |
1318 | 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com> |
1319 | ||
1320 | Revert commit 982a38f60b0. | |
1321 | * python/py-tui.c (gdbpy_tui_set_title): Restore use of get. | |
1322 | ||
982a38f6 AB |
1323 | 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com> |
1324 | ||
1325 | * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to | |
1326 | avoid use after free. | |
1327 | ||
82f06518 TV |
1328 | 2020-06-05 Tom de Vries <tdevries@suse.de> |
1329 | ||
1330 | * NEWS: Fix typos. | |
1331 | ||
f8c41851 SM |
1332 | 2020-06-04 Simon Marchi <simon.marchi@efficios.com> |
1333 | ||
1334 | * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in | |
1335 | the per_bfd object. | |
1336 | (dwarf2_read_debug_names): Likewise. | |
1337 | (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd | |
1338 | object when re-using a per_bfd object with an index. | |
1339 | ||
f9b5d5ea TV |
1340 | 2020-06-03 Tom de Vries <tdevries@suse.de> |
1341 | ||
1342 | PR symtab/26046 | |
1343 | * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram | |
1344 | children for C++. | |
1345 | (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of | |
1346 | DW_TAG_subprogram. | |
1347 | ||
f6eee2d0 AB |
1348 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
1349 | ||
1350 | * ada-lang.c (ada_language_data): Delete skip_trampoline | |
1351 | initializer. | |
1352 | * c-lang.c (c_language_data): Likewise. | |
1353 | (cplus_language_data): Likewise. | |
1354 | (cplus_language::skip_trampoline): New member function. | |
1355 | (asm_language_data): Delete skip_trampoline initializer. | |
1356 | (minimal_language_data): Likewise. | |
1357 | * d-lang.c (d_language_data): Likewise. | |
1358 | * f-lang.c (f_language_data): Likewise. | |
1359 | * go-lang.c (go_language_data): Likewise. | |
1360 | * language.c (unk_lang_trampoline): Delete function. | |
1361 | (skip_language_trampoline): Update. | |
1362 | (unknown_language_data): Delete skip_trampoline initializer. | |
1363 | (auto_language_data): Likewise. | |
1364 | * language.h (language_data): Delete skip_trampoline field. | |
1365 | (language_defn::skip_trampoline): New function. | |
1366 | * m2-lang.c (m2_language_data): Delete skip_trampoline | |
1367 | initializer. | |
1368 | * objc-lang.c (objc_skip_trampoline): Delete function, move | |
1369 | implementation to objc_language::skip_trampoline. | |
1370 | (objc_language_data): Delete skip_trampoline initializer. | |
1371 | (objc_language::skip_trampoline): New member function with | |
1372 | implementation from objc_skip_trampoline. | |
1373 | * opencl-lang.c (opencl_language_data): Delete skip_trampoline | |
1374 | initializer. | |
1375 | * p-lang.c (pascal_language_data): Likewise. | |
1376 | * rust-lang.c (rust_language_data): Likewise. | |
1377 | ||
0a50df5d AB |
1378 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
1379 | ||
1380 | * ada-lang.c (ada_language_data): Delete la_demangle initializer. | |
1381 | (ada_language::demangle): New member function. | |
1382 | * c-lang.c (c_language_data): Delete la_demangle initializer. | |
1383 | (cplus_language_data): Delete la_demangle initializer. | |
1384 | (cplus_language::demangle): New member function. | |
1385 | (asm_language_data): Delete la_demangle initializer. | |
1386 | (minimal_language_data): Delete la_demangle initializer. | |
1387 | * d-lang.c (d_language_data): Delete la_demangle initializer. | |
1388 | (d_language::demangle): New member function. | |
1389 | * f-lang.c (f_language_data): Delete la_demangle initializer. | |
1390 | (f_language::demangle): New member function. | |
1391 | * go-lang.c (go_language_data): Delete la_demangle initializer. | |
1392 | (go_language::demangle): New member function. | |
1393 | * language.c (language_demangle): Update. | |
1394 | (unk_lang_demangle): Delete. | |
1395 | (unknown_language_data): Delete la_demangle initializer. | |
1396 | (unknown_language::demangle): New member function. | |
1397 | (auto_language_data): Delete la_demangle initializer. | |
1398 | (auto_language::demangle): New member function. | |
1399 | * language.h (language_data): Delete la_demangle field. | |
1400 | (language_defn::demangle): New function. | |
1401 | * m2-lang.c (m2_language_data): Delete la_demangle initializer. | |
1402 | * objc-lang.c (objc_language_data): Delete la_demangle | |
1403 | initializer. | |
1404 | (objc_language::demangle): New member function. | |
1405 | * opencl-lang.c (opencl_language_data): Delete la_demangle | |
1406 | initializer. | |
1407 | * p-lang.c (pascal_language_data): Likewise. | |
1408 | * rust-lang.c (rust_language_data): Likewise. | |
1409 | (rust_language::demangle): New member function. | |
1410 | ||
fbfb0a46 AB |
1411 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
1412 | ||
1413 | * ada-lang.c (ada_language_data): Delete la_print_type | |
1414 | initializer. | |
1415 | (ada_language::print_type): New member function. | |
1416 | * c-lang.c (c_language_data): Delete la_print_type initializer. | |
1417 | (c_language::print_type): New member function. | |
1418 | (cplus_language_data): Delete la_print_type initializer. | |
1419 | (cplus_language::print_type): New member function. | |
1420 | (asm_language_data): Delete la_print_type initializer. | |
1421 | (asm_language::print_type): New member function. | |
1422 | (minimal_language_data): Delete la_print_type initializer. | |
1423 | (minimal_language::print_type): New member function. | |
1424 | * d-lang.c (d_language_data): Delete la_print_type initializer. | |
1425 | (d_language::print_type): New member function. | |
1426 | * f-lang.c (f_language_data): Delete la_print_type initializer. | |
1427 | (f_language::print_type): New member function. | |
1428 | * go-lang.c (go_language_data): Delete la_print_type initializer. | |
1429 | (go_language::print_type): New member function. | |
1430 | * language.c (unk_lang_print_type): Delete. | |
1431 | (unknown_language_data): Delete la_print_type initializer. | |
1432 | (unknown_language::print_type): New member function. | |
1433 | (auto_language_data): Delete la_print_type initializer. | |
1434 | (auto_language::print_type): New member function. | |
1435 | * language.h (language_data): Delete la_print_type field. | |
1436 | (language_defn::print_type): New function. | |
1437 | (LA_PRINT_TYPE): Update. | |
1438 | * m2-lang.c (m2_language_data): Delete la_print_type initializer. | |
1439 | (m2_language::print_type): New member function. | |
1440 | * objc-lang.c (objc_language_data): Delete la_print_type | |
1441 | initializer. | |
1442 | (objc_language::print_type): New member function. | |
1443 | * opencl-lang.c (opencl_print_type): Delete, implementation moved | |
1444 | to opencl_language::print_type. | |
1445 | (opencl_language_data): Delete la_print_type initializer. | |
1446 | (opencl_language::print_type): New member function, implementation | |
1447 | from opencl_print_type. | |
1448 | * p-lang.c (pascal_language_data): Delete la_print_type | |
1449 | initializer. | |
1450 | (pascal_language::print_type): New member function. | |
1451 | * rust-lang.c (rust_print_type): Delete, implementation moved to | |
1452 | rust_language::print_type. | |
1453 | (rust_language_data): Delete la_print_type initializer. | |
1454 | (rust_language::print_type): New member function, implementation | |
1455 | from rust_print_type. | |
1456 | ||
6f827019 AB |
1457 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
1458 | ||
1459 | * ada-lang.c (ada_sniff_from_mangled_name): Delete function, | |
1460 | implementation moves to... | |
1461 | (ada_language::sniff_from_mangled_name): ...here. Update return | |
1462 | type. | |
1463 | (ada_language_data): Delete la_sniff_from_mangled_name | |
1464 | initializer. | |
1465 | * c-lang.c (c_language_data): Likewise. | |
1466 | (cplus_language_data): Likewise. | |
1467 | (cplus_language::sniff_from_mangled_name): New member function, | |
1468 | implementation taken from gdb_sniff_from_mangled_name. | |
1469 | (asm_language_data): Delete la_sniff_from_mangled_name | |
1470 | initializer. | |
1471 | (minimal_language_data): Likewise. | |
1472 | * cp-support.c (gdb_sniff_from_mangled_name): Delete, | |
1473 | implementation moves to cplus_language::sniff_from_mangled_name. | |
1474 | * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration. | |
1475 | * d-lang.c (d_sniff_from_mangled_name): Delete, implementation | |
1476 | moves to... | |
1477 | (d_language::sniff_from_mangled_name): ...here. | |
1478 | (d_language_data): Delete la_sniff_from_mangled_name initializer. | |
1479 | * f-lang.c (f_language_data): Likewise. | |
1480 | * go-lang.c (go_sniff_from_mangled_name): Delete, implementation | |
1481 | moves to... | |
1482 | (go_language::sniff_from_mangled_name): ...here. | |
1483 | (go_language_data): Delete la_sniff_from_mangled_name initializer. | |
1484 | * language.c (language_sniff_from_mangled_name): Delete. | |
1485 | (unknown_language_data): Delete la_sniff_from_mangled_name | |
1486 | initializer. | |
1487 | (auto_language_data): Likewise. | |
1488 | * language.h (language_data): Delete la_sniff_from_mangled_name | |
1489 | field. | |
1490 | (language_defn::sniff_from_mangled_name): New function. | |
1491 | (language_sniff_from_mangled_name): Delete declaration. | |
1492 | * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name | |
1493 | field. | |
1494 | * objc-lang.c (objc_sniff_from_mangled_name): Delete, | |
1495 | implementation moves to... | |
1496 | (objc_language::sniff_from_mangled_name): ...here. | |
1497 | (objc_language_data): Delete la_sniff_from_mangled_name initializer. | |
1498 | * opencl-lang.c (opencl_language_data): Likewise. | |
1499 | * p-lang.c (pascal_language_data): Likewise. | |
1500 | * rust-lang.c (rust_sniff_from_mangled_name): Delete, | |
1501 | implementation moves to... | |
1502 | (rust_language::sniff_from_mangled_name): ...here. | |
1503 | (rust_language_data): Delete la_sniff_from_mangled_name | |
1504 | initializer. | |
1505 | * symtab.c (symbol_find_demangled_name): Call | |
1506 | sniff_from_mangled_name member function. | |
1507 | ||
fb8006fd AB |
1508 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
1509 | ||
1510 | * ada-lang.c (ada_language_data): Delete la_search_name_hash | |
1511 | initializer. | |
1512 | * c-lang.c (c_language_data): Likewise. | |
1513 | (cplus_language_data): Likewise. | |
1514 | (cplus_language::search_name_hash): New member function. | |
1515 | (asm_language_data): Delete la_search_name_hash initializer. | |
1516 | (minimal_language_data): Likewise. | |
1517 | * d-lang.c (d_language_data): Likewise. | |
1518 | * dictionary.c (default_search_name_hash): Rename to... | |
1519 | (language_defn::search_name_hash): ...this. | |
1520 | * f-lang.c (f_language_data): Likewise. | |
1521 | (f_language::search_name_hash): New member function. | |
1522 | * go-lang.c (go_language_data): Delete la_search_name_hash | |
1523 | initializer. | |
1524 | * language.c (unknown_language_data): Likewise. | |
1525 | (auto_language_data): Likewise. | |
1526 | * language.h (struct language_data): Delete la_search_name_hash | |
1527 | field. | |
1528 | (language_defn::search_name_hash): Declare new member function. | |
1529 | (default_search_name_hash): Delete declaration. | |
1530 | * m2-lang.c (m2_language_data): Delete la_search_name_hash | |
1531 | initializer. | |
1532 | * objc-lang.c (objc_language_data): Likewise. | |
1533 | * opencl-lang.c (opencl_language_data): Likewise. | |
1534 | * p-lang.c (pascal_language_data): Likewise. | |
1535 | * rust-lang.c (rust_language_data): Likewise. | |
1536 | * symtab.c (search_name_hash): Update call. | |
1537 | ||
8e25bafe AB |
1538 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
1539 | ||
1540 | * ada-lang.c (ada_language_data): Delete la_get_compile_instance | |
1541 | initializer. | |
1542 | * c-lang.c (class compile_instance): Declare. | |
1543 | (c_language_data): Delete la_get_compile_instance initializer. | |
1544 | (c_language::get_compile_instance): New member function. | |
1545 | (cplus_language_data): Delete la_get_compile_instance initializer. | |
1546 | (cplus_language::get_compile_instance): New member function. | |
1547 | (asm_language_data): Delete la_get_compile_instance initializer. | |
1548 | (minimal_language_data): Likewise. | |
1549 | * c-lang.h (c_get_compile_context): Update comment. | |
1550 | (cplus_get_compile_context): Update comment. | |
1551 | * compile/compile.c (compile_to_object): Update calls, don't rely | |
1552 | on function pointer being NULL. | |
1553 | * d-lang.c (d_language_data): Delete la_get_compile_instance | |
1554 | initializer. | |
1555 | * f-lang.c (f_language_data): Likewise. | |
1556 | * go-lang.c (go_language_data): Likewise. | |
1557 | * language.c (unknown_language_data): Likewise. | |
1558 | (auto_language_data): Likewise. | |
1559 | * language.h (language_data): Delete la_get_compile_instance field. | |
1560 | (language_defn::get_compile_instance): New member function. | |
1561 | * m2-lang.c (m2_language_data): Delete la_get_compile_instance | |
1562 | initializer. | |
1563 | * objc-lang.c (objc_language_data): Likewise. | |
1564 | * opencl-lang.c (opencl_language_data): Likewise. | |
1565 | * p-lang.c (pascal_language_data): Likewise. | |
1566 | * rust-lang.c (rust_language_data): Likewise. | |
1567 | ||
4009ee92 AB |
1568 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
1569 | ||
1570 | * ada-lang.c (ada_add_all_symbols): Update comment. | |
1571 | (ada_iterate_over_symbols): Delete, move implementation to... | |
1572 | (ada_language::iterate_over_symbols): ...here, a new member | |
1573 | function, rewrite to use range based for loop. | |
1574 | (ada_language_data): Delete la_iterate_over_symbols initializer. | |
1575 | * c-lang.c (c_language_data): Likewise. | |
1576 | (cplus_language_data): Likewise. | |
1577 | (asm_language_data): Likewise. | |
1578 | (minimal_language_data): Likewise. | |
1579 | * d-lang.c (d_language_data): Likewise. | |
1580 | * f-lang.c (f_language_data): Likewise. | |
1581 | * go-lang.c (go_language_data): Likewise. | |
1582 | * language.c (unknown_language_data): Likewise. | |
1583 | (auto_language_data): Likewise. | |
1584 | * language.h (language_data): Delete la_iterate_over_symbols field. | |
1585 | (language_defn::iterate_over_symbols): New member function. | |
1586 | (LA_ITERATE_OVER_SYMBOLS): Update. | |
1587 | * linespec.c (iterate_over_all_matching_symtabs): Update. | |
1588 | * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols | |
1589 | initializer. | |
1590 | * objc-lang.c (objc_language_data): Likewise. | |
1591 | * opencl-lang.c (opencl_language_data): Likewise. | |
1592 | * p-lang.c (pascal_language_data): Likewise. | |
1593 | * rust-lang.c (rust_language_data): Likewise. | |
1594 | ||
54f4ca46 AB |
1595 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
1596 | ||
1597 | * ada-lang.c (ada_language_data): Delete | |
1598 | la_lookup_transparent_type initializer. | |
1599 | * c-lang.c (c_language_data): Likewise. | |
1600 | (cplus_language_data): Likewise. | |
1601 | (cplus_language::lookup_transparent_type): New member function. | |
1602 | (asm_language_data): Delete la_lookup_transparent_type | |
1603 | initializer. | |
1604 | (minimal_language_data): Likewise. | |
1605 | * d-lang.c (d_language_data): Likewise. | |
1606 | * f-lang.c (f_language_data): Likewise. | |
1607 | * go-lang.c (go_language_data): Likewise. | |
1608 | * language.c (unknown_language_data): Likewise. | |
1609 | (auto_language_data): Likewise. | |
1610 | * language.h (struct language_data): Delete | |
1611 | la_lookup_transparent_type field. | |
1612 | (language_defn::lookup_transparent_type): New member function. | |
1613 | * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type | |
1614 | initializer. | |
1615 | * objc-lang.c (objc_language_data): Likewise. | |
1616 | * opencl-lang.c (opencl_language_data): Likewise. | |
1617 | * p-lang.c (pascal_language_data): Likewise. | |
1618 | * rust-lang.c (rust_language_data): Likewise. | |
1619 | * symtab.c (symbol_matches_domain): Update call. | |
1620 | ||
1fb314aa AB |
1621 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
1622 | ||
1623 | * ada-lang.c (ada_language_arch_info): Delete function, move | |
1624 | implementation to... | |
1625 | (ada_language::language_arch_info): ...here, a new member | |
1626 | function. | |
1627 | (ada_language_data): Delete la_language_arch_info. | |
1628 | * c-lang.c (c_language_data): Likewise. | |
1629 | (c_language::language_arch_info): New member function. | |
1630 | (cplus_language_arch_info): Delete function, move | |
1631 | implementation to... | |
1632 | (cplus_language::language_arch_info): ...here, a new member | |
1633 | function. | |
1634 | (cplus_language_data): Delete la_language_arch_info. | |
1635 | (asm_language_data): Likewise. | |
1636 | (asm_language::language_arch_info): New member function. | |
1637 | (minimal_language_data): Delete la_language_arch_info. | |
1638 | (minimal_language::language_arch_info): New member function. | |
1639 | * d-lang.c (d_language_arch_info): Delete function, move | |
1640 | implementation to... | |
1641 | (d_language::language_arch_info): ...here, a new member | |
1642 | function. | |
1643 | (d_language_data): Delete la_language_arch_info. | |
1644 | * f-lang.c (f_language_arch_info): Delete function, move | |
1645 | implementation to... | |
1646 | (f_language::language_arch_info): ...here, a new member | |
1647 | function. | |
1648 | (f_language_data): Delete la_language_arch_info. | |
1649 | * go-lang.c (go_language_arch_info): Delete function, move | |
1650 | implementation to... | |
1651 | (go_language::language_arch_info): ...here, a new member | |
1652 | function. | |
1653 | (go_language_data): Delete la_language_arch_info. | |
1654 | * language.c (unknown_language_data): Likewise. | |
1655 | (unknown_language::language_arch_info): New member function. | |
1656 | (auto_language_data): Delete la_language_arch_info. | |
1657 | (auto_language::language_arch_info): New member function. | |
1658 | (language_gdbarch_post_init): Update call to | |
1659 | la_language_arch_info. | |
1660 | * language.h (language_data): Delete la_language_arch_info | |
1661 | function pointer. | |
1662 | (language_defn::language_arch_info): New function. | |
1663 | * m2-lang.c (m2_language_arch_info): Delete function, move | |
1664 | implementation to... | |
1665 | (m2_language::language_arch_info): ...here, a new member | |
1666 | function. | |
1667 | (m2_language_data): Delete la_language_arch_info. | |
1668 | * objc-lang.c (objc_language_arch_info): Delete function, move | |
1669 | implementation to... | |
1670 | (objc_language::language_arch_info): ...here, a new member | |
1671 | function. | |
1672 | (objc_language_data): Delete la_language_arch_info. | |
1673 | * opencl-lang.c (opencl_language_arch_info): Delete function, move | |
1674 | implementation to... | |
1675 | (opencl_language::language_arch_info): ...here, a new member | |
1676 | function. | |
1677 | (opencl_language_data): Delete la_language_arch_info. | |
1678 | * p-lang.c (pascal_language_arch_info): Delete function, move | |
1679 | implementation to... | |
1680 | (pascal_language::language_arch_info): ...here, a new member | |
1681 | function. | |
1682 | (pascal_language_data): Delete la_language_arch_info. | |
1683 | * rust-lang.c (rust_language_arch_info): Delete function, move | |
1684 | implementation to... | |
1685 | (rust_language::language_arch_info): ...here, a new member | |
1686 | function. | |
1687 | (rust_language_data): Delete la_language_arch_info. | |
1688 | ||
48448202 AB |
1689 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
1690 | ||
1691 | * ada-lang.c (ada_language_data): Delete la_pass_by_reference | |
1692 | initializer. | |
1693 | * c-lang.c (c_language_data): Likewise. | |
1694 | (cplus_language_data): Likewise. | |
1695 | (cplus_language::pass_by_reference_info): New method. | |
1696 | (asm_language_data): Delete la_pass_by_reference initializer. | |
1697 | (minimal_language_data): Likewise. | |
1698 | * cp-abi.c (cp_pass_by_reference): Remove use of | |
1699 | default_pass_by_reference. | |
1700 | * d-lang.c (d_language_data): Likewise. | |
1701 | * f-lang.c (f_language_data): Likewise. | |
1702 | * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of | |
1703 | default_pass_by_reference. | |
1704 | * go-lang.c (go_language_data): Likewise. | |
1705 | * language.c (language_pass_by_reference): Update. | |
1706 | (default_pass_by_reference): Delete. | |
1707 | (unknown_language_data): Delete la_pass_by_reference | |
1708 | initializer. | |
1709 | (auto_language_data): Likewise. | |
1710 | * language.h (struct language_data): Delete la_pass_by_reference | |
1711 | field. | |
1712 | (language_defn::pass_by_reference_info): New member function. | |
1713 | (default_pass_by_reference): Delete declaration. | |
1714 | * m2-lang.c (m2_language_data): Delete la_pass_by_reference | |
1715 | initializer. | |
1716 | * objc-lang.c (objc_language_data): Likewise. | |
1717 | * opencl-lang.c (opencl_language_data): Likewise. | |
1718 | * p-lang.c (pascal_language_data): Likewise. | |
1719 | * rust-lang.c (rust_language_data): Likewise. | |
1720 | ||
15e5fd35 AB |
1721 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
1722 | ||
1723 | * ada-lang.c (ada_read_var_value): Delete function, move | |
1724 | implementation to... | |
1725 | (ada_language::read_var_value): ...here. | |
1726 | (ada_language_data): Delete la_read_var_value initializer. | |
1727 | * c-lang.c (c_language_data): Likewise. | |
1728 | (cplus_language_data): Likewise. | |
1729 | (minimal_language_data): Likewise. | |
1730 | * d-lang.c (d_language_data): Likewise. | |
1731 | * f-lang.c (f_language_data): Likewise. | |
1732 | * findvar.c (default_read_var_value): Rename to... | |
1733 | (language_defn::read_var_value): ...this. | |
1734 | * findvar.c (read_var_value): Update header comment, and change to | |
1735 | call member function instead of function pointer. | |
1736 | * go-lang.c (go_language_data): Likewise. | |
1737 | * language.c (unknown_language_data): Delete la_read_var_value | |
1738 | initializer. | |
1739 | (auto_language_data): Likewise. | |
1740 | * language.h (struct language_data): Delete la_read_var_value | |
1741 | field. | |
1742 | (language_defn::read_var_value): New member function. | |
1743 | (default_read_var_value): Delete declaration. | |
1744 | * m2-lang.c (m2_language_data): Delete la_read_var_value | |
1745 | initializer. | |
1746 | * objc-lang.c (objc_language_data): Likewise. | |
1747 | * opencl-lang.c (opencl_language_data): Likewise. | |
1748 | * p-lang.c (pascal_language_data): Likewise. | |
1749 | * rust-lang.c (rust_language_data): Likewise. | |
1750 | * value.h (default_read_var_value): Delete declaration. | |
1751 | ||
5bd40f2a AB |
1752 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
1753 | ||
1754 | * ada-lang.c (ada_print_array_index): Delete function, move | |
1755 | implementation to... | |
1756 | (ada_language::print_array_index): ...here. | |
1757 | (ada_language_data): Delete la_print_array_index initializer. | |
1758 | * c-lang.c (c_language_data): Likewise. | |
1759 | (cplus_language_data): Likewise. | |
1760 | (minimal_language_data): Likewise. | |
1761 | * d-lang.c (d_language_data): Likewise. | |
1762 | * f-lang.c (f_language_data): Likewise. | |
1763 | * go-lang.c (go_language_data): Likewise. | |
1764 | * language.c (default_print_array_index): Delete function, move | |
1765 | implementation to... | |
1766 | (language_defn::print_array_index): ...here. | |
1767 | (unknown_language_data): Delete la_print_array_index initializer. | |
1768 | (auto_language_data): Likewise. | |
1769 | * language.h (struct language_data): Delete la_print_array_index | |
1770 | field. | |
1771 | (language_defn::print_array_index): New member function. | |
1772 | (LA_PRINT_ARRAY_INDEX): Update. | |
1773 | (default_print_array_index): Delete declaration. | |
1774 | * m2-lang.c (m2_language_data): Delete la_print_array_index | |
1775 | initializer. | |
1776 | * objc-lang.c (objc_language_data): Likewise. | |
1777 | * opencl-lang.c (opencl_language_data): Likewise. | |
1778 | * p-lang.c (pascal_language_data): Likewise. | |
1779 | * rust-lang.c (rust_language_data): Likewise. | |
1780 | ||
0874fd07 AB |
1781 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
1782 | ||
1783 | * gdb/ada-lang.c (ada_language_defn): Convert to... | |
1784 | (ada_language_data): ...this. | |
1785 | (class ada_language): New class. | |
1786 | (ada_language_defn): New static global. | |
1787 | * gdb/c-lang.c (c_language_defn): Convert to... | |
1788 | (c_language_data): ...this. | |
1789 | (class c_language): New class. | |
1790 | (c_language_defn): New static global. | |
1791 | (cplus_language_defn): Convert to... | |
1792 | (cplus_language_data): ...this. | |
1793 | (class cplus_language): New class. | |
1794 | (cplus_language_defn): New static global. | |
1795 | (asm_language_defn): Convert to... | |
1796 | (asm_language_data): ...this. | |
1797 | (class asm_language): New class. | |
1798 | (asm_language_defn): New static global. | |
1799 | (minimal_language_defn): Convert to... | |
1800 | (minimal_language_data): ...this. | |
1801 | (class minimal_language): New class. | |
1802 | (minimal_language_defn): New static global. | |
1803 | * gdb/d-lang.c (d_language_defn): Convert to... | |
1804 | (d_language_data): ...this. | |
1805 | (class d_language): New class. | |
1806 | (d_language_defn): New static global. | |
1807 | * gdb/f-lang.c (f_language_defn): Convert to... | |
1808 | (f_language_data): ...this. | |
1809 | (class f_language): New class. | |
1810 | (f_language_defn): New static global. | |
1811 | * gdb/go-lang.c (go_language_defn): Convert to... | |
1812 | (go_language_data): ...this. | |
1813 | (class go_language): New class. | |
1814 | (go_language_defn): New static global. | |
1815 | * gdb/language.c (unknown_language_defn): Remove declaration. | |
1816 | (current_language): Initialize to nullptr, real initialization is | |
1817 | moved to _initialize_language. | |
1818 | (languages): Delete global. | |
1819 | (language_defn::languages): Define. | |
1820 | (set_language_command): Use language_defn::languages. | |
1821 | (set_language): Likewise. | |
1822 | (range_error): Likewise. | |
1823 | (language_enum): Likewise. | |
1824 | (language_def): Likewise. | |
1825 | (add_set_language_command): Use language_def::languages for the | |
1826 | language list, and language_def to lookup language pointers. | |
1827 | (skip_language_trampoline): Use language_defn::languages. | |
1828 | (unknown_language_defn): Convert to... | |
1829 | (unknown_language_data): ...this. | |
1830 | (class unknown_language): New class. | |
1831 | (unknown_language_defn): New static global. | |
1832 | (auto_language_defn): Convert to... | |
1833 | (auto_language_data): ...this. | |
1834 | (class auto_language): New class. | |
1835 | (auto_language_defn): New static global. | |
1836 | (language_gdbarch_post_init): Use language_defn::languages. | |
1837 | (_initialize_language): Initialize current_language. | |
1838 | * gdb/language.h (struct language_defn): Rename to... | |
1839 | (struct language_data): ...this. | |
1840 | (struct language_defn): New. | |
1841 | (auto_language_defn): Delete. | |
1842 | (unknown_language_defn): Delete. | |
1843 | (minimal_language_defn): Delete. | |
1844 | (ada_language_defn): Delete. | |
1845 | (asm_language_defn): Delete. | |
1846 | (c_language_defn): Delete. | |
1847 | (cplus_language_defn): Delete. | |
1848 | (d_language_defn): Delete. | |
1849 | (f_language_defn): Delete. | |
1850 | (go_language_defn): Delete. | |
1851 | (m2_language_defn): Delete. | |
1852 | (objc_language_defn): Delete. | |
1853 | (opencl_language_defn): Delete. | |
1854 | (pascal_language_defn): Delete. | |
1855 | (rust_language_defn): Delete. | |
1856 | * gdb/m2-lang.c (m2_language_defn): Convert to... | |
1857 | (m2_language_data): ...this. | |
1858 | (class m2_language): New class. | |
1859 | (m2_language_defn): New static global. | |
1860 | * gdb/objc-lang.c (objc_language_defn): Convert to... | |
1861 | (objc_language_data): ...this. | |
1862 | (class objc_language): New class. | |
1863 | (objc_language_defn): New static global. | |
1864 | * gdb/opencl-lang.c (opencl_language_defn): Convert to... | |
1865 | (opencl_language_data): ...this. | |
1866 | (class opencl_language): New class. | |
1867 | (opencl_language_defn): New static global. | |
1868 | * gdb/p-lang.c (pascal_language_defn): Convert to... | |
1869 | (pascal_language_data): ...this. | |
1870 | (class pascal_language): New class. | |
1871 | (pascal_language_defn): New static global. | |
1872 | * gdb/rust-exp.y (rust_lex_tests): Use language_def to find | |
1873 | language pointer, update comment format. | |
1874 | * gdb/rust-lang.c (rust_language_defn): Convert to... | |
1875 | (rust_language_data): ...this. | |
1876 | (class rust_language): New class. | |
1877 | (rust_language_defn): New static global. | |
1878 | ||
1313c56e AB |
1879 | 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com> |
1880 | ||
1881 | * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New | |
1882 | member variable. | |
1883 | <m_stmt_at_address>: New member variable. | |
1884 | (lnp_state_machine::record_line): Don't record some lines, update | |
1885 | tracking of is_stmt at the same address. | |
1886 | (lnp_state_machine::lnp_state_machine): Initialise new member | |
1887 | variables. | |
1888 | ||
b7ed9f3d ST |
1889 | 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org> |
1890 | ||
1891 | * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add | |
1892 | "-include gnu-nat-mig.h". | |
1893 | * gnu-nat-mig.h: New file. | |
1894 | * gnu-nat.c: Include "gnu-nat-mig.h". | |
1895 | (exc_server, msg_reply_server, notify_server, | |
1896 | process_reply_server): Remove declarations. | |
1897 | ||
14a8ad62 ST |
1898 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
1899 | ||
1900 | * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced, | |
1901 | steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup, | |
1902 | inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports, | |
1903 | inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports, | |
1904 | inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread, | |
1905 | inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal, | |
1906 | inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc, | |
1907 | proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port, | |
1908 | proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions | |
1909 | to gnu_nat_target class. | |
1910 | * gnu-nat.c: Likewise. | |
1911 | (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd, | |
1912 | set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd, | |
1913 | set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target | |
1914 | object. | |
1915 | (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this' | |
1916 | instead of `gnu_target'. | |
1917 | ||
0af5e106 ST |
1918 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
1919 | ||
1920 | * i386-gnu-tdep.c: Include "gdbcore.h" | |
1921 | (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays. | |
1922 | (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL, | |
1923 | I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros | |
1924 | (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p, | |
1925 | i386_gnu_sigcontext_addr): New functions | |
1926 | (i386gnu_init_abi): Register i386_gnu_sigtramp_p, | |
1927 | i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch | |
1928 | tdep. | |
1929 | ||
078f2fc9 ST |
1930 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
1931 | ||
1932 | * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call | |
1933 | before fork_inferior call. Avoid calling it if target_is_pushed returns | |
1934 | true. | |
1935 | ||
53dff92c ST |
1936 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
1937 | ||
1938 | * gnu-nat.h (gnu_target): New variable declaration. | |
1939 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize | |
1940 | gnu_target. | |
1941 | * gnu-nat.c (gnu_target): New variable. | |
1942 | (inf_validate_procs): Pass gnu_target to thread_change_ptid, | |
1943 | add_thread_silent, and add_thread calls. | |
1944 | (gnu_nat_target::create_inferior): Pass gnu_target to | |
1945 | add_thread_silent, thread_change_ptid call. | |
1946 | (gnu_nat_target::detach): Pass gnu_target to detach_inferior | |
1947 | call. | |
1948 | ||
5a8b8627 ST |
1949 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
1950 | ||
1951 | * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable. | |
1952 | (gnu_nat_target::find_memory_regions): Remove unused | |
1953 | `old_address' variable. | |
1954 | ||
366f550a ST |
1955 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
1956 | ||
1957 | * gnu-nat.c: Include "gdbarch.h". | |
1958 | ||
f14871bf ST |
1959 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
1960 | ||
1961 | * reply_mig_hack.awk (Error return): Cast function through | |
1962 | void *, to bypass compiler function call check. | |
1963 | ||
c6887cfb ST |
1964 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
1965 | ||
1966 | * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on | |
1967 | $(srcdir)/reply_mig_hack.awk. | |
1968 | ||
6930bffe ST |
1969 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
1970 | ||
1971 | * gnu-nat.h (gnu_debug_flag): Set type to bool. | |
1972 | ||
112c22ed JG |
1973 | 2020-05-30 Jonny Grant <jg@jguk.org> |
1974 | ||
1975 | * configure.ac (ACX_BUGURL): change bug URL to https. | |
1976 | ||
f68f85b5 PA |
1977 | 2020-05-30 Pedro Alves <palves@redhat.com> |
1978 | ||
1979 | * cp-support.c (replace_typedefs_template): New. | |
1980 | (replace_typedefs_qualified_name): Handle | |
1981 | DEMANGLE_COMPONENT_TEMPLATE. | |
1982 | ||
976ca316 SM |
1983 | 2020-05-29 Simon Marchi <simon.marchi@efficios.com> |
1984 | ||
1985 | * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c, | |
1986 | dwarf2/index-cache.h, dwarf2/index-write.c, | |
1987 | dwarf2/index-write.h, dwarf2/line-header.c, | |
1988 | dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h, | |
1989 | dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile | |
1990 | variables and fields from `dwarf2_per_objfile` to just | |
1991 | `per_objfile` throughout. | |
1992 | ||
989ade05 SM |
1993 | 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca> |
1994 | ||
1995 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
1996 | <push_dwarf_reg_entry_value>: Add comment. | |
1997 | ||
c47bae85 KB |
1998 | 2020-05-28 Kevin Buettner <kevinb@redhat.com> |
1999 | Keith Seitz <keiths@redhat.com> | |
2000 | ||
2001 | * python/python.c (do_start_initialization): Call PyEval_SaveThread | |
2002 | instead of PyEval_ReleaseLock. | |
2003 | (class gdbpy_gil): Move to earlier in file. | |
2004 | (finalize_python): Set gdb_python_initialized. | |
2005 | (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early | |
2006 | when not initialized. | |
2007 | ||
44486dcf SM |
2008 | 2020-05-28 Simon Marchi <simon.marchi@efficios.com> |
2009 | ||
2010 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
2011 | <push_dwarf_reg_entry_value>: Remove assert. Override | |
2012 | per_objfile with caller_per_objfile. | |
2013 | ||
f030440d TV |
2014 | 2020-05-28 Tom de Vries <tdevries@suse.de> |
2015 | ||
2016 | * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit | |
2017 | PR gold/15646 workaround to symbol kind "type". | |
2018 | ||
f0fbb768 TT |
2019 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
2020 | ||
2021 | * dwarf2/read.c (load_partial_dies): Use add_partial_symbol. | |
2022 | ||
af0b2a3e TT |
2023 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
2024 | ||
2025 | * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline. | |
2026 | Use htab_find_with_hash. | |
2027 | <add_abbrev>: Remove "abbrev_number" parameter. | |
2028 | * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove | |
2029 | "abbrev_number" parameter. Use htab_find_slot_with_hash. | |
2030 | (hash_abbrev): Add comment. | |
2031 | (abbrev_table::lookup_abbrev): Move to header file. | |
2032 | (abbrev_table::read): Update. | |
2033 | ||
7d00ffec TT |
2034 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
2035 | ||
2036 | * dwarf2/read.c (struct partial_die_info) <name>: Declare new | |
2037 | method. | |
2038 | <canonical_name>: New member. | |
2039 | <raw_name>: Rename from "name". | |
2040 | (partial_die_info): Initialize canonical_name. | |
2041 | (scan_partial_symbols): Check raw_name. | |
2042 | (partial_die_parent_scope, partial_die_full_name) | |
2043 | (add_partial_symbol, add_partial_subprogram) | |
2044 | (add_partial_enumeration, load_partial_dies): Use "name" method. | |
2045 | (partial_die_info::name): New method. | |
2046 | (partial_die_info::read, guess_partial_die_structure_name) | |
2047 | (partial_die_info::fixup): Update. | |
2048 | ||
697bba18 TT |
2049 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
2050 | ||
2051 | * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline. | |
2052 | <get_ref_die_offset>: Inline. | |
2053 | <get_ref_die_offset_complaint>: New method. | |
2054 | * dwarf2/attribute.c (attribute::form_is_ref): Move to header. | |
2055 | (attribute::get_ref_die_offset_complaint): Rename from | |
2056 | get_ref_die_offset. Just issue complaint. | |
2057 | ||
c17ace43 HD |
2058 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
2059 | ||
2060 | * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars. | |
2061 | ||
96445f0b HD |
2062 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
2063 | ||
2064 | * exec.c (exec_file_attach): Use errno value of first openp failure. | |
2065 | ||
ac637ec3 HD |
2066 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
2067 | ||
2068 | * nat/windows-nat.c (windows_thread_info::~windows_thread_info): | |
2069 | Don't close thread handle. | |
2070 | ||
17ee85fc TT |
2071 | 2020-05-27 Tom Tromey <tom@tromey.com> |
2072 | Simon Marchi <simon.marchi@efficios.com> | |
2073 | ||
2074 | * objfiles.h (struct objfile) <partial_symtabs>: Now a | |
2075 | shared_ptr. | |
2076 | * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New | |
2077 | member. | |
2078 | * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key, | |
2079 | dwarf2_per_bfd_objfile_data_key>: New globals. | |
2080 | (dwarf2_has_info): Use shared dwarf2_per_bfd if possible. | |
2081 | (dwarf2_get_section_info): Use get_dwarf2_per_objfile. | |
2082 | (dwarf2_initialize_objfile): Consider cases where per_bfd can be | |
2083 | shared. | |
2084 | (dwarf2_build_psymtabs): Set objfile::partial_symtabs and | |
2085 | short-circuit when sharing. | |
2086 | (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs. | |
2087 | (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units. | |
2088 | ||
39b16f87 SM |
2089 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2090 | ||
2091 | * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move | |
2092 | to... | |
2093 | (struct dwarf2_per_objfile) <line_header_hash>: ... here. | |
2094 | * dwarf2/read.c (handle_DW_AT_stmt_list): Update. | |
2095 | ||
fcf23d5b SM |
2096 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2097 | ||
2098 | * dwarf2/read.c (struct mapped_index_base) <symbol_name_at, | |
2099 | build_name_components, find_name_components_bounds>: | |
2100 | Add per_objfile parameter. | |
2101 | (struct mapped_index) <symbol_name_at>: Likewise. | |
2102 | (struct mapped_debug_names): Remove constructor. | |
2103 | <dwarf2_per_objfile>: Remove field. | |
2104 | <namei_to_name, symbol_name_at>: Add per_objfile parameter. | |
2105 | (mapped_index_base::find_name_components_bounds, | |
2106 | mapped_index_base::build_name_components, | |
2107 | dw2_expand_symtabs_matching_symbol): Likewise. | |
2108 | (class mock_mapped_index) <symbol_name_at>: Likewise. | |
2109 | (check_match): Likewise. | |
2110 | (check_find_bounds_finds): Likewise. | |
2111 | (test_mapped_index_find_name_component_bounds): Update. | |
2112 | (CHECK_MATCH): Update. | |
2113 | (dw2_expand_symtabs_matching): Update. | |
2114 | (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add | |
2115 | per_objfile parameter. | |
2116 | <find_vec_in_debug_names>: Likewise. | |
2117 | <m_per_objfile>: New field. | |
2118 | (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile | |
2119 | parameter. | |
2120 | (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise. | |
2121 | (dw2_debug_names_iterator::next): Update. | |
2122 | (dw2_debug_names_lookup_symbol): Update. | |
2123 | (dw2_debug_names_expand_symtabs_for_function): Update. | |
2124 | (dw2_debug_names_map_matching_symbols): Update. | |
2125 | (dw2_debug_names_expand_symtabs_matching): Update. | |
2126 | (dwarf2_read_debug_names): Update. | |
2127 | ||
7188ed02 SM |
2128 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2129 | ||
2130 | * dwarf2/read.h (struct dwarf2_cu): Forward-declare. | |
2131 | (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove, | |
2132 | move to dwarf2_per_objfile. | |
2133 | <read_in_chain>: Remove. | |
2134 | (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu, | |
2135 | remove_all_cus, age_comp_units>: New methods. | |
2136 | <m_dwarf2_cus>: New member. | |
2137 | (struct dwarf2_per_cu_data) <cu>: Remove. | |
2138 | * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove. | |
2139 | (age_cached_comp_units, free_one_cached_comp_unit): Remove, | |
2140 | moved to methods of dwarf2_per_objfile. | |
2141 | (dwarf2_clear_marks): Remove. | |
2142 | (dwarf2_queue_item::~dwarf2_queue_item): Update. | |
2143 | (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus. | |
2144 | (dwarf2_per_bfd::free_cached_comp_units): Remove. | |
2145 | (dwarf2_per_objfile::remove_all_cus): New. | |
2146 | (class free_cached_comp_units) <~free_cached_comp_units>: | |
2147 | Update. | |
2148 | (load_cu): Update. | |
2149 | (dw2_do_instantiate_symtab): Adjust. | |
2150 | (fill_in_sig_entry_from_dwo_entry): Adjust. | |
2151 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
2152 | (cutu_reader::cutu_reader): Likewise. | |
2153 | (cutu_reader::keep): Use dwarf2_per_objfile::set_cu. | |
2154 | (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu. | |
2155 | (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu | |
2156 | and dwarf2_per_objfile::age_comp_units. | |
2157 | (load_partial_comp_unit): Update. | |
2158 | (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu. | |
2159 | (process_queue): Likewise. | |
2160 | (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu | |
2161 | backlink. | |
2162 | (dwarf2_read_addr_index): Likewise. | |
2163 | (follow_die_offset): Likewise. | |
2164 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
2165 | (dwarf2_fetch_constant_bytes): Likewise. | |
2166 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
2167 | (follow_die_sig_1): Likewise. | |
2168 | (load_full_type_unit): Likewise. | |
2169 | (read_signatured_type): Likewise. | |
2170 | (dwarf2_cu::dwarf2_cu): Don't set cu field. | |
2171 | (dwarf2_cu::~dwarf2_cu): Remove. | |
2172 | (dwarf2_per_objfile::get_cu): New. | |
2173 | (dwarf2_per_objfile::set_cu): New. | |
2174 | (age_cached_comp_units): Rename to... | |
2175 | (dwarf2_per_objfile::age_comp_units): ... this. Adjust | |
2176 | to std::unordered_map. | |
2177 | (free_one_cached_comp_unit): Rename to... | |
2178 | (dwarf2_per_objfile::remove_cu): ... this. Adjust | |
2179 | to std::unordered_map. | |
2180 | (dwarf2_per_objfile::~dwarf2_per_objfile): New. | |
2181 | (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect | |
2182 | a dwarf2_per_objfile in data. | |
2183 | (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse. | |
2184 | (dwarf2_clear_marks): Remove. | |
2185 | ||
2e671100 SM |
2186 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2187 | ||
2188 | * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace | |
2189 | `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`. | |
2190 | (init_tu_and_read_dwo_dies): Likewise. | |
2191 | (cutu_reader::init_tu_and_read_dwo_dies): Likewise. | |
2192 | (cutu_reader::cutu_reader): Likewise. | |
2193 | (load_partial_comp_unit): Likewise. | |
2194 | (process_psymtab_comp_unit): Update. | |
2195 | (build_type_psymtabs_1): Update. | |
2196 | (process_skeletonless_type_unit): Update. | |
2197 | (load_full_comp_unit): Update. | |
2198 | (find_partial_die): Update. | |
2199 | (dwarf2_read_addr_index): Update. | |
2200 | (read_signatured_type): Update. | |
2201 | ||
2e6a9f79 SM |
2202 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
2203 | ||
2204 | * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header, | |
2205 | m_header_read_in>: New fields. | |
2206 | <get_header>: New method. | |
2207 | * dwarf2/read.c (per_cu_header_read_in): Remove. | |
2208 | (dwarf2_per_cu_data::get_header): New. | |
2209 | (dwarf2_per_cu_data::addr_size): Update. | |
2210 | (dwarf2_per_cu_data::offset_size): Update. | |
2211 | (dwarf2_per_cu_data::ref_addr_size): Update. | |
2212 | ||
1b555f17 SM |
2213 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
2214 | ||
2215 | * dwarf2/read.c (load_cu): Return dwarf2_cu. | |
2216 | (dw2_do_instantiate_symtab): Update. | |
2217 | (queue_and_load_all_dwo_tus): Change parameter from | |
2218 | dwarf2_per_cu_data to dwarf2_cu. | |
2219 | (dwarf2_fetch_die_loc_sect_off): Update. | |
2220 | (dwarf2_fetch_constant_bytes): Update. | |
2221 | (dwarf2_fetch_die_type_sect_off): Update. | |
2222 | ||
8fc0b21d SM |
2223 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
2224 | ||
2225 | * dwarf2/read.c (process_full_comp_unit, | |
2226 | process_full_type_unit): Remove per_cu, per_objfile paramters. | |
2227 | Add dwarf2_cu parameter. | |
2228 | (process_queue): Update. | |
2229 | ||
168c9250 SM |
2230 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
2231 | ||
2232 | * dwarf2/read.c (create_cu_from_index_list): Replace | |
2233 | dwarf2_per_objfile parameter with dwarf2_per_bfd. | |
2234 | (create_cus_from_index_list): Likewise. | |
2235 | (create_cus_from_index): Likewise. | |
2236 | (create_signatured_type_table_from_index): Likewise. | |
2237 | (create_cus_from_debug_names_list): Likewise. | |
2238 | (create_cus_from_debug_names): Likewise. | |
2239 | (dwarf2_read_gdb_index): Update. | |
2240 | (dwarf2_read_debug_names): Update. | |
2241 | ||
e286671b TT |
2242 | 2020-05-27 Tom Tromey <tom@tromey.com> |
2243 | Simon Marchi <simon.marchi@efficios.com> | |
2244 | ||
2245 | * dwarf2/read.h (struct dwarf2_per_objfile) | |
2246 | <get_type_for_signatured_type, set_type_for_signatured_type>: | |
2247 | New methods. | |
2248 | <m_type_map>: New member. | |
2249 | (struct signatured_type) <type>: Remove. | |
2250 | * dwarf2/read.c | |
2251 | (dwarf2_per_objfile::get_type_for_signatured_type, | |
2252 | dwarf2_per_objfile::set_type_for_signatured_type): New. | |
2253 | (get_signatured_type): Use new methods. | |
2254 | ||
8adb8487 TT |
2255 | 2020-05-27 Tom Tromey <tom@tromey.com> |
2256 | Simon Marchi <simon.marchi@efficios.com> | |
2257 | ||
2258 | * dwarf2/read.h (struct type_unit_group_unshareable): New. | |
2259 | (struct dwarf2_per_objfile) <type_units>: New member. | |
2260 | <get_type_unit_group_unshareable>: New method. | |
2261 | * dwarf2/read.c (struct type_unit_group) <compunit_symtab, | |
2262 | num_symtabs, symtabs>: Remove; move to | |
2263 | type_unit_group_unshareable. | |
2264 | (dwarf2_per_objfile::get_type_unit_group_unshareable): New. | |
2265 | (process_full_type_unit, dwarf2_cu::setup_type_unit_groups) | |
2266 | (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable. | |
2267 | ||
127bbf4b SM |
2268 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2269 | ||
2270 | * dwarf2/read.h (struct dwarf2_per_cu_data): | |
2271 | <dwarf2_per_objfile>: Remove. | |
2272 | * dwarf2/read.c (create_cu_from_index_list): Don't assign | |
2273 | dwarf2_per_objfile. | |
2274 | (create_signatured_type_table_from_index): Likewise. | |
2275 | (create_signatured_type_table_from_debug_names): Likewise. | |
2276 | (create_debug_type_hash_table): Likewise. | |
2277 | (fill_in_sig_entry_from_dwo_entry): Likewise. | |
2278 | (create_type_unit_group): Likewise. | |
2279 | (read_comp_units_from_section): Likewise. | |
2280 | (create_cus_hash_table): Likewise. | |
2281 | ||
f6e649dd SM |
2282 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2283 | ||
2284 | * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to | |
2285 | dwarf2_per_cu_data::dwarf2_per_objfile. | |
2286 | (compute_compunit_symtab_includes): Likewise. | |
2287 | (dwarf2_cu::start_symtab): Likewise. | |
2288 | ||
aa66c379 SM |
2289 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
2290 | ||
2291 | * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile | |
2292 | parameter. | |
2293 | * dwarf2/read.c (get_die_type_at_offset): Likewise. | |
2294 | (read_namespace_alias): Update. | |
2295 | (lookup_die_type): Update. | |
2296 | (dwarf2_get_die_type): Add dwarf2_per_objfile parameter. | |
2297 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>: | |
2298 | Update. | |
2299 | (disassemble_dwarf_expression): Update. | |
2300 | ||
120ce1b5 SM |
2301 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2302 | ||
2303 | * dwarf2/read.h (struct dwarf2_queue_item): Add | |
2304 | dwarf2_per_objfile parameter, assign new parameter. | |
2305 | <per_objfile>: New field. | |
2306 | * dwarf2/read.c (free_one_cached_comp_unit): Add | |
2307 | dwarf2_per_objfile parameter. | |
2308 | (queue_comp_unit): Likewise. | |
2309 | (dw2_do_instantiate_symtab): Update. | |
2310 | (process_psymtab_comp_unit): Update. | |
2311 | (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter. | |
2312 | (process_imported_unit_die): Update. | |
2313 | (queue_and_load_dwo_tu): Update. | |
2314 | (follow_die_offset): Update. | |
2315 | (follow_die_sig_1): Update. | |
2316 | ||
9f47c707 SM |
2317 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2318 | ||
2319 | * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove. | |
2320 | * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down. | |
2321 | (read_call_site_scope): Assign per_objfile. | |
2322 | (dwarf2_per_cu_data::objfile): Remove. | |
2323 | * gdbtypes.h (struct call_site) <per_objfile>: New member. | |
2324 | * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add | |
2325 | dwarf2_per_objfile parameter. | |
2326 | * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add | |
2327 | dwarf2_per_objfile parameter. | |
2328 | (dwarf_expr_reg_to_entry_parameter): Add output | |
2329 | dwarf2_per_objfile parameter. | |
2330 | (locexpr_get_frame_base): Update. | |
2331 | (class dwarf_evaluate_loc_desc) <get_tls_address>: Update. | |
2332 | <push_dwarf_reg_entry_value>: Update. | |
2333 | <call_site_to_target_addr>: Update. | |
2334 | (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile | |
2335 | parameter. | |
2336 | (value_of_dwarf_reg_entry): Update. | |
2337 | (rw_pieced_value): Update. | |
2338 | (indirect_synthetic_pointer): Update. | |
2339 | (dwarf2_evaluate_property): Update. | |
2340 | (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile | |
2341 | parameter. | |
2342 | (locexpr_read_variable): Update. | |
2343 | (locexpr_get_symbol_read_needs): Update. | |
2344 | (loclist_read_variable): Update. | |
2345 | ||
14095eb3 SM |
2346 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2347 | ||
2348 | * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off, | |
2349 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
2350 | dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile | |
2351 | parameter. | |
2352 | * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off, | |
2353 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
2354 | dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile | |
2355 | parameter. | |
2356 | * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call, | |
2357 | sect_variable_value): Add dwarf2_per_objfile parameter. | |
2358 | (class dwarf_evaluate_loc_desc) <dwarf_call, | |
2359 | dwarf_variable_value>: Update. | |
2360 | (fetch_const_value_from_synthetic_pointer): Add | |
2361 | dwarf2_per_objfile parameter. | |
2362 | (fetch_const_value_from_synthetic_pointer): Update. | |
2363 | (coerced_pieced_ref): Update. | |
2364 | (class symbol_needs_eval_context) <dwarf_call, | |
2365 | dwarf_variable_value>: Update. | |
2366 | (dwarf2_compile_expr_to_ax): Update. | |
2367 | ||
3c3cd3d4 SM |
2368 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2369 | ||
2370 | * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile | |
2371 | parameter. | |
2372 | (dwarf2_evaluate_loc_desc_full): Update. | |
2373 | ||
82ca3f51 SM |
2374 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2375 | ||
2376 | * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile | |
2377 | parameter. | |
2378 | * dwarf2/read.c (dwarf2_read_addr_index): Likewise. | |
2379 | * dwarf2/loc.c (decode_debug_loclists_addresses): Add | |
2380 | dwarf2_per_objfile parameter. | |
2381 | (decode_debug_loc_dwo_addresses): Likewise. | |
2382 | (dwarf2_find_location_expression): Update. | |
2383 | (class dwarf_evaluate_loc_desc) <get_addr_index>: Update. | |
2384 | (locexpr_describe_location_piece): Add dwarf2_per_objfile | |
2385 | parameter. | |
2386 | (disassemble_dwarf_expression): Add dwarf2_per_objfile | |
2387 | parameter. | |
2388 | (locexpr_describe_location_1): Likewise. | |
2389 | (locexpr_describe_location): Update. | |
2390 | ||
4b167ea1 SM |
2391 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2392 | ||
2393 | * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>: | |
2394 | Remove. | |
2395 | * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove. | |
2396 | * dwarf2/loc.c (dwarf2_find_location_expression): Update. | |
2397 | (dwarf2_compile_property_to_c): Update. | |
2398 | (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter, | |
2399 | use text offset from objfile. | |
2400 | (locexpr_tracepoint_var_ref): Update. | |
2401 | (locexpr_generate_c_location): Update. | |
2402 | (loclist_describe_location): Update. | |
2403 | (loclist_tracepoint_var_ref): Update. | |
2404 | * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add | |
2405 | dwarf2_per_objfile parameter. | |
2406 | * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise, | |
2407 | use text offset from objfile. | |
2408 | (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter. | |
2409 | ||
89b07335 SM |
2410 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2411 | ||
2412 | * dwarf2/expr.h (struct dwarf_expr_context) | |
2413 | <dwarf_expr_context>: Add dwarf2_per_objfile parameter. | |
2414 | <offset>: Remove. | |
2415 | <per_objfile>: New member. | |
2416 | * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add | |
2417 | dwarf2_per_objfile parameter. Don't set offset, set | |
2418 | per_objfile. | |
2419 | (dwarf_expr_context::execute_stack_op): Use offset from objfile. | |
2420 | * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter) | |
2421 | a dwarf2_per_objfile object instead of an offset. | |
2422 | (class dwarf_expr_executor) <dwarf_expr_executor>: Add | |
2423 | constructor. | |
2424 | (execute_stack_op): Add dwarf2_per_objfile parameter, pass it | |
2425 | to dwarf2_expr_executor constructor. Don't set offset. | |
2426 | (dwarf2_fetch_cfa_info): Update. | |
2427 | (struct dwarf2_frame_cache) <text_offset>: Remove. | |
2428 | <per_objfile>: New field. | |
2429 | (dwarf2_frame_cache): Update. | |
2430 | (dwarf2_frame_prev_register): Update. | |
2431 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
2432 | <dwarf_evaluate_loc_desc>: Add constructor. | |
2433 | (dwarf2_evaluate_loc_desc_full): Update. | |
2434 | (dwarf2_locexpr_baton_eval): Update. | |
2435 | (class symbol_needs_eval_context) <symbol_needs_eval_context>: | |
2436 | Add constructor. | |
2437 | (dwarf2_loc_desc_get_symbol_read_needs): Update. | |
2438 | ||
293e7e51 SM |
2439 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2440 | ||
2441 | * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type, | |
2442 | addr_sized_int_type>: Move to dwarf2_cu. | |
2443 | <int_type>: Move to dwarf2_per_objfile. | |
2444 | (struct dwarf2_per_objfile) <int_type>: Move here. | |
2445 | * dwarf2/read.c (struct dwarf2_cu) <addr_type, | |
2446 | addr_sized_int_type>: Move here. | |
2447 | (read_func_scope): Update. | |
2448 | (read_array_type): Update. | |
2449 | (read_tag_string_type): Update. | |
2450 | (attr_to_dynamic_prop): Update. | |
2451 | (dwarf2_per_cu_data::int_type): Rename to... | |
2452 | (dwarf2_per_objfile::int_type): ... this. | |
2453 | (dwarf2_per_cu_data::addr_sized_int_type): Rename to... | |
2454 | (dwarf2_cu::addr_sized_int_type): ... this. | |
2455 | (read_subrange_type): Update. | |
2456 | (dwarf2_per_cu_data::addr_type): Rename to... | |
2457 | (dwarf2_cu::addr_type): ... this. | |
2458 | (set_die_type): Update. | |
2459 | ||
64874a40 SM |
2460 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2461 | ||
2462 | * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile | |
2463 | data through per_cu->cu. | |
2464 | ||
4ab09049 SM |
2465 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2466 | ||
2467 | * dwarf2/read.c (lookup_dwo_comp_unit): Change | |
2468 | dwarf2_per_cu_data parameter fo dwarf2_cu. | |
2469 | (lookup_dwo_type_unit): Likewise. | |
2470 | (read_cutu_die_from_dwo): Likewise. | |
2471 | (lookup_dwo_unit): Likewise. | |
2472 | (open_and_init_dwo_file): Likewise. | |
2473 | (lookup_dwo_cutu): Likewise. | |
2474 | (lookup_dwo_comp_unit): Likewise. | |
2475 | (lookup_dwo_type_unit): Likewise. | |
2476 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
2477 | (cutu_reader::cutu_reader): Update. | |
2478 | ||
47b14e86 SM |
2479 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2480 | ||
2481 | * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile | |
2482 | parameter. | |
2483 | (process_full_type_unit): Likewise. | |
2484 | (process_queue): Update. | |
2485 | ||
43182c09 SM |
2486 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2487 | ||
2488 | * dwarf2/read.c (recursively_compute_inclusions): Add | |
2489 | dwarf2_per_objfile parameter. | |
2490 | (compute_compunit_symtab_includes): Likewise. | |
2491 | (process_cu_includes): Update. | |
2492 | ||
7aa104c4 SM |
2493 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2494 | ||
2495 | * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile | |
2496 | parameter. | |
2497 | (create_type_unit_group): Update. | |
2498 | (process_psymtab_comp_unit_reader): Update. | |
2499 | (build_type_psymtabs_reader): Update. | |
2500 | ||
e3beb21d SM |
2501 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2502 | ||
2503 | * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile | |
2504 | object through m_this_cu->cu. | |
2505 | ||
d460f660 SM |
2506 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
2507 | ||
2508 | * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as | |
2509 | the info parameter. | |
2510 | (queue_and_load_all_dwo_tus): Pass per_cu->cu. | |
2511 | ||
ab432490 SM |
2512 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
2513 | ||
2514 | * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add | |
2515 | per_objfile parameter. | |
2516 | (load_full_type_unit): Add per_objfile parameter. | |
2517 | (read_signatured_type): Likewise. | |
2518 | (load_full_comp_unit): Likewise. | |
2519 | (load_cu): Likewise. | |
2520 | (dw2_do_instantiate_symtab): Likewise. | |
2521 | (dw2_get_file_names): Likewise. | |
2522 | (dw2_map_symtabs_matching_filename): Update. | |
2523 | (dw_expand_symtabs_matching_file_matcher): Update. | |
2524 | (dw2_map_symbol_filenames): Update. | |
2525 | (process_psymtab_comp_unit): Add per_objfile parameter. | |
2526 | (build_type_psymtabs_1): Update. | |
2527 | (process_skeletonless_type_unit): Update. | |
2528 | (dwarf2_build_psymtabs_hard): Update. | |
2529 | (load_partial_comp_unit): Add per_objfile parameter. | |
2530 | (scan_partial_symbols): Update. | |
2531 | (load_full_comp_unit): Add per_objfile parameter. | |
2532 | (process_imported_unit_die): Update. | |
2533 | (create_cus_hash_table): Update. | |
2534 | (find_partial_die): Update. | |
2535 | (dwarf2_read_addr_index): Update. | |
2536 | (follow_die_offset): Update. | |
2537 | (dwarf2_fetch_die_loc_sect_off): Update. | |
2538 | (dwarf2_fetch_constant_bytes): Update. | |
2539 | (dwarf2_fetch_die_type_sect_off): Update. | |
2540 | (follow_die_sig_1): Update. | |
2541 | (load_full_type_unit): Add per_objfile parameter. | |
2542 | (read_signatured_type): Likewise. | |
2543 | ||
313bad1b SM |
2544 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2545 | ||
2546 | * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead | |
2547 | of objfile_name. | |
2548 | ||
c3699833 SM |
2549 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
2550 | ||
2551 | * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member. | |
2552 | (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd. | |
2553 | * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd | |
2554 | field. | |
2555 | (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd. | |
2556 | (create_cus_from_index): Update. | |
2557 | (dwarf2_read_gdb_index): Update. | |
2558 | (create_cus_from_debug_names): Update. | |
2559 | (dwarf2_read_debug_names): Update. | |
2560 | (get_abbrev_section_for_cu): Update. | |
2561 | (create_all_comp_units): Update. | |
2562 | (read_attribute_value): Update. | |
2563 | (get_debug_line_section): Update. | |
2564 | * dwarf2/index-cache.c (index_cache::store): Update. | |
2565 | * dwarf2/index-write.c (save_gdb_index_command): Update. | |
2566 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Update. | |
2567 | ||
1859c670 SM |
2568 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
2569 | ||
2570 | * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New | |
2571 | member. | |
2572 | * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize | |
2573 | dwarf2_per_cu_data::per_bfd. | |
2574 | (dwarf2_per_bfd::allocate_signatured_type): Likewise. | |
2575 | (create_type_unit_group): Likewise. | |
2576 | (queue_comp_unit): Remove reference to | |
2577 | per_cu->dwarf2_per_objfile. | |
2578 | (maybe_queue_comp_unit): Likewise. | |
2579 | (fill_in_sig_entry_from_dwo_entry): Assign new field. | |
2580 | (create_cus_hash_table): Assign new field. | |
2581 | ||
5e22e966 SM |
2582 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2583 | ||
2584 | * dwarf2/read.c: Replace | |
2585 | dwarf2_cu->per_cu->dwarf2_per_objfile references with | |
2586 | dwarf2_cu->per_objfile throughout. | |
2587 | ||
97a1449a SM |
2588 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2589 | ||
2590 | * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile | |
2591 | parameter, don't use per_cu->dwarf2_per_objfile. | |
2592 | (dw2_instantiate_symtab): Likewise. | |
2593 | (dw2_find_last_source_symtab): Update. | |
2594 | (dw2_map_expand_apply): Update. | |
2595 | (dw2_lookup_symbol): Update. | |
2596 | (dw2_expand_symtabs_for_function): Update. | |
2597 | (dw2_expand_all_symtabs): Update. | |
2598 | (dw2_expand_symtabs_with_fullname): Update. | |
2599 | (dw2_expand_symtabs_matching_one): Add per_objfile parameter, | |
2600 | don't use per_cu->dwarf2_per_objfile. | |
2601 | (dw2_expand_marked_cus): Update. | |
2602 | (dw2_find_pc_sect_compunit_symtab): Update. | |
2603 | (dw2_debug_names_lookup_symbol): Update. | |
2604 | (dw2_debug_names_expand_symtabs_for_function): Update. | |
2605 | (dw2_debug_names_map_matching_symbols): Update. | |
2606 | (dwarf2_psymtab::expand_psymtab): Update. | |
2607 | ||
9e021579 SM |
2608 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2609 | ||
2610 | * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter. | |
2611 | <per_objfile>: New member. | |
2612 | (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter. | |
2613 | (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update | |
2614 | call to dwarf2_cu. | |
2615 | (cutu_reader::cutu_reader): Update. | |
2616 | (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile. | |
2617 | ||
ae090bdb SM |
2618 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2619 | ||
2620 | * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to | |
2621 | struct dwarf2_per_objfile. | |
2622 | (struct dwarf2_per_objfile) <die_type_hash>: Move from struct | |
2623 | dwarf2_per_bfd. | |
2624 | * dwarf2/read.c (set_die_type): Update. | |
2625 | (get_die_type_at_offset): Update. | |
2626 | ||
af758d11 SM |
2627 | 2020-05-27 Tom Tromey <tom@tromey.com> |
2628 | Simon Marchi <simon.marchi@efficios.com> | |
2629 | ||
2630 | * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New | |
2631 | method. | |
2632 | (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p, | |
2633 | get_symtab, set_symtab>: New methods. | |
2634 | <m_symtabs>: New field. | |
2635 | (struct dwarf2_psymtab): Derive from partial_symtab. | |
2636 | <readin_p, get_compunit_symtab>: Declare methods. | |
2637 | * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p, | |
2638 | dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab): | |
2639 | New methods. | |
2640 | (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove. | |
2641 | (dw2_do_instantiate_symtab, dw2_instantiate_symtab) | |
2642 | (dw2_map_expand_apply, dw2_map_symtabs_matching_filename) | |
2643 | (dw2_symtab_iter_next, dw2_print_stats) | |
2644 | (dw2_expand_symtabs_with_fullname) | |
2645 | (dw2_expand_symtabs_matching_one) | |
2646 | (dw_expand_symtabs_matching_file_matcher) | |
2647 | (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames) | |
2648 | (dw2_debug_names_iterator::next) | |
2649 | (dw2_debug_names_map_matching_symbols) | |
2650 | (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab) | |
2651 | (process_queue, dwarf2_psymtab::expand_psymtab): Update. | |
2652 | (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab): | |
2653 | New methods. | |
2654 | (get_compunit_symtab, process_full_comp_unit) | |
2655 | (process_full_type_unit): Update. | |
2656 | (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call | |
2657 | ||
5989a64e SM |
2658 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
2659 | ||
2660 | * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd, | |
2661 | then introduce a new dwarf2_per_objfile type. | |
2662 | <read_line_string>: Move to the new dwarf2_per_objfile type. | |
2663 | <objfile>: Likewise. | |
2664 | (dwarf2_per_bfd): Rename dwarf2_per_objfile to this. | |
2665 | * dwarf2/read.c: Replace references to dwarf2_per_objfile with | |
2666 | dwarf2_per_objfile->per_bfd. | |
2667 | (dwarf2_per_objfile::dwarf2_per_objfile): Rename to... | |
2668 | (dwarf2_per_bfd::dwarf2_per_bfd): ... this. | |
2669 | (dwarf2_per_objfile::free_cached_comp_units): Rename to... | |
2670 | (dwarf2_per_bfd::free_cached_comp_units): ... this. | |
2671 | (dwarf2_has_info): Allocate dwarf2_per_bfd. | |
2672 | (dwarf2_per_objfile::locate_sections): Rename to... | |
2673 | (dwarf2_per_bfd::locate_sections): ... this. | |
2674 | (dwarf2_per_objfile::get_cutu): Rename to... | |
2675 | (dwarf2_per_bfd::get_cutu): ... this. | |
2676 | (dwarf2_per_objfile::get_cu): Rename to... | |
2677 | (dwarf2_per_bfd::get_cu): ... this. | |
2678 | (dwarf2_per_objfile::get_tu): Rename to... | |
2679 | (dwarf2_per_bfd::get_tu): ... this. | |
2680 | (dwarf2_per_objfile::allocate_per_cu): Rename to... | |
2681 | (dwarf2_per_bfd::allocate_per_cu): ... this. | |
2682 | (dwarf2_per_objfile::allocate_signatured_type): Rename to... | |
2683 | (dwarf2_per_bfd::allocate_signatured_type): ... this. | |
2684 | (get_gdb_index_contents_ftype): Change parameter from | |
2685 | dwarf2_per_objfile to dwarf2_per_bfd. | |
2686 | * dwarf2/macro.c, dwarf2/index-write.c: Replace references to | |
2687 | dwarf2_per_objfile with dwarf2_per_objfile->per_bfd. | |
2688 | ||
a50264ba TT |
2689 | 2020-05-27 Tom Tromey <tom@tromey.com> |
2690 | Simon Marchi <simon.marchi@efficios.com> | |
2691 | ||
2692 | * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member. | |
2693 | (allocate_piece_closure): Set "per_objfile" member. | |
2694 | (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval) | |
2695 | (locexpr_describe_location, loclist_describe_location): Use new | |
2696 | member. | |
2697 | * dwarf2/read.c (read_call_site_scope) | |
2698 | (mark_common_block_symbol_computed, attr_to_dynamic_prop) | |
2699 | (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off) | |
2700 | (fill_in_loclist_baton, dwarf2_symbol_mark_computed, | |
2701 | handle_data_member_location): Set per_objfile member. | |
2702 | * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New | |
2703 | member. | |
2704 | (struct dwarf2_loclist_baton) <per_objfile>: New member. | |
2705 | ||
d3473f0c TT |
2706 | 2020-05-27 Tom Tromey <tom@tromey.com> |
2707 | ||
2708 | * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu, | |
2709 | allocate_signatured_type>: Declare new methods. | |
2710 | <m_num_psymtabs>: New member. | |
2711 | (struct dwarf2_per_cu_data) <index>: New member. | |
2712 | * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu) | |
2713 | (dwarf2_per_objfile::allocate_signatured_type): New methods. | |
2714 | (create_cu_from_index_list): Use allocate_per_cu. | |
2715 | (create_signatured_type_table_from_index) | |
2716 | (create_signatured_type_table_from_debug_names) | |
2717 | (create_debug_type_hash_table, add_type_unit) | |
2718 | (read_comp_units_from_section): Use allocate_signatured_type. | |
2719 | ||
5717c425 TT |
2720 | 2020-05-27 Tom Tromey <tom@tromey.com> |
2721 | ||
2722 | * psymtab.c (partial_map_expand_apply) | |
2723 | (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol) | |
2724 | (psym_lookup_global_symbol_language) | |
2725 | (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab) | |
2726 | (psym_print_stats, psym_expand_symtabs_for_function) | |
2727 | (psym_map_symbol_filenames, psym_map_matching_symbols) | |
2728 | (psym_expand_symtabs_matching) | |
2729 | (partial_symtab::read_dependencies, maintenance_info_psymtabs) | |
2730 | (maintenance_check_psymtabs): Update. | |
2731 | * psympriv.h (struct partial_symtab) <readin_p, | |
2732 | get_compunit_symtab>: Add objfile parameter. | |
2733 | (struct standard_psymtab) <readin_p, get_compunit_symtab>: | |
2734 | Likewise. | |
2735 | * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p, | |
2736 | get_compunit_symtab>: Likewise. | |
2737 | (dwarf2_psymtab::expand_psymtab): Pass objfile argument. | |
2738 | ||
45940949 TT |
2739 | 2020-05-27 Tom Tromey <tom@tromey.com> |
2740 | ||
2741 | * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New | |
2742 | member. | |
2743 | * dwarf2/read.c (delete_file_name_entry): Fix comment. | |
2744 | (create_cu_from_index_list) | |
2745 | (create_signatured_type_table_from_index) | |
2746 | (create_signatured_type_table_from_debug_names) | |
2747 | (dw2_get_file_names_reader, dwarf2_initialize_objfile) | |
2748 | (dwarf2_create_include_psymtab) | |
2749 | (create_debug_type_hash_table, add_type_unit) | |
2750 | (create_type_unit_group, read_comp_units_from_section) | |
2751 | (dwarf2_compute_name, create_cus_hash_table) | |
2752 | (create_dwp_hash_table, create_dwo_unit_in_dwp_v1) | |
2753 | (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new | |
2754 | obstack. | |
2755 | (dw2_get_real_path): Likewise. Change argument to | |
2756 | dwarf2_per_objfile. | |
2757 | ||
f8c6d152 LM |
2758 | 2020-05-27 Luis Machado <luis.machado@linaro.org> |
2759 | ||
2760 | PR tdep/26000 | |
2761 | * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching | |
2762 | for ldrd (immediate). | |
2763 | ||
e98d2e6d PW |
2764 | 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2765 | ||
2766 | * command.h: Add comment giving the name of class_tui. | |
2767 | * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined, | |
2768 | create the fake command for the help for class_tui. | |
2769 | ||
53a47a3e TT |
2770 | 2020-05-26 Tom Tromey <tromey@adacore.com> |
2771 | ||
2772 | * ada-lang.c (ada_print_array_index): Change type. Call val_atr. | |
2773 | (ada_value_ptr_subscript): Don't call pos_atr on the lower bound. | |
2774 | (val_atr): New function. | |
2775 | (value_val_atr): Use it. | |
2776 | * ada-valprint.c (print_optional_low_bound): Change low bound | |
2777 | handling for enums. | |
2778 | (val_print_packed_array_elements): Don't call discrete_position. | |
2779 | * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call | |
2780 | discrete_position for enum types. | |
2781 | * language.c (default_print_array_index): Change type. | |
2782 | * language.h (struct language_defn) <la_print_array_index>: Add | |
2783 | index_type parameter, change type of index_value. | |
2784 | (LA_PRINT_ARRAY_INDEX): Add index_type parameter. | |
2785 | (default_print_array_index): Update. | |
2786 | * valprint.c (maybe_print_array_index): Don't call | |
2787 | value_from_longest. Update. | |
2788 | (value_print_array_elements): Don't call discrete_position. | |
2789 | ||
0bc2354b TT |
2790 | 2020-05-26 Tom Tromey <tromey@adacore.com> |
2791 | ||
2792 | * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE. | |
2793 | * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE. | |
2794 | ||
1218a4bf CDA |
2795 | 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com> |
2796 | ||
2797 | PR gdb/13519 | |
2798 | * avr-tdep.c (avr_integer_to_address): Return data or code | |
2799 | address accordingly to the second 'type' argument of the | |
2800 | function. | |
2801 | ||
92651b1d MW |
2802 | 2020-05-25 Michael Weghorn <m.weghorn@posteo.de> |
2803 | ||
2804 | * infcmd.c, inferior.h: (construct_inferior_arguments): | |
2805 | Moved function from here to gdbsupport/common-inferior.{h,cc} | |
2806 | ||
0a4f5f8c TT |
2807 | 2020-05-23 Tom Tromey <tom@tromey.com> |
2808 | ||
2809 | Revert commit eca1f90c: | |
2810 | * NEWS: Remove entry for completion styling. | |
2811 | * completer.c (_rl_completion_prefix_display_length): Move | |
2812 | declaration later. | |
2813 | (gdb_fnprint): Revert. | |
2814 | (gdb_display_match_list_1): Likewise. | |
2815 | * cli/cli-style.c (completion_prefix_style) | |
2816 | (completion_difference_style, completion_suffix_style): Remove. | |
2817 | (_initialize_cli_style): Revert. | |
2818 | * cli/cli-style.h (completion_prefix_style) | |
2819 | (completion_difference_style, completion_suffix_style): Don't | |
2820 | declare. | |
2821 | ||
e08bd6c5 PA |
2822 | 2020-05-24 Pedro Alves <palves@redhat.com> |
2823 | ||
2824 | * symtab.c (completion_list_add_name): Return boolean indication | |
2825 | of whether the symbol matched. | |
2826 | (completion_list_add_symbol): Don't try to remove C++ aliases if | |
2827 | the symbol didn't match in the first place. | |
2828 | * symtab.h (completion_list_add_name): Return bool. | |
2829 | ||
ceacbf6e SM |
2830 | 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca> |
2831 | ||
2832 | * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with | |
2833 | type::field. | |
2834 | ||
26f16254 JB |
2835 | 2020-05-23 Joel Brobecker <brobecker@adacore.com> |
2836 | ||
2837 | GDB 9.2 released. | |
2838 | ||
eca1f90c TT |
2839 | 2020-05-23 Tom Tromey <tom@tromey.com> |
2840 | ||
2841 | * NEWS: Add entry for completion styling. | |
2842 | * completer.c (_rl_completion_prefix_display_length): Move | |
2843 | declaration earlier. | |
2844 | (gdb_fnprint): Use completion_style. | |
2845 | (gdb_display_match_list_1): Likewise. | |
2846 | * cli/cli-style.c (completion_prefix_style) | |
2847 | (completion_difference_style, completion_suffix_style): New | |
2848 | globals. | |
2849 | (_initialize_cli_style): Register new globals. | |
2850 | * cli/cli-style.h (completion_prefix_style) | |
2851 | (completion_difference_style, completion_suffix_style): Declare. | |
2852 | ||
51e2cfa2 PA |
2853 | 2020-05-23 Pedro Alves <palves@redhat.com> |
2854 | ||
2855 | * utils.c: Include "gdbsupport/gdb-safe-ctype.h". | |
2856 | (parse_escape): Use ISDIGIT instead of isdigit. | |
2857 | (puts_debug): Use gdb_isprint instead of isprint. | |
2858 | (fprintf_symbol_filtered): Use ISALNUM instead of isalnum. | |
2859 | (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use | |
2860 | ISSPACE instead of isspace. | |
2861 | (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE | |
2862 | instead of isspace. | |
2863 | (strcmp_iw_ordered): Use ISSPACE instead of isspace. | |
2864 | (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT | |
2865 | instead of isxdigit and ISDIGIT instead of isdigit. | |
2866 | ||
80fc5e77 SM |
2867 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
2868 | ||
2869 | * gdbtypes.h (struct type) <field>: New method. | |
2870 | (TYPE_FIELDS): Remove, replace all uses with either type::fields | |
2871 | or type::field. | |
2872 | ||
3cabb6b0 SM |
2873 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
2874 | ||
2875 | * gdbtypes.h (struct type) <fields, set_fields>: New methods. | |
2876 | (TYPE_FIELDS): Use type::fields. Change all call sites that | |
2877 | modify the propery to use type::set_fields instead. | |
2878 | ||
1f704f76 SM |
2879 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
2880 | ||
2881 | * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use | |
2882 | type::num_fields instead. | |
2883 | ||
5e33d5f4 SM |
2884 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
2885 | ||
2886 | * gdbtypes.h (struct type) <num_fields, set_num_fields>: New | |
2887 | methods. | |
2888 | (TYPE_NFIELDS): Use type::num_fields. Change all call sites | |
2889 | that modify the number of fields to use type::set_num_fields | |
2890 | instead. | |
2891 | ||
9392ebb3 TT |
2892 | 2020-05-22 Tom Tromey <tromey@adacore.com> |
2893 | ||
2894 | * compile/compile-object-load.h (munmap_list_free): Don't | |
2895 | declare. | |
2896 | ||
7c13f4e8 AB |
2897 | 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com> |
2898 | ||
2899 | * annotate.c (annotate_source_line): Update return type, add call | |
2900 | to update current symtab and line. | |
2901 | * annotate.h (annotate_source_line): Update return type, and | |
2902 | extend header comment. | |
2903 | * source.c (info_line_command): Check annotation_level before | |
2904 | calling annotate_source_line. | |
2905 | * stack.c (print_frame_info): If calling annotate_source_line | |
2906 | returns true, then don't print any other source line information. | |
2907 | ||
aa370940 SM |
2908 | 2020-05-21 Simon Marchi <simon.marchi@efficios.com> |
2909 | ||
2910 | * lm32-tdep.c (lm32_register_reggroup_p): Fix condition. | |
2911 | ||
84d53fa9 SM |
2912 | 2020-05-21 Simon Marchi <simon.marchi@efficios.com> |
2913 | ||
2914 | * coffread.c (patch_type): Remove NULL check before xfree. | |
2915 | * corefile.c (set_gnutarget): Likewise. | |
2916 | * cp-abi.c (set_cp_abi_as_auto_default): Likewise. | |
2917 | * exec.c (build_section_table): Likewise. | |
2918 | * remote.c (remote_target::pass_signals): Likewise. | |
2919 | * utils.c (n_spaces): Likewise. | |
2920 | * cli/cli-script.c (document_command): Likewise. | |
2921 | * i386-windows-tdep.c (core_process_module_section): Likewise. | |
2922 | * linux-fork.c (struct fork_info) <~fork_info>: Likewise. | |
2923 | ||
9d428aae SM |
2924 | 2020-05-20 Simon Marchi <simon.marchi@efficios.com> |
2925 | ||
2926 | * symfile.c (reread_symbols): Clear objfile's section_offsets | |
2927 | vector and section indices, re-compute them by calling | |
2928 | sym_offsets. | |
2929 | ||
250106a7 TT |
2930 | 2020-05-20 Tom Tromey <tromey@adacore.com> |
2931 | ||
2932 | * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove. | |
ec16513e | 2933 | (desc_one_bound, desc_index_type): Compute field name. |
250106a7 | 2934 | |
9a0bacfb TV |
2935 | 2020-05-20 Tom de Vries <tdevries@suse.de> |
2936 | ||
2937 | PR symtab/25833 | |
2938 | * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index. | |
2939 | ||
7b958a48 AM |
2940 | 2020-05-20 Alan Modra <amodra@gmail.com> |
2941 | ||
2942 | PR 25993 | |
2943 | * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for | |
2944 | bfd_set_filename. | |
2945 | * solib-aix.c (solib_aix_bfd_open): Use std::string for name | |
2946 | passed to bfd_set_filename. | |
2947 | * symfile-mem.c (add_vsyscall_page): Likewise for string | |
2948 | passed to symbol_file_add_from_memory. | |
2949 | (symbol_file_add_from_memory): Make name param a const char* and | |
2950 | don't strdup. | |
2951 | ||
c7e97679 AM |
2952 | 2020-05-20 Alan Modra <amodra@gmail.com> |
2953 | ||
2954 | * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename | |
2955 | rather than accessing bfd->filename directly. | |
2956 | * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise, | |
2957 | and use bfd_section_name. | |
2958 | * dwarf2/frame.c (decode_frame_entry): Likewise. | |
2959 | * exec.c (exec_set_section_address): Likewise. | |
2960 | * solib-aix.c (solib_aix_bfd_open): Likewise. | |
2961 | * stap-probe.c (get_stap_base_address): Likewise. | |
2962 | * symfile.c (reread_symbols): Likewise. | |
2963 | ||
563c591b TT |
2964 | 2020-05-19 Tom Tromey <tromey@adacore.com> |
2965 | ||
2966 | * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open. | |
2967 | ||
f408d82c SM |
2968 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
2969 | ||
2970 | * dwarf2/read.c (quirk_rust_enum): Allocate enough fields. | |
2971 | ||
98c59b52 PA |
2972 | 2020-05-19 Pedro Alves <palves@redhat.com> |
2973 | ||
2974 | * NEWS (set exec-file-mismatch): Adjust entry. | |
2975 | * exec.c: Include "build-id.h". | |
2976 | (validate_exec_file): Try to match build IDs instead of filenames. | |
2977 | * gdb_bfd.c (struct gdb_bfd_open_closure): New. | |
2978 | (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure | |
2979 | and pass down 'warn_if_slow'. | |
2980 | (gdb_bfd_open): Add 'warn_if_slow' parameter. Use | |
2981 | gdb_bfd_open_closure to pass it down. | |
2982 | * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter. | |
2983 | ||
4111f652 PA |
2984 | 2020-05-19 Pedro Alves <palves@redhat.com> |
2985 | ||
2986 | * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust. | |
2987 | * target.c (target_fileio_open_1): Rename to target_fileio_open | |
2988 | and make extern. Use bool. | |
2989 | (target_fileio_open, target_fileio_open_warn_if_slow): Delete. | |
2990 | (target_fileio_read_alloc_1): Adjust. | |
2991 | * target.h (target_fileio_open): Add 'warn_if_slow' parameter. | |
2992 | (target_fileio_open_warn_if_slow): Delete declaration. | |
2993 | ||
ad80db5b PA |
2994 | 2020-05-19 Pedro Alves <palves@redhat.com> |
2995 | ||
2996 | * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1. | |
2997 | Adjust all callers. | |
2998 | ||
1d6ce4d3 YS |
2999 | 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp> |
3000 | ||
3001 | * h8300-tdep.c (h8300_is_argument_spill): Change how we check | |
3002 | whether disp is negative. | |
3003 | ||
9005fbbb SM |
3004 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
3005 | ||
3006 | * symfile.h (struct symfile_segment_data) | |
3007 | <~symfile_segment_data>: Remove. | |
3008 | <segment_info>: Change to std::vector. | |
3009 | * symfile.c (default_symfile_segments): Update. | |
3010 | * elfread.c (elf_symfile_segments): Update. | |
3011 | ||
68b888ff SM |
3012 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
3013 | ||
3014 | * symfile.h (struct symfile_segment_data) <struct segment>: New. | |
3015 | <segments>: New. | |
3016 | <segment_bases, segment_sizes>: Remove. | |
3017 | * symfile.c (default_symfile_segments): Update. | |
3018 | * elfread.c (elf_symfile_segments): Update. | |
3019 | * remote.c (remote_target::get_offsets): Update. | |
3020 | * solib-target.c (solib_target_relocate_section_addresses): | |
3021 | Update. | |
3022 | ||
62982abd SM |
3023 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
3024 | ||
3025 | * symfile.h (struct symfile_segment_data): Initialize fields. | |
3026 | <~symfile_segment_data>: Add. | |
3027 | (symfile_segment_data_up): New. | |
3028 | (struct sym_fns) <sym_segments>: Return a | |
3029 | symfile_segment_data_up. | |
3030 | (default_symfile_segments): Return a symfile_segment_data_up. | |
3031 | (free_symfile_segment_data): Remove. | |
3032 | (get_symfile_segment_data): Return a symfile_segment_data_up. | |
3033 | * symfile.c (default_symfile_segments): Likewise. | |
3034 | (get_symfile_segment_data): Likewise. | |
3035 | (free_symfile_segment_data): Remove. | |
3036 | (symfile_find_segment_sections): Update. | |
3037 | * elfread.c (elf_symfile_segments): Return a | |
3038 | symfile_segment_data_up. | |
3039 | * remote.c (remote_target::get_offsets): Update. | |
3040 | * solib-target.c (solib_target_relocate_section_addresses): | |
3041 | Update. | |
3042 | * symfile-debug.c (debug_sym_segments): Return a | |
3043 | symfile_segment_data_up. | |
3044 | ||
7f204339 RO |
3045 | 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
3046 | ||
e52a0f1b RO |
3047 | PR build/25981 |
3048 | * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap): | |
3049 | Hardcode register numbers. | |
3050 | ||
7f204339 RO |
3051 | PR build/25981 |
3052 | * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry, | |
3053 | procfs_find_LDT_entry): Remove. | |
3054 | * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd, | |
3055 | procfs_find_LDT_entry): Remove. | |
3056 | * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT): | |
3057 | Remove. | |
3058 | ||
7f32a4d5 PA |
3059 | 2020-05-17 Pedro Alves <palves@redhat.com> |
3060 | Andrew Burgess <andrew.burgess@embecosm.com> | |
3061 | Keno Fischer <keno@juliacomputing.com> | |
3062 | ||
3063 | PR gdb/25741 | |
3064 | * breakpoint.c (build_target_condition_list): Update comments. | |
3065 | (build_target_command_list): Update comments and skip matching | |
3066 | locations. | |
3067 | (insert_bp_location): Move "set breakpoint auto-hw on" handling to | |
3068 | a separate function. Simplify "set breakpoint auto-hw off" | |
3069 | handling. | |
3070 | (insert_breakpoints): Update comment. | |
3071 | (tracepoint_locations_match): New parameter. For breakpoints, | |
3072 | compare location types too, if the caller wants to. | |
3073 | (handle_automatic_hardware_breakpoints): New functions. | |
3074 | (bp_location_is_less_than): Also sort by location type and | |
3075 | hardware breakpoint length. | |
3076 | (update_global_location_list): Handle "set breakpoint auto-hw on" | |
3077 | here. | |
3078 | (update_breakpoint_locations): Ask breakpoint_locations_match to | |
3079 | ignore location types. | |
3080 | ||
7d93a1e0 SM |
3081 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
3082 | ||
3083 | * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use | |
3084 | type::name instead. | |
3085 | ||
d0e39ea2 SM |
3086 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
3087 | ||
3088 | * gdbtypes.h (struct type) <name, set_name>: New methods. | |
3089 | (TYPE_CODE): Use type::name. Change all call sites used to set | |
3090 | the name to use type::set_name instead. | |
3091 | ||
2dab0c7b TT |
3092 | 2020-05-16 Tom Tromey <tom@tromey.com> |
3093 | ||
3094 | * top.c (quit_force): Update. | |
3095 | * infrun.c (handle_no_resumed): Update. | |
3096 | * top.h (all_uis): New function. | |
3097 | (ALL_UIS): Remove. | |
3098 | ||
59f7bd8d SM |
3099 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
3100 | ||
3101 | * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition. | |
3102 | ||
9bf058f0 PA |
3103 | 2020-05-16 Pedro Alves <palves@redhat.com> |
3104 | ||
3105 | * ia64-linux-nat.c | |
3106 | (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>: | |
3107 | Declare method. | |
3108 | (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target. | |
3109 | ||
8f86ae1a SM |
3110 | 2020-05-15 Simon Marchi <simon.marchi@efficios.com> |
3111 | ||
3112 | * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct). | |
3113 | (sparc64_adi_info): Likewise. | |
3114 | ||
d6bc0792 TT |
3115 | 2020-05-15 Tom Tromey <tom@tromey.com> |
3116 | ||
3117 | * symtab.c (lookup_language_this, lookup_symbol_aux): Use | |
3118 | block_objfile. | |
3119 | (lookup_objfile_from_block): Remove. | |
3120 | (lookup_symbol_in_block, lookup_symbol_in_static_block) | |
3121 | (lookup_global_symbol): Use block_objfile. | |
3122 | * symtab.h (lookup_objfile_from_block): Don't declare. | |
3123 | * printcmd.c (clear_dangling_display_expressions): Use | |
3124 | block_objfile. | |
3125 | * parse.c (operator_check_standard): Use block_objfile. | |
3126 | ||
8c14c3a3 TT |
3127 | 2020-05-15 Tom Tromey <tom@tromey.com> |
3128 | ||
3129 | * language.c (language_alloc_type_symbol): Set | |
3130 | SYMBOL_SECTION. | |
3131 | * symtab.c (initialize_objfile_symbol): Remove. | |
3132 | (allocate_symbol): Remove. | |
3133 | (allocate_template_symbol): Remove. | |
3134 | * dwarf2/read.c (fixup_go_packaging): Use "new". | |
3135 | (new_symbol): Use "new". | |
3136 | (read_variable): Don't call initialize_objfile_symbol. Use | |
3137 | "new". | |
3138 | (read_func_scope): Use "new". | |
3139 | * xcoffread.c (process_xcoff_symbol): Don't call | |
3140 | initialize_objfile_symbol. | |
3141 | (SYMBOL_DUP): Remove. | |
3142 | * coffread.c (process_coff_symbol, coff_read_enum_type): Use | |
3143 | "new". | |
3144 | * symtab.h (allocate_symbol, initialize_objfile_symbol) | |
3145 | (allocate_template_symbol): Don't declare. | |
3146 | (struct symbol): Add copy constructor. Change defaults. | |
3147 | * jit.c (finalize_symtab): Use "new". | |
3148 | * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb): | |
3149 | Use "new". | |
3150 | * stabsread.c (patch_block_stabs, define_symbol, read_enum_type) | |
3151 | (common_block_end): Use "new". | |
3152 | * mdebugread.c (parse_symbol): Use "new". | |
3153 | (new_symbol): Likewise. | |
3154 | ||
5b4a1a8d PW |
3155 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3156 | ||
3157 | * NEWS: Mention changes to help and apropos. | |
3158 | ||
57b4f16e PW |
3159 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3160 | ||
3161 | * command.h (enum command_class): Improve comments, document | |
3162 | that class_alias is for user-defined aliases, give the class | |
3163 | name for each class, remove unused class_xdb. | |
3164 | * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage. | |
3165 | * breakpoint.c (_initialize_breakpoint): Replace class_alias | |
3166 | by a precise class. | |
3167 | * infcmd.c (_initialize_infcmd): Likewise. | |
3168 | * reverse.c (_initialize_reverse): Likewise. | |
3169 | * stack.c (_initialize_stack): Likewise. | |
3170 | * symfile.c (_initialize_symfile): Likewise. | |
3171 | * tracepoint.c (_initialize_tracepoint): Likewise. | |
3172 | ||
7c05caf7 PW |
3173 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3174 | ||
3175 | * cli/cli-decode.c (apropos_cmd): Produce output for aliases | |
3176 | when their aliased command is traversed. | |
3177 | (help_cmd): Add fput_command_names_styled call to | |
3178 | output command name and aliases when command has an alias. | |
3179 | ||
3b3aaacb PW |
3180 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3181 | ||
3182 | * cli/cli-decode.h (help_cmd_list): Remove declaration. | |
3183 | * cli/cli-decode.c (help_cmd_list): Declare as static, | |
3184 | remove prefix argument, use bool for recurse arg, rework to show the aliases of | |
3185 | a command together with the command. | |
3186 | (fput_command_name_styled, fput_command_names_styled): New functions. | |
3187 | (print_help_for_command): Remove prefix arg, use bool for recurse arg, use | |
3188 | fput_command_name_styled. | |
3189 | (help_list, help_all): Update callers to remove prefix arg and use bool recurse. | |
3190 | * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc. | |
3191 | ||
7aa1b46f PW |
3192 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3193 | ||
3194 | * cli/cli-setshow.h (cmd_show_list): Remove prefix argument. | |
3195 | * cli/cli-decode.c (do_show_prefix_cmd): Likewise. | |
3196 | * command.h (cmd_show_list): Likewise. | |
3197 | * dwarf2/index-cache.c (show_index_cache_command): Likewise. | |
3198 | * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases. | |
3199 | ||
89bcba74 PW |
3200 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3201 | ||
3202 | * unittests/command-def-selftests.c (traverse_command_structure): | |
3203 | Verify all commands of a list have the same prefix command and | |
3204 | that only the top cmdlist commands have a null prefix. | |
3205 | ||
3f4d92eb PW |
3206 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3207 | ||
3208 | * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command | |
3209 | as prefix, not one of its aliases. | |
3210 | (set_cmd_prefix): Remove. | |
3211 | (do_add_cmd): Centralize the setting of the prefix of a command, when | |
3212 | command is defined after its full chain of prefix commands. | |
3213 | (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it. | |
3214 | (add_setshow_cmd_full): Likewise. | |
3215 | (update_prefix_field_of_prefixed_commands): New function. | |
3216 | (add_prefix_cmd): Replace non working call to set_cmd_prefix by | |
3217 | update_prefix_field_of_prefixed_commands. | |
3218 | * gdb/remote-fileio.c (initialize_remote_fileio): Use the real | |
3219 | addresses of remote_set_cmdlist and remote_show_cmdlist given | |
3220 | as argument, not the address of an argument. | |
3221 | * gdb/remote-fileio.h (initialize_remote_fileio): Likewise. | |
3222 | * gdb/remote.c (_initialize_remote): Likewise. | |
3223 | ||
0605465f PW |
3224 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3225 | ||
3226 | * cli/cli-cmds.c (alias_command): Check for an existing alias | |
3227 | using lookup_cmd_composition, as valid_command_p is too strict | |
3228 | and forbids aliases that are the prefix of an existing alias | |
3229 | or command. | |
3230 | * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix | |
3231 | command is properly recognised as a valid command. | |
3232 | ||
58e6ac70 PW |
3233 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3234 | ||
3235 | * unittests/help-doc-selftests.c: Rename to | |
3236 | unittests/command-def-selftests.c | |
3237 | * unittests/command-def-selftests.c (help_doc_tests): Update some | |
3238 | comments. | |
3239 | (command_structure_tests, traverse_command_structure): New namespace | |
3240 | and function. | |
3241 | (command_structure_invariants_tests): New function. | |
3242 | (_initialize_command_def_selftests) Renamed from | |
3243 | _initialize_help_doc_selftests, register command_structure_invariants | |
3244 | selftest. | |
3245 | ||
a7b9ceb8 PW |
3246 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3247 | ||
3248 | * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as | |
3249 | an alias of 'show'. | |
3250 | ||
b2188a06 JB |
3251 | 2020-05-15 Joel Brobecker <brobecker@adacore.com> |
3252 | ||
3253 | * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames | |
3254 | ada_is_fixed_point_type. Update all callers. | |
3255 | (gnat_encoded_fixed_point_delta): Renames ada_delta. Update | |
3256 | all callers. | |
3257 | * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info. | |
3258 | Update all callers. | |
3259 | * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames | |
3260 | print_fixed_point_type. Update all callers. | |
3261 | * ada-valprint.c (ada_value_print_num): Replace call to | |
3262 | ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type. | |
3263 | ||
a51951c2 KB |
3264 | 2020-05-14 Kevin Buettner <kevinb@redhat.com> |
3265 | ||
3266 | * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD | |
3267 | processors. | |
3268 | (cpu_supports_bts): Add CV_AMD case. | |
3269 | ||
29d6859f LM |
3270 | 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com> |
3271 | Simon Marchi <simon.marchi@efficios.com> | |
3272 | ||
3273 | * infrun.c (stop_all_threads): Collect multiple wait events at | |
3274 | each pass. | |
3275 | ||
78134374 SM |
3276 | 2020-05-14 Simon Marchi <simon.marchi@efficios.com> |
3277 | ||
3278 | * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use | |
3279 | type::code instead. | |
3280 | ||
67607e24 SM |
3281 | 2020-05-14 Simon Marchi <simon.marchi@efficios.com> |
3282 | ||
3283 | * gdbtypes.h (struct type) <code, set_code>: New methods. | |
3284 | (TYPE_CODE): Use type::code. Change all call sites used to set | |
3285 | the code to use type::set_code instead. | |
3286 | ||
a05575d3 TBA |
3287 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3288 | Tom de Vries <tdevries@suse.de> | |
3289 | Pedro Alves <palves@redhat.com> | |
3290 | ||
3291 | PR threads/25478 | |
3292 | * infrun.c (stop_all_threads): Do NOT ignore | |
3293 | TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED, | |
3294 | TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses | |
3295 | received. | |
3296 | (handle_no_resumed): Remove code handling a live inferior with no | |
3297 | threads. | |
3298 | * remote.c (has_single_non_exited_thread): New. | |
3299 | (remote_target::update_thread_list): Do not delete a thread if is | |
3300 | the last thread of the process. | |
3301 | * thread.c (thread_select): Call delete_exited_threads instead of | |
3302 | prune_threads. | |
3303 | ||
6ad82919 TBA |
3304 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3305 | ||
3306 | * infrun.c (stop_all_threads): Enable/disable thread events of all | |
3307 | targets. Move a debug message denoting the end of the function | |
3308 | into the SCOPED_EXIT block. | |
3309 | ||
d890404b TBA |
3310 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3311 | ||
3312 | * process-stratum-target.h: Include <set>. | |
3313 | (all_non_exited_process_targets, switch_to_target_no_thread): New | |
3314 | function declarations. | |
3315 | * process-stratum-target.c (all_non_exited_process_targets) | |
3316 | (switch_to_target_no_thread): New function implementations. | |
3317 | ||
293b3ebc TBA |
3318 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3319 | ||
3320 | * infrun.c (handle_inferior_event): Extract out a piece of code | |
3321 | into... | |
3322 | (mark_non_executing_threads): ...this new function. | |
3323 | ||
7ca9b62a TBA |
3324 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3325 | ||
3326 | * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first | |
3327 | use. | |
3328 | ||
fc75c28b TBA |
3329 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3330 | ||
3331 | * regcache.c (regcache_read_pc_protected): New function | |
3332 | implementation that returns 0 if the PC cannot read via | |
3333 | 'regcache_read_pc'. | |
3334 | * infrun.c (proceed): Call 'regcache_read_pc_protected' | |
3335 | instead of 'regcache_read_pc'. | |
3336 | (keep_going_pass_signal): Ditto. | |
3337 | ||
a89febbd TT |
3338 | 2020-05-13 Tom Tromey <tromey@adacore.com> |
3339 | ||
3340 | * ada-lang.c (align_value): Remove. | |
3341 | (ada_template_to_fixed_record_type_1): Use align_up. | |
3342 | ||
f7e23710 TBA |
3343 | 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3344 | ||
3345 | * async-event.c: Update the copyright year. | |
3346 | * async-event.h: Update the copyright year. | |
3347 | ||
02ff80c2 SM |
3348 | 2020-05-12 Simon Marchi <simon.marchi@efficios.com> |
3349 | ||
3350 | * objfiles.h (is_addr_in_objfile, | |
3351 | shared_objfile_contains_address_p): Return bool. | |
3352 | * objfile.c (is_addr_in_objfile, | |
3353 | shared_objfile_contains_address_p): Return bool. | |
3354 | ||
4fd6c7e8 TT |
3355 | 2020-05-11 Tom Tromey <tromey@adacore.com> |
3356 | ||
3357 | * cli/cli-cmds.c (info_command): Restore. | |
3358 | (_initialize_cli_cmds): Use add_prefix_command for "info". | |
3359 | * gdb-gdb.gdb.in: Restore breakpoint on info_command. | |
3360 | ||
5eb68a39 TT |
3361 | 2020-05-11 Tom Tromey <tromey@adacore.com> |
3362 | ||
3363 | * ada-lang.c (ada_value_primitive_field): Now public. | |
3364 | * ada-lang.h (ada_value_primitive_field): Declare. | |
3365 | * ada-valprint.c (print_field_values): Use | |
3366 | ada_value_primitive_field for wrapper fields. | |
3367 | ||
7666722f TV |
3368 | 2020-05-11 Tom de Vries <tdevries@suse.de> |
3369 | ||
3370 | * dwarf2/index-write.c (debug_names::psymbol_tag): Handle | |
3371 | MODULE_DOMAIN. | |
3372 | ||
3ee6bb11 TV |
3373 | 2020-05-11 Tom de Vries <tdevries@suse.de> |
3374 | ||
3375 | PR symtab/25941 | |
3376 | * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs | |
3377 | with length 0, if not gdb-produced. | |
3378 | (cutu_reader::cutu_reader): Set CU length to actual length if 0. | |
3379 | ||
43434996 TV |
3380 | 2020-05-09 Tom de Vries <tdevries@suse.de> |
3381 | ||
3382 | PR gdb/25955 | |
3383 | * break-catch-throw.c (check_status_exception_catchpoint): Fix name | |
3384 | calculation. | |
3385 | ||
2f78cffc TT |
3386 | 2020-05-09 Tom Tromey <tom@tromey.com> |
3387 | ||
3388 | * top.c (server_command): Now bool. | |
3389 | * top.h (server_command): Now bool. | |
3390 | ||
4f7bc5ed TT |
3391 | 2020-05-08 Tom Tromey <tromey@adacore.com> |
3392 | ||
3393 | * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE | |
3394 | already being processed. | |
3395 | ||
8be4b118 TT |
3396 | 2020-05-08 Tom Tromey <tom@tromey.com> |
3397 | ||
3398 | * printcmd.c (struct display) <next>: Remove. | |
3399 | <display>: New constructor. | |
3400 | <exp_string>: Now a std::string. | |
3401 | <enabled_p>: Now a bool. | |
3402 | (display_number): Move definition earlier. | |
3403 | (displays): Rename from display_chain. Now a std::vector. | |
3404 | (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove. | |
3405 | (display_command): Update. | |
3406 | (do_one_display, disable_display) | |
3407 | (enable_disable_display_command, do_enable_disable_display): | |
3408 | Update. | |
3409 | (free_display): Remove. | |
3410 | (clear_displays): Rewrite. | |
3411 | (delete_display): Update. | |
3412 | (map_display_numbers): Use function_view. Remove "data" | |
3413 | parameter. Update. | |
3414 | (do_delete_display): Remove. | |
3415 | (undisplay_command): Update. | |
3416 | (do_one_display, do_displays, disable_display) | |
3417 | (info_display_command): Update. | |
3418 | (do_enable_disable_display): Remove. | |
3419 | (enable_disable_display_command) | |
3420 | (clear_dangling_display_expressions): Update. | |
3421 | ||
94c93c35 TT |
3422 | 2020-05-08 Tom Tromey <tom@tromey.com> |
3423 | ||
3424 | * symtab.c (set_symbol_cache_size) | |
3425 | (maintenance_print_symbol_cache, maintenance_flush_symbol_cache) | |
3426 | (maintenance_print_symbol_cache_statistics): Update. | |
3427 | * symmisc.c (print_symbol_bcache_statistics) | |
3428 | (print_objfile_statistics, maintenance_print_objfiles) | |
3429 | (maintenance_info_symtabs, maintenance_check_symtabs) | |
3430 | (maintenance_expand_symtabs, maintenance_info_line_tables): | |
3431 | Update. | |
3432 | * symfile-debug.c (set_debug_symfile): Update. | |
3433 | * source.c (forget_cached_source_info): Update. | |
3434 | * python/python.c (gdbpy_progspaces): Update. | |
3435 | * psymtab.c (maintenance_info_psymtabs): Update. | |
3436 | * probe.c (parse_probes): Update. | |
3437 | * linespec.c (iterate_over_all_matching_symtabs) | |
3438 | (collect_symtabs_from_filename, search_minsyms_for_name): Update. | |
3439 | * guile/scm-progspace.c (gdbscm_progspaces): Update. | |
3440 | * exec.c (exec_target::close): Update. | |
3441 | * ada-tasks.c (ada_tasks_new_objfile_observer): Update. | |
3442 | * breakpoint.c (print_one_breakpoint_location) | |
3443 | (create_longjmp_master_breakpoint) | |
3444 | (create_std_terminate_master_breakpoint): Update. | |
3445 | * progspace.c (program_spaces): Now a std::vector. | |
3446 | (maybe_new_address_space): Update. | |
3447 | (add_program_space): Remove. | |
3448 | (program_space::program_space): Update. | |
3449 | (remove_program_space): Update. | |
3450 | (number_of_program_spaces): Remove. | |
3451 | (print_program_space, update_address_spaces): Update. | |
3452 | * progspace.h (program_spaces): Change type. | |
3453 | (ALL_PSPACES): Remove. | |
3454 | (number_of_program_spaces): Don't declare. | |
3455 | (struct program_space) <next>: Remove. | |
3456 | ||
a1fd1ac9 TT |
3457 | 2020-05-08 Tom Tromey <tom@tromey.com> |
3458 | ||
3459 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update. | |
3460 | * solib-svr4.c (svr4_fetch_objfile_link_map): Update. | |
3461 | (enable_break): Update. | |
3462 | * solib-frv.c (frv_fdpic_find_global_pointer): Update. | |
3463 | (frv_fdpic_find_canonical_descriptor): Update. | |
3464 | (frv_fetch_objfile_link_map): Update. | |
3465 | * progspace.c (program_space::free_all_objfiles): Update. | |
3466 | (program_space::solibs): New method. | |
3467 | * progspace.h (struct program_space) <solibs>: New method. | |
3468 | * solist.h (master_so_list): Don't declare. | |
3469 | (ALL_SO_LIBS): Remove. | |
3470 | * solib.h (so_list_head): Remove. | |
3471 | (update_solib_list): Update comment. | |
3472 | * solib.c (master_so_list): Remove. | |
3473 | (solib_used, update_solib_list, solib_add) | |
3474 | (info_sharedlibrary_command, clear_solib) | |
3475 | (reload_shared_libraries_1, remove_user_added_objfile): Update. | |
3476 | ||
38eae084 TT |
3477 | 2020-05-08 Tom Tromey <tom@tromey.com> |
3478 | ||
3479 | * extension.c (extension_languages): Now a std::array. | |
3480 | (ALL_EXTENSION_LANGUAGES): Remove. | |
3481 | (get_ext_lang_defn, get_ext_lang_of_file) | |
3482 | (eval_ext_lang_from_control_command): Update. | |
3483 | (finish_ext_lang_initialization) | |
3484 | (auto_load_ext_lang_scripts_for_objfile) | |
3485 | (ext_lang_type_printers::ext_lang_type_printers) | |
3486 | (apply_ext_lang_type_printers) | |
3487 | (ext_lang_type_printers::~ext_lang_type_printers) | |
3488 | (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter) | |
3489 | (preserve_ext_lang_values, get_breakpoint_cond_ext_lang) | |
3490 | (breakpoint_ext_lang_cond_says_stop, check_quit_flag) | |
3491 | (get_matching_xmethod_workers, ext_lang_colorize) | |
3492 | (ext_lang_before_prompt): Update. | |
3493 | (ALL_ENABLED_EXTENSION_LANGUAGES): Remove. | |
3494 | ||
596dc4ad TT |
3495 | 2020-05-08 Tom Tromey <tom@tromey.com> |
3496 | ||
3497 | * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New | |
3498 | overload. | |
3499 | <swap_string, m_string>: Remove. | |
3500 | * symtab.c (demangle_for_lookup, completion_list_add_symbol): | |
3501 | Update. | |
3502 | * stabsread.c (define_symbol, read_type): Update. | |
3503 | * linespec.c (find_linespec_symbols): Update. | |
3504 | * gnu-v3-abi.c (gnuv3_get_typeid): Update. | |
3505 | * dwarf2/read.c (dwarf2_canonicalize_name): Update. | |
3506 | * dbxread.c (read_dbx_symtab): Update. | |
3507 | * cp-support.h (cp_canonicalize_string_full) | |
3508 | (cp_canonicalize_string, cp_canonicalize_string_no_typedefs): | |
3509 | Return unique_xmalloc_ptr. | |
3510 | * cp-support.c (inspect_type): Update. | |
3511 | (cp_canonicalize_string_full): Return unique_xmalloc_ptr. | |
3512 | (cp_canonicalize_string_no_typedefs, cp_canonicalize_string): | |
3513 | Likewise. | |
3514 | * c-typeprint.c (print_name_maybe_canonical): Update. | |
3515 | * break-catch-throw.c (check_status_exception_catchpoint): | |
3516 | Update. | |
3517 | ||
bf4cb9be TV |
3518 | 2020-05-08 Tom de Vries <tdevries@suse.de> |
3519 | ||
3520 | * infrun.c (follow_fork): Copy current_line and current_symtab to | |
3521 | child thread. | |
3522 | ||
a1b68f28 SM |
3523 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
3524 | ||
3525 | * async-event.c (struct async_signal_handler, struct | |
3526 | async_event_handler): Reformat, remove typedef. | |
3527 | ||
98d48915 SM |
3528 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
3529 | ||
3530 | * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users | |
3531 | access thistype->main_type->dyn_prop_list directly. | |
3532 | ||
7aa91313 SM |
3533 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
3534 | ||
3535 | * gdbtypes.h (struct type) <remove_dyn_prop>: New method. | |
3536 | (remove_dyn_prop): Remove. Update all users to use | |
3537 | type::remove_dyn_prop. | |
3538 | * gdbtypes.c (remove_dyn_prop): Rename to... | |
3539 | (type::remove_dyn_prop): ... this. | |
3540 | ||
5c54719c SM |
3541 | 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> |
3542 | ||
3543 | * gdbtypes.h (struct type) <add_dyn_prop>: New method. | |
3544 | (add_dyn_prop): Remove. Update all users to use | |
3545 | type::add_dyn_prop. | |
3546 | * gdbtypes.c (add_dyn_prop): Rename to... | |
3547 | (type::add_dyn_prop): ... this. | |
3548 | ||
24e99c6c SM |
3549 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
3550 | ||
3551 | * gdbtypes.h (struct type) <get_dyn_prop>: New method. | |
3552 | (get_dyn_prop): Remove. Update all users to use | |
3553 | type::dyn_prop. | |
3554 | * gdbtypes.c (get_dyn_prop): Rename to... | |
3555 | (type::dyn_prop): ... this. | |
3556 | ||
0d4bf016 SM |
3557 | 2020-05-06 Simon Marchi <simon.marchi@efficios.com> |
3558 | ||
3559 | * gdbtypes.h (struct main_type) <flag_static>: Remove. | |
3560 | ||
ac4a4f1c SM |
3561 | 2020-05-06 Simon Marchi <simon.marchi@efficios.com> |
3562 | ||
3563 | * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64` | |
3564 | instruction, skip it if it's there. | |
3565 | ||
a3bbacc1 SM |
3566 | 2020-05-05 Simon Marchi <simon.marchi@efficios.com> |
3567 | ||
3568 | * gdbtypes.h (struct main_type) <flag_incomplete>: Remove. | |
3569 | ||
c3236f84 SM |
3570 | 2020-05-04 Simon Marchi <simon.marchi@efficios.com> |
3571 | ||
3572 | * gdbtypes.h (TYPE_INCOMPLETE): Remove. | |
3573 | * gdbtypes.c (recursive_dump_type): Remove use of | |
3574 | TYPE_INCOMPLETE. | |
3575 | ||
3b6acaee TT |
3576 | 2020-05-03 Tom Tromey <tom@tromey.com> |
3577 | ||
3578 | * breakpoint.c (catch_command, tcatch_command): Remove. | |
3579 | (_initialize_breakpoint): Use add_basic_prefix_cmd, | |
3580 | add_show_prefix_cmd. | |
3581 | (set_breakpoint_cmd, show_breakpoint_cmd): Remove | |
3582 | * utils.c (set_internal_problem_cmd, show_internal_problem_cmd): | |
3583 | Remove. | |
3584 | (add_internal_problem_command): Use add_basic_prefix_cmd, | |
3585 | add_show_prefix_cmd. | |
3586 | * mips-tdep.c (set_mipsfpu_command): Remove. | |
3587 | (_initialize_mips_tdep): Use add_basic_prefix_cmd. | |
3588 | * dwarf2/index-cache.c (set_index_cache_command): Remove. | |
3589 | (_initialize_index_cache): Use add_basic_prefix_cmd. | |
3590 | * memattr.c (dummy_cmd): Remove. | |
3591 | (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd. | |
3592 | * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove. | |
3593 | (_initialize_tui_win): Use add_basic_prefix_cmd, | |
3594 | add_show_prefix_cmd. | |
3595 | * cli/cli-logging.c (set_logging_command): Remove. | |
3596 | (_initialize_cli_logging): Use add_basic_prefix_cmd, | |
3597 | add_show_prefix_cmd. | |
3598 | (show_logging_command): Remove. | |
3599 | * target.c (target_command): Remove. | |
3600 | (add_target): Use add_basic_prefix_cmd. | |
3601 | ||
a51119cd HD |
3602 | 2020-05-02 Hannes Domani <ssbssa@yahoo.de> |
3603 | ||
3604 | * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo. | |
3605 | ||
652fc23a | 3606 | 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6a6ea76a | 3607 | |
652fc23a PW |
3608 | * gdb-gdb.gdb-in: Remove breakpoint on disappeared function |
3609 | info_command. | |
3610 | ||
117539e6 KR |
3611 | 2020-04-30 Kamil Rytarowski <n54@gmx.com> |
3612 | ||
3613 | * nbsd-nat.c (nbsd_enable_proc_events) | |
3614 | (nbsd_nat_target::post_startup_inferior): Add. | |
3615 | (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'. | |
3616 | (nbsd_nat_target::update_thread_list): Rewrite. | |
3617 | (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and | |
3618 | "PTRACE_LWP_CREATE". | |
3619 | * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add. | |
3620 | ||
102e38eb | 3621 | 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6a6ea76a | 3622 | |
102e38eb PW |
3623 | * stack.c (_initialize_stack): Remove duplicated creation |
3624 | of "frame" command and "f" alias. | |
3625 | ||
ee9d1e5f HD |
3626 | 2020-04-30 Hannes Domani <ssbssa@yahoo.de> |
3627 | ||
3628 | PR gdb/18706 | |
3629 | * gdbtypes.c (check_typedef): Calculate size of array of | |
3630 | stubbed type. | |
3631 | ||
627c7fb8 HD |
3632 | 2020-04-30 Hannes Domani <ssbssa@yahoo.de> |
3633 | ||
3634 | PR gdb/15559 | |
3635 | * i386-tdep.c (i386_push_dummy_call): Call | |
3636 | i386_thiscall_push_dummy_call. | |
3637 | (i386_thiscall_push_dummy_call): New function. | |
3638 | * i386-tdep.h (i386_thiscall_push_dummy_call): Declare. | |
3639 | * i386-windows-tdep.c (i386_windows_push_dummy_call): New function. | |
3640 | (i386_windows_init_abi): Call set_gdbarch_push_dummy_call. | |
3641 | ||
ffc2844e SM |
3642 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
3643 | ||
3644 | * gdbarch.sh (do_read): Add shellcheck disable directive for | |
3645 | warning SC2162. | |
3646 | ||
1207375d SM |
3647 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
3648 | ||
3649 | * gdbarch.sh: Use ${foo:-} where shellcheck would report a | |
3650 | "referenced but not assigned" warning. | |
3651 | ||
9fdb2916 SM |
3652 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
3653 | ||
3654 | * gdbarch.sh: Remove code that sets fallbackdefault. | |
3655 | ||
759cea5e SM |
3656 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
3657 | ||
3658 | * gdbarch.sh: Use shell operators && and || instead of | |
3659 | -a and -o. | |
3660 | ||
cb02ab24 SM |
3661 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
3662 | ||
3663 | * gdbarch.sh: Use $(...) instead of `...`. | |
3664 | ||
a6fc5ffc SM |
3665 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
3666 | ||
3667 | * gdbarch.sh: Use double quotes around variables. | |
3668 | ||
8d113d13 SM |
3669 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
3670 | ||
3671 | * gdbarch.sh: Use %s with printf, instead of variables in the | |
3672 | format string. | |
3673 | ||
ed6acedd TT |
3674 | 2020-04-29 Tom Tromey <tromey@adacore.com> |
3675 | ||
3676 | PR ada/25875: | |
3677 | * dwarf2/read.c (update_enumeration_type_from_children): Compute | |
3678 | type fields here. | |
3679 | (read_enumeration_type): Call | |
3680 | update_enumeration_type_from_children later. Update comments. | |
3681 | (process_enumeration_scope): Don't create type fields. | |
3682 | ||
b68b1b58 KR |
3683 | 2020-04-29 Kamil Rytarowski <n54@gmx.com> |
3684 | ||
3685 | * nbsd-tdep.c: Include "xml-syscall.h". | |
3686 | (nbsd_init_abi): Call `set_xml_syscall_file_name'. | |
3687 | ||
f94b2e03 KR |
3688 | 2020-04-29 Kamil Rytarowski <n54@gmx.com> |
3689 | ||
3690 | * nbsd-nat.c: Include "sys/wait.h". | |
3691 | (nbsd_resume, nbsd_nat_target::resume, nbsd_wait) | |
3692 | (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint) | |
3693 | (nbsd_nat_target::remove_exec_catchpoint) | |
3694 | (nbsd_nat_target::set_syscall_catchpoint): Add. | |
3695 | * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait) | |
3696 | (nbsd_nat_target::insert_exec_catchpoint) | |
3697 | (nbsd_nat_target::remove_exec_catchpoint) | |
3698 | (nbsd_nat_target::set_syscall_catchpoint): Add. | |
3699 | * nbsd-tdep.c (nbsd_get_syscall_number): Add. | |
3700 | (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass | |
3701 | `nbsd_get_syscall_number'. | |
3702 | ||
fc49bc72 TT |
3703 | 2020-04-29 Tom Tromey <tom@tromey.com> |
3704 | ||
3705 | * stack.c (print_block_frame_labels): Remove. | |
3706 | ||
d642b692 HD |
3707 | 2020-04-29 Hannes Domani <ssbssa@yahoo.de> |
3708 | ||
3709 | PR gdb/17320 | |
3710 | * ada-valprint.c (val_print_packed_array_elements): Move array | |
3711 | end bracket to new line. | |
3712 | (ada_val_print_string): Remove extra spaces before first array | |
3713 | element. | |
3714 | * c-valprint.c (c_value_print_array): Likewise. | |
3715 | * m2-valprint.c (m2_print_array_contents): Likewise. | |
3716 | (m2_value_print_inner): Likewise. | |
3717 | * p-valprint.c (pascal_value_print_inner): Likewise. | |
3718 | * valprint.c (generic_val_print_array): Likewise. | |
3719 | (value_print_array_elements): Move first array element and array | |
3720 | end bracket to new line. | |
3721 | ||
ea90f227 TV |
3722 | 2020-04-29 Tom de Vries <tdevries@suse.de> |
3723 | ||
3724 | PR symtab/25889 | |
3725 | * linespec.c (find_method): Fix ix calculation. | |
3726 | ||
4498ef4f KR |
3727 | 2020-04-28 Kamil Rytarowski <n54@gmx.com> |
3728 | ||
3729 | * syscalls/update-netbsd.sh: New file. | |
3730 | * syscalls/netbsd.xml: Regenerate. | |
3731 | * data-directory/Makefile.in: Register `netbsd.xml' in | |
3732 | `SYSCALLS_FILES'. | |
3733 | ||
a55e30b5 SM |
3734 | 2020-04-28 Simon Marchi <simon.marchi@efficios.com> |
3735 | ||
3736 | * syscalls/update-freebsd.sh: Add double quotes. | |
3737 | ||
2b2fbab8 TT |
3738 | 2020-04-28 Tom Tromey <tom@tromey.com> |
3739 | ||
3740 | * NEWS: Update. | |
3741 | * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI. | |
3742 | (cmdpy_init): Allow class_tui. | |
3743 | ||
a65189c9 TV |
3744 | 2020-04-28 Mark Williams <mark@myosotissp.com> |
3745 | ||
3746 | PR gdb/24480 | |
3747 | * dwarf2read.c: Add missing assingments to list_in_scope when | |
3748 | start_symtab was already called. | |
3749 | ||
1b95cdb7 SM |
3750 | 2020-04-28 Simon Marchi <simon.marchi@efficios.com> |
3751 | ||
3752 | PR gdb/25881 | |
3753 | * dwarf2/read.c (offset_map_type): Use | |
3754 | gdb:hash_enum<sect_offset> as hash function. | |
3755 | ||
15cd93d0 TV |
3756 | 2020-04-28 Tom de Vries <tdevries@suse.de> |
3757 | ||
3758 | * dwarf2/read.c (process_structure_scope): Add symbol for struct decl | |
3759 | with DW_AT_signature. | |
3760 | ||
1eb39914 SM |
3761 | 2020-04-27 Simon Marchi <simon.marchi@efficios.com> |
3762 | ||
3763 | * configure.ac: Remove check for fs_base/gs_base in | |
3764 | user_regs_struct. | |
3765 | * configure: Re-generate. | |
3766 | * config.in: Re-generate. | |
3767 | * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust. | |
3768 | * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers, | |
3769 | amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust. | |
3770 | ||
991a3e2e LM |
3771 | 2020-04-27 Luis Machado <luis.machado@linaro.org> |
3772 | ||
3773 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle | |
3774 | problematic inline frame unwinding situation. | |
3775 | * frame.c (frame_id_computed_p): New function. | |
3776 | * frame.h (frame_id_computed_p): New prototype. | |
3777 | ||
361ba0e8 TT |
3778 | 2020-04-26 Tom Tromey <tom@tromey.com> |
3779 | ||
3780 | * command.h (enum command_class) <class_pseudo>: Remove. | |
3781 | ||
bc3609fd PW |
3782 | 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3783 | ||
3784 | * cli/cli-decode.c (lookup_cmd_composition): Fix comments | |
3785 | and whitespace. | |
3786 | ||
b9771db7 KR |
3787 | 2020-04-25 Kamil Rytarowski <n54@gmx.com> |
3788 | ||
ec16513e SM |
3789 | * inf-ptrace.c (inf_ptrace_target::wait): Remove |
3790 | `PT_GET_PROCESS_STATE' block. | |
b9771db7 | 3791 | |
7151c1af TT |
3792 | 2020-04-24 Tom Tromey <tom@tromey.com> |
3793 | ||
3794 | * symtab.h (symbol_get_demangled_name): Don't declare. | |
3795 | * symtab.c (symbol_get_demangled_name): Remove. | |
3796 | (general_symbol_info::natural_name) | |
3797 | (general_symbol_info::demangled_name): Update. | |
3798 | ||
906bb4c5 TT |
3799 | 2020-04-24 Tom Tromey <tom@tromey.com> |
3800 | ||
3801 | PR rust/25025: | |
3802 | * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust. | |
3803 | ||
bcfe6157 TT |
3804 | 2020-04-24 Tom Tromey <tom@tromey.com> |
3805 | ||
3806 | PR symtab/12707: | |
3807 | * dwarf2/read.c (add_partial_symbol): Use the linkage name if it | |
3808 | exists. | |
3809 | (new_symbol): Likewise. | |
3810 | * compile/compile-object-load.c (get_out_value_type): Use | |
3811 | symbol_matches_search_name. | |
3812 | ||
f049a313 TT |
3813 | 2020-04-24 Tom Tromey <tom@tromey.com> |
3814 | ||
3815 | * dwarf2/read.c (add_partial_symbol): Do not call | |
3816 | compute_and_set_names. | |
3817 | ||
76e288d1 TT |
3818 | 2020-04-24 Tom Tromey <tom@tromey.com> |
3819 | ||
3820 | * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list | |
3821 | overload. | |
3822 | ||
2467f4f6 TT |
3823 | 2020-04-24 Tom Tromey <tom@tromey.com> |
3824 | ||
3825 | * psymtab.c (add_psymbol_to_bcache): Simplify calling convention. | |
3826 | (add_psymbol_to_list): New overload. Make old overload call new | |
3827 | one. | |
3828 | * psympriv.h (add_psymbol_to_list): New overload. | |
3829 | ||
e61108c9 TT |
3830 | 2020-04-24 Tom Tromey <tom@tromey.com> |
3831 | ||
3832 | * dwarf2/read.c (partial_die_info::read) <case | |
3833 | DW_AT_linkage_name>: Use value_as_string. | |
3834 | (dwarf2_string_attr): Use value_as_string. | |
3835 | * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare | |
3836 | method. | |
3837 | * dwarf2/attribute.c (attribute::value_as_string): New method. | |
3838 | ||
8c87a452 TT |
3839 | 2020-04-24 Tom Tromey <tom@tromey.com> |
3840 | ||
3841 | * symtab.c (general_symbol_info::natural_name) | |
3842 | (general_symbol_info::demangled_name): Check for language_rust. | |
3843 | ||
787de330 TT |
3844 | 2020-04-24 Tom Tromey <tom@tromey.com> |
3845 | ||
3846 | * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here... | |
3847 | (dwarf2_physname): ... from here. | |
3848 | (partial_die_info::read): Add Rust "{" hack. | |
3849 | ||
ff985671 TT |
3850 | 2020-04-24 Tom Tromey <tom@tromey.com> |
3851 | ||
3852 | * symtab.h (struct general_symbol_info) <set_demangled_name>: New | |
3853 | method. | |
3854 | (symbol_set_demangled_name): Don't declare. | |
3855 | * symtab.c (general_symbol_info::set_demangled_name): Rename from | |
3856 | symbol_set_demangled_name. | |
3857 | (general_symbol_info::set_language) | |
3858 | (general_symbol_info::compute_and_set_names): Update. | |
3859 | * minsyms.c (minimal_symbol_reader::install): Update. | |
3860 | * dwarf2/read.c (new_symbol): Update. | |
3861 | ||
1acda803 TT |
3862 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
3863 | ||
3864 | PR python/23662: | |
3865 | * python/py-type.c (convert_field): Handle | |
3866 | FIELD_LOC_KIND_DWARF_BLOCK. | |
3867 | (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH. | |
3868 | (typy_get_dynamic): Nw function. | |
3869 | (type_object_getset): Add "dynamic". | |
3870 | * NEWS: Add entry. | |
3871 | ||
d656f129 TT |
3872 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
3873 | ||
3874 | * ada-typeprint.c (print_choices, print_variant_part) | |
3875 | (print_record_field_types_dynamic): New functions. | |
3876 | (print_record_field_types): Use print_record_field_types_dynamic. | |
3877 | ||
7d79de9a TT |
3878 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
3879 | ||
3880 | * dwarf2/read.c (handle_data_member_location): New overload. | |
3881 | (dwarf2_add_field): Use it. | |
3882 | (decode_locdesc): Add "computed" parameter. Update comment. | |
3883 | * gdbtypes.c (is_dynamic_type_internal): Also look for | |
3884 | FIELD_LOC_KIND_DWARF_BLOCK. | |
3885 | (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK. | |
3886 | * gdbtypes.c (is_dynamic_type_internal): Add special case for C++ | |
3887 | virtual base classes. | |
3888 | * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle | |
3889 | FIELD_LOC_KIND_DWARF_BLOCK. | |
3890 | ||
f8e89861 TT |
3891 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
3892 | ||
3893 | * dwarf2/read.c (read_structure_type): Handle dynamic length. | |
3894 | * gdbtypes.c (is_dynamic_type_internal): Check | |
3895 | TYPE_HAS_DYNAMIC_LENGTH. | |
3896 | (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH. | |
3897 | * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH): | |
3898 | New macros. | |
3899 | (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New | |
3900 | constant. | |
3901 | ||
9c6a1327 TT |
3902 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
3903 | ||
3904 | * dwarf2/read.c (struct variant_field): Rewrite. | |
3905 | (struct variant_part_builder): New. | |
3906 | (struct nextfield): Remove "variant" field. Add "offset". | |
3907 | (struct field_info): Add "current_variant_part" and | |
3908 | "variant_parts". | |
3909 | (alloc_discriminant_info): Remove. | |
3910 | (alloc_rust_variant): New function. | |
3911 | (quirk_rust_enum): Update. | |
3912 | (dwarf2_add_field): Set "offset" member. Don't handle | |
3913 | DW_TAG_variant_part. | |
3914 | (offset_map_type): New typedef. | |
3915 | (convert_variant_range, create_one_variant) | |
3916 | (create_one_variant_part, create_variant_parts) | |
3917 | (add_variant_property): New functions. | |
3918 | (dwarf2_attach_fields_to_type): Call add_variant_property. | |
3919 | (read_structure_type): Don't handle DW_TAG_variant_part. | |
3920 | (handle_variant_part, handle_variant): New functions. | |
3921 | (handle_struct_member_die): Use them. | |
3922 | (process_structure_scope): Don't handle variant parts. | |
3923 | * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove. | |
3924 | (struct discriminant_info): Remove. | |
3925 | (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove. | |
3926 | (struct main_type) <flag_discriminated_union>: Remove. | |
3927 | * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite. | |
3928 | (rust_enum_variant): Return int. Remove "contents". Rewrite. | |
3929 | (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp): | |
3930 | Update. | |
3931 | * valops.c (value_union_variant): Remove. | |
3932 | * value.h (value_union_variant): Don't declare. | |
3933 | ||
b249d2c2 TT |
3934 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
3935 | ||
3936 | * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low) | |
3937 | (ada_value_primitive_packed_val): Update. | |
3938 | * ada-valprint.c (ada_value_print_1): Update. | |
3939 | * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct. | |
3940 | (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than | |
3941 | just an address. Use evaluate_for_locexpr_baton. | |
3942 | (dwarf2_evaluate_property): Update. | |
3943 | * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an | |
3944 | array_view. | |
3945 | * findvar.c (default_read_var_value): Update. | |
3946 | * gdbtypes.c (compute_variant_fields_inner) | |
3947 | (resolve_dynamic_type_internal): Update. | |
3948 | (resolve_dynamic_type): Change type of valaddr parameter. | |
3949 | * gdbtypes.h (resolve_dynamic_type): Update. | |
3950 | * valarith.c (value_subscripted_rvalue): Update. | |
3951 | * value.c (value_from_contents_and_address): Update. | |
3952 | ||
61122aa9 TT |
3953 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
3954 | ||
3955 | * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add | |
3956 | "push_initial_value" parameter. | |
3957 | (dwarf2_evaluate_property): Likewise. | |
3958 | * dwarf2/loc.h (dwarf2_evaluate_property): Update. | |
3959 | ||
ef83a141 TT |
3960 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
3961 | ||
3962 | * gdbtypes.c (is_dynamic_type_internal): Check for variant parts. | |
3963 | (variant::matches, compute_variant_fields_recurse) | |
3964 | (compute_variant_fields_inner, compute_variant_fields): New | |
3965 | functions. | |
3966 | (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS. | |
3967 | Use resolved_type after type is made. | |
3968 | (operator==): Add new cases. | |
3969 | * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro. | |
3970 | (struct discriminant_range, struct variant, struct variant_part): | |
3971 | New. | |
3972 | (union dynamic_prop_data) <variant_parts, original_type>: New | |
3973 | members. | |
3974 | (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant. | |
3975 | (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New | |
3976 | constants. | |
3977 | * value.c (unpack_bits_as_long): Now public. | |
3978 | * value.h (unpack_bits_as_long): Declare. | |
3979 | ||
675127ec TT |
3980 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
3981 | ||
3982 | * rs6000-tdep.c (struct ppc_variant): Rename from "variant". | |
3983 | (variants, find_variant_by_arch, rs6000_gdbarch_init): Update. | |
3984 | ||
9852ceef HD |
3985 | 2020-04-24 Hannes Domani <ssbssa@yahoo.de> |
3986 | ||
3987 | * windows-tdep.c (exception_values): Add WOW64 exception numbers. | |
3988 | ||
7632c6ce KR |
3989 | 2020-04-24 Kamil Rytarowski <n54@gmx.com> |
3990 | ||
3991 | * inf-ptrace.h (follow_fork, insert_fork_catchpoint) | |
3992 | (remove_fork_catchpoint, post_startup_inferior) | |
3993 | (post_attach): Move... | |
3994 | * obsd-nat.h (follow_fork, insert_fork_catchpoint) | |
3995 | (remove_fork_catchpoint, post_startup_inferior) | |
3996 | (post_attach): ...here. | |
3997 | * inf-ptrace.c (follow_fork, insert_fork_catchpoint) | |
3998 | (remove_fork_catchpoint, post_startup_inferior) | |
3999 | (post_attach): Move... | |
4000 | * obsd-nat.c (follow_fork, insert_fork_catchpoint) | |
4001 | (remove_fork_catchpoint, post_startup_inferior) | |
4002 | (post_attach): ...here. | |
4003 | ||
7be2bb4f TT |
4004 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
4005 | ||
4006 | * nat/windows-nat.h (struct windows_thread_info) | |
4007 | <pc_adjusted>: New member. | |
4008 | * windows-nat.c (windows_fetch_one_register): Check | |
4009 | pc_adjusted. | |
4010 | (windows_nat_target::get_windows_debug_event) | |
4011 | (windows_nat_target::wait): Set pc_adjusted. | |
4012 | ||
f80cb3b4 TV |
4013 | 2020-04-24 Tom de Vries <tdevries@suse.de> |
4014 | ||
4015 | * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling. | |
4016 | Run gdb-add-index inside temp dir. | |
4017 | ||
29514b87 TT |
4018 | 2020-04-23 Tom Tromey <tromey@adacore.com> |
4019 | ||
4020 | * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter" | |
4021 | in loop. | |
4022 | ||
5939967b LM |
4023 | 2020-04-23 Luis Machado <luis.machado@linaro.org> |
4024 | ||
4025 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use | |
4026 | get_frame_register instead of gdbarch_unwind_pc. | |
4027 | ||
70bc38f5 TV |
4028 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
4029 | ||
4030 | * symtab.c (lookup_global_symbol): Prefer def over decl. | |
4031 | ||
de82891c TV |
4032 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
4033 | ||
4034 | PR symtab/25807 | |
4035 | * block.c (best_symbol, better_symbol): Promote to external. | |
4036 | * block.h (best_symbol, better_symbol): Declare. | |
4037 | * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over | |
4038 | decl. | |
4039 | ||
ecc6c606 TT |
4040 | 2020-04-23 Tom Tromey <tromey@adacore.com> |
4041 | ||
4042 | PR ada/25837: | |
4043 | * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a | |
4044 | "const char *", not a "const std::string &". | |
4045 | <name_and_matcher::operator==>: Update. | |
4046 | * unittests/lookup_name_info-selftests.c: Change type of | |
4047 | "result". | |
4048 | ||
740480b8 TT |
4049 | 2020-04-23 Tom Tromey <tom@tromey.com> |
4050 | ||
4051 | * inferior.h (iterate_over_inferiors): Don't declare. | |
4052 | * inferior.c (iterate_over_inferiors): Remove. | |
4053 | * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it): | |
4054 | Remove. | |
4055 | (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't | |
4056 | use iterate_over_inferiors. | |
4057 | (darwin_resume_inferior_it) | |
4058 | (struct resume_inferior_threads_param) | |
4059 | (darwin_resume_inferior_threads_it): Remove. | |
4060 | (darwin_nat_target::resume): Don't use iterate_over_inferiors. | |
4061 | ||
ae3ab1f0 TV |
4062 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
4063 | ||
4064 | * blockframe.c (find_pc_partial_function): Use | |
4065 | find_pc_sect_compunit_symtab rather than | |
4066 | objfile->sf->qf->find_pc_sect_compunit_symtab. | |
4067 | ||
317d2668 TV |
4068 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
4069 | ||
4070 | PR symtab/25764 | |
4071 | * dwarf2/read.c (scan_partial_symbols): Allow external variable decls | |
4072 | in psymtabs. | |
4073 | ||
eea9e357 TV |
4074 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
4075 | ||
4076 | PR symtab/25801 | |
4077 | * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared | |
4078 | symtabs. | |
4079 | ||
3d5afab3 TV |
4080 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
4081 | ||
4082 | PR symtab/25700 | |
4083 | * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for | |
4084 | CU if already created. | |
4085 | ||
d43b7a2d TBA |
4086 | 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
4087 | ||
4088 | * infrun.c (displaced_step_fixup): Switch to the event_thread | |
4089 | before calling displaced_step_restore, not after. | |
4090 | ||
d89edf9b MM |
4091 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
4092 | ||
4093 | * record-btrace.c (record_btrace_enable_warn): Ignore thread if | |
4094 | its inferior is not recorded by us. | |
4095 | (record_btrace_target_open): Replace call to | |
4096 | all_non_exited_threads () with call to current_inferior | |
4097 | ()->non_exited_threads (). | |
4098 | (record_btrace_target::stop_recording): Likewise. | |
4099 | (record_btrace_target::close): Likewise. | |
4100 | (record_btrace_target::wait): Likewise. | |
4101 | (record_btrace_target::record_stop_replaying): Likewise. | |
4102 | ||
5897fd49 MM |
4103 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
4104 | ||
4105 | * btrace.c (btrace_enable): Throw an error on double enables and | |
4106 | when enabling recording fails. | |
4107 | (btrace_disable): Throw an error if the thread is not recorded. | |
4108 | ||
1a476b6d MM |
4109 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
4110 | ||
4111 | * record-btrace.c (record_btrace_target::fetch_registers): Forward | |
4112 | request if we do not have a thread_info. | |
4113 | ||
4778a5f8 TV |
4114 | 2020-04-21 Tom de Vries <tdevries@suse.de> |
4115 | ||
4116 | PR gdb/25471 | |
4117 | * thread.c | |
4118 | (scoped_restore_current_thread::scoped_restore_current_thread): Catch | |
4119 | exception in get_frame_id. | |
4120 | ||
0fa7617d TT |
4121 | 2020-04-20 Tom Tromey <tromey@adacore.com> |
4122 | ||
4123 | * python/python.c (struct gdbpy_event): Mark move constructor as | |
4124 | noexcept. | |
4125 | * python/py-tui.c (class gdbpy_tui_window_maker): Mark move | |
4126 | constructor as noexcept. | |
4127 | * completer.h (struct completion_result): Mark move constructor as | |
4128 | noexcept. | |
4129 | * completer.c (completion_result::completion_result): Use | |
4130 | initialization style. Don't call reset_match_list. | |
4131 | ||
ad23bda0 MS |
4132 | 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com> |
4133 | ||
4134 | * MAINTAINERS (Write After Approval): Add myself. | |
4135 | ||
45e1f031 TT |
4136 | 2020-04-18 Tom Tromey <tom@tromey.com> |
4137 | ||
4138 | * windows-tdep.c (init_w32_command_list) | |
4139 | (w32_prefix_command_valid): Restore. | |
4140 | (_initialize_windows_tdep): Call init_w32_command_list. | |
4141 | ||
08feed99 TT |
4142 | 2020-04-18 Tom Tromey <tom@tromey.com> |
4143 | ||
4144 | * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update. | |
4145 | * value.c (value_fn_field): Update. | |
4146 | * valops.c (find_function_in_inferior) | |
4147 | (value_allocate_space_in_inferior): Update. | |
4148 | * tui/tui-winsource.c (tui_update_source_windows_with_line): | |
4149 | Update. | |
4150 | * tui/tui-source.c (tui_source_window::set_contents): Update. | |
4151 | * symtab.c (lookup_global_or_static_symbol) | |
4152 | (find_function_start_sal_1, skip_prologue_sal) | |
4153 | (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update. | |
4154 | * symmisc.c (dump_msymbols, dump_symtab_1) | |
4155 | (maintenance_print_one_line_table): Update. | |
4156 | * symfile.c (init_entry_point_info, section_is_mapped) | |
4157 | (list_overlays_command, simple_read_overlay_table) | |
4158 | (simple_overlay_update_1): Update. | |
4159 | * stap-probe.c (handle_stap_probe): Update. | |
4160 | * stabsread.c (dbx_init_float_type, define_symbol) | |
4161 | (read_one_struct_field, read_enum_type, read_range_type): Update. | |
4162 | * source.c (info_line_command): Update. | |
4163 | * python/python.c (gdbpy_source_objfile_script) | |
4164 | (gdbpy_execute_objfile_script): Update. | |
4165 | * python/py-type.c (save_objfile_types): Update. | |
4166 | * python/py-objfile.c (py_free_objfile): Update. | |
4167 | * python/py-inferior.c (python_new_objfile): Update. | |
4168 | * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab) | |
4169 | (dump_psymtab_addrmap_1, maintenance_info_psymtabs) | |
4170 | (maintenance_check_psymtabs): Update. | |
4171 | * printcmd.c (info_address_command): Update. | |
4172 | * objfiles.h (struct objfile) <arch>: New method, from | |
4173 | get_objfile_arch. | |
4174 | (get_objfile_arch): Don't declare. | |
4175 | * objfiles.c (get_objfile_arch): Remove. | |
4176 | (filter_overlapping_sections): Update. | |
4177 | * minsyms.c (msymbol_is_function): Update. | |
4178 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines) | |
4179 | (output_nondebug_symbol): Update. | |
4180 | * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols) | |
4181 | (mdebug_expand_psymtab): Update. | |
4182 | * machoread.c (macho_add_oso_symfile): Update. | |
4183 | * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): | |
4184 | Update. | |
4185 | * linux-fork.c (checkpoint_command): Update. | |
4186 | * linespec.c (convert_linespec_to_sals): Update. | |
4187 | * jit.c (finalize_symtab): Update. | |
4188 | * infrun.c (insert_exception_resume_from_probe): Update. | |
4189 | * ia64-tdep.c (ia64_find_unwind_table): Update. | |
4190 | * hppa-tdep.c (internalize_unwinds): Update. | |
4191 | * gdbtypes.c (get_type_arch, init_float_type, objfile_type): | |
4192 | Update. | |
4193 | * gcore.c (call_target_sbrk): Update. | |
4194 | * elfread.c (record_minimal_symbol, elf_symtab_read) | |
4195 | (elf_rel_plt_read, elf_gnu_ifunc_record_cache) | |
4196 | (elf_gnu_ifunc_resolve_by_got): Update. | |
4197 | * dwarf2/read.c (create_addrmap_from_index) | |
4198 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) | |
4199 | (read_debug_names_from_section) | |
4200 | (process_psymtab_comp_unit_reader, add_partial_symbol) | |
4201 | (add_partial_subprogram, process_full_comp_unit) | |
4202 | (read_file_scope, read_func_scope, read_lexical_block_scope) | |
4203 | (read_call_site_scope, dwarf2_ranges_read) | |
4204 | (dwarf2_record_block_ranges, dwarf2_add_field) | |
4205 | (mark_common_block_symbol_computed, read_tag_pointer_type) | |
4206 | (read_tag_string_type, dwarf2_init_float_type) | |
4207 | (dwarf2_init_complex_target_type, read_base_type) | |
4208 | (partial_die_info::read, partial_die_info::read) | |
4209 | (read_attribute_value, dwarf_decode_lines_1, new_symbol) | |
4210 | (dwarf2_fetch_die_loc_sect_off): Update. | |
4211 | * dwarf2/loc.c (dwarf2_find_location_expression) | |
4212 | (class dwarf_evaluate_loc_desc, rw_pieced_value) | |
4213 | (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval) | |
4214 | (dwarf2_loc_desc_get_symbol_read_needs) | |
4215 | (locexpr_describe_location_piece, locexpr_describe_location_1) | |
4216 | (loclist_describe_location): Update. | |
4217 | * dwarf2/index-write.c (write_debug_names): Update. | |
4218 | * dwarf2/frame.c (dwarf2_build_frame_info): Update. | |
4219 | * dtrace-probe.c (dtrace_process_dof): Update. | |
4220 | * dbxread.c (read_dbx_symtab, dbx_end_psymtab) | |
4221 | (process_one_symbol): Update. | |
4222 | * ctfread.c (ctf_init_float_type, read_base_type): Update. | |
4223 | * coffread.c (coff_symtab_read, enter_linenos, decode_base_type) | |
4224 | (coff_read_enum_type): Update. | |
4225 | * cli/cli-cmds.c (edit_command, list_command): Update. | |
4226 | * buildsym.c (buildsym_compunit::finish_block_internal): Update. | |
4227 | * breakpoint.c (create_overlay_event_breakpoint) | |
4228 | (create_longjmp_master_breakpoint) | |
4229 | (create_std_terminate_master_breakpoint) | |
4230 | (create_exception_master_breakpoint, get_sal_arch): Update. | |
4231 | * block.c (block_gdbarch): Update. | |
4232 | * annotate.c (annotate_source_line): Update. | |
4233 | ||
0743fc83 TT |
4234 | 2020-04-17 Tom Tromey <tromey@adacore.com> |
4235 | ||
4236 | * auto-load.c (show_auto_load_cmd): Remove. | |
4237 | (auto_load_show_cmdlist_get): Use add_show_prefix_cmd. | |
4238 | * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd. | |
4239 | (maintenance_print_arc_command): Remove. | |
4240 | * tui/tui-win.c (tui_command): Remove. | |
4241 | (tui_get_cmd_list): Use add_basic_prefix_cmd. | |
4242 | * tui/tui-layout.c (tui_layout_command): Remove. | |
4243 | (_initialize_tui_layout): Use add_basic_prefix_cmd. | |
4244 | * python/python.c (user_set_python, user_show_python): Remove. | |
4245 | (_initialize_python): Use add_basic_prefix_cmd, | |
4246 | add_show_prefix_cmd. | |
4247 | * guile/guile.c (set_guile_command, show_guile_command): Remove. | |
4248 | (install_gdb_commands): Use add_basic_prefix_cmd, | |
4249 | add_show_prefix_cmd. | |
4250 | (info_guile_command): Remove. | |
4251 | * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove. | |
4252 | (_initialize_dwarf2_read): Use add_basic_prefix_cmd, | |
4253 | add_show_prefix_cmd. | |
4254 | * cli/cli-style.h (class cli_style_option) <add_setshow_commands>: | |
4255 | Remove do_set and do_show parameters. | |
4256 | * cli/cli-style.c (set_style, show_style): Remove. | |
4257 | (_initialize_cli_style): Use add_basic_prefix_cmd, | |
4258 | add_show_prefix_cmd. | |
4259 | (cli_style_option::add_setshow_commands): Remove do_set and | |
4260 | do_show parameters. | |
4261 | (cli_style_option::add_setshow_commands): Use | |
4262 | add_basic_prefix_cmd, add_show_prefix_cmd. | |
4263 | (STYLE_ADD_SETSHOW_COMMANDS): Remove macro. | |
4264 | (set_style_name): Remove. | |
4265 | * cli/cli-dump.c (dump_command, append_command): Remove. | |
4266 | (srec_dump_command, ihex_dump_command, verilog_dump_command) | |
4267 | (tekhex_dump_command, binary_dump_command) | |
4268 | (binary_append_command): Remove. | |
4269 | (_initialize_cli_dump): Use add_basic_prefix_cmd. | |
4270 | * windows-tdep.c (w32_prefix_command_valid): Remove global. | |
4271 | (init_w32_command_list): Remove; move into ... | |
4272 | (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd. | |
4273 | * valprint.c (set_print, show_print, set_print_raw) | |
4274 | (show_print_raw): Remove. | |
4275 | (_initialize_valprint): Use add_basic_prefix_cmd, | |
4276 | add_show_prefix_cmd. | |
4277 | * typeprint.c (set_print_type, show_print_type): Remove. | |
4278 | (_initialize_typeprint): Use add_basic_prefix_cmd, | |
4279 | add_show_prefix_cmd. | |
4280 | * record.c (set_record_command, show_record_command): Remove. | |
4281 | (_initialize_record): Use add_basic_prefix_cmd, | |
4282 | add_show_prefix_cmd. | |
4283 | * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd, | |
4284 | add_show_prefix_cmd. | |
4285 | (info_command, show_command, set_debug, show_debug): Remove. | |
4286 | * top.h (set_history, show_history): Don't declare. | |
4287 | * top.c (set_history, show_history): Remove. | |
4288 | * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd) | |
4289 | (unset_tdesc_cmd): Remove. | |
4290 | (_initialize_target_descriptions): Use add_basic_prefix_cmd, | |
4291 | add_show_prefix_cmd. | |
4292 | * symtab.c (info_module_command): Remove. | |
4293 | (_initialize_symtab): Use add_basic_prefix_cmd. | |
4294 | * symfile.c (overlay_command): Remove. | |
4295 | (_initialize_symfile): Use add_basic_prefix_cmd. | |
4296 | * sparc64-tdep.c (info_adi_command): Remove. | |
4297 | (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd. | |
4298 | * sh-tdep.c (show_sh_command, set_sh_command): Remove. | |
4299 | (_initialize_sh_tdep): Use add_basic_prefix_cmd, | |
4300 | add_show_prefix_cmd. | |
4301 | * serial.c (serial_set_cmd, serial_show_cmd): Remove. | |
4302 | (_initialize_serial): Use add_basic_prefix_cmd, | |
4303 | add_show_prefix_cmd. | |
4304 | * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove. | |
4305 | (_initialize_ser_tcp): Use add_basic_prefix_cmd, | |
4306 | add_show_prefix_cmd. | |
4307 | * rs6000-tdep.c (set_powerpc_command, show_powerpc_command) | |
4308 | (_initialize_rs6000_tdep): Use add_basic_prefix_cmd, | |
4309 | add_show_prefix_cmd. | |
4310 | * riscv-tdep.c (show_riscv_command, set_riscv_command) | |
4311 | (show_debug_riscv_command, set_debug_riscv_command): Remove. | |
4312 | (_initialize_riscv_tdep): Use add_basic_prefix_cmd, | |
4313 | add_show_prefix_cmd. | |
4314 | * remote.c (remote_command, set_remote_cmd): Remove. | |
4315 | (_initialize_remote): Use add_basic_prefix_cmd. | |
4316 | * record-full.c (set_record_full_command) | |
4317 | (show_record_full_command): Remove. | |
4318 | (_initialize_record_full): Use add_basic_prefix_cmd, | |
4319 | add_show_prefix_cmd. | |
4320 | * record-btrace.c (cmd_set_record_btrace) | |
4321 | (cmd_show_record_btrace, cmd_set_record_btrace_bts) | |
4322 | (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt) | |
4323 | (cmd_show_record_btrace_pt): Remove. | |
4324 | (_initialize_record_btrace): Use add_basic_prefix_cmd, | |
4325 | add_show_prefix_cmd. | |
4326 | * ravenscar-thread.c (set_ravenscar_command) | |
4327 | (show_ravenscar_command): Remove. | |
4328 | (_initialize_ravenscar): Use add_basic_prefix_cmd, | |
4329 | add_show_prefix_cmd. | |
4330 | * mips-tdep.c (show_mips_command, set_mips_command) | |
4331 | (_initialize_mips_tdep): Use add_basic_prefix_cmd, | |
4332 | add_show_prefix_cmd. | |
4333 | * maint.c (maintenance_command, maintenance_info_command) | |
4334 | (maintenance_check_command, maintenance_print_command) | |
4335 | (maintenance_set_cmd, maintenance_show_cmd): Remove. | |
4336 | (_initialize_maint_cmds): Use add_basic_prefix_cmd, | |
4337 | add_show_prefix_cmd. | |
4338 | (show_per_command_cmd): Remove. | |
4339 | * maint-test-settings.c (maintenance_set_test_settings_cmd): | |
4340 | Remove. | |
4341 | (maintenance_show_test_settings_cmd): Remove. | |
4342 | (_initialize_maint_test_settings): Use add_basic_prefix_cmd, | |
4343 | add_show_prefix_cmd. | |
4344 | * maint-test-options.c (maintenance_test_options_command): | |
4345 | Remove. | |
4346 | (_initialize_maint_test_options): Use add_basic_prefix_cmd. | |
4347 | * macrocmd.c (macro_command): Remove | |
4348 | (_initialize_macrocmd): Use add_basic_prefix_cmd. | |
4349 | * language.c (set_check, show_check): Remove. | |
4350 | (_initialize_language): Use add_basic_prefix_cmd, | |
4351 | add_show_prefix_cmd. | |
4352 | * infcmd.c (unset_command): Remove. | |
4353 | (_initialize_infcmd): Use add_basic_prefix_cmd. | |
4354 | * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove. | |
4355 | (_initialize_i386_tdep): Use add_basic_prefix_cmd, | |
4356 | add_show_prefix_cmd. | |
4357 | * go32-nat.c (go32_info_dos_command): Remove. | |
4358 | (_initialize_go32_nat): Use add_basic_prefix_cmd. | |
4359 | * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd) | |
4360 | (do_show_prefix_cmd, add_show_prefix_cmd): New functions. | |
4361 | * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove. | |
4362 | (_initialize_frame): Use add_basic_prefix_cmd, | |
4363 | add_show_prefix_cmd. | |
4364 | * dcache.c (set_dcache_command, show_dcache_command): Remove. | |
4365 | (_initialize_dcache): Use add_basic_prefix_cmd, | |
4366 | add_show_prefix_cmd. | |
4367 | * cp-support.c (maint_cplus_command): Remove. | |
4368 | (_initialize_cp_support): Use add_basic_prefix_cmd. | |
4369 | * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd) | |
4370 | (maint_btrace_show_cmd, maint_btrace_pt_set_cmd) | |
4371 | (maint_btrace_pt_show_cmd, _initialize_btrace): Use | |
4372 | add_basic_prefix_cmd, add_show_prefix_cmd. | |
4373 | * breakpoint.c (save_command): Remove. | |
4374 | (_initialize_breakpoint): Use add_basic_prefix_cmd. | |
4375 | * arm-tdep.c (set_arm_command, show_arm_command): Remove. | |
4376 | (_initialize_arm_tdep): Use add_basic_prefix_cmd, | |
4377 | add_show_prefix_cmd. | |
4378 | * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd) | |
4379 | (set_ada_command, show_ada_command): Remove. | |
4380 | (_initialize_ada_language): Use add_basic_prefix_cmd, | |
4381 | add_show_prefix_cmd. | |
4382 | * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare. | |
4383 | ||
3557f442 KR |
4384 | 2020-04-16 Kamil Rytarowski <n54@gmx.com> |
4385 | ||
4386 | * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove. | |
4387 | * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise. | |
4388 | ||
16197208 SM |
4389 | 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca> |
4390 | ||
4391 | * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to | |
4392 | warning messages. | |
4393 | ||
00ac85d3 SM |
4394 | 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca> |
4395 | ||
4396 | * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where | |
4397 | import table is not at beginning of .idata section. | |
4398 | ||
381ce63f PA |
4399 | 2020-04-16 Pedro Alves <palves@redhat.com> |
4400 | ||
4401 | * inferior.c (delete_inferior): Use delete operator directly | |
4402 | instead of delete_program_space. | |
4403 | * progspace.c (add_program_space): New, factored out from | |
4404 | program_space::program_space. | |
4405 | (remove_program_space): New, factored out from | |
4406 | delete_program_space. | |
4407 | (program_space::program_space): Remove intro comment. Rewrite. | |
4408 | (program_space::~program_space): Remove intro comment. Call | |
4409 | remove_program_space. | |
4410 | (delete_program_space): Delete. | |
4411 | * progspace.h (program_space::program_space): Make explicit. Move | |
4412 | intro comment here, adjusted. | |
4413 | (program_space::~program_space): Move intro comment here, | |
4414 | adjusted. | |
4415 | (delete_program_space): Remove. | |
4416 | ||
a010605f TT |
4417 | 2020-04-16 Tom Tromey <tromey@adacore.com> |
4418 | ||
4419 | * windows-nat.c (windows_nat::handle_access_violation): New | |
4420 | function. | |
4421 | * nat/windows-nat.h (handle_access_violation): Declare. | |
4422 | * nat/windows-nat.c (handle_exception): Move Cygwin code to | |
4423 | windows-nat.c. Call handle_access_violation. | |
4424 | ||
efba5c23 TV |
4425 | 2020-04-16 Tom de Vries <tdevries@suse.de> |
4426 | ||
4427 | PR symtab/25791 | |
4428 | * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for | |
4429 | CUs without psymtab. | |
4430 | ||
97ed802d KB |
4431 | 2020-04-16 Kevin Buettner <kevinb@redhat.com> |
4432 | ||
4433 | * python/python.c (do_start_initialization): Don't call | |
4434 | PyEval_InitThreads for Python 3.9 and beyond. | |
4435 | ||
c7d64809 KR |
4436 | 2020-04-15 Kamil Rytarowski <n54@gmx.com> |
4437 | ||
4438 | * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to | |
4439 | thread functions. | |
4440 | (obsd_nat_target::wait): Likewise. | |
4441 | ||
ce127a96 TT |
4442 | 2020-04-15 Tom Tromey <tromey@adacore.com> |
4443 | ||
4444 | * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM) | |
4445 | (DEBUG_EXCEPT): Use debug_printf. | |
4446 | ||
99f1bc6a AB |
4447 | 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com> |
4448 | ||
4449 | * completer.c (class completion_tracker::completion_hash_entry) | |
4450 | <hash_name>: New member function. | |
4451 | (completion_tracker::discard_completions): New callback to hash a | |
4452 | completion_hash_entry, pass this to htab_create_alloc. | |
4453 | ||
a0e9b532 JT |
4454 | 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk> |
4455 | ||
4456 | * windows-nat.c (windows_make_so): Warn rather than stopping with | |
4457 | an error if realpath() fails. | |
4458 | ||
06ca5dd4 KR |
4459 | 2020-04-14 Kamil Rytarowski <n54@gmx.com> |
4460 | ||
4461 | * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New. | |
4462 | (nbsd_nat_target::info_proc): Add do_status. | |
4463 | ||
194d088f TV |
4464 | 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca> |
4465 | Tom de Vries <tdevries@suse.de> | |
4466 | ||
4467 | PR symtab/25718 | |
4468 | * psympriv.h (struct partial_symtab::read_symtab) | |
4469 | (struct partial_symtab::expand_psymtab) | |
4470 | (struct partial_symtab::read_dependencies): Update comments. | |
4471 | * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call | |
4472 | read_symtab for includer. | |
4473 | (struct dwarf2_include_psymtab::expand_psymtab): Assert false. | |
4474 | (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer. | |
4475 | (struct dwarf2_include_psymtab::m_readin): Remove. | |
4476 | (struct dwarf2_include_psymtab::includer): New member function. | |
4477 | (dwarf2_psymtab::expand_psymtab): Assert !readin. | |
4478 | ||
c1a66c06 TV |
4479 | 2020-04-14 Tom de Vries <tdevries@suse.de> |
4480 | ||
4481 | PR symtab/25720 | |
4482 | * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching | |
4483 | with NULL symbol_matcher and lookup_name. | |
4484 | * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher | |
4485 | and lookup_name. | |
4486 | * dwarf2/read.c (dw2_expand_symtabs_matching) | |
4487 | (dw2_debug_names_expand_symtabs_matching): Same. | |
4488 | * symfile.h (struct quick_symbol_functions::expand_symtabs_matching): | |
4489 | Make lookup_name a pointer. Update comment. | |
4490 | * symtab.c (global_symbol_searcher::expand_symtabs): Handle | |
4491 | lookup_name being a pointer. | |
4492 | * symfile.c (expand_symtabs_matching): Same. | |
4493 | * symfile-debug.c (debug_qf_expand_symtabs_matching): Same. | |
4494 | * linespec.c (iterate_over_all_matching_symtabs): Same. | |
4495 | ||
400b5eca TT |
4496 | 2020-04-13 Tom Tromey <tom@tromey.com> |
4497 | ||
4498 | * run-on-main-thread.c: Update include. | |
4499 | * unittests/main-thread-selftests.c: Update include. | |
4500 | * tui/tui-win.c: Update include. | |
4501 | * tui/tui-io.c: Update include. | |
4502 | * tui/tui-interp.c: Update include. | |
4503 | * tui/tui-hooks.c: Update include. | |
4504 | * top.h: Update include. | |
4505 | * top.c: Update include. | |
4506 | * ser-base.c: Update include. | |
4507 | * remote.c: Update include. | |
4508 | * remote-notif.c: Update include. | |
4509 | * remote-fileio.c: Update include. | |
4510 | * record-full.c: Update include. | |
4511 | * record-btrace.c: Update include. | |
4512 | * python/python.c: Update include. | |
4513 | * posix-hdep.c: Update include. | |
4514 | * mingw-hdep.c: Update include. | |
4515 | * mi/mi-main.c: Update include. | |
4516 | * mi/mi-interp.c: Update include. | |
4517 | * main.c: Update include. | |
4518 | * linux-nat.c: Update include. | |
4519 | * interps.c: Update include. | |
4520 | * infrun.c: Update include. | |
4521 | * inf-loop.c: Update include. | |
4522 | * event-top.c: Update include. | |
4523 | * event-loop.c: Move to ../gdbsupport/. | |
4524 | * event-loop.h: Move to ../gdbsupport/. | |
4525 | * async-event.h: Update include. | |
4526 | * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update. | |
4527 | ||
93b54c8e TT |
4528 | 2020-04-13 Tom Tromey <tom@tromey.com> |
4529 | ||
4530 | * tui/tui-win.c: Include async-event.h. | |
4531 | * remote.c: Include async-event.h. | |
4532 | * remote-notif.c: Include async-event.h. | |
4533 | * record-full.c: Include async-event.h. | |
4534 | * record-btrace.c: Include async-event.h. | |
4535 | * infrun.c: Include async-event.h. | |
4536 | * event-top.c: Include async-event.h. | |
4537 | * event-loop.h: Move some declarations to async-event.h. | |
4538 | * event-loop.c: Don't include ser-event.h or top.h. Move some | |
4539 | code to async-event.c. | |
4540 | * async-event.h: New file. | |
4541 | * async-event.c: New file. | |
4542 | * Makefile.in (COMMON_SFILES): Add async-event.c. | |
4543 | (HFILES_NO_SRCDIR): Add async-event.h. | |
4544 | ||
c1cd3163 TT |
4545 | 2020-04-13 Tom Tromey <tom@tromey.com> |
4546 | ||
4547 | * utils.c (flush_streams): New function. | |
4548 | * event-loop.c (gdb_wait_for_event): Call flush_streams. | |
4549 | ||
29f2bf4f TT |
4550 | 2020-04-13 Tom Tromey <tom@tromey.com> |
4551 | ||
4552 | * event-loop.c (handle_file_event): Use warning, not | |
4553 | printf_unfiltered. | |
4554 | ||
98029d02 TT |
4555 | 2020-04-13 Tom Tromey <tom@tromey.com> |
4556 | ||
4557 | * event-loop.c: Include <chrono>. | |
4558 | ||
06cc9596 TT |
4559 | 2020-04-13 Tom Tromey <tom@tromey.com> |
4560 | ||
4561 | * gdb_select.h: Move to ../gdbsupport/. | |
4562 | * event-loop.c: Update include path. | |
4563 | * top.c: Update include path. | |
4564 | * ser-base.c: Update include path. | |
4565 | * ui-file.c: Update include path. | |
4566 | * ser-tcp.c: Update include path. | |
4567 | * guile/scm-ports.c: Update include path. | |
4568 | * posix-hdep.c: Update include path. | |
4569 | * ser-unix.c: Update include path. | |
4570 | * gdb_usleep.c: Update include path. | |
4571 | * mingw-hdep.c: Update include path. | |
4572 | * inflow.c: Update include path. | |
4573 | * infrun.c: Update include path. | |
4574 | * event-top.c: Update include path. | |
4575 | ||
8ae8e197 TT |
4576 | 2020-04-13 Tom Tromey <tom@tromey.com> |
4577 | ||
4578 | * configure: Rebuild. | |
4579 | * configure.ac: Remove checks that are now in GDB_AC_COMMON. | |
4580 | ||
58cf28e8 TT |
4581 | 2020-04-13 Tom Tromey <tom@tromey.com> |
4582 | ||
4583 | * event-loop.h (start_event_loop): Don't declare. | |
4584 | * event-loop.c (start_event_loop): Move... | |
4585 | * main.c (start_event_loop): ...here. Now static. | |
4586 | ||
b7f999ae SDJ |
4587 | 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net> |
4588 | ||
4589 | * MAINTAINERS: Update my email address. | |
4590 | ||
1085dfd4 KR |
4591 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
4592 | ||
4593 | * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and | |
4594 | IP_ALL. | |
4595 | ||
49d1d1f5 KR |
4596 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
4597 | ||
4598 | * nbsd-nat.c (nbsd_pid_to_cmdline): Add. | |
aac66a4c | 4599 | (nbsd_nat_target::info_proc): Add do_cmdline. |
49d1d1f5 | 4600 | |
b4848d2a KR |
4601 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
4602 | ||
4603 | * nbsd-nat.c (nbsd_pid_to_cwd): Add. | |
aac66a4c | 4604 | (nbsd_nat_target::info_proc): Add do_cwd. |
b4848d2a | 4605 | |
51c133d5 KR |
4606 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
4607 | ||
4608 | * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe. | |
4609 | ||
54b8cbd0 KR |
4610 | 2020-04-11 Kamil Rytarowski <n54@gmx.com> |
4611 | ||
4612 | * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h". | |
4613 | * nbsd-nat.c (nbsd_nat_target::find_memory_regions) | |
4614 | (nbsd_nat_target::info_proc): New functions. | |
4615 | * nbsd-nat.c (kinfo_get_vmmap): New function. | |
4616 | * nbsd-nat.c (nbsd_nat_target::info_proc) Use | |
4617 | nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry. | |
4618 | * nbsd-tdep.c (nbsd_info_proc_mappings_header) | |
4619 | (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New | |
4620 | functions. | |
4621 | * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE) | |
4622 | (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW) | |
4623 | (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP) | |
4624 | (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP) | |
4625 | (KINFO_VME_FLAG_GROWS_DOWN): New. | |
4626 | ||
cf83625d AS |
4627 | 2020-04-10 Artur Shepilko <nomadbyte@gmail.com> |
4628 | ||
4629 | * utils.c (copy_bitwise): Use unsigned 0 constant as operand of | |
4630 | bit shift. | |
4631 | ||
0c4311ab TT |
4632 | 2020-04-10 Tom Tromey <tromey@adacore.com> |
4633 | ||
4634 | * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE. | |
4635 | ||
3e65b3e9 TT |
4636 | 2020-04-10 Tom Tromey <tromey@adacore.com> |
4637 | ||
4638 | * symtab.c (get_symbol_address, get_msymbol_address): Skip | |
4639 | separate debug files. | |
4640 | ||
13302e95 HD |
4641 | 2020-04-10 Hannes Domani <ssbssa@yahoo.de> |
4642 | ||
4643 | * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): | |
4644 | Move to... | |
4645 | * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): | |
4646 | ... here. | |
4647 | * windows-nat.c (windows_nat_target::get_windows_debug_event): | |
4648 | Check for STATUS_WX86_BREAKPOINT. | |
4649 | (windows_nat_target::wait): Same. | |
4650 | ||
bdfc1e8a TV |
4651 | 2020-04-10 Tom de Vries <tdevries@suse.de> |
4652 | ||
4653 | PR cli/25808 | |
4654 | * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False. | |
4655 | ||
f4460aec SM |
4656 | 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
4657 | ||
4658 | * MAINTAINERS (Global Maintainers): Add Tom de Vries. | |
4659 | (Write After Approval): Remove Tom de Vries. | |
4660 | ||
a25198bb BE |
4661 | 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4662 | ||
4663 | revert partially: | |
4664 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> | |
4665 | ||
aac66a4c SM |
4666 | * buildsym.c (record_line): Fix undefined behavior and preserve |
4667 | lines at eof. | |
a25198bb | 4668 | |
206c98a6 KR |
4669 | 2020-04-09 Kamil Rytarowski <n54@gmx.com> |
4670 | ||
4671 | * auxv.h (svr4_auxv_parse): New. | |
4672 | * auxv.c (default_auxv_parse): Split into default_auxv_parse | |
4673 | and generic_auxv_parse. | |
4674 | (svr4_auxv_parse): Add. | |
4675 | * obsd-tdep.c: Include "auxv.h". | |
4676 | (obsd_auxv_parse): Remove. | |
4677 | (obsd_init_abi): Remove comment. | |
4678 | (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument | |
4679 | from `obsd_auxv_parse' to `svr4_auxv_parse'. | |
4680 | * nbsd-tdep.c: Include "auxv.h". | |
4681 | (nbsd_init_abi): Call set_gdbarch_auxv_parse. | |
4682 | ||
71fbdbaf TT |
4683 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4684 | ||
4685 | * nat/windows-nat.h (last_wait_event): Don't declare. | |
4686 | (wait_for_debug_event): Update comment. | |
4687 | * nat/windows-nat.c (last_wait_event): Now static. | |
4688 | ||
2c1d95e8 TT |
4689 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4690 | ||
4691 | * windows-nat.c (wait_for_debug_event): Move to | |
4692 | nat/windows-nat.c. | |
4693 | * nat/windows-nat.h (wait_for_debug_event): Declare. | |
4694 | * nat/windows-nat.c (wait_for_debug_event): Move from | |
4695 | windows-nat.c. No longer static. | |
4696 | ||
d2977bc4 TT |
4697 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4698 | ||
4699 | * windows-nat.c (get_windows_debug_event): Use | |
4700 | fetch_pending_stop. | |
4701 | * nat/windows-nat.h (fetch_pending_stop): Declare. | |
4702 | * nat/windows-nat.c (fetch_pending_stop): New function. | |
4703 | ||
e758e19c TT |
4704 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4705 | ||
4706 | * windows-nat.c (windows_continue): Use matching_pending_stop and | |
4707 | continue_last_debug_event. | |
4708 | * nat/windows-nat.h (matching_pending_stop) | |
4709 | (continue_last_debug_event): Declare. | |
4710 | * nat/windows-nat.c (DEBUG_EVENTS): New define. | |
4711 | (matching_pending_stop, continue_last_debug_event): New | |
4712 | functions. | |
4713 | ||
8d30e395 TT |
4714 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4715 | ||
4716 | * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c. | |
4717 | (handle_exception_result): Move to nat/windows-nat.h. | |
4718 | (DEBUG_EXCEPTION_SIMPLE): Remove. | |
4719 | (windows_nat::handle_ms_vc_exception): New function. | |
4720 | (handle_exception): Move to nat/windows-nat.c. | |
4721 | (get_windows_debug_event): Update. | |
4722 | (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to | |
4723 | nat/windows-nat.c. | |
4724 | * nat/windows-nat.h (handle_ms_vc_exception): Declare. | |
4725 | (handle_exception_result): Move from windows-nat.c. | |
4726 | (handle_exception): Declare. | |
4727 | * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception) | |
4728 | (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from | |
4729 | windows-nat.c. | |
4730 | ||
29de418d TT |
4731 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4732 | ||
4733 | * windows-nat.c (exception_count, event_count): Remove. | |
4734 | (handle_exception, get_windows_debug_event) | |
4735 | (do_initial_windows_stuff): Update. | |
4736 | ||
a816ba18 TT |
4737 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4738 | ||
4739 | * windows-nat.c (windows_nat::handle_load_dll) | |
4740 | (windows_nat::handle_unload_dll): Rename. No longer static. | |
4741 | * nat/windows-nat.h (handle_load_dll, handle_unload_dll): | |
4742 | Declare. | |
4743 | ||
a00caa12 TT |
4744 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4745 | ||
4746 | * complaints.h (stop_whining): Declare at top-level. | |
4747 | (complaint): Don't declare stop_whining. | |
4748 | ||
d41b524f TT |
4749 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4750 | ||
4751 | * windows-nat.c (windows_nat::handle_output_debug_string): | |
4752 | Rename. No longer static. | |
4753 | * nat/windows-nat.h (handle_output_debug_string): Declare. | |
4754 | ||
3c76026d TT |
4755 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4756 | ||
4757 | * windows-nat.c (current_process_handle, current_process_id) | |
4758 | (main_thread_id, last_sig, current_event, last_wait_event) | |
4759 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
4760 | (struct pending_stop, siginfo_er): Move to nat/windows-nat.c. | |
4761 | (display_selectors, fake_create_process) | |
4762 | (get_windows_debug_event): Update. | |
4763 | * nat/windows-nat.h (current_process_handle, current_process_id) | |
4764 | (main_thread_id, last_sig, current_event, last_wait_event) | |
4765 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
4766 | (struct pending_stop, siginfo_er): Move from windows-nat.c. | |
4767 | * nat/windows-nat.c (current_process_handle, current_process_id) | |
4768 | (main_thread_id, last_sig, current_event, last_wait_event) | |
4769 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
4770 | (siginfo_er): New globals. Move from windows-nat.c. | |
4771 | ||
9d8679cc TT |
4772 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4773 | ||
4774 | * windows-nat.c (get_image_name): Move to nat/windows-nat.c. | |
4775 | (handle_load_dll): Update. | |
4776 | * nat/windows-nat.c (get_image_name): Move from windows-nat.c. | |
4777 | ||
28688adf TT |
4778 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4779 | ||
4780 | * windows-nat.c (enum thread_disposition_type): Move to | |
4781 | nat/windows-nat.h. | |
4782 | (windows_nat::thread_rec): Rename from thread_rec. No longer | |
4783 | static. | |
4784 | (windows_add_thread, windows_nat_target::fetch_registers) | |
4785 | (windows_nat_target::store_registers, handle_exception) | |
4786 | (windows_nat_target::resume, get_windows_debug_event) | |
4787 | (windows_nat_target::get_tib_address) | |
4788 | (windows_nat_target::thread_name) | |
4789 | (windows_nat_target::thread_alive): Update. | |
4790 | * nat/windows-nat.h (enum thread_disposition_type): Move from | |
4791 | windows-nat.c. | |
4792 | (thread_rec): Declare. | |
4793 | ||
4834dad0 TT |
4794 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4795 | ||
4796 | * windows-nat.c: Add "using namespace". | |
4797 | * nat/windows-nat.h: Wrap contents in windows_nat namespace. | |
4798 | * nat/windows-nat.c: Wrap contents in windows_nat namespace. | |
4799 | ||
65bafd5b TT |
4800 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4801 | ||
4802 | * nat/windows-nat.h (struct windows_thread_info): Declare | |
4803 | destructor. | |
4804 | * nat/windows-nat.c (~windows_thread_info): New. | |
4805 | ||
0a4afda3 TT |
4806 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4807 | ||
4808 | PR gdb/22992 | |
4809 | * windows-nat.c (current_event): Update comment. | |
4810 | (last_wait_event, desired_stop_thread_id): New globals. | |
4811 | (struct pending_stop): New. | |
4812 | (pending_stops): New global. | |
4813 | (windows_nat_target) <stopped_by_sw_breakpoint> | |
4814 | <supports_stopped_by_sw_breakpoint>: New methods. | |
4815 | (windows_fetch_one_register): Add assertions. Adjust PC. | |
4816 | (windows_continue): Handle pending stops. Suspend other threads | |
4817 | when stepping. Use last_wait_event | |
4818 | (wait_for_debug_event): New function. | |
4819 | (get_windows_debug_event): Use wait_for_debug_event. Handle | |
4820 | pending stops. Queue spurious stops. | |
4821 | (windows_nat_target::wait): Set stopped_at_software_breakpoint. | |
4822 | (windows_nat_target::kill): Use wait_for_debug_event. | |
4823 | * nat/windows-nat.h (struct windows_thread_info) | |
4824 | <stopped_at_software_breakpoint>: New field. | |
4825 | * nat/windows-nat.c (windows_thread_info::resume): Clear | |
4826 | stopped_at_software_breakpoint. | |
4827 | ||
8e61ebec TT |
4828 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4829 | ||
4830 | * windows-nat.c (enum thread_disposition_type): New. | |
4831 | (thread_rec): Replace "get_context" parameter with "disposition"; | |
4832 | change type. | |
4833 | (windows_add_thread, windows_nat_target::fetch_registers) | |
4834 | (windows_nat_target::store_registers, handle_exception) | |
4835 | (windows_nat_target::resume, get_windows_debug_event) | |
4836 | (windows_nat_target::get_tib_address) | |
4837 | (windows_nat_target::thread_name) | |
4838 | (windows_nat_target::thread_alive): Update. | |
4839 | ||
98a03287 TT |
4840 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4841 | ||
4842 | * windows-nat.c (thread_rec): Use windows_thread_info::suspend. | |
4843 | (windows_continue): Use windows_continue::resume. | |
4844 | * nat/windows-nat.h (struct windows_thread_info) <suspend, | |
4845 | resume>: Declare new methods. | |
4846 | * nat/windows-nat.c: New file. | |
4847 | * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed. | |
4848 | ||
7c7411bc TT |
4849 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4850 | ||
4851 | * windows-nat.c (windows_add_thread, windows_delete_thread) | |
4852 | (windows_nat_target::fetch_registers) | |
4853 | (windows_nat_target::store_registers, fake_create_process) | |
4854 | (windows_nat_target::resume, windows_nat_target::resume) | |
4855 | (get_windows_debug_event, windows_nat_target::wait) | |
4856 | (windows_nat_target::pid_to_str) | |
4857 | (windows_nat_target::get_tib_address) | |
4858 | (windows_nat_target::get_ada_task_ptid) | |
4859 | (windows_nat_target::thread_name) | |
4860 | (windows_nat_target::thread_alive): Use lwp, not tid. | |
4861 | ||
2950fdf7 TT |
4862 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4863 | ||
4864 | * windows-nat.c (handle_exception) | |
4865 | (windows_nat_target::thread_name): Update. | |
4866 | * nat/windows-nat.h (windows_thread_info): Remove destructor. | |
4867 | <name>: Now unique_xmalloc_ptr. | |
4868 | ||
62fe396b TT |
4869 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4870 | ||
4871 | * windows-nat.c (thread_rec) | |
4872 | (windows_nat_target::fetch_registers): Update. | |
4873 | * nat/windows-nat.h (struct windows_thread_info) <suspended>: | |
4874 | Update comment. | |
4875 | <debug_registers_changed, reload_context>: Now bool. | |
4876 | ||
e9534bd2 TT |
4877 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4878 | ||
4879 | * windows-nat.c (windows_add_thread): Use new. | |
4880 | (windows_init_thread_list, windows_delete_thread): Use delete. | |
4881 | (get_windows_debug_event): Update. | |
4882 | * nat/windows-nat.h (struct windows_thread_info): Add constructor, | |
4883 | destructor, and initializers. | |
4884 | ||
ae1f8880 TT |
4885 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4886 | ||
4887 | * windows-nat.c (struct windows_thread_info): Remove. | |
4888 | * nat/windows-nat.h: New file. | |
4889 | ||
55a1e039 TT |
4890 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4891 | ||
4892 | * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id". | |
4893 | (thread_rec, windows_add_thread, windows_delete_thread) | |
4894 | (windows_continue): Update. | |
4895 | ||
93366324 TT |
4896 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4897 | ||
4898 | * windows-nat.c (struct windows_thread_info): Remove typedef. | |
4899 | (thread_head): Remove. | |
4900 | (thread_list): New global. | |
4901 | (thread_rec, windows_add_thread, windows_init_thread_list) | |
4902 | (windows_delete_thread, windows_continue): Update. | |
4903 | ||
0f2265e2 SM |
4904 | 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca> |
4905 | ||
4906 | * windows-tdep.h (windows_init_abi): Add comment. | |
4907 | (cygwin_init_abi): New declaration. | |
4908 | * windows-tdep.c: Split signal enumeration in two, one for | |
4909 | Windows and one for Cygwin. | |
4910 | (windows_gdb_signal_to_target): Only deal with signal of the | |
4911 | Windows OS ABI. | |
4912 | (cygwin_gdb_signal_to_target): New function. | |
4913 | (windows_init_abi): Rename to windows_init_abi_common, don't set | |
4914 | gdb_signal_to_target gdbarch method. Add new new function with | |
4915 | this name. | |
4916 | (cygwin_init_abi): New function. | |
4917 | * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add | |
4918 | comment. Don't call windows_init_abi. | |
4919 | (amd64_windows_init_abi): Add comment, call windows_init_abi. | |
4920 | (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi. | |
4921 | * i386-windows-tdep.c (i386_windows_init_abi): Rename to | |
4922 | i386_windows_init_abi_common, don't call windows_init_abi. Add | |
4923 | a new function of this name. | |
4924 | (i386_cygwin_init_abi): New function. | |
4925 | (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to | |
4926 | OS ABI Cygwin. | |
4927 | ||
3810f182 SM |
4928 | 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca> |
4929 | ||
4930 | * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile | |
4931 | parameter.c. | |
4932 | (dwarf2_read_gdb_index): Update. | |
4933 | ||
063f8e80 KR |
4934 | 2020-04-07 Kamil Rytarowski <n54@gmx.com> |
4935 | ||
4936 | * nbsd-tdep.c: Include "objfiles.h". | |
4937 | (nbsd_skip_solib_resolver): New. | |
4938 | (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver(). | |
4939 | ||
85a9510c | 4940 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
4941 | ||
4942 | * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_ | |
4943 | addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair | |
4944 | with DW_LLE_base_addressx are being emitted in DWARFv5. | |
4945 | Add the newly added kind DW_LOC_OFFSET_PAIR also. | |
4946 | The length of location description is an unsigned ULEB integer in DWARFv5 instead of | |
4947 | unsigned integer. | |
4948 | ||
9fc3eaae | 4949 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
4950 | ||
4951 | * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR. | |
4952 | (dwarf2_find_location_expression): Call the function decode_debug_loclists_ | |
4953 | addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair | |
4954 | with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*. | |
4955 | Add applicable base address if the entry is DW_LLE_offset_pair from DWO. | |
4956 | (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of | |
4957 | DEBUG_LOC_START_END in case of DW_LLE_offset_pair. | |
4958 | ||
4959 | ||
41144253 | 4960 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
4961 | ||
4962 | * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function. | |
4963 | (read_loclist_index): New function definition. | |
4964 | (lookup_loclist_base): New function definition. | |
4965 | (read_loclist_header): New function definition. | |
4966 | (dwarf2_cu): Add loclist_base and loclist_header field. | |
4967 | (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section. | |
4968 | (read_full_die_1): Read the value of DW_AT_loclists_base. | |
4969 | (read_attribute_reprocess): Handle DW_FORM_loclistx. | |
4970 | (read_attribute_value): Handle DW_FORM_loclistx. | |
4971 | (skip_one_die): Handle DW_FORM_loclistx. | |
4972 | (loclist_header): New structure declaration. | |
4973 | * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx. | |
4974 | ||
9f4e76a4 SM |
4975 | 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
4976 | ||
4977 | * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters | |
4978 | constructor. Remove `addr` parameter from other constructor and | |
4979 | add `per_cu` parameter. | |
4980 | * dwarf2/read.c (create_partial_symtab): Update. | |
4981 | ||
25c11aca TV |
4982 | 2020-04-07 Tom de Vries <tdevries@suse.de> |
4983 | ||
4984 | PR symtab/25796 | |
4985 | * dwarf2/read.c (can_have_DW_AT_const_value_p): New function. | |
4986 | (partial_die_info::fixup): Inherit has_const_value. | |
4987 | ||
5707e24b TV |
4988 | 2020-04-07 Tom de Vries <tdevries@suse.de> |
4989 | ||
4990 | * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK | |
4991 | symbols without address. | |
4992 | ||
05f00e22 KR |
4993 | 2020-04-06 Kamil Rytarowski <n54@gmx.com> |
4994 | ||
4995 | * nbsd-nat.h (struct thread_info): Add forward declaration. | |
4996 | (nbsd_nat_target::thread_alive): Add. | |
4997 | (nbsd_nat_target::thread_name): Likewise. | |
4998 | (nbsd_nat_target::update_thread_list): Likewise. | |
4999 | (update_thread_list::post_attach): Likewise. | |
5000 | (post_attach::pid_to_str): Likewise. | |
5001 | * nbsd-nat.c: Include "gdbthread.h" and "inferior.h". | |
5002 | (nbsd_thread_lister): Add. | |
5003 | (nbsd_nat_target::thread_alive): Likewise. | |
5004 | (nbsd_nat_target::thread_name): Likewise. | |
5005 | (nbsd_add_threads): Likewise. | |
5006 | (update_thread_list::post_attach): Likewise. | |
5007 | (nbsd_nat_target::update_thread_list): Likewise. | |
5008 | (post_attach::pid_to_str): Likewise. | |
5009 | ||
6ee448cc TT |
5010 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
5011 | ||
5012 | * ada-valprint.c (print_variant_part): Extract the variant field. | |
5013 | (print_field_values): Use the field as the outer value when | |
5014 | recursing. | |
5015 | ||
dea34e8c TT |
5016 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
5017 | ||
5018 | * sh-nbsd-tdep.c: Include nbsd-tdep.h. | |
5019 | * ppc-nbsd-tdep.c: Include nbsd-tdep.h. | |
5020 | * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";". | |
5021 | * arm-nbsd-tdep.c: Include nbsd-tdep.h. | |
5022 | * hppa-nbsd-tdep.c: Include nbsd-tdep.h. | |
5023 | ||
93689ce9 TT |
5024 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
5025 | ||
5026 | * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle | |
5027 | TYPE_CODE_ERROR. | |
5028 | ||
79743962 KR |
5029 | 2020-04-06 Kamil Rytarowski <n54@gmx.com> |
5030 | ||
5031 | * nbsd-tdep.c: Include "gdbarch.h". | |
5032 | Define enum with NetBSD signal numbers. | |
5033 | (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New. | |
5034 | * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi(). | |
5035 | * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise. | |
5036 | * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise. | |
5037 | * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise. | |
5038 | * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise. | |
5039 | * mips-nbsd-tdep.c (nbsd_init_abi): Likewise. | |
5040 | * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise. | |
5041 | * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise. | |
5042 | * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise. | |
5043 | * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise. | |
5044 | * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise. | |
5045 | ||
9e7c9a03 HD |
5046 | 2020-04-03 Hannes Domani <ssbssa@yahoo.de> |
5047 | ||
5048 | PR gdb/25325 | |
5049 | * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes. | |
5050 | ||
d9e49b61 TT |
5051 | 2020-04-03 Tom Tromey <tromey@adacore.com> |
5052 | ||
5053 | * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>: | |
5054 | Read constant block. | |
5055 | ||
e0fc5c3f SM |
5056 | 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
5057 | ||
5058 | * gdb_bfd.h: Include gdbsupport/byte-vector.h. | |
5059 | (gdb_bfd_get_full_section_contents): New declaration. | |
5060 | * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function. | |
5061 | * windows-tdep.c (is_linked_with_cygwin_dll): Use | |
5062 | gdb_bfd_get_full_section_contents. | |
5063 | ||
e2ff18a0 SM |
5064 | 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
5065 | ||
5066 | * exec.c (build_section_table): Replace internal_error with | |
5067 | gdb_assert. | |
5068 | (section_table_xfer_memory_partial): Likewise. | |
5069 | * mdebugread.c (parse_partial_symbols): Likewise. | |
5070 | * psymtab.c (lookup_partial_symbol): Likewise. | |
5071 | * utils.c (wrap_here): Likewise. | |
5072 | ||
0830d301 TT |
5073 | 2020-04-02 Tom Tromey <tromey@adacore.com> |
5074 | ||
5075 | * f-lang.c (build_fortran_types): Use arch_type to initialize | |
5076 | builtin_complex_s32 in the TYPE_CODE_ERROR case. | |
5077 | ||
e7da7f8f TT |
5078 | 2020-04-02 Tom Tromey <tromey@adacore.com> |
5079 | ||
5080 | * dwarf2/read.c (partial_die_info::read): Do not create a vector | |
5081 | of attributes. | |
5082 | ||
c90d28ac AB |
5083 | 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com> |
5084 | Bernd Edlinger <bernd.edlinger@hotmail.de> | |
5085 | Tom Tromey <tromey@adacore.com> | |
5086 | ||
5087 | * buildsym.c (buildsym_compunit::record_line): Remove | |
5088 | deduplication code. | |
5089 | ||
1aa98955 TV |
5090 | 2020-04-02 Tom de Vries <tdevries@suse.de> |
5091 | ||
5092 | PR ada/24671 | |
5093 | * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow. | |
5094 | ||
d3214198 TV |
5095 | 2020-04-02 Tom de Vries <tdevries@suse.de> |
5096 | ||
5097 | * dwarf2/read.c (dwarf2_gdb_index_functions, | |
5098 | dwarf2_debug_names_functions): Init lookup_global_symbol_language with | |
5099 | NULL. | |
5100 | * psymtab.c (psym_lookup_global_symbol_language): New function. | |
5101 | (psym_functions): Init psym_lookup_global_symbol_language with | |
5102 | psym_lookup_global_symbol_language. | |
5103 | * symfile-debug.c (debug_sym_quick_functions): Init | |
5104 | lookup_global_symbol_language with NULL. | |
5105 | * symfile.c (set_initial_language): Remove fixme comment. | |
5106 | * symfile.h (struct quick_symbol_functions): Add | |
5107 | lookup_global_symbol_language. | |
5108 | * symtab.c (find_quick_global_symbol_language): New function. | |
5109 | (find_main_name): Use find_quick_global_symbol_language. | |
5110 | ||
2836752f SM |
5111 | 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca> |
5112 | ||
5113 | * windows-tdep.c (is_linked_with_cygwin_dll): Fix style. | |
5114 | ||
64dc2d4b BE |
5115 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> |
5116 | ||
5117 | * buildsym.c (record_line): Fix undefined behavior and preserve | |
5118 | lines at eof. | |
5119 | ||
bbe3dc41 BE |
5120 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> |
5121 | ||
5122 | * buildsym.c (record_line): Fix the resizing condition. | |
5123 | ||
6b4a335b TT |
5124 | 2020-04-01 Tom Tromey <tom@tromey.com> |
5125 | ||
5126 | * value.h (value_literal_complex): Add comment. | |
5127 | * valops.c (value_literal_complex): Refer to value.h. | |
5128 | ||
3638a098 TT |
5129 | 2020-04-01 Tom Tromey <tom@tromey.com> |
5130 | ||
5131 | * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens. | |
5132 | (scalar_type): New rule, from typebase. | |
5133 | (typebase): Use scalar_type. Recognize complex types. | |
5134 | (field_name): Handle FLOAT_KEYWORD. | |
5135 | (ident_tokens): Add _Complex and __complex__. | |
5136 | ||
c34e8714 TT |
5137 | 2020-04-01 Tom Tromey <tom@tromey.com> |
5138 | ||
5139 | PR exp/25299: | |
5140 | * valarith.c (promotion_type, complex_binop): New functions. | |
5141 | (scalar_binop): Handle complex numbers. Use promotion_type. | |
5142 | (value_pos, value_neg, value_complement): Handle complex numbers. | |
5143 | ||
fa649bb7 TT |
5144 | 2020-04-01 Tom Tromey <tom@tromey.com> |
5145 | ||
5146 | * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens. | |
5147 | (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules. | |
5148 | (parse_number): Handle complex numbers. | |
5149 | ||
981c08ce TT |
5150 | 2020-04-01 Tom Tromey <tom@tromey.com> |
5151 | ||
5152 | * c-valprint.c (c_decorations): Change complex suffix to "i". | |
5153 | ||
4c99290d TT |
5154 | 2020-04-01 Tom Tromey <tom@tromey.com> |
5155 | ||
5156 | * valprint.c (generic_value_print_complex): Use accessors. | |
5157 | * value.h (value_real_part, value_imaginary_part): Declare. | |
5158 | * valops.c (value_real_part, value_imaginary_part): New | |
5159 | functions. | |
5160 | * value.c (creal_internal_fn, cimag_internal_fn): Use accessors. | |
5161 | ||
5b930b45 TT |
5162 | 2020-04-01 Tom Tromey <tom@tromey.com> |
5163 | ||
5164 | * stabsread.c (rs6000_builtin_type, read_sun_floating_type) | |
5165 | (read_range_type): Update. | |
5166 | * mdebugread.c (basic_type): Update. | |
5167 | * go-lang.c (build_go_types): Use init_complex_type. | |
5168 | * gdbtypes.h (struct main_type) <complex_type>: New member. | |
5169 | (init_complex_type): Update. | |
5170 | (arch_complex_type): Don't declare. | |
5171 | * gdbtypes.c (init_complex_type): Remove "objfile" parameter. | |
5172 | Make name if none given. Use alloc_type_copy. Look for cached | |
5173 | complex type. | |
5174 | (arch_complex_type): Remove. | |
5175 | (gdbtypes_post_init): Use init_complex_type. | |
5176 | * f-lang.c (build_fortran_types): Use init_complex_type. | |
5177 | * dwarf2/read.c (read_base_type): Update. | |
5178 | * d-lang.c (build_d_types): Use init_complex_type. | |
5179 | * ctfread.c (read_base_type): Update. | |
5180 | ||
53cccef1 TBA |
5181 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
5182 | ||
5183 | * infrun.c (stop_all_threads): Update assertion, plus when | |
5184 | stopping threads, take into account that we might be trying | |
5185 | to stop an all-stop target. | |
5186 | (stop_waiting): Call 'stop_all_threads' if there exists a | |
5187 | non-stop target. | |
5188 | ||
a0714d30 TBA |
5189 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
5190 | ||
5191 | * target.h (exists_non_stop_target): New function declaration. | |
5192 | * target.c (exists_non_stop_target): New function. | |
5193 | ||
60e22c1e HD |
5194 | 2020-04-01 Hannes Domani <ssbssa@yahoo.de> |
5195 | ||
5196 | PR gdb/24789 | |
5197 | * eval.c (is_integral_or_integral_reference): New function. | |
5198 | (evaluate_subexp_standard): Allow integer references in | |
5199 | pointer arithmetic. | |
5200 | ||
e139a727 TBA |
5201 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
5202 | ||
5203 | * remote.c (remote_target::remote_parse_stop_reply): Remove the | |
5204 | check for no ptid in the stop reply when the target is non-stop. | |
5205 | ||
e0802d59 TT |
5206 | 2020-04-01 Tom Tromey <tromey@adacore.com> |
5207 | ||
5208 | * symtab.h (class lookup_name_info) <lookup_name_info>: Change | |
5209 | "name" parameter to rvalue reference. Initialize m_name_holder. | |
5210 | <lookup_name_info>: New overloads. | |
5211 | <name>: Return gdb::string_view. | |
5212 | <c_str>: New method. | |
5213 | <make_ignore_params>: Update. | |
5214 | <search_name_hash>: Update. | |
5215 | <language_lookup_name>: Return const char *. | |
5216 | <m_name>: Change type. | |
5217 | * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info) | |
5218 | (demangle_for_lookup_info::demangle_for_lookup_info): Update. | |
5219 | (lookup_name_info::match_any): Update. | |
5220 | * psymtab.c (match_partial_symbol, lookup_partial_symbol): | |
5221 | Update. | |
5222 | * minsyms.c (linkage_name_str): Update. | |
5223 | * language.c (default_symbol_name_matcher): Update. | |
5224 | * dwarf2/read.c (mapped_index_base::find_name_components_bounds): | |
5225 | Update. | |
5226 | * ada-lang.c (ada_fold_name): Change parameter to string_view. | |
5227 | (ada_lookup_name_info::ada_lookup_name_info): Update. | |
5228 | (literal_symbol_name_matcher): Update. | |
5229 | ||
8c072cb6 TT |
5230 | 2020-04-01 Tom Tromey <tromey@adacore.com> |
5231 | ||
5232 | * psymtab.c (psymtab_search_name): Remove function. | |
5233 | (psym_lookup_symbol): Create search name and lookup name here. | |
5234 | (lookup_partial_symbol): Remove "name" parameter; add | |
5235 | lookup_name. | |
5236 | (psym_expand_symtabs_for_function): Update. | |
5237 | ||
6f29a534 TT |
5238 | 2020-03-31 Joel Jones <joelkevinjones@gmail.com> |
5239 | ||
5240 | PR tui/25597: | |
5241 | * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI. | |
5242 | ||
af62665e TT |
5243 | 2020-03-31 Tom Tromey <tromey@adacore.com> |
5244 | ||
5245 | * dwarf2/abbrev.c (abbrev_table::read): Conditionally call | |
5246 | memcpy. | |
5247 | ||
d1a89da5 NC |
5248 | 2020-03-30 Nelson Chu <nelson.chu@sifive.com> |
5249 | ||
5250 | * features/riscv/32bit-csr.xml: Regenerated. | |
5251 | * features/riscv/64bit-csr.xml: Regenerated. | |
5252 | ||
d8af9068 TT |
5253 | 2020-03-30 Tom Tromey <tromey@adacore.com> |
5254 | ||
5255 | * ada-valprint.c (print_variant_part): Update. | |
5256 | * ada-lang.h (ada_which_variant_applies): Update. | |
5257 | * ada-lang.c (ada_which_variant_applies): Remove outer_type and | |
5258 | outer_valaddr parameters; replace with "outer" value parameter. | |
5259 | (to_fixed_variant_branch_type): Update. | |
5260 | ||
227c0bf4 PFC |
5261 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
5262 | ||
5263 | * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and | |
5264 | <list>. Remove inclusion of observable.h. | |
5265 | (PPC_DEBUG_CURRENT_VERSION): Move up define. | |
5266 | (struct arch_lwp_info): New struct. | |
5267 | (class ppc_linux_dreg_interface): New class. | |
5268 | (struct ppc_linux_process_info): New struct. | |
5269 | (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork> | |
5270 | <low_new_clone, low_forget_process, low_prepare_to_resume> | |
5271 | <copy_thread_dreg_state, mark_thread_stale> | |
5272 | <mark_debug_registers_changed, register_hw_breakpoint> | |
5273 | <clear_hw_breakpoint, register_wp, clear_wp> | |
5274 | <can_use_watchpoint_cond_accel, calculate_dvc, check_condition> | |
5275 | <num_memory_accesses, get_trigger_type> | |
5276 | <create_watchpoint_request, hwdebug_point_cmp> | |
5277 | <init_arch_lwp_info, get_arch_lwp_info> | |
5278 | <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as | |
5279 | methods. | |
5280 | <struct ptid_hash>: New inner struct. | |
5281 | <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare | |
5282 | members. | |
5283 | (saved_dabr_value, hwdebug_info, max_slots_number) | |
5284 | (struct hw_break_tuple, struct thread_points, ppc_threads) | |
5285 | (have_ptrace_hwdebug_interface) | |
5286 | (hwdebug_find_thread_points_by_tid) | |
5287 | (hwdebug_insert_point, hwdebug_remove_point): Remove. | |
5288 | (ppc_linux_nat_target::can_use_hw_breakpoint): Use | |
5289 | m_dreg_interface, remove call to PTRACE_SET_DEBUGREG. | |
5290 | (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment, | |
5291 | use m_dreg_interface. | |
5292 | (hwdebug_point_cmp): Change to... | |
5293 | (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use | |
5294 | reference arguments instead of pointers. | |
5295 | (ppc_linux_nat_target::ranged_break_num_registers): Use | |
5296 | m_dreg_interface. | |
5297 | (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use | |
5298 | m_dreg_interface. Call register_hw_breakpoint. | |
5299 | (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use | |
5300 | m_dreg_interface. Call clear_hw_breakpoint. | |
5301 | (get_trigger_type): Change to... | |
5302 | (ppc_linux_nat_target::get_trigger_type): ...this method. Add | |
5303 | comment. | |
5304 | (ppc_linux_nat_target::insert_mask_watchpoint): Update comment, | |
5305 | use m_dreg_interface. Call register_hw_breakpoint. | |
5306 | (ppc_linux_nat_target::remove_mask_watchpoint): Update comment, | |
5307 | use m_dreg_interface. Call clear_hw_breakpoint. | |
5308 | (can_use_watchpoint_cond_accel): Change to... | |
5309 | (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this | |
5310 | method. Update comment, use m_dreg_interface and | |
5311 | m_process_info. | |
5312 | (calculate_dvc): Change to... | |
5313 | (ppc_linux_nat_target::calculate_dvc): ...this method. Use | |
5314 | m_dreg_interface. | |
5315 | (num_memory_accesses): Change to... | |
5316 | (ppc_linux_nat_target::num_memory_accesses): ...this method. | |
5317 | (check_condition): Change to... | |
5318 | (ppc_linux_nat_target::check_condition): ...this method. | |
5319 | (ppc_linux_nat_target::can_accel_watchpoint_condition): Update | |
5320 | comment, use m_dreg_interface. | |
5321 | (create_watchpoint_request): Change to... | |
5322 | (ppc_linux_nat_target::create_watchpoint_request): ...this | |
5323 | method. Use m_dreg_interface. | |
5324 | (ppc_linux_nat_target::insert_watchpoint): Add comment, use | |
5325 | m_dreg_interface. Call register_hw_breakpoint or register_wp. | |
5326 | (ppc_linux_nat_target::remove_watchpoint): Add comment, use | |
5327 | m_dreg_interface. Call clear_hw_breakpoint or clear_wp. | |
5328 | (ppc_linux_nat_target::low_forget_process) | |
5329 | (ppc_linux_nat_target::low_new_fork) | |
5330 | (ppc_linux_nat_target::low_new_clone) | |
5331 | (ppc_linux_nat_target::low_delete_thread) | |
5332 | (ppc_linux_nat_target::low_prepare_to_resume): New methods. | |
5333 | (ppc_linux_nat_target::low_new_thread): Remove previous logic, | |
5334 | only call mark_thread_stale. | |
5335 | (ppc_linux_thread_exit): Remove. | |
5336 | (ppc_linux_nat_target::stopped_data_address): Change to... | |
5337 | (ppc_linux_nat_target::low_stopped_data_address): This. Add | |
5338 | comment, use m_dreg_interface and m_thread_hw_breakpoints. | |
5339 | (ppc_linux_nat_target::stopped_by_watchpoint): Change to... | |
5340 | (ppc_linux_nat_target::stopped_by_watchpoint): This. Add | |
5341 | comment. Call low_stopped_data_address. | |
5342 | (ppc_linux_nat_target::watchpoint_addr_within_range): Use | |
5343 | m_dreg_interface. | |
5344 | (ppc_linux_nat_target::masked_watch_num_registers): Use | |
5345 | m_dreg_interface. | |
5346 | (ppc_linux_nat_target::copy_thread_dreg_state) | |
5347 | (ppc_linux_nat_target::mark_thread_stale) | |
5348 | (ppc_linux_nat_target::mark_debug_registers_changed) | |
5349 | (ppc_linux_nat_target::register_hw_breakpoint) | |
5350 | (ppc_linux_nat_target::clear_hw_breakpoint) | |
5351 | (ppc_linux_nat_target::register_wp) | |
5352 | (ppc_linux_nat_target::clear_wp) | |
5353 | (ppc_linux_nat_target::init_arch_lwp_info) | |
5354 | (ppc_linux_nat_target::get_arch_lwp_info): New methods. | |
5355 | (_initialize_ppc_linux_nat): Remove observer callback. | |
5356 | ||
4db10d8f PFC |
5357 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
5358 | ||
5359 | * ppc-linux-nat.c (ppc_linux_nat_target::store_registers) | |
5360 | (ppc_linux_nat_target::auxv_parse) | |
5361 | (ppc_linux_nat_target::read_description) | |
5362 | (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): | |
5363 | Move up. | |
5364 | ||
1310c1b0 PFC |
5365 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
5366 | ||
5367 | * linux-nat.h (low_new_clone): New method. | |
5368 | * linux-nat.c (linux_handle_extended_wait): Call low_new_clone. | |
5369 | ||
69b037c3 SM |
5370 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
5371 | ||
5372 | * dbxread.c (dbx_psymtab_to_symtab_1): Rename to... | |
5373 | (dbx_expand_psymtab): ... this. | |
5374 | (start_psymtab): Update. | |
5375 | * mdebugread.c (psymtab_to_symtab_1): Rename to... | |
5376 | (mdebug_expand_psymtab): ... this. | |
5377 | (parse_partial_symbols): Update. | |
5378 | (new_psymtab): Update. | |
5379 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to... | |
5380 | (xcoff_expand_psymtab): ... this. | |
5381 | (xcoff_start_psymtab): Update. | |
5382 | ||
48993951 SM |
5383 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
5384 | ||
5385 | * psympriv.h (partial_symtab) <read_dependencies>: Rename to... | |
5386 | <expand_dependencies>: ... this. | |
5387 | * psymtab.c (partial_symtab::read_dependencies): Rename to... | |
5388 | (partial_symtab::expand_dependencies): ... this. | |
5389 | * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>: | |
5390 | Update. | |
5391 | (dwarf2_psymtab::expand_psymtab): Update. | |
5392 | * dbxread.c (dbx_psymtab_to_symtab_1): Update. | |
5393 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
5394 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. | |
5395 | ||
3ad83046 SM |
5396 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
5397 | ||
5398 | * psympriv.h (discard_psymtab): Remove. | |
5399 | * dbxread.c (dbx_end_psymtab): Update. | |
5400 | * xcoffread.c (xcoff_end_psymtab): Update. | |
5401 | ||
4d1b9ab6 TT |
5402 | 2020-03-28 Tom Tromey <tom@tromey.com> |
5403 | ||
5404 | * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update | |
5405 | comment. | |
5406 | ||
f1749218 TT |
5407 | 2020-03-28 Tom Tromey <tom@tromey.com> |
5408 | ||
5409 | * dwarf2/read.c (read_attribute_reprocess): Fix formatting. | |
5410 | ||
ebea7626 HD |
5411 | 2020-03-27 Hannes Domani <ssbssa@yahoo.de> |
5412 | ||
5413 | * windows-nat.c (windows_add_all_dlls): Fix system dll paths. | |
5414 | ||
a879b4d5 JB |
5415 | 2020-03-26 John Baldwin <jhb@FreeBSD.org> |
5416 | ||
5417 | * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS. | |
5418 | ||
0826b30a TT |
5419 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5420 | ||
5421 | * dwarf2/read.c (handle_data_member_location, dwarf2_add_field) | |
5422 | (mark_common_block_symbol_computed, read_tag_string_type) | |
5423 | (attr_to_dynamic_prop, read_subrange_type): Update. | |
5424 | (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move | |
5425 | to be methods on struct attribute. | |
5426 | (skip_one_die, process_imported_unit_die, read_namespace_alias) | |
5427 | (read_call_site_scope, partial_die_info::read) | |
5428 | (partial_die_info::read, lookup_die_type, follow_die_ref): | |
5429 | Update. | |
5430 | * dwarf2/attribute.c (attribute::get_ref_die_offset): New method, | |
5431 | from dwarf2_get_ref_die_offset. | |
5432 | (attribute::constant_value): New method, from | |
5433 | dwarf2_get_attr_constant_value. | |
5434 | * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>: | |
5435 | Declare method. | |
5436 | <constant_value>: New method. | |
5437 | ||
2b2558bf TT |
5438 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5439 | ||
5440 | * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name) | |
5441 | (dwarf_attr_name, dwarf_form_name, dwarf_bool_name) | |
5442 | (dwarf_type_encoding_name): Move to stringify.c. | |
5443 | * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c. | |
5444 | * dwarf2/stringify.c: New file. | |
5445 | * dwarf2/stringify.h: New file. | |
5446 | ||
eeb64781 TT |
5447 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5448 | ||
5449 | * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: | |
5450 | Rewrite. | |
5451 | ||
a39fdb41 TT |
5452 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5453 | ||
5454 | * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New | |
5455 | methods. | |
5456 | * dwarf2/read.c (lookup_addr_base): Move to die.h. | |
5457 | (lookup_ranges_base): Likewise. | |
5458 | (read_cutu_die_from_dwo, read_full_die_1): Update. | |
5459 | ||
436c571c TT |
5460 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5461 | ||
5462 | * dwarf2/read.c (read_import_statement, read_file_scope) | |
5463 | (read_type_unit_scope, inherit_abstract_dies, read_func_scope) | |
5464 | (read_lexical_block_scope, read_call_site_scope) | |
5465 | (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds) | |
5466 | (handle_struct_member_die, process_structure_scope) | |
5467 | (update_enumeration_type_from_children) | |
5468 | (process_enumeration_scope, read_array_type, read_common_block) | |
5469 | (read_namespace, read_module, read_subroutine_type): Update. | |
5470 | (sibling_die): Remove. | |
5471 | ||
052c8bb8 TT |
5472 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5473 | ||
5474 | * dwarf2/read.c (lookup_addr_base, lookup_ranges_base) | |
5475 | (build_type_psymtabs_reader, read_structure_type) | |
5476 | (read_enumeration_type, read_full_die_1): Update. | |
5477 | (dwarf2_attr_no_follow): Move to die.h. | |
5478 | * dwarf2/die.h (struct die_info) <attr>: New method. | |
5479 | ||
2b24b6e4 TT |
5480 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5481 | ||
5482 | * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove. | |
5483 | <base_address>: Now an optional. | |
5484 | (dwarf2_find_base_address, dwarf2_rnglists_process) | |
5485 | (dwarf2_ranges_process, fill_in_loclist_baton) | |
5486 | (dwarf2_symbol_mark_computed): Update. | |
5487 | ||
c2d50fd0 TT |
5488 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5489 | ||
5490 | * dwarf2/read.c (struct die_info): Move to die.h. | |
5491 | * dwarf2/die.h: New file. | |
5492 | ||
0df7ad3a TT |
5493 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5494 | ||
5495 | * dwarf2/line-header.h (dwarf_decode_line_header): Declare. | |
5496 | * dwarf2/read.c | |
5497 | (dwarf2_statement_list_fits_in_line_number_section_complaint): | |
5498 | Move to line-header.c. | |
5499 | (read_checked_initial_length_and_offset, read_formatted_entries): | |
5500 | Likewise. | |
5501 | (dwarf_decode_line_header): Split into two. | |
5502 | * dwarf2/line-header.c | |
5503 | (dwarf2_statement_list_fits_in_line_number_section_complaint): | |
5504 | Move from read.c. | |
5505 | (read_checked_initial_length_and_offset, read_formatted_entries): | |
5506 | Likewise. | |
5507 | (dwarf_decode_line_header): New function, split from read.c. | |
5508 | ||
86c0bb4c TT |
5509 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5510 | ||
5511 | * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>: | |
5512 | Declare method. | |
5513 | * dwarf2/read.c (read_attribute_value): Update. | |
5514 | (dwarf2_per_objfile::read_line_string): Rename from | |
5515 | read_indirect_line_string. | |
5516 | (read_formatted_entries): Update. | |
5517 | ||
2ef46c2f TT |
5518 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5519 | ||
5520 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local | |
5521 | variable. | |
5522 | ||
4f9c1eda TT |
5523 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5524 | ||
5525 | * dwarf2/macro.h (dwarf_decode_macros): Make section parameter | |
5526 | const. | |
5527 | * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode) | |
5528 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section | |
5529 | parameter const. | |
5530 | ||
5a0e026f TT |
5531 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5532 | ||
5533 | * dwarf2/read.c (dwarf_decode_macros): Make "lh" const. | |
5534 | * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter. | |
5535 | * dwarf2/macro.c (macro_start_file): Constify "lh" parameter. | |
5536 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise. | |
5537 | ||
8844c11b TT |
5538 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5539 | ||
5540 | * dwarf2/line-header.h (struct line_header) <is_valid_file_index, | |
5541 | file_names_size, file_full_name, file_file_name>: Use const. | |
5542 | <file_name_at, file_names>: Add const overload. | |
5543 | * dwarf2/line-header.c (line_header::file_file_name) | |
5544 | (line_header::file_full_name): Update. | |
5545 | ||
c90ec28a TT |
5546 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5547 | ||
5548 | * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint) | |
5549 | (macro_start_file, consume_improper_spaces) | |
5550 | (parse_macro_definition, skip_form_bytes, skip_unknown_opcode) | |
5551 | (dwarf_parse_macro_header, dwarf_decode_macro_bytes) | |
5552 | (dwarf_decode_macros): Move to macro.c. | |
5553 | * dwarf2/macro.c: New file. | |
5554 | * dwarf2/macro.h: New file. | |
5555 | * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c. | |
5556 | ||
4f44ae6c TT |
5557 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5558 | ||
5559 | * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New | |
5560 | method. | |
5561 | * dwarf2/section.c: New method. From | |
5562 | read_indirect_string_at_offset_from. | |
5563 | * dwarf2/read.c (mapped_debug_names::namei_to_name): Update. | |
5564 | (read_indirect_string_at_offset_from): Move to section.c. | |
5565 | (read_indirect_string_at_offset): Rewrite. | |
5566 | (read_indirect_line_string_at_offset): Remove. | |
5567 | (read_indirect_string, read_indirect_line_string) | |
5568 | (dwarf_decode_macro_bytes): Update. | |
5569 | ||
a0194fa8 TT |
5570 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5571 | ||
5572 | * dwarf2/section.h (struct dwarf2_section_info) | |
5573 | <overload_complaint>: Declare. | |
5574 | (dwarf2_section_buffer_overflow_complaint): Don't declare. | |
5575 | * dwarf2/section.c (dwarf2_section_info::overflow_complaint): | |
5576 | Rename from dwarf2_section_buffer_overflow_complaint. | |
5577 | * dwarf2/read.c (skip_one_die, partial_die_info::read) | |
5578 | (skip_form_bytes, dwarf_decode_macro_bytes): Update. | |
5579 | ||
3d27bbdb TT |
5580 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5581 | ||
5582 | * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint): | |
5583 | Declare. | |
5584 | * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint): | |
5585 | Move from read.c. | |
5586 | * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move | |
5587 | to section.c. | |
5588 | ||
9eac9650 TT |
5589 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5590 | ||
5591 | * dwarf2/read.c (dwarf_decode_macros): Split into two overloads. | |
5592 | ||
bf80d710 TT |
5593 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5594 | ||
5595 | * dwarf2/read.c (macro_start_file): Change "cu" parameter to | |
5596 | "builder". | |
5597 | (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile | |
5598 | parameter. | |
5599 | (dwarf_decode_macros): Update. | |
5600 | ||
0314b390 TT |
5601 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5602 | ||
5603 | * dwarf2/read.c (read_attribute_value): Update. | |
5604 | (read_indirect_string_from_dwz): Move to dwz.c; change into | |
5605 | method. | |
5606 | (dwarf_decode_macro_bytes): Update. | |
5607 | * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method. | |
5608 | * dwarf2/dwz.c: New file. | |
5609 | * Makefile.in (COMMON_SFILES): Add dwz.c. | |
5610 | ||
9fda78b6 TT |
5611 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5612 | ||
5613 | * dwarf2/read.h (struct dwz_file): Move to dwz.h. | |
5614 | * dwarf2/read.c: Add include. | |
5615 | * dwarf2/index-write.c: Add include. | |
5616 | * dwarf2/index-cache.c: Add include. | |
5617 | * dwarf2/dwz.h: New file. | |
5618 | ||
33aa3c10 TT |
5619 | 2020-03-25 Tom Tromey <tom@tromey.com> |
5620 | ||
5621 | * compile/compile-object-load.c (get_out_value_type): Mention | |
5622 | correct symbol name in error message. | |
5623 | ||
d503b685 HD |
5624 | 2020-03-25 Hannes Domani <ssbssa@yahoo.de> |
5625 | ||
5626 | * windows-nat.c (windows_add_all_dlls): Fix system dll paths. | |
5627 | ||
7b1eff95 TV |
5628 | 2020-03-25 Tom de Vries <tdevries@suse.de> |
5629 | ||
5630 | * symtab.h (is_main_symtab_of_compunit_symtab): New function. | |
5631 | * symmisc.c (dump_symtab_1): Print user and includes fields. | |
5632 | (maintenance_info_symtabs): Same. | |
5633 | ||
dd895392 AB |
5634 | 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com> |
5635 | ||
5636 | PR gdb/25534 | |
5637 | * riscv-tdep.c (riscv_arg_info::c_offset): Update comment. | |
5638 | (riscv_regcache_cooked_write): New function. | |
5639 | (riscv_push_dummy_call): Use new function. | |
5640 | (riscv_return_value): Likewise. | |
5641 | ||
5ab2fbf1 SM |
5642 | 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca> |
5643 | ||
5644 | * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int. | |
5645 | * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise. | |
5646 | * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise. | |
5647 | * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise. | |
5648 | * infrun.c (follow_fork): Likewise. | |
5649 | (follow_fork_inferior): Likewise. | |
5650 | * linux-nat.c (linux_nat_target::follow_fork): Likewise. | |
5651 | * linux-nat.h (class linux_nat_target): Likewise. | |
5652 | * remote.c (class remote_target) <follow_fork>: Likewise. | |
5653 | (remote_target::follow_fork): Likewise. | |
5654 | * target-delegates.c: Re-generate. | |
5655 | * target.c (default_follow_fork): Likewise. | |
5656 | (target_follow_fork): Likewise. | |
5657 | * target.h (struct target_ops) <follow_fork>: Likewise. | |
5658 | (target_follow_fork): Likewise. | |
5659 | ||
a64fafb5 TV |
5660 | 2020-03-24 Tom de Vries <tdevries@suse.de> |
5661 | ||
5662 | * psymtab.c (maintenance_info_psymtabs): Print user field. | |
5663 | ||
fe26d3a3 TT |
5664 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
5665 | ||
5666 | * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack" | |
5667 | const. | |
5668 | * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack" | |
5669 | const. | |
5670 | ||
c884cc46 SM |
5671 | 2020-03-20 Simon Marchi <simon.marchi@efficios.com> |
5672 | ||
5673 | * ptrace.m4: Don't check for ptrace declaration. | |
5674 | * config.in: Re-generate. | |
5675 | * configure: Re-generate. | |
5676 | * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is | |
5677 | not defined. | |
5678 | ||
1ff700c2 KR |
5679 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
5680 | ||
5681 | * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to | |
5682 | `PTRACE_TYPE_RET'. | |
5683 | * i386-bsd-nat.c (gdb_ptrace): Likewise. | |
5684 | * sparc-nat.c (gdb_ptrace): Likewise. | |
5685 | * x86-bsd-nat.c (gdb_ptrace): Likewise. | |
5686 | ||
f7d4f0b1 TT |
5687 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
5688 | ||
5689 | * c-exp.y (lex_one_token): Fix assert. | |
5690 | ||
f67210ff TT |
5691 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
5692 | ||
5693 | * ada-tasks.c (read_atcb): Use smaller length in strncpy call. | |
5694 | * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in | |
5695 | strncpy call. | |
5696 | ||
1773be9e TT |
5697 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
5698 | ||
5699 | * symmisc.c (maintenance_print_one_line_table): Use ui_out. | |
5700 | ||
70304be9 TT |
5701 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
5702 | ||
5703 | * ada-valprint.c (print_variant_part): Remove parameters; switch | |
5704 | to value-based API. | |
5705 | (print_field_values): Likewise. | |
5706 | (ada_val_print_struct_union): Likewise. | |
5707 | (ada_value_print_1): Update. | |
5708 | ||
9faa006d KR |
5709 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
5710 | ||
5711 | * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from | |
5712 | nbsd_nat_target instead of inf_ptrace_target. | |
5713 | * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
5714 | nbsd_nat_target. | |
5715 | ||
4a90f062 KR |
5716 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
5717 | ||
5718 | * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
5719 | it to the ptrace call. | |
5720 | * (store_registers): Likewise. | |
5721 | ||
5722 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> | |
c7da12c7 KR |
5723 | |
5724 | * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
5725 | it to the ptrace call. | |
5726 | * (store_registers): Likewise. | |
5727 | ||
2d07da27 LM |
5728 | 2020-03-19 Luis Machado <luis.machado@linaro.org> |
5729 | ||
5730 | * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not | |
5731 | valid, fetch vg value from ptrace. | |
5732 | ||
f09db380 KR |
5733 | 2020-03-19 Kamil Rytarowski <n54@gmx.com> |
5734 | * inf-ptrace.h: Disable get_ptrace_pid on NetBSD. | |
5735 | * inf-ptrace.c: Likewise. | |
5736 | * (gdb_ptrace): Add. | |
5737 | * (inf_ptrace_target::resume): Update. | |
5738 | * (inf_ptrace_target::xfer_partial): Likewise. | |
5739 | * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'. | |
5740 | * (inf_ptrace_peek_poke): Update. | |
5741 | ||
fcc7376e KR |
5742 | 2020-03-19 Kamil Rytarowski <n54@gmx.com> |
5743 | ||
5744 | * x86-bsd-nat.c (gdb_ptrace): New. | |
5745 | * (x86bsd_dr_set): Add new argument `ptid'. | |
5746 | * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control, | |
5747 | x86bsd_dr_set_addr): Update. | |
5748 | ||
cada5fc9 AB |
5749 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
5750 | ||
5751 | * remote.c (remote_target::process_stop_reply): Handle events for | |
5752 | all threads differently. | |
5753 | ||
19a2740f AB |
5754 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
5755 | ||
5756 | * completer.c (completion_tracker::remove_completion): Define new | |
5757 | function. | |
5758 | * completer.h (completion_tracker::remove_completion): Declare new | |
5759 | function. | |
5760 | * symtab.c (completion_list_add_symbol): Remove aliasing msymbols | |
5761 | when adding a C++ function symbol. | |
5762 | ||
724fd9ba AB |
5763 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
5764 | ||
5765 | * completer.c (completion_tracker::completion_hash_entry): Define | |
5766 | new class. | |
5767 | (advance_to_filename_complete_word_point): Call | |
5768 | recompute_lowest_common_denominator. | |
5769 | (completion_tracker::completion_tracker): Call discard_completions | |
5770 | to setup the hash table. | |
5771 | (completion_tracker::discard_completions): Allow for being called | |
5772 | from the constructor, pass new equal function, and element deleter | |
5773 | when constructing the hash table. Initialise new class member | |
5774 | variables. | |
5775 | (completion_tracker::maybe_add_completion): Remove use of | |
5776 | m_entries_vec, and store more information into m_entries_hash. | |
5777 | (completion_tracker::recompute_lcd_visitor): New function, most | |
5778 | content taken from... | |
5779 | (completion_tracker::recompute_lowest_common_denominator): | |
5780 | ...here, this now just visits each item in the hash calling the | |
5781 | above visitor. | |
5782 | (completion_tracker::build_completion_result): Remove use of | |
5783 | m_entries_vec, call recompute_lowest_common_denominator. | |
5784 | * completer.h (completion_tracker::have_completions): Remove use | |
5785 | of m_entries_vec. | |
5786 | (completion_tracker::completion_hash_entry): Declare new class. | |
5787 | (completion_tracker::recompute_lowest_common_denominator): Change | |
5788 | function signature. | |
5789 | (completion_tracker::recompute_lcd_visitor): Declare new function. | |
5790 | (completion_tracker::m_entries_vec): Delete. | |
5791 | (completion_tracker::m_entries_hash): Initialize to NULL. | |
5792 | (completion_tracker::m_lowest_common_denominator_valid): New | |
5793 | member variable. | |
5794 | (completion_tracker::m_lowest_common_denominator_max_length): New | |
5795 | member variable. | |
5796 | ||
5a82b8a1 KR |
5797 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
5798 | ||
5799 | * regformats/regdef.h: Put reg in gdb namespace. | |
5800 | ||
fb516a69 KR |
5801 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
5802 | ||
5803 | * i386-bsd-nat.c (gdb_ptrace): New. | |
5804 | * (i386bsd_fetch_inferior_registers, | |
5805 | i386bsd_store_inferior_registers) Switch from pid_t to ptid_t. | |
5806 | * (i386bsd_fetch_inferior_registers, | |
5807 | i386bsd_store_inferior_registers) Use gdb_ptrace. | |
5808 | ||
1c0aa1fb KR |
5809 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
5810 | ||
5811 | * amd64-bsd-nat.c (gdb_ptrace): New. | |
5812 | * (amd64bsd_fetch_inferior_registers, | |
5813 | amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t. | |
5814 | * (amd64bsd_fetch_inferior_registers, | |
5815 | amd64bsd_store_inferior_registers) Use gdb_ptrace. | |
5816 | ||
5ccd2fb7 KR |
5817 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
5818 | ||
5819 | * user-regs.c (user_reg::read): Rename to... | |
5820 | (user_reg::xread): ...this. | |
5821 | * (append_user_reg): Rename argument `read' to `xread'. | |
5822 | * (user_reg_add_builtin): Likewise. | |
5823 | * (user_reg_add): Likewise. | |
5824 | * (value_of_user_reg): Likewise. | |
5825 | ||
2108a63a KR |
5826 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
5827 | ||
5828 | * sparc-nat.c (gdb_ptrace): New. | |
5829 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
5830 | (sparc_store_inferior_registers) Remove obsolete comment. | |
5831 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
5832 | (sparc_store_inferior_registers) Switch from pid_t to ptid_t. | |
5833 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
5834 | (sparc_store_inferior_registers) Use gdb_ptrace. | |
5835 | ||
a225c9a8 KR |
5836 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
5837 | ||
5838 | * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
5839 | it to the ptrace call. | |
5840 | * sh-nbsd-nat.c (store_registers): Likewise. | |
5841 | ||
98097623 KR |
5842 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
5843 | ||
5844 | * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from | |
5845 | nbsd_nat_target instead of inf_ptrace_target. | |
5846 | * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
5847 | nbsd_nat_target. | |
5848 | ||
9e38d619 KR |
5849 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
5850 | ||
5851 | * amd64-bsd-nat.c: Include amd64-bsd-nat.h". | |
5852 | ||
a2ecbe9f KR |
5853 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
5854 | ||
5855 | * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and | |
5856 | <sys/sysctl.h>. | |
5857 | * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite. | |
5858 | ||
58990295 TV |
5859 | 2020-03-17 Tom de Vries <tdevries@suse.de> |
5860 | ||
5861 | PR gdb/23710 | |
5862 | * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang | |
5863 | fields. | |
5864 | * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang | |
5865 | fields. | |
5866 | (process_imported_unit_die): Skip import of c++ CUs. | |
5867 | ||
771dd3a8 TT |
5868 | 2020-03-16 Tom Tromey <tom@tromey.com> |
5869 | ||
5870 | * p-valprint.c (pascal_object_print_value): Initialize | |
5871 | base_value. | |
5872 | ||
817a7585 AK |
5873 | 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com> |
5874 | Shahab Vahedi <shahab@synopsys.com> | |
5875 | ||
5876 | * Makefile.in: Add arch/arc.o | |
5877 | * configure.tgt: Likewise. | |
5878 | * arc-tdep.c (arc_tdesc_init): Use arc_read_description. | |
5879 | (_initialize_arc_tdep): Don't initialize old target descriptions. | |
aac66a4c | 5880 | (arc_read_description): New function to cache target descriptions. |
817a7585 AK |
5881 | * arc-tdep.h (arc_read_description): Add proto type. |
5882 | * arch/arc.c: New file. | |
5883 | * arch/arc.h: Likewise. | |
5884 | * features/Makefile: Replace old target descriptions with new. | |
5885 | * features/arc-arcompact.c: Remove. | |
5886 | * features/arc-arcompact.xml: Likewise. | |
5887 | * features/arc-v2.c: Likewise | |
5888 | * features/arc-v2.xml: Likewise | |
5889 | * features/arc/aux-arcompact.xml: New file. | |
5890 | * features/arc/aux-v2.xml: Likewise. | |
5891 | * features/arc/core-arcompact.xml: Likewise. | |
5892 | * features/arc/core-v2.xml: Likewise. | |
5893 | * features/arc/aux-arcompact.c: Generate. | |
5894 | * features/arc/aux-v2.c: Likewise. | |
5895 | * features/arc/core-arcompact.c: Likewise. | |
5896 | * features/arc/core-v2.c: Likewise. | |
5897 | * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features. | |
5898 | ||
67430cd0 TT |
5899 | 2020-03-16 Tom Tromey <tromey@adacore.com> |
5900 | ||
5901 | PR gdb/25663: | |
5902 | * dwarf2/read.c (dwarf2_name): Strip leading namespaces after | |
5903 | putting value into bcache. | |
5904 | ||
30efb6c7 SM |
5905 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
5906 | ||
5907 | PR gdb/21500 | |
5908 | * amd64-windows-tdep.c (amd64_windows_init_abi): Rename | |
5909 | to... | |
5910 | (amd64_windows_init_abi_common): ... this. Don't set size of | |
5911 | long type. | |
5912 | (amd64_windows_init_abi): New function. | |
5913 | (amd64_cygwin_init_abi): New function. | |
5914 | (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for | |
5915 | the Cygwin OS ABI. | |
5916 | * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify | |
5917 | comment. | |
5918 | ||
8db52437 SM |
5919 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
5920 | ||
5921 | * windows-tdep.h (is_linked_with_cygwin_dll): New declaration. | |
5922 | * windows-tdep.c (CYGWIN_DLL_NAME): New. | |
5923 | (pe_import_directory_entry): New struct type. | |
5924 | (is_linked_with_cygwin_dll): New function. | |
5925 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select | |
5926 | GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL. | |
5927 | * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise. | |
5928 | ||
5982a56a SM |
5929 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
5930 | ||
5931 | * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except | |
5932 | i386_cygwin_core_osabi_sniffer. | |
5933 | ||
7a1998df SM |
5934 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
5935 | ||
5936 | * i386-cygwin-tdep.c: Rename to... | |
5937 | * i386-windows-tdep.c: ... this. | |
5938 | * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to | |
5939 | i386-windows-tdep.c. | |
5940 | * configure.tgt: Likewise. | |
5941 | ||
053205cc SM |
5942 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
5943 | ||
5944 | * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS. | |
5945 | * osabi.c (gdb_osabi_names): Add "Windows". | |
5946 | * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return | |
5947 | GDB_OSABI_WINDOWS when the binary's target is "pei-i386". | |
5948 | (i386_cygwin_core_osabi_sniffer): New function, extracted from | |
5949 | i386_cygwin_osabi_sniffer. | |
5950 | (_initialize_i386_cygwin_tdep): Register OS ABI | |
5951 | GDB_OSABI_WINDOWS for i386. | |
5952 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return | |
5953 | GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64". | |
5954 | (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS | |
5955 | for x86-64. | |
5956 | * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI | |
5957 | when the target matches '*-*-mingw*'. | |
5958 | ||
fe4b2ee6 SM |
5959 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
5960 | ||
5961 | * defs.h (enum gdb_osabi): Move to... | |
5962 | * osabi.h (enum gdb_osabi): ... here. | |
5963 | * gdbarch.sh: Include osabi.h in gdbarch.h. | |
5964 | * gdbarch.h: Re-generate. | |
5965 | ||
cb9b645d SM |
5966 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
5967 | ||
5968 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New | |
5969 | function. | |
5970 | (_initialize_amd64_windows_tdep): Register osabi sniffer. | |
5971 | ||
3293bbaf TT |
5972 | 2020-03-14 Tom Tromey <tom@tromey.com> |
5973 | ||
5974 | * c-typeprint.c (cp_type_print_method_args): Print "__restrict__" | |
5975 | for C++. | |
5976 | (c_type_print_modifier): Likewise. Add "language" parameter. | |
5977 | (c_type_print_varspec_prefix, c_type_print_base_struct_union) | |
5978 | (c_type_print_base_1): Update. | |
5979 | * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New | |
5980 | constants. | |
5981 | * type-stack.c (type_stack::insert): Handle tp_atomic and | |
5982 | tp_restrict. | |
5983 | (type_stack::follow_type_instance_flags): Likewise. | |
5984 | (type_stack::follow_types): Likewise. Merge type-following code. | |
5985 | * c-exp.y (RESTRICT, ATOMIC): New tokens. | |
5986 | (space_identifier, cv_with_space_id) | |
5987 | (const_or_volatile_or_space_identifier_noopt) | |
5988 | (const_or_volatile_or_space_identifier): Remove. | |
5989 | (single_qualifier, qualifier_seq_noopt, qualifier_seq): New | |
5990 | rules. | |
5991 | (ptr_operator, typebase): Update. | |
5992 | (enum token_flag) <FLAG_C>: New constant. | |
5993 | (ident_tokens): Add "restrict", "__restrict__", "__restrict", and | |
5994 | "_Atomic". | |
5995 | (lex_one_token): Handle FLAG_C. | |
5996 | ||
154151a6 KR |
5997 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
5998 | ||
5999 | * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass | |
6000 | it to the ptrace call. | |
6001 | * m68k-bsd-nat.c (store_registers): Likewise. | |
6002 | ||
bc107784 KR |
6003 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
6004 | ||
6005 | * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to | |
6006 | gdb_byte *. | |
6007 | * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise. | |
6008 | * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise. | |
6009 | * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *. | |
6010 | ||
01a80117 KR |
6011 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
6012 | ||
6013 | * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from | |
6014 | nbsd_nat_target instead of inf_ptrace_target. | |
6015 | * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
6016 | nbsd_nat_target. | |
6017 | ||
f90280ca KR |
6018 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
6019 | ||
6020 | * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
6021 | register_t. | |
6022 | ||
6def66f1 KR |
6023 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
6024 | ||
6025 | * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass | |
6026 | it to the ptrace call. | |
6027 | * alpha-bsd-nat.c (store_registers): Likewise. | |
6028 | ||
66eaca97 KR |
6029 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
6030 | ||
6031 | * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from | |
6032 | includes. | |
6033 | * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove. | |
6034 | * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset, | |
6035 | fill_fpregset): Likewise. | |
6036 | ||
4fed520b KR |
6037 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
6038 | ||
6039 | * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from | |
6040 | nbsd_nat_target instead of inf_ptrace_target. | |
6041 | * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
6042 | nbsd_nat_target. | |
6043 | ||
2190cf06 KR |
6044 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
6045 | ||
6046 | * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
6047 | register_t. | |
6048 | ||
75c56d3d KR |
6049 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
6050 | ||
6051 | * arm-nbsd-nat.c (fetch_register): New variable lwp and pass | |
6052 | it to the ptrace call. | |
6053 | * arm-nbsd-nat.c (fetch_fp_register): Likewise. | |
6054 | * arm-nbsd-nat.c (fetch_fp_regs): Likewise. | |
6055 | * arm-nbsd-nat.c (store_register): Likewise. | |
6056 | * arm-nbsd-nat.c (store_regs): Likewise. | |
6057 | * arm-nbsd-nat.c (store_fp_register): Likewise. | |
6058 | * arm-nbsd-nat.c (store_fp_regs): Likewise. | |
6059 | ||
6018d381 KR |
6060 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
6061 | ||
6062 | * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from | |
6063 | nbsd_nat_target instead of inf_ptrace_target. | |
6064 | * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
6065 | nbsd_nat_target. | |
6066 | ||
013f99f0 KR |
6067 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
6068 | ||
6069 | * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass | |
6070 | it to the ptrace call. | |
6071 | * x86-bsd-nat.c (x86bsd_dr_set): Likewise. | |
6072 | ||
12753073 KR |
6073 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
6074 | ||
6227b330 KR |
6075 | * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass |
6076 | it to the ptrace call. | |
6077 | * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise. | |
6078 | ||
6079 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
6080 | ||
6081 | * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const | |
6082 | gdb_byte *. | |
12753073 KR |
6083 | * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *. |
6084 | ||
d5be5fa4 KR |
6085 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
6086 | ||
6087 | * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target | |
6088 | instead of inf_ptrace_target. | |
6089 | * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
6090 | nbsd_nat_target. | |
6091 | ||
8110f842 KR |
6092 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
6093 | ||
6094 | * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
6095 | register_t. | |
6096 | ||
52feded7 KR |
6097 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
6098 | ||
6099 | * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
6100 | register_t. | |
6101 | ||
25567eee KR |
6102 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
6103 | ||
6104 | * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
6105 | register_t. | |
6106 | ||
426a9c18 TT |
6107 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6108 | ||
6109 | * value.h (val_print): Don't declare. | |
6110 | * valprint.h (val_print_array_elements) | |
6111 | (val_print_scalar_formatted, generic_val_print): Don't declare. | |
6112 | * valprint.c (generic_val_print_array): Take a struct value. | |
6113 | (generic_val_print_ptr, generic_val_print_memberptr) | |
6114 | (generic_val_print_bool, generic_val_print_int) | |
6115 | (generic_val_print_char, generic_val_print_complex) | |
6116 | (generic_val_print): Remove. | |
6117 | (generic_value_print): Update. | |
6118 | (do_val_print): Remove unused parameters. Don't call | |
6119 | la_val_print. | |
6120 | (val_print): Remove. | |
6121 | (common_val_print): Update. Don't call value_check_printable. | |
6122 | (val_print_scalar_formatted, val_print_array_elements): Remove. | |
6123 | * rust-lang.c (rust_val_print): Remove. | |
6124 | (rust_language_defn): Update. | |
6125 | * p-valprint.c (pascal_val_print): Remove. | |
6126 | (pascal_value_print_inner): Update. | |
6127 | (pascal_object_print_val_fields, pascal_object_print_val): | |
6128 | Remove. | |
6129 | (pascal_object_print_static_field): Update. | |
6130 | * p-lang.h (pascal_val_print): Don't declare. | |
6131 | * p-lang.c (pascal_language_defn): Update. | |
6132 | * opencl-lang.c (opencl_language_defn): Update. | |
6133 | * objc-lang.c (objc_language_defn): Update. | |
6134 | * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove. | |
6135 | * m2-lang.h (m2_val_print): Don't declare. | |
6136 | * m2-lang.c (m2_language_defn): Update. | |
6137 | * language.h (struct language_defn) <la_val_print>: Remove. | |
6138 | * language.c (unk_lang_value_print_inner): Rename. Change | |
6139 | argument types. | |
6140 | (unknown_language_defn, auto_language_defn): Update. | |
6141 | * go-valprint.c (go_val_print): Remove. | |
6142 | * go-lang.h (go_val_print): Don't declare. | |
6143 | * go-lang.c (go_language_defn): Update. | |
6144 | * f-valprint.c (f_val_print): Remove. | |
6145 | * f-lang.h (f_value_print): Don't declare. | |
6146 | * f-lang.c (f_language_defn): Update. | |
6147 | * d-valprint.c (d_val_print): Remove. | |
6148 | * d-lang.h (d_value_print): Don't declare. | |
6149 | * d-lang.c (d_language_defn): Update. | |
6150 | * cp-valprint.c (cp_print_value_fields) | |
6151 | (cp_print_value_fields_rtti, cp_print_value): Remove. | |
6152 | (cp_print_static_field): Update. | |
6153 | * c-valprint.c (c_val_print_array, c_val_print_ptr) | |
6154 | (c_val_print_struct, c_val_print_union, c_val_print_int) | |
6155 | (c_val_print_memberptr, c_val_print): Remove. | |
6156 | * c-lang.h (c_val_print_array, cp_print_value_fields) | |
6157 | (cp_print_value_fields_rtti): Don't declare. | |
6158 | * c-lang.c (c_language_defn, cplus_language_defn) | |
6159 | (asm_language_defn, minimal_language_defn): Update. | |
6160 | * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove. | |
6161 | (ada_val_print_enum): Take a struct value. | |
6162 | (ada_val_print_flt, ada_val_print_array, ada_val_print_1) | |
6163 | (ada_val_print): Remove. | |
6164 | (ada_value_print_1): Update. | |
6165 | (printable_val_type): Remove. | |
6166 | * ada-lang.h (ada_val_print): Don't declare. | |
6167 | * ada-lang.c (ada_language_defn): Update. | |
6168 | ||
42331a1e TT |
6169 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6170 | ||
6171 | * valprint.c (do_val_print): Update. | |
6172 | * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take | |
6173 | a struct value. | |
6174 | (value_to_value_object_no_release): Declare. | |
6175 | * python/py-value.c (value_to_value_object_no_release): New | |
6176 | function. | |
6177 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a | |
6178 | struct value. | |
6179 | * guile/scm-value.c (vlscm_scm_from_value_no_release): New | |
6180 | function. | |
6181 | * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take | |
6182 | a struct value. | |
6183 | * guile/guile-internal.h (vlscm_scm_from_value_no_release): | |
6184 | Declare. | |
6185 | (gdbscm_apply_val_pretty_printer): Take a struct value. | |
6186 | * extension.h (apply_ext_lang_val_pretty_printer): Take a struct | |
6187 | value. | |
6188 | * extension.c (apply_ext_lang_val_pretty_printer): Take a struct | |
6189 | value. | |
6190 | * extension-priv.h (struct extension_language_ops) | |
6191 | <apply_val_pretty_printer>: Take a struct value. | |
6192 | * cp-valprint.c (cp_print_value): Create a struct value. | |
6193 | (cp_print_value): Update. | |
6194 | ||
3a916a97 TT |
6195 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6196 | ||
6197 | * ada-valprint.c (print_field_values): Call common_val_print. | |
6198 | ||
b59eac37 TT |
6199 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6200 | ||
6201 | * ada-valprint.c (val_print_packed_array_elements): Remove | |
6202 | bitoffset and val parameters. Call common_val_print. | |
6203 | (ada_val_print_string): Remove offset, address, and original_value | |
6204 | parameters. | |
6205 | (ada_val_print_array): Update. | |
6206 | (ada_value_print_array): New function. | |
6207 | (ada_value_print_1): Call it. | |
6208 | ||
03371129 TT |
6209 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6210 | ||
6211 | * ada-valprint.c (ada_value_print): Use common_val_print. | |
6212 | ||
2e088f8b TT |
6213 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6214 | ||
6215 | * ada-valprint.c (ada_val_print_ref): Use common_val_print. | |
6216 | ||
39ef85a8 TT |
6217 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6218 | ||
6219 | * ada-valprint.c (ada_value_print_num): New function. | |
6220 | (ada_value_print_1): Use it. | |
6221 | ||
b9fa6e07 TT |
6222 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6223 | ||
6224 | * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite. | |
6225 | ||
416595d6 TT |
6226 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6227 | ||
6228 | * ada-valprint.c (ada_value_print_ptr): New function. | |
6229 | (ada_value_print_1): Use it. | |
6230 | ||
5b5e15ec TT |
6231 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6232 | ||
6233 | * ada-valprint.c (ada_val_print_gnat_array): Take a struct value; | |
6234 | call common_val_print. | |
6235 | (ada_val_print_1): Update. | |
6236 | (ada_value_print_1): New function. | |
6237 | (ada_value_print_inner): Rewrite. | |
6238 | ||
fbf54e75 TT |
6239 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6240 | ||
6241 | * cp-valprint.c (cp_print_value_fields): Update. | |
6242 | (cp_print_value): New function. | |
6243 | ||
64b653ca TT |
6244 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6245 | ||
6246 | * m2-valprint.c (m2_value_print_inner): Use | |
6247 | cp_print_value_fields. | |
6248 | * cp-valprint.c (cp_print_value_fields): New function. | |
6249 | * c-valprint.c (c_value_print_struct): New function. | |
6250 | (c_value_print_inner): Use c_value_print_struct. | |
6251 | * c-lang.h (cp_print_value_fields): Declare. | |
6252 | ||
6999f067 TT |
6253 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6254 | ||
6255 | * c-valprint.c (c_value_print_array): New function. | |
6256 | (c_value_print_inner): Use it. | |
6257 | ||
ce80b8bd TT |
6258 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6259 | ||
6260 | * c-valprint.c (c_value_print_memberptr): New function. | |
6261 | (c_value_print_inner): Use it. | |
6262 | ||
2faac269 TT |
6263 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6264 | ||
6265 | * c-valprint.c (c_value_print_int): New function. | |
6266 | (c_value_print_inner): Use it. | |
6267 | ||
da3e2c29 TT |
6268 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6269 | ||
6270 | * c-valprint.c (c_value_print_ptr): New function. | |
6271 | (c_value_print_inner): Use it. | |
6272 | ||
50836231 TT |
6273 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6274 | ||
6275 | * c-valprint.c (c_value_print_inner): Rewrite. | |
6276 | ||
4f412b6e TT |
6277 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6278 | ||
6279 | * valprint.c (generic_value_print_complex): New function. | |
6280 | (generic_value_print): Use it. | |
6281 | ||
f5354008 TT |
6282 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6283 | ||
6284 | * valprint.c (generic_val_print_float): Don't call | |
6285 | val_print_scalar_formatted. | |
6286 | (generic_val_print, generic_value_print): Update. | |
6287 | ||
3eec3b05 TT |
6288 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6289 | ||
6290 | * valprint.c (generic_value_print_char): New function | |
6291 | (generic_value_print): Use it. | |
6292 | ||
fdddfccb TT |
6293 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6294 | ||
6295 | * valprint.c (generic_value_print_int): New function. | |
6296 | (generic_value_print): Use it. | |
6297 | ||
6dde7521 TT |
6298 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6299 | ||
6300 | * valprint.c (generic_value_print_bool): New function. | |
6301 | (generic_value_print): Use it. | |
6302 | ||
4112d2e6 TT |
6303 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6304 | ||
6305 | * valprint.c (generic_val_print_func): Simplify. | |
6306 | (generic_val_print, generic_value_print): Update. | |
6307 | ||
65786af6 TT |
6308 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6309 | ||
6310 | * valprint.c (generic_val_print_flags): Remove. | |
6311 | (generic_val_print, generic_value_print): Update. | |
6312 | (val_print_type_code_flags): Add original_value parameter. | |
6313 | ||
40f3ce18 TT |
6314 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6315 | ||
6316 | * valprint.c (generic_val_print): Update. | |
6317 | (generic_value_print): Update. | |
6318 | * valprint.c (generic_val_print_enum): Don't call | |
6319 | val_print_scalar_formatted. | |
6320 | ||
2a5b130b TT |
6321 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6322 | ||
6323 | * valprint.c (generic_value_print): Call generic_value_print_ptr. | |
6324 | * valprint.c (generic_value_print_ptr): New function. | |
6325 | ||
abc66ce9 TT |
6326 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6327 | ||
6328 | * valprint.c (generic_value_print): Rewrite. | |
6329 | ||
07a32858 TT |
6330 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6331 | ||
6332 | * p-valprint.c (pascal_object_print_value_fields) | |
6333 | (pascal_object_print_value): New functions. | |
6334 | ||
64d64d3a TT |
6335 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6336 | ||
6337 | * p-valprint.c (pascal_value_print_inner): Rewrite. | |
6338 | ||
6a95a1f5 TT |
6339 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6340 | ||
6341 | * f-valprint.c (f_value_print_innner): Rewrite. | |
6342 | ||
59fcdac6 TT |
6343 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6344 | ||
6345 | * m2-valprint.c (m2_print_unbounded_array): New overload. | |
6346 | (m2_print_unbounded_array): Update. | |
6347 | (m2_print_array_contents): Take a struct value. | |
6348 | (m2_value_print_inner): Rewrite. | |
6349 | ||
d133c3e1 TT |
6350 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6351 | ||
6352 | * d-valprint.c (dynamic_array_type): Call d_value_print_inner. | |
6353 | (d_value_print_inner): New function. | |
6354 | * d-lang.h (d_value_print_inner): Declare. | |
6355 | * d-lang.c (d_language_defn): Use d_value_print_inner. | |
6356 | ||
23b0f06b TT |
6357 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6358 | ||
6359 | * go-valprint.c (go_value_print_inner): New function. | |
6360 | * go-lang.h (go_value_print_inner): Declare. | |
6361 | * go-lang.c (go_language_defn): Use go_value_print_inner. | |
6362 | ||
5f56f7cb TT |
6363 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6364 | ||
6365 | * rust-lang.c (val_print_struct, rust_print_enum): Use the value | |
6366 | API. | |
6367 | (rust_val_print): Rewrite. | |
6368 | (rust_value_print_inner): New function, from rust_val_print. | |
6369 | (rust_language_defn): Use rust_value_print_inner. | |
6370 | ||
26792ee0 TT |
6371 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6372 | ||
6373 | * ada-valprint.c (ada_value_print_inner): New function. | |
6374 | * ada-lang.h (ada_value_print_inner): Declare. | |
6375 | * ada-lang.c (ada_language_defn): Use ada_value_print_inner. | |
6376 | ||
24051bbe TT |
6377 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6378 | ||
6379 | * f-valprint.c (f_value_print_innner): New function. | |
6380 | * f-lang.h (f_value_print_innner): Declare. | |
6381 | * f-lang.c (f_language_defn): Use f_value_print_innner. | |
6382 | ||
c0941be6 TT |
6383 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6384 | ||
6385 | * p-valprint.c (pascal_value_print_inner): New function. | |
6386 | * p-lang.h (pascal_value_print_inner): Declare. | |
6387 | * p-lang.c (pascal_language_defn): Use pascal_value_print_inner. | |
6388 | ||
62c4663d TT |
6389 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6390 | ||
6391 | * m2-valprint.c (m2_value_print_inner): New function. | |
6392 | * m2-lang.h (m2_value_print_inner): Declare. | |
6393 | * m2-lang.c (m2_language_defn): Use m2_value_print_inner. | |
6394 | ||
62182190 TT |
6395 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6396 | ||
6397 | * opencl-lang.c (opencl_language_defn): Use c_value_print_inner. | |
6398 | * objc-lang.c (objc_language_defn): Use c_value_print_inner. | |
6399 | * c-valprint.c (c_value_print_inner): New function. | |
6400 | * c-lang.h (c_value_print_inner): Declare. | |
6401 | * c-lang.c (c_language_defn, cplus_language_defn) | |
6402 | (asm_language_defn, minimal_language_defn): Use | |
6403 | c_value_print_inner. | |
6404 | ||
1e592a8a TT |
6405 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6406 | ||
6407 | * p-valprint.c (pascal_object_print_value_fields): Now static. | |
6408 | * p-lang.h (pascal_object_print_value_fields): Don't declare. | |
6409 | ||
7fe471e9 TT |
6410 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6411 | ||
6412 | * c-valprint.c (c_val_print_array): Simplify. | |
6413 | ||
d121c6ce TT |
6414 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6415 | ||
6416 | * valprint.c (value_print_array_elements): New function. | |
6417 | * valprint.h (value_print_array_elements): Declare. | |
6418 | ||
4dba70ee TT |
6419 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6420 | ||
6421 | * printcmd.c (print_formatted): Use value_print_scalar_formatted. | |
6422 | * mips-tdep.c (mips_print_register): Use | |
6423 | value_print_scalar_formatted. | |
6424 | ||
4f9ae810 TT |
6425 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6426 | ||
6427 | * valprint.h (value_print_scalar_formatted): Declare. | |
6428 | * valprint.c (value_print_scalar_formatted): New function. | |
6429 | ||
156bfec9 TT |
6430 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6431 | ||
6432 | * valprint.h (generic_value_print): Declare. | |
6433 | * valprint.c (generic_value_print): New function. | |
6434 | ||
2b4e573d TT |
6435 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6436 | ||
6437 | * valprint.c (do_val_print): Call la_value_print_inner, if | |
6438 | available. | |
6439 | * rust-lang.c (rust_language_defn): Update. | |
6440 | * p-lang.c (pascal_language_defn): Update. | |
6441 | * opencl-lang.c (opencl_language_defn): Update. | |
6442 | * objc-lang.c (objc_language_defn): Update. | |
6443 | * m2-lang.c (m2_language_defn): Update. | |
6444 | * language.h (struct language_defn) <la_value_print_inner>: New | |
6445 | member. | |
6446 | * language.c (unknown_language_defn, auto_language_defn): Update. | |
6447 | * go-lang.c (go_language_defn): Update. | |
6448 | * f-lang.c (f_language_defn): Update. | |
6449 | * d-lang.c (d_language_defn): Update. | |
6450 | * c-lang.c (c_language_defn, cplus_language_defn) | |
6451 | (asm_language_defn, minimal_language_defn): Update. | |
6452 | * ada-lang.c (ada_language_defn): Update. | |
6453 | ||
a1f6a07c TT |
6454 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6455 | ||
6456 | * c-valprint.c (c_value_print): Use common_val_print. | |
6457 | ||
410cf315 TT |
6458 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6459 | ||
6460 | * cp-valprint.c (cp_print_static_field): Use common_val_print. | |
6461 | ||
72a45c93 TT |
6462 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6463 | ||
6464 | * f-valprint.c (f77_print_array_1, f_val_print): Use | |
6465 | common_val_print. | |
6466 | ||
040f66bd TT |
6467 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6468 | ||
6469 | * riscv-tdep.c (riscv_print_one_register_info): Use | |
6470 | common_val_print. | |
6471 | ||
a6e05a6c TT |
6472 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6473 | ||
6474 | * mi/mi-main.c (output_register): Use common_val_print. | |
6475 | ||
3444c526 TT |
6476 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6477 | ||
6478 | * infcmd.c (default_print_one_register_info): Use | |
6479 | common_val_print. | |
6480 | ||
c2a44efe TT |
6481 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6482 | ||
6483 | * valprint.h (common_val_print_checked): Declare. | |
6484 | * valprint.c (common_val_print_checked): New function. | |
6485 | * stack.c (print_frame_arg): Use common_val_print_checked. | |
6486 | ||
b0c26e99 TT |
6487 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6488 | ||
6489 | * valprint.c (do_val_print): New function, from val_print. | |
6490 | (val_print): Use do_val_print. | |
6491 | (common_val_print): Use do_val_print. | |
6492 | ||
ce3acbe9 TT |
6493 | 2020-03-13 Tom Tromey <tom@tromey.com> |
6494 | ||
6495 | * valprint.c (value_print): Use scoped_value_mark. | |
6496 | ||
96c7f873 TV |
6497 | 2020-03-13 Tom de Vries <tdevries@suse.de> |
6498 | ||
6499 | PR symtab/25646 | |
6500 | * psymtab.c (partial_symtab::partial_symtab): Don't set | |
6501 | globals_offset and statics_offset. Push element onto | |
6502 | current_global_psymbols and current_static_psymbols stacks. | |
6503 | (concat): New function. | |
6504 | (end_psymtab_common): Set globals_offset and statics_offset. Pop | |
6505 | element from current_global_psymbols and current_static_psymbols | |
6506 | stacks. Concat popped elements to global_psymbols and | |
6507 | static_symbols. | |
6508 | (add_psymbol_to_list): Use current_global_psymbols and | |
6509 | current_static_psymbols stacks. | |
6510 | * psymtab.h (class psymtab_storage): Add current_global_psymbols and | |
6511 | current_static_psymbols fields. | |
6512 | ||
6ba0a321 CB |
6513 | 2020-03-12 Christian Biesinger <cbiesinger@google.com> |
6514 | ||
6515 | * corelow.c (sniff_core_bfd): Remove. | |
6516 | (class core_target) <m_core_vec>: Remove. | |
6517 | (core_target::core_target): Update. | |
6518 | (core_file_fns): Remove. | |
6519 | (deprecated_add_core_fns): Remove. | |
6520 | (default_core_sniffer): Remove. | |
6521 | (sniff_core_bfd): Remove. | |
6522 | (default_check_format): Remove. | |
6523 | (gdb_check_format): Remove. | |
6524 | (core_target_open): Update. | |
6525 | (core_target::get_core_register_section): Update. | |
6526 | (get_core_registers_cb): Update. | |
6527 | (core_target::fetch_registers): Update. | |
6528 | * gdbcore.h (struct core_fns): Remove. | |
6529 | (deprecated_add_core_fns): Remove. | |
6530 | (default_core_sniffer): Remove. | |
6531 | (default_check_format): Remove. | |
6532 | ||
227031b2 TT |
6533 | 2020-03-12 Tom Tromey <tom@tromey.com> |
6534 | ||
6535 | * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a | |
6536 | CORE_ADDR. | |
6537 | (struct arm_exidx_entry) <addr>: Now a CORE_ADDR. | |
6538 | ||
53807e9f TT |
6539 | 2020-03-12 Tom Tromey <tom@tromey.com> |
6540 | ||
6541 | * remote.c (remote_target::download_tracepoint) | |
6542 | (remote_target::enable_tracepoint) | |
6543 | (remote_target::disable_tracepoint): Use phex, not sprintf_vma. | |
6544 | * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not | |
6545 | sprintf_vma. | |
6546 | ||
64f25102 TT |
6547 | 2020-03-12 Tom Tromey <tom@tromey.com> |
6548 | ||
6549 | * symfile-mem.c: Update CORE_ADDR size assert. | |
6550 | ||
272cd5a3 SM |
6551 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
6552 | ||
6553 | * selftest.m4: Move to gdbsupport/. | |
6554 | * acinclude.m4: Update path to selftest.m4. | |
6555 | ||
74cd3f9d SM |
6556 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
6557 | ||
6558 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to... | |
6559 | (SELFTESTS_SRCS): ... this. Add disasm-selftests.c, | |
6560 | gdbarch-selfselftests.c and selftest-arch.c. | |
6561 | (SUBDIR_UNITTESTS_OBS): Rename to... | |
6562 | (SELFTESTS_OBS): ... this. | |
6563 | (COMMON_SFILES): Remove disasm-selftests.c and | |
6564 | gdbarch-selftests.c. | |
6565 | * configure.ac: Don't add selftest-arch.{c,o} to | |
6566 | CONFIG_{SRCS,OBS}. | |
6567 | * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST | |
6568 | preprocessor conditions. | |
6569 | ||
db6878ac SM |
6570 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
6571 | ||
6572 | * configure.ac: Don't source bfd/development.sh. | |
6573 | * selftest.m4: Modify comment. | |
6574 | * configure: Re-generate. | |
6575 | ||
4d696a5c SM |
6576 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
6577 | ||
6578 | * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is | |
6579 | not "true" or "false". | |
6580 | * configure: Re-generate. | |
6581 | ||
8dd8e1c7 CB |
6582 | 2020-03-12 Christian Biesinger <cbiesinger@google.com> |
6583 | ||
6584 | * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file. | |
6585 | * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and | |
6586 | renamed to arm_nbsd_supply_gregset. | |
6587 | (fetch_register): Update to call arm_nbsd_supply_gregset. | |
6588 | (fetch_regs): Remove in favor of fetch_register with a -1 regno. | |
6589 | (arm_netbsd_nat_target::fetch_registers): Update. | |
6590 | (fetch_elfcore_registers): Removed. | |
6591 | (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns. | |
6592 | * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct. | |
6593 | (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to | |
6594 | not require NetBSD system headers. | |
6595 | (arm_nbsd_regset): New struct. | |
6596 | (arm_nbsd_iterate_over_regset_sections): New function. | |
6597 | (arm_netbsd_init_abi_common): Updated to call | |
6598 | set_gdbarch_iterate_over_regset_sections. | |
6599 | * arm-nbsd-tdep.h: New file. | |
6600 | ||
dd69bf7a KB |
6601 | 2020-03-11 Kevin Buettner <kevinb@redhat.com> |
6602 | ||
6603 | * symtab.c (find_pc_sect_line): Add check which prevents infinite | |
6604 | recursion. | |
6605 | ||
a0761e34 SM |
6606 | 2020-03-11 Simon Marchi <simon.marchi@efficios.com> |
6607 | ||
6608 | * configure: Re-generate. | |
6609 | ||
e7a82140 TT |
6610 | 2020-03-11 Tom Tromey <tromey@adacore.com> |
6611 | ||
6612 | * ada-typeprint.c (print_choices): Fix comment. | |
6613 | ||
dcc050c8 AB |
6614 | 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com> |
6615 | ||
6616 | * buildsyms.c (buildsym_compunit::record_line): Avoid accessing | |
6617 | previous item in the list, when the list has no items. | |
6618 | ||
1c33af77 TV |
6619 | 2020-03-11 Tom de Vries <tdevries@suse.de> |
6620 | ||
6621 | * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in | |
6622 | PROP_LOCLIST handling code. | |
6623 | ||
8c95582d AB |
6624 | 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com> |
6625 | ||
6626 | * buildsym-legacy.c (record_line): Pass extra parameter to | |
6627 | record_line. | |
6628 | * buildsym.c (buildsym_compunit::record_line): Take an extra | |
6629 | parameter, reduce duplication in the line table, and record the | |
6630 | is_stmt flag in the line table. | |
6631 | * buildsym.h (buildsym_compunit::record_line): Add extra | |
6632 | parameter. | |
6633 | * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore | |
6634 | non-statement lines. | |
6635 | * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass | |
6636 | this to the symtab builder. | |
6637 | (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1. | |
6638 | (lnp_state_machine::record_line): Pass a suitable is_stmt flag | |
6639 | through to dwarf_record_line_1. | |
6640 | * infrun.c (process_event_stop_test): When stepping, don't stop at | |
6641 | a non-statement instruction, and only refresh the step info when | |
6642 | we land in the middle of a line's range. Also add an extra | |
6643 | comment. | |
6644 | * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt | |
6645 | field. | |
6646 | * record-btrace.c (btrace_find_line_range): Only record lines | |
6647 | marked as is-statement. | |
6648 | * stack.c (frame_show_address): Show the frame address if we are | |
6649 | in a non-statement sal. | |
6650 | * symmisc.c (dump_symtab_1): Print the is_stmt flag. | |
6651 | (maintenance_print_one_line_table): Print a header for the is_stmt | |
6652 | column, and include is_stmt information in the output. | |
6653 | * symtab.c (find_pc_sect_line): Find lines marked as statements in | |
6654 | preference to non-statements. | |
6655 | (find_pcs_for_symtab_line): Prefer is-statement entries. | |
6656 | (find_line_common): Likewise. | |
6657 | * symtab.h (struct linetable_entry): Add is_stmt field. | |
6658 | (struct symtab_and_line): Likewise. | |
6659 | * xcoffread.c (arrange_linetable): Initialise is_stmt field when | |
6660 | arranging the line table. | |
6661 | ||
e4003a34 TV |
6662 | 2020-03-07 Tom de Vries <tdevries@suse.de> |
6663 | ||
6664 | * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder | |
6665 | DIE. | |
6666 | ||
e8932576 TT |
6667 | 2020-03-07 Tom Tromey <tom@tromey.com> |
6668 | ||
6669 | * valops.c (value_literal_complex): Remove obsolete comment. | |
6670 | * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete | |
6671 | comment. | |
6672 | ||
29734269 SM |
6673 | 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
6674 | ||
6675 | * infrun.h: Forward-declare thread_info. | |
6676 | (set_step_info): Add thread_info parameter, add doc. | |
6677 | * infrun.c (set_step_info): Add thread_info parameter, move doc | |
6678 | to header. | |
6679 | * infrun.c (process_event_stop_test): Pass thread to | |
6680 | set_step_info call. | |
6681 | * infcmd.c (set_step_frame): Add thread_info pointer, pass it to | |
6682 | set_step_info. | |
6683 | (prepare_one_step): Add thread_info parameter, pass it to | |
6684 | set_step_frame and prepare_one_step (recursive) call. | |
6685 | (step_1): Pass thread to prepare_one_step call. | |
6686 | (step_command_fsm::should_stop): Pass thread to | |
6687 | prepare_one_step. | |
6688 | (until_next_fsm): Pass thread to set_step_frame call. | |
6689 | (finish_command): Pass thread to set_step_info call. | |
6690 | ||
b7d64b29 HD |
6691 | 2020-03-06 Hannes Domani <ssbssa@yahoo.de> |
6692 | ||
6693 | * windows-tdep.c (windows_solib_create_inferior_hook): | |
6694 | Check if inferior is running. | |
6695 | ||
09f2921c TV |
6696 | 2020-03-06 Tom de Vries <tdevries@suse.de> |
6697 | ||
6698 | * NEWS: Fix "the the". | |
6699 | * ctfread.c: Same. | |
6700 | ||
fd760e79 TV |
6701 | 2020-03-06 Tom de Vries <tdevries@suse.de> |
6702 | ||
6703 | * psymtab.c (psymtab_to_symtab): Don't print "done.". | |
6704 | ||
20ea4a60 AB |
6705 | 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
6706 | ||
6707 | * .dir-locals.el: Add a comment referencing the other copies of | |
6708 | this file. | |
6709 | ||
0afbabf0 JB |
6710 | 2020-03-05 John Baldwin <jhb@FreeBSD.org> |
6711 | ||
6712 | * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for | |
6713 | psargs. | |
6714 | ||
842806cb TBA |
6715 | 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
6716 | ||
6717 | * .gitattributes: New file. | |
6718 | ||
be1e3d3e TT |
6719 | 2020-03-04 Tom Tromey <tom@tromey.com> |
6720 | ||
6721 | * symmisc.c (print_symbol_bcache_statistics) | |
6722 | (print_objfile_statistics): Update. | |
6723 | * symfile.c (allocate_symtab): Use intern. | |
6724 | * psymtab.c (partial_symtab::partial_symtab): Use intern. | |
6725 | * objfiles.h (struct objfile_per_bfd_storage) <filename_cache, | |
6726 | macro_cache>: Remove. | |
6727 | <string_cache>: New member. | |
6728 | (struct objfile) <intern>: New methods. | |
6729 | * elfread.c (elf_symtab_read): Use intern. | |
6730 | * dwarf2/read.c (fixup_go_packaging): Intern package name. | |
6731 | (dwarf2_compute_name, dwarf2_physname) | |
6732 | (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern | |
6733 | names. | |
6734 | (guess_partial_die_structure_name): Update. | |
6735 | (partial_die_info::fixup): Intern name. | |
6736 | (dwarf2_canonicalize_name): Change parameter to objfile. Intern | |
6737 | name. | |
6738 | (dwarf2_name): Intern name. Update. | |
6739 | * buildsym.c (buildsym_compunit::get_macro_table): Use | |
6740 | string_cache. | |
6741 | ||
4e7625fd TT |
6742 | 2020-03-04 Tom Tromey <tom@tromey.com> |
6743 | ||
6744 | * jit.c (bfd_open_from_target_memory): Make "target" const. | |
6745 | * corefile.c (gnutarget): Now const. | |
6746 | * gdbcore.h (gnutarget): Now const. | |
6747 | ||
46f9f931 HD |
6748 | 2020-03-04 Hannes Domani <ssbssa@yahoo.de> |
6749 | ||
6750 | * NEWS: Mention support for WOW64 processes. | |
6751 | * amd64-windows-nat.c (amd64_mappings): Rename and remove static. | |
6752 | (amd64_windows_segment_register_p): Remove static. | |
6753 | (_initialize_amd64_windows_nat): Update. | |
6754 | * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o. | |
6755 | * i386-windows-nat.c (context_offset): Update. | |
6756 | (i386_mappings): Rename and remove static. | |
6757 | (i386_windows_segment_register_p): Remove static. | |
6758 | (_initialize_i386_windows_nat): Update. | |
6759 | * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro. | |
6760 | (STATUS_WX86_SINGLE_STEP): New macro. | |
6761 | (EnumProcessModulesEx): New macro. | |
6762 | (Wow64SuspendThread): New macro. | |
6763 | (Wow64GetThreadContext): New macro. | |
6764 | (Wow64SetThreadContext): New macro. | |
6765 | (Wow64GetThreadSelectorEntry): New macro. | |
6766 | (windows_set_context_register_offsets): Add static. | |
6767 | (windows_set_segment_register_p): Likewise. | |
6768 | (windows_add_thread): Adapt for WOW64 processes. | |
6769 | (windows_fetch_one_register): Likewise. | |
6770 | (windows_nat_target::fetch_registers): Likewise. | |
6771 | (windows_store_one_register): Likewise. | |
6772 | (display_selector): Likewise. | |
6773 | (display_selectors): Likewise. | |
6774 | (handle_exception): Likewise. | |
6775 | (windows_continue): Likewise. | |
6776 | (windows_nat_target::resume): Likewise. | |
6777 | (windows_add_all_dlls): Likewise. | |
6778 | (do_initial_windows_stuff): Likewise. | |
6779 | (windows_nat_target::attach): Likewise. | |
6780 | (windows_get_exec_module_filename): Likewise. | |
6781 | (windows_nat_target::create_inferior): Likewise. | |
6782 | (windows_xfer_siginfo): Likewise. | |
6783 | (_initialize_loadable): Initialize Wow64SuspendThread, | |
6784 | Wow64GetThreadContext, Wow64SetThreadContext, | |
6785 | Wow64GetThreadSelectorEntry and EnumProcessModulesEx. | |
6786 | * windows-nat.h (windows_set_context_register_offsets): | |
6787 | Remove declaration. | |
6788 | (windows_set_segment_register_p): Likewise. | |
6789 | (i386_windows_segment_register_p): Add declaration. | |
6790 | (amd64_windows_segment_register_p): Likewise. | |
6791 | ||
440cf44e LM |
6792 | 2020-03-04 Luis Machado <luis.machado@linaro.org> |
6793 | ||
6794 | Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions | |
6795 | in "info registers" for AArch64/ARM. | |
6796 | ||
6797 | The change caused "info registers" to not print GPR's. | |
6798 | ||
6799 | gdb/ChangeLog: | |
6800 | ||
6801 | 2020-02-01 Shahab Vahedi <shahab@synopsys.com> | |
6802 | ||
6803 | * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0 | |
6804 | when reg->group is empty and reggroup is not. | |
6805 | ||
1009d92f TT |
6806 | 2020-03-03 Tom Tromey <tromey@adacore.com> |
6807 | ||
6808 | * dwarf2/frame.c (struct dwarf2_frame_cache) | |
6809 | <checked_tailcall_bottom, entry_cfa_sp_offset, | |
6810 | entry_cfa_sp_offset_p>: Remove members. | |
6811 | (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first. | |
6812 | (dwarf2_frame_prev_register): Don't call | |
6813 | dwarf2_tailcall_sniffer_first. | |
6814 | (dwarf2_append_unwinders): Don't append tailcall unwinder. | |
6815 | * frame-unwind.c (add_unwinder): New fuction. | |
6816 | (frame_unwind_init): Use it. Add tailcall unwinder. | |
6817 | ||
5e5d66b6 AB |
6818 | 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com> |
6819 | Alok Kumar Sharma <AlokKumar.Sharma@amd.com> | |
6820 | ||
6821 | * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero | |
6822 | value should be printed as true. | |
6823 | ||
584cf46d HD |
6824 | 2020-03-03 Hannes Domani <ssbssa@yahoo.de> |
6825 | ||
6826 | * windows-tdep.c (windows_solib_create_inferior_hook): New function. | |
6827 | (windows_init_abi): Set and use windows_so_ops. | |
6828 | ||
7b973adc SDJ |
6829 | 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com> |
6830 | ||
6831 | * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR | |
6832 | when verifying if dealing with a convenience variable. | |
6833 | ||
bb7b70ab LM |
6834 | 2020-03-03 Luis Machado <luis.machado@linaro.org> |
6835 | ||
6836 | * auxv.c (default_print_auxv_entry): Add new AUXV entries. | |
6837 | ||
9822cb57 SM |
6838 | 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
6839 | ||
6840 | * infrun.c (gdbarch_supports_displaced_stepping): New. | |
6841 | (use_displaced_stepping): Break up conditions in smaller pieces. | |
6842 | Use gdbarch_supports_displaced_stepping. | |
6843 | (displaced_step_prepare_throw): Use | |
6844 | gdbarch_supports_displaced_stepping. | |
6845 | ||
63e163f2 AB |
6846 | 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> |
6847 | ||
6848 | * NEWS: Mention new behaviour of the history filename. | |
6849 | * top.c (write_history_p): Add comment. | |
6850 | (show_write_history_p): Add header comment, give a different | |
6851 | message when history writing is on, but the history filename is | |
6852 | empty. | |
6853 | (history_filename): Add comment. | |
6854 | (history_filename_empty): New function. | |
6855 | (show_history_filename): Add header comment, give a different | |
6856 | message when the filename is empty. | |
6857 | (init_history): Compare history_filename against nullptr, and only | |
6858 | read history if the filename is not empty. | |
6859 | (set_history_filename): Add header comment, and only make | |
6860 | non-empty filenames absolute. | |
6861 | (init_main): Make the filename argument to 'set history filename' | |
6862 | optional. | |
6863 | ||
81b86b97 CB |
6864 | 2020-03-02 Christian Biesinger <cbiesinger@google.com> |
6865 | ||
6866 | * arm-nbsd-nat.c (arm_supply_fparegset): Rename to... | |
6867 | (arm_supply_vfpregset): ...this, and update to use VFP registers. | |
6868 | (fetch_fp_register): Update. | |
6869 | (fetch_fp_regs): Update. | |
6870 | (store_fp_register): Update. | |
6871 | (store_fp_regs): Update. | |
6872 | (arm_netbsd_nat_target::read_description): New function. | |
6873 | (fetch_elfcore_registers): Update. | |
6874 | ||
24ed6739 AB |
6875 | 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> |
6876 | ||
6877 | * remote.c (remote_target::remote_parse_stop_reply): Don't use the | |
6878 | general_thread if the stop reply is missing a thread-id. | |
6879 | (remote_target::process_stop_reply): Use the first non-exited | |
6880 | thread if the target didn't pass a thread-id. | |
6881 | * infrun.c (do_target_wait): Move call to | |
6882 | switch_to_inferior_no_thread to .... | |
6883 | (do_target_wait_1): ... here. | |
6884 | ||
a84bb2a0 JT |
6885 | 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk> |
6886 | ||
6887 | * debuginfod-support.c: Include defs.h first. | |
6888 | ||
658dadf0 TV |
6889 | 2020-02-28 Tom de Vries <tdevries@suse.de> |
6890 | ||
6891 | * symfile.c (set_initial_language): Use default language for lookup. | |
6892 | ||
4ebe4877 SM |
6893 | 2020-02-28 Simon Marchi <simon.marchi@efficios.com> |
6894 | ||
6895 | * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove | |
6896 | reader variable, pass `this` to read_cutu_die_from_dwo. | |
6897 | ||
e5da1139 AM |
6898 | 2020-02-27 Aaron Merey <amerey@redhat.com> |
6899 | ||
6900 | * source.c (open_source_file): Check for nullptr when computing | |
6901 | srcpath. | |
6902 | ||
317f7127 TT |
6903 | 2020-02-27 Tom Tromey <tromey@adacore.com> |
6904 | ||
6905 | * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a | |
6906 | member. | |
6907 | (dwarf2_add_field): Don't update nfields. | |
6908 | (dwarf2_attach_fields_to_type, process_structure_scope): Update. | |
6909 | ||
3104d9ee AB |
6910 | 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
6911 | ||
6912 | * gdbtypes.c (create_array_type_with_stride): Use std::abs not | |
6913 | abs. | |
6914 | ||
b83470bf TT |
6915 | 2020-02-26 Tom Tromey <tom@tromey.com> |
6916 | ||
6917 | * dwarf2/read.c (struct dwarf2_include_psymtab): New. | |
6918 | (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab. | |
6919 | (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p) | |
6920 | (dwarf2_psymtab::get_compunit_symtab): Remove null checks for | |
6921 | per_cu_data. | |
6922 | ||
edfe0a0c TT |
6923 | 2020-02-26 Tom Tromey <tom@tromey.com> |
6924 | ||
6925 | * dwarf2/index-write.c (psym_index_map): Change type. | |
6926 | (add_address_entry_worker, write_one_signatured_type) | |
6927 | (recursively_count_psymbols, recursively_write_psymbols) | |
6928 | (class debug_names, psyms_seen_size, write_gdbindex) | |
6929 | (write_debug_names): Use partial_symtab, not dwarf2_psymtab. | |
6930 | ||
0d79cdc4 AM |
6931 | 2020-02-26 Aaron Merey <amerey@redhat.com> |
6932 | ||
6933 | * Makefile.in: Handle optional debuginfod support. | |
6934 | * NEWS: Update. | |
6935 | * README: Add --with-debuginfod summary. | |
6936 | * config.in: Regenerate. | |
6937 | * configure: Regenerate. | |
6938 | * configure.ac: Handle optional debuginfod support. | |
6939 | * debuginfod-support.c: debuginfod helper functions. | |
6940 | * debuginfod-support.h: Ditto. | |
6941 | * doc/gdb.texinfo: Add --with-debuginfod to configure options | |
6942 | summary. | |
6943 | * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers | |
6944 | when a dwz file cannot be found. | |
6945 | * elfread.c (elf_symfile_read): Query debuginfod servers when a | |
6946 | debuginfo file cannot be found. | |
6947 | * source.c (open_source_file): Query debuginfod servers when a | |
6948 | source file cannot be found. | |
6949 | * top.c (print_gdb_configuration): Include | |
6950 | --{with,without}-debuginfod in the output. | |
6951 | ||
b65ce565 JG |
6952 | 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com> |
6953 | ||
6954 | * thread.c (thr_try_catch_cmd): Print thread name. | |
6955 | ||
d4c9a4f8 SM |
6956 | 2020-02-26 Simon Marchi <simon.marchi@efficios.com> |
6957 | ||
6958 | * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off, | |
6959 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
6960 | dwarf2_fetch_die_type_sect_off): Move to... | |
6961 | * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off, | |
6962 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
6963 | dwarf2_fetch_die_type_sect_off): ... here. | |
6964 | * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off, | |
6965 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
6966 | dwarf2_fetch_die_type_sect_off): Move doc to header file. | |
6967 | ||
0dce4280 TV |
6968 | 2020-02-26 Tom de Vries <tdevries@suse.de> |
6969 | ||
6970 | PR gdb/25603 | |
6971 | * symfile.c (set_initial_language): Exit-early if | |
6972 | language_mode == language_mode_manual. | |
6973 | ||
450a1bfc SM |
6974 | 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca> |
6975 | ||
6976 | * dwarf2/loc.h (dwarf2_read_addr_index): Move... | |
6977 | * dwarf2/read.h (dwarf2_read_addr_index): ... here. | |
6978 | * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header. | |
6979 | ||
9e80cfa1 AB |
6980 | 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
6981 | ||
6982 | * gdbtypes.c (create_array_type_with_stride): Handle negative | |
6983 | array strides. | |
6984 | * valarith.c (value_subscripted_rvalue): Likewise. | |
6985 | ||
09624f1f LM |
6986 | 2020-02-25 Luis Machado <luis.machado@linaro.org> |
6987 | ||
6988 | * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo. | |
6989 | ||
8cb5117c SM |
6990 | 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca> |
6991 | ||
6992 | * loc.h (dwarf2_get_die_type): Move to... | |
6993 | * read.h (dwarf2_get_die_type): ... here. | |
6994 | * read.c (dwarf2_get_die_type): Move doc to header. | |
6995 | ||
c325c44e JB |
6996 | 2020-02-25 Joel Brobecker <brobecker@adacore.com> |
6997 | ||
6998 | * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and | |
6999 | 'gnulib/Makefile.in' to the list. | |
7000 | ||
4ac93832 TT |
7001 | 2020-02-24 Tom Tromey <tom@tromey.com> |
7002 | ||
7003 | * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>: | |
7004 | Remove. | |
7005 | * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use | |
7006 | XOBNEWVEC. | |
7007 | ||
197400e8 TT |
7008 | 2020-02-24 Tom Tromey <tom@tromey.com> |
7009 | ||
7010 | * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>: | |
7011 | New method. | |
7012 | * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove. | |
7013 | (dw2_do_instantiate_symtab, dw2_get_file_names) | |
7014 | (build_type_psymtab_dependencies, load_full_type_unit): Update. | |
7015 | ||
76935768 TT |
7016 | 2020-02-24 Tom Tromey <tom@tromey.com> |
7017 | ||
7018 | * dwarf2read.c (dwarf2_build_psymtabs_hard): Use | |
7019 | make_scoped_restore. | |
7020 | (dwarf2_psymtab::read_symtab): Don't clear | |
7021 | reading_partial_symbols. | |
7022 | ||
a88ef40d TV |
7023 | 2020-02-24 Tom de Vries <tdevries@suse.de> |
7024 | ||
7025 | PR gdb/25592 | |
7026 | * stack.c (iterate_over_block_locals): Handle LOC_CONST. | |
7027 | ||
c9af6521 TV |
7028 | 2020-02-24 Tom de Vries <tdevries@suse.de> |
7029 | ||
7030 | * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for | |
7031 | commands layout next/prev/regs. | |
7032 | ||
5707a07a TT |
7033 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7034 | ||
7035 | * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare. | |
7036 | * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static. | |
7037 | ||
3b0fb49e TT |
7038 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7039 | ||
7040 | * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window. | |
7041 | ||
283be8bf TT |
7042 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7043 | ||
7044 | * tui/tui-win.c (_initialize_tui_win): Add usage text. | |
7045 | * tui/tui-stack.c (_initialize_tui_stack): Add usage text. | |
7046 | * tui/tui-regs.c (_initialize_tui_regs): Add usage text. | |
7047 | * tui/tui.c (_initialize_tui): Add usage text. | |
7048 | ||
ca793b96 TT |
7049 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7050 | ||
7051 | * tui/tui-win.c (tui_set_focus_command) | |
7052 | (tui_set_win_height_command): Use error_no_arg. | |
7053 | (_initialize_tui_win): Update help text. | |
7054 | (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define. | |
7055 | ||
432b5c40 TT |
7056 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7057 | ||
7058 | * tui/tui-layout.c (extract_display_start_addr): Rewrite. | |
7059 | * tui/tui-disasm.h (struct tui_disasm_window) | |
7060 | <display_start_addr>: Declare. | |
7061 | * tui/tui-source.h (struct tui_source_window) | |
7062 | <display_start_addr>: Declare. | |
7063 | * tui/tui-winsource.h (struct tui_source_window_base) | |
7064 | <show_source_line, display_start_addr>: New methods. | |
7065 | <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>: | |
7066 | Rename and move to protected section. | |
7067 | * tui/tui-winsource.c (tui_source_window_base::update_source_window) | |
7068 | (tui_source_window_base::do_erase_source_content): Update. | |
7069 | (tui_source_window_base::show_source_line): Now a method. | |
7070 | (tui_source_window_base::show_source_content) | |
7071 | (tui_source_window_base::tui_source_window_base) | |
7072 | (tui_source_window_base::rerender) | |
7073 | (tui_source_window_base::refill) | |
7074 | (tui_source_window_base::do_scroll_horizontal) | |
7075 | (tui_source_window_base::set_is_exec_point_at) | |
7076 | (tui_source_window_base::update_breakpoint_info) | |
7077 | (tui_source_window_base::update_exec_info): Update. | |
7078 | * tui/tui-source.c (tui_source_window::set_contents) | |
7079 | (tui_source_window::showing_source_p) | |
7080 | (tui_source_window::do_scroll_vertical) | |
7081 | (tui_source_window::location_matches_p) | |
7082 | (tui_source_window::line_is_displayed): Update. | |
7083 | (tui_source_window::display_start_addr): New method. | |
7084 | * tui/tui-disasm.c (tui_disasm_window::set_contents) | |
7085 | (tui_disasm_window::do_scroll_vertical) | |
7086 | (tui_disasm_window::location_matches_p): Update. | |
7087 | (tui_disasm_window::display_start_addr): New method. | |
7088 | ||
01b1af32 TT |
7089 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7090 | ||
7091 | * NEWS: Add entry for gdb.register_window_type. | |
7092 | * tui/tui-layout.h (window_factory): New typedef. | |
7093 | (tui_register_window): Declare. | |
7094 | * tui/tui-layout.c (saved_tui_windows): New global. | |
7095 | (tui_apply_current_layout): Use it. | |
7096 | (tui_register_window): New function. | |
7097 | * python/python.c (do_start_initialization): Call | |
7098 | gdbpy_initialize_tui. | |
7099 | (python_GdbMethods): Add "register_window_type" function. | |
7100 | * python/python-internal.h (gdbpy_register_tui_window) | |
7101 | (gdbpy_initialize_tui): Declare. | |
7102 | * python/py-tui.c: New file. | |
7103 | * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c. | |
7104 | ||
fc96d20b TT |
7105 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7106 | ||
7107 | * tui/tui-io.c (do_tui_putc): Don't omit annotations. | |
7108 | ||
935c78c0 TT |
7109 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7110 | ||
7111 | * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c. | |
7112 | * tui/tui-data.h (tui_set_win_with_focus): Don't declare. | |
7113 | * tui/tui-data.c (tui_set_win_with_focus): Remove. | |
7114 | (tui_set_win_focus_to): Move from tui-win.c. | |
7115 | ||
0240c8f1 TT |
7116 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7117 | ||
7118 | * tui/tui-layout.c (make_standard_window, get_locator_window): New | |
7119 | functions. | |
7120 | (known_window_types): New global. | |
7121 | (tui_get_window_by_name): Reimplement. | |
7122 | (initialize_known_windows): New function. | |
7123 | (validate_window_name): Rewrite. | |
7124 | (_initialize_tui_layout): Call initialize_known_windows. | |
7125 | ||
fdb01f0c TT |
7126 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7127 | ||
7128 | * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>: | |
7129 | Remove constants. | |
7130 | * tui/tui-winsource.h (struct tui_source_window_base) | |
7131 | <tui_source_window_base>: Remove parameter. | |
7132 | * tui/tui-winsource.c | |
7133 | (tui_source_window_base::tui_source_window_base): Remove | |
7134 | parameter. | |
7135 | (tui_source_window_base::refill): Update. | |
7136 | * tui/tui-stack.h (struct tui_locator_window) | |
7137 | <tui_locator_window>: Update. | |
7138 | * tui/tui-source.h (struct tui_source_window) <tui_source_window>: | |
7139 | Default the constructor. | |
7140 | * tui/tui-regs.h (struct tui_data_item_window) | |
7141 | <tui_data_item_window>: Default the constructor. | |
7142 | (struct tui_data_window) <tui_data_window>: Likewise. | |
7143 | * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>: | |
7144 | Default the constructor. | |
7145 | * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>: | |
7146 | Default the constructor. | |
7147 | <type>: Remove. | |
7148 | (struct tui_win_info) <tui_win_info>: Default the constructor. | |
7149 | * tui/tui-data.c (tui_win_info::tui_win_info): Remove. | |
7150 | * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>: | |
7151 | Default the constructor. | |
7152 | ||
865a5aec TT |
7153 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7154 | ||
7155 | * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare. | |
7156 | * tui/tui-wingeneral.c (tui_make_all_invisible): Remove. | |
7157 | * tui/tui-win.c (tui_resize_all): Don't call | |
7158 | tui_delete_invisible_windows. | |
7159 | * tui/tui-layout.c (tui_apply_current_layout): Delete windows when | |
7160 | done. | |
7161 | (tui_set_layout): Update. | |
7162 | (tui_add_win_to_layout): Don't call tui_delete_invisible_windows. | |
7163 | * tui/tui-data.h (tui_delete_invisible_windows): Don't declare. | |
7164 | * tui/tui-data.c (tui_delete_invisible_windows): Remove. | |
7165 | ||
e098d18c TT |
7166 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7167 | ||
7168 | * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity | |
7169 | correctly. | |
7170 | ||
eb9c8874 TT |
7171 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7172 | ||
7173 | * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement. | |
7174 | ||
7eed1a8e TT |
7175 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7176 | ||
7177 | * tui/tui-winsource.h (struct tui_source_window_iterator) | |
7178 | <inner_iterator>: New etytypedef. | |
7179 | <tui_source_window_iterator>: Take "end" parameter. | |
7180 | <tui_source_window_iterator>: Take iterator. | |
7181 | <operator*, advance>: Update. | |
7182 | <m_iter>: Change type. | |
7183 | <m_end>: New field. | |
7184 | (struct tui_source_windows) <begin, end>: Update. | |
7185 | * tui/tui-layout.c (tui_windows): New global. | |
7186 | (tui_apply_current_layout): Clear tui_windows. | |
7187 | (tui_layout_window::apply): Update tui_windows. | |
7188 | * tui/tui-data.h (tui_windows): Declare. | |
7189 | (all_tui_windows): Now inline function. | |
7190 | (class tui_window_iterator, struct all_tui_windows): Remove. | |
7191 | ||
7c043ba6 TT |
7192 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7193 | ||
7194 | PR tui/17850: | |
7195 | * tui/tui-win.c (tui_gen_win_info::max_width): New method. | |
7196 | * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add | |
7197 | "height" argument. | |
7198 | (class tui_layout_window) <get_sizes>: Likewise. | |
7199 | (class tui_layout_split) <tui_layout_split>: Add "vertical" | |
7200 | argument. | |
7201 | <get_sizes>: Add "height" argument. | |
7202 | <m_vertical>: New field. | |
7203 | * tui/tui-layout.c (tui_layout_split::clone): Update. | |
7204 | (tui_layout_split::get_sizes): Add "height" argument. | |
7205 | (tui_layout_split::adjust_size, tui_layout_split::apply): Update. | |
7206 | (tui_new_layout_command): Parse "-horizontal". | |
7207 | (_initialize_tui_layout): Update help string. | |
7208 | (tui_layout_split::specification): Add "-horizontal" when needed. | |
7209 | * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height" | |
7210 | argument. | |
7211 | * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>: | |
7212 | New methods. | |
7213 | ||
6bc56648 TT |
7214 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7215 | ||
7216 | * tui/tui-layout.h (enum tui_adjust_result): New. | |
7217 | (class tui_layout_base) <adjust_size>: Return tui_adjust_result. | |
7218 | (class tui_layout_window) <adjust_size>: Return | |
7219 | tui_adjust_result. Rewrite. | |
7220 | (class tui_layout_split) <adjust_size>: Return tui_adjust_result. | |
7221 | * tui/tui-layout.c (tui_layout_split::adjust_size): Update. | |
7222 | ||
c22fef7e TT |
7223 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7224 | ||
7225 | * tui/tui-layout.h (class tui_layout_split) <add_split>: Change | |
7226 | parameter and return types. | |
7227 | (class tui_layout_base) <specification>: Add "depth". | |
7228 | (class tui_layout_window) <specification>: Add "depth". | |
7229 | (class tui_layout_split) <specification>: Add "depth". | |
7230 | * tui/tui-layout.c (tui_layout_split::add_split): Change parameter | |
7231 | and return types. | |
7232 | (tui_new_layout_command): Parse sub-layouts. | |
7233 | (_initialize_tui_layout): Update help string. | |
7234 | (tui_layout_window::specification): Add "depth". | |
7235 | (add_layout_command): Update. | |
7236 | ||
ee325b61 TT |
7237 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7238 | ||
7239 | * NEWS: Add "tui new-layout" item. | |
7240 | * tui/tui-layout.c (add_layout_command): Return cmd_list_element. | |
7241 | Add new-layout command to help text. | |
7242 | (validate_window_name): New function. | |
7243 | (tui_new_layout_command): New function. | |
7244 | (_initialize_tui_layout): Register "new-layout". | |
7245 | (tui_layout_window::specification): New method. | |
7246 | (tui_layout_window::specification): New method. | |
7247 | * tui/tui-layout.h (class tui_layout_base) <specification>: New | |
7248 | method. | |
7249 | (class tui_layout_window) <specification>: New method. | |
7250 | (class tui_layout_split) <specification>: New method. | |
7251 | ||
416eb92d TT |
7252 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7253 | ||
7254 | * tui/tui.c (tui_enable): Call tui_set_initial_layout. | |
7255 | * tui/tui-win.c (window_name_completer): Update comment. | |
7256 | * tui/tui-layout.h (class tui_layout_base) <replace_window>: | |
7257 | Declare method. | |
7258 | (class tui_layout_window) <replace_window>: Likewise. | |
7259 | (class tui_layout_split) <replace_window>: Likewise. | |
7260 | (tui_set_layout): Don't declare. | |
7261 | (tui_set_initial_layout): Declare function. | |
7262 | * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout) | |
7263 | (asm_regs_layout): New globals. | |
7264 | (tui_current_layout, show_layout): Remove. | |
7265 | (tui_set_layout, tui_add_win_to_layout): Rewrite. | |
7266 | (find_layout, tui_apply_layout): New function. | |
7267 | (layout_completer): Remove. | |
7268 | (tui_next_layout): Reimplement. | |
7269 | (tui_next_layout_command): New function. | |
7270 | (tui_set_initial_layout, tui_prev_layout_command): New functions. | |
7271 | (tui_regs_layout): Reimplement. | |
7272 | (tui_regs_layout_command): New function. | |
7273 | (extract_display_start_addr): Rewrite. | |
7274 | (next_layout, prev_layout): Remove. | |
7275 | (tui_layout_window::replace_window): New method. | |
7276 | (tui_layout_split::replace_window): New method. | |
7277 | (destroy_layout): New function. | |
7278 | (layout_list): New global. | |
7279 | (add_layout_command): New function. | |
7280 | (initialize_layouts): Update. | |
7281 | (tui_layout_command): New function. | |
7282 | (_initialize_tui_layout): Install "layout" commands. | |
7283 | * tui/tui-data.h (enum tui_layout_type): Remove. | |
7284 | (tui_current_layout): Don't declare. | |
7285 | ||
0dbc2fc7 TT |
7286 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7287 | ||
7288 | * tui/tui-regs.c (tui_reg_layout): Remove. | |
7289 | (tui_reg_command): Use tui_regs_layout. | |
7290 | * tui/tui-layout.h (tui_reg_command): Declare. | |
7291 | * tui/tui-layout.c (tui_reg_command): New function. | |
7292 | ||
5afe342e TT |
7293 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7294 | ||
7295 | * tui/tui.c (tui_rl_delete_other_windows): Call | |
7296 | tui_remove_some_windows. | |
7297 | * tui/tui-layout.h (class tui_layout_base) <remove_windows>: | |
7298 | Declare method. | |
7299 | (class tui_layout_window) <remove_windows>: New method. | |
7300 | (class tui_layout_split) <remove_windows>: Declare. | |
7301 | (tui_remove_some_windows): Declare. | |
7302 | * tui/tui-layout.c (tui_remove_some_windows): New function. | |
7303 | (tui_layout_split::remove_windows): New method. | |
7304 | ||
427326a8 TT |
7305 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7306 | ||
7307 | * tui/tui.c (tui_rl_change_windows): Call tui_next_layout. | |
7308 | * tui/tui-layout.h (tui_next_layout): Declare. | |
7309 | * tui/tui-layout.c (tui_next_layout): New function. | |
7310 | ||
3fe12b6d TT |
7311 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7312 | ||
7313 | * tui/tui-regs.c (tui_data_window::display_registers_from): Use | |
7314 | correct coordinates. | |
7315 | ||
59b8b5d2 TT |
7316 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7317 | ||
7318 | * tui/tui-layout.h (tui_add_win_to_layout): Add comment. | |
7319 | * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove | |
7320 | DATA_WIN case. | |
7321 | ||
2a3d458b TT |
7322 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7323 | ||
7324 | * tui/tui-disasm.c (tui_get_low_disassembly_address): Use | |
7325 | TUI_DISASM_WIN, not tui_win_list. | |
7326 | ||
3f0cbb04 TT |
7327 | 2020-02-22 Tom Tromey <tom@tromey.com> |
7328 | ||
7329 | * valprint.c (generic_val_print_enum_1) | |
7330 | (val_print_type_code_flags): Style member names. | |
7331 | * rust-lang.c (val_print_struct, rust_print_enum) | |
7332 | (rust_print_struct_def, rust_internal_print_type): Style member | |
7333 | names. | |
7334 | * p-valprint.c (pascal_object_print_value_fields): Style member | |
7335 | names. Only call fprintf_symbol_filtered for static members. | |
7336 | * m2-typeprint.c (m2_record_fields, m2_enum): Style member names. | |
7337 | * f-valprint.c (f_val_print): Style member names. | |
7338 | * f-typeprint.c (f_type_print_base): Style member names. | |
7339 | * cp-valprint.c (cp_print_value_fields): Style member names. Only | |
7340 | call fprintf_symbol_filtered for static members. | |
7341 | (cp_print_class_member): Style member names. | |
7342 | * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style | |
7343 | member names. | |
7344 | * ada-valprint.c (ada_print_scalar): Style enum names. | |
7345 | (ada_val_print_enum): Likewise. | |
7346 | * ada-typeprint.c (print_enum_type): Style enum names. | |
7347 | ||
d4d947ae TT |
7348 | 2020-02-21 Tom Tromey <tom@tromey.com> |
7349 | ||
7350 | * psympriv.h (struct partial_symtab): Update comment. | |
7351 | ||
e94e944b TT |
7352 | 2020-02-21 Tom Tromey <tromey@adacore.com> |
7353 | ||
7354 | * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter | |
7355 | type is CORE_ADDR. | |
7356 | ||
1eb73179 TV |
7357 | 2020-02-21 Tom de Vries <tdevries@suse.de> |
7358 | ||
7359 | PR gdb/25534 | |
7360 | * psymtab.c (partial_symtab::read_dependencies): Don't read dependency | |
7361 | if dependencies[i]->user != NULL. | |
7362 | ||
4f180d53 AT |
7363 | 2020-02-21 Ali Tamur <tamur@google.com> |
7364 | ||
7365 | * dwarf2/read.c (dwarf2_name): Add null check. | |
7366 | ||
22b6cd70 TT |
7367 | 2020-02-20 Tom Tromey <tom@tromey.com> |
7368 | ||
7369 | * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not | |
7370 | ">=", in binary search. | |
7371 | (dwarf2_find_containing_comp_unit): New overload. | |
7372 | (run_test): New self-test. | |
7373 | (_initialize_dwarf2_read): Register new test. | |
7374 | ||
bd0cf5a6 NC |
7375 | 2020-02-20 Nelson Chu <nelson.chu@sifive.com> |
7376 | ||
7377 | * riscv-tdep.c: Updated since the DECLARE_CSR is changed. | |
7378 | * riscv-tdep.h: Likewise. | |
7379 | * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without | |
7380 | rv32-only CSR. | |
7381 | * features/riscv/64bit-csr.xml: Regenerated. | |
7382 | ||
3f702acd SDJ |
7383 | 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
7384 | Tom Tromey <tom@tromey.com> | |
7385 | ||
7386 | * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead | |
7387 | of 'fputc_unfiltered'. | |
7388 | (putchar_unfiltered): Call 'fputc_unfiltered'. | |
7389 | (fputc_unfiltered): Call 'fputs_unfiltered'. | |
7390 | ||
d13c7322 AB |
7391 | 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com> |
7392 | ||
7393 | * config.in: Regenerate. | |
7394 | * configure: Regenerate. | |
7395 | * configure.ac: Add --with-python-libdir option. | |
7396 | * main.c: Use WITH_PYTHON_LIBDIR. | |
7397 | ||
869d8950 TT |
7398 | 2020-02-19 Tom Tromey <tom@tromey.com> |
7399 | ||
7400 | * symtab.c (general_symbol_info::compute_and_set_names): Use | |
7401 | obstack_strndup. Simplify call to symbol_set_demangled_name. | |
7402 | ||
298e9637 SM |
7403 | 2020-02-19 Simon Marchi <simon.marchi@efficios.com> |
7404 | ||
7405 | * dwarf2/read.c (allocate_signatured_type_table, | |
7406 | allocate_dwo_unit_table, allocate_type_unit_groups_table, | |
7407 | allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table): | |
7408 | Remove objfile parameter, update all callers. | |
7409 | ||
08410482 DE |
7410 | 2020-02-19 Doug Evans <dje@google.com> |
7411 | ||
7412 | PR rust/25535 | |
7413 | * rust-lang.c (rust_print_enum): Apply embedded_offset to | |
7414 | rust_enum_variant calculation. | |
7415 | ||
dfdeeca1 TT |
7416 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
7417 | ||
7418 | * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR. | |
7419 | ||
2ef5453b TT |
7420 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
7421 | ||
7422 | * ada-lang.c (cache_symbol): Use obstack_strdup. | |
7423 | ||
9f1528a1 AB |
7424 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> |
7425 | ||
7426 | * configure: Regenerate. | |
7427 | ||
d3c22fa8 TT |
7428 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
7429 | ||
7430 | * python/python.c (do_start_initialization): Use XNEWVEC. Remove | |
7431 | NULL check. | |
7432 | ||
bf84f706 MR |
7433 | 2020-02-19 Maciej W. Rozycki <macro@wdc.com> |
7434 | ||
7435 | * NEWS: Mention RISC-V GNU/Linux GDBserver support. | |
7436 | ||
d1c9b20f AB |
7437 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> |
7438 | ||
7439 | * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define | |
7440 | if GDBSERVER is not defined. | |
7441 | (riscv_tdesc_cache): Likewise, also store const target_desc. | |
7442 | (STATIC_IN_GDB): Define. | |
7443 | (riscv_create_target_description): Update declaration with | |
7444 | STATIC_IN_GDB. | |
7445 | (riscv_lookup_target_description): New function, only define if | |
7446 | GDBSERVER is not defined. | |
7447 | * arch/riscv.h (riscv_create_target_description): Declare only | |
7448 | when GDBSERVER is defined. | |
7449 | (riscv_lookup_target_description): New declaration when GDBSERVER | |
7450 | is not defined. | |
7451 | * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to... | |
7452 | (riscv_linux_read_features): ...this, and return | |
7453 | riscv_gdbarch_features instead of target_desc. | |
7454 | * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'. | |
7455 | (riscv_linux_read_description): Rename to... | |
7456 | (riscv_linux_read_features): ...this. | |
7457 | * riscv-linux-nat.c (riscv_linux_nat_target::read_description): | |
7458 | Update to use riscv_gdbarch_features and | |
7459 | riscv_lookup_target_description. | |
7460 | * riscv-tdep.c (riscv_find_default_target_description): Use | |
7461 | riscv_lookup_target_description instead of | |
7462 | riscv_create_target_description. | |
7463 | ||
373d7ac0 SM |
7464 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
7465 | ||
7466 | * valprint.c (generic_val_print_enum_1): When printing a flag | |
7467 | enum with value 0 and there is no enumerator with value 0, print | |
7468 | just "0" instead of "(unknown: 0x0)". | |
7469 | ||
b29a2df0 SM |
7470 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
7471 | ||
7472 | * valprint.c (generic_val_print_enum_1): Print unknown part of | |
7473 | flag enum in hex. | |
7474 | ||
6740f0cc SM |
7475 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
7476 | ||
7477 | * dwarf2/read.c (update_enumeration_type_from_children): Allow | |
7478 | flag enums to contain duplicate enumerators. | |
7479 | * valprint.c (generic_val_print_enum_1): Update comment. | |
7480 | ||
edd45eb0 SM |
7481 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
7482 | ||
7483 | * dwarf2/read.c: Include "count-one-bits.h". | |
7484 | (update_enumeration_type_from_children): If an enumerator has | |
7485 | multiple bits set, don't treat the enumeration as a "flag enum". | |
7486 | * valprint.c (generic_val_print_enum_1): Assert that enumerators | |
7487 | of flag enums have 0 or 1 bit set. | |
7488 | ||
6d0cf446 BE |
7489 | 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de> |
7490 | ||
7491 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit | |
7492 | conversion. | |
7493 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
7494 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise. | |
7495 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
7496 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise. | |
7497 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
7498 | ||
7001c1b7 SM |
7499 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
7500 | ||
7501 | * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com. | |
7502 | ||
fdb61c6c SM |
7503 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
7504 | ||
7505 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use | |
7506 | displaced_step_closure_up. | |
7507 | * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise. | |
7508 | (struct displaced_step_closure_up): | |
7509 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
7510 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise. | |
7511 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): | |
7512 | Likewise. | |
7513 | * gdbarch.sh (displaced_step_copy_insn): Likewise. | |
7514 | * gdbarch.c, gdbarch.h: Re-generate. | |
7515 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use | |
7516 | displaced_step_closure_up. | |
7517 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
7518 | * i386-tdep.h (i386_displaced_step_copy_insn): Likewise. | |
7519 | * infrun.h (displaced_step_closure_up): New type alias. | |
7520 | (struct displaced_step_inferior_state) <step_closure>: Change | |
7521 | type to displaced_step_closure_up. | |
7522 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use | |
7523 | displaced_step_closure_up. | |
7524 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
7525 | ||
a4a38eb4 TT |
7526 | 2020-02-14 Tom Tromey <tom@tromey.com> |
7527 | ||
7528 | * minidebug.c (gnu_debug_key): New global. | |
7529 | (find_separate_debug_file_in_section): Use it. | |
7530 | ||
e8217e61 SM |
7531 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
7532 | ||
7533 | * gdbarch.sh (displaced_step_copy_insn): Change return type to an | |
7534 | std::unique_ptr. | |
7535 | * gdbarch.c: Re-generate. | |
7536 | * gdbarch.h: Re-generate. | |
7537 | * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr | |
7538 | change. | |
7539 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return | |
7540 | type to std::unique_ptr. | |
7541 | * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise. | |
7542 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
7543 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise. | |
7544 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise. | |
7545 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise. | |
7546 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
7547 | * i386-tdep.h (i386_displaced_step_copy_insn): Likewise. | |
7548 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise. | |
7549 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
7550 | ||
d8d83535 SM |
7551 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
7552 | ||
7553 | * infrun.c (get_displaced_step_closure_by_addr): Adjust to | |
7554 | std::unique_ptr. | |
7555 | (displaced_step_clear): Rename to... | |
7556 | (displaced_step_reset): ... this. Just call displaced->reset (). | |
7557 | (displaced_step_clear_cleanup): Rename to... | |
7558 | (displaced_step_reset_cleanup): ... this. | |
7559 | (displaced_step_prepare_throw): Adjust to std::unique_ptr. | |
7560 | (displaced_step_fixup): Likewise. | |
7561 | (resume_1): Likewise. | |
7562 | (handle_inferior_event): Restore child's memory before calling | |
7563 | displaced_step_fixup on the parent. | |
7564 | * infrun.h (displaced_step_inferior_state) <reset>: Adjust | |
7565 | to std::unique_ptr. | |
7566 | <step_closure>: Change type to std::unique_ptr. | |
7567 | ||
5f661e03 SM |
7568 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
7569 | ||
7570 | * arm-tdep.c: Include count-one-bits.h. | |
7571 | (cleanup_block_store_pc): Use count_one_bits. | |
7572 | (cleanup_block_load_pc): Use count_one_bits. | |
7573 | (arm_copy_block_xfer): Use count_one_bits. | |
7574 | (thumb2_copy_block_xfer): Use count_one_bits. | |
7575 | (thumb_copy_pop_pc_16bit): Use count_one_bits. | |
7576 | * arch/arm-get-next-pcs.c: Include count-one-bits.h. | |
7577 | (thumb_get_next_pcs_raw): Use count_one_bits. | |
7578 | (arm_get_next_pcs_raw): Use count_one_bits_l. | |
7579 | * arch/arm.c (bitcount): Remove. | |
7580 | * arch/arm.h (bitcount): Remove. | |
7581 | ||
8084e579 TT |
7582 | 2020-02-14 Tom Tromey <tromey@adacore.com> |
7583 | ||
7584 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): | |
7585 | Update. | |
7586 | * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr. | |
7587 | * dwarf2/loc.c (call_site_find_chain_1): Return | |
7588 | unique_xmalloc_ptr. | |
7589 | (call_site_find_chain): Likewise. | |
7590 | ||
258bf0ee RB |
7591 | 2020-02-14 Richard Biener <rguenther@suse.de> |
7592 | ||
7593 | * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE | |
7594 | on expression with division operators. | |
7595 | ||
f98a8458 AKS |
7596 | 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
7597 | ||
7598 | * MAINTAINERS (Write After Approval): Adding myself. | |
7599 | ||
d1437c0e TT |
7600 | 2020-02-12 Tom Tromey <tom@tromey.com> |
7601 | ||
7602 | * event-loop.c (event_data, gdb_event, event_handler_func): | |
7603 | Remove. | |
7604 | ||
3d4560f7 TT |
7605 | 2020-02-12 Tom Tromey <tom@tromey.com> |
7606 | ||
7607 | * dwarf2/frame.c (dwarf2_frame_bfd_data): New global. | |
7608 | (dwarf2_frame_objfile_data): Add comment. | |
7609 | (find_comp_unit, set_comp_unit): New functions. | |
7610 | (dwarf2_frame_find_fde): Use find_comp_unit. | |
7611 | (dwarf2_build_frame_info): Use set_comp_unit. | |
7612 | ||
21982304 TT |
7613 | 2020-02-12 Tom Tromey <tom@tromey.com> |
7614 | ||
7615 | * dwarf2/frame.c (struct comp_unit) <objfile>: Remove. | |
7616 | (comp_unit): Don't initialize objfile. | |
7617 | (execute_cfa_program): Add text_offset parameter. | |
7618 | (execute_cfa_program_test, dwarf2_fetch_cfa_info) | |
7619 | (dwarf2_frame_cache): Update. | |
7620 | (dwarf2_build_frame_info): Don't set "objfile" member. | |
7621 | ||
4debb237 TT |
7622 | 2020-02-12 Tom Tromey <tom@tromey.com> |
7623 | ||
7624 | * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter. | |
7625 | (decode_frame_entry): Likewise. | |
7626 | (dwarf2_build_frame_info): Update. | |
7627 | ||
0d404d44 TT |
7628 | 2020-02-12 Tom Tromey <tom@tromey.com> |
7629 | ||
7630 | * dwarf2/frame.c (struct comp_unit) <obstack>: New member. | |
7631 | (decode_frame_entry_1): Use the comp_unit obstack. | |
7632 | ||
a7a3ae5c TT |
7633 | 2020-02-12 Tom Tromey <tom@tromey.com> |
7634 | ||
7635 | * dwarf2/frame.c (struct comp_unit): Add initializers and | |
7636 | constructor. | |
7637 | (dwarf2_frame_objfile_data): Store a comp_unit. | |
7638 | (dwarf2_frame_find_fde): Update. | |
7639 | (dwarf2_build_frame_info): Use "new". | |
7640 | ||
a9d65418 TT |
7641 | 2020-02-12 Tom Tromey <tom@tromey.com> |
7642 | ||
7643 | * dwarf2/frame.c (struct dwarf2_fde_table): Remove. | |
7644 | (dwarf2_fde_table): Typedef for std::vector. | |
7645 | (dwarf2_frame_objfile_data): Remove the deleter. Now static. | |
7646 | (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1) | |
7647 | (decode_frame_entry): Update. | |
7648 | (dwarf2_build_frame_info): Use "new". | |
7649 | ||
7559c217 CB |
7650 | 2020-02-12 Christian Biesinger <cbiesinger@google.com> |
7651 | ||
7652 | * arm-tdep.c (arm_gdbarch_init): Update. | |
7653 | * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers, | |
7654 | have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos, | |
7655 | have_neon, is_m>: Change to bool. | |
7656 | ||
aeefc73c CB |
7657 | 2020-02-12 Christian Biesinger <cbiesinger@google.com> |
7658 | ||
7659 | * arm-tdep.c (arm_dump_tdep): Print more fields of tdep. | |
7660 | ||
d27b8e5f TT |
7661 | 2020-02-12 Tom Tromey <tom@tromey.com> |
7662 | ||
7663 | * dwarf2/loc.c (struct dwarf_expr_baton): Remove. | |
7664 | ||
cd5900f3 HD |
7665 | 2020-02-12 Hannes Domani <ssbssa@yahoo.de> |
7666 | ||
7667 | * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type. | |
7668 | (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type. | |
7669 | ||
f056b22b TT |
7670 | 2020-02-11 Tom Tromey <tom@tromey.com> |
7671 | ||
7672 | * psymtab.h: Update comment. | |
7673 | ||
f92ff6b5 TT |
7674 | 2020-02-11 Tom Tromey <tom@tromey.com> |
7675 | ||
7676 | * gdb_obstack.h (struct auto_obstack): Use | |
7677 | DISABLE_COPY_AND_ASSIGN. | |
7678 | ||
3fd6912b TT |
7679 | 2020-02-11 Tom Tromey <tom@tromey.com> |
7680 | ||
7681 | * dwarf2/frame.h (struct objfile): Don't forward declare. | |
7682 | ||
69ed9b74 CB |
7683 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
7684 | ||
7685 | * cris-tdep.c (cris_supply_gregset): Change signature to match | |
7686 | what struct regset expects. | |
7687 | (cris_regset): New struct. | |
7688 | (fetch_core_registers): Remove. | |
7689 | (cris_iterate_over_regset_sections): New function. | |
7690 | (_initialize_cris_tdep): Don't call deprecated_add_core_fns. | |
7691 | (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections. | |
7692 | ||
bda874f6 CB |
7693 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
7694 | ||
7695 | * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7 | |
7696 | registers. | |
7697 | ||
754e1564 CB |
7698 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
7699 | ||
7700 | * arm-tdep.c (arm_dump_tdep): Add \n in fprintf. | |
7701 | ||
8ddd8e0e SM |
7702 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
7703 | ||
7704 | * configure: Re-generate. | |
7705 | ||
898e7f60 SM |
7706 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
7707 | ||
7708 | * configure: Re-generate. | |
7709 | ||
58df732b SM |
7710 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
7711 | ||
7712 | * acinclude: Update warning.m4 path. | |
7713 | * warning.m4: Move to gdbsupport. | |
7714 | ||
da5bd37e TT |
7715 | 2020-02-11 Tom Tromey <tromey@adacore.com> |
7716 | ||
7717 | * remote.c (remote_console_output): Update. | |
7718 | * printcmd.c (printf_command): Update. | |
7719 | * event-loop.c (gdb_wait_for_event): Update. | |
7720 | * linux-nat.c (sigchld_handler): Update. | |
7721 | * remote-sim.c (gdb_os_write_stdout): Update. | |
7722 | (gdb_os_flush_stdout): Update. | |
7723 | (gdb_os_flush_stderr): Update. | |
7724 | (gdb_os_write_stderr): Update. | |
7725 | * exceptions.c (print_exception): Update. | |
7726 | * remote-fileio.c (remote_fileio_func_read): Update. | |
7727 | (remote_fileio_func_write): Update. | |
7728 | * tui/tui.c (tui_enable): Update. | |
7729 | * tui/tui-interp.c (tui_interp::init): Update. | |
7730 | * utils.c (init_page_info): Update. | |
7731 | (putchar_unfiltered, fputc_unfiltered): Update. | |
7732 | (gdb_flush): Update. | |
7733 | (emit_style_escape): Update. | |
7734 | (flush_wrap_buffer, fputs_maybe_filtered): Update. | |
7735 | * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write) | |
7736 | (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove. | |
7737 | (stderr_file::write): Update. | |
7738 | (stderr_file::puts): Update. | |
7739 | * ui-file.h (ui_file_isatty, ui_file_write) | |
7740 | (ui_file_write_async_safe, ui_file_read, ui_file_flush) | |
7741 | (ui_file_puts): Don't declare. | |
7742 | ||
85f0dd3c TV |
7743 | 2020-02-10 Tom de Vries <tdevries@suse.de> |
7744 | ||
7745 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL | |
7746 | sentinel to char *. | |
7747 | ||
2e927613 TV |
7748 | 2020-02-09 Tom de Vries <tdevries@suse.de> |
7749 | ||
7750 | * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to | |
7751 | filename if it matches "<artificial>". | |
7752 | ||
6bafc845 HD |
7753 | 2020-02-09 Hannes Domani <ssbssa@yahoo.de> |
7754 | ||
7755 | * windows-tdep.c (struct enum_value_name): New struct. | |
7756 | (create_enum): New function. | |
7757 | (windows_get_siginfo_type): Create and use enum types. | |
7758 | ||
7928d571 HD |
7759 | 2020-02-09 Hannes Domani <ssbssa@yahoo.de> |
7760 | ||
7761 | * NEWS: Mention $_siginfo support for Windows. | |
7762 | * windows-nat.c (handle_exception): Set siginfo_er. | |
7763 | (windows_nat_target::mourn_inferior): Reset siginfo_er. | |
7764 | (windows_xfer_siginfo): New function. | |
7765 | (windows_nat_target::xfer_partial): Call windows_xfer_siginfo. | |
7766 | * windows-tdep.c (struct windows_gdbarch_data): New struct. | |
7767 | (init_windows_gdbarch_data): New function. | |
7768 | (get_windows_gdbarch_data): New function. | |
7769 | (windows_get_siginfo_type): New function. | |
7770 | (windows_init_abi): Register windows_get_siginfo_type. | |
7771 | (_initialize_windows_tdep): Register init_windows_gdbarch_data. | |
7772 | ||
6751ebae TT |
7773 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7774 | ||
7775 | * dwarf2/read.c (class cutu_reader) <cutu_reader, | |
7776 | init_tu_and_read_dwo_dies>: Remove "keep" parameter. | |
7777 | <keep>: Declare method. | |
7778 | <m_keep>: Remove member. | |
7779 | <~cutu_reader>: Remove. | |
7780 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
7781 | (cutu_reader::cutu_reader): Update. | |
7782 | (cutu_reader::keep): Rename from ~cutu_reader. | |
7783 | (process_psymtab_comp_unit, build_type_psymtabs_1) | |
7784 | (process_skeletonless_type_unit, load_partial_comp_unit) | |
7785 | (load_full_comp_unit, dwarf2_read_addr_index) | |
7786 | (read_signatured_type): Update. | |
7787 | ||
135f5437 TT |
7788 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7789 | ||
7790 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove | |
7791 | "want_partial_unit" parameter. | |
7792 | (process_psymtab_comp_unit): Change want_partial_unit to bool. | |
7793 | Inline check for DW_TAG_partial_unit. | |
7794 | (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update. | |
7795 | ||
9f66ff1c TT |
7796 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7797 | ||
7798 | * dwarf2/read.c (read_n_bytes, read_direct_string): Move to | |
7799 | read.c. | |
7800 | * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from | |
7801 | read.c. | |
7802 | ||
c8a7a66f TT |
7803 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7804 | ||
7805 | * dwarf2/read.c (read_address): Move to comp-unit.c. | |
7806 | (dwarf2_rnglists_process, dwarf2_ranges_process) | |
7807 | (read_attribute_value, dwarf_decode_lines_1) | |
7808 | (var_decode_location, decode_locdesc): Update. | |
7809 | * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from | |
7810 | read.c. Remove "cu" parameter. | |
7811 | * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New | |
7812 | method. | |
7813 | ||
8266302d TT |
7814 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7815 | ||
7816 | * dwarf2/read.c (read_attribute_value, read_indirect_string) | |
7817 | (read_indirect_line_string): Update. | |
7818 | * dwarf2/comp-unit.c (read_offset): Remove. | |
7819 | (read_comp_unit_head): Update. | |
7820 | * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New | |
7821 | method. | |
7822 | (read_offset): Don't declare. | |
7823 | ||
4057dfde TT |
7824 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7825 | ||
7826 | * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c. | |
7827 | * dwarf2/read.c (struct comp_unit_head): Move to | |
7828 | dwarf2/comp-unit.h. | |
7829 | (enum class rcuh_kind): Move to comp-unit.h. | |
7830 | (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head. | |
7831 | (read_comp_unit_head, error_check_comp_unit_head) | |
7832 | (read_and_check_comp_unit_head): Move to comp-unit.c. | |
7833 | (read_offset, dwarf_unit_type_name): Likewise. | |
7834 | (create_debug_type_hash_table, read_cutu_die_from_dwo) | |
7835 | (cutu_reader::cutu_reader, read_call_site_scope) | |
7836 | (find_partial_die, follow_die_offset): Update. | |
7837 | * dwarf2/comp-unit.h: New file, from dwarf2read.c. | |
7838 | ||
24aa364d TT |
7839 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7840 | ||
7841 | * dwarf2/read.c (read_offset_1): Move to leb.c. | |
7842 | (read_abbrev_offset, read_offset, dwarf_decode_line_header) | |
7843 | (dwarf_decode_macro_bytes): Update. | |
7844 | * dwarf2/leb.c (read_offset): Rename; move from read.c. | |
7845 | * dwarf2/leb.h (read_offset): Declare. | |
7846 | ||
2c7d5afc TT |
7847 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7848 | ||
7849 | * dwarf2/read.c (dwarf2_section_size): Remove. | |
7850 | (error_check_comp_unit_head, dwarf2_symbol_mark_computed): | |
7851 | Update. | |
7852 | * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method. | |
7853 | ||
4075cb26 TT |
7854 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7855 | ||
7856 | * dwarf2/read.c (read_initial_length): Move to leb.c. | |
7857 | * dwarf2/leb.h (read_initial_length): Declare. | |
7858 | * dwarf2/leb.c (read_initial_length): Move from read.c. Add | |
7859 | handle_nonstd parameter. | |
7860 | * dwarf2/frame.c (read_initial_length): Remove. | |
7861 | (decode_frame_entry_1): Update. | |
7862 | ||
09ba997f TT |
7863 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7864 | ||
7865 | * dwarf2/loc.c (dwarf2_find_location_expression) | |
7866 | (dwarf_evaluate_loc_desc::get_tls_address) | |
7867 | (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value) | |
7868 | (rw_pieced_value, dwarf2_evaluate_loc_desc_full) | |
7869 | (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property) | |
7870 | (dwarf2_compile_property_to_c) | |
7871 | (dwarf2_loc_desc_get_symbol_read_needs) | |
7872 | (dwarf2_compile_expr_to_ax, locexpr_describe_location) | |
7873 | (locexpr_tracepoint_var_ref, locexpr_generate_c_location) | |
7874 | (loclist_describe_location, loclist_tracepoint_var_ref) | |
7875 | (loclist_generate_c_location): Update. | |
7876 | * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update. | |
7877 | * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size) | |
7878 | (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size) | |
7879 | (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare. | |
7880 | * dwarf2/read.c (dwarf2_per_cu_data::objfile) | |
7881 | (dwarf2_per_cu_data::addr_size) | |
7882 | (dwarf2_per_cu_data::ref_addr_size) | |
7883 | (dwarf2_per_cu_data::text_offset) | |
7884 | (dwarf2_per_cu_data::addr_type): Now methods. | |
7885 | (per_cu_header_read_in): Make per_cu "const". | |
7886 | (dwarf2_version): Remove. | |
7887 | (dwarf2_per_cu_data::int_type): Now a method. | |
7888 | (dwarf2_per_cu_data::_addr_sized_int_type): Likewise. | |
7889 | (set_die_type, read_array_type, read_subrange_index_type) | |
7890 | (read_tag_string_type, read_subrange_type): Update. | |
7891 | * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size, | |
7892 | offset_size, ref_addr_size, text_offset, addr_type, version, | |
7893 | objfile, int_type, addr_sized_int_type>: Declare methods. | |
7894 | ||
96c738c0 TT |
7895 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7896 | ||
7897 | * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>: | |
7898 | Move earlier. | |
7899 | ||
8fdd972c TT |
7900 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7901 | ||
7902 | * dwarf2/read.h (dwarf_line_debug): Declare. | |
7903 | * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c. | |
7904 | * dwarf2/read.c: Move line_header code to new files. | |
7905 | (dwarf_line_debug): No longer static. | |
7906 | * dwarf2/line-header.c: New file. | |
7907 | * dwarf2/line-header.h: New file. | |
7908 | ||
03075812 TT |
7909 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7910 | ||
7911 | * dwarf2/read.c (struct line_header) <file_full_name, | |
7912 | file_file_name>: Return unique_xmalloc_ptr. | |
7913 | (line_header::file_file_name): Update. | |
7914 | (line_header::file_full_name): Update. | |
7915 | (dw2_get_file_names_reader): Update. | |
7916 | (macro_start_file): Update. | |
7917 | ||
bb822404 TT |
7918 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7919 | ||
7920 | * dwarf2/read.c (struct line_header) <file_full_name, | |
7921 | file_file_name>: Declare methods. | |
7922 | (dw2_get_file_names_reader): Update. | |
7923 | (file_file_name): Now a method. | |
7924 | (file_full_name): Likewise. | |
7925 | (macro_start_file): Update. | |
7926 | ||
009b64fc TT |
7927 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7928 | ||
7929 | * dwarf2/read.c (dwarf_always_disassemble) | |
7930 | (show_dwarf_always_disassemble): Move to loc.c. | |
7931 | (_initialize_dwarf2_read): Move "always-disassemble" registration | |
7932 | to loc.c. | |
7933 | * dwarf2/read.h (dwarf_always_disassemble): Don't declare. | |
7934 | * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now | |
7935 | static. | |
7936 | (show_dwarf_always_disassemble): Move from read.c. | |
7937 | (_initialize_dwarf2loc): Move always-disassemble from read.c. | |
7938 | ||
5895093f TT |
7939 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7940 | ||
7941 | * dwarf2/read.c (~dwarf2_per_objfile): Update. | |
7942 | (create_quick_file_names_table): Return htab_up. | |
7943 | (dw2_get_file_names_reader, dw2_forget_cached_source_info): | |
7944 | Update. | |
7945 | * dwarf2/read.h (struct dwarf2_per_objfile) | |
7946 | <quick_file_names_table>: Now htab_up. | |
7947 | ||
b3b32279 TT |
7948 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7949 | ||
7950 | * dwarf2/abbrev.c (abbrev_table::read): Simplify. | |
7951 | ||
1d33d811 TT |
7952 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7953 | ||
7954 | * dwarf2/abbrev.c (abbrev_table): Move constructor from header. | |
7955 | Rewrite. | |
7956 | (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite. | |
7957 | * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove. | |
7958 | (abbrev_table::abbrev_table): No longer inline. | |
7959 | (ABBREV_HASH_SIZE): Remove. | |
7960 | (abbrev_table::m_abbrevs): Now an htab_up. | |
7961 | ||
86de1d91 TT |
7962 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7963 | ||
7964 | * dwarf2/read.c (read_cutu_die_from_dwo): Update. | |
7965 | (cutu_reader): Update. | |
7966 | (build_type_psymtabs_1): Update. | |
7967 | * dwarf2/abbrev.c (abbrev_table::read): Rename. | |
7968 | (abbrev_table::alloc_abbrev): Update. | |
7969 | * dwarf2/abbrev.h (abbrev_table_up): Move earlier. | |
7970 | (abbrev_table::read): New static method, renamed from | |
7971 | abbrev_table_read_table. | |
7972 | (abbrev_table::alloc_abbrev) | |
7973 | (abbrev_table::add_abbrev): Now private. | |
7974 | (abbrev_table::abbrev_table): Now private. | |
7975 | (abbrev_table::m_abbrev_obstack): Now private. Rename. | |
7976 | ||
0335378b TT |
7977 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7978 | ||
7979 | * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update. | |
7980 | * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now | |
7981 | htab_up. | |
7982 | ||
48b490f2 TT |
7983 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7984 | ||
7985 | * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now | |
7986 | htab_up. | |
7987 | (lookup_dwo_unit_in_dwp): Update. | |
7988 | (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate | |
7989 | on obstack. | |
7990 | ||
bc68fb19 TT |
7991 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7992 | ||
7993 | * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on | |
7994 | obstack. | |
7995 | ||
d15acc42 TT |
7996 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7997 | ||
7998 | * dwarf2/read.c (~dwarf2_per_objfile): Don't delete | |
7999 | line_header_hash. | |
8000 | (handle_DW_AT_stmt_list): Update. Don't allocate on obstack. | |
8001 | * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>: | |
8002 | Change type to htab_up. | |
8003 | ||
eaa5fa8b TT |
8004 | 2020-02-08 Tom Tromey <tom@tromey.com> |
8005 | ||
8006 | * dwarf2/read.c (allocate_type_unit_groups_table): Return | |
8007 | htab_up. Don't allocate on obstack. | |
8008 | (get_type_unit_group, dwarf2_build_psymtabs_hard): Update. | |
8009 | * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>: | |
8010 | Change type to htab_up. | |
8011 | ||
b0b6a987 TT |
8012 | 2020-02-08 Tom Tromey <tom@tromey.com> |
8013 | ||
8014 | * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>: | |
8015 | Change type to htab_up. | |
8016 | * dwarf2/read.c (create_signatured_type_table_from_index) | |
8017 | (create_signatured_type_table_from_debug_names) | |
8018 | (create_all_type_units, add_type_unit) | |
8019 | (lookup_dwo_signatured_type, lookup_signatured_type) | |
8020 | (process_skeletonless_type_unit): Update. | |
8021 | (create_debug_type_hash_table, create_debug_types_hash_table): | |
8022 | Change type of types_htab. | |
8023 | (allocate_signatured_type_table, allocate_dwo_unit_table): Return | |
8024 | htab_up. Don't allocate on obstack. | |
8025 | (create_cus_hash_table): Change type of cus_htab parameter. | |
8026 | (struct dwo_file) <cus, tus>: Now htab_up. | |
8027 | (lookup_dwo_signatured_type, lookup_dwo_cutu) | |
8028 | (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu) | |
8029 | (queue_and_load_all_dwo_tus): Update. | |
8030 | * dwarf2/index-write.c (write_gdbindex): Update. | |
8031 | (write_debug_names): Update. | |
8032 | ||
39856def TT |
8033 | 2020-02-08 Tom Tromey <tom@tromey.com> |
8034 | ||
8035 | * dwarf2/read.h (struct dwarf2_queue_item): Move from | |
8036 | dwarf2/read.c. Remove "next" member. Add constructor ntad | |
8037 | destructor. | |
8038 | (struct dwarf2_per_objfile) <queue>: New member. | |
8039 | * dwarf2/read.c (struct dwarf2_queue_item): Move to | |
8040 | dwarf2/read.h. | |
8041 | (dwarf2_queue, dwarf2_queue_tail): Remove. | |
8042 | (class dwarf2_queue_guard): Add parameter to constructor. Use | |
8043 | DISABLE_COPY_AND_ASSIGN. | |
8044 | <m_per_objfile>: New member. | |
8045 | <~dwarf2_queue_guard>: Rewrite. | |
8046 | (dw2_do_instantiate_symtab, queue_comp_unit, process_queue): | |
8047 | Update. | |
8048 | (~dwarf2_queue_item): New. | |
8049 | ||
3e225074 TT |
8050 | 2020-02-08 Tom Tromey <tom@tromey.com> |
8051 | ||
8052 | * dwarf2/read.c (struct die_info) <has_children>: New member. | |
8053 | (dw2_get_file_names_reader): Remove has_children. | |
8054 | (dw2_get_file_names): Update. | |
8055 | (read_cutu_die_from_dwo): Remove has_children. | |
8056 | (cutu_reader::init_tu_and_read_dwo_dies) | |
8057 | (cutu_reader::cutu_reader): Update. | |
8058 | (process_psymtab_comp_unit_reader, build_type_psymtabs_reader): | |
8059 | Remove has_children. | |
8060 | (build_type_psymtabs_1, process_skeletonless_type_unit) | |
8061 | (load_partial_comp_unit, load_full_comp_unit): Update. | |
8062 | (create_dwo_cu_reader): Remove has_children. | |
8063 | (create_cus_hash_table, read_die_and_children): Update. | |
8064 | (read_full_die_1,read_full_die): Remove has_children. | |
8065 | (read_signatured_type): Update. | |
8066 | (class cutu_reader) <has_children>: Remove. | |
8067 | ||
82ca8957 TT |
8068 | 2020-02-08 Tom Tromey <tom@tromey.com> |
8069 | ||
8070 | * dwarf2/expr.c: Rename from dwarf2expr.c. | |
8071 | * dwarf2/expr.h: Rename from dwarf2expr.h. | |
8072 | * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c. | |
8073 | * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h. | |
8074 | * dwarf2/frame.c: Rename from dwarf2-frame.c. | |
8075 | * dwarf2/frame.h: Rename from dwarf2-frame.h. | |
8076 | * dwarf2/index-cache.c: Rename from dwarf-index-cache.c. | |
8077 | * dwarf2/index-cache.h: Rename from dwarf-index-cache.h. | |
8078 | * dwarf2/index-common.c: Rename from dwarf-index-common.c. | |
8079 | * dwarf2/index-common.h: Rename from dwarf-index-common.h. | |
8080 | * dwarf2/index-write.c: Rename from dwarf-index-write.c. | |
8081 | * dwarf2/index-write.h: Rename from dwarf-index-write.h. | |
8082 | * dwarf2/loc.c: Rename from dwarf2loc.c. | |
8083 | * dwarf2/loc.h: Rename from dwarf2loc.h. | |
8084 | * dwarf2/read.c: Rename from dwarf2read.c. | |
8085 | * dwarf2/read.h: Rename from dwarf2read.h. | |
8086 | * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c, | |
8087 | amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c, | |
8088 | compile/compile-c-symbols.c, compile/compile-cplus-symbols.c, | |
8089 | compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c, | |
8090 | gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c, | |
8091 | hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c, | |
8092 | i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c, | |
8093 | m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c, | |
8094 | msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c, | |
8095 | riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c, | |
8096 | s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c, | |
8097 | sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c, | |
8098 | tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c: | |
8099 | Update. | |
8100 | * Makefile.in (COMMON_SFILES): Update. | |
8101 | (HFILES_NO_SRCDIR): Update. | |
8102 | ||
9e35d499 TT |
8103 | 2020-02-08 Tom Tromey <tom@tromey.com> |
8104 | ||
8105 | * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove. | |
8106 | (init_cu_die_reader, read_cutu_die_from_dwo): Update. | |
8107 | ||
1eba2311 TT |
8108 | 2020-02-08 Tom Tromey <tom@tromey.com> |
8109 | ||
8110 | * dwarf2read.h (struct die_info): Don't declare. | |
8111 | ||
e41c2da2 TT |
8112 | 2020-02-08 Tom Tromey <tom@tromey.com> |
8113 | ||
8114 | * dwarf2read.h (die_info_ptr): Remove typedef. | |
8115 | ||
4fc6c0d5 TT |
8116 | 2020-02-08 Tom Tromey <tom@tromey.com> |
8117 | ||
8118 | * dwarf2read.c (read_call_site_scope) | |
8119 | (handle_data_member_location, dwarf2_add_member_fn) | |
8120 | (mark_common_block_symbol_computed, read_common_block) | |
8121 | (attr_to_dynamic_prop, partial_die_info::read) | |
8122 | (var_decode_location, dwarf2_fetch_die_loc_sect_off) | |
8123 | (dwarf2_symbol_mark_computed, set_die_type): Update. | |
8124 | * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare | |
8125 | method. | |
8126 | (attr_form_is_block): Don't declare. | |
8127 | * dwarf2/attribute.c (attribute::form_is_block): Now a method. | |
8128 | ||
cd6c91b4 TT |
8129 | 2020-02-08 Tom Tromey <tom@tromey.com> |
8130 | ||
8131 | * dwarf2read.c (dwarf2_find_base_address, ) | |
8132 | (read_call_site_scope, rust_containing_type) | |
8133 | (dwarf2_get_pc_bounds, dwarf2_record_block_ranges) | |
8134 | (handle_data_member_location, dwarf2_add_member_fn) | |
8135 | (get_alignment, read_structure_type, process_structure_scope) | |
8136 | (mark_common_block_symbol_computed, read_common_block) | |
8137 | (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type) | |
8138 | (partial_die_info::read, read_attribute_value, new_symbol) | |
8139 | (lookup_die_type, dwarf2_get_ref_die_offset) | |
8140 | (dwarf2_get_attr_constant_value, follow_die_ref_or_sig) | |
8141 | (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type) | |
8142 | (dwarf2_symbol_mark_computed): Update. | |
8143 | * dwarf2/attribute.h (struct attribute) <value_as_address, | |
8144 | form_is_section_offset, form_is_constant, form_is_ref>: Declare | |
8145 | methods. | |
8146 | (value_as_address, attr_form_is_section_offset) | |
8147 | (attr_form_is_constant, attr_form_is_ref): Don't declare. | |
8148 | * dwarf2/attribute.c (attribute::value_as_address) | |
8149 | (attribute::form_is_section_offset, attribute::form_is_constant) | |
8150 | (attribute::form_is_ref): Now methods. | |
8151 | ||
162dce55 TT |
8152 | 2020-02-08 Tom Tromey <tom@tromey.com> |
8153 | ||
8154 | * dwarf2read.c (struct attribute, DW_STRING) | |
8155 | (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR) | |
8156 | (DW_SIGNATURE, struct dwarf_block, attr_value_as_address) | |
8157 | (attr_form_is_block, attr_form_is_section_offset) | |
8158 | (attr_form_is_constant, attr_form_is_ref): Move. | |
8159 | * dwarf2/attribute.h: New file. | |
8160 | * dwarf2/attribute.c: New file, from dwarf2read.c. | |
8161 | * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c. | |
8162 | ||
3054dd54 TT |
8163 | 2020-02-08 Tom Tromey <tom@tromey.com> |
8164 | ||
8165 | * dwarf2read.c (abbrev_table_up, struct abbrev_info) | |
8166 | (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table): | |
8167 | Move. | |
8168 | (read_cutu_die_from_dwo, build_type_psymtabs_1): Update. | |
8169 | (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev) | |
8170 | (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to | |
8171 | abbrev.c. | |
8172 | * dwarf2/abbrev.h: New file. | |
8173 | * dwarf2/abbrev.c: New file, from dwarf2read.c. | |
8174 | * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c. | |
8175 | ||
96b79293 TT |
8176 | 2020-02-08 Tom Tromey <tom@tromey.com> |
8177 | ||
8178 | * dwarf2read.c (dwarf2_section_buffer_overflow_complaint) | |
8179 | (dwarf2_section_size, dwarf2_get_section_info) | |
8180 | (create_signatured_type_table_from_debug_names) | |
8181 | (create_addrmap_from_aranges, read_debug_names_from_section) | |
8182 | (get_gdb_index_contents_from_section, read_comp_unit_head) | |
8183 | (error_check_comp_unit_head, read_abbrev_offset) | |
8184 | (create_debug_type_hash_table, init_cu_die_reader) | |
8185 | (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard) | |
8186 | (read_comp_units_from_section, create_cus_hash_table) | |
8187 | (create_dwp_hash_table, create_dwo_unit_in_dwp_v1) | |
8188 | (create_dwp_v2_section, dwarf2_rnglists_process) | |
8189 | (dwarf2_ranges_process, read_die_and_siblings, read_full_die) | |
8190 | (abbrev_table_read_table, read_indirect_string_at_offset_from) | |
8191 | (read_indirect_string_from_dwz, read_addr_index_1) | |
8192 | (read_str_index, dwarf_decode_line_header, skip_form_bytes) | |
8193 | (dwarf_decode_macro_bytes, dwarf_decode_macros) | |
8194 | (fill_in_loclist_baton): Update. | |
8195 | * dwarf2/section.h (struct dwarf2_section_info) <get_name, | |
8196 | get_containing_section, get_bfd_owner, get_bfd_section, | |
8197 | get_file_name, get_id, get_flags, empty, read>: Declare methods. | |
8198 | (dwarf2_read_section, get_section_name, get_section_file_name) | |
8199 | (get_containing_section, get_section_bfd_owner) | |
8200 | (get_section_bfd_section, get_section_name, get_section_file_name) | |
8201 | (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't | |
8202 | declare. | |
8203 | * dwarf2/section.c (dwarf2_section_info::get_containing_section) | |
8204 | (dwarf2_section_info::get_bfd_owner) | |
8205 | (dwarf2_section_info::get_bfd_section) | |
8206 | (dwarf2_section_info::get_name) | |
8207 | (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id) | |
8208 | (dwarf2_section_info::get_flags, dwarf2_section_info::empty) | |
8209 | (dwarf2_section_info::read): Now methods. | |
8210 | * dwarf-index-write.c (class debug_names): Update. | |
8211 | ||
2c86cff9 TT |
8212 | 2020-02-08 Tom Tromey <tom@tromey.com> |
8213 | ||
8214 | * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section): | |
8215 | Move to dwarf2/section.h. | |
8216 | * dwarf2read.c (get_containing_section, get_section_bfd_owner) | |
8217 | (get_section_bfd_section, get_section_name) | |
8218 | (get_section_file_name, get_section_id, get_section_flags) | |
8219 | (dwarf2_section_empty_p, dwarf2_read_section): Moe to | |
8220 | dwarf2/section.c. | |
8221 | * dwarf2/section.h: New file. | |
8222 | * dwarf2/section.c: New file, from dwarf2read.c. | |
8223 | * Makefile.in (COMMON_SFILES): Add dwarf2/section.c. | |
8224 | ||
f4382c45 TT |
8225 | 2020-02-08 Tom Tromey <tom@tromey.com> |
8226 | ||
8227 | * dwarf2read.h (read_unsigned_leb128): Don't declare. | |
8228 | * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes) | |
8229 | (read_2_signed_bytes, read_3_bytes, read_4_bytes) | |
8230 | (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h. | |
8231 | (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c. | |
8232 | * dwarf2/leb.h: New file, from dwarf2read.c. | |
8233 | * dwarf2/leb.c: New file, from dwarf2read.c. | |
8234 | * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes): | |
8235 | Remove. | |
8236 | * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2. | |
8237 | (COMMON_SFILES): Add dwarf2/leb.c. | |
8238 | ||
01840b7a JB |
8239 | 2020-02-08 Joel Brobecker <brobecker@adacore.com> |
8240 | ||
8241 | GDB 9.1 released. | |
8242 | ||
dfcb27e4 IB |
8243 | 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org> |
8244 | ||
8245 | PR gdb/25190: | |
aac66a4c SM |
8246 | * gdb/remote-sim.c (gdb_os_write_stderr): Update. |
8247 | * gdb/remote.c (remote_console_output): Update. | |
8248 | * gdb/ui-file.c (fputs_unfiltered): Rename to... | |
8249 | (ui_file_puts): ...this. | |
8250 | * gdb/ui-file.h (ui_file_puts): Add declaration. | |
8251 | * gdb/utils.c (emit_style_escape): Update. | |
8252 | (flush_wrap_buffer): Update. | |
8253 | (fputs_maybe_filtered): Update. | |
8254 | (fputs_unfiltered): Add function. | |
dfcb27e4 | 8255 | |
faa17681 IB |
8256 | 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org> |
8257 | ||
aac66a4c SM |
8258 | * gdb/event-loop.c (gdb_wait_for_event): Update. |
8259 | * gdb/printcmd.c (printf_command): Update. | |
8260 | * gdb/remote-fileio.c (remote_fileio_func_write): Update. | |
8261 | * gdb/remote-sim.c (gdb_os_flush_stdout): Update. | |
8262 | (gdb_os_flush_stderr): Update. | |
8263 | * gdb/remote.c (remote_console_output): Update. | |
8264 | * gdb/ui-file.c (gdb_flush): Rename to... | |
8265 | (ui_file_flush): ...this. | |
8266 | (stderr_file::write): Update. | |
8267 | (stderr_file::puts): Update. | |
8268 | * gdb/ui-file.h (gdb_flush): Rename to... | |
8269 | (ui_file_flush): ...this. | |
8270 | * gdb/utils.c (gdb_flush): Add function. | |
8271 | * gdb/utils.h (gdb_flush): Add declaration. | |
faa17681 | 8272 | |
5abbbe1d TT |
8273 | 2020-02-07 Tom Tromey <tromey@adacore.com> |
8274 | ||
8275 | PR breakpoints/24915: | |
8276 | * source.c (find_and_open_source): Do not check basenames_may_differ. | |
8277 | ||
919adfe8 TT |
8278 | 2020-02-07 Tom Tromey <tom@tromey.com> |
8279 | ||
8280 | * README: Update gdbserver documentation. | |
8281 | * gdbserver: Move to top level. | |
8282 | * configure.tgt (build_gdbserver): Remove. | |
8283 | * configure.ac: Remove --enable-gdbserver. | |
8284 | * configure: Rebuild. | |
8285 | * Makefile.in (distclean): Don't mention gdbserver. | |
8286 | ||
1d5d29e7 SV |
8287 | 2020-02-06 Shahab Vahedi <shahab@synopsys.com> |
8288 | ||
8289 | * source-cache.c (source_cache::ensure): Surround | |
8290 | get_plain_source_lines with a try/catch. | |
8291 | (source_cache::get_line_charpos): Get rid of try/catch | |
8292 | and only check for the return value of "ensure". | |
8293 | * tui/tui-source.c (tui_source_window::set_contents): | |
8294 | Simplify "nlines" calculation. | |
8295 | ||
6eb1129c SV |
8296 | 2020-02-06 Shahab Vahedi <shahab@synopsys.com> |
8297 | ||
8298 | * MAINTAINERS (Write After Approval): Add myself. | |
8299 | ||
c6a42d11 CB |
8300 | 2020-02-05 Christian Biesinger <cbiesinger@google.com> |
8301 | ||
8302 | * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class | |
8303 | function call. | |
8304 | ||
c8ecdda6 CB |
8305 | 2020-02-05 Christian Biesinger <cbiesinger@google.com> |
8306 | ||
8307 | * ppc-nbsd-tdep.h: Fix macro name in #endif comment. | |
8308 | ||
f6480e70 MR |
8309 | 2020-02-05 Maciej W. Rozycki <macro@wdc.com> |
8310 | ||
8311 | * nat/riscv-linux-tdesc.h: New file. | |
8312 | * nat/riscv-linux-tdesc.c: New file, taking code from... | |
8313 | * riscv-linux-nat.c (riscv_linux_nat_target::read_description): | |
8314 | ... here. | |
8315 | * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to | |
8316 | NATDEPFILES. | |
8317 | ||
dcc9fbc6 AB |
8318 | 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com> |
8319 | ||
8320 | * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that | |
8321 | we don't set the fake simulator ptid to the null_ptid. | |
8322 | ||
719546c4 SM |
8323 | 2020-02-03 Simon Marchi <simon.marchi@efficios.com> |
8324 | ||
8325 | * fork-child.c (gdb_startup_inferior): Use bool instead of int. | |
8326 | * gdbthread.h (class thread_info) <resumed>: Likewise. | |
8327 | * infrun.c (resume_1): Likewise. | |
8328 | (proceed): Likewise. | |
8329 | (infrun_thread_stop_requested): Likewise. | |
8330 | (stop_all_threads): Likewise. | |
8331 | (handle_inferior_event): Likewise. | |
8332 | (restart_threads): Likewise. | |
8333 | (finish_step_over): Likewise. | |
8334 | (keep_going_stepped_thread): Likewise. | |
8335 | * linux-nat.c (attach_proc_task_lwp_callback): Likewise. | |
8336 | (linux_handle_extended_wait): Likewise. | |
8337 | * record-btrace.c (get_thread_current_frame_id): Likewise. | |
8338 | * record-full.c (record_full_wait_1): Likewise. | |
8339 | * remote.c (remote_target::process_initial_stop_replies): Likewise. | |
8340 | * target.c (target_resume): Likewise. | |
8341 | * thread.c (set_running_thread): Likewise. | |
8342 | ||
e409c542 AKS |
8343 | 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
8344 | ||
8345 | * f-valprint.c (f77_print_array_1): Changed datatype of index | |
8346 | variable to LONGEST from int to enable it to contain bound | |
8347 | values correctly. | |
8348 | ||
ee98c0da MR |
8349 | 2020-02-03 Maciej W. Rozycki <macro@wdc.com> |
8350 | ||
8351 | * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro. | |
8352 | (supply_fpregset_regnum, fill_fpregset): Handle regset buffer | |
8353 | offsets according to FLEN determined. | |
8354 | (riscv_linux_nat_target::read_description): Determine FLEN | |
8355 | dynamically. | |
8356 | (riscv_linux_nat_target::fetch_registers): Size regset buffer | |
8357 | according to FLEN determined. | |
8358 | (riscv_linux_nat_target::store_registers): Likewise. | |
8359 | ||
aa66aac4 SV |
8360 | 2020-02-01 Shahab Vahedi <shahab@synopsys.com> |
8361 | ||
8362 | * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0 | |
8363 | when reg->group is empty and reggroup is not. | |
8364 | ||
fd9faca8 TT |
8365 | 2020-01-31 Tom Tromey <tromey@adacore.com> |
8366 | ||
8367 | * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior): | |
8368 | Call beneath target's mourn_inferior after unpushing. | |
8369 | ||
42330a68 AB |
8370 | 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com> |
8371 | ||
8372 | PR tui/9765 | |
8373 | * tui/tui-disasm.c (tui_find_disassembly_address): If we don't | |
8374 | have enough lines to fill the screen, still return the lowest | |
8375 | address we found. | |
8376 | ||
7a27a45b AB |
8377 | 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com> |
8378 | ||
8379 | * tui/tui-win.c (_initialize_tui_win): Update help text for '+', | |
8380 | '-', '<', and '>' commands. | |
8381 | ||
c47f70e2 PA |
8382 | 2020-01-29 Pedro Alves <palves@redhat.com> |
8383 | Sergio Durigan Junior <sergiodj@redhat.com> | |
8384 | ||
8385 | * infcmd.c (construct_inferior_arguments): Assert that | |
8386 | 'argc' is greater than 0. | |
8387 | ||
5133a315 LM |
8388 | 2020-01-29 Luis Machado <luis.machado@linaro.org> |
8389 | ||
8390 | * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f. | |
8391 | (BRK_INSN_MASK): Define to 0xd4200000. | |
8392 | (aarch64_program_breakpoint_here_p): New function. | |
8393 | (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook. | |
8394 | * arch-utils.c (default_program_breakpoint_here_p): Moved from | |
8395 | breakpoint.c. | |
8396 | * arch-utils.h (default_program_breakpoint_here_p): Moved from | |
8397 | breakpoint.h | |
8398 | * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and | |
8399 | call gdbarch_program_breakpoint_here_p. | |
8400 | (program_breakpoint_here): Moved to arch-utils.c, renamed to | |
8401 | default_program_breakpoint_here_p, changed return type to bool and | |
8402 | simplified. | |
8403 | * breakpoint.h (program_breakpoint_here): Moved prototype to | |
8404 | arch-utils.h, renamed to default_program_breakpoint_here_p and changed | |
8405 | return type to bool. | |
8406 | * gdbarch.c: Regenerate. | |
8407 | * gdbarch.h: Regenerate. | |
8408 | * gdbarch.sh (program_breakpoint_here_p): New method. | |
8409 | * infrun.c (handle_signal_stop): Call | |
8410 | gdbarch_program_breakpoint_here_p. | |
8411 | ||
168f8c6b TT |
8412 | 2020-01-26 Tom Tromey <tom@tromey.com> |
8413 | ||
8414 | * ctfread.c (struct ctf_fp_info): Reindent. | |
8415 | (_initialize_ctfread): Remove. | |
8416 | ||
128a391f TT |
8417 | 2020-01-26 Tom Tromey <tom@tromey.com> |
8418 | ||
8419 | * psymtab.c (partial_map_expand_apply) | |
8420 | (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol) | |
8421 | (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab) | |
8422 | (psym_print_stats, psym_expand_symtabs_for_function) | |
8423 | (psym_map_symbol_filenames, psym_map_matching_symbols) | |
8424 | (psym_expand_symtabs_matching) | |
8425 | (partial_symtab::read_dependencies, maintenance_info_psymtabs) | |
8426 | (maintenance_check_psymtabs): Use new methods. | |
8427 | * psympriv.h (struct partial_symtab) <readin_p, | |
8428 | get_compunit_symtab>: New methods. | |
8429 | <readin, compunit_symtab>: Remove members. | |
8430 | (struct standard_psymtab): New. | |
8431 | (struct legacy_psymtab): Derive from standard_psymtab. | |
8432 | * dwarf2read.h (struct dwarf2_psymtab): Derive from | |
8433 | standard_psymtab. | |
8434 | * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab. | |
8435 | ||
0494dbec TT |
8436 | 2020-01-26 Tom Tromey <tom@tromey.com> |
8437 | ||
8438 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Call | |
8439 | read_dependencies. Add assert. | |
8440 | * psymtab.c (partial_symtab::read_dependencies): New method. | |
8441 | * psympriv.h (struct partial_symtab) <read_dependencies>: New | |
8442 | method. | |
8443 | * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies. | |
8444 | * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call | |
8445 | read_dependencies. | |
8446 | * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies. | |
8447 | Add assert. | |
8448 | ||
8566b89b TT |
8449 | 2020-01-26 Tom Tromey <tom@tromey.com> |
8450 | ||
8451 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order. | |
8452 | Call expand_psymtab. | |
8453 | (xcoff_read_symtab): Call expand_psymtab. | |
8454 | (xcoff_start_psymtab, xcoff_end_psymtab): Set | |
8455 | legacy_expand_psymtab. | |
8456 | * psympriv.h (struct partial_symtab) <expand_psymtab>: New | |
8457 | method. | |
8458 | (struct legacy_psymtab) <expand_psymtab>: Implement. | |
8459 | <legacy_expand_psymtab>: New member. | |
8460 | * mdebugread.c (mdebug_read_symtab): Call expand_psymtab. | |
8461 | (parse_partial_symbols): Set legacy_expand_psymtab. | |
8462 | (psymtab_to_symtab_1): Change argument order. Call | |
8463 | expand_psymtab. | |
8464 | (new_psymtab): Set legacy_expand_psymtab. | |
8465 | * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare. | |
8466 | * dwarf2read.c (dwarf2_psymtab::read_symtab): Call | |
8467 | expand_psymtab. | |
8468 | (dwarf2_psymtab::expand_psymtab): Rename from | |
8469 | psymtab_to_symtab_1. Call expand_psymtab. | |
8470 | * dbxread.c (start_psymtab): Set legacy_expand_psymtab. | |
8471 | (dbx_end_psymtab): Likewise. | |
8472 | (dbx_psymtab_to_symtab_1): Change argument order. Call | |
8473 | expand_psymtab. | |
8474 | (dbx_read_symtab): Call expand_psymtab. | |
8475 | * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare. | |
8476 | (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab. | |
8477 | (ctf_psymtab::read_symtab): Call expand_psymtab. | |
8478 | ||
077cbab2 TT |
8479 | 2020-01-26 Tom Tromey <tom@tromey.com> |
8480 | ||
8481 | * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert. | |
8482 | * psymtab.c (psymtab_to_symtab): Print verbose "Reading" | |
8483 | messages. | |
8484 | * mdebugread.c (mdebug_read_symtab): Remove prints. | |
8485 | * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add | |
8486 | assert. | |
8487 | * dbxread.c (dbx_read_symtab): Remove prints. Add assert. | |
8488 | ||
891813be TT |
8489 | 2020-01-26 Tom Tromey <tom@tromey.com> |
8490 | ||
8491 | * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab) | |
8492 | (xcoff_psymtab_to_symtab_1, xcoff_read_symtab) | |
8493 | (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use | |
8494 | legacy_symtab. | |
8495 | * stabsread.h (dbx_end_psymtab): Use legacy_symtab. | |
8496 | * psymtab.c (psymtab_to_symtab): Call method. | |
8497 | (dump_psymtab): Update. | |
8498 | * psympriv.h (struct partial_symtab): Add virtual destructor. | |
8499 | <read_symtab>: New method. | |
8500 | (struct legacy_symtab): New. | |
8501 | * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab. | |
8502 | (struct pst_map) <pst>: Now a legacy_psymtab. | |
8503 | (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1) | |
8504 | (new_psymtab): Use legacy_psymtab. | |
8505 | * dwarf2read.h (struct dwarf2_psymtab): New. | |
8506 | (struct dwarf2_per_cu_data) <psymtab>: Use it. | |
8507 | * dwarf2read.c (dwarf2_create_include_psymtab) | |
8508 | (dwarf2_build_include_psymtabs, create_type_unit_group) | |
8509 | (create_partial_symtab, process_psymtab_comp_unit_reader) | |
8510 | (build_type_psymtabs_reader, build_type_psymtab_dependencies) | |
8511 | (set_partial_user): Use dwarf2_psymtab. | |
8512 | (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab. | |
8513 | (psymtab_to_symtab_1, process_full_comp_unit) | |
8514 | (process_full_type_unit, dwarf2_ranges_read) | |
8515 | (dwarf2_get_pc_bounds, psymtab_include_file_name) | |
8516 | (dwarf_decode_lines): Use dwarf2_psymtab. | |
8517 | * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab. | |
8518 | (add_address_entry_worker, write_one_signatured_type) | |
8519 | (recursively_count_psymbols, recursively_write_psymbols) | |
8520 | (write_one_signatured_type, psyms_seen_size, write_gdbindex) | |
8521 | (write_debug_names): Likewise. | |
8522 | * dbxread.c (struct header_file_location): Take a legacy_psymtab. | |
8523 | <pst>: Now a legacy_psymtab. | |
8524 | (find_corresponding_bincl_psymtab): Return a legacy_psymtab. | |
8525 | (read_dbx_symtab, start_psymtab, dbx_end_psymtab) | |
8526 | (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab. | |
8527 | * ctfread.c (struct ctf_psymtab): New. | |
8528 | (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a | |
8529 | ctf_psymtab. | |
8530 | (ctf_psymtab::read_symtab): Rename from ctf_read_symtab. | |
8531 | (create_partial_symtab): Return a ctf_psymtab. | |
8532 | (scan_partial_symbols): Update. | |
8533 | ||
c3693a1d TT |
8534 | 2020-01-26 Tom Tromey <tom@tromey.com> |
8535 | ||
8536 | * xcoffread.c (xcoff_start_psymtab): Use new. | |
8537 | * psymtab.c (partial_symtab::partial_symtab): New constructor, | |
8538 | renamed from start_psymtab_common. | |
8539 | * psympriv.h (struct partial_symtab): Add new constructor. | |
8540 | (start_psymtab_common): Don't declare. | |
8541 | * mdebugread.c (parse_partial_symbols): Use new. | |
8542 | * dwarf2read.c (create_partial_symtab): Use new. | |
8543 | * dbxread.c (start_psymtab): Use new. | |
8544 | * ctfread.c (create_partial_symtab): Use new. | |
8545 | ||
32caafd0 TT |
8546 | 2020-01-26 Tom Tromey <tom@tromey.com> |
8547 | ||
8548 | * xcoffread.c (xcoff_end_psymtab): Use new. | |
8549 | * psymtab.c (start_psymtab_common): Use new. | |
8550 | (partial_symtab::partial_symtab): Rename from allocate_psymtab. | |
8551 | Update. | |
8552 | * psympriv.h (struct partial_symtab): Add parameters to | |
8553 | constructor. Don't inline. | |
8554 | (allocate_psymtab): Don't declare. | |
8555 | * mdebugread.c (new_psymtab): Use new. | |
8556 | * dwarf2read.c (dwarf2_create_include_psymtab): Use new. | |
8557 | * dbxread.c (dbx_end_psymtab): Use new. | |
8558 | ||
abaa2f23 TT |
8559 | 2020-01-26 Tom Tromey <tom@tromey.com> |
8560 | ||
8561 | * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from | |
8562 | allocate_psymtab. Update documentation. | |
8563 | * psymtab.c (psymtab_storage::install_psymtab): Rename from | |
8564 | allocate_psymtab. Do not use new. | |
8565 | (allocate_psymtab): Use new. Update. | |
8566 | ||
6d94535f TT |
8567 | 2020-01-26 Tom Tromey <tom@tromey.com> |
8568 | ||
8569 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. | |
8570 | * psymtab.c (psym_print_stats): Update. | |
8571 | * psympriv.h (struct partial_symtab) <readin, | |
8572 | psymtabs_addrmap_supported, anonymous>: Now bool. | |
8573 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
8574 | * dwarf2read.c (create_type_unit_group, create_partial_symtab) | |
8575 | (build_type_psymtabs_reader, psymtab_to_symtab_1) | |
8576 | (process_full_comp_unit, process_full_type_unit): Update. | |
8577 | * dbxread.c (dbx_psymtab_to_symtab_1): Update. | |
8578 | * ctfread.c (psymtab_to_symtab): Update. | |
8579 | ||
6f17252b TT |
8580 | 2020-01-26 Tom Tromey <tom@tromey.com> |
8581 | ||
8582 | * mdebugread.c (parse_partial_symbols): Use discard_psymtab. | |
8583 | * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove. | |
8584 | * psymtab.c (psymtab_storage): Delete psymtabs. | |
8585 | (psymtab_storage::allocate_psymtab): Use new. | |
8586 | (psymtab_storage::discard_psymtab): Use delete. | |
8587 | * psympriv.h (struct partial_symtab): Add constructor and | |
8588 | initializers. | |
8589 | ||
f6f1cebc TT |
8590 | 2020-01-26 Tom Tromey <tom@tromey.com> |
8591 | ||
8592 | * machoread.c: Do not include psympriv.h. | |
8593 | ||
e47e48f6 PW |
8594 | 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
8595 | ||
8596 | * NEWS: Mention the new option and the set/show commands. | |
8597 | ||
a2fedca9 PW |
8598 | 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
8599 | ||
8600 | * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode) | |
8601 | (show_exec_file_mismatch_command, set_exec_file_mismatch_command) | |
8602 | (validate_exec_file): New variables, enums, functions. | |
8603 | (exec_file_locate_attach, print_section_info): Style the filenames. | |
8604 | (_initialize_exec): Install show_exec_file_mismatch_command and | |
8605 | set_exec_file_mismatch_command. | |
8606 | * gdbcore.h (validate_exec_file): Declare. | |
8607 | * infcmd.c (attach_command): Call validate_exec_file. | |
8608 | * remote.c ( remote_target::remote_add_inferior): Likewise. | |
8609 | ||
7ffa82e1 AB |
8610 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
8611 | ||
8612 | * frame.c (find_frame_sal): Move call to get_next_frame into more | |
8613 | inner scope. | |
8614 | * inline-frame.c (inilne_state) <inline_state>: Update argument | |
8615 | types. | |
8616 | (inilne_state) <skipped_symbol>: Rename to... | |
8617 | (inilne_state) <skipped_symbols>: ...this, and change to a vector. | |
8618 | (skip_inline_frames): Build vector of skipped symbols and use this | |
8619 | to reate the inline_state. | |
8620 | (inline_skipped_symbol): Add a comment and some assertions, fetch | |
8621 | skipped symbol from the list. | |
8622 | ||
3d92a3e3 AB |
8623 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
8624 | ||
8625 | * buildsym.c (lte_is_less_than): Delete. | |
8626 | (buildsym_compunit::end_symtab_with_blockvector): Create local | |
8627 | lambda function to sort line table entries, and use | |
8628 | std::stable_sort instead of std::sort. | |
8629 | * symtab.c (find_pc_sect_line): Skip backward over end of sequence | |
8630 | markers when looking for a previous line. | |
8631 | ||
94a72be7 AB |
8632 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
8633 | ||
8634 | * dwarf2read.c (lnp_state_machine::record_line): Include | |
8635 | end_sequence parameter in debug print out. Record the line if we | |
8636 | are at an end_sequence marker even if it's not the start of a | |
8637 | statement. | |
8638 | * symmisc.c (maintenance_print_one_line_table): Print end of | |
8639 | sequence markers with 'END' not '0'. | |
8640 | ||
53af73bf PA |
8641 | 2020-01-24 Pedro Alves <palves@redhat.com> |
8642 | ||
8643 | PR gdb/25410 | |
8644 | * thread.c (scoped_restore_current_thread::restore): Use | |
8645 | switch_to_inferior_no_thread. | |
8646 | * exec.c: Include "progspace-and-thread.h". | |
8647 | (add_target_sections, remove_target_sections): | |
8648 | scoped_restore_current_pspace_and_thread instead of | |
8649 | scoped_restore_current_thread. | |
8650 | * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace | |
8651 | and aspace to the inferior before calling clone_program_space. | |
8652 | Remove stale comment. | |
8653 | ||
3050c6f4 CB |
8654 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
8655 | ||
8656 | * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to... | |
8657 | (arm_netbsd_nat_target::fetch_registers): ...this. | |
8658 | (arm_nbsd_nat_target::store_registers): Rename to... | |
8659 | (arm_netbsd_nat_target::store_registers): ...this. | |
8660 | ||
73685c7e CB |
8661 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
8662 | ||
8663 | * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
8664 | register_t. | |
8665 | ||
89203d40 CB |
8666 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
8667 | ||
8668 | * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections): | |
8669 | Update comment. | |
8670 | * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections): | |
8671 | Likewise. | |
8672 | * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise. | |
8673 | * gdbcore.h (deprecated_add_core_fns): Update comment to point to | |
8674 | the correct replacement (iterate_over_regset_sections). | |
8675 | * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections): | |
8676 | Update comment. | |
8677 | ||
1ba1ac88 AB |
8678 | 2020-01-24 Graham Markall <graham.markall@embecosm.com> |
8679 | ||
8680 | PR gdb/23718 | |
8681 | * gdb/python/python.c (execute_gdb_command): Call | |
8682 | async_enable_stdin in catch block. | |
8683 | ||
f3364a6d AB |
8684 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
8685 | ||
8686 | * event-loop.c (start_event_loop): Wrap async_enable_stdin with | |
8687 | SWITCH_THRU_ALL_UIS. | |
8688 | ||
733d0a67 AB |
8689 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
8690 | ||
8691 | PR tui/9765 | |
8692 | * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header | |
8693 | comment, add extra parameter, and update to store previous symbol | |
8694 | when appropriate. | |
8695 | * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment, | |
8696 | add extra parameter. | |
8697 | * tui/tui-disasm.c (tui_disassemble): Update header comment, | |
8698 | remove unneeded parameter, add try/catch around gdb_print_insn, | |
8699 | rewrite to add items to asm_lines vector. | |
8700 | (tui_find_backward_disassembly_start_address): New function. | |
8701 | (tui_find_disassembly_address): Updated throughout. | |
8702 | (tui_disasm_window::set_contents): Update for changes to | |
8703 | tui_disassemble. | |
8704 | (tui_disasm_window::do_scroll_vertical): No need to adjust the | |
8705 | number of lines to scroll. | |
8706 | ||
b3b3bada SM |
8707 | 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
8708 | ||
8709 | * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up. | |
8710 | (SECT_OFF_DATA): Likewise. | |
8711 | (SECT_OFF_RODATA): Likewise. | |
8712 | (SECT_OFF_TEXT): Likewise. | |
8713 | (SECT_OFF_BSS): Likewise. | |
8714 | (struct objfile) <text_section_offset, data_section_offset>: New | |
8715 | methods. | |
8716 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use | |
8717 | objfile::text_section_offset. | |
8718 | * coff-pe-read.c (add_pe_forwarded_sym): Likewise. | |
8719 | * coffread.c (coff_symtab_read): Likewise. | |
8720 | (enter_linenos): Likewise. | |
8721 | (process_coff_symbol): Likewise. | |
8722 | * ctfread.c (get_objfile_text_range): Likewise. | |
8723 | * dtrace-probe.c (dtrace_probe::get_relocated_address): | |
8724 | Use objfile::data_section_offset. | |
8725 | * dwarf2-frame.c (execute_cfa_program): Use | |
8726 | objfile::text_section_offset. | |
8727 | (dwarf2_frame_find_fde): Likewise. | |
8728 | * dwarf2read.c (create_addrmap_from_index): Likewise. | |
8729 | (create_addrmap_from_aranges): Likewise. | |
8730 | (dw2_find_pc_sect_compunit_symtab): Likewise. | |
8731 | (process_psymtab_comp_unit_reader): Likewise. | |
8732 | (add_partial_symbol): Likewise. | |
8733 | (add_partial_subprogram): Likewise. | |
8734 | (process_full_comp_unit): Likewise. | |
8735 | (read_file_scope): Likewise. | |
8736 | (read_func_scope): Likewise. | |
8737 | (read_lexical_block_scope): Likewise. | |
8738 | (read_call_site_scope): Likewise. | |
8739 | (dwarf2_rnglists_process): Likewise. | |
8740 | (dwarf2_ranges_process): Likewise. | |
8741 | (dwarf2_ranges_read): Likewise. | |
8742 | (dwarf_decode_lines_1): Likewise. | |
8743 | (new_symbol): Likewise. | |
8744 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
8745 | (dwarf2_per_cu_text_offset): Likewise. | |
8746 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise. | |
8747 | * hppa-tdep.c (read_unwind_info): Likewise. | |
8748 | * ia64-tdep.c (ia64_find_unwind_table): Likewise. | |
8749 | * psympriv.h (struct partial_symtab): Likewise. | |
8750 | * psymtab.c (find_pc_sect_psymtab): Likewise. | |
8751 | * solib-svr4.c (enable_break): Likewise. | |
8752 | * stap-probe.c (relocate_address): Use | |
8753 | objfile::data_section_offset. | |
8754 | * xcoffread.c (enter_line_range): Use | |
8755 | objfile::text_section_offset. | |
8756 | (read_xcoff_symtab): Likewise. | |
8757 | ||
ab53f382 SM |
8758 | 2020-01-23 Simon Marchi <simon.marchi@efficios.com> |
8759 | ||
8760 | * darwin-nat.c (darwin_nat_target::wait_1): Move `inf` | |
8761 | declaration to narrower scopes. | |
8762 | ||
e7eee665 SM |
8763 | 2020-01-23 Simon Marchi <simon.marchi@efficios.com> |
8764 | ||
8765 | * darwin-nat.h (struct darwin_exception_msg, enum | |
8766 | darwin_msg_state, struct darwin_thread_info, darwin_thread_t): | |
8767 | Move up. | |
8768 | (class darwin_nat_target) <wait_1, check_new_threads, | |
8769 | decode_exception_message, decode_message, stop_inferior, | |
8770 | init_thread_list, ptrace_him, cancel_breakpoint>: Declare. | |
8771 | * darwin-nat.c (darwin_check_new_threads): Rename to... | |
8772 | (darwin_nat_target::check_new_threads): ... this. | |
8773 | (darwin_suspend_inferior_it): Remove. | |
8774 | (darwin_decode_exception_message): Rename to... | |
8775 | (darwin_nat_target::decode_exception_message): ... this. | |
8776 | (darwin_nat_target::resume): Pass target to find_inferior_ptid. | |
8777 | (darwin_decode_message): Rename to... | |
8778 | (darwin_nat_target::decode_message): ... this. | |
8779 | (cancel_breakpoint): Rename to... | |
8780 | (darwin_nat_target::cancel_breakpoint): ... this. | |
8781 | (darwin_wait): Rename to... | |
8782 | (darwin_nat_target::wait_1): ... this. Use range-based for loop | |
8783 | instead of iterate_over_inferiors. | |
8784 | (darwin_nat_target::wait): Call wait_1 instead of darwin_wait. | |
8785 | (darwin_stop_inferior): Rename to... | |
8786 | (darwin_nat_target::stop_inferior): ... this. | |
8787 | (darwin_nat_target::kill): Call wait_1 instead of darwin_wait. | |
8788 | (darwin_init_thread_list): Rename to... | |
8789 | (darwin_nat_target::init_thread_list): ... this. | |
8790 | (darwin_ptrace_him): Rename to... | |
8791 | (darwin_nat_target::ptrace_him): ... this. | |
8792 | (darwin_nat_target::create_inferior): Pass lambda function to | |
8793 | fork_inferior. | |
8794 | (darwin_nat_target::detach): Call stop_inferior instead of | |
8795 | darwin_stop_inferior. | |
8796 | * fork-inferior.h (fork_inferior): Change init_trace_fun | |
8797 | parameter to gdb::function_view. | |
8798 | * fork-inferior.c (fork_inferior): Likewise. | |
8799 | ||
c162ed3e HD |
8800 | 2020-01-23 Hannes Domani <ssbssa@yahoo.de> |
8801 | ||
8802 | * i386-cygwin-tdep.c (core_process_module_section): Update. | |
8803 | * windows-nat.c (struct lm_info_windows): Add text_offset. | |
8804 | (windows_xfer_shared_libraries): Update. | |
8805 | * windows-tdep.c (windows_xfer_shared_library): | |
8806 | Add text_offset_cached argument. | |
8807 | * windows-tdep.h (windows_xfer_shared_library): Update. | |
8808 | ||
a1237872 SM |
8809 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
8810 | ||
8811 | * gdbarch.sh: Add declaration for _initialize_gdbarch. | |
8812 | ||
b3ee6dd9 SM |
8813 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
8814 | ||
8815 | * remote-sim.c (check_for_duplicate_sim_descriptor): Remove. | |
8816 | (get_sim_inferior_data): Remove use of iterate_over_inferiors, | |
8817 | replace with range-based for. | |
8818 | (gdbsim_interrupt_inferior): Remove. | |
8819 | (gdbsim_target::interrupt): Replace iterate_over_inferiors use | |
8820 | with a range-based for. Inline code from | |
8821 | gdbsim_interrupt_inferior. | |
8822 | ||
f9fac3c8 SM |
8823 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
8824 | ||
8825 | * infrun.c (proceed): Fix indentation. | |
8826 | ||
f6474de9 TT |
8827 | 2020-01-21 Tom Tromey <tromey@adacore.com> |
8828 | ||
8829 | * source-cache.c (source_cache::ensure): Call ext_lang_colorize. | |
8830 | * python/python.c (python_extension_ops): Update. | |
8831 | (gdbpy_colorize): New function. | |
8832 | * python/lib/gdb/__init__.py (colorize): New function. | |
8833 | * extension.h (ext_lang_colorize): Declare. | |
8834 | * extension.c (ext_lang_colorize): New function. | |
8835 | * extension-priv.h (struct extension_language_ops) <colorize>: New | |
8836 | member. | |
8837 | * cli/cli-style.c (_initialize_cli_style): Update help text. | |
8838 | ||
f0c702d4 LM |
8839 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
8840 | ||
8841 | * aarch64-tdep.c (struct aarch64_displaced_step_closure) | |
8842 | <cond>: Change type to bool. | |
8843 | (aarch64_displaced_step_b_cond): Update cond to use bool type. | |
8844 | (aarch64_displaced_step_cb): Likewise. | |
8845 | (aarch64_displaced_step_tb): Likewise. | |
8846 | ||
1ab139e5 LM |
8847 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
8848 | ||
8849 | * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging | |
8850 | output. | |
8851 | ||
0c271889 LM |
8852 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
8853 | ||
8854 | * aarch64-tdep.c (struct aarch64_displaced_step_closure ) | |
8855 | <pc_adjust>: Adjust the documentation. | |
8856 | (aarch64_displaced_step_fixup): Check if PC really moved before | |
8857 | adjusting it. | |
8858 | ||
4d89c1c7 TT |
8859 | 2020-01-19 Tom Tromey <tom@tromey.com> |
8860 | ||
8861 | * disasm.c (~gdb_disassembler): New destructor. | |
8862 | (gdb_buffered_insn_length): Call disassemble_free_target. | |
8863 | * disasm.h (class gdb_disassembler): Declare destructor. Use | |
8864 | DISABLE_COPY_AND_ASSIGN. | |
8865 | ||
c0ab21c2 TT |
8866 | 2020-01-19 Tom Tromey <tom@tromey.com> |
8867 | ||
8868 | * dwarf2read.c (abbrev_table_up): Move typedef earlier. | |
8869 | (die_reader_func_ftype): Remove. | |
8870 | (cutu_reader): New class. | |
8871 | (dw2_get_file_names_reader): Remove "data" parameter. | |
8872 | (dw2_get_file_names): Use cutu_reader. | |
8873 | (create_debug_type_hash_table): Update. | |
8874 | (read_cutu_die_from_dwo): Update comment. | |
8875 | (lookup_dwo_unit): Add dwo_name parameter. | |
8876 | (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove | |
8877 | die_reader_func_ftype and data parameters. | |
8878 | (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies. | |
8879 | Remove die_reader_func_ftype and data parameters. | |
8880 | (~cutu_reader): New; from init_cutu_and_read_dies. | |
8881 | (cutu_reader::cutu_reader): Rename from | |
8882 | init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype | |
8883 | and data parameters. | |
8884 | (init_cutu_and_read_dies_simple): Remove. | |
8885 | (struct process_psymtab_comp_unit_data): Remove. | |
8886 | (process_psymtab_comp_unit_reader): Remove data parameter; add | |
8887 | want_partial_unit and pretend_language parameters. | |
8888 | (process_psymtab_comp_unit): Use cutu_reader. | |
8889 | (build_type_psymtabs_reader): Remove data parameter. | |
8890 | (build_type_psymtabs_1): Use cutu_reader. | |
8891 | (process_skeletonless_type_unit): Likewise. | |
8892 | (load_partial_comp_unit_reader): Remove. | |
8893 | (load_partial_comp_unit): Use cutu_reader. | |
8894 | (load_full_comp_unit_reader): Remove. | |
8895 | (load_full_comp_unit): Use cutu_reader. | |
8896 | (struct create_dwo_cu_data): Remove. | |
8897 | (create_dwo_cu_reader): Remove datap parameter; add dwo_file and | |
8898 | dwo_unit parameters. | |
8899 | (create_cus_hash_table): Use cutu_reader. | |
8900 | (struct dwarf2_read_addr_index_data): Remove. | |
8901 | (dwarf2_read_addr_index_reader): Remove. | |
8902 | (dwarf2_read_addr_index): Use cutu_reader. | |
8903 | (read_signatured_type_reader): Remove. | |
8904 | (read_signatured_type): Use cutu_reader. | |
8905 | ||
45bbae5c TT |
8906 | 2020-01-19 Tom Tromey <tom@tromey.com> |
8907 | ||
8908 | * tui/tui.c (tui_show_assembly): Use tui_suppress_output. | |
8909 | * tui/tui-wingeneral.h (class tui_suppress_output): New. | |
8910 | (tui_wrefresh): Declare. | |
8911 | * tui/tui-wingeneral.c (suppress_output): New global. | |
8912 | (tui_suppress_output, ~tui_suppress_output): New constructor and | |
8913 | destructor. | |
8914 | (tui_wrefresh): New function. | |
8915 | (tui_gen_win_info::refresh_window): Use tui_wrefresh. | |
8916 | (tui_gen_win_info::make_window): Call wnoutrefresh when needed. | |
8917 | * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare | |
8918 | method. | |
8919 | * tui/tui-regs.c (tui_data_window::erase_data_content): Call | |
8920 | tui_wrefresh. | |
8921 | (tui_data_window::no_refresh): New method. | |
8922 | (tui_data_item_window::refresh_window): Call tui_wrefresh. | |
8923 | (tui_reg_command): Use tui_suppress_output | |
8924 | * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output. | |
8925 | * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New | |
8926 | method. | |
8927 | * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh. | |
8928 | ||
4f13c1c0 TT |
8929 | 2020-01-19 Tom Tromey <tom@tromey.com> |
8930 | ||
8931 | * tui/tui-winsource.c (tui_update_source_windows_with_line): | |
8932 | Handle case where symtab is null. | |
8933 | ||
fa47e446 SM |
8934 | 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca> |
8935 | ||
8936 | * linux-fork.c (one_fork_p): Simplify. | |
8937 | ||
26f42329 SM |
8938 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
8939 | ||
8940 | * top.c (struct qt_args): Remove. | |
8941 | (kill_or_detach): Change return type to void, replace `void *` | |
8942 | parameter with a proper one. | |
8943 | (print_inferior_quit_action): Likewise. | |
8944 | (quit_confirm): Use range-based for loop to iterate over inferiors. | |
8945 | (quit_force): Likewise. | |
8946 | ||
a9ac81b1 SM |
8947 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
8948 | ||
8949 | * mi/mi-main.c (run_one_inferior): Change return type to void, replace | |
8950 | `void *` parameter with proper parameters. | |
8951 | (mi_cmd_exec_run): Use range-based loop to iterate over inferiors. | |
8952 | (print_one_inferior): Change return type to void, replace `void *` | |
8953 | parameter with proper parameters. | |
8954 | (mi_cmd_list_thread_groups): Use range-based loop to iterate over | |
8955 | inferiors. | |
8956 | (get_other_inferior): Remove. | |
8957 | (mi_cmd_remove_inferior): Use range-based loop to iterate over | |
8958 | inferiors. | |
8959 | ||
788eca49 SM |
8960 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
8961 | ||
8962 | * mi/mi-interp.c (report_initial_inferior): Remove. | |
8963 | (mi_interp::init): Use range-based for to iterate over inferiors. | |
8964 | ||
d9bc85b6 SM |
8965 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
8966 | ||
8967 | * python/py-inferior.c (build_inferior_list): Remove. | |
8968 | (gdbpy_ref): Use range-based for loop to iterate over inferiors. | |
8969 | ||
40c94099 CB |
8970 | 2020-01-16 Christian Biesinger <cbiesinger@google.com> |
8971 | ||
8972 | * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown). | |
8973 | (btrace_stitch_trace): Likewise. | |
8974 | * charset.c (intermediate_encoding): Likewise (vaild). | |
8975 | * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown). | |
8976 | * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences). | |
8977 | * record-btrace.c (record_btrace_print_conf): Likewise (unkown). | |
8978 | ||
e0cdfe3c HD |
8979 | 2020-01-16 Hannes Domani <ssbssa@yahoo.de> |
8980 | ||
8981 | * windows-tdep.c (windows_get_tlb_type): | |
8982 | Add rtl_user_process_parameters type. | |
8983 | ||
790f1718 | 8984 | 2020-01-16 Pedro Alves <palves@redhat.com> |
aac66a4c | 8985 | Norbert Lange <nolange79@gmail.com> |
790f1718 PA |
8986 | |
8987 | PR build/24805 | |
8988 | * gdbsupport/gdb_proc_service.h (PS_EXPORT): New. | |
8989 | (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs) | |
8990 | (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue) | |
8991 | (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread) | |
8992 | (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs) | |
8993 | (ps_plog): Redeclare exported functions with default visibility. | |
8994 | ||
3112ed97 NA |
8995 | 2020-01-16 Nitika Achra <Nitika.Achra@amd.com> |
8996 | ||
8997 | * dwarf2loc.c (decode_debug_loclists_addresses): Handle | |
8998 | DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length. | |
8999 | ||
8dc3273e SM |
9000 | 2020-01-15 Simon Marchi <simon.marchi@efficios.com> |
9001 | ||
9002 | * infcmd.c (post_create_inferior): Use get_thread_regcache | |
9003 | instead of get_current_regcache. | |
9004 | ||
ff47f4f0 TT |
9005 | 2020-01-14 Tom Tromey <tom@tromey.com> |
9006 | ||
9007 | PR symtab/12535: | |
9008 | * python/python.c (gdbpy_decode_line): Treat empty string the same | |
9009 | as no argument. | |
9010 | ||
975f45b7 TT |
9011 | 2020-01-14 Tom Tromey <tom@tromey.com> |
9012 | ||
9013 | * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY). | |
9014 | ||
25e57356 TT |
9015 | 2020-01-14 Tom Tromey <tom@tromey.com> |
9016 | ||
9017 | * nat/linux-btrace.c: Don't include <config.h>. | |
9018 | * nat/linux-ptrace.c: Don't include <config.h>. | |
9019 | * nat/x86-linux-dregs.c: Don't include <config.h>. | |
9020 | ||
05ea2a05 TT |
9021 | 2020-01-14 Tom Tromey <tom@tromey.com> |
9022 | ||
9023 | * configure: Rebuild. | |
9024 | * configure.ac: Move many checks to ../gdbsupport/common.m4. | |
9025 | ||
01027315 TT |
9026 | 2020-01-14 Tom Tromey <tom@tromey.com> |
9027 | ||
9028 | * nat/x86-linux-dregs.c: Include configh.h. | |
9029 | * nat/linux-ptrace.c: Include configh.h. | |
9030 | * nat/linux-btrace.c: Include configh.h. | |
9031 | * defs.h: Include config.h, bfd.h. | |
9032 | * configure.ac: Don't source common.host. | |
9033 | (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files. | |
9034 | * configure: Rebuild. | |
9035 | * acinclude.m4: Update path. | |
9036 | * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables. | |
9037 | (CONFIG_SRC_SUBDIR): Remove gdbsupport. | |
9038 | (INTERNAL_CFLAGS_BASE): Add INCSUPPORT. | |
9039 | (CLIBS): Add LIBSUPPORT. | |
9040 | (CDEPS): Likewise. | |
9041 | (COMMON_SFILES): Remove gdbsupport files. | |
9042 | (HFILES_NO_SRCDIR): Likewise. | |
9043 | (stamp-version): Update path to create-version.sh. | |
9044 | (ALLDEPFILES): Remove gdbsupport files. | |
9045 | ||
b2ceabe8 TT |
9046 | 2020-01-14 Tom Tromey <tom@tromey.com> |
9047 | ||
9048 | * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and | |
9049 | USE_WIN32API when needed. | |
9050 | * configure.ac (USE_WIN32API): Don't define. | |
9051 | (WIN32LIBS): Use WIN32APILIBS. | |
9052 | * configure: Rebuild. | |
9053 | ||
25c51f71 TT |
9054 | 2020-01-14 Tom Tromey <tom@tromey.com> |
9055 | ||
9056 | * configure: Rebuild. | |
9057 | * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation. | |
9058 | ||
717c684d BE |
9059 | 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de> |
9060 | ||
9061 | * skip.c (skip_function_command): Make skip w/o arguments use the | |
9062 | name of the inlined function if pc is inside any inlined function. | |
9063 | ||
7da6a5b9 LM |
9064 | 2020-01-14 Luis Machado <luis.machado@linaro.org> |
9065 | ||
9066 | * inf-ptrace.c (inf_ptrace_target::resume): Update comments. | |
9067 | * infrun.c (resume_1): Likewise. | |
9068 | (handle_inferior_event): Remove stale comment. | |
9069 | * linux-nat.c (linux_nat_target::resume): Update comments. | |
9070 | (save_stop_reason): Likewise. | |
9071 | (linux_nat_filter_event): Likewise. | |
9072 | * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise. | |
9073 | ||
44e4c775 AB |
9074 | 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com> |
9075 | ||
9076 | * elfread.c (record_minimal_symbol): Set section index to 0 for | |
9077 | non-allocatable sections. | |
9078 | ||
18a8505e AT |
9079 | |
9080 | 2020-01-13 Ali Tamur <tamur@google.com> | |
9081 | ||
9082 | * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections. | |
9083 | (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base | |
9084 | to gdb::optional. Update comments. | |
9085 | (dwo_file): Update comments. | |
9086 | (read_attribute): Update API to take an additional out parameter, | |
9087 | need_reprocess. This is used to mark attributes that need other | |
9088 | attributes (e.g. str_offsets_base) for correct computation which may not | |
9089 | have been read yet. | |
9090 | (read_attribute_reprocess): New function declaration. | |
9091 | (read_addr_index): Likewise. | |
9092 | (read_dwo_str_index): Likewise. | |
9093 | (read_stub_str_index): Likewise. | |
9094 | (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section. | |
9095 | (lookup_addr_base): New function definition. | |
9096 | (lookup_ranges_base): Likewise. | |
9097 | (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base, | |
9098 | lookup_ranges_base. | |
9099 | (init_cutu_and_read_dies): Update comments. | |
9100 | (init_cutu_and_read_dies_no_follow): Change API to take parent compile | |
9101 | unit. This is used to inherit parent's str_offsets_base and addr_base. | |
9102 | Update comments. | |
9103 | (init_cutu_and_read_dies_simple): Reflect API changes. | |
9104 | (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx. | |
9105 | (create_cus_hash_table): Change API to take parent compile unit. | |
9106 | Reflect API changes. | |
9107 | (open_and_init_dwo_file): Reflect API changes. | |
9108 | (dwarf2_get_pc_bounds): Update comments. | |
9109 | (dwarf2_record_block_ranges): Likewise. | |
9110 | (read_full_die_1): Change implementation to reprocess attributes that | |
9111 | need str_offsets_base and addr_base. | |
9112 | (partial_die_info::read): Likewise. | |
9113 | (read_attribute_reprocess): New function definition. | |
9114 | (read_attribute_value): Change API to take an additional out parameter, | |
9115 | need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error | |
9116 | when a non-dwo compile unit has index based attributes. | |
9117 | (read_attribute): Reflect API changes. | |
9118 | (read_addr_index_1): Reflect API changes. Update comments. | |
9119 | (dwarf2_read_addr_index_data): Reflect API changes. | |
9120 | (dwarf2_read_addr_index): Likewise. | |
9121 | (read_str_index): Change API and implementation. This becomes a helper | |
9122 | to be used by the new string index related methods. Update error | |
9123 | message and comments. | |
9124 | (read_dwo_str_index): New function definition. | |
9125 | (read_stub_str_index): Likewise. | |
9126 | * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field. | |
9127 | * symfile.h (dwarf2_debug_sections): Likewise. | |
9128 | * xcoffread.c (dwarf2_debug_sections): Likewise. | |
9129 | ||
0cac9354 SM |
9130 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
9131 | ||
9132 | * gdbcore.h (struct core_fns) <core_read_registers>: Change | |
9133 | core_reg_sect type to gdb_byte *. | |
9134 | * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise. | |
9135 | * cris-tdep.c (fetch_core_registers): Likewise. | |
9136 | * corelow.c (core_target::get_core_register_section): Change | |
9137 | type of `contents` to gdb::byte_vector. | |
9138 | ||
9a6d629c AB |
9139 | 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com> |
9140 | ||
9141 | * tui/tui-wingeneral.c (box_win): Position the title in the center | |
9142 | of the border. | |
9143 | ||
d8b2f9e3 SM |
9144 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
9145 | ||
9146 | * corelow.c (core_target::get_core_register_section): Use | |
9147 | std::vector instead of alloca. | |
9148 | ||
bb564c58 SM |
9149 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
9150 | ||
9151 | * warning.m4: Add -Wmissing-declarations to build_warnings. | |
9152 | * configure: Re-generate. | |
9153 | ||
6b366111 SM |
9154 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
9155 | ||
9156 | * python/python.c (init__gdb_module): Add declaration. | |
9157 | ||
6c265988 SM |
9158 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
9159 | ||
9160 | * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration. | |
9161 | * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration. | |
9162 | * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration. | |
9163 | * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration. | |
9164 | * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration. | |
9165 | * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration. | |
9166 | * ada-exp.y (_initialize_ada_exp): Add declaration. | |
9167 | * ada-lang.c (_initialize_ada_language): Add declaration. | |
9168 | * ada-tasks.c (_initialize_tasks): Add declaration. | |
9169 | * agent.c (_initialize_agent): Add declaration. | |
9170 | * aix-thread.c (_initialize_aix_thread): Add declaration. | |
9171 | * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration. | |
9172 | * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration. | |
9173 | * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration. | |
9174 | * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration. | |
9175 | * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration. | |
9176 | * alpha-tdep.c (_initialize_alpha_tdep): Add declaration. | |
9177 | * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration. | |
9178 | * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration. | |
9179 | * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration. | |
9180 | * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration. | |
9181 | * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration. | |
9182 | * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration. | |
9183 | * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration. | |
9184 | * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration. | |
9185 | * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration. | |
9186 | * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration. | |
9187 | * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration. | |
9188 | * amd64-tdep.c (_initialize_amd64_tdep): Add declaration. | |
9189 | * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration. | |
9190 | * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration. | |
9191 | * annotate.c (_initialize_annotate): Add declaration. | |
9192 | * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration. | |
9193 | * arc-tdep.c (_initialize_arc_tdep): Add declaration. | |
9194 | * arch-utils.c (_initialize_gdbarch_utils): Add declaration. | |
9195 | * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration. | |
9196 | * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration. | |
9197 | * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration. | |
9198 | * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration. | |
9199 | * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration. | |
9200 | * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration. | |
9201 | * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration. | |
9202 | * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration. | |
9203 | * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration. | |
9204 | * arm-tdep.c (_initialize_arm_tdep): Add declaration. | |
9205 | * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration. | |
9206 | * auto-load.c (_initialize_auto_load): Add declaration. | |
9207 | * auxv.c (_initialize_auxv): Add declaration. | |
9208 | * avr-tdep.c (_initialize_avr_tdep): Add declaration. | |
9209 | * ax-gdb.c (_initialize_ax_gdb): Add declaration. | |
9210 | * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration. | |
9211 | * bfin-tdep.c (_initialize_bfin_tdep): Add declaration. | |
9212 | * break-catch-sig.c (_initialize_break_catch_sig): Add declaration. | |
9213 | * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration. | |
9214 | * break-catch-throw.c (_initialize_break_catch_throw): Add declaration. | |
9215 | * breakpoint.c (_initialize_breakpoint): Add declaration. | |
9216 | * bsd-uthread.c (_initialize_bsd_uthread): Add declaration. | |
9217 | * btrace.c (_initialize_btrace): Add declaration. | |
9218 | * charset.c (_initialize_charset): Add declaration. | |
9219 | * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration. | |
9220 | * cli/cli-dump.c (_initialize_cli_dump): Add declaration. | |
9221 | * cli/cli-interp.c (_initialize_cli_interp): Add declaration. | |
9222 | * cli/cli-logging.c (_initialize_cli_logging): Add declaration. | |
9223 | * cli/cli-script.c (_initialize_cli_script): Add declaration. | |
9224 | * cli/cli-style.c (_initialize_cli_style): Add declaration. | |
9225 | * coff-pe-read.c (_initialize_coff_pe_read): Add declaration. | |
9226 | * coffread.c (_initialize_coffread): Add declaration. | |
9227 | * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration. | |
9228 | * compile/compile.c (_initialize_compile): Add declaration. | |
9229 | * complaints.c (_initialize_complaints): Add declaration. | |
9230 | * completer.c (_initialize_completer): Add declaration. | |
9231 | * copying.c (_initialize_copying): Add declaration. | |
9232 | * corefile.c (_initialize_core): Add declaration. | |
9233 | * corelow.c (_initialize_corelow): Add declaration. | |
9234 | * cp-abi.c (_initialize_cp_abi): Add declaration. | |
9235 | * cp-namespace.c (_initialize_cp_namespace): Add declaration. | |
9236 | * cp-support.c (_initialize_cp_support): Add declaration. | |
9237 | * cp-valprint.c (_initialize_cp_valprint): Add declaration. | |
9238 | * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration. | |
9239 | * cris-tdep.c (_initialize_cris_tdep): Add declaration. | |
9240 | * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration. | |
9241 | * csky-tdep.c (_initialize_csky_tdep): Add declaration. | |
9242 | * ctfread.c (_initialize_ctfread): Add declaration. | |
9243 | * d-lang.c (_initialize_d_language): Add declaration. | |
9244 | * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration. | |
9245 | * darwin-nat.c (_initialize_darwin_nat): Add declaration. | |
9246 | * dbxread.c (_initialize_dbxread): Add declaration. | |
9247 | * dcache.c (_initialize_dcache): Add declaration. | |
9248 | * disasm-selftests.c (_initialize_disasm_selftests): Add declaration. | |
9249 | * disasm.c (_initialize_disasm): Add declaration. | |
9250 | * dtrace-probe.c (_initialize_dtrace_probe): Add declaration. | |
9251 | * dummy-frame.c (_initialize_dummy_frame): Add declaration. | |
9252 | * dwarf-index-cache.c (_initialize_index_cache): Add declaration. | |
9253 | * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration. | |
9254 | * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration. | |
9255 | * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration. | |
9256 | * dwarf2expr.c (_initialize_dwarf2expr): Add declaration. | |
9257 | * dwarf2loc.c (_initialize_dwarf2loc): Add declaration. | |
9258 | * dwarf2read.c (_initialize_dwarf2_read): Add declaration. | |
9259 | * elfread.c (_initialize_elfread): Add declaration. | |
9260 | * exec.c (_initialize_exec): Add declaration. | |
9261 | * extension.c (_initialize_extension): Add declaration. | |
9262 | * f-lang.c (_initialize_f_language): Add declaration. | |
9263 | * f-valprint.c (_initialize_f_valprint): Add declaration. | |
9264 | * fbsd-nat.c (_initialize_fbsd_nat): Add declaration. | |
9265 | * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration. | |
9266 | * filesystem.c (_initialize_filesystem): Add declaration. | |
9267 | * findcmd.c (_initialize_mem_search): Add declaration. | |
9268 | * findvar.c (_initialize_findvar): Add declaration. | |
9269 | * fork-child.c (_initialize_fork_child): Add declaration. | |
9270 | * frame-base.c (_initialize_frame_base): Add declaration. | |
9271 | * frame-unwind.c (_initialize_frame_unwind): Add declaration. | |
9272 | * frame.c (_initialize_frame): Add declaration. | |
9273 | * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration. | |
9274 | * frv-tdep.c (_initialize_frv_tdep): Add declaration. | |
9275 | * ft32-tdep.c (_initialize_ft32_tdep): Add declaration. | |
9276 | * gcore.c (_initialize_gcore): Add declaration. | |
9277 | * gdb-demangle.c (_initialize_gdb_demangle): Add declaration. | |
9278 | * gdb_bfd.c (_initialize_gdb_bfd): Add declaration. | |
9279 | * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration. | |
9280 | * gdbarch.c (_initialize_gdbarch): Add declaration. | |
9281 | * gdbtypes.c (_initialize_gdbtypes): Add declaration. | |
9282 | * gnu-nat.c (_initialize_gnu_nat): Add declaration. | |
9283 | * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration. | |
9284 | * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration. | |
9285 | * go-lang.c (_initialize_go_language): Add declaration. | |
9286 | * go32-nat.c (_initialize_go32_nat): Add declaration. | |
9287 | * guile/guile.c (_initialize_guile): Add declaration. | |
9288 | * h8300-tdep.c (_initialize_h8300_tdep): Add declaration. | |
9289 | * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration. | |
9290 | * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration. | |
9291 | * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration. | |
9292 | * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration. | |
9293 | * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration. | |
9294 | * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration. | |
9295 | * hppa-tdep.c (_initialize_hppa_tdep): Add declaration. | |
9296 | * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration. | |
9297 | * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration. | |
9298 | * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration. | |
9299 | * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration. | |
9300 | * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration. | |
9301 | * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration. | |
9302 | * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration. | |
9303 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration. | |
9304 | * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration. | |
9305 | * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration. | |
9306 | * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration. | |
9307 | * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration. | |
9308 | * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration. | |
9309 | * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration. | |
9310 | * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration. | |
9311 | * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration. | |
9312 | * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration. | |
9313 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration. | |
9314 | * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration. | |
9315 | * i386-tdep.c (_initialize_i386_tdep): Add declaration. | |
9316 | * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration. | |
9317 | * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration. | |
9318 | * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration. | |
9319 | * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration. | |
9320 | * ia64-tdep.c (_initialize_ia64_tdep): Add declaration. | |
9321 | * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration. | |
9322 | * infcall.c (_initialize_infcall): Add declaration. | |
9323 | * infcmd.c (_initialize_infcmd): Add declaration. | |
9324 | * inflow.c (_initialize_inflow): Add declaration. | |
9325 | * infrun.c (_initialize_infrun): Add declaration. | |
9326 | * interps.c (_initialize_interpreter): Add declaration. | |
9327 | * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration. | |
9328 | * jit.c (_initialize_jit): Add declaration. | |
9329 | * language.c (_initialize_language): Add declaration. | |
9330 | * linux-fork.c (_initialize_linux_fork): Add declaration. | |
9331 | * linux-nat.c (_initialize_linux_nat): Add declaration. | |
9332 | * linux-tdep.c (_initialize_linux_tdep): Add declaration. | |
9333 | * linux-thread-db.c (_initialize_thread_db): Add declaration. | |
9334 | * lm32-tdep.c (_initialize_lm32_tdep): Add declaration. | |
9335 | * m2-lang.c (_initialize_m2_language): Add declaration. | |
9336 | * m32c-tdep.c (_initialize_m32c_tdep): Add declaration. | |
9337 | * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration. | |
9338 | * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration. | |
9339 | * m32r-tdep.c (_initialize_m32r_tdep): Add declaration. | |
9340 | * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration. | |
9341 | * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration. | |
9342 | * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration. | |
9343 | * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration. | |
9344 | * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration. | |
9345 | * m68k-tdep.c (_initialize_m68k_tdep): Add declaration. | |
9346 | * machoread.c (_initialize_machoread): Add declaration. | |
9347 | * macrocmd.c (_initialize_macrocmd): Add declaration. | |
9348 | * macroscope.c (_initialize_macroscope): Add declaration. | |
9349 | * maint-test-options.c (_initialize_maint_test_options): Add declaration. | |
9350 | * maint-test-settings.c (_initialize_maint_test_settings): Add declaration. | |
9351 | * maint.c (_initialize_maint_cmds): Add declaration. | |
9352 | * mdebugread.c (_initialize_mdebugread): Add declaration. | |
9353 | * memattr.c (_initialize_mem): Add declaration. | |
9354 | * mep-tdep.c (_initialize_mep_tdep): Add declaration. | |
9355 | * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration. | |
9356 | * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration. | |
9357 | * mi/mi-interp.c (_initialize_mi_interp): Add declaration. | |
9358 | * mi/mi-main.c (_initialize_mi_main): Add declaration. | |
9359 | * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration. | |
9360 | * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration. | |
9361 | * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration. | |
9362 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration. | |
9363 | * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration. | |
9364 | * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration. | |
9365 | * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration. | |
9366 | * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration. | |
9367 | * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration. | |
9368 | * mips-tdep.c (_initialize_mips_tdep): Add declaration. | |
9369 | * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration. | |
9370 | * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration. | |
9371 | * mipsread.c (_initialize_mipsread): Add declaration. | |
9372 | * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration. | |
9373 | * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration. | |
9374 | * moxie-tdep.c (_initialize_moxie_tdep): Add declaration. | |
9375 | * msp430-tdep.c (_initialize_msp430_tdep): Add declaration. | |
9376 | * nds32-tdep.c (_initialize_nds32_tdep): Add declaration. | |
9377 | * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration. | |
9378 | * nios2-tdep.c (_initialize_nios2_tdep): Add declaration. | |
9379 | * nto-procfs.c (_initialize_procfs): Add declaration. | |
9380 | * objc-lang.c (_initialize_objc_language): Add declaration. | |
9381 | * observable.c (_initialize_observer): Add declaration. | |
9382 | * opencl-lang.c (_initialize_opencl_language): Add declaration. | |
9383 | * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration. | |
9384 | * or1k-tdep.c (_initialize_or1k_tdep): Add declaration. | |
9385 | * osabi.c (_initialize_gdb_osabi): Add declaration. | |
9386 | * osdata.c (_initialize_osdata): Add declaration. | |
9387 | * p-valprint.c (_initialize_pascal_valprint): Add declaration. | |
9388 | * parse.c (_initialize_parse): Add declaration. | |
9389 | * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration. | |
9390 | * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration. | |
9391 | * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration. | |
9392 | * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration. | |
9393 | * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration. | |
9394 | * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration. | |
9395 | * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration. | |
9396 | * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration. | |
9397 | * printcmd.c (_initialize_printcmd): Add declaration. | |
9398 | * probe.c (_initialize_probe): Add declaration. | |
9399 | * proc-api.c (_initialize_proc_api): Add declaration. | |
9400 | * proc-events.c (_initialize_proc_events): Add declaration. | |
9401 | * proc-service.c (_initialize_proc_service): Add declaration. | |
9402 | * procfs.c (_initialize_procfs): Add declaration. | |
9403 | * producer.c (_initialize_producer): Add declaration. | |
9404 | * psymtab.c (_initialize_psymtab): Add declaration. | |
9405 | * python/python.c (_initialize_python): Add declaration. | |
9406 | * ravenscar-thread.c (_initialize_ravenscar): Add declaration. | |
9407 | * record-btrace.c (_initialize_record_btrace): Add declaration. | |
9408 | * record-full.c (_initialize_record_full): Add declaration. | |
9409 | * record.c (_initialize_record): Add declaration. | |
9410 | * regcache-dump.c (_initialize_regcache_dump): Add declaration. | |
9411 | * regcache.c (_initialize_regcache): Add declaration. | |
9412 | * reggroups.c (_initialize_reggroup): Add declaration. | |
9413 | * remote-notif.c (_initialize_notif): Add declaration. | |
9414 | * remote-sim.c (_initialize_remote_sim): Add declaration. | |
9415 | * remote.c (_initialize_remote): Add declaration. | |
9416 | * reverse.c (_initialize_reverse): Add declaration. | |
9417 | * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration. | |
9418 | * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration. | |
9419 | * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration. | |
9420 | * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration. | |
9421 | * riscv-tdep.c (_initialize_riscv_tdep): Add declaration. | |
9422 | * rl78-tdep.c (_initialize_rl78_tdep): Add declaration. | |
9423 | * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration. | |
9424 | * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep): | |
9425 | Add declaration. | |
9426 | * rs6000-nat.c (_initialize_rs6000_nat): Add declaration. | |
9427 | * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration. | |
9428 | * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration. | |
9429 | * rust-exp.y (_initialize_rust_exp): Add declaration. | |
9430 | * rx-tdep.c (_initialize_rx_tdep): Add declaration. | |
9431 | * s12z-tdep.c (_initialize_s12z_tdep): Add declaration. | |
9432 | * s390-linux-nat.c (_initialize_s390_nat): Add declaration. | |
9433 | * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration. | |
9434 | * s390-tdep.c (_initialize_s390_tdep): Add declaration. | |
9435 | * score-tdep.c (_initialize_score_tdep): Add declaration. | |
9436 | * ser-go32.c (_initialize_ser_dos): Add declaration. | |
9437 | * ser-mingw.c (_initialize_ser_windows): Add declaration. | |
9438 | * ser-pipe.c (_initialize_ser_pipe): Add declaration. | |
9439 | * ser-tcp.c (_initialize_ser_tcp): Add declaration. | |
9440 | * ser-uds.c (_initialize_ser_socket): Add declaration. | |
9441 | * ser-unix.c (_initialize_ser_hardwire): Add declaration. | |
9442 | * serial.c (_initialize_serial): Add declaration. | |
9443 | * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration. | |
9444 | * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration. | |
9445 | * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration. | |
9446 | * sh-tdep.c (_initialize_sh_tdep): Add declaration. | |
9447 | * skip.c (_initialize_step_skip): Add declaration. | |
9448 | * sol-thread.c (_initialize_sol_thread): Add declaration. | |
9449 | * solib-aix.c (_initialize_solib_aix): Add declaration. | |
9450 | * solib-darwin.c (_initialize_darwin_solib): Add declaration. | |
9451 | * solib-dsbt.c (_initialize_dsbt_solib): Add declaration. | |
9452 | * solib-frv.c (_initialize_frv_solib): Add declaration. | |
9453 | * solib-svr4.c (_initialize_svr4_solib): Add declaration. | |
9454 | * solib-target.c (_initialize_solib_target): Add declaration. | |
9455 | * solib.c (_initialize_solib): Add declaration. | |
9456 | * source-cache.c (_initialize_source_cache): Add declaration. | |
9457 | * source.c (_initialize_source): Add declaration. | |
9458 | * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration. | |
9459 | * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration. | |
9460 | * sparc-nat.c (_initialize_sparc_nat): Add declaration. | |
9461 | * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration. | |
9462 | * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration. | |
9463 | * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration. | |
9464 | * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration. | |
9465 | * sparc-tdep.c (_initialize_sparc_tdep): Add declaration. | |
9466 | * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration. | |
9467 | * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration. | |
9468 | * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration. | |
9469 | * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration. | |
9470 | * sparc64-nat.c (_initialize_sparc64_nat): Add declaration. | |
9471 | * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration. | |
9472 | * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration. | |
9473 | * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration. | |
9474 | * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration. | |
9475 | * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration. | |
9476 | * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration. | |
9477 | * stabsread.c (_initialize_stabsread): Add declaration. | |
9478 | * stack.c (_initialize_stack): Add declaration. | |
9479 | * stap-probe.c (_initialize_stap_probe): Add declaration. | |
9480 | * std-regs.c (_initialize_frame_reg): Add declaration. | |
9481 | * symfile-debug.c (_initialize_symfile_debug): Add declaration. | |
9482 | * symfile-mem.c (_initialize_symfile_mem): Add declaration. | |
9483 | * symfile.c (_initialize_symfile): Add declaration. | |
9484 | * symmisc.c (_initialize_symmisc): Add declaration. | |
9485 | * symtab.c (_initialize_symtab): Add declaration. | |
9486 | * target.c (_initialize_target): Add declaration. | |
9487 | * target-connection.c (_initialize_target_connection): Add | |
9488 | declaration. | |
9489 | * target-dcache.c (_initialize_target_dcache): Add declaration. | |
9490 | * target-descriptions.c (_initialize_target_descriptions): Add declaration. | |
9491 | * thread.c (_initialize_thread): Add declaration. | |
9492 | * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration. | |
9493 | * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration. | |
9494 | * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration. | |
9495 | * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration. | |
9496 | * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration. | |
9497 | * tracectf.c (_initialize_ctf): Add declaration. | |
9498 | * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration. | |
9499 | * tracefile.c (_initialize_tracefile): Add declaration. | |
9500 | * tracepoint.c (_initialize_tracepoint): Add declaration. | |
9501 | * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration. | |
9502 | * tui/tui-interp.c (_initialize_tui_interp): Add declaration. | |
9503 | * tui/tui-layout.c (_initialize_tui_layout): Add declaration. | |
9504 | * tui/tui-regs.c (_initialize_tui_regs): Add declaration. | |
9505 | * tui/tui-stack.c (_initialize_tui_stack): Add declaration. | |
9506 | * tui/tui-win.c (_initialize_tui_win): Add declaration. | |
9507 | * tui/tui.c (_initialize_tui): Add declaration. | |
9508 | * typeprint.c (_initialize_typeprint): Add declaration. | |
9509 | * ui-style.c (_initialize_ui_style): Add declaration. | |
9510 | * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration. | |
9511 | * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration. | |
9512 | * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration. | |
9513 | * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration. | |
9514 | * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration. | |
9515 | * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration. | |
9516 | * unittests/filtered_iterator-selftests.c | |
9517 | (_initialize_filtered_iterator_selftests): Add declaration. | |
9518 | * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration. | |
9519 | * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration. | |
9520 | * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration. | |
9521 | * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration. | |
9522 | * unittests/main-thread-selftests.c | |
9523 | (_initialize_main_thread_selftests): Add declaration. | |
9524 | * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration. | |
9525 | * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration. | |
9526 | * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration. | |
9527 | * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration. | |
9528 | * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration. | |
9529 | * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration. | |
9530 | * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration. | |
9531 | * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration. | |
9532 | * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration. | |
9533 | * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration. | |
9534 | * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration. | |
9535 | * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration. | |
9536 | * unittests/style-selftests.c (_initialize_style_selftest): Add declaration. | |
9537 | * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration. | |
9538 | * unittests/tui-selftests.c (_initialize_tui_selftest): Add | |
9539 | declaration. | |
9540 | * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration. | |
9541 | * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration. | |
9542 | * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration. | |
9543 | * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration. | |
9544 | * user-regs.c (_initialize_user_regs): Add declaration. | |
9545 | * utils.c (_initialize_utils): Add declaration. | |
9546 | * v850-tdep.c (_initialize_v850_tdep): Add declaration. | |
9547 | * valops.c (_initialize_valops): Add declaration. | |
9548 | * valprint.c (_initialize_valprint): Add declaration. | |
9549 | * value.c (_initialize_values): Add declaration. | |
9550 | * varobj.c (_initialize_varobj): Add declaration. | |
9551 | * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration. | |
9552 | * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration. | |
9553 | * vax-tdep.c (_initialize_vax_tdep): Add declaration. | |
9554 | * windows-nat.c (_initialize_windows_nat): Add declaration. | |
9555 | (_initialize_check_for_gdb_ini): Add declaration. | |
9556 | (_initialize_loadable): Add declaration. | |
9557 | * windows-tdep.c (_initialize_windows_tdep): Add declaration. | |
9558 | * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration. | |
9559 | * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration. | |
9560 | * xcoffread.c (_initialize_xcoffread): Add declaration. | |
9561 | * xml-support.c (_initialize_xml_support): Add declaration. | |
9562 | * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration. | |
9563 | * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration. | |
9564 | * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration. | |
9565 | * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration. | |
9566 | ||
e2de1eec SM |
9567 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
9568 | ||
9569 | * regformats/regdat.sh: Generate declaration for init function. | |
9570 | ||
e0037b4c SM |
9571 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
9572 | ||
9573 | * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move | |
9574 | up. | |
9575 | (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior, | |
9576 | close_one_inferior>: New methods. | |
9577 | (get_sim_inferior_data_by_ptid): Move to gdbsim_target, | |
9578 | pass down target to find_inferior_pid. | |
9579 | (gdbsim_target::fetch_registers, gdbsim_target::store_registers): | |
9580 | Pass down target to find_inferior_ptid. | |
9581 | (gdbsim_target::create_inferior): Pass down target to | |
9582 | add_thread_silent. | |
9583 | (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass | |
9584 | target down to find_inferior_ptid and switch_to_thread. | |
9585 | (gdbsim_target::close): Update to call close_one_inferior. | |
9586 | (struct resume_data): Remove. | |
9587 | (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments | |
9588 | directly, rather than through a void pointer. | |
9589 | (gdbsim_target::resume): Update to call resume_one_inferior. | |
9590 | ||
58920b5b SM |
9591 | 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
9592 | ||
9593 | * gdbsupport/gdb_wait.c: Include gdb_wait.h. | |
9594 | ||
4ec89149 PA |
9595 | 2020-01-12 Pedro Alves <palves@redhat.com> |
9596 | ||
9597 | * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent | |
9598 | directly for the current inferior instead of | |
9599 | discard_all_inferiors. | |
9600 | (discard_all_inferiors): Delete. | |
9601 | ||
7c392d1d TT |
9602 | 2020-01-11 Tom Tromey <tom@tromey.com> |
9603 | ||
9604 | * tui/tui-wingeneral.c (box_win): Check cli_styling. | |
9605 | * tui/tui-winsource.c (tui_source_window_base::refill): Use | |
9606 | deprecated_safe_get_selected_frame. | |
9607 | ||
d9ebdab7 TBA |
9608 | 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
9609 | ||
9610 | * inferior.c (print_inferior): Switch inferior before printing it. | |
9611 | ||
f3c469b9 PA |
9612 | 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com> |
9613 | Pedro Alves <palves@redhat.com> | |
9614 | ||
9615 | * progspace-and-thread.c (switch_to_program_space_and_thread): | |
9616 | Assert there's an inferior for PSPACE. Use | |
9617 | switch_to_inferior_no_thread to switch the inferior too. | |
9618 | * progspace.c (program_space::~program_space): Call | |
9619 | clear_symtab_users here, with SYMFILE_DEFER_BP_RESET. | |
9620 | (program_space::free_all_objfiles): Don't call clear_symtab_users | |
9621 | here. | |
9622 | * symfile.c (symbol_file_clear): Call clear_symtab_users here. | |
9623 | ||
65c574f6 PA |
9624 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9625 | ||
9626 | * NEWS: Mention multi-target debugging, "info connections", and | |
9627 | "add-inferior -no-connection". | |
9628 | ||
2f4fcf00 PA |
9629 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9630 | ||
9631 | * infrun.c: Include "target-connection.h". | |
9632 | (check_multi_target_resumption): New. | |
9633 | (proceed): Call it. | |
9634 | * target-connection.c (make_target_connection_string): Make | |
9635 | extern. | |
9636 | * target-connection.h (make_target_connection_string): Declare. | |
9637 | ||
121b3efd PA |
9638 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9639 | ||
9640 | * Makefile.in (COMMON_SFILES): Add target-connection.c. | |
9641 | * inferior.c (uiout_field_connection): New function. | |
9642 | (print_inferior): Add new "connection-id" column. | |
9643 | (add_inferior_command): Show connection number/string of added | |
9644 | inferior. | |
9645 | * process-stratum-target.h | |
9646 | (process_stratum_target::connection_string): New virtual method. | |
9647 | (process_stratum_target::connection_number): New field. | |
9648 | * remote.c (remote_target::connection_string): New override. | |
9649 | * target-connection.c: New file. | |
9650 | * target-connection.h: New file. | |
9651 | * target.c (decref_target): Remove process_stratum targets from | |
9652 | the connection list. | |
9653 | (target_stack::push): Add process_stratum targets to the | |
9654 | connection list. | |
9655 | ||
4f837581 PA |
9656 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9657 | ||
9658 | Revert: | |
9659 | 2016-04-12 Pedro Alves <palves@redhat.com> | |
9660 | * serial.c (serial_open, serial_fdopen_ops, do_serial_close): | |
9661 | Remove references to name. | |
9662 | * serial.h (struct serial) <name>: Delete. | |
9663 | ||
f4ec508e PA |
9664 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9665 | ||
9666 | * gdbarch-selftests.c (register_to_value_test): Remove "target | |
9667 | already pushed" check. | |
9668 | ||
5b6d1e4f PA |
9669 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9670 | John Baldwin <jhb@FreeBSD.org> | |
9671 | ||
9672 | * aarch64-linux-nat.c | |
9673 | (aarch64_linux_nat_target::thread_architecture): Adjust. | |
9674 | * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call. | |
9675 | (task_command_1): Likewise. | |
9676 | * aix-thread.c (sync_threadlists, aix_thread_target::resume) | |
9677 | (aix_thread_target::wait, aix_thread_target::fetch_registers) | |
9678 | (aix_thread_target::store_registers) | |
9679 | (aix_thread_target::thread_alive): Adjust. | |
9680 | * amd64-fbsd-tdep.c: Include "inferior.h". | |
9681 | (amd64fbsd_get_thread_local_address): Pass down target. | |
9682 | * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle | |
9683 | thread's gdbarch instead of target_gdbarch. | |
9684 | * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to | |
9685 | get_last_target_status. | |
9686 | * break-catch-syscall.c (print_it_catch_syscall): Likewise. | |
9687 | * breakpoint.c (breakpoints_should_be_inserted_now): Consider all | |
9688 | inferiors. | |
9689 | (update_inserted_breakpoint_locations): Skip if inferiors with no | |
9690 | execution. | |
9691 | (update_global_location_list): When handling moribund locations, | |
9692 | find representative inferior for location's pspace, and use thread | |
9693 | count of its process_stratum target. | |
9694 | * bsd-kvm.c (bsd_kvm_target_open): Pass target down. | |
9695 | * bsd-uthread.c (bsd_uthread_target::wait): Use | |
9696 | as_process_stratum_target and adjust thread_change_ptid and | |
9697 | add_thread calls. | |
9698 | (bsd_uthread_target::update_thread_list): Use | |
9699 | as_process_stratum_target and adjust find_thread_ptid, | |
9700 | thread_change_ptid and add_thread calls. | |
9701 | * btrace.c (maint_btrace_packet_history_cmd): Adjust | |
9702 | find_thread_ptid call. | |
9703 | * corelow.c (add_to_thread_list): Adjust add_thread call. | |
9704 | (core_target_open): Adjust add_thread_silent and thread_count | |
9705 | calls. | |
9706 | (core_target::pid_to_str): Adjust find_inferior_ptid call. | |
9707 | * ctf.c (ctf_target_open): Adjust add_thread_silent call. | |
9708 | * event-top.c (async_disconnect): Pop targets from all inferiors. | |
9709 | * exec.c (add_target_sections): Push exec target on all inferiors | |
9710 | sharing the program space. | |
9711 | (remove_target_sections): Remove the exec target from all | |
9712 | inferiors sharing the program space. | |
9713 | (exec_on_vfork): New. | |
9714 | * exec.h (exec_on_vfork): Declare. | |
9715 | * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter. | |
9716 | Pass it down. | |
9717 | (fbsd_nat_target::update_thread_list): Adjust. | |
9718 | (fbsd_nat_target::resume): Adjust. | |
9719 | (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it | |
9720 | down. | |
9721 | (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust. | |
9722 | * fbsd-tdep.c (fbsd_corefile_thread): Adjust | |
9723 | get_thread_arch_regcache call. | |
9724 | * fork-child.c (gdb_startup_inferior): Pass target down to | |
9725 | startup_inferior and set_executing. | |
9726 | * gdbthread.h (struct process_stratum_target): Forward declare. | |
9727 | (add_thread, add_thread_silent, add_thread_with_info) | |
9728 | (in_thread_list): Add process_stratum_target parameter. | |
9729 | (find_thread_ptid(inferior*, ptid_t)): New overload. | |
9730 | (find_thread_ptid, thread_change_ptid): Add process_stratum_target | |
9731 | parameter. | |
9732 | (all_threads()): Delete overload. | |
9733 | (all_threads, all_non_exited_threads): Add process_stratum_target | |
9734 | parameter. | |
9735 | (all_threads_safe): Use brace initialization. | |
9736 | (thread_count): Add process_stratum_target parameter. | |
9737 | (set_resumed, set_running, set_stop_requested, set_executing) | |
9738 | (threads_are_executing, finish_thread_state): Add | |
9739 | process_stratum_target parameter. | |
9740 | (switch_to_thread): Use is_current_thread. | |
9741 | * i386-fbsd-tdep.c: Include "inferior.h". | |
9742 | (i386fbsd_get_thread_local_address): Pass down target. | |
9743 | * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust. | |
9744 | * inf-child.c (inf_child_target::maybe_unpush_target): Remove | |
9745 | have_inferiors check. | |
9746 | * inf-ptrace.c (inf_ptrace_target::create_inferior) | |
9747 | (inf_ptrace_target::attach): Adjust. | |
9748 | * infcall.c (run_inferior_call): Adjust. | |
9749 | * infcmd.c (run_command_1): Pass target to | |
9750 | scoped_finish_thread_state. | |
9751 | (proceed_thread_callback): Skip inferiors with no execution. | |
9752 | (continue_command): Rename 'all_threads' local to avoid hiding | |
9753 | 'all_threads' function. Adjust get_last_target_status call. | |
9754 | (prepare_one_step): Adjust set_running call. | |
9755 | (signal_command): Use user_visible_resume_target. Compare thread | |
9756 | pointers instead of inferior_ptid. | |
9757 | (info_program_command): Adjust to pass down target. | |
9758 | (attach_command): Mark target's 'thread_executing' flag. | |
9759 | (stop_current_target_threads_ns): New, factored out from ... | |
9760 | (interrupt_target_1): ... this. Switch inferior before making | |
9761 | target calls. | |
9762 | * inferior-iter.h | |
9763 | (struct all_inferiors_iterator, struct all_inferiors_range) | |
9764 | (struct all_inferiors_safe_range) | |
9765 | (struct all_non_exited_inferiors_range): Filter on | |
9766 | process_stratum_target too. Remove explicit. | |
9767 | * inferior.c (inferior::inferior): Push dummy target on target | |
9768 | stack. | |
9769 | (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors): | |
9770 | Add process_stratum_target parameter, and pass it down. | |
9771 | (have_live_inferiors): Adjust. | |
9772 | (switch_to_inferior_and_push_target): New. | |
9773 | (add_inferior_command, clone_inferior_command): Handle | |
9774 | "-no-connection" parameter. Use | |
9775 | switch_to_inferior_and_push_target. | |
9776 | (_initialize_inferior): Mention "-no-connection" option in | |
9777 | the help of "add-inferior" and "clone-inferior" commands. | |
9778 | * inferior.h: Include "process-stratum-target.h". | |
9779 | (interrupt_target_1): Use bool. | |
9780 | (struct inferior) <push_target, unpush_target, target_is_pushed, | |
9781 | find_target_beneath, top_target, process_target, target_at, | |
9782 | m_stack>: New. | |
9783 | (discard_all_inferiors): Delete. | |
9784 | (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors) | |
9785 | (all_inferiors, all_non_exited_inferiors): Add | |
9786 | process_stratum_target parameter. | |
9787 | * infrun.c: Include "gdb_select.h" and <unordered_map>. | |
9788 | (target_last_proc_target): New global. | |
9789 | (follow_fork_inferior): Push target on new inferior. Pass target | |
9790 | to add_thread_silent. Call exec_on_vfork. Handle target's | |
9791 | reference count. | |
9792 | (follow_fork): Adjust get_last_target_status call. Also consider | |
9793 | target. | |
9794 | (follow_exec): Push target on new inferior. | |
9795 | (struct execution_control_state) <target>: New field. | |
9796 | (user_visible_resume_target): New. | |
9797 | (do_target_resume): Call target_async. | |
9798 | (resume_1): Set target's threads_executing flag. Consider resume | |
9799 | target. | |
9800 | (commit_resume_all_targets): New. | |
9801 | (proceed): Also consider resume target. Skip threads of inferiors | |
9802 | with no execution. Commit resumtion in all targets. | |
9803 | (start_remote): Pass current inferior to wait_for_inferior. | |
9804 | (infrun_thread_stop_requested): Consider target as well. Pass | |
9805 | thread_info pointer to clear_inline_frame_state instead of ptid. | |
9806 | (infrun_thread_thread_exit): Consider target as well. | |
9807 | (random_pending_event_thread): New inferior parameter. Use it. | |
9808 | (do_target_wait): Rename to ... | |
9809 | (do_target_wait_1): ... this. Add inferior parameter, and pass it | |
9810 | down. | |
9811 | (threads_are_resumed_pending_p, do_target_wait): New. | |
9812 | (prepare_for_detach): Adjust calls. | |
9813 | (wait_for_inferior): New inferior parameter. Handle it. Use | |
9814 | do_target_wait_1 instead of do_target_wait. | |
9815 | (fetch_inferior_event): Adjust. Switch to representative | |
9816 | inferior. Pass target down. | |
9817 | (set_last_target_status): Add process_stratum_target parameter. | |
9818 | Save target in global. | |
9819 | (get_last_target_status): Add process_stratum_target parameter and | |
9820 | handle it. | |
9821 | (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'. | |
9822 | (context_switch): Check inferior_ptid == null_ptid before calling | |
9823 | inferior_thread(). | |
9824 | (get_inferior_stop_soon): Pass down target. | |
9825 | (wait_one): Rename to ... | |
9826 | (poll_one_curr_target): ... this. | |
9827 | (struct wait_one_event): New. | |
9828 | (wait_one): New. | |
9829 | (stop_all_threads): Adjust. | |
9830 | (handle_no_resumed, handle_inferior_event): Adjust to consider the | |
9831 | event's target. | |
9832 | (switch_back_to_stepped_thread): Also consider target. | |
9833 | (print_stop_event): Update. | |
9834 | (normal_stop): Update. Also consider the resume target. | |
9835 | * infrun.h (wait_for_inferior): Remove declaration. | |
9836 | (user_visible_resume_target): New declaration. | |
9837 | (get_last_target_status, set_last_target_status): New | |
9838 | process_stratum_target parameter. | |
9839 | * inline-frame.c (clear_inline_frame_state(ptid_t)): Add | |
9840 | process_stratum_target parameter, and use it. | |
9841 | (clear_inline_frame_state (thread_info*)): New. | |
9842 | * inline-frame.c (clear_inline_frame_state(ptid_t)): Add | |
9843 | process_stratum_target parameter. | |
9844 | (clear_inline_frame_state (thread_info*)): Declare. | |
9845 | * linux-fork.c (delete_checkpoint_command): Pass target down to | |
9846 | find_thread_ptid. | |
9847 | (checkpoint_command): Adjust. | |
9848 | * linux-nat.c (linux_nat_target::follow_fork): Switch to thread | |
9849 | instead of just tweaking inferior_ptid. | |
9850 | (linux_nat_switch_fork): Pass target down to thread_change_ptid. | |
9851 | (exit_lwp): Pass target down to find_thread_ptid. | |
9852 | (attach_proc_task_lwp_callback): Pass target down to | |
9853 | add_thread/set_running/set_executing. | |
9854 | (linux_nat_target::attach): Pass target down to | |
9855 | thread_change_ptid. | |
9856 | (get_detach_signal): Pass target down to find_thread_ptid. | |
9857 | Consider last target status's target. | |
9858 | (linux_resume_one_lwp_throw, resume_lwp) | |
9859 | (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp) | |
9860 | (stop_wait_callback, save_stop_reason, linux_nat_filter_event) | |
9861 | (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down. | |
9862 | (linux_nat_target::async_wait_fd): New. | |
9863 | (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass | |
9864 | target down. | |
9865 | * linux-nat.h (linux_nat_target::async_wait_fd): Declare. | |
9866 | * linux-tdep.c (get_thread_arch_regcache): Pass target down. | |
9867 | * linux-thread-db.c (struct thread_db_info::process_target): New | |
9868 | field. | |
9869 | (add_thread_db_info): Save target. | |
9870 | (get_thread_db_info): New process_stratum_target parameter. Also | |
9871 | match target. | |
9872 | (delete_thread_db_info): New process_stratum_target parameter. | |
9873 | Also match target. | |
9874 | (thread_from_lwp): Adjust to pass down target. | |
9875 | (thread_db_notice_clone): Pass down target. | |
9876 | (check_thread_db_callback): Pass down target. | |
9877 | (try_thread_db_load_1): Always push the thread_db target. | |
9878 | (try_thread_db_load, record_thread): Pass target down. | |
9879 | (thread_db_target::detach): Pass target down. Always unpush the | |
9880 | thread_db target. | |
9881 | (thread_db_target::wait, thread_db_target::mourn_inferior): Pass | |
9882 | target down. Always unpush the thread_db target. | |
9883 | (find_new_threads_callback, thread_db_find_new_threads_2) | |
9884 | (thread_db_target::update_thread_list): Pass target down. | |
9885 | (thread_db_target::pid_to_str): Pass current inferior down. | |
9886 | (thread_db_target::get_thread_local_address): Pass target down. | |
9887 | (thread_db_target::resume, maintenance_check_libthread_db): Pass | |
9888 | target down. | |
9889 | * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust. | |
9890 | * procfs.c (procfs_target::procfs_init_inferior): Declare. | |
9891 | (proc_set_current_signal, do_attach, procfs_target::wait): Adjust. | |
9892 | (procfs_init_inferior): Rename to ... | |
9893 | (procfs_target::procfs_init_inferior): ... this and adjust. | |
9894 | (procfs_target::create_inferior, procfs_notice_thread) | |
9895 | (procfs_do_thread_registers): Adjust. | |
9896 | * ppc-fbsd-tdep.c: Include "inferior.h". | |
9897 | (ppcfbsd_get_thread_local_address): Pass down target. | |
9898 | * proc-service.c (ps_xfer_memory): Switch current inferior and | |
9899 | program space as well. | |
9900 | (get_ps_regcache): Pass target down. | |
9901 | * process-stratum-target.c | |
9902 | (process_stratum_target::thread_address_space) | |
9903 | (process_stratum_target::thread_architecture): Pass target down. | |
9904 | * process-stratum-target.h | |
9905 | (process_stratum_target::threads_executing): New field. | |
9906 | (as_process_stratum_target): New. | |
9907 | * ravenscar-thread.c | |
9908 | (ravenscar_thread_target::update_inferior_ptid): Pass target down. | |
9909 | (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target | |
9910 | down. | |
9911 | * record-btrace.c (record_btrace_target::info_record): Adjust. | |
9912 | (record_btrace_target::record_method) | |
9913 | (record_btrace_target::record_is_replaying) | |
9914 | (record_btrace_target::fetch_registers) | |
9915 | (get_thread_current_frame_id, record_btrace_target::resume) | |
9916 | (record_btrace_target::wait, record_btrace_target::stop): Pass | |
9917 | target down. | |
9918 | * record-full.c (record_full_wait_1): Switch to event thread. | |
9919 | Pass target down. | |
9920 | * regcache.c (regcache::regcache) | |
9921 | (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add | |
9922 | process_stratum_target parameter and handle it. | |
9923 | (current_thread_target): New global. | |
9924 | (get_thread_regcache): Add process_stratum_target parameter and | |
9925 | handle it. Switch inferior before calling target method. | |
9926 | (get_thread_regcache): Pass target down. | |
9927 | (get_thread_regcache_for_ptid): Pass target down. | |
9928 | (registers_changed_ptid): Add process_stratum_target parameter and | |
9929 | handle it. | |
9930 | (registers_changed_thread, registers_changed): Pass target down. | |
9931 | (test_get_thread_arch_aspace_regcache): New. | |
9932 | (current_regcache_test): Define a couple local test_target_ops | |
9933 | instances and use them for testing. | |
9934 | (readwrite_regcache): Pass process_stratum_target parameter. | |
9935 | (cooked_read_test, cooked_write_test): Pass mock_target down. | |
9936 | * regcache.h (get_thread_regcache, get_thread_arch_regcache) | |
9937 | (get_thread_arch_aspace_regcache): Add process_stratum_target | |
9938 | parameter. | |
9939 | (regcache::target): New method. | |
9940 | (regcache::regcache, regcache::get_thread_arch_aspace_regcache) | |
9941 | (regcache::registers_changed_ptid): Add process_stratum_target | |
9942 | parameter. | |
9943 | (regcache::m_target): New field. | |
9944 | (registers_changed_ptid): Add process_stratum_target parameter. | |
9945 | * remote.c (remote_state::supports_vCont_probed): New field. | |
9946 | (remote_target::async_wait_fd): New method. | |
9947 | (remote_unpush_and_throw): Add remote_target parameter. | |
9948 | (get_current_remote_target): Adjust. | |
9949 | (remote_target::remote_add_inferior): Push target. | |
9950 | (remote_target::remote_add_thread) | |
9951 | (remote_target::remote_notice_new_inferior) | |
9952 | (get_remote_thread_info): Pass target down. | |
9953 | (remote_target::update_thread_list): Skip threads of inferiors | |
9954 | bound to other targets. (remote_target::close): Don't discard | |
9955 | inferiors. (remote_target::add_current_inferior_and_thread) | |
9956 | (remote_target::process_initial_stop_replies) | |
9957 | (remote_target::start_remote) | |
9958 | (remote_target::remote_serial_quit_handler): Pass down target. | |
9959 | (remote_target::remote_unpush_target): New remote_target | |
9960 | parameter. Unpush the target from all inferiors. | |
9961 | (remote_target::remote_unpush_and_throw): New remote_target | |
9962 | parameter. Pass it down. | |
9963 | (remote_target::open_1): Check whether the current inferior has | |
9964 | execution instead of checking whether any inferior is live. Pass | |
9965 | target down. | |
9966 | (remote_target::remote_detach_1): Pass down target. Use | |
9967 | remote_unpush_target. | |
9968 | (extended_remote_target::attach): Pass down target. | |
9969 | (remote_target::remote_vcont_probe): Set supports_vCont_probed. | |
9970 | (remote_target::append_resumption): Pass down target. | |
9971 | (remote_target::append_pending_thread_resumptions) | |
9972 | (remote_target::remote_resume_with_hc, remote_target::resume) | |
9973 | (remote_target::commit_resume): Pass down target. | |
9974 | (remote_target::remote_stop_ns): Check supports_vCont_probed. | |
9975 | (remote_target::interrupt_query) | |
9976 | (remote_target::remove_new_fork_children) | |
9977 | (remote_target::check_pending_events_prevent_wildcard_vcont) | |
9978 | (remote_target::remote_parse_stop_reply) | |
9979 | (remote_target::process_stop_reply): Pass down target. | |
9980 | (first_remote_resumed_thread): New remote_target parameter. Pass | |
9981 | it down. | |
9982 | (remote_target::wait_as): Pass down target. | |
9983 | (unpush_and_perror): New remote_target parameter. Pass it down. | |
9984 | (remote_target::readchar, remote_target::remote_serial_write) | |
9985 | (remote_target::getpkt_or_notif_sane_1) | |
9986 | (remote_target::kill_new_fork_children, remote_target::kill): Pass | |
9987 | down target. | |
9988 | (remote_target::mourn_inferior): Pass down target. Use | |
9989 | remote_unpush_target. | |
9990 | (remote_target::core_of_thread) | |
9991 | (remote_target::remote_btrace_maybe_reopen): Pass down target. | |
9992 | (remote_target::pid_to_exec_file) | |
9993 | (remote_target::thread_handle_to_thread_info): Pass down target. | |
9994 | (remote_target::async_wait_fd): New. | |
9995 | * riscv-fbsd-tdep.c: Include "inferior.h". | |
9996 | (riscv_fbsd_get_thread_local_address): Pass down target. | |
9997 | * sol2-tdep.c (sol2_core_pid_to_str): Pass down target. | |
9998 | * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs) | |
9999 | (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback): | |
10000 | Adjust. | |
10001 | * solib-spu.c (spu_skip_standalone_loader): Pass down target. | |
10002 | * solib-svr4.c (enable_break): Pass down target. | |
10003 | * spu-multiarch.c (parse_spufs_run): Pass down target. | |
10004 | * spu-tdep.c (spu2ppu_sniffer): Pass down target. | |
10005 | * target-delegates.c: Regenerate. | |
10006 | * target.c (g_target_stack): Delete. | |
10007 | (current_top_target): Return the current inferior's top target. | |
10008 | (target_has_execution_1): Refer to the passed-in inferior's top | |
10009 | target. | |
10010 | (target_supports_terminal_ours): Check whether the initial | |
10011 | inferior was already created. | |
10012 | (decref_target): New. | |
10013 | (target_stack::push): Incref/decref the target. | |
10014 | (push_target, push_target, unpush_target): Adjust. | |
10015 | (target_stack::unpush): Defref target. | |
10016 | (target_is_pushed): Return bool. Adjust to refer to the current | |
10017 | inferior's target stack. | |
10018 | (dispose_inferior): Delete, and inline parts ... | |
10019 | (target_preopen): ... here. Only dispose of the current inferior. | |
10020 | (target_detach): Hold strong target reference while detaching. | |
10021 | Pass target down. | |
10022 | (target_thread_name): Add assertion. | |
10023 | (target_resume): Pass down target. | |
10024 | (target_ops::beneath, find_target_at): Adjust to refer to the | |
10025 | current inferior's target stack. | |
10026 | (get_dummy_target): New. | |
10027 | (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that | |
10028 | has a thread running. | |
10029 | (initialize_targets): Rename to ... | |
10030 | (_initialize_target): ... this. | |
10031 | * target.h: Include "gdbsupport/refcounted-object.h". | |
10032 | (struct target_ops): Inherit refcounted_object. | |
10033 | (target_ops::shortname, target_ops::longname): Make const. | |
10034 | (target_ops::async_wait_fd): New method. | |
10035 | (decref_target): Declare. | |
10036 | (struct target_ops_ref_policy): New. | |
10037 | (target_ops_ref): New typedef. | |
10038 | (get_dummy_target): Declare function. | |
10039 | (target_is_pushed): Return bool. | |
10040 | * thread-iter.c (all_matching_threads_iterator::m_inf_matches) | |
10041 | (all_matching_threads_iterator::all_matching_threads_iterator): | |
10042 | Handle filter target. | |
10043 | * thread-iter.h (struct all_matching_threads_iterator, struct | |
10044 | all_matching_threads_range, class all_non_exited_threads_range): | |
10045 | Filter by target too. Remove explicit. | |
10046 | * thread.c (threads_executing): Delete. | |
10047 | (inferior_thread): Pass down current inferior. | |
10048 | (clear_thread_inferior_resources): Pass down thread pointer | |
10049 | instead of ptid_t. | |
10050 | (add_thread_silent, add_thread_with_info, add_thread): Add | |
10051 | process_stratum_target parameter. Use it for thread and inferior | |
10052 | searches. | |
10053 | (is_current_thread): New. | |
10054 | (thread_info::deletable): Use it. | |
10055 | (find_thread_ptid, thread_count, in_thread_list) | |
10056 | (thread_change_ptid, set_resumed, set_running): New | |
10057 | process_stratum_target parameter. Pass it down. | |
10058 | (set_executing): New process_stratum_target parameter. Pass it | |
10059 | down. Adjust reference to 'threads_executing'. | |
10060 | (threads_are_executing): New process_stratum_target parameter. | |
10061 | Adjust reference to 'threads_executing'. | |
10062 | (set_stop_requested, finish_thread_state): New | |
10063 | process_stratum_target parameter. Pass it down. | |
10064 | (switch_to_thread): Also match inferior. | |
10065 | (switch_to_thread): New process_stratum_target parameter. Pass it | |
10066 | down. | |
10067 | (update_threads_executing): Reimplement. | |
10068 | * top.c (quit_force): Pop targets from all inferior. | |
10069 | (gdb_init): Don't call initialize_targets. | |
10070 | * windows-nat.c (windows_nat_target) <get_windows_debug_event>: | |
10071 | Declare. | |
10072 | (windows_add_thread, windows_delete_thread): Adjust. | |
10073 | (get_windows_debug_event): Rename to ... | |
10074 | (windows_nat_target::get_windows_debug_event): ... this. Adjust. | |
10075 | * tracefile-tfile.c (tfile_target_open): Pass down target. | |
10076 | * gdbsupport/common-gdbthread.h (struct process_stratum_target): | |
10077 | Forward declare. | |
10078 | (switch_to_thread): Add process_stratum_target parameter. | |
10079 | * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target | |
10080 | parameter. Use it. | |
10081 | (mi_on_resume): Pass target down. | |
10082 | * nat/fork-inferior.c (startup_inferior): Add | |
10083 | process_stratum_target parameter. Pass it down. | |
10084 | * nat/fork-inferior.h (startup_inferior): Add | |
10085 | process_stratum_target parameter. | |
10086 | * python/py-threadevent.c (py_get_event_thread): Pass target down. | |
10087 | ||
75c6c844 PA |
10088 | 2020-01-10 Pedro Alves <palves@redhat.com> |
10089 | ||
10090 | * remote.c (remote_target::start_remote): Don't set inferior_ptid | |
10091 | directly. Instead find the first thread in the thread list and | |
10092 | use switch_to_thread. | |
10093 | ||
78f2c40a PA |
10094 | 2020-01-10 Pedro Alves <palves@redhat.com> |
10095 | ||
10096 | * remote.c (remote_target::remote_add_inferior): Don't bind a | |
10097 | process to the current inferior if the current inferior is already | |
10098 | bound to a process. | |
10099 | ||
e7af6c70 TBA |
10100 | 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
10101 | Pedro Alves <palves@redhat.com> | |
10102 | ||
10103 | * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>: | |
10104 | If no process is specified, return null_ptid instead of | |
10105 | inferior_ptid. | |
10106 | (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED / | |
10107 | TARGET_WAITKIND_SIGNALLED with no pid. | |
10108 | ||
31ba933e PA |
10109 | 2020-01-10 Pedro Alves <palves@redhat.com> |
10110 | ||
10111 | * remote.c (first_remote_resumed_thread): New. | |
10112 | (remote_target::wait_as): Use it as default event_ptid instead of | |
10113 | inferior_ptid. | |
10114 | ||
735fc2ca PA |
10115 | 2020-01-10 Pedro Alves <palves@redhat.com> |
10116 | ||
10117 | * infrun.c (handle_no_resumed): Use all_non_exited_inferiors. | |
10118 | ||
c17e02e1 PA |
10119 | 2020-01-10 Pedro Alves <palves@redhat.com> |
10120 | ||
10121 | * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is | |
10122 | not -1. | |
10123 | ||
ab1ddbcf PA |
10124 | 2020-01-10 Pedro Alves <palves@redhat.com> |
10125 | ||
10126 | * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a | |
10127 | ptid to get_last_target_status. | |
10128 | * break-catch-syscall.c (print_it_catch_syscall): Don't pass a | |
10129 | ptid to get_last_target_status. | |
10130 | * infcmd.c (continue_command): Don't pass a target_waitstatus to | |
10131 | get_last_target_status. | |
10132 | (info_program_command): Don't pass a target_waitstatus to | |
10133 | get_last_target_status. | |
10134 | * infrun.c (init_wait_for_inferior): Use | |
10135 | nullify_last_target_wait_ptid. | |
10136 | (get_last_target_status): Handle nullptr arguments. | |
10137 | (nullify_last_target_wait_ptid): Clear target_last_waitstatus. | |
10138 | (print_stop_event): Don't pass a ptid to get_last_target_status. | |
10139 | (normal_stop): Don't pass a ptid to get_last_target_status. | |
10140 | * infrun.h (get_last_target_status, set_last_target_status): Move | |
10141 | comments here and update. | |
10142 | (nullify_last_target_wait_ptid): Declare. | |
10143 | * linux-fork.c (fork_load_infrun_state): Remove local extern | |
10144 | declaration of nullify_last_target_wait_ptid. | |
10145 | * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus | |
10146 | to get_last_target_status. | |
10147 | ||
f3f8ece4 PA |
10148 | 2020-01-10 Pedro Alves <palves@redhat.com> |
10149 | ||
10150 | * gdbthread.h (scoped_restore_current_thread) | |
10151 | <dont_restore, restore, m_dont_restore>: Declare. | |
10152 | * thread.c (thread_alive): Add assertion. Return bool. | |
10153 | (switch_to_thread_if_alive): New. | |
10154 | (prune_threads): Switch inferior/thread. | |
10155 | (print_thread_info_1): Switch thread before calling target methods. | |
10156 | (scoped_restore_current_thread::restore): New, factored out from | |
10157 | ... | |
10158 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
10159 | ... this. | |
10160 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
10161 | Add assertion. | |
10162 | (thread_apply_all_command, thread_select): Use | |
10163 | switch_to_thread_if_alive. | |
10164 | * infrun.c (proceed, restart_threads, handle_signal_stop) | |
10165 | (switch_back_to_stepped_thread): Switch current thread before | |
10166 | calling target methods. | |
10167 | ||
db2d40f7 PA |
10168 | 2020-01-10 Pedro Alves <palves@redhat.com> |
10169 | ||
10170 | * inferior.c (switch_to_inferior_no_thread): New function, | |
10171 | factored out from ... | |
10172 | (inferior_command): ... here. | |
10173 | * inferior.h (switch_to_inferior_no_thread): Declare. | |
10174 | * mi/mi-main.c (run_one_inferior): Use | |
10175 | switch_to_inferior_no_thread. | |
10176 | ||
bd420a2d PA |
10177 | 2020-01-10 Pedro Alves <palves@redhat.com> |
10178 | ||
10179 | * infcmd.c (kill_command): Remove dead code. | |
10180 | ||
ddf5db90 PA |
10181 | 2020-01-10 Pedro Alves <palves@redhat.com> |
10182 | ||
10183 | * remote.c (remote_target::mourn_inferior): No longer check | |
10184 | whether the target is running. | |
10185 | ||
5018ce90 PA |
10186 | 2020-01-10 Pedro Alves <palves@redhat.com> |
10187 | ||
10188 | * corelow.c (core_target::has_execution): Change parameter type to | |
10189 | inferior pointer. | |
10190 | * inferior.c (number_of_live_inferiors): Use | |
10191 | inferior::has_execution instead of target_has_execution_1. | |
10192 | * inferior.h (inferior::has_execution): New. | |
10193 | * linux-thread-db.c (thread_db_target::update_thread_list): Use | |
10194 | inferior::has_execution instead of target_has_execution_1. | |
10195 | * process-stratum-target.c | |
10196 | (process_stratum_target::has_execution): Change parameter type to | |
10197 | inferior pointer. Check the inferior's PID instead of | |
10198 | inferior_ptid. | |
10199 | * process-stratum-target.h | |
10200 | (process_stratum_target::has_execution): Change parameter type to | |
10201 | inferior pointer. | |
10202 | * record-full.c (record_full_core_target::has_execution): Change | |
10203 | parameter type to inferior pointer. | |
10204 | * target.c (target_has_execution_1): Change parameter type to | |
10205 | inferior pointer. | |
10206 | (target_has_execution_current): Adjust. | |
10207 | * target.h (target_ops::has_execution): Change parameter type to | |
10208 | inferior pointer. | |
10209 | (target_has_execution_1): Change parameter type to inferior | |
10210 | pointer. Change return type to bool. | |
10211 | * tracefile.h (tracefile_target::has_execution): Change parameter | |
10212 | type to inferior pointer. | |
10213 | ||
74375d18 PA |
10214 | 2020-01-10 Pedro Alves <palves@redhat.com> |
10215 | ||
10216 | * exceptions.c (print_flush): Remove current_top_target() check. | |
10217 | ||
acdf84a6 PA |
10218 | 2020-01-10 Pedro Alves <palves@redhat.com> |
10219 | ||
10220 | * remote.c (show_remote_exec_file): Show the current inferior's | |
10221 | exec-file instead of the command variable's value. | |
10222 | ||
ec506636 PA |
10223 | 2020-01-10 Pedro Alves <palves@redhat.com> |
10224 | ||
10225 | * record-full.c (record_full_resume_ptid): New global. | |
10226 | (record_full_target::resume): Set it. | |
10227 | (record_full_wait_1): Use record_full_resume_ptid instead of | |
10228 | inferior_ptid. | |
10229 | ||
873657b9 PA |
10230 | 2020-01-10 Pedro Alves <palves@redhat.com> |
10231 | ||
10232 | * gdbthread.h (scoped_restore_current_thread) | |
10233 | <dont_restore, restore, m_dont_restore>: Declare. | |
10234 | * thread.c (thread_alive): Add assertion. Return bool. | |
10235 | (switch_to_thread_if_alive): New. | |
10236 | (prune_threads): Switch inferior/thread. | |
10237 | (print_thread_info_1): Switch thread before calling target methods. | |
10238 | (scoped_restore_current_thread::restore): New, factored out from | |
10239 | ... | |
10240 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
10241 | ... this. | |
10242 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
10243 | Add assertion. | |
10244 | (thread_apply_all_command, thread_select): Use | |
10245 | switch_to_thread_if_alive. | |
10246 | ||
7f0ae84c GB |
10247 | 2020-01-10 George Barrett <bob@bob131.so> |
10248 | ||
10249 | * stap-probe.c (stap_modify_semaphore): Don't check for null | |
10250 | semaphores. | |
10251 | (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check | |
10252 | for null semaphores. | |
10253 | ||
f5a7c406 AB |
10254 | 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
10255 | ||
10256 | * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update | |
10257 | all source windows, and maintain horizontal scroll status while | |
10258 | doing so. | |
10259 | ||
9ae6bf64 TT |
10260 | 2020-01-09 Tom Tromey <tom@tromey.com> |
10261 | ||
10262 | PR tui/18932: | |
10263 | * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call | |
10264 | update_source_window, not print_source_lines. | |
10265 | ||
b2efe70c AB |
10266 | 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
10267 | ||
10268 | * tui/tui.c (tui_enable): Register tui hooks after calling | |
10269 | tui_display_main. | |
10270 | ||
5f23a082 CB |
10271 | 2020-01-09 Christian Biesinger <cbiesinger@google.com> |
10272 | ||
10273 | * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW. | |
10274 | ||
3061113b SM |
10275 | 2020-01-08 Simon Marchi <simon.marchi@efficios.com> |
10276 | ||
10277 | * thread.c (print_thread_info_1): Fix indentation. | |
10278 | ||
57d75002 CB |
10279 | 2020-01-09 Christian Biesinger <cbiesinger@google.com> |
10280 | ||
10281 | * symtab.c (general_symbol_info::compute_and_set_names): Move the | |
10282 | unique_xmalloc_ptr outside the if to always free the demangled name. | |
10283 | ||
6a053cb1 TT |
10284 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
10285 | ||
10286 | * xcoffread.c (enter_line_range, read_xcoff_symtab) | |
10287 | (process_xcoff_symbol, xcoff_symfile_offsets): Update. | |
10288 | * symtab.h (MSYMBOL_VALUE_ADDRESS): Update. | |
10289 | (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS): | |
10290 | Remove. | |
10291 | (section_offsets): New typedef. | |
10292 | * symtab.c (fixup_section, get_msymbol_address): Update. | |
10293 | * symmisc.c (dump_msymbols): Update. | |
10294 | * symfile.h (relative_addr_info_to_section_offsets) | |
10295 | (symfile_map_offsets_to_segments): Update. | |
10296 | * symfile.c (build_section_addr_info_from_objfile) | |
10297 | (init_objfile_sect_indices): Update. | |
10298 | (struct place_section_arg): Change type of "offsets". | |
10299 | (place_section): Update. | |
10300 | (relative_addr_info_to_section_offsets): Change type of | |
10301 | "section_offsets". Remove "num_sections" parameter. | |
10302 | (default_symfile_offsets, syms_from_objfile_1) | |
10303 | (set_objfile_default_section_offset): Update. | |
10304 | (reread_symbols): No need to preserve section offsets by hand. | |
10305 | (symfile_map_offsets_to_segments): Change type of "offsets". | |
10306 | * stap-probe.c (relocate_address): Update. | |
10307 | * stabsread.h (process_one_symbol): Update. | |
10308 | * solib-target.c (struct lm_info_target) <offsets>: Change type. | |
10309 | (solib_target_relocate_section_addresses): Update. | |
10310 | * solib-svr4.c (enable_break, svr4_relocate_main_executable): | |
10311 | Update. | |
10312 | * solib-frv.c (frv_relocate_main_executable): Update. | |
10313 | * solib-dsbt.c (dsbt_relocate_main_executable): Update. | |
10314 | * solib-aix.c (solib_aix_get_section_offsets): Change return | |
10315 | type. | |
10316 | (solib_aix_solib_create_inferior_hook): Update. | |
10317 | * remote.c (remote_target::get_offsets): Update. | |
10318 | * psymtab.c (find_pc_sect_psymtab): Update. | |
10319 | * psympriv.h (struct partial_symbol) <address, text_low, | |
10320 | text_high>: Update. | |
10321 | * objfiles.h (obj_section_offset): Update. | |
10322 | (struct objfile) <section_offsets>: Change type. | |
10323 | <num_sections>: Remove. | |
10324 | (objfile_relocate): Update. | |
10325 | * objfiles.c (entry_point_address_query): Update | |
10326 | (relocate_one_symbol): Change type of "section_offsets". | |
10327 | (objfile_relocate1, objfile_relocate1): Change type of | |
10328 | "new_offsets". | |
10329 | (objfile_rebase1): Update. | |
10330 | * mipsread.c (mipscoff_symfile_read): Update. | |
10331 | (read_alphacoff_dynamic_symtab): Remove "section_offsets" | |
10332 | parameter. | |
10333 | * mdebugread.c (parse_symbol): Change type of "section_offsets". | |
10334 | (parse_external, psymtab_to_symtab_1): Update. | |
10335 | * machoread.c (macho_symfile_offsets): Update. | |
10336 | * ia64-tdep.c (ia64_find_unwind_table): Update. | |
10337 | * hppa-tdep.c (read_unwind_info): Update. | |
10338 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update. | |
10339 | * dwarf2read.c (create_addrmap_from_index) | |
10340 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) | |
10341 | (process_psymtab_comp_unit_reader, add_partial_symbol) | |
10342 | (add_partial_subprogram, process_full_comp_unit) | |
10343 | (read_file_scope, read_func_scope, read_lexical_block_scope) | |
10344 | (read_call_site_scope, dwarf2_rnglists_process) | |
10345 | (dwarf2_ranges_process, dwarf2_ranges_read) | |
10346 | (dwarf_decode_lines_1, var_decode_location, new_symbol) | |
10347 | (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset): | |
10348 | Update. | |
10349 | * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde): | |
10350 | Update. | |
10351 | * dtrace-probe.c (dtrace_probe::get_relocated_address): Update. | |
10352 | * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update. | |
10353 | (process_one_symbol): Change type of "section_offsets". | |
10354 | * ctfread.c (get_objfile_text_range): Update. | |
10355 | * coffread.c (coff_symtab_read, enter_linenos) | |
10356 | (process_coff_symbol): Update. | |
10357 | * coff-pe-read.c (add_pe_forwarded_sym): Update. | |
10358 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update. | |
10359 | ||
456e800a TT |
10360 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
10361 | ||
10362 | * dwarf2read.c (parse_macro_definition): Use std::string. | |
10363 | (parse_macro_definition): Likewise. | |
10364 | ||
6dfa2fc2 TT |
10365 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
10366 | ||
10367 | * dwarf2read.c (abbrev_table_read_table): Use std::vector. | |
10368 | (ATTR_ALLOC_CHUNK): Remove. | |
10369 | ||
421d1616 TT |
10370 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
10371 | ||
10372 | * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr. | |
10373 | ||
43816ebc TT |
10374 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
10375 | ||
10376 | * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr. | |
10377 | (dwarf2_compute_name, open_dwo_file): Likewise. | |
10378 | (process_enumeration_scope): Use std::vector. | |
10379 | (guess_partial_die_structure_name): Use unique_xmalloc_ptr. | |
10380 | (partial_die_info::fixup, dwarf2_start_subfile) | |
10381 | (guess_full_die_structure_name, dwarf2_name): Likewise. | |
10382 | (determine_prefix): Update. | |
10383 | (guess_full_die_structure_name): Make return type const. | |
10384 | (partial_die_full_name): Return unique_xmalloc_ptr. | |
10385 | (DW_FIELD_ALLOC_CHUNK): Remove. | |
10386 | ||
4212d509 TT |
10387 | 2020-01-07 Tom Tromey <tromey@adacore.com> |
10388 | ||
10389 | PR build/24937: | |
10390 | * stap-probe.c (class stap_static_probe_ops): Add constructor. | |
10391 | ||
06a6207a JT |
10392 | 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk> |
10393 | ||
10394 | * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build. | |
10395 | ||
153d79c4 AB |
10396 | 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com> |
10397 | ||
10398 | * stack.c (print_frame_info): Move disassemble_next_line code | |
10399 | inside source_print block. | |
10400 | ||
66182876 EZ |
10401 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
10402 | ||
10403 | * gdbsupport/gdb_wait.c: Include <signal.h> instead of | |
10404 | gdb/signals.h, as we are now using native signal symbols. | |
10405 | ||
cbfa8581 SV |
10406 | 2020-01-06 Shahab Vahedi <shahab@synopsys.com> |
10407 | ||
10408 | * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid | |
10409 | overflow by an early check of content vs threshold. | |
aac66a4c | 10410 | * tui/tui-source.c (tui_source_window::line_is_displayed): |
cbfa8581 SV |
10411 | Likewise. |
10412 | ||
3f602821 EZ |
10413 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
10414 | ||
10415 | * NEWS: Mention the recent fix of $_exitsignal on MS-Windows. | |
10416 | ||
a08c904d JT |
10417 | 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk> |
10418 | ||
10419 | * coff-pe-read.c (read_pe_exported_syms): Don't try to read the | |
10420 | export table if no section contains it's RVA. | |
10421 | ||
89a65580 EZ |
10422 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
10423 | ||
10424 | * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT. | |
10425 | ||
8b7fcda2 HD |
10426 | 2020-01-06 Hannes Domani <ssbssa@yahoo.de> |
10427 | ||
10428 | * source.c (print_source_lines_base): Set last_line_listed. | |
10429 | ||
a61b4f69 SV |
10430 | 2020-01-06 Shahab Vahedi <shahab@synopsys.com> |
10431 | ||
10432 | * tui/tui-disasm.c: Remove trailing spaces. | |
10433 | ||
559e7e50 EZ |
10434 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
10435 | Pedro Alves <palves@redhat.com> | |
10436 | ||
10437 | * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c. | |
10438 | * windows-tdep.c: New enumeration of WINDOWS_SIG* signals. | |
10439 | (windows_gdb_signal_to_target): New function, uses the above | |
10440 | enumeration to convert GDB internal signal codes to equivalent | |
10441 | Windows codes. | |
10442 | (windows_init_abi): Call set_gdbarch_gdb_signal_to_target. | |
10443 | * windows-nat.c: Include "gdb_wait.h". | |
10444 | (get_windows_debug_event): Extract the fatal exception from the | |
10445 | exit status and convert to the equivalent Posix signal number. | |
10446 | * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the | |
10447 | possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN. | |
10448 | * gdbsupport/gdb_wait.c: New file, implements | |
10449 | windows_status_to_termsig. | |
10450 | * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS) | |
10451 | (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW. | |
10452 | ||
f2302a34 AB |
10453 | 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com> |
10454 | ||
10455 | * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not | |
10456 | show_layout. | |
10457 | ||
6a5206eb LM |
10458 | 2020-01-05 Luis Machado <luis.machado@linaro.org> |
10459 | ||
10460 | * aarch64-linux-nat.c | |
10461 | (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64 | |
10462 | and bfd_mach_aarch64. | |
10463 | ||
6ec1d75e PW |
10464 | 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
10465 | ||
10466 | * ui-file.c (stdio_file::can_emit_style_escape) | |
10467 | (tee_file::can_emit_style_escape): Ensure style is used also on | |
10468 | gdb_stderr when gdb_stderr is a tty supporting styling, similarly | |
10469 | to gdb_stdout. | |
10470 | * main.c (set_gdb_data_directory): Use file style to output the | |
10471 | warning that the given pathname is not a directory. | |
10472 | * top.c (show_history_filename, gdb_safe_append_history) | |
10473 | (show_gdb_datadir): Use file style. | |
10474 | ||
44f81a76 HD |
10475 | 2020-01-03 Hannes Domani <ssbssa@yahoo.de> |
10476 | ||
10477 | * solib-target.c (struct lm_info_target): | |
10478 | Change offsets to be a unique_xmalloc_ptr. | |
10479 | (solib_target_relocate_section_addresses): Update. | |
10480 | ||
25057eb0 HD |
10481 | 2020-01-03 Hannes Domani <ssbssa@yahoo.de> |
10482 | ||
10483 | * windows-nat.c (windows_clear_solib): Free so_list linked list. | |
10484 | ||
6e2118f5 BE |
10485 | 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de> |
10486 | ||
10487 | * MAINTAINERS (Write After Approval): Add myself. | |
10488 | ||
8133c7dc LM |
10489 | 2020-01-02 Luis Machado <luis.machado@linaro.org> |
10490 | ||
10491 | * proc-service.c (get_ps_regcache): Remove reference to obsolete | |
10492 | Cell BE architecture. | |
10493 | * target.h (struct target_ops) <thread_architecture>: Likewise. | |
10494 | ||
48189bec HD |
10495 | 2020-01-01 Hannes Domani <ssbssa@yahoo.de> |
10496 | ||
10497 | * Makefile.in: Use INSTALL_PROGRAM_ENV. | |
10498 | ||
ead1063b HD |
10499 | 2020-01-01 Hannes Domani <ssbssa@yahoo.de> |
10500 | ||
10501 | * MAINTAINERS (Write After Approval): Add myself. | |
10502 | ||
e5d78223 JB |
10503 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
10504 | ||
10505 | * gdbarch.sh: Update copyright year range of generated files. | |
10506 | ||
b811d2c2 JB |
10507 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
10508 | ||
10509 | Update copyright year range in all GDB files. | |
10510 | ||
5f4def5c JB |
10511 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
10512 | ||
10513 | * copyright.py: Convert to Python 3. | |
10514 | ||
51fd4002 JB |
10515 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
10516 | ||
10517 | * copyright.py: Adapt after move of gnulib directory from gdb | |
10518 | directory to toplevel directory. | |
10519 | ||
5fb651f2 JB |
10520 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
10521 | ||
10522 | * copyright.py (main): Exit if run from the wrong directory. | |
10523 | ||
5dd8bf88 JB |
10524 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
10525 | ||
10526 | * top.c (print_gdb_version): Change copyright year to 2020. | |
10527 | ||
9f71dacb | 10528 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
3d34df0a | 10529 | |
9f71dacb | 10530 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019. |
3d34df0a | 10531 | |
9f71dacb | 10532 | For older changes see ChangeLog-2019. |
c906108c SS |
10533 | \f |
10534 | Local Variables: | |
10535 | mode: change-log | |
10536 | left-margin: 8 | |
10537 | fill-column: 74 | |
10538 | version-control: never | |
57da7796 | 10539 | coding: utf-8 |
c906108c | 10540 | End: |