Commit | Line | Data |
---|---|---|
476923f1 JB |
1 | 2020-12-27 Tom Tromey <tom@tromey.com> |
2 | ||
3 | * eval.c (evaluate_subexp_standard) <case MULTI_SUBSCRIPT>: | |
4 | Simplify. | |
5 | ||
6 | 2020-12-24 Andrew Burgess <andrew.burgess@embecosm.com> | |
7 | ||
8 | PR gdb/27059 | |
9 | * eval.c (evaluate_subexp_for_sizeof): Handle not allocated and | |
10 | not associated arrays. | |
11 | * f-lang.c (fortran_adjust_dynamic_array_base_address_hack): Don't | |
12 | adjust arrays that are not allocated/associated. | |
13 | * gdbtypes.c (resolve_dynamic_range): Update header comment. Add | |
14 | new parameter which is used to sometimes set dynamic properties to | |
15 | undefined. | |
16 | (resolve_dynamic_array_or_string): Update header comment. Add new | |
17 | parameter which is used to guard evaluating dynamic properties. | |
18 | Resolve allocated/associated properties first. | |
19 | ||
20 | 2020-12-24 Andrew Burgess <andrew.burgess@embecosm.com> | |
21 | ||
22 | * gdbtypes (recursive_dump_type): Include allocated and associated | |
23 | properties. | |
24 | ||
25 | 2020-12-24 Lancelot SIX <lsix@lancelotsix.com> | |
26 | ||
27 | * gdbtypes.c (is_scalar_type_recursive): Prevent comparison | |
28 | between uninitialized values. | |
29 | ||
30 | 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
31 | ||
32 | * expprint.c (print_subexp_standard): Replace uses of | |
33 | LA_PRINT_STRING. | |
34 | * f-valprint.c (f_language::value_print_inner): Likewise. | |
35 | * guile/scm-pretty-print.c (ppscm_print_string_repr): Likewise. | |
36 | * p-valprint.c (pascal_language::value_print_inner): Likewise. | |
37 | * python/py-prettyprint.c (print_string_repr): Likewise. | |
38 | ||
39 | 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
40 | ||
41 | * rust-exp.y (rust_parse): Rename to... | |
42 | (rust_language::parser): ...this. | |
43 | * rust-lang.c (-rust_printstr): Rename to... | |
44 | (rust_language::printstr): ...this. | |
45 | (rust_value_print_inner): Delete declaration. | |
46 | (val_print_struct): Rename to... | |
47 | (rust_language::val_print_struct): ...this. Update calls to | |
48 | member functions. | |
49 | (rust_print_enum): Rename to... | |
50 | (rust_language::print_enum): ...this. Update calls to member | |
51 | functions. | |
52 | (rust_value_print_inner): Rename to... | |
53 | (rust_language::value_print_inner): ...this. Update calls to | |
54 | member functions. | |
55 | (exp_descriptor_rust): Rename to... | |
56 | (rust_language::exp_descriptor_tab): ...this. | |
57 | (class rust_language): Move to rust-lang.h. | |
58 | (rust_language::language_arch_info): Implementation moved to here | |
59 | from class declaration. | |
60 | (rust_language::print_type): Likewise. | |
61 | (rust_language::emitchar): Likewise. | |
62 | (rust_language::is_string_type_p): Likewise. | |
63 | * rust-lang.h: Add 'demangle.h', 'language.h', 'value.h', and | |
64 | 'c-lang.h' includes. | |
65 | (rust_parse): Delete declaration. | |
66 | (class rust_language): Class declaration moved here from | |
67 | rust-lang.c. | |
68 | ||
69 | 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
70 | ||
71 | * objc-lang.c (objc_language::opcode_print_table): Return | |
72 | objc_op_print_tab. | |
73 | ||
74 | 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
75 | ||
76 | * p-exp.y (exp): Update call to pascal_is_string_type. | |
77 | (pascal_parse): Rename to... | |
78 | (pascal_language::parser): ...this. | |
79 | * p-lang.c (is_pascal_string_type): Rename to... | |
80 | (pascal_is_string_type): ...this. | |
81 | (pascal_one_char): Rename to... | |
82 | (pascal_language::print_one_char): ...this. | |
83 | (pascal_printchar): Rename to... | |
84 | (pascal_language::printchar): ...this. Update call to | |
85 | print_one_char member function. | |
86 | (pascal_op_print_tab): Rename to... | |
87 | (pascal_language::op_print_tab): ...this. | |
88 | (class pascal_language): Moved to p-lang.h. | |
89 | (pascal_language::language_arch_info): Function implementation | |
90 | moved out of class declaration. | |
91 | (pascal_language::printstr): Likewise. | |
92 | * p-lang.h (pascal_parse): Delete declaration. | |
93 | (pascal_is_string_type): Declare. | |
94 | (pascal_print_type): Delete declaration. | |
95 | (pascal_print_typedef): Delete declaration. | |
96 | (pascal_value_print_inner): Delete declaration. | |
97 | (pascal_value_print): Delete declaration. | |
98 | (pascal_type_print_method_args): Delete declaration. | |
99 | (is_pascal_string_type): Delete declaration. | |
100 | (pascal_printchar): Delete declaration. | |
101 | (pascal_builtin_types): Delete declaration. | |
102 | (pascal_type_print_base): Delete declaration. | |
103 | (pascal_type_print_varspec_prefix): Delete declaration. | |
104 | (class pascal_language): Moved here from p-lang.c. | |
105 | * p-typeprint.c (pascal_type_print_varspec_suffix): Delete | |
106 | declaration. | |
107 | (pascal_type_print_derivation_info): Delete declaration. | |
108 | (pascal_print_type): Rename to... | |
109 | (pascal_language::print_type): ...this. Update calls to member | |
110 | functions. | |
111 | (pascal_print_typedef): Rename to... | |
112 | (pascal_language::print_typedef): ...this. Update calls to member | |
113 | functions. | |
114 | (pascal_type_print_derivation_info): Rename to... | |
115 | (pascal_language::type_print_derivation_info): ...this. | |
116 | (pascal_type_print_method_args): Rename to... | |
117 | (pascal_language::type_print_method_args): ...this. | |
118 | (pascal_type_print_varspec_prefix): Rename to... | |
119 | (pascal_language::type_print_varspec_prefix): ...this. Update | |
120 | calls to member functions. | |
121 | (pascal_print_func_args): Rename to... | |
122 | (pascal_language::print_func_args): ...this. Update calls to | |
123 | member functions. | |
124 | (pascal_type_print_func_varspec_suffix): Rename to... | |
125 | (pascal_language::type_print_func_varspec_suffix): ...this. | |
126 | Update calls to member functions. | |
127 | (pascal_type_print_varspec_suffix): Rename to... | |
128 | (pascal_language::type_print_varspec_suffix): ...this. Update | |
129 | calls to member functions. | |
130 | (pascal_type_print_base): Rename to... | |
131 | (pascal_language::type_print_base): ...this. Update calls to | |
132 | member functions. | |
133 | * p-valprint.c (pascal_value_print_inner): Rename to... | |
134 | (pascal_language::value_print_inner): ...this. Update calls to | |
135 | member functions. | |
136 | (pascal_value_print): Rename to... | |
137 | (pascal_language::value_print): ...this. Update calls to member | |
138 | functions. | |
139 | ||
140 | 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
141 | ||
142 | * go-exp.y (go_parse): Rename to... | |
143 | (go_language::parser): ...this. | |
144 | * go-lang.c (go_demangle): Rename to... | |
145 | (go_language::demangle_symbol): ...this. | |
146 | (go_language::expression_ops): Implementation moved here out of | |
147 | class declaration. | |
148 | (go_op_print_tab): Rename to... | |
149 | (go_language::op_print_tab): ...this, update comment. | |
150 | (class go_language): Declaration moved to go-lang.h. | |
151 | (go_language::language_arch_info): Implementation moved here out | |
152 | of class declaration. | |
153 | * go-lang.h (go_parse): Delete declaration. | |
154 | (go_demangle): Delete declaration. | |
155 | (go_print_type): Delete declaration. | |
156 | (go_value_print_inner): Delete declaration. | |
157 | (class go_language): Declaration moved here from go-lang.c. | |
158 | * go-typeprint.c (go_print_type): Rename to... | |
159 | (go_language::print_type): ...this. | |
160 | * go-valprint.c (go_value_print_inner): Rename to... | |
161 | (go_language::value_print_inner): ...this. | |
162 | * symtab.c (demangle_for_lookup): Call demangle_symbol method on | |
163 | the go_language object. | |
164 | ||
165 | 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
166 | ||
167 | * c-lang.c (language_defn::printchar): Call emitchar, not | |
168 | LA_EMIT_CHAR. | |
169 | * f-lang.h (f_language::printchar): Likewise. | |
170 | * language.h (LA_EMIT_CHAR): Delete macro. | |
171 | * rust-lang.c (rust_language::printchar): Call emitchar, not | |
172 | LA_EMIT_CHAR. | |
173 | ||
174 | 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
175 | ||
176 | * c-lang.c (c_printchar): Rename to... | |
177 | (language_defn::printchar): ...this. | |
178 | * c-lang.h (c_printchar): Delete declaration. | |
179 | * language.c (language_defn::printchar): Delete this | |
180 | implementation. Is now implemented in c-lang.c. | |
181 | ||
182 | 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
183 | ||
184 | * dwarf2/read.c (dwarf2_compute_name): Call methods on C++ | |
185 | language object instead of calling global functions directly. | |
186 | ||
187 | 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
188 | ||
189 | * valprint.c (print_char_chars): Delete definition. | |
190 | * valprint.h (print_char_chars): Delete declaration. | |
191 | ||
192 | 2020-12-23 Samuel Thibault <samuel.thibault@ens-lyon.org> | |
193 | ||
194 | * i386-gnu-tdep.c (I386_GNU_UCONTEXT_T_THREAD_STATE_OFFSET): New | |
195 | macro. | |
196 | (i386_gnu_sigcontext_addr): Detect between legacy and siginfo from the | |
197 | second parameter, which is a small sigcode in the legacy case, and a | |
198 | pointer in the siginfo case. | |
199 | ||
200 | * MAINTAINERS (Write After Approval): Add myself. | |
201 | ||
202 | 2020-12-22 Shahab Vahedi <shahab@synopsys.com> | |
203 | ||
204 | * frame.c: Remove trailing white spaces. | |
205 | * frame.h: Likewise. | |
206 | ||
207 | 2020-12-22 Shahab Vahedi <shahab@synopsys.com> | |
208 | ||
209 | * arc-linux-tdep.c: Replace "regnum" with "REGNUM" in comments. | |
210 | ||
211 | 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com> | |
212 | ||
213 | * Makefile.in (ALLDEPFILES): Add arc-linux-nat.c. | |
214 | * configure.host (host to gdb names): Add arc*-*-linux*. | |
215 | * configure.nat (gdb_host_cpu): Add arc. | |
216 | * arc-linux-nat.c: New. | |
217 | ||
218 | 2020-12-22 Shahab Vahedi <shahab@synopsys.com> | |
219 | ||
220 | * arc-linux-tdep.c (supply_register): New. | |
221 | (arc_linux_supply_gregset, arc_linux_supply_v2_regset, | |
222 | arc_linux_collect_v2_regset): Consider REGNUM. | |
223 | ||
224 | 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com> | |
225 | ||
226 | * arc-linux-tdep.c (arc_linux_sc_reg_offsets): New static variable. | |
227 | (arc_linux_is_sigtramp): New function. | |
228 | (arc_linux_sigcontext_addr): Likewise. | |
229 | (arc_linux_init_osabi): Use them. | |
230 | ||
231 | 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com> | |
232 | ||
233 | * arc-tdep.c (arc_make_sigtramp_frame_cache): New function. | |
234 | (arc_sigtramp_frame_this_id): Likewise. | |
235 | (arc_sigtramp_frame_prev_register): Likewise. | |
236 | (arc_sigtramp_frame_sniffer): Likewise. | |
237 | (arc_siftramp_frame_unwind): New global variable. | |
238 | (arc_gdbarch_init): Use sigtramp capabilities. | |
239 | (arc_dump_tdep): Print sigtramp fields. | |
240 | * arc-tdep.h (gdbarch_tdep): Add sigtramp fields. | |
241 | ||
242 | 2020-12-21 Tom Tromey <tom@tromey.com> | |
243 | ||
244 | * expression.h (enum noside): Move earlier. | |
245 | ||
246 | 2020-12-21 Peter Waller <p@pwaller.net> | |
247 | ||
248 | * interps.c (interpreter_exec_cmd): Restore streams pointers. | |
249 | ||
250 | 2020-12-21 Markus Metzger <markus.t.metzger@intel.com> | |
251 | ||
252 | * record.c (require_record_target): Rephrase error message. | |
253 | (info_record_command): Likewise. | |
254 | ||
255 | 2020-12-19 Hannes Domani <ssbssa@yahoo.de> | |
256 | ||
257 | PR exp/27070 | |
258 | * gdbtypes.c (check_types_equal): Don't compare types of enum fields. | |
259 | ||
260 | 2020-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de> | |
261 | ||
262 | * configure.ac: Move the static libs vs. source-highlight | |
263 | error message to a better place. | |
264 | * configure: Regenerate. | |
265 | ||
266 | 2020-12-18 Hannes Domani <ssbssa@yahoo.de> | |
267 | ||
268 | * gdb-gdb.py.in: Fix main_type field name. | |
269 | ||
270 | 2020-12-18 Hannes Domani <ssbssa@yahoo.de> | |
271 | ||
272 | * python/py-value.c (valpy_format_string): Implement address keyword. | |
273 | ||
274 | 2020-12-18 Hannes Domani <ssbssa@yahoo.de> | |
275 | ||
276 | * python/py-type.c (typy_get_composite): Add TYPE_CODE_METHOD. | |
277 | ||
278 | 2020-12-18 Jameson Nash <vtjnash@gmail.com> | |
279 | ||
280 | * coffread.c (linetab_offset): Change type to file_ptr. | |
281 | (linetab_size): Likewise. | |
282 | (enter_linenos): Change parameter type to file_ptr. | |
283 | (init_lineno): Likewise. | |
284 | (init_stringtab): Likewise. | |
285 | (coff_symtab_read): Likewise. | |
286 | (coff_symfile_read): Change variable types to file_ptr. | |
287 | ||
288 | 2020-12-17 Tom Tromey <tromey@adacore.com> | |
289 | ||
290 | * printcmd.c (print_variable_and_value): Don't use n_spaces. | |
291 | ||
292 | 2020-12-17 Tom Tromey <tromey@adacore.com> | |
293 | ||
294 | * gdbtypes.c (print_args, dump_fn_fieldlists, print_cplus_stuff) | |
295 | (print_gnat_stuff, print_fixed_point_type_info) | |
296 | (recursive_dump_type): Update. | |
297 | * go32-nat.c (go32_sysinfo, display_descriptor): Update. | |
298 | * c-typeprint.c (c_type_print_base_struct_union) | |
299 | (c_type_print_base_1): Update. | |
300 | * rust-lang.c (rust_internal_print_type): Update. | |
301 | * f-typeprint.c (f_language::f_type_print_base): Update. | |
302 | * utils.h (fprintfi_filtered, printfi_filtered): Remove. | |
303 | * m2-typeprint.c (m2_record_fields): Update. | |
304 | * p-typeprint.c (pascal_type_print_base): Update. | |
305 | * compile/compile-loc2c.c (push, pushf, unary, binary) | |
306 | (do_compile_dwarf_expr_to_c): Update. | |
307 | * utils.c (fprintfi_filtered, printfi_filtered): Remove. | |
308 | ||
309 | 2020-12-16 Tom Tromey <tom@tromey.com> | |
310 | ||
311 | * rust-exp.y (rust_lex_tests): Update. | |
312 | * parser-defs.h (parser_state): Add void_p parameter. | |
313 | <void_context_p>: New member. | |
314 | * parse.c (parse_exp_in_context): Update. | |
315 | * language.h (language_defn::post_parser): Remove void_context_p, | |
316 | completing, tracker parameters. Add parser state. | |
317 | * ada-lang.c (ada_language::post_parser): Update. | |
318 | ||
319 | 2020-12-16 Tom Tromey <tom@tromey.com> | |
320 | ||
321 | * parse.c (parse_exp_1, parse_expression_for_completion): Update. | |
322 | (parse_exp_in_context): Change void_context_p to bool. | |
323 | * language.h (struct language_defn) <post_parser>: Change | |
324 | void_context_p to bool. | |
325 | * ada-lang.c (class ada_language) <post_parser>: Update. | |
326 | ||
327 | 2020-12-16 Tom Tromey <tom@tromey.com> | |
328 | Tom Tromey <tromey@redhat.com> | |
329 | Tom de Vries <tdevries@suse.de> | |
330 | ||
331 | * utils.h (get_chars_per_line): Declare. | |
332 | * utils.c (get_chars_per_line): New function. | |
333 | (fputs_maybe_filtered): Handle '\r'. | |
334 | * ui-out.h (ui_out::progress_meter): New class. | |
335 | (ui_out::progress, ui_out::do_progress_start) | |
336 | (ui_out::do_progress_notify, ui_out::do_progress_end): New | |
337 | methods. | |
338 | * ui-out.c (do_progress_end) | |
339 | (make_cleanup_ui_out_progress_begin_end, ui_out_progress): New | |
340 | functions. | |
341 | * mi/mi-out.h (mi_ui_out::do_progress_start) | |
342 | (mi_ui_out::do_progress_notify, mi_ui_out::do_progress_end): New | |
343 | methods. | |
344 | * cli-out.h (struct cli_ui_out) <do_progress_start, | |
345 | do_progress_notify, do_progress_end>: New methods. | |
346 | <enum meter_stat, struct cli_progress_info>: New. | |
347 | <m_meters>: New member. | |
348 | * cli-out.c (cli_ui_out::do_progress_start) | |
349 | (cli_ui_out::do_progress_notify, cli_ui_out::do_progress_end): New | |
350 | methods. | |
351 | ||
352 | 2020-12-16 Luis Machado <luis.machado@linaro.org> | |
353 | ||
354 | * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Record FPSR. | |
355 | ||
356 | 2020-12-16 Luis Machado <luis.machado@linaro.org> | |
357 | ||
358 | * aarch64-linux-nat.c | |
359 | (aarch64_linux_nat_target::stopped_data_address): Handle the TBI. | |
360 | ||
361 | 2020-12-15 Rae Kim <rae.kim@gmail.com> | |
362 | ||
363 | * cli/cli-script.c (do_document_command): Rename from | |
364 | document_command. Handle multi-line input. | |
365 | (multi_line_command_p): Handle document_control. | |
366 | (build_command_line): Likewise. | |
367 | (execute_control_command_1): Likewise. | |
368 | (process_next_line): Likewise. | |
369 | (document_command): Call do_document_command. | |
370 | * cli/cli-script.h (enum command_control_type): Add | |
371 | document_control. | |
372 | ||
373 | 2020-12-15 Tom Tromey <tom@tromey.com> | |
374 | ||
375 | * stap-probe.c (stap_probe::evaluate_argument): Use | |
376 | evaluate_expression. | |
377 | * dtrace-probe.c (dtrace_probe::evaluate_argument): Use | |
378 | evaluate_expression. | |
379 | * value.h (evaluate_expression): Add expect_type parameter. | |
380 | * objc-lang.c (print_object_command): Call evaluate_expression. | |
381 | * eval.c (evaluate_expression): Add expect_type parameter. | |
382 | ||
383 | 2020-12-15 Tom Tromey <tom@tromey.com> | |
384 | ||
385 | * varobj.c (varobj_create): Use first_opcode. | |
386 | * value.c (init_if_undefined_command): Use first_opcode. | |
387 | * typeprint.c (whatis_exp): Use first_opcode. | |
388 | * tracepoint.c (validate_actionline): Use first_opcode. | |
389 | (encode_actions_1): Use first_opcode. | |
390 | * stack.c (return_command): Use first_opcode. | |
391 | * expression.h (struct expression) <first_opcode>: New method. | |
392 | * eval.c (parse_and_eval_type): Use first_opcode. | |
393 | * dtrace-probe.c (dtrace_process_dof_probe): Use first_opcode. | |
394 | ||
395 | 2020-12-15 Tom Tromey <tom@tromey.com> | |
396 | ||
397 | * f-lang.c (evaluate_subexp_f): Update. | |
398 | * expression.h (evaluate_subexp_do_call): Update. | |
399 | * eval.c (evaluate_subexp_do_call): Add callee parameter. Replace | |
400 | nargs, argvec with array_view. | |
401 | (evaluate_funcall): Update. | |
402 | ||
403 | 2020-12-15 Tom Tromey <tom@tromey.com> | |
404 | ||
405 | * ada-lang.c (num_component_specs): Remove. | |
406 | (assign_aggregate): Update. | |
407 | (aggregate_assign_positional, aggregate_assign_from_choices) | |
408 | (aggregate_assign_others, add_component_interval): Change | |
409 | arguments. | |
410 | ||
411 | 2020-12-15 Tom Tromey <tromey@adacore.com> | |
412 | ||
413 | * cli/cli-decode.c (deprecated_cmd_warning): Use title style for | |
414 | command names. | |
415 | ||
416 | 2020-12-14 Tom Tromey <tom@tromey.com> | |
417 | ||
418 | * dtrace-probe.c (dtrace_process_dof_probe): Use value_type. | |
419 | * typeprint.c (whatis_exp): Always use evaluate_type. | |
420 | (maintenance_print_type): Likewise. Simplify. | |
421 | ||
422 | 2020-12-14 Tom Tromey <tromey@adacore.com> | |
423 | ||
424 | * dictionary.c (language_defn::search_name_hash): Ignore "B". | |
425 | * ada-lang.c (advance_wild_match): Ignore "B". | |
426 | (full_match): Remove. | |
427 | (do_full_match): Rewrite. | |
428 | ||
429 | 2020-12-14 Tom Tromey <tromey@adacore.com> | |
430 | ||
431 | * ada-lang.c (get_var_value): Only consider exact matches. | |
432 | ||
433 | 2020-12-14 Tom Tromey <tromey@adacore.com> | |
434 | ||
435 | * dwarf2/read.c (rewrite_array_type): New function. | |
436 | (quirk_ada_thick_pointer_struct): Use rewrite_array_type. | |
437 | ||
438 | 2020-12-14 Tom Tromey <tromey@adacore.com> | |
439 | ||
440 | * valarith.c (fixed_point_binop): Call error on division by zero. | |
441 | ||
442 | 2020-12-13 Tom Tromey <tom@tromey.com> | |
443 | ||
444 | * gdbtypes.c (safe_parse_type): Make argument const. | |
445 | * value.h (parse_and_eval_type): Make argument const. | |
446 | * eval.c (parse_and_eval_type): Make argument const. | |
447 | ||
448 | 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com> | |
449 | ||
450 | * NEWS: Mention new commands. | |
451 | * target-dcache.c: Add 'cli/cli-cmds.h' include. | |
452 | (maint_flush_dcache_command): New function. | |
453 | (_initialize_target_dcache): Create new 'maint flush dcache' | |
454 | command. | |
455 | ||
456 | 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com> | |
457 | ||
458 | * NEWS: Mention new commands, and that the old commands are now | |
459 | deprecated. | |
460 | * cli/cli-cmds.c (maintenanceflushlist): Define. | |
461 | * cli/cli-cmds.h (maintenanceflushlist): Declare. | |
462 | * maint.c (_initialize_maint_cmds): Initialise | |
463 | maintenanceflushlist. | |
464 | * regcache.c: Add 'cli/cli-cmds.h' include. | |
465 | (reg_flush_command): Add header comment. | |
466 | (_initialize_regcache): Create new 'maint flush register-cache' | |
467 | command, make 'flushregs' an alias. | |
468 | * symtab.c: Add 'cli/cli-cmds.h' include. | |
469 | (_initialize_symtab): Create new 'maint flush symbol-cache' | |
470 | command, make old command an alias. | |
471 | ||
472 | 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com> | |
473 | ||
474 | * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix | |
475 | result from lookup_cmd_composition_1, use the prefixes from both | |
476 | the command and the alias instead. | |
477 | (lookup_cmd_composition_1): Initial prefix command is the based on | |
478 | the search list being passed in. Simplify the logic for tracking | |
479 | the prefix command. Replace a use of alloca with a local | |
480 | std::string. | |
481 | ||
482 | 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com> | |
483 | ||
484 | * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead | |
485 | of NULL. Don't print message piece by piece, but sentence at a | |
486 | time to allow internationalisation. Some whitespace cleanup. | |
487 | ||
488 | 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com> | |
489 | ||
490 | PR cli/15104 | |
491 | * cli/cli-decode.c (lookup_cmd_1): Pass command list to | |
492 | deprecated_cmd_warning. | |
493 | (deprecated_cmd_warning): Take extra parameter, call | |
494 | lookup_cmd_composition_1 and pass new parameter through. | |
495 | (lookup_cmd_composition_1): New function, takes implementation of | |
496 | lookup_cmd_composition but with extra parameter. | |
497 | (lookup_cmd_composition): Now calls lookup_cmd_composition_1 | |
498 | passing in cmdlist. | |
499 | * command.h (deprecated_cmd_warning): Add extra parameter to | |
500 | declaration. | |
501 | * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning. | |
502 | ||
503 | 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com> | |
504 | ||
505 | * cli/cli-decode.c (lookup_cmd_1): Move header comment into | |
506 | command.h, add extra parameter, and use this to guard giving a | |
507 | warning. | |
508 | * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c, | |
509 | include argument names in declaration, add new argument. | |
510 | * completer.c (complete_line_internal_1): Remove unneeded | |
511 | brackets, pass extra argument to lookup_cmd_1. | |
512 | ||
513 | 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca> | |
514 | ||
515 | * infrun.h (debug_infrun): Make a bool. | |
516 | * infrun.c (debug_infrun): Make a bool. | |
517 | (_initialize_infrun): Use add_setshow_boolean_cmd to define "set | |
518 | debug infrun". | |
519 | ||
520 | 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca> | |
521 | ||
522 | * displaced-stepping.h (displaced_debug_printf): Use | |
523 | debug_prefixed_printf_cond. | |
524 | * dwarf2/read.c (dwarf_read_debug_printf): Likewise. | |
525 | (dwarf_read_debug_printf_v): Likewise. | |
526 | * infrun.h (infrun_debug_printf): Likewise. | |
527 | * linux-nat.c (linux_nat_debug_printf): Likewise. | |
528 | ||
529 | 2020-12-11 Tom Tromey <tom@tromey.com> | |
530 | ||
531 | * p-exp.y (intvar): Remove global. | |
532 | (DOLLAR_VARIABLE): Change type. | |
533 | (start): Update. | |
534 | (exp): Call write_dollar_variable here... | |
535 | (yylex): ... not here. | |
536 | * m2-exp.y (DOLLAR_VARIABLE): Change type. | |
537 | (variable): Call write_dollar_variable here... | |
538 | (yylex): ... not here. | |
539 | * f-exp.y (DOLLAR_VARIABLE): Change type. | |
540 | (exp): Call write_dollar_variable here... | |
541 | (yylex): ... not here. | |
542 | ||
543 | 2020-12-11 Tom Tromey <tom@tromey.com> | |
544 | ||
545 | * varobj.c (varobj_create): Update. | |
546 | (install_variable): Return void. | |
547 | ||
548 | 2020-12-11 Tom Tromey <tom@tromey.com> | |
549 | ||
550 | * varobj.c (instantiate_pretty_printer): Use gdbpy_ref. | |
551 | ||
552 | 2020-12-11 Tom Tromey <tom@tromey.com> | |
553 | ||
554 | * varobj.c (varobj_clear_saved_item): Remove. | |
555 | (update_dynamic_varobj_children): Update. | |
556 | (varobj::~varobj): Don't call varobj_clear_saved_item. | |
557 | ||
558 | 2020-12-11 Tom Tromey <tom@tromey.com> | |
559 | ||
560 | * varobj.c (install_dynamic_child, varobj_clear_saved_item) | |
561 | (update_dynamic_varobj_children, create_child) | |
562 | (create_child_with_value): Update. | |
563 | * varobj-iter.h (struct varobj_item) <value>: Now a | |
564 | value_ref_ptr. | |
565 | * python/py-varobj.c (py_varobj_iter::next): Call release_value. | |
566 | ||
567 | 2020-12-11 Tom Tromey <tom@tromey.com> | |
568 | ||
569 | * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr. | |
570 | (varobj_get_iterator): Return unique_ptr. | |
571 | (update_dynamic_varobj_children, install_visualizer) | |
572 | (varobj::~varobj): Update. | |
573 | * python/python-internal.h (py_varobj_get_iterator): Return | |
574 | unique_ptr. | |
575 | * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr. | |
576 | ||
577 | 2020-12-11 Tom Tromey <tom@tromey.com> | |
578 | ||
579 | * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr. | |
580 | (varobj_clear_saved_item, update_dynamic_varobj_children): | |
581 | Update. | |
582 | ||
583 | 2020-12-11 Tom Tromey <tom@tromey.com> | |
584 | ||
585 | * varobj.c (update_dynamic_varobj_children): Update. | |
586 | * varobj-iter.h (struct varobj_iter) <next>: Change return type. | |
587 | * python/py-varobj.c (struct py_varobj_iter) <next>: Change return | |
588 | type. | |
589 | (py_varobj_iter::next): Likewise. | |
590 | ||
591 | 2020-12-11 Tom Tromey <tom@tromey.com> | |
592 | ||
593 | * varobj.c (update_dynamic_varobj_children, install_visualizer) | |
594 | (varobj::~varobj): Update. | |
595 | * varobj-iter.h (struct varobj_iter): Change to interface class. | |
596 | (struct varobj_iter_ops): Remove. | |
597 | (varobj_iter_next, varobj_iter_delete): Remove. | |
598 | * python/py-varobj.c (struct py_varobj_iter): Derive from | |
599 | varobj_iter. Add constructor, destructor. Rename members. | |
600 | (py_varobj_iter::~py_varobj_iter): Rename from | |
601 | py_varobj_iter_dtor. | |
602 | (py_varobj_iter::next): Rename from py_varobj_iter_next. | |
603 | (py_varobj_iter_ops): Remove. | |
604 | (py_varobj_iter): Rename from py_varobj_iter_ctor. | |
605 | (py_varobj_iter_new): Remove. | |
606 | (py_varobj_get_iterator): Update. | |
607 | ||
608 | 2020-12-11 Tom Tromey <tom@tromey.com> | |
609 | ||
610 | * varobj.h (all_root_varobjs): Take a function_view. | |
611 | * varobj.c (all_root_varobjs): Take a function_view. | |
612 | (varobj_invalidate_iter): Remove unused parameter. | |
613 | (varobj_invalidate): Update. | |
614 | * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove. | |
615 | (mi_cmd_var_update_iter): Change parameters. | |
616 | ||
617 | 2020-12-11 Tom Tromey <tom@tromey.com> | |
618 | ||
619 | * varobj.c (struct varobj_root) <next>: Remove. | |
620 | (struct vlist): Remove. | |
621 | (rootlist): Now a std::list. | |
622 | (install_variable, uninstall_variable, all_root_varobjs): Update. | |
623 | ||
624 | 2020-12-11 Tom Tromey <tom@tromey.com> | |
625 | ||
626 | * varobj.c (VAROBJ_TABLE_SIZE): Remove. | |
627 | (varobj_table): Now htab_t. | |
628 | (varobj_get_handle, install_variable, uninstall_variable): | |
629 | Update. | |
630 | (hash_varobj, eq_varobj_and_string): New functions. | |
631 | (hash_varobj): Update. | |
632 | ||
633 | 2020-12-11 Tom Tromey <tom@tromey.com> | |
634 | ||
635 | * inline-frame.c (stopped_by_user_bp_inline_frame): Update. | |
636 | * ada-lang.c (check_status_exception): Update. | |
637 | * breakpoint.c (free_bp_location): Remove. | |
638 | (decref_bp_location): Use bp_location_ref_policy. | |
639 | (bpstats::bpstats): Don't call incref_bp_location. | |
640 | (bpstats::~bpstats): Remove. | |
641 | (bpstats::bpstats): Update. | |
642 | (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions) | |
643 | (bp_location::bp_location): Update. | |
644 | (incref_bp_location): Remove. | |
645 | (bkpt_print_it): Update. | |
646 | * breakpoint.h (class bp_location): Derive from | |
647 | refcounted_object. | |
648 | (struct bpstats): Remove destructor. | |
649 | <bp_location_at>: Now a bp_location_ref_ptr. | |
650 | <refc>: Remove. | |
651 | (bp_location_ref_ptr): New typedef. | |
652 | (struct bp_location_ref_policy): New. | |
653 | ||
654 | 2020-12-11 Tom Tromey <tom@tromey.com> | |
655 | ||
656 | * thread.c (class scoped_inc_dec_ref): Remove. | |
657 | (tp_array_compar_ascending, tp_array_compar_descending): Change | |
658 | parameter types. | |
659 | (thread_apply_all_command): Use thread_info_ref. | |
660 | ||
661 | 2020-12-11 Tom Tromey <tom@tromey.com> | |
662 | ||
663 | * infrun.c (struct stop_context) <thread>: Now a thread_info_ref. | |
664 | (stop_context::stop_context): Update. | |
665 | (stop_context::~stop_context): Remove. | |
666 | ||
667 | 2020-12-11 Tom Tromey <tom@tromey.com> | |
668 | ||
669 | * inferior.c (current_inferior_): Change type. | |
670 | (current_inferior, set_current_inferior, initialize_inferiors): | |
671 | Update. | |
672 | ||
673 | 2020-12-11 Tom Tromey <tom@tromey.com> | |
674 | ||
675 | * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>: | |
676 | Change type. | |
677 | ||
678 | 2020-12-11 Tom Tromey <tromey@adacore.com> | |
679 | ||
680 | * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New | |
681 | field. | |
682 | (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id. | |
683 | (read_atcb): Use cpu_id_offset. | |
684 | ||
685 | 2020-12-10 Kevin Buettner <kevinb@redhat.com> | |
686 | ||
687 | * ada-lang.c (ada_fold_name): Fix off-by-one error. | |
688 | ||
689 | 2020-12-10 Luis Machado <luis.machado@linaro.org> | |
690 | ||
691 | * breakpoint.c (should_be_inserted): Don't output newline. | |
692 | ||
693 | 2020-12-10 Luis Machado <luis.machado@linaro.org> | |
694 | ||
695 | * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function. | |
696 | (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg. | |
697 | * aarch64-tdep.h (V_REGISTER_SIZE): Move to ... | |
698 | * arch/aarch64.h: ... here. | |
699 | * nat/aarch64-sve-linux-ptrace.c: Include endian.h. | |
700 | (aarch64_maybe_swab128): New function. | |
701 | (aarch64_sve_regs_copy_to_reg_buf) | |
702 | (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries. | |
703 | * trad-frame.c (trad_frame_reset_saved_regs): Initialize | |
704 | the data field. | |
705 | (TF_REG_VALUE_BYTES): New enum value. | |
706 | (trad_frame_value_bytes_p): New function. | |
707 | (trad_frame_set_value_bytes): New function. | |
708 | (trad_frame_set_reg_value_bytes): New function. | |
709 | (trad_frame_get_prev_register): Handle register values saved as bytes. | |
710 | * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype. | |
711 | (struct trad_frame_saved_reg) <data>: New field. | |
712 | (trad_frame_set_value_bytes): New prototype. | |
713 | (trad_frame_value_bytes_p): New prototype. | |
714 | ||
715 | 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com> | |
716 | ||
717 | * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed. | |
718 | * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function. | |
719 | * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions. | |
720 | ||
721 | 2020-12-09 Tom Tromey <tromey@adacore.com> | |
722 | ||
723 | * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets. | |
724 | ||
725 | 2020-12-09 Tom Tromey <tromey@adacore.com> | |
726 | ||
727 | * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator" | |
728 | and "denominator" to gdb_mpz. Handle block forms. | |
729 | (get_dwarf2_unsigned_rational_constant): Change "numerator" and | |
730 | "denominator" to gdb_mpz. | |
731 | (finish_fixed_point_type): Update. | |
732 | (has_zero_over_zero_small_attribute): Update. | |
733 | ||
734 | 2020-12-09 Tom Tromey <tromey@adacore.com> | |
735 | ||
736 | * expprint.c (op_name): Update. | |
737 | * expression.h (enum exp_opcode): Update. | |
738 | * std-operator.def: Add more opcodes. | |
739 | * ada-operator.def, fortran-operator.def: Remove, moving contents | |
740 | into std-operator.def. | |
741 | ||
742 | 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca> | |
743 | ||
744 | * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound): | |
745 | Return {} instead of false. | |
746 | (get_discrete_bounds): Compute high bound only if low bound is | |
747 | valid. | |
748 | ||
749 | 2020-12-09 Simon Marchi <simon.marchi@efficios.com> | |
750 | ||
751 | PR 26875, PR 26901 | |
752 | * gdbtypes.c (get_discrete_low_bound): Make non-static. | |
753 | (get_discrete_high_bound): Make non-static. | |
754 | * gdbtypes.h (get_discrete_low_bound): New declaration. | |
755 | (get_discrete_high_bound): New declaration. | |
756 | * valarith.c (value_subscript): Only fetch high bound if | |
757 | necessary. | |
758 | ||
759 | 2020-12-09 Simon Marchi <simon.marchi@efficios.com> | |
760 | ||
761 | * gdbtypes.c (get_discrete_bounds): Implement with | |
762 | get_discrete_low_bound and get_discrete_high_bound. | |
763 | (get_discrete_low_bound): New. | |
764 | (get_discrete_high_bound): New. | |
765 | ||
766 | 2020-12-09 Simon Marchi <simon.marchi@efficios.com> | |
767 | ||
768 | * gdbtypes.h (get_discrete_bounds): Return bool, adjust all | |
769 | callers. | |
770 | * gdbtypes.c (get_discrete_bounds): Return bool. | |
771 | ||
772 | 2020-12-09 Simon Marchi <simon.marchi@efficios.com> | |
773 | ||
774 | * ada-lang.c (ada_value_slice_from_ptr): Adjust. | |
775 | (ada_value_slice): Adjust. | |
776 | (pos_atr): Adjust. | |
777 | * gdbtypes.c (get_discrete_bounds): Adjust. | |
778 | (discrete_position): Return optional. | |
779 | * gdbtypes.h (discrete_position): Return optional. | |
780 | ||
781 | 2020-12-07 Tom Tromey <tromey@adacore.com> | |
782 | ||
783 | * maint.c (_initialize_maint_cmds): Use expression command | |
784 | completer for "maint print type". | |
785 | ||
786 | 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
787 | ||
788 | * completer.c (complete_explicit_location): Also add keywords | |
789 | that start with '-' to the completion list. | |
790 | ||
791 | 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
792 | ||
793 | * linespec.c (linespec_lexer_lex_keyword): The "-force-condition" | |
794 | keyword may be followed by any keyword. | |
795 | * breakpoint.c (find_condition_and_thread): Advance 'tok' by | |
796 | 'toklen' in the case for "-force-condition". | |
797 | ||
798 | 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
799 | ||
800 | * main.c (catch_command_errors): Add a flag parameter; invoke | |
801 | `bpstat_do_actions` if the flag is set. | |
802 | (execute_cmdargs): Update a call to `catch_command_errors`. | |
803 | ||
804 | 2020-12-07 Tom de Vries <tdevries@suse.de> | |
805 | ||
806 | * ada-lang.c (replace_operator_with_call): Handle shrink resize. | |
807 | ||
808 | 2020-12-06 Tom Tromey <tom@tromey.com> | |
809 | ||
810 | PR ada/26999 | |
811 | * ada-lang.c (replace_operator_with_call): Rewrite. | |
812 | ||
813 | 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change) | |
814 | ||
815 | PR breakpoints/27009 | |
816 | * s390-tdep.h (op_bc): Correct BC opcode value. | |
817 | ||
818 | 2020-12-06 Joel Brobecker <brobecker@adacore.com> | |
819 | ||
820 | * gmp-utils.h (gdb_mpz::safe_export): New private method. | |
821 | (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export. | |
822 | * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export. | |
823 | (gdb_mpz::safe_export): New method. | |
824 | * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer): | |
825 | Update function description. | |
826 | (check_as_integer_raises_out_of_range_error): New function. | |
827 | (gdb_mpz_as_integer_out_of_range): New function. | |
828 | (_initialize_gmp_utils_selftests): Register | |
829 | gdb_mpz_as_integer_out_of_range as a selftest. | |
830 | ||
831 | 2020-12-05 Joel Brobecker <brobecker@adacore.com> | |
832 | ||
833 | * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of | |
834 | TARGET_CHAR_BIT. | |
835 | (gdb_mpz::write): Likewise. | |
836 | ||
837 | 2020-12-04 Simon Marchi <simon.marchi@efficios.com> | |
838 | ||
839 | * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the | |
840 | number of displaced step buffers. | |
841 | ||
842 | 2020-12-04 Simon Marchi <simon.marchi@efficios.com> | |
843 | ||
844 | * displaced-stepping.h (struct displaced_step_buffer): Rename | |
845 | to... | |
846 | (struct displaced_step_buffers): ... this. | |
847 | <m_addr, m_current_thread, m_copy_insn_closure>: Remove. | |
848 | <struct displaced_step_buffer>: New inner class. | |
849 | <m_buffers>: New. | |
850 | * displaced-stepping.c (displaced_step_buffer::prepare): Rename | |
851 | to... | |
852 | (displaced_step_buffers::prepare): ... this, adjust for multiple | |
853 | buffers. | |
854 | (displaced_step_buffer::finish): Rename to... | |
855 | (displaced_step_buffers::finish): ... this, adjust for multiple | |
856 | buffers. | |
857 | (displaced_step_buffer::copy_insn_closure_by_addr): Rename to... | |
858 | (displaced_step_buffers::copy_insn_closure_by_addr): ... this, | |
859 | adjust for multiple buffers. | |
860 | (displaced_step_buffer::restore_in_ptid): Rename to... | |
861 | (displaced_step_buffers::restore_in_ptid): ... this, adjust for | |
862 | multiple buffers. | |
863 | * linux-tdep.h (linux_init_abi): Change supports_displaced_step | |
864 | for num_disp_step_buffers. | |
865 | * linux-tdep.c (struct linux_gdbarch_data) | |
866 | <num_disp_step_buffers>: New field. | |
867 | (struct linux_info) <disp_step_buf>: Rename to... | |
868 | <disp_step_bufs>: ... this, change type to | |
869 | displaced_step_buffers. | |
870 | (linux_displaced_step_prepare): Use | |
871 | linux_gdbarch_data::num_disp_step_buffers to create that number | |
872 | of buffers. | |
873 | (linux_displaced_step_finish): Adjust. | |
874 | (linux_displaced_step_copy_insn_closure_by_addr): Adjust. | |
875 | (linux_displaced_step_restore_all_in_ptid): Adjust. | |
876 | (linux_init_abi): Change supports_displaced_step parameter for | |
877 | num_disp_step_buffers, save it in linux_gdbarch_data. | |
878 | * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust. | |
879 | * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust. | |
880 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change | |
881 | supports_displaced_step parameter for num_disp_step_buffers. | |
882 | (amd64_linux_init_abi): Adjust. | |
883 | (amd64_x32_linux_init_abi): Adjust. | |
884 | * arc-linux-tdep.c (arc_linux_init_osabi): Adjust. | |
885 | * arm-linux-tdep.c (arm_linux_init_abi): Adjust. | |
886 | * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust. | |
887 | * cris-linux-tdep.c (cris_linux_init_abi): Adjust. | |
888 | * csky-linux-tdep.c (csky_linux_init_abi): Adjust. | |
889 | * frv-linux-tdep.c (frv_linux_init_abi): Adjust. | |
890 | * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust. | |
891 | * i386-linux-tdep.c (i386_linux_init_abi): Adjust. | |
892 | * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust. | |
893 | * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust. | |
894 | * m68k-linux-tdep.c (m68k_linux_init_abi): | |
895 | * microblaze-linux-tdep.c (microblaze_linux_init_abi): | |
896 | * mips-linux-tdep.c (mips_linux_init_abi): Adjust. | |
897 | * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust. | |
898 | * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust. | |
899 | * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust. | |
900 | * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust. | |
901 | * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust. | |
902 | * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>: | |
903 | Change type to displaced_step_buffers. | |
904 | * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust. | |
905 | * sh-linux-tdep.c (sh_linux_init_abi): Adjust. | |
906 | * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust. | |
907 | * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust. | |
908 | * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust. | |
909 | * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust. | |
910 | * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust. | |
911 | ||
912 | 2020-12-04 Simon Marchi <simon.marchi@efficios.com> | |
913 | ||
914 | * linux-tdep.c (init_linux_gdbarch_data): Change parameter to | |
915 | obkstack. | |
916 | (_initialize_linux_tdep): Register pre-init gdb data instead of | |
917 | post-init. | |
918 | ||
919 | 2020-12-04 Simon Marchi <simon.marchi@efficios.com> | |
920 | ||
921 | * displaced-stepping.h (struct | |
922 | displaced_step_copy_insn_closure): Adjust comments. | |
923 | (struct displaced_step_inferior_state) <step_thread, | |
924 | step_gdbarch, step_closure, step_original, step_copy, | |
925 | step_saved_copy>: Remove fields. | |
926 | (struct displaced_step_thread_state): New. | |
927 | (struct displaced_step_buffer): New. | |
928 | * displaced-stepping.c (displaced_step_buffer::prepare): New. | |
929 | (write_memory_ptid): Move from infrun.c. | |
930 | (displaced_step_instruction_executed_successfully): New, | |
931 | factored out of displaced_step_finish. | |
932 | (displaced_step_buffer::finish): New. | |
933 | (displaced_step_buffer::copy_insn_closure_by_addr): New. | |
934 | (displaced_step_buffer::restore_in_ptid): New. | |
935 | * gdbarch.sh (displaced_step_location): Remove. | |
936 | (displaced_step_prepare, displaced_step_finish, | |
937 | displaced_step_copy_insn_closure_by_addr, | |
938 | displaced_step_restore_all_in_ptid): New. | |
939 | * gdbarch.c: Re-generate. | |
940 | * gdbarch.h: Re-generate. | |
941 | * gdbthread.h (class thread_info) <displaced_step_state>: New | |
942 | field. | |
943 | (thread_step_over_chain_remove): New declaration. | |
944 | (thread_step_over_chain_next): New declaration. | |
945 | (thread_step_over_chain_length): New declaration. | |
946 | * thread.c (thread_step_over_chain_remove): Make non-static. | |
947 | (thread_step_over_chain_next): New. | |
948 | (global_thread_step_over_chain_next): Use | |
949 | thread_step_over_chain_next. | |
950 | (thread_step_over_chain_length): New. | |
951 | (global_thread_step_over_chain_enqueue): Add debug print. | |
952 | (global_thread_step_over_chain_remove): Add debug print. | |
953 | * infrun.h (get_displaced_step_copy_insn_closure_by_addr): | |
954 | Remove. | |
955 | * infrun.c (get_displaced_stepping_state): New. | |
956 | (displaced_step_in_progress_any_inferior): Remove. | |
957 | (displaced_step_in_progress_thread): Adjust. | |
958 | (displaced_step_in_progress): Adjust. | |
959 | (displaced_step_in_progress_any_thread): New. | |
960 | (get_displaced_step_copy_insn_closure_by_addr): Remove. | |
961 | (gdbarch_supports_displaced_stepping): Use | |
962 | gdbarch_displaced_step_prepare_p. | |
963 | (displaced_step_reset): Change parameter from inferior to | |
964 | thread. | |
965 | (displaced_step_prepare_throw): Implement using | |
966 | gdbarch_displaced_step_prepare. | |
967 | (write_memory_ptid): Move to displaced-step.c. | |
968 | (displaced_step_restore): Remove. | |
969 | (displaced_step_finish): Implement using | |
970 | gdbarch_displaced_step_finish. | |
971 | (start_step_over): Allow starting more than one displaced step. | |
972 | (prepare_for_detach): Handle possibly multiple threads doing | |
973 | displaced steps. | |
974 | (handle_inferior_event): Handle possibility that fork event | |
975 | happens while another thread displaced steps. | |
976 | * linux-tdep.h (linux_displaced_step_prepare): New. | |
977 | (linux_displaced_step_finish): New. | |
978 | (linux_displaced_step_copy_insn_closure_by_addr): New. | |
979 | (linux_displaced_step_restore_all_in_ptid): New. | |
980 | (linux_init_abi): Add supports_displaced_step parameter. | |
981 | * linux-tdep.c (struct linux_info) <disp_step_buf>: New field. | |
982 | (linux_displaced_step_prepare): New. | |
983 | (linux_displaced_step_finish): New. | |
984 | (linux_displaced_step_copy_insn_closure_by_addr): New. | |
985 | (linux_displaced_step_restore_all_in_ptid): New. | |
986 | (linux_init_abi): Add supports_displaced_step parameter, | |
987 | register displaced step methods if true. | |
988 | (_initialize_linux_tdep): Register inferior_execd observer. | |
989 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add | |
990 | supports_displaced_step parameter, adjust call to | |
991 | linux_init_abi. Remove call to | |
992 | set_gdbarch_displaced_step_location. | |
993 | (amd64_linux_init_abi): Adjust call to | |
994 | amd64_linux_init_abi_common. | |
995 | (amd64_x32_linux_init_abi): Likewise. | |
996 | * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to | |
997 | linux_init_abi. Remove call to | |
998 | set_gdbarch_displaced_step_location. | |
999 | * arm-linux-tdep.c (arm_linux_init_abi): Likewise. | |
1000 | * i386-linux-tdep.c (i386_linux_init_abi): Likewise. | |
1001 | * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to | |
1002 | linux_init_abi. | |
1003 | * arc-linux-tdep.c (arc_linux_init_osabi): Likewise. | |
1004 | * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise. | |
1005 | * cris-linux-tdep.c (cris_linux_init_abi): Likewise. | |
1006 | * csky-linux-tdep.c (csky_linux_init_abi): Likewise. | |
1007 | * frv-linux-tdep.c (frv_linux_init_abi): Likewise. | |
1008 | * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise. | |
1009 | * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise. | |
1010 | * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise. | |
1011 | * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise. | |
1012 | * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise. | |
1013 | * mips-linux-tdep.c (mips_linux_init_abi): Likewise. | |
1014 | * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise. | |
1015 | * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise. | |
1016 | * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise. | |
1017 | * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise. | |
1018 | * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise. | |
1019 | * sh-linux-tdep.c (sh_linux_init_abi): Likewise. | |
1020 | * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise. | |
1021 | * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise. | |
1022 | * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise. | |
1023 | * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise. | |
1024 | * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise. | |
1025 | * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to | |
1026 | linux_init_abi. Remove call to | |
1027 | set_gdbarch_displaced_step_location. | |
1028 | * arm-tdep.c (arm_pc_is_thumb): Call | |
1029 | gdbarch_displaced_step_copy_insn_closure_by_addr instead of | |
1030 | get_displaced_step_copy_insn_closure_by_addr. | |
1031 | * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to | |
1032 | clear gdbarch methods. | |
1033 | * rs6000-tdep.c (struct ppc_inferior_data): New structure. | |
1034 | (get_ppc_per_inferior): New function. | |
1035 | (ppc_displaced_step_prepare): New function. | |
1036 | (ppc_displaced_step_finish): New function. | |
1037 | (ppc_displaced_step_restore_all_in_ptid): New function. | |
1038 | (rs6000_gdbarch_init): Register new gdbarch methods. | |
1039 | * s390-tdep.c (s390_gdbarch_init): Don't call | |
1040 | set_gdbarch_displaced_step_location, set new gdbarch methods. | |
1041 | ||
1042 | 2020-12-04 Simon Marchi <simon.marchi@efficios.com> | |
1043 | ||
1044 | * Makefile.in (COMMON_SFILES): Add displaced-stepping.c. | |
1045 | * aarch64-tdep.h: Include displaced-stepping.h. | |
1046 | * displaced-stepping.h (struct displaced_step_copy_insn_closure): | |
1047 | Move here. | |
1048 | (displaced_step_copy_insn_closure_up): Move here. | |
1049 | (struct buf_displaced_step_copy_insn_closure): Move here. | |
1050 | (struct displaced_step_inferior_state): Move here. | |
1051 | (debug_displaced): Move here. | |
1052 | (displaced_debug_printf_1): Move here. | |
1053 | (displaced_debug_printf): Move here. | |
1054 | * displaced-stepping.c: New file. | |
1055 | * gdbarch.sh: Include displaced-stepping.h in gdbarch.h. | |
1056 | * gdbarch.h: Re-generate. | |
1057 | * inferior.h: Include displaced-stepping.h. | |
1058 | * infrun.h (debug_displaced): Move to displaced-stepping.h. | |
1059 | (displaced_debug_printf_1): Likewise. | |
1060 | (displaced_debug_printf): Likewise. | |
1061 | (struct displaced_step_copy_insn_closure): Likewise. | |
1062 | (displaced_step_copy_insn_closure_up): Likewise. | |
1063 | (struct buf_displaced_step_copy_insn_closure): Likewise. | |
1064 | (struct displaced_step_inferior_state): Likewise. | |
1065 | * infrun.c (show_debug_displaced): Move to displaced-stepping.c. | |
1066 | (displaced_debug_printf_1): Likewise. | |
1067 | (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure): | |
1068 | Likewise. | |
1069 | (_initialize_infrun): Don't register "set/show debug displaced". | |
1070 | ||
1071 | 2020-12-04 Simon Marchi <simon.marchi@efficios.com> | |
1072 | ||
1073 | * linux-tdep.c (get_linux_inferior_data): Add inferior | |
1074 | parameter. | |
1075 | (linux_vsyscall_range): Pass current inferior. | |
1076 | ||
1077 | 2020-12-04 Simon Marchi <simon.marchi@efficios.com> | |
1078 | ||
1079 | * infrun.c (displaced_step_prepare_throw): Change return type to | |
1080 | displaced_step_prepare_status. | |
1081 | (displaced_step_prepare): Likewise. | |
1082 | (displaced_step_finish): Change return type to | |
1083 | displaced_step_finish_status. | |
1084 | (resume_1): Adjust. | |
1085 | (stop_all_threads): Adjust. | |
1086 | * displaced-stepping.h: New file. | |
1087 | ||
1088 | 2020-12-04 Simon Marchi <simon.marchi@efficios.com> | |
1089 | ||
1090 | * infrun.c (displaced_step_fixup): Rename to... | |
1091 | (displaced_step_finish): ... this, update all callers. | |
1092 | ||
1093 | 2020-12-04 Simon Marchi <simon.marchi@efficios.com> | |
1094 | ||
1095 | * infrun.h (get_displaced_step_closure_by_addr): Rename to... | |
1096 | (get_displaced_step_copy_insn_closure_by_addr): ... this. | |
1097 | Update all users. | |
1098 | (displaced_step_closure): Rename to... | |
1099 | (displaced_step_copy_insn_closure): ... this. Update all users. | |
1100 | (displaced_step_closure_up): Rename to... | |
1101 | (displaced_step_copy_insn_closure_up). ... this. Update all | |
1102 | users. | |
1103 | (buf_displaced_step_closure): Rename to... | |
1104 | (buf_displaced_step_copy_insn_closure): ... this. Update all | |
1105 | users. | |
1106 | * infrun.c (get_displaced_step_closure_by_addr): Rename to... | |
1107 | (get_displaced_step_copy_insn_closure_by_addr): ... this. | |
1108 | Update all users. | |
1109 | * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to... | |
1110 | (aarch64_displaced_step_copy_insn_closure): ... this. Update | |
1111 | all users. | |
1112 | * amd64-tdep.c (amd64_displaced_step_closure): Rename to... | |
1113 | (amd64_displaced_step_copy_insn_closure): ... this. Update all | |
1114 | users. | |
1115 | * arm-tdep.h (arm_displaced_step_closure): Rename to... | |
1116 | (arm_displaced_step_copy_insn_closure): ... this. Update all | |
1117 | users. | |
1118 | * i386-tdep.h (i386_displaced_step_closure): Rename to... | |
1119 | (i386_displaced_step_copy_insn_closure): ... this. Update all | |
1120 | users. | |
1121 | * rs6000-tdep.c (ppc_displaced_step_closure): Rename to... | |
1122 | (ppc_displaced_step_copy_insn_closure): ... this. Update all | |
1123 | users. | |
1124 | * s390-tdep.c (s390_displaced_step_closure): Rename to... | |
1125 | (s390_displaced_step_copy_insn_closure): ... this. Update all | |
1126 | users. | |
1127 | * gdbarch.h: Re-generate. | |
1128 | * gdbarch.c: Re-generate. | |
1129 | ||
1130 | 2020-12-04 Simon Marchi <simon.marchi@efficios.com> | |
1131 | ||
1132 | * gdbthread.h (thread_step_over_chain_enqueue): Rename to... | |
1133 | (global_thread_step_over_chain_enqueue): ... this. Update all | |
1134 | users. | |
1135 | (thread_step_over_chain_remove): Rename to... | |
1136 | (global_thread_step_over_chain_remove): ... this. Update all | |
1137 | users. | |
1138 | (thread_step_over_chain_next): Rename to... | |
1139 | (global_thread_step_over_chain_next): ... this. Update all | |
1140 | users. | |
1141 | * infrun.h (step_over_queue_head): Rename to... | |
1142 | (global_thread_step_over_chain_head): ... this. Update all | |
1143 | users. | |
1144 | * infrun.c (step_over_queue_head): Rename to... | |
1145 | (global_thread_step_over_chain_head): ... this. Update all | |
1146 | users. | |
1147 | * thread.c (step_over_chain_remove): Rename to... | |
1148 | (thread_step_over_chain_remove): ... this. Update all users. | |
1149 | (thread_step_over_chain_next): Rename to... | |
1150 | (global_thread_step_over_chain_next): ... this. Update all | |
1151 | users. | |
1152 | (thread_step_over_chain_enqueue): Rename to... | |
1153 | (global_thread_step_over_chain_enqueue): ... this. Update all | |
1154 | users. | |
1155 | (thread_step_over_chain_remove): Rename to... | |
1156 | (global_thread_step_over_chain_remove): ... this. Update all | |
1157 | users. | |
1158 | ||
1159 | 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca> | |
1160 | ||
1161 | * infrun.c (get_displaced_stepping_state): Remove, change | |
1162 | callers to access the field directly. | |
1163 | ||
1164 | 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca> | |
1165 | ||
1166 | * infrun.c (handle_inferior_event): Restore displaced step | |
1167 | buffer bytes in child process when handling fork, even if fork | |
1168 | happened in another thread than the displaced-stepping one. | |
1169 | ||
1170 | 2020-12-04 Simon Marchi <simon.marchi@efficios.com> | |
1171 | ||
1172 | * infrun.c (infrun_inferior_execd): New function. | |
1173 | (_initialize_infrun): Attach inferior_execd observer. | |
1174 | ||
1175 | 2020-12-04 Simon Marchi <simon.marchi@efficios.com> | |
1176 | ||
1177 | * observable.h (inferior_execd): Declare new observable. | |
1178 | * observable.c (inferior_execd): Declare new observable. | |
1179 | * infrun.c (follow_exec): Notify inferior_execd observer. | |
1180 | * jit.c (jit_inferior_created_hook): Make static. | |
1181 | (_initialize_jit): Register inferior_execd observer. | |
1182 | * jit.h (jit_inferior_created_hook): Remove declaration. | |
1183 | * solib.c (_initialize_solib): Register inferior_execd observer. | |
1184 | ||
1185 | 2020-12-04 Tom de Vries <tdevries@suse.de> | |
1186 | ||
1187 | PR gdb/27003 | |
1188 | * completer.c (completion_tracker::build_completion_result): Don't | |
1189 | access match_list[0][-1]. | |
1190 | ||
1191 | 2020-12-04 Tom Tromey <tromey@adacore.com> | |
1192 | ||
1193 | * linespec.c (struct linespec_token): Rename; remove typedef. | |
1194 | * guile/scm-block.c (struct block_smob): Remove typedef. | |
1195 | (struct block_syms_progress_smob): Likewise. | |
1196 | * guile/scm-symbol.c (struct symbol_smob): Remove typedef. | |
1197 | * guile/scm-symtab.c (symtab_smob): Remove typedef. | |
1198 | (struct sal_smob): Remove typedef. | |
1199 | * guile/scm-param.c (struct param_smob): Remove typedef. | |
1200 | * guile/scm-progspace.c (struct pspace_smob): Rename. | |
1201 | * guile/scm-objfile.c (struct objfile_smob): Rename. | |
1202 | * guile/scm-iterator.c (struct iterator_smob): Rename. | |
1203 | * guile/scm-frame.c (struct frame_smob): Rename. | |
1204 | * guile/scm-arch.c (struct arch_smob): Rename. | |
1205 | * guile/scm-type.c (struct field_smob): Remove typedef. | |
1206 | (struct type_smob): Rename. | |
1207 | * guile/scm-cmd.c (struct command_smob): Remove typedef. | |
1208 | * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef. | |
1209 | * guile/scm-value.c (struct value_smob): Remove typedef. | |
1210 | * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef. | |
1211 | * guile/guile-internal.h (struct scheme_variable) | |
1212 | (struct scheme_function, struct scheme_integer_constant) | |
1213 | (struct gdb_smob, struct chained_gdb_smob) | |
1214 | (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob) | |
1215 | (objfile_smob, pspace_smob, type_smob): Remove typedef. | |
1216 | * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef. | |
1217 | (struct pretty_printer_worker_smob): Remove typedef. | |
1218 | * guile/scm-exception.c (struct exception_smob): Remove typedef. | |
1219 | * python/py-block.c (struct block_object): Remove typedef. | |
1220 | (block_syms_iterator_object): Update. | |
1221 | (set_block): Update. | |
1222 | (block_syms_iterator_object): Remove typedef. | |
1223 | * python/py-inferior.c (struct membuf_object): Remove typedef. | |
1224 | * python/py-symtab.c (struct symtab_object): Remove typedef. | |
1225 | (set_symtab): Update. | |
1226 | (sal_object): Remove typedef. | |
1227 | (set_sal): Update. | |
1228 | * python/py-frame.c (frame_object): Remove typedef. | |
1229 | * python/py-record-btrace.c (struct btpy_list_object): Remove | |
1230 | typedef. | |
1231 | * python/py-arch.c (struct arch_object): Remove typedef. | |
1232 | * python/py-linetable.c (struct linetable_entry_object) | |
1233 | (linetable_object, struct ltpy_iterator_object): Remove typedef. | |
1234 | * python/py-events.h (eventregistry_object): Remove typedef. | |
1235 | (struct events_object): Remove typedef. | |
1236 | * python/python-internal.h (gdbpy_breakpoint_object): Remove | |
1237 | typedef. | |
1238 | (thread_object): Remove typedef. | |
1239 | * python/py-progspace.c (pspace_object): Remove typedef. | |
1240 | * python/py-value.c (struct value_object): Remove typedef. | |
1241 | * python/py-record.h (recpy_record_object): Remove typedef. | |
1242 | (struct recpy_element_object): Remove typedef. | |
1243 | * python/py-lazy-string.c (lazy_string_object): Remove typedef. | |
1244 | * python/py-objfile.c (objfile_object): Remove typedef. | |
1245 | * python/py-cmd.c (struct cmdpy_object): Remove typedef. | |
1246 | * python/py-type.c (type_object): Remove typedef. | |
1247 | (typy_iterator_object): Update. | |
1248 | (set_type): Update. | |
1249 | (field_object): Remove typedef. | |
1250 | (typy_iterator_object): Remove typedef. | |
1251 | * python/py-registers.c (register_descriptor_iterator_object): | |
1252 | Remove typedef. | |
1253 | (struct register_descriptor_object) | |
1254 | (struct reggroup_iterator_object, struct reggroup_object): Remove | |
1255 | typedef. | |
1256 | * python/py-record.c (recpy_gap_object): Remove typedef. | |
1257 | * python/py-symbol.c (symbol_object): Remove typedef. | |
1258 | (set_symbol): Update. | |
1259 | * python/py-event.h (event_object): Remove typedef. | |
1260 | * python/py-param.c (parmpy_object): Remove typedef. | |
1261 | * python/py-instruction.c (struct py_insn_obj): Remove typedef. | |
1262 | * python/py-unwind.c (struct pending_frame_object): Remove typedef. | |
1263 | (unwind_info_object, struct cached_frame_info): Likewise. | |
1264 | ||
1265 | 2020-12-04 Tom Tromey <tromey@adacore.com> | |
1266 | ||
1267 | * value.c (value_internal_function_name): Make return type const. | |
1268 | * value.h (value_internal_function_name): Make return type const. | |
1269 | ||
1270 | 2020-12-04 Luis Machado <luis.machado@linaro.org> | |
1271 | ||
1272 | * aarch64-tdep.c (submask, bit, bits): Remove. | |
1273 | * arch/aarch64-insn.c (extract_signed_bitfield): Remove. | |
1274 | (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond) | |
1275 | (aarch64_decode_cb, aarch64_decode_tb) | |
1276 | (aarch64_decode_ldr_literal): Use sbits to extract a signed | |
1277 | immediate. | |
1278 | * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros. | |
1279 | ||
1280 | 2020-12-04 Tom de Vries <tdevries@suse.de> | |
1281 | ||
1282 | PR tdep/27007 | |
1283 | * i386-tdep.c (i386_16_byte_align_p): Skip static fields. | |
1284 | ||
1285 | 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca> | |
1286 | ||
1287 | PR gdb/26876 | |
1288 | * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of | |
1289 | dwarf2_frame_bfd_data and dwarf2_frame_objfile_data. | |
1290 | ||
1291 | 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com> | |
1292 | ||
1293 | * arch/riscv.c: Include 'rv32e-xregs.c'. | |
1294 | (riscv_create_target_description): Update to handle rv32e. | |
1295 | * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New | |
1296 | member variable. | |
1297 | <operator==>: Update to account for new field. | |
1298 | <hash>: Likewise. | |
1299 | * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml. | |
1300 | * features/riscv/rv32e-xregs.c: Generated. | |
1301 | * features/riscv/rv32e-xregs.xml: New file. | |
1302 | * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the | |
1303 | file. | |
1304 | (riscv_debug_infcall): Likewise. | |
1305 | (riscv_debug_unwinder): Likewise. | |
1306 | (riscv_debug_gdbarch): Likewise. | |
1307 | (enum riscv_register_required_status): Delete. | |
1308 | (struct riscv_register_feature): Add constructor, delete default | |
1309 | constructor, copy, and assign constructors. | |
1310 | (struct riscv_register_feature::register_info) <required>: Delete. | |
1311 | <check>: Update comment and arguments. | |
1312 | (struct riscv_register_feature) <name>: Change to member function. | |
1313 | <prefer_first_name>: Delete. | |
1314 | <tdesc_feature>: New member function. | |
1315 | <registers>: Rename to... | |
1316 | <m_registers>: ...this. | |
1317 | <m_feature_name>: New member variable. | |
1318 | (riscv_register_feature::register_info::check): Update arguments. | |
1319 | (riscv_xreg_feature): Rewrite as class, create a single static | |
1320 | instance of the class. | |
1321 | (riscv_freg_feature): Likewise. | |
1322 | (riscv_virtual_feature): Likewise. | |
1323 | (riscv_csr_feature): Likewise. | |
1324 | (riscv_create_csr_aliases): Has become a member function inside | |
1325 | riscv_csr_feature class. | |
1326 | (riscv_abi_embedded): New function definition. | |
1327 | (riscv_register_name): Adjust to use new feature objects. | |
1328 | (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi, | |
1329 | and adjust available argument registers. | |
1330 | (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag. | |
1331 | (riscv_check_tdesc_feature): Delete. | |
1332 | (riscv_tdesc_unknown_reg): Adjust to use new feature objects. | |
1333 | (riscv_gdbarch_init): Delete target description checking code, and | |
1334 | instead call to the new feature objects to perform the checks. | |
1335 | Reorder handling of no abi information case, allows small code | |
1336 | simplification. | |
1337 | (_initialize_riscv_tdep): Remove call, this is now done in the | |
1338 | riscv_csr_feature constructor. | |
1339 | * riscv-tdep.h (riscv_abi_embedded): Declare. | |
1340 | ||
1341 | 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com> | |
1342 | ||
1343 | * riscv-tdep.c (riscv_create_csr_aliases): Remove use of | |
1344 | DECLARE_CSR_ALIAS. | |
1345 | ||
1346 | 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com> | |
1347 | ||
1348 | * riscv-tdep.c (riscv_is_unknown_csr): New function, | |
1349 | implementation moved from riscv_register_reggroup_p. | |
1350 | (riscv_register_reggroup_p): Update group handling for unknown | |
1351 | CSRs. | |
1352 | ||
1353 | 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net> | |
1354 | ||
1355 | * dwarf2/read.c (dwz_search_other_debugdirs): New function. | |
1356 | (dwarf2_get_dwz_file): Convert 'filename' to a | |
1357 | std::string. Use dwz_search_other_debugdirs to search for DWZ | |
1358 | files in the debug-file-directories provided by the user as well. | |
1359 | ||
1360 | 2020-12-01 Tom Tromey <tom@tromey.com> | |
1361 | ||
1362 | * parse.c (expr_builder::expr_builder): Initialize expout. | |
1363 | (expr_builder::release): Use expression::resize. | |
1364 | (expression::expression, expression::~expression) | |
1365 | (expression::resize): New methods. | |
1366 | (write_exp_elt): Use expression::resize. | |
1367 | (prefixify_expression): Update. | |
1368 | (increase_expout_size): Use expression::resize. | |
1369 | * expression.h (struct expression): Add constructor, destructor. | |
1370 | <resize>: New method. | |
1371 | (expression_up): Change type. | |
1372 | ||
1373 | 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com> | |
1374 | * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define. | |
1375 | (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before | |
1376 | set region. | |
1377 | ||
1378 | 2020-11-30 Tom de Vries <tdevries@suse.de> | |
1379 | ||
1380 | PR symtab/26905 | |
1381 | * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle | |
1382 | is_reference parameter. | |
1383 | (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call. | |
1384 | ||
1385 | 2020-11-30 Tom Tromey <tom@tromey.com> | |
1386 | ||
1387 | * rust-lang.c (rust_op_name): Remove. | |
1388 | (exp_descriptor_rust): Update. | |
1389 | * parser-defs.h (op_name_standard): Don't declare. | |
1390 | (struct exp_descriptor) <op_name>: Remove. | |
1391 | * parse.c (exp_descriptor_standard): Update. | |
1392 | * opencl-lang.c (exp_descriptor_opencl): Update. | |
1393 | * m2-lang.c (m2_language::exp_descriptor_modula2): Update. | |
1394 | * f-lang.c (op_name_f): Remove. | |
1395 | (f_language::exp_descriptor_tab): Update. | |
1396 | * expression.h (op_name): Update. | |
1397 | * expprint.c (op_name): Rewrite. | |
1398 | (op_name_standard): Remove. | |
1399 | (dump_raw_expression, dump_subexp): Update. | |
1400 | * c-lang.c (exp_descriptor_c): Update. | |
1401 | * ax-gdb.c (gen_expr): Update. | |
1402 | * ada-lang.c (ada_op_name): Remove. | |
1403 | (ada_exp_descriptor): Update. | |
1404 | ||
1405 | 2020-11-30 Tom Tromey <tom@tromey.com> | |
1406 | ||
1407 | * eval.c (init_array_element): Remove. | |
1408 | (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc". | |
1409 | ||
1410 | 2020-11-29 Hannes Domani <ssbssa@yahoo.de> | |
1411 | ||
1412 | PR tui/26973 | |
1413 | * tui/tui-layout.c (tui_apply_current_layout): Don't delete the | |
1414 | static locator win info. | |
1415 | ||
1416 | 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> | |
1417 | ||
1418 | * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test | |
1419 | program. | |
1420 | ||
1421 | 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com> | |
1422 | ||
1423 | * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt | |
1424 | is always initialized. | |
1425 | ||
1426 | 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com> | |
1427 | * MAINTAINERS (Write After Approval): Add myself. | |
1428 | ||
1429 | 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com> | |
1430 | ||
1431 | * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate. | |
1432 | * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields. | |
1433 | ||
1434 | 2020-11-25 Tom Tromey <tom@tromey.com> | |
1435 | ||
1436 | * eval.c (evaluate_subexp_standard): Remove unnecessary | |
1437 | variables. | |
1438 | ||
1439 | 2020-11-25 Tom Tromey <tom@tromey.com> | |
1440 | ||
1441 | * d-lang.c: Include parser-defs.h. | |
1442 | * rust-lang.c: Include parser-defs.h. | |
1443 | * c-lang.h: Do not include parser-defs.h. | |
1444 | ||
1445 | 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca> | |
1446 | ||
1447 | * regcache.h (struct cached_reg): Remove typedef. | |
1448 | ||
1449 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> | |
1450 | ||
1451 | * README: Fix the URL of the MPFR library. | |
1452 | ||
1453 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> | |
1454 | ||
1455 | * README: Document the --with-libgmp-prefix configure option. | |
1456 | ||
1457 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> | |
1458 | ||
1459 | * NEWS: Add entry documenting support for DWARF-based fixed | |
1460 | point types. | |
1461 | ||
1462 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> | |
1463 | ||
1464 | * NEWS: Document that building GDB now requires GMP. | |
1465 | ||
1466 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> | |
1467 | ||
1468 | * typeprint.c (print_type_scalar): Add handling of | |
1469 | TYPE_CODE_FIXED_POINT. | |
1470 | ||
1471 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> | |
1472 | ||
1473 | * valarith.c (fixed_point_binop): Replace the | |
1474 | INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all | |
1475 | users accordingly. | |
1476 | ||
1477 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> | |
1478 | ||
1479 | * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method, | |
1480 | replacing fixed_point_scaling_factor. All callers updated | |
1481 | throughout this project. | |
1482 | (fixed_point_scaling_factor): Delete declaration. | |
1483 | * gdbtypes.c (type::fixed_point_scaling_factor): Replaces | |
1484 | fixed_point_scaling_factor. Adjust implementation accordingly. | |
1485 | ||
1486 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> | |
1487 | ||
1488 | * gdbtypes.h (struct type) <fixed_point_type_base_type> New method, | |
1489 | replacing the fixed_point_type_base_type function. All callers | |
1490 | updated throughout this project. | |
1491 | (fixed_point_type_base_type): Remove declaration. | |
1492 | * gdbtypes.c (type::fixed_point_type_base_type): Replaces | |
1493 | fixed_point_type_base_type. Adjust implementation accordingly. | |
1494 | ||
1495 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> | |
1496 | ||
1497 | * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>: | |
1498 | New methods. | |
1499 | (INIT_FIXED_POINT_SPECIFIC): Adjust. | |
1500 | (TYPE_FIXED_POINT_INFO): Delete macro. | |
1501 | (allocate_fixed_point_type_info): Change return type to void. | |
1502 | * gdbtypes.c (copy_type_recursive): Replace the use of | |
1503 | TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method. | |
1504 | (fixed_point_scaling_factor): Likewise. | |
1505 | (allocate_fixed_point_type_info): Change return type to void. | |
1506 | Adjust implementation accordingly. | |
1507 | * dwarf2/read.c (finish_fixed_point_type): Replace the use of | |
1508 | TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method. | |
1509 | ||
1510 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> | |
1511 | ||
1512 | * gmp-utils.h (gdb_mpz::read): Change buf and len parameters | |
1513 | into one single gdb::array_view parameter. | |
1514 | (gdb_mpz::write): Likewise. | |
1515 | (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise. | |
1516 | * gmp-utils.c (gdb_mpz::read): Change buf and len parameters | |
1517 | into one single gdb::array_view parameter. | |
1518 | Adjust implementation accordingly. | |
1519 | (gdb_mpz::write): Likewise. | |
1520 | (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise. | |
1521 | * unittests/gmp-utils-selftests.c: Adapt following changes above. | |
1522 | * valarith.c, valops.c, valprint.c, value.c: Likewise. | |
1523 | ||
1524 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> | |
1525 | ||
1526 | * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf. | |
1527 | Change return type to std::string. Update all callers. | |
1528 | * gmp-utils.c (gmp_string_printf): Likewise. | |
1529 | ||
1530 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> | |
1531 | ||
1532 | * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si | |
1533 | instead of mpq_set_ui to initialize our GMP rational. | |
1534 | ||
1535 | 2020-11-23 Tom de Vries <tdevries@suse.de> | |
1536 | ||
1537 | * debuginfod-support.c (debuginfod_source_query) | |
1538 | (debuginfod_debuginfo_query): Only set DESTNAME if successful. | |
1539 | ||
1540 | 2020-11-21 Tom Tromey <tom@tromey.com> | |
1541 | ||
1542 | * breakpoint.c (watchpoint_exp_is_const): Return bool. | |
1543 | ||
1544 | 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca> | |
1545 | ||
1546 | * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small): | |
1547 | Pass 2.0 to pow. | |
1548 | (gdb_mpz_write_all_from_small): Likewise. | |
1549 | ||
1550 | 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca> | |
1551 | ||
1552 | * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead | |
1553 | of abs. | |
1554 | ||
1555 | 2020-11-20 Nick Alcock <nick.alcock@oracle.com> | |
1556 | ||
1557 | * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not | |
1558 | ctf_arc_open_by_name. | |
1559 | ||
1560 | 2020-11-20 Nick Alcock <nick.alcock@oracle.com> | |
1561 | ||
1562 | * ctfread.c: Change uses of ctf_file_t to ctf_dict_t. | |
1563 | (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close. | |
1564 | ||
1565 | 2020-11-20 Pedro Alves <pedro@palves.net> | |
1566 | ||
1567 | * language.c (language_arch_info::lookup_primitive_type): Use | |
1568 | gdb::function_view instead of gdb::function. | |
1569 | (template language_lookup_primitive_type): Rename to ... | |
1570 | (language_lookup_primitive_type_1): ... this, and make static. | |
1571 | (language_lookup_primitive_type(const struct language_defn *, | |
1572 | struct gdbarch *, const char *): Make non-template. | |
1573 | (language_lookup_primitive_type(const struct language_defn *, | |
1574 | struct gdbarch *, std::function<bool (struct type *)>): Make | |
1575 | non-template and use gdb::function_view. | |
1576 | * language.h (language_arch_info::lookup_primitive_type): Use | |
1577 | gdb::function_view instead of std::function. | |
1578 | (language_lookup_primitive_type): No longer template. | |
1579 | * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a | |
1580 | lambda instead of a std::function. | |
1581 | ||
1582 | 2020-11-19 Andreas Arnez <arnez@linux.ibm.com> | |
1583 | ||
1584 | PR tdep/26916 | |
1585 | * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG, | |
1586 | and STOCFH. | |
1587 | ||
1588 | 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca> | |
1589 | ||
1590 | * f-lang.c (fortran_value_subarray): Use plongest/pulongest. | |
1591 | ||
1592 | 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca> | |
1593 | ||
1594 | * gdbarch.sh (read_core_file_mappings): Remove `other` parameter | |
1595 | in `loop_cb` parameter. | |
1596 | * gdbarch.c: Re-generate. | |
1597 | * gdbarch.h: Re-generate. | |
1598 | * arch-utils.c (default_read_core_file_mappings): Remove `other` | |
1599 | parameter. | |
1600 | * arch-utils.h (default_read_core_file_mappings): Likewise. | |
1601 | * corelow.c (core_target::build_file_mappings): Likewise. | |
1602 | * linux-tdep.c (linux_read_core_file_mappings): Likewise. | |
1603 | (linux_core_info_proc_mappings): Likewise. | |
1604 | ||
1605 | 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com> | |
1606 | ||
1607 | * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h. | |
1608 | * NEWS: Mention new options. | |
1609 | * f-array-walker.h: New file. | |
1610 | * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'. | |
1611 | (repack_array_slices): New static global. | |
1612 | (show_repack_array_slices): New function. | |
1613 | (fortran_array_slicing_debug): New static global. | |
1614 | (show_fortran_array_slicing_debug): New function. | |
1615 | (value_f90_subarray): Delete. | |
1616 | (skip_undetermined_arglist): Delete. | |
1617 | (class fortran_array_repacker_base_impl): New class. | |
1618 | (class fortran_lazy_array_repacker_impl): New class. | |
1619 | (class fortran_array_repacker_impl): New class. | |
1620 | (fortran_value_subarray): Complete rewrite. | |
1621 | (set_fortran_list): New static global. | |
1622 | (show_fortran_list): Likewise. | |
1623 | (_initialize_f_language): Register new commands. | |
1624 | (fortran_adjust_dynamic_array_base_address_hack): New function. | |
1625 | * f-lang.h (fortran_adjust_dynamic_array_base_address_hack): | |
1626 | Declare. | |
1627 | * f-valprint.c: Include 'f-array-walker.h'. | |
1628 | (class fortran_array_printer_impl): New class. | |
1629 | (f77_print_array_1): Delete. | |
1630 | (f77_print_array): Delete. | |
1631 | (fortran_print_array): New. | |
1632 | (f_value_print_inner): Update to call fortran_print_array. | |
1633 | * gdbtypes.c: Include 'f-lang.h'. | |
1634 | (resolve_dynamic_type_internal): Call | |
1635 | fortran_adjust_dynamic_array_base_address_hack. | |
1636 | ||
1637 | 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com> | |
1638 | ||
1639 | * breakpoint.c (struct watch_options): New struct. | |
1640 | (watch_option_defs): New static global. | |
1641 | (make_watch_options_def_group): New function. | |
1642 | (watch_maybe_just_location): Convert option parsing. | |
1643 | (watch_command_completer): New function. | |
1644 | (_initialize_breakpoint): Build help text using options mechanism. | |
1645 | ||
1646 | 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com> | |
1647 | ||
1648 | * breakpoint.c (update_watchpoint): Pass 'false' not '0'. | |
1649 | (watch_command_1): Update parameter types. Convert locals to | |
1650 | bool. | |
1651 | (watch_command_wrapper): Change parameter type. | |
1652 | (watch_maybe_just_location): Change locals to bool. | |
1653 | (rwatch_command_wrapper): Update parameter type. | |
1654 | (awatch_command_wrapper): Update parameter type. | |
1655 | * breakpoint.h (watch_command_wrapper): Change parameter type. | |
1656 | (rwatch_command_wrapper): Update parameter type. | |
1657 | (awatch_command_wrapper): Update parameter type. | |
1658 | * eval.c (fetch_subexp_value): Change parameter type. | |
1659 | * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass | |
1660 | 'false' not '0'. | |
1661 | * value.h (fetch_subexp_value): Change parameter type in | |
1662 | declaration. | |
1663 | ||
1664 | 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com> | |
1665 | ||
1666 | * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and | |
1667 | skip_spaces. | |
1668 | ||
1669 | 2020-11-18 Keith Seitz <keiths@redhat.com> | |
1670 | ||
1671 | * linux-tdep.c (dump_note_entry_p): Return true instead of | |
1672 | checking `filename'. | |
1673 | ||
1674 | 2020-11-18 Tom de Vries <tdevries@suse.de> | |
1675 | ||
1676 | * debuginfod-support.c (debuginfod_source_query) | |
1677 | (debuginfod_debuginfo_query): Also do early exit if | |
1678 | "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'". | |
1679 | ||
1680 | 2020-11-18 Tom de Vries <tdevries@suse.de> | |
1681 | ||
1682 | * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare | |
1683 | warning. | |
1684 | ||
1685 | 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca> | |
1686 | ||
1687 | * gdbtypes.h (get_array_bounds): Return bool, adjust some | |
1688 | callers. Move doc here. | |
1689 | * gdbtypes.c (get_array_bounds): Return bool | |
1690 | ||
1691 | 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com> | |
1692 | ||
1693 | * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an | |
1694 | assert. | |
1695 | * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise. | |
1696 | * disasm-selftests.c (print_one_insn_test): Fall throough from ARC | |
1697 | case to the default. | |
1698 | ||
1699 | 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com> | |
1700 | ||
1701 | * printcmd.c: Include 'safe-ctype.c'. | |
1702 | (skip_over_slash_fmt): New function. | |
1703 | (print_command_completer): Call skip_over_slash_fmt. | |
1704 | (display_and_x_command_completer): New function. | |
1705 | (_initialize_printcmd): Add command completion for 'x' and | |
1706 | 'display'. | |
1707 | ||
1708 | 2020-11-16 Pedro Alves <pedro@palves.net> | |
1709 | ||
1710 | * frame.c (get_prev_frame): Move get_frame_id call from here ... | |
1711 | (get_prev_frame_always_1): ... to here. | |
1712 | * inline-frame.c (inline_frame_this_id): Mention | |
1713 | get_prev_frame_always_1 in comment. | |
1714 | ||
1715 | 2020-11-15 Joel Brobecker <brobecker@adacore.com> | |
1716 | ||
1717 | * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS | |
1718 | handling. | |
1719 | (value_less): Add fixed-point handling. | |
1720 | ||
1721 | 2020-11-15 Joel Brobecker <brobecker@adacore.com> | |
1722 | ||
1723 | * eval.c (binop_promote): Add fixed-point type handling. | |
1724 | * valarith.c (fixed_point_binop): New function. | |
1725 | (scalar_binop): Add fixed-point type handling. | |
1726 | (value_neg): Add fixed-point type handling. | |
1727 | * valops.c (value_cast_to_fixed_point): New function. | |
1728 | (value_cast): Add fixed-point type handling. | |
1729 | ||
1730 | 2020-11-15 Joel Brobecker <brobecker@adacore.com> | |
1731 | ||
1732 | * ada-typeprint.c (ada_print_type): Add handing of fixed-point | |
1733 | range types. | |
1734 | * c-typeprint.c (c_type_print_varspec_prefix) | |
1735 | (c_type_print_varspec_suffix, c_type_print_base_1): Add | |
1736 | TYPE_CODE_FIXED_POINT handling. | |
1737 | * p-typeprint.c (pascal_type_print_varspec_prefix) | |
1738 | (pascal_type_print_varspec_suffix): Likewise. | |
1739 | * typeprint.c (print_type_fixed_point): New function. | |
1740 | * typeprint.h (print_type_fixed_point): Add declaration. | |
1741 | ||
1742 | 2020-11-15 Joel Brobecker <brobecker@adacore.com> | |
1743 | ||
1744 | * printcmd.c (print_scalar_formatted): Add fixed-point type | |
1745 | handling when options->format is set. | |
1746 | ||
1747 | 2020-11-15 Joel Brobecker <brobecker@adacore.com> | |
1748 | ||
1749 | * ada-valprint.c (ada_value_print_1): Add fixed-point type handling. | |
1750 | * dwarf2/read.c (get_dwarf2_rational_constant) | |
1751 | (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type) | |
1752 | (has_zero_over_zero_small_attribute): New functions. | |
1753 | read_base_type, set_die_type): Add fixed-point type handling. | |
1754 | * gdb-gdb.py.in: Add fixed-point type handling. | |
1755 | * gdbtypes.c: #include "gmp-utils.h". | |
1756 | (create_range_type, set_type_code): Add fixed-point type handling. | |
1757 | (init_fixed_point_type): New function. | |
1758 | (is_integral_type, is_scalar_type): Add fixed-point type handling. | |
1759 | (print_fixed_point_type_info): New function. | |
1760 | (recursive_dump_type, copy_type_recursive): Add fixed-point type | |
1761 | handling. | |
1762 | (fixed_point_type_storage): New typedef. | |
1763 | (fixed_point_objfile_key): New static global. | |
1764 | (allocate_fixed_point_type_info, is_fixed_point_type): New functions. | |
1765 | (fixed_point_type_base_type, fixed_point_scaling_factor): New | |
1766 | functions. | |
1767 | * gdbtypes.h: #include "gmp-utils.h". | |
1768 | (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum. | |
1769 | (union type_specific) <fixed_point_info>: New field. | |
1770 | (struct fixed_point_type_info): New struct. | |
1771 | (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros. | |
1772 | (init_fixed_point_type, is_fixed_point_type) | |
1773 | (fixed_point_type_base_type, fixed_point_scaling_factor) | |
1774 | (allocate_fixed_point_type_info): Add declarations. | |
1775 | * valprint.c (generic_val_print_fixed_point): New function. | |
1776 | (generic_value_print): Add fixed-point type handling. | |
1777 | * value.c (value_as_address, unpack_long): Add fixed-point type | |
1778 | handling. | |
1779 | ||
1780 | 2020-11-15 Joel Brobecker <brobecker@adacore.com> | |
1781 | ||
1782 | * utils.h (uinteger_pow): Add declaration. | |
1783 | * utils.c (uinteger_pow): Moved here (without changes)... | |
1784 | * valarith.c (uinteger_pow): ... from here. | |
1785 | ||
1786 | 2020-11-15 Joel Brobecker <brobecker@adacore.com> | |
1787 | ||
1788 | * gmp-utils.h, gmp-utils.c: New file. | |
1789 | * unittests/gmp-utils-selftests.c: New file. | |
1790 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
1791 | unittests/gmp-utils-selftests.c. | |
1792 | (COMMON_SFILES) Add gmp-utils.c. | |
1793 | (HFILES_NO_SRCDIR): Add gmp-utils.h. | |
1794 | ||
1795 | 2020-11-15 Joel Brobecker <brobecker@adacore.com> | |
1796 | ||
1797 | * configure.ac: Generate an error if a usable GMP library | |
1798 | could not be found. | |
1799 | * configure: Regenerate. | |
1800 | ||
1801 | 2020-11-15 Joel Brobecker <brobecker@adacore.com> | |
1802 | ||
1803 | * configure.ac: Add support for --with-libgmp-prefix. | |
1804 | * Makefile.in (LIBGMP): New variable. | |
1805 | (CLIBS): Include $(LIBGMP). | |
1806 | * configure, config.in: Regenerate | |
1807 | ||
1808 | 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com> | |
1809 | ||
1810 | PR cli/26879 | |
1811 | * f-exp.y (COMPLETE): New token. | |
1812 | (exp): Two new rules for tab-completion. | |
1813 | (saw_name_at_eof): New static global. | |
1814 | (last_was_structop): Likewise. | |
1815 | (yylex): Set new variables, and return COMPLETE token at the end | |
1816 | of the input stream in some cases. | |
1817 | ||
1818 | 2020-11-14 Tom Tromey <tom@tromey.com> | |
1819 | ||
1820 | * infrun.c (fetch_inferior_event): Use "bool" for should_stop. | |
1821 | ||
1822 | 2020-11-14 Tom Tromey <tom@tromey.com> | |
1823 | ||
1824 | * opencl-lang.c (opencl_component_ref): Make "comps" const. | |
1825 | ||
1826 | 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca> | |
1827 | ||
1828 | * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment. | |
1829 | ||
1830 | 2020-11-13 Tom Tromey <tom@tromey.com> | |
1831 | ||
1832 | * c-lang.c (convert_ucn, convert_octal, convert_hex) | |
1833 | (convert_escape, parse_one_string): Constify. | |
1834 | ||
1835 | 2020-11-13 Keith Seitz <keiths@redhat.com> | |
1836 | ||
1837 | https://bugzilla.redhat.com/show_bug.cgi?id=1553086 | |
1838 | * elfread.c (elf_symfile_segments): Omit "Loadable section ... | |
1839 | outside of ELF segments" warning for debugin | |
1840 | ||
1841 | 2020-11-13 Keith Seitz <keiths@redhat.com> | |
1842 | ||
1843 | PR gdb/23034 | |
1844 | * elfread.c (elf_symfile_segments): Output a BFD file name | |
1845 | for the "Loadable section ... outside of ELF segments" warning. | |
1846 | ||
1847 | 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca> | |
1848 | ||
1849 | PR gdb/26835 | |
1850 | * arm-tdep.c (class arm_instruction_reader): New. | |
1851 | (target_arm_instruction_reader): New. | |
1852 | (arm_analyze_prologue): Add instruction reader parameter and use | |
1853 | it. Use arm_expand_immediate. | |
1854 | (class target_arm_instruction_reader): Adjust. | |
1855 | (arm_skip_prologue): Adjust. | |
1856 | (arm_expand_immediate): New. | |
1857 | (arm_scan_prologue): Adjust. | |
1858 | (arm_analyze_prologue_test): New. | |
1859 | (class test_arm_instruction_reader): New. | |
1860 | ||
1861 | 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com> | |
1862 | ||
1863 | * f-lang.c (fortran_argument_convert): Add declaration. Add | |
1864 | header comment, taken from f-lang.h. Make static. | |
1865 | * f-lang.h (f77_get_dynamic_array_length): Delete declaration. | |
1866 | (fortran_argument_convert): Delete declaration. | |
1867 | ||
1868 | 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com> | |
1869 | ||
1870 | * ada-exp.y (find_primitive_type): Make parameter const. | |
1871 | * ada-lang.c (enum ada_primitive_types): Delete. | |
1872 | (ada_language::language_arch_info): Update. | |
1873 | * c-lang.c (enum c_primitive_types): Delete. | |
1874 | (c_language_arch_info): Update. | |
1875 | (enum cplus_primitive_types): Delete. | |
1876 | (cplus_language::language_arch_info): Update. | |
1877 | * d-lang.c (enum d_primitive_types): Delete. | |
1878 | (d_language::language_arch_info): Update. | |
1879 | * f-lang.c (enum f_primitive_types): Delete. | |
1880 | (f_language::language_arch_info): Update. | |
1881 | * go-lang.c (enum go_primitive_types): Delete. | |
1882 | (go_language::language_arch_info): Update. | |
1883 | * language.c (auto_or_unknown_language::language_arch_info): | |
1884 | Update. | |
1885 | (language_gdbarch_post_init): Use obstack_new, use array indexing. | |
1886 | (language_string_char_type): Add header comment, call function in | |
1887 | language_arch_info. | |
1888 | (language_bool_type): Likewise | |
1889 | (language_arch_info::bool_type): Define. | |
1890 | (language_lookup_primitive_type_1): Delete. | |
1891 | (language_lookup_primitive_type): Rewrite as a templated function | |
1892 | to call function in language_arch_info, then instantiate twice. | |
1893 | (language_arch_info::type_and_symbol::alloc_type_symbol): Define. | |
1894 | (language_arch_info::lookup_primitive_type_and_symbol): Define. | |
1895 | (language_arch_info::lookup_primitive_type): Define twice with | |
1896 | different signatures. | |
1897 | (language_arch_info::lookup_primitive_type_as_symbol): Define. | |
1898 | (language_lookup_primitive_type_as_symbol): Rewrite to call a | |
1899 | member function in language_arch_info. | |
1900 | * language.h (language_arch_info): Complete rewrite. | |
1901 | (language_lookup_primitive_type): Make templated. | |
1902 | * m2-lang.c (enum m2_primitive_types): Delete. | |
1903 | (m2_language::language_arch_info): Update. | |
1904 | * opencl-lang.c (OCL_P_TYPE): Delete. | |
1905 | (enum opencl_primitive_types): Delete. | |
1906 | (opencl_type_data): Delete. | |
1907 | (builtin_opencl_type): Delete. | |
1908 | (lookup_opencl_vector_type): Update. | |
1909 | (opencl_language::language_arch_info): Update, lots of content | |
1910 | moved from... | |
1911 | (build_opencl_types): ...here. This function is now deleted. | |
1912 | (_initialize_opencl_language): Delete. | |
1913 | * p-lang.c (enum pascal_primitive_types): Delete. | |
1914 | (pascal_language::language_arch_info): Update. | |
1915 | * rust-lang.c (enum rust_primitive_types): Delete. | |
1916 | (rust_language::language_arch_info): Update. | |
1917 | ||
1918 | 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca> | |
1919 | ||
1920 | * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to | |
1921 | dwarf2_queue_guard. | |
1922 | ||
1923 | 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca> | |
1924 | ||
1925 | * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in | |
1926 | comment. | |
1927 | ||
1928 | 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca> | |
1929 | ||
1930 | * dwarf2/read.c (dwarf_read_debug_printf, | |
1931 | dwarf_read_debug_printf_v): New macros, use throughout the file. | |
1932 | ||
1933 | 2020-11-12 Shahab Vahedi <shahab@synopsys.com> | |
1934 | ||
1935 | PR tdep/27015 | |
1936 | * arc-linux-tdep.c (collect_register): Populate "eret" by | |
1937 | "pc" value from the regcache when asked for "pc" value. | |
1938 | ||
1939 | 2020-11-12 Tom Tromey <tom@tromey.com> | |
1940 | ||
1941 | PR rust/26799: | |
1942 | * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs | |
1943 | exist. | |
1944 | ||
1945 | 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com> | |
1946 | ||
1947 | * features/Makefile (XMLTOC): Add rx.xml. | |
1948 | (FEATURE_XMLFILES): Remove rx.xml. | |
1949 | (FEATURE_CFILES rule): Pass '-single-feature' flag. | |
1950 | * features/rx.c: Regenerate. | |
1951 | * features/rx.xml: Wrap in `target` tags, and reindent. | |
1952 | * target-descriptions.c (struct maint_print_c_tdesc_options): New | |
1953 | structure. | |
1954 | (maint_print_c_tdesc_opt_def): New typedef. | |
1955 | (maint_print_c_tdesc_opt_defs): New static global. | |
1956 | (make_maint_print_c_tdesc_options_def_group): New function. | |
1957 | (maint_print_c_tdesc_cmd): Make use of command line flags, only | |
1958 | print single feature C file for target descriptions containing a | |
1959 | single feature. | |
1960 | (maint_print_c_tdesc_cmd_completer): New function. | |
1961 | (_initialize_target_descriptions): Update call to register command | |
1962 | completer, and include command line flag in help text. | |
1963 | ||
1964 | 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com> | |
1965 | ||
1966 | * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR | |
1967 | numbers. | |
1968 | * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New | |
1969 | enum values. | |
1970 | ||
1971 | 2020-11-10 Tom Tromey <tom@tromey.com> | |
1972 | ||
1973 | * value.h (internalvar_name): Update. | |
1974 | * value.c (internalvar_name): Make return type const. | |
1975 | ||
1976 | 2020-11-10 Tom Tromey <tom@tromey.com> | |
1977 | ||
1978 | * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt) | |
1979 | (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use | |
1980 | const. | |
1981 | ||
1982 | 2020-11-10 Tom Tromey <tom@tromey.com> | |
1983 | ||
1984 | * objc-lang.h (value_nsstring): Update. | |
1985 | * objc-lang.c (value_nsstring): Make "ptr" const. | |
1986 | ||
1987 | 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com> | |
1988 | ||
1989 | * expprint.c (print_subexp_funcall): Increment expression position | |
1990 | after reading argument count. | |
1991 | * f-lang.c (print_subexp_f): Skip over opcode before calling | |
1992 | common function. | |
1993 | (dump_subexp_body_f): Likewise. | |
1994 | ||
1995 | 2020-11-06 Romain Geissler <romain.geissler@amadeus.com> | |
1996 | ||
1997 | PR python/26832 | |
1998 | * configure: Regenerate. | |
1999 | * configure.ac: Check for python modules ctypes instead of | |
2000 | itertools. | |
2001 | ||
2002 | 2020-11-06 Pedro Alves <pedro@palves.net> | |
2003 | ||
2004 | * macroexp.c (struct macro_buffer): Split in two classes. Add | |
2005 | uses adjusted. | |
2006 | (struct shared_macro_buffer): New, factored out from struct | |
2007 | macro_buffer. | |
2008 | (struct growable_macro_buffer): New, factored out from struct | |
2009 | macro_buffer. | |
2010 | (set_token, get_comment, get_identifier, get_pp_number) | |
2011 | (get_character_constant, get_string_literal, get_punctuator) | |
2012 | (get_next_token_for_substitution): Constify parameters. | |
2013 | (substitute_args): Constify locals. | |
2014 | ||
2015 | 2020-11-05 Tom Tromey <tom@tromey.com> | |
2016 | ||
2017 | * dwarf2/read.c (read_cutu_die_from_dwo) | |
2018 | (cutu_reader::cutu_reader, cutu_reader::cutu_reader) | |
2019 | (build_type_psymtabs_1): Update. | |
2020 | * dwarf2/abbrev.h (struct abbrev_table): Remove objfile | |
2021 | parameter. | |
2022 | * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter. | |
2023 | Don't read section. Add assert. | |
2024 | ||
2025 | 2020-11-04 Tom Tromey <tromey@adacore.com> | |
2026 | ||
2027 | * ada-typeprint.c (ada_print_type): Handle __XVL fields. | |
2028 | ||
2029 | 2020-11-04 Tom Tromey <tromey@adacore.com> | |
2030 | ||
2031 | * ada-typeprint.c (ada_print_type): Handle __T types. | |
2032 | ||
2033 | 2020-11-04 Tom Tromey <tromey@adacore.com> | |
2034 | ||
2035 | * dwarf2/read.c (add_partial_symbol, process_die): | |
2036 | Handle DW_TAG_array_type. | |
2037 | (is_type_tag_for_partial): Add "lang" parameter. | |
2038 | (load_partial_dies, new_symbol): Handle DW_TAG_array_type. | |
2039 | ||
2040 | 2020-11-04 Tom Tromey <tromey@adacore.com> | |
2041 | ||
2042 | * ada-lang.c (ada_value_slice_from_ptr): Use bit size. | |
2043 | ||
2044 | 2020-11-04 Tom Tromey <tromey@adacore.com> | |
2045 | ||
2046 | * dwarf2/read.c (read_array_type): Only apply stride to innermost | |
2047 | array. | |
2048 | ||
2049 | 2020-11-04 Tom Tromey <tromey@adacore.com> | |
2050 | ||
2051 | * gdbtypes.c (update_static_array_size): Handle bit stride. | |
2052 | ||
2053 | 2020-11-04 Tom Tromey <tromey@adacore.com> | |
2054 | ||
2055 | * ada-lang.c (ada_value_struct_elt): Resolve dynamic type. | |
2056 | ||
2057 | 2020-11-04 Tom Tromey <tromey@adacore.com> | |
2058 | ||
2059 | * ada-lang.c (ada_is_any_packed_array_type): New function. | |
2060 | (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it. | |
2061 | ||
2062 | 2020-11-04 Tom Tromey <tromey@adacore.com> | |
2063 | ||
2064 | * dwarf2/read.c (recognize_bound_expression) | |
2065 | (quirk_ada_thick_pointer): New functions. | |
2066 | (read_array_type): Call quirk_ada_thick_pointer. | |
2067 | (set_die_type): Add "skip_data_location" parameter. | |
2068 | (quirk_ada_thick_pointer): New function. | |
2069 | (process_structure_scope): Call quirk_ada_thick_pointer. | |
2070 | * ada-lang.c (ada_is_unconstrained_packed_array_type) | |
2071 | (decode_packed_array_bitsize): Handle thick pointers without | |
2072 | parallel types. | |
2073 | (ada_is_gnat_encoded_packed_array_type): Rename from | |
2074 | ada_is_packed_array_type. | |
2075 | (ada_is_constrained_packed_array_type): Update. | |
2076 | * ada-valprint.c (ada_val_print_gnat_array): Remove. | |
2077 | (ada_value_print_1): Use ada_get_decoded_value. | |
2078 | ||
2079 | 2020-11-04 Tom Tromey <tromey@adacore.com> | |
2080 | ||
2081 | * ada-lang.c (recursively_update_array_bitsize): New function. | |
2082 | (decode_constrained_packed_array_type): Call it. | |
2083 | ||
2084 | 2020-11-04 Tom Tromey <tromey@adacore.com> | |
2085 | ||
2086 | * ada-lang.c (to_fixed_array_type): Error if | |
2087 | decode_constrained_packed_array_type returns NULL. | |
2088 | ||
2089 | 2020-11-04 Tom Tromey <tromey@adacore.com> | |
2090 | ||
2091 | * dwarf2/leb.h (read_3_bytes): Use bfd_get_24. | |
2092 | ||
2093 | 2020-11-02 Tom Tromey <tromey@adacore.com> | |
2094 | ||
2095 | * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o. | |
2096 | (ALLDEPFILES): Add amd64-ravenscar-thread.c. | |
2097 | (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h. | |
2098 | * amd64-ravenscar-thread.c: New file. | |
2099 | * amd64-ravenscar-thread.h: New file. | |
2100 | * amd64-tdep.c (amd64_init_abi): Register ravenscar ops. | |
2101 | * configure.tgt (amd64_tobjs): Add ravenscar objects. | |
2102 | ||
2103 | 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com> | |
2104 | ||
2105 | * main.c (execute_cmdargs): New function. | |
2106 | (captured_main_1): Make use of execute_cmdargs. | |
2107 | ||
2108 | 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com> | |
2109 | ||
2110 | * NEWS: Mention changes to config file search path. | |
2111 | * main.c | |
2112 | ||
2113 | 2020-11-02 Tom Tromey <tromey@adacore.com> | |
2114 | ||
2115 | * python/python.c: Consolidate two HAVE_PYTHON blocks. | |
2116 | (python_GdbModuleDef): Move earlier. Now static. | |
2117 | (do_start_initialization): Consolidate some IS_PY3K blocks. | |
2118 | ||
2119 | 2020-11-02 Simon Marchi <simon.marchi@efficios.com> | |
2120 | ||
2121 | * aarch64-linux-tdep.c: Fix indentation. | |
2122 | * aarch64-ravenscar-thread.c: Fix indentation. | |
2123 | * aarch64-tdep.c: Fix indentation. | |
2124 | * aarch64-tdep.h: Fix indentation. | |
2125 | * ada-lang.c: Fix indentation. | |
2126 | * ada-lang.h: Fix indentation. | |
2127 | * ada-tasks.c: Fix indentation. | |
2128 | * ada-typeprint.c: Fix indentation. | |
2129 | * ada-valprint.c: Fix indentation. | |
2130 | * ada-varobj.c: Fix indentation. | |
2131 | * addrmap.c: Fix indentation. | |
2132 | * addrmap.h: Fix indentation. | |
2133 | * agent.c: Fix indentation. | |
2134 | * aix-thread.c: Fix indentation. | |
2135 | * alpha-bsd-nat.c: Fix indentation. | |
2136 | * alpha-linux-tdep.c: Fix indentation. | |
2137 | * alpha-mdebug-tdep.c: Fix indentation. | |
2138 | * alpha-nbsd-tdep.c: Fix indentation. | |
2139 | * alpha-obsd-tdep.c: Fix indentation. | |
2140 | * alpha-tdep.c: Fix indentation. | |
2141 | * amd64-bsd-nat.c: Fix indentation. | |
2142 | * amd64-darwin-tdep.c: Fix indentation. | |
2143 | * amd64-linux-nat.c: Fix indentation. | |
2144 | * amd64-linux-tdep.c: Fix indentation. | |
2145 | * amd64-nat.c: Fix indentation. | |
2146 | * amd64-obsd-tdep.c: Fix indentation. | |
2147 | * amd64-tdep.c: Fix indentation. | |
2148 | * amd64-windows-tdep.c: Fix indentation. | |
2149 | * annotate.c: Fix indentation. | |
2150 | * arc-tdep.c: Fix indentation. | |
2151 | * arch-utils.c: Fix indentation. | |
2152 | * arch/arm-get-next-pcs.c: Fix indentation. | |
2153 | * arch/arm.c: Fix indentation. | |
2154 | * arm-linux-nat.c: Fix indentation. | |
2155 | * arm-linux-tdep.c: Fix indentation. | |
2156 | * arm-nbsd-tdep.c: Fix indentation. | |
2157 | * arm-pikeos-tdep.c: Fix indentation. | |
2158 | * arm-tdep.c: Fix indentation. | |
2159 | * arm-tdep.h: Fix indentation. | |
2160 | * arm-wince-tdep.c: Fix indentation. | |
2161 | * auto-load.c: Fix indentation. | |
2162 | * auxv.c: Fix indentation. | |
2163 | * avr-tdep.c: Fix indentation. | |
2164 | * ax-gdb.c: Fix indentation. | |
2165 | * ax-general.c: Fix indentation. | |
2166 | * bfin-linux-tdep.c: Fix indentation. | |
2167 | * block.c: Fix indentation. | |
2168 | * block.h: Fix indentation. | |
2169 | * blockframe.c: Fix indentation. | |
2170 | * bpf-tdep.c: Fix indentation. | |
2171 | * break-catch-sig.c: Fix indentation. | |
2172 | * break-catch-syscall.c: Fix indentation. | |
2173 | * break-catch-throw.c: Fix indentation. | |
2174 | * breakpoint.c: Fix indentation. | |
2175 | * breakpoint.h: Fix indentation. | |
2176 | * bsd-uthread.c: Fix indentation. | |
2177 | * btrace.c: Fix indentation. | |
2178 | * build-id.c: Fix indentation. | |
2179 | * buildsym-legacy.h: Fix indentation. | |
2180 | * buildsym.c: Fix indentation. | |
2181 | * c-typeprint.c: Fix indentation. | |
2182 | * c-valprint.c: Fix indentation. | |
2183 | * c-varobj.c: Fix indentation. | |
2184 | * charset.c: Fix indentation. | |
2185 | * cli/cli-cmds.c: Fix indentation. | |
2186 | * cli/cli-decode.c: Fix indentation. | |
2187 | * cli/cli-decode.h: Fix indentation. | |
2188 | * cli/cli-script.c: Fix indentation. | |
2189 | * cli/cli-setshow.c: Fix indentation. | |
2190 | * coff-pe-read.c: Fix indentation. | |
2191 | * coffread.c: Fix indentation. | |
2192 | * compile/compile-cplus-types.c: Fix indentation. | |
2193 | * compile/compile-object-load.c: Fix indentation. | |
2194 | * compile/compile-object-run.c: Fix indentation. | |
2195 | * completer.c: Fix indentation. | |
2196 | * corefile.c: Fix indentation. | |
2197 | * corelow.c: Fix indentation. | |
2198 | * cp-abi.h: Fix indentation. | |
2199 | * cp-namespace.c: Fix indentation. | |
2200 | * cp-support.c: Fix indentation. | |
2201 | * cp-valprint.c: Fix indentation. | |
2202 | * cris-linux-tdep.c: Fix indentation. | |
2203 | * cris-tdep.c: Fix indentation. | |
2204 | * darwin-nat-info.c: Fix indentation. | |
2205 | * darwin-nat.c: Fix indentation. | |
2206 | * darwin-nat.h: Fix indentation. | |
2207 | * dbxread.c: Fix indentation. | |
2208 | * dcache.c: Fix indentation. | |
2209 | * disasm.c: Fix indentation. | |
2210 | * dtrace-probe.c: Fix indentation. | |
2211 | * dwarf2/abbrev.c: Fix indentation. | |
2212 | * dwarf2/attribute.c: Fix indentation. | |
2213 | * dwarf2/expr.c: Fix indentation. | |
2214 | * dwarf2/frame.c: Fix indentation. | |
2215 | * dwarf2/index-cache.c: Fix indentation. | |
2216 | * dwarf2/index-write.c: Fix indentation. | |
2217 | * dwarf2/line-header.c: Fix indentation. | |
2218 | * dwarf2/loc.c: Fix indentation. | |
2219 | * dwarf2/macro.c: Fix indentation. | |
2220 | * dwarf2/read.c: Fix indentation. | |
2221 | * dwarf2/read.h: Fix indentation. | |
2222 | * elfread.c: Fix indentation. | |
2223 | * eval.c: Fix indentation. | |
2224 | * event-top.c: Fix indentation. | |
2225 | * exec.c: Fix indentation. | |
2226 | * exec.h: Fix indentation. | |
2227 | * expprint.c: Fix indentation. | |
2228 | * f-lang.c: Fix indentation. | |
2229 | * f-typeprint.c: Fix indentation. | |
2230 | * f-valprint.c: Fix indentation. | |
2231 | * fbsd-nat.c: Fix indentation. | |
2232 | * fbsd-tdep.c: Fix indentation. | |
2233 | * findvar.c: Fix indentation. | |
2234 | * fork-child.c: Fix indentation. | |
2235 | * frame-unwind.c: Fix indentation. | |
2236 | * frame-unwind.h: Fix indentation. | |
2237 | * frame.c: Fix indentation. | |
2238 | * frv-linux-tdep.c: Fix indentation. | |
2239 | * frv-tdep.c: Fix indentation. | |
2240 | * frv-tdep.h: Fix indentation. | |
2241 | * ft32-tdep.c: Fix indentation. | |
2242 | * gcore.c: Fix indentation. | |
2243 | * gdb_bfd.c: Fix indentation. | |
2244 | * gdbarch.sh: Fix indentation. | |
2245 | * gdbarch.c: Re-generate | |
2246 | * gdbarch.h: Re-generate. | |
2247 | * gdbcore.h: Fix indentation. | |
2248 | * gdbthread.h: Fix indentation. | |
2249 | * gdbtypes.c: Fix indentation. | |
2250 | * gdbtypes.h: Fix indentation. | |
2251 | * glibc-tdep.c: Fix indentation. | |
2252 | * gnu-nat.c: Fix indentation. | |
2253 | * gnu-nat.h: Fix indentation. | |
2254 | * gnu-v2-abi.c: Fix indentation. | |
2255 | * gnu-v3-abi.c: Fix indentation. | |
2256 | * go32-nat.c: Fix indentation. | |
2257 | * guile/guile-internal.h: Fix indentation. | |
2258 | * guile/scm-cmd.c: Fix indentation. | |
2259 | * guile/scm-frame.c: Fix indentation. | |
2260 | * guile/scm-iterator.c: Fix indentation. | |
2261 | * guile/scm-math.c: Fix indentation. | |
2262 | * guile/scm-ports.c: Fix indentation. | |
2263 | * guile/scm-pretty-print.c: Fix indentation. | |
2264 | * guile/scm-value.c: Fix indentation. | |
2265 | * h8300-tdep.c: Fix indentation. | |
2266 | * hppa-linux-nat.c: Fix indentation. | |
2267 | * hppa-linux-tdep.c: Fix indentation. | |
2268 | * hppa-nbsd-nat.c: Fix indentation. | |
2269 | * hppa-nbsd-tdep.c: Fix indentation. | |
2270 | * hppa-obsd-nat.c: Fix indentation. | |
2271 | * hppa-tdep.c: Fix indentation. | |
2272 | * hppa-tdep.h: Fix indentation. | |
2273 | * i386-bsd-nat.c: Fix indentation. | |
2274 | * i386-darwin-nat.c: Fix indentation. | |
2275 | * i386-darwin-tdep.c: Fix indentation. | |
2276 | * i386-dicos-tdep.c: Fix indentation. | |
2277 | * i386-gnu-nat.c: Fix indentation. | |
2278 | * i386-linux-nat.c: Fix indentation. | |
2279 | * i386-linux-tdep.c: Fix indentation. | |
2280 | * i386-nto-tdep.c: Fix indentation. | |
2281 | * i386-obsd-tdep.c: Fix indentation. | |
2282 | * i386-sol2-nat.c: Fix indentation. | |
2283 | * i386-tdep.c: Fix indentation. | |
2284 | * i386-tdep.h: Fix indentation. | |
2285 | * i386-windows-tdep.c: Fix indentation. | |
2286 | * i387-tdep.c: Fix indentation. | |
2287 | * i387-tdep.h: Fix indentation. | |
2288 | * ia64-libunwind-tdep.c: Fix indentation. | |
2289 | * ia64-libunwind-tdep.h: Fix indentation. | |
2290 | * ia64-linux-nat.c: Fix indentation. | |
2291 | * ia64-linux-tdep.c: Fix indentation. | |
2292 | * ia64-tdep.c: Fix indentation. | |
2293 | * ia64-tdep.h: Fix indentation. | |
2294 | * ia64-vms-tdep.c: Fix indentation. | |
2295 | * infcall.c: Fix indentation. | |
2296 | * infcmd.c: Fix indentation. | |
2297 | * inferior.c: Fix indentation. | |
2298 | * infrun.c: Fix indentation. | |
2299 | * iq2000-tdep.c: Fix indentation. | |
2300 | * language.c: Fix indentation. | |
2301 | * linespec.c: Fix indentation. | |
2302 | * linux-fork.c: Fix indentation. | |
2303 | * linux-nat.c: Fix indentation. | |
2304 | * linux-tdep.c: Fix indentation. | |
2305 | * linux-thread-db.c: Fix indentation. | |
2306 | * lm32-tdep.c: Fix indentation. | |
2307 | * m2-lang.c: Fix indentation. | |
2308 | * m2-typeprint.c: Fix indentation. | |
2309 | * m2-valprint.c: Fix indentation. | |
2310 | * m32c-tdep.c: Fix indentation. | |
2311 | * m32r-linux-tdep.c: Fix indentation. | |
2312 | * m32r-tdep.c: Fix indentation. | |
2313 | * m68hc11-tdep.c: Fix indentation. | |
2314 | * m68k-bsd-nat.c: Fix indentation. | |
2315 | * m68k-linux-nat.c: Fix indentation. | |
2316 | * m68k-linux-tdep.c: Fix indentation. | |
2317 | * m68k-tdep.c: Fix indentation. | |
2318 | * machoread.c: Fix indentation. | |
2319 | * macrocmd.c: Fix indentation. | |
2320 | * macroexp.c: Fix indentation. | |
2321 | * macroscope.c: Fix indentation. | |
2322 | * macrotab.c: Fix indentation. | |
2323 | * macrotab.h: Fix indentation. | |
2324 | * main.c: Fix indentation. | |
2325 | * mdebugread.c: Fix indentation. | |
2326 | * mep-tdep.c: Fix indentation. | |
2327 | * mi/mi-cmd-catch.c: Fix indentation. | |
2328 | * mi/mi-cmd-disas.c: Fix indentation. | |
2329 | * mi/mi-cmd-env.c: Fix indentation. | |
2330 | * mi/mi-cmd-stack.c: Fix indentation. | |
2331 | * mi/mi-cmd-var.c: Fix indentation. | |
2332 | * mi/mi-cmds.c: Fix indentation. | |
2333 | * mi/mi-main.c: Fix indentation. | |
2334 | * mi/mi-parse.c: Fix indentation. | |
2335 | * microblaze-tdep.c: Fix indentation. | |
2336 | * minidebug.c: Fix indentation. | |
2337 | * minsyms.c: Fix indentation. | |
2338 | * mips-linux-nat.c: Fix indentation. | |
2339 | * mips-linux-tdep.c: Fix indentation. | |
2340 | * mips-nbsd-tdep.c: Fix indentation. | |
2341 | * mips-tdep.c: Fix indentation. | |
2342 | * mn10300-linux-tdep.c: Fix indentation. | |
2343 | * mn10300-tdep.c: Fix indentation. | |
2344 | * moxie-tdep.c: Fix indentation. | |
2345 | * msp430-tdep.c: Fix indentation. | |
2346 | * namespace.h: Fix indentation. | |
2347 | * nat/fork-inferior.c: Fix indentation. | |
2348 | * nat/gdb_ptrace.h: Fix indentation. | |
2349 | * nat/linux-namespaces.c: Fix indentation. | |
2350 | * nat/linux-osdata.c: Fix indentation. | |
2351 | * nat/netbsd-nat.c: Fix indentation. | |
2352 | * nat/x86-dregs.c: Fix indentation. | |
2353 | * nbsd-nat.c: Fix indentation. | |
2354 | * nbsd-tdep.c: Fix indentation. | |
2355 | * nios2-linux-tdep.c: Fix indentation. | |
2356 | * nios2-tdep.c: Fix indentation. | |
2357 | * nto-procfs.c: Fix indentation. | |
2358 | * nto-tdep.c: Fix indentation. | |
2359 | * objfiles.c: Fix indentation. | |
2360 | * objfiles.h: Fix indentation. | |
2361 | * opencl-lang.c: Fix indentation. | |
2362 | * or1k-tdep.c: Fix indentation. | |
2363 | * osabi.c: Fix indentation. | |
2364 | * osabi.h: Fix indentation. | |
2365 | * osdata.c: Fix indentation. | |
2366 | * p-lang.c: Fix indentation. | |
2367 | * p-typeprint.c: Fix indentation. | |
2368 | * p-valprint.c: Fix indentation. | |
2369 | * parse.c: Fix indentation. | |
2370 | * ppc-linux-nat.c: Fix indentation. | |
2371 | * ppc-linux-tdep.c: Fix indentation. | |
2372 | * ppc-nbsd-nat.c: Fix indentation. | |
2373 | * ppc-nbsd-tdep.c: Fix indentation. | |
2374 | * ppc-obsd-nat.c: Fix indentation. | |
2375 | * ppc-ravenscar-thread.c: Fix indentation. | |
2376 | * ppc-sysv-tdep.c: Fix indentation. | |
2377 | * ppc64-tdep.c: Fix indentation. | |
2378 | * printcmd.c: Fix indentation. | |
2379 | * proc-api.c: Fix indentation. | |
2380 | * producer.c: Fix indentation. | |
2381 | * producer.h: Fix indentation. | |
2382 | * prologue-value.c: Fix indentation. | |
2383 | * prologue-value.h: Fix indentation. | |
2384 | * psymtab.c: Fix indentation. | |
2385 | * python/py-arch.c: Fix indentation. | |
2386 | * python/py-bpevent.c: Fix indentation. | |
2387 | * python/py-event.c: Fix indentation. | |
2388 | * python/py-event.h: Fix indentation. | |
2389 | * python/py-finishbreakpoint.c: Fix indentation. | |
2390 | * python/py-frame.c: Fix indentation. | |
2391 | * python/py-framefilter.c: Fix indentation. | |
2392 | * python/py-inferior.c: Fix indentation. | |
2393 | * python/py-infthread.c: Fix indentation. | |
2394 | * python/py-objfile.c: Fix indentation. | |
2395 | * python/py-prettyprint.c: Fix indentation. | |
2396 | * python/py-registers.c: Fix indentation. | |
2397 | * python/py-signalevent.c: Fix indentation. | |
2398 | * python/py-stopevent.c: Fix indentation. | |
2399 | * python/py-stopevent.h: Fix indentation. | |
2400 | * python/py-threadevent.c: Fix indentation. | |
2401 | * python/py-tui.c: Fix indentation. | |
2402 | * python/py-unwind.c: Fix indentation. | |
2403 | * python/py-value.c: Fix indentation. | |
2404 | * python/py-xmethods.c: Fix indentation. | |
2405 | * python/python-internal.h: Fix indentation. | |
2406 | * python/python.c: Fix indentation. | |
2407 | * ravenscar-thread.c: Fix indentation. | |
2408 | * record-btrace.c: Fix indentation. | |
2409 | * record-full.c: Fix indentation. | |
2410 | * record.c: Fix indentation. | |
2411 | * reggroups.c: Fix indentation. | |
2412 | * regset.h: Fix indentation. | |
2413 | * remote-fileio.c: Fix indentation. | |
2414 | * remote.c: Fix indentation. | |
2415 | * reverse.c: Fix indentation. | |
2416 | * riscv-linux-tdep.c: Fix indentation. | |
2417 | * riscv-ravenscar-thread.c: Fix indentation. | |
2418 | * riscv-tdep.c: Fix indentation. | |
2419 | * rl78-tdep.c: Fix indentation. | |
2420 | * rs6000-aix-tdep.c: Fix indentation. | |
2421 | * rs6000-lynx178-tdep.c: Fix indentation. | |
2422 | * rs6000-nat.c: Fix indentation. | |
2423 | * rs6000-tdep.c: Fix indentation. | |
2424 | * rust-lang.c: Fix indentation. | |
2425 | * rx-tdep.c: Fix indentation. | |
2426 | * s12z-tdep.c: Fix indentation. | |
2427 | * s390-linux-tdep.c: Fix indentation. | |
2428 | * score-tdep.c: Fix indentation. | |
2429 | * ser-base.c: Fix indentation. | |
2430 | * ser-mingw.c: Fix indentation. | |
2431 | * ser-uds.c: Fix indentation. | |
2432 | * ser-unix.c: Fix indentation. | |
2433 | * serial.c: Fix indentation. | |
2434 | * sh-linux-tdep.c: Fix indentation. | |
2435 | * sh-nbsd-tdep.c: Fix indentation. | |
2436 | * sh-tdep.c: Fix indentation. | |
2437 | * skip.c: Fix indentation. | |
2438 | * sol-thread.c: Fix indentation. | |
2439 | * solib-aix.c: Fix indentation. | |
2440 | * solib-darwin.c: Fix indentation. | |
2441 | * solib-frv.c: Fix indentation. | |
2442 | * solib-svr4.c: Fix indentation. | |
2443 | * solib.c: Fix indentation. | |
2444 | * source.c: Fix indentation. | |
2445 | * sparc-linux-tdep.c: Fix indentation. | |
2446 | * sparc-nbsd-tdep.c: Fix indentation. | |
2447 | * sparc-obsd-tdep.c: Fix indentation. | |
2448 | * sparc-ravenscar-thread.c: Fix indentation. | |
2449 | * sparc-tdep.c: Fix indentation. | |
2450 | * sparc64-linux-tdep.c: Fix indentation. | |
2451 | * sparc64-nbsd-tdep.c: Fix indentation. | |
2452 | * sparc64-obsd-tdep.c: Fix indentation. | |
2453 | * sparc64-tdep.c: Fix indentation. | |
2454 | * stabsread.c: Fix indentation. | |
2455 | * stack.c: Fix indentation. | |
2456 | * stap-probe.c: Fix indentation. | |
2457 | * stubs/ia64vms-stub.c: Fix indentation. | |
2458 | * stubs/m32r-stub.c: Fix indentation. | |
2459 | * stubs/m68k-stub.c: Fix indentation. | |
2460 | * stubs/sh-stub.c: Fix indentation. | |
2461 | * stubs/sparc-stub.c: Fix indentation. | |
2462 | * symfile-mem.c: Fix indentation. | |
2463 | * symfile.c: Fix indentation. | |
2464 | * symfile.h: Fix indentation. | |
2465 | * symmisc.c: Fix indentation. | |
2466 | * symtab.c: Fix indentation. | |
2467 | * symtab.h: Fix indentation. | |
2468 | * target-float.c: Fix indentation. | |
2469 | * target.c: Fix indentation. | |
2470 | * target.h: Fix indentation. | |
2471 | * tic6x-tdep.c: Fix indentation. | |
2472 | * tilegx-linux-tdep.c: Fix indentation. | |
2473 | * tilegx-tdep.c: Fix indentation. | |
2474 | * top.c: Fix indentation. | |
2475 | * tracefile-tfile.c: Fix indentation. | |
2476 | * tracepoint.c: Fix indentation. | |
2477 | * tui/tui-disasm.c: Fix indentation. | |
2478 | * tui/tui-io.c: Fix indentation. | |
2479 | * tui/tui-regs.c: Fix indentation. | |
2480 | * tui/tui-stack.c: Fix indentation. | |
2481 | * tui/tui-win.c: Fix indentation. | |
2482 | * tui/tui-winsource.c: Fix indentation. | |
2483 | * tui/tui.c: Fix indentation. | |
2484 | * typeprint.c: Fix indentation. | |
2485 | * ui-out.h: Fix indentation. | |
2486 | * unittests/copy_bitwise-selftests.c: Fix indentation. | |
2487 | * unittests/memory-map-selftests.c: Fix indentation. | |
2488 | * utils.c: Fix indentation. | |
2489 | * v850-tdep.c: Fix indentation. | |
2490 | * valarith.c: Fix indentation. | |
2491 | * valops.c: Fix indentation. | |
2492 | * valprint.c: Fix indentation. | |
2493 | * valprint.h: Fix indentation. | |
2494 | * value.c: Fix indentation. | |
2495 | * value.h: Fix indentation. | |
2496 | * varobj.c: Fix indentation. | |
2497 | * vax-tdep.c: Fix indentation. | |
2498 | * windows-nat.c: Fix indentation. | |
2499 | * windows-tdep.c: Fix indentation. | |
2500 | * xcoffread.c: Fix indentation. | |
2501 | * xml-syscall.c: Fix indentation. | |
2502 | * xml-tdesc.c: Fix indentation. | |
2503 | * xstormy16-tdep.c: Fix indentation. | |
2504 | * xtensa-config.c: Fix indentation. | |
2505 | * xtensa-linux-nat.c: Fix indentation. | |
2506 | * xtensa-linux-tdep.c: Fix indentation. | |
2507 | * xtensa-tdep.c: Fix indentation. | |
2508 | ||
2509 | 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com> | |
2510 | Craig Blackmore <craig.blackmore@embecosm.com> | |
2511 | ||
2512 | * riscv-tdep.c (riscv_frame_cache): Read the frame base register | |
2513 | as an unsigned value. | |
2514 | ||
2515 | 2020-11-01 Tom Tromey <tom@tromey.com> | |
2516 | ||
2517 | * dbxread.c (dbx_end_psymtab): Update. | |
2518 | * dwarf2/read.c (process_psymtab_comp_unit_reader) | |
2519 | (build_type_psymtabs_reader): Update. | |
2520 | * xcoffread.c (xcoff_end_psymtab): Update. | |
2521 | * ctfread.c (scan_partial_symbols): Update. | |
2522 | * psymtab.c (sort_pst_symbols): Remove. | |
2523 | (partial_symtab::end): Rename from end_psymtab_common. Inline | |
2524 | sort_pst_symbols. | |
2525 | * psympriv.h (struct partial_symtab) <end>: New method. | |
2526 | (end_psymtab_common): Don't declare. | |
2527 | ||
2528 | 2020-11-01 Tom Tromey <tom@tromey.com> | |
2529 | ||
2530 | * symmisc.c (count_psyms): New function. | |
2531 | (print_objfile_statistics): Use it. | |
2532 | * psymtab.c (append_psymbol_to_list): Remove. | |
2533 | (partial_symtab::add_psymbol): Inline append_psymbol_to_list. | |
2534 | * objfiles.h (struct objstats) <n_psyms>: Remove. | |
2535 | ||
2536 | 2020-11-01 Tom Tromey <tom@tromey.com> | |
2537 | ||
2538 | * dbxread.c (dbx_end_psymtab): Update. | |
2539 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Update. | |
2540 | (build_type_psymtabs_reader): Update. | |
2541 | * xcoffread.c (xcoff_end_psymtab): Update. | |
2542 | * ctfread.c (scan_partial_symbols): Update. | |
2543 | * psympriv.h (end_psymtab_common): Update. | |
2544 | * psymtab.c (end_psymtab_common): Remove objfile parameter. | |
2545 | (sort_pst_symbols): Likewise. | |
2546 | ||
2547 | 2020-11-01 Tom Tromey <tom@tromey.com> | |
2548 | ||
2549 | * dbxread.c (dbx_symfile_read): Update. | |
2550 | * dwarf2/read.c (dwarf2_build_psymtabs): Update. | |
2551 | * xcoffread.c (xcoff_initial_scan): Update. | |
2552 | * psympriv.h (init_psymbol_list): Don't declare. | |
2553 | * psymtab.c (init_psymbol_list): Remove. | |
2554 | ||
2555 | 2020-11-01 Joel Brobecker <brobecker@adacore.com> | |
2556 | ||
2557 | * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames | |
2558 | gnat_encoded_fixed_type_info. Update all callers. | |
2559 | ||
2560 | 2020-11-01 Joel Brobecker <brobecker@adacore.com> | |
2561 | ||
2562 | * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split | |
2563 | line too long. | |
2564 | ||
2565 | 2020-11-01 Joel Brobecker <brobecker@adacore.com> | |
2566 | ||
2567 | * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames | |
2568 | cast_from_fixed. Update all callers. | |
2569 | (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed. | |
2570 | Update all callers. | |
2571 | (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor. | |
2572 | Update all callers. | |
2573 | * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames | |
2574 | ada_scaling_factor. | |
2575 | * ada-typeprint.c: Replace call to ada_scaling_factor by call | |
2576 | to print_gnat_encoded_fixed_point_type. | |
2577 | * ada-valprint.c: Likewise. | |
2578 | ||
2579 | 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com> | |
2580 | ||
2581 | * infrun.h (infrun_debug_printf): Add check of debug_infrun flag. | |
2582 | (debug_prefixed_printf): Add check of debug_displaced flag. | |
2583 | * linux-nat.c (linux_nat_debug_printf): Add check of | |
2584 | debug_linux_nat flag. | |
2585 | ||
2586 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> | |
2587 | ||
2588 | * infrun.c (infrun_debug_printf_1): Remove. | |
2589 | (displaced_debug_printf_1): Remove. | |
2590 | (stop_all_threads): Use debug_prefixed_printf. | |
2591 | * infrun.h (infrun_debug_printf_1): Remove. | |
2592 | (infrun_debug_printf): Use debug_prefixed_printf. | |
2593 | (displaced_debug_printf_1): Remove. | |
2594 | (displaced_debug_printf): Use debug_prefixed_printf. | |
2595 | * linux-nat.c (linux_nat_debug_printf_1): Remove. | |
2596 | (linux_nat_debug_printf): Use debug_prefixed_printf. | |
2597 | ||
2598 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> | |
2599 | ||
2600 | * configure: Re-generate. | |
2601 | * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE + | |
2602 | AC_LANG_PROGRAM. | |
2603 | ||
2604 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> | |
2605 | ||
2606 | * configure: Re-generate. | |
2607 | ||
2608 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> | |
2609 | ||
2610 | * configure: Re-generate. | |
2611 | ||
2612 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> | |
2613 | ||
2614 | * configure: Re-generate. | |
2615 | ||
2616 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> | |
2617 | ||
2618 | * configure: Re-generate. | |
2619 | ||
2620 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> | |
2621 | ||
2622 | * acinclude.m4: Modernize. | |
2623 | * configure: Re-generate. | |
2624 | ||
2625 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> | |
2626 | ||
2627 | * configure.ac: Modernize. | |
2628 | * configure: Re-generate. | |
2629 | ||
2630 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> | |
2631 | ||
2632 | * acinclude.m4 (AM_PROG_CC_STDC): Remove. | |
2633 | * configure: Re-generate. | |
2634 | * configure.ac: Remove AM_PROG_CC_STDC. | |
2635 | ||
2636 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> | |
2637 | ||
2638 | * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of | |
2639 | AC_CANONICAL_SYSTEM. | |
2640 | * configure: Re-generate. | |
2641 | ||
2642 | 2020-10-30 Simon Marchi <simon.marchi@efficios.com> | |
2643 | ||
2644 | * infrun.h (displaced_debug_printf): New macro. Replace | |
2645 | displaced debug prints throughout to use it. | |
2646 | (displaced_debug_printf_1): New declaration. | |
2647 | (displaced_step_dump_bytes): Return string, remove ui_file | |
2648 | parameter, update all callers. | |
2649 | * infrun.c (displaced_debug_printf_1): New function. | |
2650 | (displaced_step_dump_bytes): Return string, remove ui_file | |
2651 | parameter | |
2652 | ||
2653 | 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca> | |
2654 | ||
2655 | * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for | |
2656 | ||
2657 | 2020-10-30 Tom Tromey <tromey@adacore.com> | |
2658 | ||
2659 | * Makefile.in (stamp-init): Depend on config.status. | |
2660 | ||
2661 | 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
2662 | ||
2663 | * infrun.c (fetch_inferior_event): Temporarily disable pagination. | |
2664 | ||
2665 | 2020-10-30 Pedro Alves <pedro@palves.net> | |
2666 | ||
2667 | * thread.c (lookup_selected_frame): Move ... | |
2668 | * frame.c (lookup_selected_frame): ... here. | |
2669 | ||
2670 | 2020-10-30 Pedro Alves <pedro@palves.net> | |
2671 | ||
2672 | * blockframe.c (block_innermost_frame): Use get_selected_frame. | |
2673 | * frame.c | |
2674 | (scoped_restore_selected_frame::scoped_restore_selected_frame): | |
2675 | Use save_selected_frame. Save language as well. | |
2676 | (scoped_restore_selected_frame::~scoped_restore_selected_frame): | |
2677 | Use restore_selected_frame, and restore language as well. | |
2678 | (selected_frame_id, selected_frame_level): New. | |
2679 | (selected_frame): Update comments. | |
2680 | (save_selected_frame, restore_selected_frame): New. | |
2681 | (get_selected_frame): Use lookup_selected_frame. | |
2682 | (get_selected_frame_if_set): Delete. | |
2683 | (select_frame): Record selected_frame_level and selected_frame_id. | |
2684 | * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New | |
2685 | fields. | |
2686 | (get_selected_frame): Make 'message' parameter optional. | |
2687 | (get_selected_frame_if_set): Delete declaration. | |
2688 | (select_frame): Update comments. | |
2689 | (save_selected_frame, restore_selected_frame) | |
2690 | (lookup_selected_frame): Declare. | |
2691 | * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field. | |
2692 | * infrun.c (struct infcall_control_state) <selected_frame_level>: | |
2693 | New field. | |
2694 | (save_infcall_control_state): Use save_selected_frame. | |
2695 | (restore_selected_frame): Delete. | |
2696 | (restore_infcall_control_state): Use restore_selected_frame. | |
2697 | * stack.c (select_frame_command_core, frame_command_core): Use | |
2698 | get_selected_frame. | |
2699 | * thread.c (restore_selected_frame): Rename to ... | |
2700 | (lookup_selected_frame): ... this and make extern. Select the | |
2701 | current frame if the frame level is -1. | |
2702 | (scoped_restore_current_thread::restore): Also restore the | |
2703 | language. | |
2704 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
2705 | Don't try/catch. | |
2706 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
2707 | Save the language as well. Use save_selected_frame. | |
2708 | ||
2709 | 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca> | |
2710 | ||
2711 | * gdbarch.sh (displaced_step_hw_singlestep): Adjust | |
2712 | documentation. | |
2713 | * gdbarch.h: Re-generate. | |
2714 | ||
2715 | 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca> | |
2716 | ||
2717 | * gdbarch.sh (displaced_step_hw_singlestep): Remove closure | |
2718 | parameter. | |
2719 | * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): | |
2720 | Likewise. | |
2721 | * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep): | |
2722 | Likewise. | |
2723 | * arch-utils.c (default_displaced_step_hw_singlestep): | |
2724 | Likewise. | |
2725 | * arch-utils.h (default_displaced_step_hw_singlestep): | |
2726 | Likewise. | |
2727 | * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): | |
2728 | Likewise. | |
2729 | * s390-tdep.c (s390_displaced_step_hw_singlestep): | |
2730 | Likewise. | |
2731 | * gdbarch.c: Re-generate. | |
2732 | * gdbarch.h: Re-generate. | |
2733 | * infrun.c (resume_1): Adjust. | |
2734 | ||
2735 | 2020-10-29 Tom Tromey <tom@tromey.com> | |
2736 | ||
2737 | * progspace.c (program_space::~program_space): Don't call | |
2738 | exec_close. | |
2739 | ||
2740 | 2020-10-29 Tom Tromey <tom@tromey.com> | |
2741 | ||
2742 | * exec.c (exec_target::close): Don't change current program | |
2743 | space. | |
2744 | ||
2745 | 2020-10-29 Tom Tromey <tom@tromey.com> | |
2746 | ||
2747 | * symfile.c (add_symbol_file_command): Update. | |
2748 | * exec.c (program_space::add_target_sections): Rename. | |
2749 | * symfile-mem.c (symbol_file_add_from_memory): Update. | |
2750 | * progspace.h (struct program_space) <add_target_sections>: | |
2751 | Declare new overload. | |
2752 | * exec.h (add_target_sections_of_objfile): Don't declare. | |
2753 | ||
2754 | 2020-10-29 Tom Tromey <tom@tromey.com> | |
2755 | ||
2756 | * solib.c (solib_map_sections): Update. | |
2757 | * exec.c (program_space::add_target_sections): Now a method. | |
2758 | (exec_file_attach): Update. | |
2759 | * exec.h (add_target_sections): Don't declare. | |
2760 | * progspace.h (struct program_space) <add_target_sections>: | |
2761 | Declare. | |
2762 | ||
2763 | 2020-10-29 Tom Tromey <tom@tromey.com> | |
2764 | ||
2765 | * progspace.h (struct program_space) <remove_target_sections>: | |
2766 | Declare. | |
2767 | * exec.c (program_space::remove_target_sections): Now a method. | |
2768 | * exec.h (remove_target_sections): Don't declare. | |
2769 | ||
2770 | 2020-10-29 Tom Tromey <tom@tromey.com> | |
2771 | ||
2772 | * inferior.c (delete_inferior): Update. | |
2773 | * progspace.c (program_space::empty): Rename from | |
2774 | program_space_empty_p. Return bool. | |
2775 | * progspace.h (struct program_space) <empty>: New method. | |
2776 | (program_space_empty_p): Don't declare. | |
2777 | ||
2778 | 2020-10-29 Tom Tromey <tom@tromey.com> | |
2779 | ||
2780 | * progspace.c (program_space::~program_space): Don't call | |
2781 | clear_program_space_solib_cache. | |
2782 | (program_space::clear_solib_cache): Rename from | |
2783 | clear_solib_cache. | |
2784 | * solib.c (handle_solib_event): Update. | |
2785 | * progspace.h (struct program_space) <clear_solib_cache>: New | |
2786 | method. | |
2787 | (clear_program_space_solib_cache): Don't declare. | |
2788 | ||
2789 | 2020-10-29 Tom Tromey <tom@tromey.com> | |
2790 | ||
2791 | * windows-tdep.c (windows_solib_create_inferior_hook): Update. | |
2792 | * target.c (info_target_command): Update. | |
2793 | * symfile.c (syms_from_objfile_1, finish_new_objfile) | |
2794 | (symbol_file_clear, reread_symbols): Update. | |
2795 | * symfile-mem.c (add_symbol_file_from_memory_command): Update. | |
2796 | * stabsread.c (scan_file_globals): Update. | |
2797 | * solib.c (update_solib_list): Update. | |
2798 | * solib-svr4.c (elf_locate_base, open_symbol_file_object) | |
2799 | (svr4_fetch_objfile_link_map, enable_break) | |
2800 | (svr4_relocate_main_executable) | |
2801 | (svr4_iterate_over_objfiles_in_search_order): Update. | |
2802 | * solib-frv.c (lm_base, enable_break) | |
2803 | (frv_relocate_main_executable): Update. | |
2804 | (main_got, frv_fdpic_find_canonical_descriptor): Update. | |
2805 | (frv_fetch_objfile_link_map): Update. | |
2806 | * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update. | |
2807 | * solib-darwin.c (darwin_solib_create_inferior_hook): Update. | |
2808 | * solib-aix.c (solib_aix_solib_create_inferior_hook): Update. | |
2809 | * remote.c (remote_target::get_offsets): Update. | |
2810 | (remote_target::start_remote) | |
2811 | (extended_remote_target::post_attach): Update. | |
2812 | * objfiles.c (entry_point_address_query): Update. | |
2813 | * nto-procfs.c (nto_procfs_target::create_inferior): Update. | |
2814 | * minsyms.c (get_symbol_leading_char): Update. | |
2815 | * frame.c (inside_main_func): Update. | |
2816 | * progspace.h (symfile_objfile): Remove macro. | |
2817 | ||
2818 | 2020-10-29 Tom Tromey <tom@tromey.com> | |
2819 | ||
2820 | * exec.c (exec_file_attach): Update. | |
2821 | * progspace.c (program_space::exec_close): Update. | |
2822 | * progspace.h (struct program_space) <ebfd>: Now a | |
2823 | gdb_bfd_ref_ptr. | |
2824 | <set_exec_bfd>: Change argument type. | |
2825 | <exec_bfd>: Update. | |
2826 | ||
2827 | 2020-10-29 Tom Tromey <tom@tromey.com> | |
2828 | ||
2829 | * windows-tdep.c (windows_solib_create_inferior_hook): Update. | |
2830 | * symfile.c (reread_symbols): Update. | |
2831 | * symfile-mem.c (add_symbol_file_from_memory_command) | |
2832 | (add_vsyscall_page): Update. | |
2833 | * source-cache.c (source_cache::get_plain_source_lines): Update. | |
2834 | * solib-svr4.c (find_program_interpreter, elf_locate_base) | |
2835 | (svr4_current_sos_direct, svr4_exec_displacement) | |
2836 | (svr4_relocate_main_executable): Update. | |
2837 | (svr4_iterate_over_objfiles_in_search_order): Update. | |
2838 | * solib-frv.c (enable_break2, enable_break): Update. | |
2839 | * solib-dsbt.c (lm_base, enable_break): Update. | |
2840 | * solib-darwin.c (find_program_interpreter) | |
2841 | (darwin_solib_create_inferior_hook): Update. | |
2842 | * sol-thread.c (rw_common, ps_pdmodel): Update. | |
2843 | * rs6000-nat.c (rs6000_nat_target::create_inferior): Update. | |
2844 | * remote.c (compare_sections_command) | |
2845 | (remote_target::trace_set_readonly_regions): Update. | |
2846 | * remote-sim.c (get_sim_inferior_data) | |
2847 | (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update. | |
2848 | (gdbsim_target_open, gdbsim_target::files_info): Update. | |
2849 | * exec.h (exec_bfd): Remove macro. | |
2850 | * progspace.c (initialize_progspace): Update. | |
2851 | * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): | |
2852 | Update. | |
2853 | * nto-procfs.c (nto_procfs_target::post_attach) | |
2854 | (nto_procfs_target::create_inferior): Update. | |
2855 | * maint.c (maintenance_info_sections): Update. | |
2856 | * linux-thread-db.c (thread_db_target::get_thread_local_address): | |
2857 | Update. | |
2858 | * infcmd.c (post_create_inferior): Update. | |
2859 | * gcore.c (default_gcore_arch, default_gcore_target): Update. | |
2860 | (objfile_find_memory_regions): Update. | |
2861 | * exec.c (validate_exec_file, exec_file_attach) | |
2862 | (exec_read_partial_read_only, print_section_info): Update. | |
2863 | * corelow.c (core_target_open): Update. | |
2864 | * corefile.c (reopen_exec_file, validate_files): Update. | |
2865 | * arm-tdep.c (gdb_print_insn_arm): Update. | |
2866 | * arch-utils.c (gdbarch_update_p, default_print_insn): Update. | |
2867 | * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New | |
2868 | methods. | |
2869 | ||
2870 | 2020-10-29 Tom Tromey <tom@tromey.com> | |
2871 | ||
2872 | * progspace.h (current_target_sections): Remove macro. | |
2873 | * solib-svr4.c (scan_dyntag): Update. | |
2874 | * solib-dsbt.c (scan_dyntag): Update. | |
2875 | * exec.c (exec_target::close): Update. | |
2876 | (add_target_sections, add_target_sections_of_objfile) | |
2877 | (remove_target_sections, exec_target::get_section_table) | |
2878 | (exec_target::files_info, set_section_command) | |
2879 | (exec_set_section_address, exec_target::has_memory) | |
2880 | (exec_target::has_memory): Update. | |
2881 | ||
2882 | 2020-10-29 Tom Tromey <tom@tromey.com> | |
2883 | ||
2884 | * source-cache.c (source_cache::get_plain_source_lines): Use | |
2885 | current_program_space. | |
2886 | * corefile.c (reopen_exec_file): Use current_program_space. | |
2887 | * exec.c (exec_file_attach): Use current_program_space. | |
2888 | * exec.h (exec_bfd_mtime): Remove. | |
2889 | ||
2890 | 2020-10-29 Tom Tromey <tom@tromey.com> | |
2891 | ||
2892 | * gcore.c (default_gcore_mach): Remove. | |
2893 | (create_gcore_bfd): Update. | |
2894 | ||
2895 | 2020-10-29 Tom Tromey <tom@tromey.com> | |
2896 | ||
2897 | * progspace.c (program_space::exec_close): New method, from | |
2898 | exec_close in exec.c. | |
2899 | * exec.c (exec_close): Move to progspace.c. | |
2900 | (exec_target::close, exec_file_attach): Update. | |
2901 | * progspace.h (struct program_space) <exec_close>: Declare | |
2902 | method. | |
2903 | ||
2904 | 2020-10-29 Tom Tromey <tom@tromey.com> | |
2905 | ||
2906 | * progspace.h (struct program_space) <exec_filename>: Rename from | |
2907 | pspace_exec_filename. Now a unique_xmalloc_ptr. | |
2908 | * inferior.c (print_selected_inferior): Update. | |
2909 | (print_inferior): Update. | |
2910 | * mi/mi-main.c (print_one_inferior): Update. | |
2911 | * exec.h (exec_filename): Remove macro. | |
2912 | * corefile.c (get_exec_file): Update. | |
2913 | * exec.c (exec_close): Update. | |
2914 | (exec_file_attach): Update. | |
2915 | * progspace.c (clone_program_space): Update. | |
2916 | (print_program_space): Update. | |
2917 | ||
2918 | 2020-10-29 Tom Tromey <tom@tromey.com> | |
2919 | ||
2920 | * target-section.h (struct target_section): Add constructor. | |
2921 | * exec.c (build_section_table, add_target_sections_of_objfile): | |
2922 | Update. | |
2923 | * corelow.c (core_target::build_file_mappings): Update. | |
2924 | ||
2925 | 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
2926 | ||
2927 | PR gdb/19318 | |
2928 | * inferior.c (detach_inferior_command): Restore the current thread. | |
2929 | (kill_inferior_command): Ditto. | |
2930 | ||
2931 | 2020-10-28 Tom de Vries <tdevries@suse.de> | |
2932 | ||
2933 | PR symtab/26772 | |
2934 | * symtab.c (find_pc_sect_compunit_symtab): In case there's an address | |
2935 | map, check it in the "best match" loop. | |
2936 | ||
2937 | 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca> | |
2938 | ||
2939 | * m32c-tdep.c: Remove unused includes. | |
2940 | ||
2941 | 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca> | |
2942 | ||
2943 | * xtensa-tdep.c: Remove includes. | |
2944 | ||
2945 | 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
2946 | ||
2947 | * breakpoint.c (struct condition_command_opts): New struct. | |
2948 | (condition_command_option_defs): New static global. | |
2949 | (make_condition_command_options_def_group): New function. | |
2950 | (condition_completer): Update to consider the '-force' flag. | |
2951 | (condition_command): Use gdb::option for the '-force' flag. | |
2952 | ||
2953 | 2020-10-27 Tom de Vries <tdevries@suse.de> | |
2954 | ||
2955 | * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK | |
2956 | symbols in section check. | |
2957 | ||
2958 | 2020-10-27 Tom de Vries <tdevries@suse.de> | |
2959 | ||
2960 | * symtab.c (find_pc_sect_compunit_symtab): Use early continue. | |
2961 | ||
2962 | 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
2963 | ||
2964 | * breakpoint.h (set_breakpoint_condition): Add a new bool parameter. | |
2965 | * breakpoint.c: Update the help text of the 'condition' and 'break' | |
2966 | commands. | |
2967 | (set_breakpoint_condition): Take a new bool parameter | |
2968 | to control whether condition definition should be forced even when | |
2969 | the condition expression is invalid in all of the current locations. | |
2970 | (condition_command): Update the call to 'set_breakpoint_condition'. | |
2971 | (find_condition_and_thread): Take the "-force-condition" flag into | |
2972 | account. | |
2973 | * linespec.c (linespec_keywords): Add "-force-condition" as an | |
2974 | element. | |
2975 | (FORCE_KEYWORD_INDEX): New #define. | |
2976 | (linespec_lexer_lex_keyword): Update to consider "-force-condition" | |
2977 | as a keyword. | |
2978 | * ada-lang.c (create_ada_exception_catchpoint): Ditto. | |
2979 | * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto. | |
2980 | * python/py-breakpoint.c (bppy_set_condition): Ditto. | |
2981 | * NEWS: Mention the changes to the 'break' and 'condition' commands. | |
2982 | ||
2983 | 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
2984 | ||
2985 | * breakpoint.h (class bp_location) <disabled_by_cond>: New field. | |
2986 | * breakpoint.c (set_breakpoint_location_condition): New function. | |
2987 | (set_breakpoint_condition): Disable a breakpoint location if parsing | |
2988 | the condition string gives an error. | |
2989 | (should_be_inserted): Update to consider the 'disabled_by_cond' field. | |
2990 | (build_target_condition_list): Ditto. | |
2991 | (build_target_command_list): Ditto. | |
2992 | (build_bpstat_chain): Ditto. | |
2993 | (print_one_breakpoint_location): Ditto. | |
2994 | (print_one_breakpoint): Ditto. | |
2995 | (breakpoint_1): Ditto. | |
2996 | (bp_location::bp_location): Ditto. | |
2997 | (locations_are_equal): Ditto. | |
2998 | (update_breakpoint_locations): Ditto. | |
2999 | (enable_disable_bp_num_loc): Ditto. | |
3000 | (init_breakpoint_sal): Use set_breakpoint_location_condition. | |
3001 | (find_condition_and_thread_for_sals): New static function. | |
3002 | (create_breakpoint): Call find_condition_and_thread_for_sals. | |
3003 | (location_to_sals): Call find_condition_and_thread_for_sals instead | |
3004 | of find_condition_and_thread. | |
3005 | ||
3006 | 2020-10-26 Tom de Vries <tdevries@suse.de> | |
3007 | ||
3008 | * dwarf2/read.c (process_full_comp_unit): Call | |
3009 | dwarf2_find_base_address. | |
3010 | ||
3011 | 2020-10-26 Tom Tromey <tromey@adacore.com> | |
3012 | ||
3013 | * gdbtypes.c (create_range_type): Revert previous patch. Add | |
3014 | comment. | |
3015 | ||
3016 | 2020-10-26 Pedro Alves <pedro@palves.net> | |
3017 | ||
3018 | * nat/linux-waitpid.c: Include "gdbsupport/eintr.h". | |
3019 | (my_waitpid): Use gdb::handle_eintr. | |
3020 | ||
3021 | 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca> | |
3022 | ||
3023 | * acinclude.m4: Update ptrace.m4 path. | |
3024 | * ptrace.m4: Moved to gdbsupport. | |
3025 | ||
3026 | 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca> | |
3027 | ||
3028 | * symfile-mem.c (add_vsyscall_page): Use inferior parameter | |
3029 | instead of target_gdbarch. | |
3030 | ||
3031 | 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca> | |
3032 | ||
3033 | * jit.c (jit_reader_load_command): Pass current inferior. | |
3034 | (jit_inferior_init): Change parameter type to inferior, use it. | |
3035 | (jit_inferior_created): Remove. | |
3036 | (jit_inferior_created_hook): Pass inferior parameter down. | |
3037 | (_initialize_jit): Use jit_inferior_created_hook instead of | |
3038 | jit_inferior_created. | |
3039 | * jit.h (jit_inferior_created_hook): Add inferior parameter. | |
3040 | * infrun.c (follow_exec): Pass inferior to | |
3041 | jit_inferior_created_hook. | |
3042 | ||
3043 | 2020-10-24 Simon Marchi <simon.marchi@efficios.com> | |
3044 | ||
3045 | * linux-thread-db.c (check_pid_namespace_match): Add inferior | |
3046 | parameter and use it. | |
3047 | (thread_db_inferior_created): Pass inferior argument. | |
3048 | ||
3049 | 2020-10-24 Simon Marchi <simon.marchi@efficios.com> | |
3050 | ||
3051 | * aix-thread.c (aix_thread_inferior_created): Add inferior | |
3052 | parameter. | |
3053 | * bsd-uthread.c (bsd_uthread_inferior_created): Likewise. | |
3054 | * dummy-frame.c (cleanup_dummy_frames): Likewise. | |
3055 | * jit.c (jit_inferior_created): Likewise. | |
3056 | * linux-thread-db.c (thread_db_inferior_created): Likewise. | |
3057 | * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise. | |
3058 | * observable.h (inferior_created): Likewise. | |
3059 | * ravenscar-thread.c (ravenscar_inferior_created): Likewise. | |
3060 | * symfile-mem.c (add_vsyscall_page): Likewise. | |
3061 | * infcmd.c (post_create_inferior): Pass inferior argument. | |
3062 | ||
3063 | 2020-10-24 Joel Brobecker <brobecker@adacore.com> | |
3064 | ||
3065 | GDB 10.1 released. | |
3066 | ||
3067 | 2020-10-23 Joel Brobecker <brobecker@adacore.com> | |
3068 | ||
3069 | * ada-typeprint.c (ada_print_type): Remove superfluous second call | |
3070 | to ada_check_typedef. | |
3071 | ||
3072 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
3073 | ||
3074 | * f-exp.y (f_parse): Rename to... | |
3075 | (f_language::parser): ...this. | |
3076 | * f-lang.c (f_get_encoding): Rename to... | |
3077 | (f_language::get_encoding): ...this. | |
3078 | (f_op_print_tab): Rename to... | |
3079 | (f_language::op_print_tab): ...this. | |
3080 | (exp_descriptor_f): Rename to... | |
3081 | (f_language::exp_descriptor_tab): ...this. | |
3082 | (class f_language): Moved to f-lang.h. | |
3083 | (f_language::language_arch_info): New function, moved out of class | |
3084 | declaration. | |
3085 | (f_language::search_name_hash): Likewise. | |
3086 | (f_language::lookup_symbol_nonlocal): Likewise. | |
3087 | (f_language::get_symbol_name_matcher_inner): Likewise. | |
3088 | * f-lang.h: Add 'valprint.h' include. | |
3089 | (class f_language): Moved here from f-lang.c. | |
3090 | * f-typeprint.c (f_type_print_args): Delete commented out | |
3091 | declaration. | |
3092 | (f_print_typedef): Rename to... | |
3093 | (f_language::print_typedef): ...this. | |
3094 | (f_print_type): Rename to... | |
3095 | (f_language::print_type): ...this. | |
3096 | (f_type_print_varspec_prefix): Delete declaration and rename to... | |
3097 | (f_language::f_type_print_varspec_prefix): ...this. | |
3098 | (f_type_print_varspec_suffix): Delete declaration and rename to... | |
3099 | (f_language::f_type_print_varspec_suffix): ...this. | |
3100 | (f_type_print_base): Delete declaration and rename to... | |
3101 | (f_language::f_type_print_base): ...this. | |
3102 | * f-valprint.c (f_value_print_inner): Rename to... | |
3103 | (f_language::value_print_inner): ...this. | |
3104 | * parse.c: Delete 'f-lang.h' include. | |
3105 | ||
3106 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
3107 | ||
3108 | * language.h (language_defn::print_type): Add variable names in | |
3109 | declaration, and update header comment. | |
3110 | ||
3111 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
3112 | ||
3113 | * ada-lang.c (ada_language::demangle): Rename to... | |
3114 | (ada_language::demangle_symbol): ...this. | |
3115 | * c-lang.c (cplus_language::demangle): Rename to... | |
3116 | (cplus_language::demangle_symbol): ...this. | |
3117 | * d-lang.c (d_language::demangle): Rename to... | |
3118 | (d_language::demangle_symbol): ...this. | |
3119 | * f-lang.c (f_language::demangle): Rename to... | |
3120 | (f_language::demangle_symbol): ...this. | |
3121 | * go-lang.c (go_language::demangle): Rename to... | |
3122 | (go_language::demangle_symbol): ...this. | |
3123 | * language.c (language_demangle): Update call to demangle_symbol. | |
3124 | (auto_or_unknown_language::demangle): Rename to... | |
3125 | (auto_or_unknown_language::demangle_symbol): ...this. | |
3126 | * language.h (language_defn::demangle): Rename to... | |
3127 | (language_defn::demangle_symbol): ...this. | |
3128 | * objc-lang.c (objc_language::demangle): Rename to... | |
3129 | (objc_language::demangle_symbol): ...this. | |
3130 | * rust-lang.c (rust_language::demangle): Rename to... | |
3131 | (rust_language::demangle_symbol): ...this. | |
3132 | ||
3133 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
3134 | ||
3135 | * language.h (LA_ITERATE_OVER_SYMBOLS): Delete. | |
3136 | (iterate_over_file_blocks): Replace use of macro with the macros | |
3137 | definition. | |
3138 | ||
3139 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
3140 | ||
3141 | * language.h (LA_PRINT_ARRAY_INDEX): Delete. | |
3142 | * valprint.c (maybe_print_array_index): Replace use of macro with | |
3143 | the macros definition. | |
3144 | ||
3145 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
3146 | ||
3147 | * ada-lang.c (ada_language::print_array_index): Call value_print | |
3148 | directly. | |
3149 | * language.c (language_defn::print_array_index): Likewise. | |
3150 | * language.h (LA_VALUE_PRINT): Delete. | |
3151 | * valprint.c (value_print): Call value_print on the | |
3152 | current_language directly. | |
3153 | ||
3154 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
3155 | ||
3156 | * language.h (LA_PRINT_TYPEDEF): Delete. | |
3157 | * typeprint.c (typedef_print): Call print_typedef directly on the | |
3158 | current_language object. | |
3159 | ||
3160 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
3161 | ||
3162 | * m2-exp.y (m2_parse): Rename to... | |
3163 | (m2_language::parser): ...this. Update function signature. | |
3164 | * m2-lang.c (m2_printchar): Renamed to m2_language::printchar. | |
3165 | (m2_op_print): Rename to... | |
3166 | (m2_language::op_print_tab): ...this, and make const. | |
3167 | (exp_descriptor_modula2): Rename to... | |
3168 | (m2_language::exp_descriptor_modula2): ...this. | |
3169 | (class m2_language): Move to m2-lang.h. | |
3170 | (m2_language::language_arch_info): New function, moved out of | |
3171 | class declaration. | |
3172 | (m2_language::printchar): New function, body from m2_printchar. | |
3173 | (m2_language::printstr): New function, moved out of class | |
3174 | declaration. | |
3175 | (m2_language::emitchar): Likewise. | |
3176 | * m2-lang.h (m2_parse): Delete declaration. | |
3177 | (m2_print_typedef): Delete declaration. | |
3178 | (m2_value_print_inner): Delete declaration. | |
3179 | (class m2_language): Class declaration moved from m2-lang.c, | |
3180 | larger functions are left in m2-lang.c. | |
3181 | * m2-typeprint.c (m2_print_typedef): Rename to... | |
3182 | (m2_language::print_typedef): ...this, and update function | |
3183 | signature. | |
3184 | * m2-valprint.c (m2_value_print_inner): Rename to... | |
3185 | (m2_language::value_print_inner): ...this, replace use of | |
3186 | LA_PRINT_STRING with a direct call to printstr member function, | |
3187 | and update recursive call. | |
3188 | ||
3189 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
3190 | ||
3191 | * language.c (default_is_string_type_p): Delete, implementation | |
3192 | moved into auto_or_unknown_language::is_string_type_p. | |
3193 | (unk_op_print_tab): Moved into | |
3194 | auto_or_unknown_language::opcode_print_table. | |
3195 | (unknown_language_arch_info): Delete, implementation moved into | |
3196 | auto_or_unknown_language::language_arch_info. | |
3197 | (class auto_or_unknown_language): New class, member functions | |
3198 | copied from unknown_language class, with some updates. | |
3199 | (class unknown_language): Most member functions moved into | |
3200 | auto_or_unknown_language class. Inherit from | |
3201 | auto_or_unknown_language class. | |
3202 | (class auto_language): Inherit from auto_or_unknown_language. | |
3203 | Delete most member functions. | |
3204 | ||
3205 | 2020-10-22 Hannes Domani <ssbssa@yahoo.de> | |
3206 | ||
3207 | * stabsread.c (read_member_functions): Remove gdb_assert. | |
3208 | ||
3209 | 2020-10-22 Hannes Domani <ssbssa@yahoo.de> | |
3210 | ||
3211 | * gdbtypes.c (init_complex_type): Check target type name. | |
3212 | ||
3213 | 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca> | |
3214 | ||
3215 | * target-debug.h (target_debug_print_struct_target_ops_p): | |
3216 | Remove. | |
3217 | (target_debug_print_async_callback_ftype_p): Remove. | |
3218 | (target_debug_print_struct_trace_state_variable_p): Remove. | |
3219 | (target_debug_print_struct_traceframe_info_p): Remove. | |
3220 | (target_debug_print_VEC__btrace_block_s__pp): Remove. | |
3221 | (target_debug_print_enum_btrace_format): Remove. | |
3222 | (target_debug_print_enum_info_proc_what): Remove. | |
3223 | (target_debug_print_thread_info_pp): Remove. | |
3224 | ||
3225 | 2020-10-22 Simon Marchi <simon.marchi@efficios.com> | |
3226 | ||
3227 | * target.h (struct target_ops) <make_corefile_notes>: | |
3228 | Change return type to unique pointer. | |
3229 | * target.c (dummy_make_corefile_notes): Likewise. | |
3230 | * exec.c (struct exec_target) <make_corefile_notes>: | |
3231 | Likewise. | |
3232 | (exec_target::make_corefile_notes): Likewise. | |
3233 | * procfs.c (class procfs_target) <make_corefile_notes>: | |
3234 | Likewise. | |
3235 | (procfs_do_thread_registers): Adjust to unique pointer. | |
3236 | (struct procfs_corefile_thread_data): Add constructor. | |
3237 | <note_data>: Change type to unique pointer. | |
3238 | (procfs_corefile_thread_callback): Adjust to unique pointer. | |
3239 | (procfs_target::make_corefile_notes): Change return type to | |
3240 | unique pointer. | |
3241 | * target-delegates.c: Re-generate. | |
3242 | * gcore.c (write_gcore_file_1): Adjust. | |
3243 | * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char): | |
3244 | New. | |
3245 | ||
3246 | 2020-10-22 Tom de Vries <tdevries@suse.de> | |
3247 | ||
3248 | * block.c (find_block_in_blockvector): Make sure the returned block | |
3249 | contains pc. | |
3250 | ||
3251 | 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca> | |
3252 | ||
3253 | PR gdb/26693 | |
3254 | * dwarf2/read.c (load_full_comp_unit): Add existing_cu | |
3255 | parameter. | |
3256 | (load_cu): Pass existing CU. | |
3257 | (process_imported_unit_die): Likewise. | |
3258 | (follow_die_offset): Likewise. | |
3259 | ||
3260 | 2020-10-22 Luis Machado <luis.machado@linaro.org> | |
3261 | ||
3262 | * corelow.c (core_target::xfer_partial): Also check for an empty | |
3263 | m_core_unavailable_mappings vector. | |
3264 | ||
3265 | 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com> | |
3266 | ||
3267 | * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE. | |
3268 | * expression.h (enum range_type): Add RANGE_HAS_STRIDE. | |
3269 | * f-exp.y (arglist): Allow for a series of subranges. | |
3270 | (subrange): Add cases for subranges with strides. | |
3271 | * f-lang.c (value_f90_subarray): Catch use of array strides and | |
3272 | throw an error. | |
3273 | * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE. | |
3274 | ||
3275 | 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com> | |
3276 | ||
3277 | * expprint.c (print_subexp_standard): Change enum range_type to | |
3278 | range_flag and rename variables to match. | |
3279 | (dump_subexp_body_standard): Likewise. | |
3280 | * expression.h (enum range_type): Rename to... | |
3281 | (enum range_flag): ...this. | |
3282 | (range_types): Rename to... | |
3283 | (range_flags): ...this. | |
3284 | * f-lang.c (value_f90_subarray): Change enum range_type to | |
3285 | range_flag and rename variables to match. | |
3286 | * parse.c (operator_length_standard): Likewise. | |
3287 | * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum | |
3288 | range_type to range_flag. | |
3289 | * rust-lang.c (rust_evaluate_funcall): Likewise. | |
3290 | (rust_range): Likewise. | |
3291 | (rust_compute_range): Likewise. | |
3292 | (rust_subscript): Likewise. | |
3293 | ||
3294 | 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com> | |
3295 | ||
3296 | * expprint.c (print_subexp_standard): Update to reflect changes to | |
3297 | enum range_type. | |
3298 | (dump_subexp_body_standard): Likewise. | |
3299 | * expression.h (enum range_type): Convert to a bit field enum, and | |
3300 | make the enum unsigned. | |
3301 | * f-exp.y (subrange): Update to reflect changes to enum | |
3302 | range_type. | |
3303 | * f-lang.c (value_f90_subarray): Likewise. | |
3304 | * parse.c (operator_length_standard): Likewise. | |
3305 | * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise. | |
3306 | * rust-lang.c (rust_range): Likewise. | |
3307 | (rust_compute_range): Likewise. | |
3308 | (rust_subscript): Likewise. | |
3309 | ||
3310 | 2020-10-21 Simon Marchi <simon.marchi@efficios.com> | |
3311 | ||
3312 | * infrun.c (displaced_step_in_progress_thread): Fix comment. | |
3313 | (displaced_step_in_progress): Fix comment. | |
3314 | ||
3315 | 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca> | |
3316 | ||
3317 | * gdbarch.sh (make_corefile_notes): Return unique pointer. | |
3318 | * gdbarch.c: Re-generate. | |
3319 | * gdbarch.h: Re-generate. | |
3320 | * gcore.c (write_gcore_file_1): Adjust. | |
3321 | * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add | |
3322 | constructor. | |
3323 | <note_data>: Change type to unique pointer. | |
3324 | <abort_iteration>: Change type to bool. | |
3325 | (fbsd_collect_regset_section_cb): Adjust to unique pointer. | |
3326 | (fbsd_collect_thread_registers): Return void, adjust. | |
3327 | (struct fbsd_corefile_thread_data): Add construtor. | |
3328 | <note_data>: Change type to unique pointer. | |
3329 | (fbsd_corefile_thread): Adjust. | |
3330 | (fbsd_make_corefile_notes): Return unique pointer, adjust. | |
3331 | * linux-tdep.c (linux_make_mappings_corefile_notes): Change type | |
3332 | to unique pointer, adjust. | |
3333 | (struct linux_collect_regset_section_cb_data): Add constructor. | |
3334 | <note_data>: Change type to unique pointer. | |
3335 | <abort_iteration>: Change type to bool. | |
3336 | (linux_collect_thread_registers): Return void, adjust. | |
3337 | (struct linux_corefile_thread_data): Add constructor. | |
3338 | <note_data>: Change type to unique pointer. | |
3339 | (linux_corefile_thread): Adjust. | |
3340 | (linux_make_corefile_notes): Return unique pointer, adjust. | |
3341 | ||
3342 | 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca> | |
3343 | ||
3344 | * gdbarch.sh (displaced_step_hw_singlestep): Return bool. | |
3345 | * gdbarch.c: Re-generate. | |
3346 | * gdbarch.h: Re-generate. | |
3347 | * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return | |
3348 | bool. | |
3349 | * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep): | |
3350 | Likewise. | |
3351 | * arch-utils.h (default_displaced_step_hw_singlestep): Likewise. | |
3352 | * arch-utils.c (default_displaced_step_hw_singlestep): Likewise. | |
3353 | * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise. | |
3354 | * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise. | |
3355 | ||
3356 | 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca> | |
3357 | ||
3358 | * gdbarch.sh: Make generated predicates return bool. | |
3359 | * gdbarch.c: Re-generate. | |
3360 | * gdbarch.h: Re-generate. | |
3361 | ||
3362 | 2020-10-20 Tom Tromey <tom@tromey.com> | |
3363 | ||
3364 | * varobj-iter.h (struct varobj_item): Remove typedef. | |
3365 | ||
3366 | 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca> | |
3367 | ||
3368 | * infrun.c (currently_stepping): Change int to bool | |
3369 | (maybe_software_singlestep): Likewise. | |
3370 | (show_stop_on_solib_events): Likewise. | |
3371 | (stepping_past_nonsteppable_watchpoint): Likewise. | |
3372 | (displaced_step_in_progress_any_inferior): Likewise. | |
3373 | (displaced_step_in_progress_thread): Likewise. | |
3374 | (keep_going_stepped_thread): Likewise. | |
3375 | (thread_still_needs_step_over): Likewise. | |
3376 | (start_step_over): Likewise. | |
3377 | (do_target_resume): Likewise. | |
3378 | (resume_1): Likewise. | |
3379 | (clear_proceed_status): Likewise. | |
3380 | (thread_still_needs_step_over_bp): Likewise. | |
3381 | (proceed): Likewise. | |
3382 | (switch_back_to_stepped_thread): Likewise. | |
3383 | (adjust_pc_after_break): Likewise. | |
3384 | (stepped_in_from): Likewise. | |
3385 | (handle_stop_requested): Likewise. | |
3386 | (handle_syscall_event): Likewise. | |
3387 | (handle_no_resumed): Likewise. | |
3388 | (handle_inferior_event): Likewise. | |
3389 | (finish_step_over): Likewise. | |
3390 | (handle_signal_stop): Likewise. | |
3391 | (process_event_stop_test): Likewise. | |
3392 | ||
3393 | 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca> | |
3394 | ||
3395 | * infrun.c (get_displaced_stepping_state): Fix comment. | |
3396 | ||
3397 | 2020-10-20 Andreas Schwab <schwab@linux-m68k.org> | |
3398 | ||
3399 | * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help. | |
3400 | ||
3401 | 2020-10-19 Tom Tromey <tromey@adacore.com> | |
3402 | ||
3403 | PR tui/26719 | |
3404 | * tui/tui-winsource.h (struct tui_source_window_base) | |
3405 | <refresh_window>: Rename from refresh_pad. | |
3406 | * tui/tui-winsource.c (tui_source_window_base::refresh_window): | |
3407 | Rename from refresh_pad. | |
3408 | (tui_source_window_base::show_source_content) | |
3409 | (tui_source_window_base::do_scroll_horizontal): Update. | |
3410 | ||
3411 | 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
3412 | ||
3413 | * thread.c (_initialize_thread): Fine-tune the help text of | |
3414 | 'info threads'. | |
3415 | ||
3416 | 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
3417 | ||
3418 | * frame.c: Remove the unused 'uinteger_option_def' type alias. | |
3419 | ||
3420 | 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com> | |
3421 | ||
3422 | * breakpoint.c (handle_jit_event): Add an argument, change how | |
3423 | `jit_event_handler` is called. | |
3424 | ||
3425 | 2020-10-17 Tom Tromey <tom@tromey.com> | |
3426 | ||
3427 | * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty. | |
3428 | (scan_xcoff_symtab): Update. | |
3429 | * psymtab.h (class psymtab_storage) <global_psymbols, | |
3430 | static_psymbols, current_global_psymbols, | |
3431 | current_static_psymbols>: Remove. | |
3432 | * psymtab.c (require_partial_symbols, find_pc_sect_psymbol) | |
3433 | (match_partial_symbol, lookup_partial_symbol): Update. | |
3434 | (print_partial_symbols): Change parameters. | |
3435 | (dump_psymtab, recursively_search_psymtabs) | |
3436 | (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address) | |
3437 | (sort_pst_symbols, partial_symtab::partial_symtab): Update. | |
3438 | (concat): Remove. | |
3439 | (end_psymtab_common): Simplify. | |
3440 | (append_psymbol_to_list): Change parameters. | |
3441 | (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list. | |
3442 | (init_psymbol_list): Simplify. | |
3443 | (maintenance_info_psymtabs, maintenance_check_psymtabs): Update. | |
3444 | * psympriv.h (struct partial_symtab) <empty>: New method. | |
3445 | <globals_offset, n_global_syms, statics_offset, n_static_syms>: | |
3446 | Remove. | |
3447 | <global_psymbols, static_psymbols>: New members. | |
3448 | <add_psymbol>: New methods. | |
3449 | (add_psymbol_to_list): Don't declare. | |
3450 | (psymbol_placement): Move earlier. | |
3451 | * mdebugread.c (parse_partial_symbols): Update. | |
3452 | (handle_psymbol_enumerators): Change parameters. | |
3453 | (mdebug_expand_psymtab): Update. | |
3454 | * dwarf2/read.c (process_psymtab_comp_unit_reader) | |
3455 | (add_partial_symbol): Update. | |
3456 | * dwarf2/index-write.c (write_psymbols): Change parameters. | |
3457 | (write_one_signatured_type): Update. | |
3458 | (recursively_count_psymbols): Update. | |
3459 | (recursively_write_psymbols): Update. | |
3460 | (class debug_names) <recursively_write_psymbols>: Update. | |
3461 | <write_psymbols>: Change parameters. | |
3462 | <write_one_signatured_type>: Update. | |
3463 | * dbxread.c (read_dbx_symtab): Update. | |
3464 | (dbx_end_psymtab): Use partial_symtab::empty. | |
3465 | * ctfread.c (struct ctf_context) <pst>: New member. | |
3466 | (create_partial_symtab): Set it. | |
3467 | (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update. | |
3468 | (scan_partial_symbols): Use the psymtab's context. Update. | |
3469 | ||
3470 | 2020-10-17 Tom Tromey <tom@tromey.com> | |
3471 | ||
3472 | * valprint.c (generic_value_print): Remove comment. | |
3473 | * m2-valprint.c (m2_value_print_inner): Remove comment. | |
3474 | * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base | |
3475 | type. | |
3476 | ||
3477 | 2020-10-17 Tom de Vries <tdevries@suse.de> | |
3478 | ||
3479 | PR symtab/26317 | |
3480 | * source.c (select_source_symtab): Handling sal.symtab == NULL for | |
3481 | symbol main. | |
3482 | ||
3483 | 2020-10-14 Tom de Vries <tdevries@suse.de> | |
3484 | ||
3485 | PR gdb/26733 | |
3486 | * solib.c (solib_contains_address_p): Handle | |
3487 | 'solib->sections == nullptr'. | |
3488 | ||
3489 | 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca> | |
3490 | ||
3491 | PR gdb/26642 | |
3492 | * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the | |
3493 | target can't do async. | |
3494 | * target.c (target_wait): Assert that we don't pass | |
3495 | TARGET_WNOHANG to a target that can't async. | |
3496 | ||
3497 | 2020-10-13 Kamil Rytarowski <n54@gmx.com> | |
3498 | ||
3499 | * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS) | |
3500 | HFILES_NO_SRCDIR, ALLDEPFILES): Rename files. | |
3501 | * alpha-bsd-nat.c: Adjust include. | |
3502 | * alpha-bsd-tdep.h: Adjust comment. | |
3503 | * alpha-nbsd-tdep.c: Rename to ... | |
3504 | * alpha-netbsd-tdep.c: ... this, adjust include. | |
3505 | * amd64-nbsd-nat.c: Rename to ... | |
3506 | * amd64-netbsd-nat.c: ... this, adjust include. | |
3507 | * amd64-nbsd-tdep.c: Rename to ... | |
3508 | * amd64-netbsd-tdep.c: ... this, adjust include. | |
3509 | * amd64-tdep.h: Adjust include. | |
3510 | * arm-nbsd-nat.c: Rename to ... | |
3511 | * arm-netbsd-nat.c: ... this, adjust include. | |
3512 | * arm-nbsd-tdep.c: Rename to ... | |
3513 | * arm-netbsd-tdep.c: ... this, adjust include. | |
3514 | * arm-nbsd-tdep.h: Rename to ... | |
3515 | * arm-netbsd-tdep.h: ... this, adjust include. | |
3516 | * configure.nat: Adjust file lists. | |
3517 | * configure.tgt: Likewise. | |
3518 | * hppa-nbsd-nat.c: Rename to ... | |
3519 | * hppa-netbsd-nat.c: ... this, adjust include. | |
3520 | * hppa-nbsd-tdep.c: Rename to ... | |
3521 | * hppa-netbsd-tdep.c: ... this, adjust include. | |
3522 | * i386-nbsd-nat.c: Rename to ... | |
3523 | * i386-netbsd-nat.c: ... this, adjust include. | |
3524 | * i386-nbsd-tdep.c: Rename to ... | |
3525 | * i386-netbsd-tdep.c: ... this, adjust include. | |
3526 | * m68k-bsd-nat.c: Adjust include. | |
3527 | * mips-nbsd-nat.c: Rename to ... | |
3528 | * mips-netbsd-nat.c: ... this, adjust include. | |
3529 | * mips-nbsd-tdep.c: Rename to ... | |
3530 | * mips-netbsd-tdep.c: ... this, adjust include. | |
3531 | * mips-nbsd-tdep.h: Rename to ... | |
3532 | * mips-netbsd-tdep.h: ... this. | |
3533 | * nbsd-nat.c: Rename to ... | |
3534 | * netbsd-nat.c: ... this, adjust include. | |
3535 | * nbsd-nat.h: Rename to ... | |
3536 | * netbsd-nat.h: ... this, adjust include. | |
3537 | * nbsd-tdep.c: Rename to ... | |
3538 | * netbsd-tdep.c: ... this, adjust include. | |
3539 | * nbsd-tdep.h: Rename to ... | |
3540 | * netbsd-tdep.h: ... this. | |
3541 | * ppc-nbsd-nat.c: Rename to ... | |
3542 | * ppc-netbsd-nat.c: ... this, adjust include. | |
3543 | * ppc-nbsd-tdep.c: Rename to ... | |
3544 | * ppc-netbsd-tdep.c: ... this, adjust include and comment. | |
3545 | * ppc-nbsd-tdep.h: Rename to ... | |
3546 | * ppc-netbsd-tdep.h: ... this. | |
3547 | * sh-nbsd-nat.c: Rename to ... | |
3548 | * sh-netbsd-nat.c: ... this, adjust include. | |
3549 | * sh-nbsd-tdep.c: Rename to ... | |
3550 | * sh-netbsd-tdep.c: ... this, adjust include. | |
3551 | * sparc-nbsd-nat.c: Rename to ... | |
3552 | * sparc-netbsd-nat.c: ... this. | |
3553 | * sparc-nbsd-tdep.c: Rename to ... | |
3554 | * sparc-netbsd-tdep.c: ... this, adjust include. | |
3555 | * sparc64-nbsd-nat.c: Rename to ... | |
3556 | * sparc64-netbsd-nat.c: ... this. | |
3557 | * sparc64-nbsd-tdep.c: Rename to ... | |
3558 | * sparc64-netbsd-tdep.c: ... this, adjust include. | |
3559 | * sparc64-tdep.h: Adjust comment. | |
3560 | * vax-bsd-nat.c: Adjust include. | |
3561 | * vax-nbsd-tdep.c: Rename to ... | |
3562 | * vax-netbsd-tdep.c: ... this, adjust include. | |
3563 | ||
3564 | 2020-10-12 Tom Tromey <tom@tromey.com> | |
3565 | ||
3566 | * target.h (struct target_ops) <get_section_table>: Update. | |
3567 | (target_get_section_table): Update. | |
3568 | * target.c (target_get_section_table, target_section_by_addr) | |
3569 | (memory_xfer_partial_1): Update. | |
3570 | * target-section.h (target_section_table): Now an alias. | |
3571 | * target-delegates.c: Rebuild. | |
3572 | * target-debug.h (target_debug_print_target_section_table_p): | |
3573 | Rename from target_debug_print_struct_target_section_table_p. | |
3574 | * symfile.c (build_section_addr_info_from_section_table): Update. | |
3575 | * solib.c (solib_map_sections, solib_contains_address_p): Update. | |
3576 | * solib-svr4.c (scan_dyntag): Update. | |
3577 | * solib-dsbt.c (scan_dyntag): Update. | |
3578 | * remote.c (remote_target::remote_xfer_live_readonly_partial): | |
3579 | Update. | |
3580 | * record-full.c (record_full_core_target::xfer_partial): Update. | |
3581 | * progspace.h (struct program_space) <target_sections>: Update. | |
3582 | * exec.h (print_section_info): Update. | |
3583 | * exec.c (exec_target::close, build_section_table) | |
3584 | (add_target_sections, add_target_sections_of_objfile) | |
3585 | (remove_target_sections, exec_on_vfork) | |
3586 | (section_table_available_memory) | |
3587 | (section_table_xfer_memory_partial) | |
3588 | (exec_target::get_section_table, exec_target::xfer_partial) | |
3589 | (print_section_info, set_section_command) | |
3590 | (exec_set_section_address, exec_target::has_memory): Update. | |
3591 | * corelow.c (core_target::build_file_mappings) | |
3592 | (core_target::xfer_partial, core_target::info_proc_mappings) | |
3593 | (core_target::info_proc_mappings): Update. | |
3594 | * bfd-target.c (class target_bfd): Update | |
3595 | ||
3596 | 2020-10-12 Tom Tromey <tom@tromey.com> | |
3597 | ||
3598 | * progspace.c (program_space::~program_space): Don't call | |
3599 | clear_section_table. | |
3600 | * exec.h (clear_section_table): Don't declare. | |
3601 | * exec.c (exec_target::close): Update. | |
3602 | (clear_section_table): Remove. | |
3603 | ||
3604 | 2020-10-12 Tom Tromey <tom@tromey.com> | |
3605 | ||
3606 | * exec.c (add_target_sections_of_objfile): Simplify. | |
3607 | ||
3608 | 2020-10-12 Tom Tromey <tom@tromey.com> | |
3609 | ||
3610 | * solib.c (solib_map_sections): Update. | |
3611 | * record-full.c (record_full_core_open_1): Update. | |
3612 | * exec.h (build_section_table): Return a target_section_table. | |
3613 | * exec.c (exec_file_attach): Update. | |
3614 | (build_section_table): Return a target_section_table. | |
3615 | * corelow.c (core_target::core_target): Update. | |
3616 | * bfd-target.c (target_bfd::target_bfd): Update. | |
3617 | ||
3618 | 2020-10-12 Tom Tromey <tom@tromey.com> | |
3619 | ||
3620 | * target.c (target_section_by_addr, memory_xfer_partial_1): | |
3621 | Update. | |
3622 | * target-section.h (struct target_section_table): Use | |
3623 | std::vector. | |
3624 | * symfile.h (build_section_addr_info_from_section_table): Take a | |
3625 | target_section_table. | |
3626 | * symfile.c (build_section_addr_info_from_section_table): Take a | |
3627 | target_section_table. | |
3628 | * solist.h (struct so_list) <sections>: Change type. | |
3629 | <sections_end>: Remove. | |
3630 | * solib.c (solib_map_sections, clear_so, solib_read_symbols) | |
3631 | (solib_contains_address_p): Update. | |
3632 | * solib-svr4.c (scan_dyntag): Update. | |
3633 | * solib-dsbt.c (scan_dyntag): Update. | |
3634 | * remote.c (remote_target::remote_xfer_live_readonly_partial): | |
3635 | Update. | |
3636 | * record-full.c (record_full_core_start, record_full_core_end): | |
3637 | Remove. | |
3638 | (record_full_core_sections): New global. | |
3639 | (record_full_core_open_1, record_full_core_target::xfer_partial): | |
3640 | Update. | |
3641 | * exec.h (build_section_table, section_table_xfer_memory_partial) | |
3642 | (add_target_sections): Take a target_section_table. | |
3643 | * exec.c (exec_file_attach, clear_section_table): Update. | |
3644 | (resize_section_table): Remove. | |
3645 | (build_section_table, add_target_sections): Take a | |
3646 | target_section_table. | |
3647 | (add_target_sections_of_objfile, remove_target_sections) | |
3648 | (exec_on_vfork): Update. | |
3649 | (section_table_available_memory): Take a target_section_table. | |
3650 | (section_table_read_available_memory): Update. | |
3651 | (section_table_xfer_memory_partial): Take a target_section_table. | |
3652 | (print_section_info, set_section_command) | |
3653 | (exec_set_section_address, exec_target::has_memory): Update. | |
3654 | * corelow.c (class core_target) <m_core_section_table, | |
3655 | m_core_file_mappings>: Remove braces. | |
3656 | <~core_target>: Remove. | |
3657 | (core_target::core_target): Update. | |
3658 | (core_target::~core_target): Remove. | |
3659 | (core_target::build_file_mappings) | |
3660 | (core_target::xfer_memory_via_mappings) | |
3661 | (core_target::xfer_partial, core_target::info_proc_mappings): | |
3662 | Update. | |
3663 | * bfd-target.c (target_bfd::xfer_partial): Update. | |
3664 | (target_bfd::target_bfd): Update. | |
3665 | (target_bfd::~target_bfd): Remove. | |
3666 | ||
3667 | 2020-10-12 Tom Tromey <tom@tromey.com> | |
3668 | ||
3669 | * target.h (struct target_section, struct target_section_table): | |
3670 | Move to target-section.h. | |
3671 | * target-section.h: New file. | |
3672 | ||
3673 | 2020-10-12 Pedro Alves <pedro@palves.net> | |
3674 | ||
3675 | PR exp/26602 | |
3676 | * valops.c (struct struct_field_searcher): New. | |
3677 | (update_search_result): Rename to ... | |
3678 | (struct_field_searcher::update_result): ... this. Simplify | |
3679 | prototype. Record all found fields. | |
3680 | (do_search_struct_field): Rename to ... | |
3681 | (struct_field_searcher::search): ... this. Simplify prototype. | |
3682 | Maintain stack of visited baseclass path. Call update_result for | |
3683 | fields too. Keep searching fields in baseclasses instead of | |
3684 | stopping at the first found field. | |
3685 | (search_struct_field): Use struct_field_searcher. When looking | |
3686 | for fields, report ambiguous access attempts. | |
3687 | ||
3688 | 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com> | |
3689 | ||
3690 | * frame.c (inside_main_func): Check full symbols as well as | |
3691 | minimal symbols. | |
3692 | ||
3693 | 2020-10-09 Joel Brobecker <brobecker@adacore.com> | |
3694 | ||
3695 | * ada-lang.c (advance_wild_match): Rewrite the function's | |
3696 | description. Change the type of target0, t0 and t1 to char. | |
3697 | ||
3698 | 2020-10-09 Tom Tromey <tromey@adacore.com> | |
3699 | ||
3700 | * dwarf2/read.c (dwarf2_add_field): Handle signed offsets. | |
3701 | ||
3702 | 2020-10-09 Tom Tromey <tromey@adacore.com> | |
3703 | ||
3704 | * ada-lang.h (ada_encode): Return std::string. | |
3705 | * ada-lang.c (ada_encode_1): Return std::string. | |
3706 | (ada_encode): Likewise. | |
3707 | (type_from_tag, ada_lookup_name_info::ada_lookup_name_info): | |
3708 | Update. | |
3709 | * ada-exp.y (block_lookup, write_var_or_type): Update. | |
3710 | ||
3711 | 2020-10-09 Hannes Domani <ssbssa@yahoo.de> | |
3712 | ||
3713 | PR exp/26714 | |
3714 | * printcmd.c (print_formatted): Handle void results as | |
3715 | unformatted prints. | |
3716 | ||
3717 | 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com> | |
3718 | ||
3719 | * arch/aarch32.c (aarch32_create_target_description): Release the | |
3720 | target_desc_up as late as possible. | |
3721 | * arch/aarch64.c (aarch64_create_target_description): Likewise. | |
3722 | * arch/amd64.c (amd64_create_target_description): Likewise. | |
3723 | * arch/arc.c (arc_create_target_description): Return a | |
3724 | target_desc_up, don't release it. | |
3725 | * arch/arc.h (arc_create_target_description): Update declaration. | |
3726 | (arc_lookup_target_description): Move target_desc_up into the | |
3727 | cache, and return a borrowed pointer. | |
3728 | * arch/arm.c (arm_create_target_description): Release the | |
3729 | target_desc_up as late as possible. | |
3730 | * arch/i386.c (i386_create_target_description): Likewise. | |
3731 | * arch/riscv.h (riscv_create_target_description): Update | |
3732 | declaration to match definition. | |
3733 | * arch/tic6x.c (tic6x_create_target_description): Release the | |
3734 | target_desc_up as late as possible. | |
3735 | ||
3736 | 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com> | |
3737 | ||
3738 | * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU | |
3739 | or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking. | |
3740 | ||
3741 | 2020-10-09 Jan Vrany <jan.vrany@labware.com> | |
3742 | ||
3743 | * source.c (directory_command): Notify observers that "directories" | |
3744 | parameter has changed. | |
3745 | ||
3746 | 2020-10-08 Tom Tromey <tom@tromey.com> | |
3747 | ||
3748 | * cli/cli-cmds.c (print_disassembly): Style function name and | |
3749 | addresses. Add _() wrappers. | |
3750 | ||
3751 | 2020-10-08 Shahab Vahedi <shahab@synopsys.com> | |
3752 | ||
3753 | * NEWS: Mention ARC support in GDBserver. | |
3754 | ||
3755 | 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com> | |
3756 | ||
3757 | * arch/aarch32.c (aarch32_create_target_description): Release | |
3758 | unique_ptr returned from allocate_target_description. | |
3759 | * arch/aarch64.c (aarch64_create_target_description): Likewise. | |
3760 | * arch/amd64.c (amd64_create_target_description): Likewise. | |
3761 | * arch/arc.c (arc_create_target_description): Likewise. | |
3762 | * arch/arm.c (arm_create_target_description): Likewise. | |
3763 | * arch/i386.c (i386_create_target_description): Likewise. | |
3764 | * arch/riscv.c (riscv_create_target_description): Update return | |
3765 | type. Handle allocate_target_description returning a unique_ptr. | |
3766 | (riscv_lookup_target_description): Update to handle unique_ptr. | |
3767 | * arch/tic6x.c (tic6x_create_target_description): Release | |
3768 | unique_ptr returned from allocate_target_description. | |
3769 | * features/microblaze-with-stack-protect.c: Regenerate. | |
3770 | * features/microblaze.c: Regenerate. | |
3771 | * features/mips-dsp-linux.c: Regenerate. | |
3772 | * features/mips-linux.c: Regenerate. | |
3773 | * features/mips64-dsp-linux.c: Regenerate. | |
3774 | * features/mips64-linux.c: Regenerate. | |
3775 | * features/nds32.c: Regenerate. | |
3776 | * features/nios2.c: Regenerate. | |
3777 | * features/or1k.c: Regenerate. | |
3778 | * features/rs6000/powerpc-32.c: Regenerate. | |
3779 | * features/rs6000/powerpc-32l.c: Regenerate. | |
3780 | * features/rs6000/powerpc-403.c: Regenerate. | |
3781 | * features/rs6000/powerpc-403gc.c: Regenerate. | |
3782 | * features/rs6000/powerpc-405.c: Regenerate. | |
3783 | * features/rs6000/powerpc-505.c: Regenerate. | |
3784 | * features/rs6000/powerpc-601.c: Regenerate. | |
3785 | * features/rs6000/powerpc-602.c: Regenerate. | |
3786 | * features/rs6000/powerpc-603.c: Regenerate. | |
3787 | * features/rs6000/powerpc-604.c: Regenerate. | |
3788 | * features/rs6000/powerpc-64.c: Regenerate. | |
3789 | * features/rs6000/powerpc-64l.c: Regenerate. | |
3790 | * features/rs6000/powerpc-7400.c: Regenerate. | |
3791 | * features/rs6000/powerpc-750.c: Regenerate. | |
3792 | * features/rs6000/powerpc-860.c: Regenerate. | |
3793 | * features/rs6000/powerpc-altivec32.c: Regenerate. | |
3794 | * features/rs6000/powerpc-altivec32l.c: Regenerate. | |
3795 | * features/rs6000/powerpc-altivec64.c: Regenerate. | |
3796 | * features/rs6000/powerpc-altivec64l.c: Regenerate. | |
3797 | * features/rs6000/powerpc-e500.c: Regenerate. | |
3798 | * features/rs6000/powerpc-e500l.c: Regenerate. | |
3799 | * features/rs6000/powerpc-isa205-32l.c: Regenerate. | |
3800 | * features/rs6000/powerpc-isa205-64l.c: Regenerate. | |
3801 | * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate. | |
3802 | * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate. | |
3803 | * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate. | |
3804 | * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate. | |
3805 | * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate. | |
3806 | * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate. | |
3807 | * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate. | |
3808 | * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate. | |
3809 | * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate. | |
3810 | * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate. | |
3811 | * features/rs6000/powerpc-vsx32.c: Regenerate. | |
3812 | * features/rs6000/powerpc-vsx32l.c: Regenerate. | |
3813 | * features/rs6000/powerpc-vsx64.c: Regenerate. | |
3814 | * features/rs6000/powerpc-vsx64l.c: Regenerate. | |
3815 | * features/rs6000/rs6000.c: Regenerate. | |
3816 | * features/rx.c: Regenerate. | |
3817 | * features/s390-gs-linux64.c: Regenerate. | |
3818 | * features/s390-linux32.c: Regenerate. | |
3819 | * features/s390-linux32v1.c: Regenerate. | |
3820 | * features/s390-linux32v2.c: Regenerate. | |
3821 | * features/s390-linux64.c: Regenerate. | |
3822 | * features/s390-linux64v1.c: Regenerate. | |
3823 | * features/s390-linux64v2.c: Regenerate. | |
3824 | * features/s390-te-linux64.c: Regenerate. | |
3825 | * features/s390-tevx-linux64.c: Regenerate. | |
3826 | * features/s390-vx-linux64.c: Regenerate. | |
3827 | * features/s390x-gs-linux64.c: Regenerate. | |
3828 | * features/s390x-linux64.c: Regenerate. | |
3829 | * features/s390x-linux64v1.c: Regenerate. | |
3830 | * features/s390x-linux64v2.c: Regenerate. | |
3831 | * features/s390x-te-linux64.c: Regenerate. | |
3832 | * features/s390x-tevx-linux64.c: Regenerate. | |
3833 | * features/s390x-vx-linux64.c: Regenerate. | |
3834 | * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned | |
3835 | from allocate_target_description. | |
3836 | * target-descriptions.c (allocate_target_description): Update | |
3837 | return type. | |
3838 | (print_c_tdesc::visit_pre): Release unique_ptr returned from | |
3839 | allocate_target_description. | |
3840 | ||
3841 | 2020-10-07 Tom Tromey <tromey@adacore.com> | |
3842 | ||
3843 | * unittests/search-memory-selftests.c: New file. | |
3844 | * Makefile.in (SELFTESTS_SRCS): Add | |
3845 | unittests/search-memory-selftests.c. | |
3846 | ||
3847 | 2020-10-07 Tom Tromey <tromey@adacore.com> | |
3848 | ||
3849 | PR gdb/16930: | |
3850 | * findcmd.c (_initialize_mem_search): Mention that the range is | |
3851 | inclusive. | |
3852 | ||
3853 | 2020-10-07 Tom Tromey <tromey@adacore.com> | |
3854 | ||
3855 | * target.h (simple_search_memory): Don't declare. | |
3856 | * target.c (simple_search_memory): Move to gdbsupport. | |
3857 | (default_search_memory): Update. | |
3858 | * remote.c (remote_target::search_memory): Update. | |
3859 | ||
3860 | 2020-10-07 Simon Marchi <simon.marchi@efficios.com> | |
3861 | ||
3862 | * Makefile.in (COMPILE): Add CXXFLAGS. | |
3863 | (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS. | |
3864 | (check-headers): Add CXXFLAGS. | |
3865 | ||
3866 | 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com> | |
3867 | ||
3868 | * arc-linux-tdep.h: New file. | |
3869 | * arc-linux-tdep.c (arc_linux_core_reg_offsets, | |
3870 | arc_linux_supply_gregset, arc_linux_supply_v2_regset, | |
3871 | arc_linux_collect_gregset, arc_linux_collect_v2_regset, | |
3872 | arc_linux_gregset, arc_linux_v2_regset, | |
3873 | arc_linux_iterate_over_regset_sections, | |
3874 | arc_linux_core_read_description): Implement. | |
3875 | (arc_linux_init_osabi): Set iterate_over_regset_sections. | |
3876 | * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare. | |
3877 | (arc_gdbarch_features_create): Add. | |
3878 | * arc-tdep.c (arc_gdbarch_features_create): Not static anymore. | |
3879 | ||
3880 | 2020-10-07 Shahab Vahedi <shahab@synopsys.com> | |
3881 | ||
3882 | * arch/arc.h: Rename "arc_gdbarch_features" to | |
3883 | "arc_arch_features". | |
3884 | * arc-tdep.h: Likewise. | |
3885 | * arc-tdep.c: Likewise. | |
3886 | ||
3887 | 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
3888 | ||
3889 | * infcmd.c (attach_command): Remove the redundant call to | |
3890 | `clear_proceed_status`. | |
3891 | ||
3892 | 2020-10-07 Kamil Rytarowski <n54@gmx.com> | |
3893 | ||
3894 | * nat/netbsd-nat.c (write_memory, read_memory): Update. | |
3895 | ||
3896 | 2020-10-07 Kamil Rytarowski <n54@gmx.com> | |
3897 | ||
3898 | * nat/netbsd-nat.c (write_memory, read_memory): Add. | |
3899 | * nat/netbsd-nat.h (write_memory, read_memory): Likewise. | |
3900 | * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update. | |
3901 | ||
3902 | 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca> | |
3903 | ||
3904 | * break-catch-sig.c (signal_catch_counts): Make a static arrray. | |
3905 | (_initialize_break_catch_sig): Don't allocate array. | |
3906 | ||
3907 | 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com> | |
3908 | ||
3909 | * symtab.c (find_pc_line): Return unmapped addresses when the | |
3910 | requested address is also unmapped. | |
3911 | ||
3912 | 2020-10-05 Simon Marchi <simon.marchi@efficios.com> | |
3913 | ||
3914 | * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add | |
3915 | tui/tui-out.h. | |
3916 | ||
3917 | 2020-10-05 Simon Marchi <simon.marchi@efficios.com> | |
3918 | ||
3919 | * amd64-windows-tdep.c (amd64_windows_return_value): Use | |
3920 | type::is_vector instead of TYPE_VECTOR. | |
3921 | ||
3922 | 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca> | |
3923 | ||
3924 | * auto-load.c (auto_load_objfile_script_1): Don't use | |
3925 | debugfile_holder as temporary variable when stripping drive | |
3926 | letter. | |
3927 | ||
3928 | 2020-10-05 Hannes Domani <ssbssa@yahoo.de> | |
3929 | ||
3930 | * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register): | |
3931 | Add TYPE_CODE_COMPLEX. | |
3932 | (amd64_windows_return_value): Fix types returned via XMM0. | |
3933 | ||
3934 | 2020-10-05 Alan Hayward <alan.hayward@arm.com> | |
3935 | ||
3936 | * MAINTAINERS (Responsible Maintainers): Add Luis Machado to | |
3937 | AArch64/ARM maintainers. | |
3938 | ||
3939 | 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca> | |
3940 | ||
3941 | * NEWS: Mention set/show debug event-loop. | |
3942 | ||
3943 | 2020-10-02 Tom Tromey <tromey@adacore.com> | |
3944 | ||
3945 | * skip.c (skiplist_entry::skiplist_entry): Unconditionally use | |
3946 | REG_EXTENDED. | |
3947 | ||
3948 | 2020-10-02 Simon Marchi <simon.marchi@efficios.com> | |
3949 | ||
3950 | * aix-thread.c (aix_thread_inferior_created): Remove parameters. | |
3951 | * procfs.c (procfs_inferior_created): Remove. | |
3952 | (_initialize_procfs): Don't register procfs_inferior_created. | |
3953 | ||
3954 | 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca> | |
3955 | ||
3956 | * async-event.c (invoke_async_signal_handlers): Add debug | |
3957 | print. | |
3958 | (check_async_event_handlers): Likewise. | |
3959 | * event-top.c (show_debug_event_loop): New function. | |
3960 | (_initialize_event_top): Register "set debug event-loop" | |
3961 | setting. | |
3962 | ||
3963 | 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca> | |
3964 | ||
3965 | * debug.c (debug_prefixed_vprintf): Move to gdbsupport. | |
3966 | * debug.h: Remove. | |
3967 | * infrun.c: Include gdbsupport/common-debug.h. | |
3968 | * linux-nat.c: Likewise. | |
3969 | ||
3970 | 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca> | |
3971 | ||
3972 | * async-event.h (create_async_signal_handler): Add name | |
3973 | parameter. | |
3974 | (create_async_event_handler): Likewise. | |
3975 | * async-event.c (struct async_signal_handler) <name>: New field. | |
3976 | (struct async_event_handler) <name>: New field. | |
3977 | (create_async_signal_handler): Assign name. | |
3978 | (create_async_event_handler): Assign name. | |
3979 | * event-top.c (async_init_signals): Pass name when creating | |
3980 | handler. | |
3981 | * infrun.c (_initialize_infrun): Likewise. | |
3982 | * record-btrace.c (record_btrace_push_target): Likewise. | |
3983 | * record-full.c (record_full_open): Likewise. | |
3984 | * remote-notif.c (remote_notif_state_allocate): Likewise. | |
3985 | * remote.c (remote_target::open_1): Likewise. | |
3986 | * tui/tui-win.c (tui_initialize_win): Likewise. | |
3987 | ||
3988 | 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca> | |
3989 | ||
3990 | * async-event.c (initialize_async_signal_handlers): Pass name to | |
3991 | add_file_handler | |
3992 | * event-top.c (ui_register_input_event_handler): Likewise. | |
3993 | * linux-nat.c (linux_nat_target::async): Likewise. | |
3994 | * run-on-main-thread.c (_initialize_run_on_main_thread): | |
3995 | Likewise | |
3996 | * ser-base.c (reschedule): Likewise. | |
3997 | (ser_base_async): Likewise. | |
3998 | * tui/tui-io.c: Likewise. | |
3999 | * top.h (struct ui) <num>: New field. | |
4000 | * top.c (highest_ui_num): New variable. | |
4001 | (ui::ui): Initialize num. | |
4002 | ||
4003 | 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca> | |
4004 | ||
4005 | * observable.h <inferior_created>: Remove parameters. Update all | |
4006 | listeners. | |
4007 | * inferior.h (post_create_inferior): Remove target parameter. | |
4008 | Update all callers. | |
4009 | ||
4010 | 2020-10-02 Nitika Achra <Nitika.Achra@amd.com> | |
4011 | ||
4012 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx | |
4013 | and DW_MACRO_undef_strx. | |
4014 | (dwarf_decode_macros): Likewise | |
4015 | * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters | |
4016 | which is the value of DW_AT_str_offsets_base. | |
4017 | * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include | |
4018 | str_offsets_base. | |
4019 | ||
4020 | 2020-10-01 Kamil Rytarowski <n54@gmx.com> | |
4021 | ||
4022 | * i386-tdep.h (i386nbsd_sc_reg_offset): Remove. | |
4023 | ||
4024 | 2020-10-01 Kamil Rytarowski <n54@gmx.com> | |
4025 | ||
4026 | * i386-bsd-nat.c (_initialize_i386bsd_nat): Update. | |
4027 | * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static. | |
4028 | ||
4029 | 2020-10-01 Kamil Rytarowski <n54@gmx.com> | |
4030 | ||
4031 | * i386-bsd-nat.c: Include "x86-bsd-nat.h". | |
4032 | ||
4033 | 2020-09-30 Tom de Vries <tdevries@suse.de> | |
4034 | ||
4035 | PR symtab/26683 | |
4036 | * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated. | |
4037 | ||
4038 | 2020-09-30 Tom Tromey <tromey@adacore.com> | |
4039 | ||
4040 | * dwarf2/read.c (handle_variant): Use constant_value. | |
4041 | ||
4042 | 2020-09-29 Tom Tromey <tom@tromey.com> | |
4043 | ||
4044 | * dwarf2/read.c (lookup_dwo_id, get_type_unit_group) | |
4045 | (read_file_scope, dwarf2_get_pc_bounds) | |
4046 | (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment) | |
4047 | (read_structure_type, handle_struct_member_die) | |
4048 | (read_enumeration_type, read_array_type, read_set_type) | |
4049 | (read_tag_pointer_type, read_tag_reference_type) | |
4050 | (read_subroutine_type, read_base_type, read_subrange_type) | |
4051 | (read_full_die_1, partial_die_info::read) | |
4052 | (partial_die_info::read, by, new_symbol) | |
4053 | (dwarf2_const_value_data, dwarf2_const_value_attr) | |
4054 | (dump_die_shallow, dwarf2_fetch_constant_bytes) | |
4055 | (prepare_one_comp_unit): Update. | |
4056 | * dwarf2/attribute.h (DW_UNSND): Remove. | |
4057 | ||
4058 | 2020-09-29 Tom Tromey <tom@tromey.com> | |
4059 | ||
4060 | * dwarf2/read.c (read_func_scope, prototyped_function_p) | |
4061 | (read_subroutine_type, partial_die_info::read) | |
4062 | (dwarf2_flag_true_p, new_symbol, dump_die_shallow) | |
4063 | (dwarf2_add_member_fn): Update. | |
4064 | * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare. | |
4065 | * dwarf2/attribute.c (attribute::as_boolean): New method. | |
4066 | ||
4067 | 2020-09-29 Tom Tromey <tom@tromey.com> | |
4068 | ||
4069 | * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update. | |
4070 | * dwarf2/attribute.h (struct attribute) <as_virtuality>: New | |
4071 | method. | |
4072 | * dwarf2/attribute.c (attribute::as_virtuality): New method. | |
4073 | ||
4074 | 2020-09-29 Tom Tromey <tom@tromey.com> | |
4075 | ||
4076 | * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check | |
4077 | the attribute's form. | |
4078 | ||
4079 | 2020-09-29 Tom Tromey <tom@tromey.com> | |
4080 | ||
4081 | * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c. | |
4082 | (dwarf2_add_member_fn): Update. | |
4083 | * dwarf2/attribute.h (struct attribute) <defaulted>: Declare. | |
4084 | * dwarf2/attribute.c (attribute::defaulted): New method, from | |
4085 | is_valid_DW_AT_defaulted. | |
4086 | ||
4087 | 2020-09-29 Tom Tromey <tom@tromey.com> | |
4088 | ||
4089 | * dwarf2/read.c (dw2_get_file_names_reader) | |
4090 | (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list) | |
4091 | (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton) | |
4092 | (dwarf2_symbol_mark_computed): Use as_unsigned. | |
4093 | * dwarf2/attribute.h (struct attribute) <as_unsigned>: New | |
4094 | method. | |
4095 | <form_is_section_offset>: Update comment. | |
4096 | ||
4097 | 2020-09-29 Tom Tromey <tom@tromey.com> | |
4098 | ||
4099 | * dwarf2/read.c (dwarf2_access_attribute): Rename from | |
4100 | dwarf2_default_access_attribute. Look up attribute. | |
4101 | (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn): | |
4102 | Update. | |
4103 | ||
4104 | 2020-09-29 Tom Tromey <tom@tromey.com> | |
4105 | ||
4106 | * dwarf2/read.c (skip_one_die): Update. | |
4107 | (read_full_die_1): Change how reprocessing is done. | |
4108 | (partial_die_info::read): Update. | |
4109 | (read_attribute_value): Remove need_reprocess parameter. | |
4110 | (read_attribute): Likewise. | |
4111 | * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>: | |
4112 | New method. | |
4113 | ||
4114 | 2020-09-29 Tom Tromey <tom@tromey.com> | |
4115 | ||
4116 | * dwarf2/read.c (read_attribute_reprocess, read_attribute_value) | |
4117 | (dwarf2_const_value_attr, dump_die_shallow) | |
4118 | (dwarf2_fetch_constant_bytes): Update. | |
4119 | * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update | |
4120 | comment. | |
4121 | <set_address>: New method. | |
4122 | (DW_ADDR): Remove. | |
4123 | * dwarf2/attribute.c (attribute::form_is_ref): Update comment. | |
4124 | (attribute::as_string, attribute::as_address): Add assert. | |
4125 | ||
4126 | 2020-09-29 Tom Tromey <tom@tromey.com> | |
4127 | ||
4128 | * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC. | |
4129 | (read_attribute_reprocess, read_attribute_value): Update. | |
4130 | (read_attribute): Clear requires_reprocessing. | |
4131 | * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess, | |
4132 | form_requires_reprocessing>: New methods. | |
4133 | <string_init>: Clear requires_reprocessing. | |
4134 | <set_unsigned_reprocess>: New method. | |
4135 | <name>: Shrink by one bit. | |
4136 | <requires_reprocessing>: New member. | |
4137 | * dwarf2/attribute.c (attribute::form_requires_reprocessing): New | |
4138 | method. | |
4139 | ||
4140 | 2020-09-29 Tom Tromey <tom@tromey.com> | |
4141 | ||
4142 | * dwarf2/read.c (read_attribute_value): Update. | |
4143 | * dwarf2/attribute.h (struct attribute) <form_is_unsigned, | |
4144 | set_unsigned>: New methods. | |
4145 | * dwarf2/attribute.c (attribute::form_is_unsigned): New method. | |
4146 | ||
4147 | 2020-09-29 Tom Tromey <tom@tromey.com> | |
4148 | ||
4149 | * dwarf2/read.c (get_alignment, read_array_order) | |
4150 | (read_attribute_value, dwarf2_const_value_attr) | |
4151 | (dump_die_shallow, dwarf2_fetch_constant_bytes): Update. | |
4152 | * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>: | |
4153 | New methods. | |
4154 | (DW_SND): Remove. | |
4155 | ||
4156 | 2020-09-29 Tom Tromey <tom@tromey.com> | |
4157 | ||
4158 | * dwarf2/read.c (read_attribute_value, lookup_die_type) | |
4159 | (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type): | |
4160 | Update. | |
4161 | * dwarf2/attribute.h (struct attribute) <as_signature, | |
4162 | set_signature>: New methods. | |
4163 | (DW_SIGNATURE): Remove. | |
4164 | ||
4165 | 2020-09-29 Tom Tromey <tom@tromey.com> | |
4166 | ||
4167 | * dwarf2/read.c (read_call_site_scope) | |
4168 | (handle_data_member_location, dwarf2_add_member_fn) | |
4169 | (mark_common_block_symbol_computed, attr_to_dynamic_prop) | |
4170 | (partial_die_info::read, read_attribute_value) | |
4171 | (var_decode_location, dwarf2_const_value_attr, dump_die_shallow) | |
4172 | (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes) | |
4173 | (dwarf2_symbol_mark_computed): Update. | |
4174 | * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New | |
4175 | methods. | |
4176 | (DW_BLOCK): Remove. | |
4177 | * dwarf2/attribute.c (attribute::form_is_block): Add | |
4178 | DW_FORM_data16. | |
4179 | ||
4180 | 2020-09-29 Tom Tromey <tom@tromey.com> | |
4181 | ||
4182 | * dwarf2/read.c (read_cutu_die_from_dwo) | |
4183 | (read_attribute_reprocess, read_attribute_value, read_attribute) | |
4184 | (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow) | |
4185 | (dwarf2_fetch_constant_bytes): Update. | |
4186 | * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare. | |
4187 | <set_string_noncanonical, set_string_canonical>: New methods. | |
4188 | <string_is_canonical>: Update comment. | |
4189 | <canonical_string_p>: Add assert. | |
4190 | (DW_STRING, DW_STRING_IS_CANONICAL): Remove. | |
4191 | * dwarf2/attribute.c (attribute::form_is_string): New method. | |
4192 | (attribute::string): Use it. | |
4193 | ||
4194 | 2020-09-29 Tom Tromey <tom@tromey.com> | |
4195 | ||
4196 | * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name) | |
4197 | (dump_die_shallow): Use canonical_string_p. | |
4198 | * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New | |
4199 | method. | |
4200 | ||
4201 | 2020-09-29 Tom Tromey <tom@tromey.com> | |
4202 | ||
4203 | * dwarf2/read.c (partial_die_info::read) | |
4204 | (dwarf2_const_value_attr, anonymous_struct_prefix, ) | |
4205 | (dwarf2_name, dwarf2_fetch_constant_bytes): Use | |
4206 | attribute::as_string. | |
4207 | ||
4208 | 2020-09-29 Tom Tromey <tom@tromey.com> | |
4209 | ||
4210 | * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or | |
4211 | DW_ADDR. | |
4212 | (attribute::string): Don't use DW_STRING. | |
4213 | (attribute::get_ref_die_offset): Don't use DW_UNSND. | |
4214 | (attribute::constant_value): Don't use DW_UNSND or DW_SND. | |
4215 | ||
4216 | 2020-09-29 Tom Tromey <tom@tromey.com> | |
4217 | ||
4218 | * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope) | |
4219 | (dwarf2_get_pc_bounds, dwarf2_record_block_ranges) | |
4220 | (partial_die_info::read, dwarf2_string_attr, new_symbol): Update. | |
4221 | * dwarf2/attribute.h (struct attribute): Rename methods. | |
4222 | * dwarf2/attribute.c (attribute::as_address): Rename from | |
4223 | value_as_address. | |
4224 | (attribute::as_string): Rename from value_as_string. | |
4225 | ||
4226 | 2020-09-29 Tom Tromey <tom@tromey.com> | |
4227 | ||
4228 | * dwarf2/read.c (partial_die_info::read) <case | |
4229 | DW_AT_linkage_name>: Use value_as_string. | |
4230 | (dwarf2_string_attr): Use value_as_string. | |
4231 | * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare | |
4232 | method. | |
4233 | * dwarf2/attribute.c (attribute::value_as_string): New method. | |
4234 | ||
4235 | 2020-09-29 Pedro Alves <pedro@palves.net> | |
4236 | ||
4237 | * unittests/enum-flags-selftests.c: Check whether __GNUC__ is | |
4238 | defined before using '#pragma GCC diagnostic' instead of checking | |
4239 | __clang__. | |
4240 | ||
4241 | 2020-09-28 Tom Tromey <tom@tromey.com> | |
4242 | ||
4243 | * infrun.c (displaced_step_fixup, thread_still_needs_step_over) | |
4244 | (handle_signal_stop): Update. | |
4245 | * procfs.c (procfs_target::insert_watchpoint): Update. | |
4246 | * target.h (target_have_steppable_watchpoint): Now a function. | |
4247 | ||
4248 | 2020-09-28 Tom Tromey <tom@tromey.com> | |
4249 | ||
4250 | * infrun.c (set_schedlock_func): Update. | |
4251 | * target.h (target_can_lock_scheduler): Now a function. | |
4252 | ||
4253 | 2020-09-28 Tom Tromey <tom@tromey.com> | |
4254 | ||
4255 | * inferior.h (class inferior) <has_execution>: Update. | |
4256 | * windows-tdep.c (windows_solib_create_inferior_hook): Update. | |
4257 | * valops.c (find_function_in_inferior) | |
4258 | (value_allocate_space_in_inferior): Update. | |
4259 | * top.c (kill_or_detach): Update. | |
4260 | * target.c (target_preopen, set_target_permissions): Update. | |
4261 | (target_has_execution_current): Remove. | |
4262 | * sparc64-tdep.c (adi_examine_command, adi_assign_command): | |
4263 | Update. | |
4264 | * solib.c (update_solib_list, reload_shared_libraries): Update. | |
4265 | * solib-svr4.c (svr4_solib_create_inferior_hook): Update. | |
4266 | * solib-dsbt.c (enable_break): Update. | |
4267 | * score-tdep.c (score7_fetch_inst): Update. | |
4268 | * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries): | |
4269 | Update. | |
4270 | * remote.c (remote_target::start_remote) | |
4271 | (remote_target::remote_check_symbols, remote_target::open_1) | |
4272 | (remote_target::remote_detach_1, remote_target::verify_memory) | |
4273 | (remote_target::xfer_partial, remote_target::read_description) | |
4274 | (remote_target::get_min_fast_tracepoint_insn_len): Update. | |
4275 | * record-full.c (record_full_open_1): Update. | |
4276 | * record-btrace.c (record_btrace_target_open): Update. | |
4277 | * objc-lang.c (lookup_objc_class, lookup_child_selector) | |
4278 | (value_nsstring): Update. | |
4279 | * linux-thread-db.c (add_thread_db_info) | |
4280 | (thread_db_find_new_threads_silently, check_thread_db_callback) | |
4281 | (try_thread_db_load_1, record_thread): Update. | |
4282 | * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw): | |
4283 | Update. | |
4284 | * linux-fork.c (checkpoint_command): Update. | |
4285 | * infrun.c (set_non_stop, set_observer_mode) | |
4286 | (check_multi_target_resumption, for_each_just_stopped_thread) | |
4287 | (maybe_remove_breakpoints, normal_stop) | |
4288 | (class infcall_suspend_state): Update. | |
4289 | * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running) | |
4290 | (info_program_command, attach_command): Update. | |
4291 | * infcall.c (call_function_by_hand_dummy): Update. | |
4292 | * inf-loop.c (inferior_event_handler): Update. | |
4293 | * gcore.c (gcore_command, derive_heap_segment): Update. | |
4294 | * exec.c (exec_file_command): Update. | |
4295 | * eval.c (evaluate_subexp): Update. | |
4296 | * compile/compile.c (compile_to_object): Update. | |
4297 | * cli/cli-dump.c (restore_command): Update. | |
4298 | * breakpoint.c (update_watchpoint) | |
4299 | (update_inserted_breakpoint_locations) | |
4300 | (insert_breakpoint_locations, get_bpstat_thread): Update. | |
4301 | * target.h (target_has_execution): Remove macro. | |
4302 | (target_has_execution_current): Don't declare. | |
4303 | (target_has_execution): Rename from target_has_execution_1. Add | |
4304 | argument default. | |
4305 | ||
4306 | 2020-09-28 Tom Tromey <tom@tromey.com> | |
4307 | ||
4308 | * mi/mi-main.c (exec_reverse_continue) | |
4309 | (mi_cmd_list_target_features): Update. | |
4310 | * infrun.c (set_exec_direction_func): Update. | |
4311 | * target.c (default_execution_direction): Update. | |
4312 | * reverse.c (exec_reverse_once): Update. | |
4313 | * target.h (target_can_execute_reverse): Now a function. | |
4314 | ||
4315 | 2020-09-28 Tom Tromey <tom@tromey.com> | |
4316 | ||
4317 | * tui/tui-regs.c (tui_get_register) | |
4318 | (tui_data_window::show_registers): Update. | |
4319 | * thread.c (scoped_restore_current_thread::restore) | |
4320 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
4321 | Update. | |
4322 | * regcache-dump.c (regcache_print): Update. | |
4323 | * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb): | |
4324 | Update. | |
4325 | * mi/mi-main.c (mi_cmd_data_write_register_values): Update. | |
4326 | * mep-tdep.c (current_me_module, current_options): Update. | |
4327 | * linux-thread-db.c (thread_db_load): Update. | |
4328 | * infcmd.c (registers_info, info_vector_command) | |
4329 | (info_float_command): Update. | |
4330 | * ia64-tdep.c (ia64_frame_prev_register) | |
4331 | (ia64_sigtramp_frame_prev_register): Update. | |
4332 | * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update. | |
4333 | * gcore.c (derive_stack_segment): Update. | |
4334 | * frame.c (get_current_frame, has_stack_frames): Update. | |
4335 | * findvar.c (language_defn::read_var_value): Update. | |
4336 | * arm-tdep.c (arm_pc_is_thumb): Update. | |
4337 | * target.c (target_has_registers): Rename from | |
4338 | target_has_registers_1. | |
4339 | * target.h (target_has_registers): Remove macro. | |
4340 | (target_has_registers): Rename from target_has_registers_1. | |
4341 | ||
4342 | 2020-09-28 Tom Tromey <tom@tromey.com> | |
4343 | ||
4344 | * windows-tdep.c (tlb_make_value): Update. | |
4345 | * tui/tui-regs.c (tui_data_window::show_registers): Update. | |
4346 | * thread.c (scoped_restore_current_thread::restore) | |
4347 | (scoped_restore_current_thread::scoped_restore_current_thread) | |
4348 | (thread_command): Update. | |
4349 | * stack.c (backtrace_command_1, frame_apply_level_command) | |
4350 | (frame_apply_all_command, frame_apply_command): Update. | |
4351 | * infrun.c (siginfo_make_value, restore_infcall_control_state): | |
4352 | Update. | |
4353 | * gcore.c (derive_stack_segment): Update. | |
4354 | * frame.c (get_current_frame, has_stack_frames): Update. | |
4355 | * auxv.c (info_auxv_command): Update. | |
4356 | * ada-tasks.c (ada_build_task_list): Update. | |
4357 | * target.c (target_has_stack): Rename from target_has_stack_1. | |
4358 | * target.h (target_has_stack): Remove macro. | |
4359 | (target_has_stack): Rename from target_has_stack_1. | |
4360 | ||
4361 | 2020-09-28 Tom Tromey <tom@tromey.com> | |
4362 | ||
4363 | * target.c (target_has_memory): Rename from target_has_memory_1. | |
4364 | * tui/tui-regs.c (tui_data_window::show_registers): Update. | |
4365 | * thread.c (scoped_restore_current_thread::restore) | |
4366 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
4367 | Update. | |
4368 | * frame.c (get_current_frame, has_stack_frames): Update. | |
4369 | * target.h (target_has_memory): Remove macro. | |
4370 | (target_has_memory): Rename from target_has_memory_1. | |
4371 | ||
4372 | 2020-09-28 Tom Tromey <tom@tromey.com> | |
4373 | ||
4374 | * target.c (target_has_all_memory_1): Remove. | |
4375 | * target.h (target_has_all_memory): Remove define. | |
4376 | (target_has_all_memory_1): Don't declare. | |
4377 | ||
4378 | 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca> | |
4379 | ||
4380 | * ser-base.c: Adjust comments formatting. | |
4381 | ||
4382 | 2020-09-27 Tom Tromey <tom@tromey.com> | |
4383 | ||
4384 | PR tui/25342: | |
4385 | * tui/tui-io.c (tui_puts): Rewrite. Move earlier. | |
4386 | ||
4387 | 2020-09-27 Tom Tromey <tom@tromey.com> | |
4388 | ||
4389 | PR tui/25342: | |
4390 | * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL. | |
4391 | ||
4392 | 2020-09-27 Tom Tromey <tom@tromey.com> | |
4393 | ||
4394 | * unittests/tui-selftests.c: Update. | |
4395 | * tui/tui-winsource.h (struct tui_source_window_base) | |
4396 | <extra_margin, show_line_number, refresh_pad>: New methods. | |
4397 | <m_max_length, m_pad>: New members. | |
4398 | (tui_copy_source_line): Update. | |
4399 | * tui/tui-winsource.c (tui_copy_source_line): Remove line_no, | |
4400 | first_col, line_width, ndigits parameters. Add length. | |
4401 | (tui_source_window_base::show_source_line): Write to pad. Line | |
4402 | number now 0-based. | |
4403 | (tui_source_window_base::refresh_pad): New method. | |
4404 | (tui_source_window_base::show_source_content): Write to pad. Call | |
4405 | refresh_pad. | |
4406 | (tui_source_window_base::do_scroll_horizontal): Call refresh_pad, | |
4407 | not refill. | |
4408 | (tui_source_window_base::update_exec_info): Call | |
4409 | show_line_number. | |
4410 | * tui/tui-source.h (struct tui_source_window) <extra_margin>: New | |
4411 | method. | |
4412 | <m_digits>: New member. | |
4413 | * tui/tui-source.c (tui_source_window::set_contents): Set m_digits | |
4414 | and m_max_length. | |
4415 | (tui_source_window::show_line_number): New method. | |
4416 | * tui/tui-io.h (tui_puts): Fix comment. | |
4417 | * tui/tui-disasm.c (tui_disasm_window::set_contents): Set | |
4418 | m_max_length. | |
4419 | ||
4420 | 2020-09-27 Tom Tromey <tom@tromey.com> | |
4421 | ||
4422 | * tui/tui-winsource.c | |
4423 | (tui_source_window_base::set_is_exec_point_at): Don't call | |
4424 | show_source_line. | |
4425 | ||
4426 | 2020-09-27 Tom Tromey <tom@tromey.com> | |
4427 | ||
4428 | * python/py-tui.c (class tui_py_window) <refresh_window>: New | |
4429 | method. | |
4430 | <erase>: Update. | |
4431 | <cursor_x, cursor_y>: Remove. | |
4432 | <m_inner_window>: New member. | |
4433 | (tui_py_window::rerender): Create inner window. | |
4434 | (tui_py_window::output): Write to inner window. | |
4435 | ||
4436 | 2020-09-26 Gareth Rees <grees@undo.io> (tiny change) | |
4437 | ||
4438 | PR python/26586 | |
4439 | * cli/cli-script.c (execute_control_commands): don't set | |
4440 | instream to nullptr here as this breaks the from_tty argument | |
4441 | to gdb.execute in Python. | |
4442 | (execute_user_command): set instream to nullptr here instead. | |
4443 | ||
4444 | 2020-09-25 Simon Marchi <simon.marchi@efficios.com> | |
4445 | ||
4446 | * infrun.h (infrun_debug_printf): Fix formatting. | |
4447 | * linux-nat.c (linux_nat_debug_printf): Fix formatting. | |
4448 | ||
4449 | 2020-09-25 Saagar Jha <saagar@saagarjha.com> | |
4450 | ||
4451 | * compile/compile-object-load.h (struct munmap_list): Add | |
4452 | explicitly-defined move constructor. | |
4453 | ||
4454 | 2020-09-24 Tom Tromey <tromey@adacore.com> | |
4455 | ||
4456 | PR tui/26638: | |
4457 | * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New | |
4458 | method. | |
4459 | * tui/tui-data.h (struct tui_win_info) <can_focus>: New method. | |
4460 | * tui/tui-data.c (tui_next_win): Exclude non-focusable windows. | |
4461 | (tui_prev_win): Rewrite. | |
4462 | ||
4463 | 2020-09-23 Hannes Domani <ssbssa@yahoo.de> | |
4464 | ||
4465 | * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints | |
4466 | in WOW64 processes as SIGINT. | |
4467 | * nat/windows-nat.h: Make wow64_process a shared variable. | |
4468 | * windows-nat.c: Remove static wow64_process variable. | |
4469 | ||
4470 | 2020-09-23 Tom Tromey <tom@tromey.com> | |
4471 | ||
4472 | PR symtab/25470: | |
4473 | * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit | |
4474 | offset and bit size. | |
4475 | * printcmd.c (print_scalar_formatted): Handle zero-length | |
4476 | integer. | |
4477 | (print_scalar_formatted): Use bit_size_differs_p. | |
4478 | * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New | |
4479 | constant. | |
4480 | (union type_specific): <int_stuff>: New member. | |
4481 | (struct type) <bit_size_differs_p, bit_size, bit_offset>: New | |
4482 | methods. | |
4483 | * gdbtypes.c (init_integer_type, init_boolean_type): Initialize | |
4484 | TYPE_SPECIFIC_FIELD. | |
4485 | (recursive_dump_type, copy_type_recursive): Update. | |
4486 | * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and | |
4487 | DW_AT_data_bit_offset. | |
4488 | ||
4489 | 2020-09-23 Tom Tromey <tom@tromey.com> | |
4490 | ||
4491 | * utils.h (class gdb_argv): Add move operators. | |
4492 | <append>: New methods. | |
4493 | * compile/compile.c (build_argc_argv): Remove. | |
4494 | (compile_args_argc): Remove. | |
4495 | (compile_args_argv): Change type. | |
4496 | (set_compile_args): Simplify. | |
4497 | (append_args): Remove. | |
4498 | (filter_args): Remove argcp parameter. | |
4499 | (get_args): Return gdb_argv. Simplify. | |
4500 | (compile_to_object): Update. | |
4501 | ||
4502 | 2020-09-23 Tom Tromey <tom@tromey.com> | |
4503 | ||
4504 | * compile/compile-object-run.c (do_module_cleanup) | |
4505 | <~do_module_cleanup> :Remove. | |
4506 | (do_module_cleanup): Update. | |
4507 | * compile/compile-object-load.h (struct munmap_list): Add move | |
4508 | assignment operator. | |
4509 | <source_file>: Now a std::string. | |
4510 | <munmap_list>: Rename. No longer a pointer. | |
4511 | * compile/compile-object-load.c (struct setup_sections_data): Add | |
4512 | constructor. | |
4513 | <setup_one_section>: Declare. | |
4514 | <munmap_list>: Move earlier. | |
4515 | <m_bfd>: New member. | |
4516 | <m_last_size, m_last_section_first, m_last_prot, | |
4517 | m_last_max_alignment>: Rename, add initializers where needed. | |
4518 | (setup_sections_data::setup_one_section): Rename from | |
4519 | setup_sections. Update. | |
4520 | (compile_object_load): Update. Don't use bfd_map_over_sections. | |
4521 | ||
4522 | 2020-09-23 Tom Tromey <tom@tromey.com> | |
4523 | ||
4524 | * compile/compile-object-run.c (struct do_module_cleanup): Add | |
4525 | parameters to constructor. Update destructor. | |
4526 | <source_file, scope, scope_data, out_value_type, out_value_addr, | |
4527 | munmap_list_head, objfile_name_string>: Remove. | |
4528 | <module>: New member. | |
4529 | (do_module_cleanup): Update. | |
4530 | (compile_object_run): Update. | |
4531 | ||
4532 | 2020-09-23 Tom Tromey <tom@tromey.com> | |
4533 | ||
4534 | * compile/compile.c (eval_compile_command): Update. | |
4535 | * compile/compile-object-run.h (compile_object_run): Take a | |
4536 | compile_module_up. | |
4537 | * compile/compile-object-run.c (compile_object_run): Take a | |
4538 | compile_module_up. | |
4539 | * compile/compile-object-load.h (struct compile_module): Add | |
4540 | constructor, destructor. | |
4541 | (compile_module_up): New typedef. | |
4542 | (compile_object_load): Return compile_object_up. | |
4543 | * compile/compile-object-load.c (compile_object_load): Return | |
4544 | compile_module_up. | |
4545 | ||
4546 | 2020-09-23 Tom Tromey <tom@tromey.com> | |
4547 | ||
4548 | * compile/compile-object-run.c (struct do_module_cleanup): Add | |
4549 | constructor, destructor. | |
4550 | <objfile_name_string>: Don't use struct hack. | |
4551 | (do_module_cleanup): Use delete. | |
4552 | (compile_object_run): Use new. | |
4553 | ||
4554 | 2020-09-23 Tom Tromey <tom@tromey.com> | |
4555 | ||
4556 | * compile/compile-cplus-types.c | |
4557 | (compile_cplus_convert_struct_or_union): Use std::vector. | |
4558 | (compile_cplus_convert_func): Likewise. | |
4559 | * compile/compile-c-types.c (convert_func): Use std::vector. | |
4560 | ||
4561 | 2020-09-21 Tom Tromey <tromey@adacore.com> | |
4562 | ||
4563 | * sparc-tdep.c (sparc32_skip_prologue): Use | |
4564 | skip_prologue_using_sal. | |
4565 | ||
4566 | 2020-09-19 Tom Tromey <tom@tromey.com> | |
4567 | ||
4568 | * symfile.c (add_section_size_callback): Remove. | |
4569 | (load_one_section): Rename from load_section_callback. Change | |
4570 | parameters. | |
4571 | (generic_load): Use foreach. | |
4572 | ||
4573 | 2020-09-19 Tom Tromey <tom@tromey.com> | |
4574 | ||
4575 | * exec.c (add_to_section_table): Remove. | |
4576 | (build_section_table): Use foreach. | |
4577 | ||
4578 | 2020-09-19 Tom Tromey <tom@tromey.com> | |
4579 | ||
4580 | * elfread.c (elf_locate_sections): Change parameters. | |
4581 | (elf_symfile_read): Use foreach. | |
4582 | ||
4583 | 2020-09-19 Tom Tromey <tom@tromey.com> | |
4584 | ||
4585 | * cli/cli-dump.c (struct callback_data): Remove. | |
4586 | (restore_one_section): Rename from restore_section_callback. | |
4587 | Change parameters. | |
4588 | (restore_binary_file): Change parameters. | |
4589 | (restore_command): Use foreach. | |
4590 | ||
4591 | 2020-09-19 Tom Tromey <tom@tromey.com> | |
4592 | ||
4593 | * gcore.c (make_output_phdrs): Remove 'ignored' parameter. | |
4594 | (gcore_copy_callback): Likewise. | |
4595 | (gcore_memory_sections): Use foreach. | |
4596 | ||
4597 | 2020-09-19 Tom Tromey <tom@tromey.com> | |
4598 | ||
4599 | * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update. | |
4600 | * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change | |
4601 | parameters. | |
4602 | (generic_elf_osabi_sniffer): Use foreach. | |
4603 | * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach. | |
4604 | * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach. | |
4605 | ||
4606 | 2020-09-19 Tom Tromey <tom@tromey.com> | |
4607 | ||
4608 | * dwarf2/read.c (locate_dwz_sections): Change parameters. | |
4609 | (dwarf2_get_dwz_file): Use foreach. | |
4610 | (dwarf2_locate_dwo_sections): Change parameters. | |
4611 | (open_and_init_dwo_file): Use foreach. | |
4612 | (dwarf2_locate_common_dwp_sections): Change parameters. | |
4613 | (open_and_init_dwp_file): Use foreach. | |
4614 | ||
4615 | 2020-09-19 Tom Tromey <tom@tromey.com> | |
4616 | ||
4617 | * symfile.h: (find_lowest_section): Don't declare. | |
4618 | * symfile.c (find_lowest_section): Now static. Change | |
4619 | parameters. | |
4620 | (struct place_section_arg): Remove. | |
4621 | (place_section): Change parameters. | |
4622 | (addr_info_make_relative): Use foreach. | |
4623 | (symfile_dummy_outputs): Remove. | |
4624 | (default_symfile_relocate): Use foreach. | |
4625 | ||
4626 | 2020-09-19 Tom Tromey <tom@tromey.com> | |
4627 | ||
4628 | * objfiles.c (add_to_objfile_sections): Rename from | |
4629 | add_to_objfile_sections_full. | |
4630 | (add_to_objfile_sections): Remove. | |
4631 | (build_objfile_section_table): Use foreach. | |
4632 | ||
4633 | 2020-09-19 Tom Tromey <tom@tromey.com> | |
4634 | ||
4635 | * stap-probe.c (get_stap_base_address_1): Remove. | |
4636 | (get_stap_base_address): Use foreach. | |
4637 | ||
4638 | 2020-09-19 Tom Tromey <tom@tromey.com> | |
4639 | ||
4640 | * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore' | |
4641 | parameters. | |
4642 | (gdb_bfd_close_or_warn): Use foreach. | |
4643 | ||
4644 | 2020-09-19 Tom Tromey <tom@tromey.com> | |
4645 | ||
4646 | * corelow.c (add_to_thread_list): Change parameters. | |
4647 | (core_target_open): Use foreach. | |
4648 | ||
4649 | 2020-09-19 Tom Tromey <tom@tromey.com> | |
4650 | ||
4651 | * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of | |
4652 | existing function. | |
4653 | ||
4654 | 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com> | |
4655 | ||
4656 | * f-valprint.c (f77_print_array_1): Adjust printing of whitespace | |
4657 | for arrays. | |
4658 | ||
4659 | 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com> | |
4660 | ||
4661 | * eval.c: Remove 'f-lang.h' include. | |
4662 | (value_f90_subarray): Moved to f-lang.c. | |
4663 | (eval_call): Renamed to... | |
4664 | (evaluate_subexp_do_call): ...this, is no longer static, header | |
4665 | comment moved into header file. | |
4666 | (evaluate_funcall): Update call to eval_call. | |
4667 | (skip_undetermined_arglist): Moved to f-lang.c. | |
4668 | (fortran_value_subarray): Likewise. | |
4669 | (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling | |
4670 | moved to evaluate_subexp_f. | |
4671 | (calc_f77_array_dims): Moved to f-lang.c | |
4672 | * expprint.c (print_subexp_funcall): New function. | |
4673 | (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling | |
4674 | moved to print_subexp_f, OP_FUNCALL uses new function. | |
4675 | (dump_subexp_body_funcall): New function. | |
4676 | (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling | |
4677 | moved to dump_subexp_f, OP_FUNCALL uses new function. | |
4678 | * expression.h (evaluate_subexp_do_call): Declare. | |
4679 | * f-lang.c (value_f90_subarray): Moved from eval.c. | |
4680 | (skip_undetermined_arglist): Likewise. | |
4681 | (calc_f77_array_dims): Likewise. | |
4682 | (fortran_value_subarray): Likewise. | |
4683 | (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support. | |
4684 | (operator_length_f): Likewise. | |
4685 | (print_subexp_f): Likewise. | |
4686 | (dump_subexp_body_f): Likewise. | |
4687 | * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move | |
4688 | declaration of this operation to here. | |
4689 | * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST | |
4690 | support moved to operator_length_f. | |
4691 | * parser-defs.h (dump_subexp_body_funcall): Declare. | |
4692 | (print_subexp_funcall): Declare. | |
4693 | * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to | |
4694 | fortran-operator.def. | |
4695 | ||
4696 | 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com> | |
4697 | ||
4698 | * eval.c (fortran_value_subarray): New function, content is taken | |
4699 | from... | |
4700 | (evaluate_subexp_standard): ...here, in two places. Now arrays | |
4701 | and strings both call the new function. | |
4702 | (calc_f77_array_dims): Add header comment, handle strings. | |
4703 | ||
4704 | 2020-09-18 Victor Collod <vcollod@nvidia.com> | |
4705 | ||
4706 | PR gdb/26635 | |
4707 | * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr. | |
4708 | (i386_analyze_prologue): Call i386_skip_endbr. | |
4709 | ||
4710 | 2020-09-18 Tom Tromey <tromey@adacore.com> | |
4711 | ||
4712 | * windows-nat.c (struct windows_nat_target) <wait>: Update. | |
4713 | (windows_nat_target::wait): Update. | |
4714 | * target/wait.h (enum target_wait_flag): New. Use | |
4715 | DEF_ENUM_FLAGS_TYPE. | |
4716 | * target/target.h (target_wait): Change type of options. | |
4717 | * target.h (target_options_to_string, default_target_wait): | |
4718 | Update. | |
4719 | (struct target_ops) <wait>: Change type of options. | |
4720 | * target.c (target_wait, default_target_wait, do_option): Change | |
4721 | type of "options". | |
4722 | (target_options_to_string): Likewise. | |
4723 | * target-delegates.c: Rebuild. | |
4724 | * target-debug.h (target_debug_print_target_wait_flags): Rename | |
4725 | from target_debug_print_options. | |
4726 | * sol-thread.c (class sol_thread_target) <wait>: Update. | |
4727 | (sol_thread_target::wait): Update. | |
4728 | * rs6000-nat.c (class rs6000_nat_target) <wait>: Update. | |
4729 | (rs6000_nat_target::wait): Update. | |
4730 | * remote.c (class remote_target) <wait, wait_ns, wait_as>: | |
4731 | Update. | |
4732 | (remote_target::wait_ns, remote_target::wait_as): Change type of | |
4733 | "options". | |
4734 | (remote_target::wait): Update. | |
4735 | * remote-sim.c (struct gdbsim_target) <wait>: Update. | |
4736 | (gdbsim_target::wait): Update. | |
4737 | * record-full.c (class record_full_base_target) <wait>: Update. | |
4738 | (record_full_wait_1): Change type of "options". | |
4739 | (record_full_base_target::wait): Update. | |
4740 | * record-btrace.c (class record_btrace_target) <wait>: Update. | |
4741 | (record_btrace_target::wait): Update. | |
4742 | * ravenscar-thread.c (struct ravenscar_thread_target) <wait>: | |
4743 | Update. | |
4744 | (ravenscar_thread_target::wait): Update. | |
4745 | * procfs.c (class procfs_target) <wait>: Update. | |
4746 | (procfs_target::wait): Update. | |
4747 | * obsd-nat.h (class obsd_nat_target) <wait>: Update. | |
4748 | * obsd-nat.c (obsd_nat_target::wait): Update. | |
4749 | * nto-procfs.c (struct nto_procfs_target) <wait>: Update. | |
4750 | (nto_procfs_target::wait): Update. | |
4751 | * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update. | |
4752 | * nbsd-nat.c (nbsd_wait): Change type of "options". | |
4753 | (nbsd_nat_target::wait): Update. | |
4754 | * linux-thread-db.c (class thread_db_target) <wait>: Update. | |
4755 | (thread_db_target::wait): Update. | |
4756 | * linux-nat.h (class linux_nat_target) <wait>: Update. | |
4757 | * linux-nat.c (linux_nat_target::wait): Update. | |
4758 | (linux_nat_wait_1): Update. | |
4759 | * infrun.c (do_target_wait_1, do_target_wait): Change type of | |
4760 | "options". | |
4761 | * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update. | |
4762 | * inf-ptrace.c (inf_ptrace_target::wait): Update. | |
4763 | * go32-nat.c (struct go32_nat_target) <wait>: Update. | |
4764 | (go32_nat_target::wait): Update. | |
4765 | * gnu-nat.h (struct gnu_nat_target) <wait>: Update. | |
4766 | * gnu-nat.c (gnu_nat_target::wait): Update. | |
4767 | * fbsd-nat.h (class fbsd_nat_target) <wait>: Update. | |
4768 | * fbsd-nat.c (fbsd_nat_target::wait): Update. | |
4769 | * darwin-nat.h (class darwin_nat_target) <wait>: Update. | |
4770 | * darwin-nat.c (darwin_nat_target::wait): Update. | |
4771 | * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update. | |
4772 | (bsd_uthread_target::wait): Update. | |
4773 | * aix-thread.c (class aix_thread_target) <wait>: Update. | |
4774 | (aix_thread_target::wait): Update. | |
4775 | ||
4776 | 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com> | |
4777 | ||
4778 | * compile/compile-object-run.c (create_copied_type_recursive): New | |
4779 | function. | |
4780 | (compile_object_run): Use new function. | |
4781 | ||
4782 | 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk> | |
4783 | ||
4784 | * NEWS: Mention x86_64 Cygwin core file support. | |
4785 | ||
4786 | 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk> | |
4787 | ||
4788 | * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define. | |
4789 | (core_process_module_section): Handle NOTE_INFO_MODULE64. | |
4790 | ||
4791 | 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk> | |
4792 | ||
4793 | * windows-tdep.h: Add prototypes. | |
4794 | * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move. | |
4795 | (i386_windows_core_pid_to_str): Move and rename ... | |
4796 | * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here | |
4797 | (windows_core_pid_to_str): ... and here. | |
4798 | * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here. | |
4799 | ||
4800 | 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk> | |
4801 | * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add. | |
4802 | (amd64_windows_init_abi_common): ... and register. | |
4803 | ||
4804 | 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk> | |
4805 | ||
4806 | * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New. | |
4807 | (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer. | |
4808 | ||
4809 | 2020-09-18 Pedro Alves <pedro@palves.net> | |
4810 | ||
4811 | PR gdb/26631 | |
4812 | * thread.c (thread_find_command): Switch inferior before calling | |
4813 | target methods. | |
4814 | ||
4815 | 2020-09-17 Tom Tromey <tromey@adacore.com> | |
4816 | ||
4817 | * tic6x-tdep.c (tic6x_gdbarch_init): Update. | |
4818 | * target-descriptions.h (struct tdesc_arch_data_deleter): New. | |
4819 | (tdesc_arch_data_up): New typedef. | |
4820 | (tdesc_use_registers, tdesc_data_alloc): Update. | |
4821 | (tdesc_data_cleanup): Don't declare. | |
4822 | * target-descriptions.c (tdesc_data_alloc): Return a | |
4823 | tdesc_arch_data_up. | |
4824 | (tdesc_arch_data_deleter::operator()): Rename from | |
4825 | tdesc_data_cleanup. Change argument type. | |
4826 | (tdesc_use_registers): Change early_data to an rvalue reference. | |
4827 | (tdesc_use_registers): Don't use delete. | |
4828 | * sparc-tdep.c (sparc32_gdbarch_init): Update. | |
4829 | * s390-tdep.c (s390_gdbarch_init): Update. | |
4830 | * rx-tdep.c (rx_gdbarch_init): Update. | |
4831 | * rs6000-tdep.c (rs6000_gdbarch_init): Update. | |
4832 | * riscv-tdep.c (riscv_gdbarch_init): Update. | |
4833 | * or1k-tdep.c (or1k_gdbarch_init): Update. | |
4834 | * nios2-tdep.c (nios2_gdbarch_init): Update. | |
4835 | * nds32-tdep.c (nds32_gdbarch_init): Update. | |
4836 | * mips-tdep.c (mips_gdbarch_init): Update. | |
4837 | * microblaze-tdep.c (microblaze_gdbarch_init): Update. | |
4838 | * m68k-tdep.c (m68k_gdbarch_init): Update. | |
4839 | * i386-tdep.c (i386_gdbarch_init): Update. | |
4840 | * arm-tdep.c (arm_gdbarch_init): Update. | |
4841 | * arc-tdep.c (arc_tdesc_init): Update. | |
4842 | (arc_gdbarch_init): Update. | |
4843 | * aarch64-tdep.c (aarch64_gdbarch_init): Update. | |
4844 | ||
4845 | 2020-09-17 Hannes Domani <ssbssa@yahoo.de> | |
4846 | ||
4847 | * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin | |
4848 | for WOW64 processes. | |
4849 | ||
4850 | 2020-09-17 Tom Tromey <tom@tromey.com> | |
4851 | ||
4852 | * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up. | |
4853 | ||
4854 | 2020-09-17 Tom Tromey <tom@tromey.com> | |
4855 | ||
4856 | * value.c (preserve_values): Update. | |
4857 | * python/py-type.c (save_objfile_types): Update. | |
4858 | * guile/scm-type.c (save_objfile_types): Update. | |
4859 | * gdbtypes.h (create_copied_types_hash): Return htab_up. | |
4860 | * gdbtypes.c (create_copied_types_hash): Return htab_up. | |
4861 | * compile/compile-object-run.c (compile_object_run): Update. | |
4862 | ||
4863 | 2020-09-17 Tom Tromey <tom@tromey.com> | |
4864 | ||
4865 | * typeprint.h (class typedef_hash_table) <~typedef_hash_table>: | |
4866 | Remove. | |
4867 | <m_table>: Now htab_up. | |
4868 | * typeprint.c (typedef_hash_table::recursively_update) | |
4869 | (typedef_hash_table::add_template_parameters) | |
4870 | (typedef_hash_table::typedef_hash_table): Update. | |
4871 | (typedef_hash_table::~typedef_hash_table): Remove. | |
4872 | (typedef_hash_table::typedef_hash_table) | |
4873 | (typedef_hash_table::find_global_typedef) | |
4874 | (typedef_hash_table::find_typedef): Update. | |
4875 | ||
4876 | 2020-09-17 Tom Tromey <tom@tromey.com> | |
4877 | ||
4878 | * target-descriptions.c (tdesc_use_registers): Use htab_up. | |
4879 | ||
4880 | 2020-09-17 Tom Tromey <tom@tromey.com> | |
4881 | ||
4882 | * linespec.c (class decode_compound_collector) | |
4883 | <~decode_compound_collector>: Remove. | |
4884 | <m_unique_syms>: Now htab_up. | |
4885 | (decode_compound_collector::operator ()): Update. | |
4886 | (class symtab_collector) <~symtab_collector>: Remove. | |
4887 | <m_symtab_table>: Now htab_up. | |
4888 | (symtab_collector::operator ()): Update. | |
4889 | ||
4890 | 2020-09-17 Tom Tromey <tom@tromey.com> | |
4891 | ||
4892 | * filename-seen-cache.c (filename_seen_cache::filename_seen_cache) | |
4893 | (filename_seen_cache::clear): Update. | |
4894 | (~filename_seen_cache): Remove. | |
4895 | (filename_seen_cache::seen): Update. | |
4896 | * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now | |
4897 | htab_up. | |
4898 | <~filename_seen_cache>: Remove. | |
4899 | <traverse>: Update. | |
4900 | ||
4901 | 2020-09-17 Tom Tromey <tom@tromey.com> | |
4902 | ||
4903 | * completer.c (completion_tracker::discard_completions) | |
4904 | (completion_tracker::~completion_tracker) | |
4905 | (completion_tracker::maybe_add_completion) | |
4906 | (completion_tracker::remove_completion) | |
4907 | (completion_tracker::recompute_lowest_common_denominator) | |
4908 | (completion_tracker::build_completion_result): Update. | |
4909 | * completer.h (class completion_tracker) <have_completions>: | |
4910 | Update. | |
4911 | <m_entries_hash>: Now htab_up. | |
4912 | ||
4913 | 2020-09-17 Tom Tromey <tom@tromey.com> | |
4914 | ||
4915 | * breakpoint.c (ambiguous_names_p): Use htab_up. | |
4916 | ||
4917 | 2020-09-17 Tom Tromey <tom@tromey.com> | |
4918 | ||
4919 | * auto-load.c (struct auto_load_pspace_info) | |
4920 | <~auto_load_pspace_info, auto_load_pspace_info>: Remove. | |
4921 | <loaded_script_files, loaded_script_texts>: Change type to | |
4922 | htab_up. | |
4923 | (~auto_load_pspace_info) Remove. | |
4924 | (init_loaded_scripts_info, maybe_add_script_file) | |
4925 | (maybe_add_script_text, auto_load_info_scripts): Update. | |
4926 | ||
4927 | 2020-09-17 Tom Tromey <tromey@adacore.com> | |
4928 | ||
4929 | * c-exp.y (name_obstack): Now static. | |
4930 | ||
4931 | 2020-09-17 Chungyi Chi <demonic@csie.io> | |
4932 | ||
4933 | * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type. | |
4934 | ||
4935 | 2020-09-16 Simon Marchi <simon.marchi@efficios.com> | |
4936 | ||
4937 | * breakpoint.h (init_catchpoint): Change int parameter to bool. | |
4938 | (add_solib_catchpoint): Likewise. | |
4939 | * breakpoint.c (struct solib_catchpoint) <is_load>: Change type | |
4940 | to bool. | |
4941 | (add_solib_catchpoint): Change int parameter/variable to bool. | |
4942 | (catch_load_or_unload): Likewise. | |
4943 | (init_catchpoint): Likewise. | |
4944 | (create_fork_vfork_event_catchpoint): Likewise. | |
4945 | (catch_fork_command_1): Likewise. | |
4946 | (catch_exec_command_1): Likewise. | |
4947 | ||
4948 | 2020-09-16 Simon Marchi <simon.marchi@efficios.com> | |
4949 | ||
4950 | * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>: | |
4951 | Change instance_flags to m_instance_flags. | |
4952 | ||
4953 | 2020-09-16 Tom Tromey <tromey@adacore.com> | |
4954 | ||
4955 | PR gdb/26598: | |
4956 | * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym. | |
4957 | ||
4958 | 2020-09-16 John Baldwin <jhb@FreeBSD.org> | |
4959 | ||
4960 | * fbsd-nat.c (fbsd_nat_target::wait): Always check for | |
4961 | PL_FLAG_EXEC. | |
4962 | (fbsd_nat_target::insert_exec_catchpoint) | |
4963 | (fbsd_nat_target::remove_exec_catchpoint): Always define. | |
4964 | * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint) | |
4965 | (fbsd_nat_target::remove_exec_catchpoint): Always declare. | |
4966 | ||
4967 | 2020-09-16 John Baldwin <jhb@FreeBSD.org> | |
4968 | ||
4969 | * configure.ac: Remove check for kinfo_getvmmap(). | |
4970 | * configure, config.in: Regenerate. | |
4971 | * fbsd-nat.c (fbsd_read_mapping): Remove | |
4972 | (fbsd_nat_target::find_memory_regions): Remove the procfs version. | |
4973 | (fbsd_nat_target::info_proc): Assume kinfo_getfile() and | |
4974 | kinfo_get_vmmap() are always present. | |
4975 | ||
4976 | 2020-09-16 John Baldwin <jhb@FreeBSD.org> | |
4977 | ||
4978 | * fbsd-nat.c: Always include support for | |
4979 | TARGET_OBJECT_SIGNAL_INFO. | |
4980 | ||
4981 | 2020-09-16 John Baldwin <jhb@FreeBSD.org> | |
4982 | ||
4983 | * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use | |
4984 | sysctl and remove procfs fallback. | |
4985 | ||
4986 | 2020-09-16 John Baldwin <jhb@FreeBSD.org> | |
4987 | ||
4988 | * fbsd-nat.c: Assume PT_LWPINFO is always defined. | |
4989 | * fbsd-nat.h: Likewise. | |
4990 | ||
4991 | 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
4992 | ||
4993 | * breakpoint.c (commands_command_1): Make a copy of the 'arg' | |
4994 | argument. | |
4995 | ||
4996 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> | |
4997 | ||
4998 | * ada-lang.c (ada_language_data): Delete. | |
4999 | (ada_language): Remove references to ada_language_data. | |
5000 | * c-lang.c (c_language_data): Delete. | |
5001 | (c_language): Remove references to c_language_data. | |
5002 | (cplus_language_data): Delete. | |
5003 | (cplus_language): Remove references to cplus_language_data. | |
5004 | (asm_language_data): Delete. | |
5005 | (asm_language): Remove references to asm_language_data. | |
5006 | (minimal_language_data): Delete. | |
5007 | (minimal_language): Remove references to minimal_language_data. | |
5008 | * d-lang.c (d_language_data): Delete. | |
5009 | (d_language): Remove references to d_language_data. | |
5010 | * f-lang.c (f_language_data): Delete. | |
5011 | (f_language): Remove references to f_language_data. | |
5012 | * go-lang.c (go_language_data): Delete. | |
5013 | (go_language): Remove references to go_language_data. | |
5014 | * language.c (unknown_language_data): Delete. | |
5015 | (unknown_language): Remove references to unknown_language_data. | |
5016 | (auto_language_data): Delete. | |
5017 | (auto_language): Remove references to auto_language_data. | |
5018 | * language.h (language_data): Delete struct. | |
5019 | (language_defn): No longer inherit from language_data. | |
5020 | * m2-lang.c (m2_language_data): Delete. | |
5021 | (m2_language): Remove references to m2_language_data. | |
5022 | * objc-lang.c (objc_language_data): Delete. | |
5023 | (objc_language): Remove references to objc_language_data. | |
5024 | * opencl-lang.c (opencl_language_data): Delete. | |
5025 | (opencl_language): Remove references to opencl_language_data. | |
5026 | * p-lang.c (pascal_language_data): Delete. | |
5027 | (pascal_language): Remove references to pascal_language_data. | |
5028 | * rust-lang.c (rust_language_data): Delete. | |
5029 | (rust_language): Remove references to rust_language_data. | |
5030 | ||
5031 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> | |
5032 | ||
5033 | * ada-lang.c (ada_language_data): Remove la_op_print_tab | |
5034 | initializer. | |
5035 | (ada_language::opcode_print_table): New member function. | |
5036 | * c-lang.c (c_language_data): Remove la_op_print_tab initializer. | |
5037 | (c_language::opcode_print_table): New member function. | |
5038 | (cplus_language_data): Remove la_op_print_tab initializer. | |
5039 | (cplus_language::opcode_print_table): New member function. | |
5040 | (asm_language_data): Remove la_op_print_tab initializer. | |
5041 | (asm_language::opcode_print_table): New member function. | |
5042 | (minimal_language_data): Remove la_op_print_tab initializer. | |
5043 | (minimal_language::opcode_print_table): New member function. | |
5044 | * d-lang.c (d_language_data): Remove la_op_print_tab initializer. | |
5045 | (d_language::opcode_print_table): New member function. | |
5046 | * expprint.c (print_subexp_standard): Update call to | |
5047 | opcode_print_table. | |
5048 | (op_string): Likewise. | |
5049 | * f-lang.c (f_language_data): Remove la_op_print_tab initializer. | |
5050 | (f_language::opcode_print_table): New member function. | |
5051 | * go-lang.c (go_language_data): Remove la_op_print_tab | |
5052 | initializer. | |
5053 | (go_language::opcode_print_table): New member function. | |
5054 | * language.c (unknown_language_data): Remove la_op_print_tab | |
5055 | initializer. | |
5056 | (unknown_language::opcode_print_table): New member function. | |
5057 | (auto_language_data): Remove la_op_print_tab initializer. | |
5058 | (auto_language::opcode_print_table): New member function. | |
5059 | * language.h (language_data): Remove la_op_print_tab field. | |
5060 | (language_defn::opcode_print_table): Declare new member function. | |
5061 | * m2-lang.c (m2_language_data): Remove la_op_print_tab | |
5062 | initializer. | |
5063 | (m2_language::opcode_print_table): New member function. | |
5064 | * objc-lang.c (objc_language_data): Remove la_op_print_tab | |
5065 | initializer. | |
5066 | (objc_language::opcode_print_table): New member function. | |
5067 | * opencl-lang.c (opencl_language_data): Remove la_op_print_tab | |
5068 | initializer. | |
5069 | (opencl_language::opcode_print_table): New member function. | |
5070 | * p-lang.c (pascal_language_data): Remove la_op_print_tab | |
5071 | initializer. | |
5072 | (pascal_language::opcode_print_table): New member function. | |
5073 | * rust-lang.c (rust_language_data): Remove la_op_print_tab | |
5074 | initializer. | |
5075 | (rust_language::opcode_print_table): New member function. | |
5076 | ||
5077 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> | |
5078 | ||
5079 | * ada-lang.c (ada_language_data): Remove la_exp_desc initializer. | |
5080 | (ada_language::expression_ops): New member function. | |
5081 | * c-lang.c (c_language_data): Remove la_exp_desc initializer. | |
5082 | (c_language::expression_ops): New member function. | |
5083 | (cplus_language_data): Remove la_exp_desc initializer. | |
5084 | (cplus_language::expression_ops): New member function. | |
5085 | (asm_language_data): Remove la_exp_desc initializer. | |
5086 | (asm_language::expression_ops): New member function. | |
5087 | (minimal_language_data): Remove la_exp_desc initializer. | |
5088 | (minimal_language::expression_ops): New member function. | |
5089 | * d-lang.c (d_language_data): Remove la_exp_desc initializer. | |
5090 | (d_language::expression_ops): New member function. | |
5091 | * eval.c (evaluate_subexp): Update call to expression_ops. | |
5092 | * expprint.c (print_subexp): Likewise. | |
5093 | (op_name): Likewise. | |
5094 | (dump_subexp_body): Likewise. | |
5095 | * f-lang.c (f_language_data): Remove la_exp_desc initializer. | |
5096 | (f_language::expression_ops): New member function. | |
5097 | * go-lang.c (go_language_data): Remove la_exp_desc initializer. | |
5098 | (go_language::expression_ops): New member function. | |
5099 | * language.c (language_defn::expression_ops): New function. | |
5100 | (unknown_language_data): Remove la_exp_desc initializer. | |
5101 | (auto_language_data): Likewise. | |
5102 | * language.h (language_data): Remove la_exp_desc field. | |
5103 | (language_defn::expression_ops): Declare new member function. | |
5104 | * m2-lang.c (m2_language_data): Remove la_exp_desc initializer. | |
5105 | (m2_language::expression_ops): New member function. | |
5106 | * objc-lang.c (objc_language_data): Remove la_exp_desc | |
5107 | initializer. | |
5108 | * opencl-lang.c (opencl_language_data): Remove la_exp_desc | |
5109 | initializer. | |
5110 | (opencl_language::expression_ops): New member function. | |
5111 | * p-lang.c (pascal_language_data): Remove la_exp_desc initializer. | |
5112 | * parse.c (operator_length): Update call to expression_ops. | |
5113 | (exp_iterate): Likewise. | |
5114 | * rust-lang.c (rust_language_data): Remove la_exp_desc | |
5115 | initializer. | |
5116 | (ruse_language::expression_ops): New member function. | |
5117 | ||
5118 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> | |
5119 | ||
5120 | * ada-lang.c (ada_language_data): Remove la_varobj_ops | |
5121 | initializer. | |
5122 | (ada_language::varobj_ops): New member function. | |
5123 | * c-lang.c (c_language_data): Remove la_varobj_ops | |
5124 | initializer. | |
5125 | (cplus_language_data): Likewise. | |
5126 | (cplus_language::varobj_ops): New member function. | |
5127 | (asm_language_data): Remove la_varobj_ops initializer. | |
5128 | (minimal_language_data): Likewise. | |
5129 | * d-lang.c (d_language_data): Likewise. | |
5130 | * f-lang.c (f_language_data): Likewise. | |
5131 | * go-lang.c (go_language_data): Likewise. | |
5132 | * language.c (language_defn::varobj_ops): New function. | |
5133 | (unknown_language_data): Remove la_varobj_ops | |
5134 | initializer. | |
5135 | (auto_language_data): Likewise. | |
5136 | * language.h (language_data): Remove la_varobj_ops field. | |
5137 | (language_defn::varobj_ops): Declare new member function. | |
5138 | * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer. | |
5139 | * objc-lang.c (objc_language_data): Likewise. | |
5140 | * opencl-lang.c (opencl_language_data): Likewise. | |
5141 | * p-lang.c (pascal_language_data): Likewise. | |
5142 | * rust-lang.c (rust_language_data): Likewise. | |
5143 | * varobj.c (varobj_create): Update call to varobj_ops. | |
5144 | * varobj.h (default_varobj_ops): Delete define. | |
5145 | ||
5146 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> | |
5147 | ||
5148 | * ada-lang.c (ada_language_data): Remove la_macro_expansion | |
5149 | initializer. | |
5150 | * c-lang.c (c_language_data): Likewise. | |
5151 | (c_language::macro_expansion): New member function. | |
5152 | (cplus_language_data): Likewise. | |
5153 | (cplus_language::macro_expansion): New member function. | |
5154 | (asm_language_data): Likewise. | |
5155 | (asm_language::macro_expansion): New member function. | |
5156 | (minimal_language_data): Likewise. | |
5157 | (minimal_language::macro_expansion): New member function. | |
5158 | * d-lang.c (d_language_data): Remove la_macro_expansion | |
5159 | initializer. | |
5160 | * f-lang.c (f_language_data): Likewise. | |
5161 | * go-lang.c (go_language_data): Likewise. | |
5162 | * language.c (unknown_language_data): Likewise. | |
5163 | (auto_language_data): Likewise. | |
5164 | * language.h (language_data): Remove la_macro_expansion field. | |
5165 | (language_defn::macro_expansion): New member function. | |
5166 | * m2-lang.c (m2_language_data): Remove la_macro_expansion | |
5167 | initializer. | |
5168 | * objc-lang.c (objc_language_data): Likewise. | |
5169 | (objc_language::macro_expansion): New member function. | |
5170 | * opencl-lang.c (opencl_language_data): Likewise. | |
5171 | (opencl_language::macro_expansion): New member function. | |
5172 | * p-lang.c (pascal_language_data): Remove la_macro_expansion | |
5173 | initializer. | |
5174 | * rust-lang.c (rust_language_data): Likewise. | |
5175 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
5176 | Update call to macro_expansion. | |
5177 | ||
5178 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> | |
5179 | ||
5180 | * ada-lang.c (ada_language_data): Remove la_array_ordering | |
5181 | initializer. | |
5182 | * c-lang.c (c_language_data): Likewise. | |
5183 | (cplus_language_data): Likewise. | |
5184 | (asm_language_data): Likewise. | |
5185 | (minimal_language_data): Likewise. | |
5186 | * d-lang.c (d_language_data): Likewise. | |
5187 | * dwarf2/read.c (read_array_order): Update for call to | |
5188 | array_ordering. | |
5189 | * f-lang.c (f_language_data): Remove la_array_ordering | |
5190 | initializer. | |
5191 | (f_language::array_ordering): New member function. | |
5192 | * go-lang.c (go_language_data): Remove la_array_ordering | |
5193 | initializer. | |
5194 | * language.c (unknown_language_data): Likewise. | |
5195 | (auto_language_data): Likewise. | |
5196 | * language.h (language_data): Delete la_array_ordering field. | |
5197 | (language_defn::array_ordering): New member function. | |
5198 | * m2-lang.c (m2_language_data): Remove la_array_ordering | |
5199 | initializer. | |
5200 | * objc-lang.c (objc_language_data): Likewise. | |
5201 | * opencl-lang.c (opencl_language_data): Likewise. | |
5202 | * p-lang.c (pascal_language_data): Likewise. | |
5203 | * rust-lang.c (rust_language_data): Likewise. | |
5204 | ||
5205 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> | |
5206 | ||
5207 | * ada-lang.c (ada_language_data): Remove la_case_sensitivity | |
5208 | initializer. | |
5209 | * c-lang.c (c_language_data): Likewise. | |
5210 | (cplus_language_data): Likewise. | |
5211 | (asm_language_data): Likewise. | |
5212 | (minimal_language_data): Likewise. | |
5213 | * d-lang.c (d_language_data): Likewise. | |
5214 | * f-lang.c (f_language_data): Likewise. | |
5215 | (f_language::case_sensitivity): New member function. | |
5216 | * go-lang.c (go_language_data): Remove la_case_sensitivity | |
5217 | initializer. | |
5218 | * language.c (enum case_mode): Moved here from language.h. | |
5219 | (case_mode): Make static. | |
5220 | (show_case_command): Update for case_sensitivity being a method. | |
5221 | (set_case_command): Likewise. | |
5222 | (set_range_case): Likewise. | |
5223 | (unknown_language_data): Remove la_case_sensitivity initializer. | |
5224 | (auto_language_data): Likewise. | |
5225 | * language.h (case_mode): Delete, move enum declaration to | |
5226 | language.c. | |
5227 | (language_data): Delete la_case_sensitivity field. | |
5228 | (language_defn::case_sensitivity): New member function. | |
5229 | * m2-lang.c (m2_language_data): Remove la_case_sensitivity | |
5230 | initializer. | |
5231 | * objc-lang.c (objc_language_data): Likewise. | |
5232 | * opencl-lang.c (opencl_language_data): Likewise. | |
5233 | * p-lang.c (pascal_language_data): Likewise. | |
5234 | * rust-lang.c (rust_language_data): Likewise. | |
5235 | ||
5236 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> | |
5237 | ||
5238 | * ada-lang.c (ada_language_data): Remove la_range_check | |
5239 | initializer. | |
5240 | * c-lang.c (c_language_data): Likewise. | |
5241 | (cplus_language_data): Likewise. | |
5242 | (asm_language_data): Likewise. | |
5243 | (minimal_language_data): Likewise. | |
5244 | * d-lang.c (d_language_data): Likewise. | |
5245 | * f-lang.c (f_language_data): Likewise. | |
5246 | (f_language::range_checking_on_by_default): New member function. | |
5247 | * go-lang.c (go_language_data): Remove la_range_check initializer. | |
5248 | * language.c (enum range_mode): Moved here from language.h. | |
5249 | (range_mode): Made static. | |
5250 | (show_range_command): Update to use | |
5251 | range_checking_on_by_default. | |
5252 | (set_range_command): Likewise. | |
5253 | (set_range_case): Likewise. | |
5254 | (unknown_language_data): Remove la_range_check initializer. | |
5255 | (auto_language_data): Likewise. | |
5256 | * language.h (range_mode): Delete. Enum definition moved to | |
5257 | language.c. | |
5258 | (language_data): Remove la_range_check field. | |
5259 | (language_defn::range_checking_on_by_default): New member | |
5260 | function. | |
5261 | * m2-lang.c (m2_language_data): Remove la_range_check initializer. | |
5262 | (m2_language::range_checking_on_by_default): New member function. | |
5263 | * objc-lang.c (objc_language_data): Remove la_range_check | |
5264 | initializer. | |
5265 | * opencl-lang.c (opencl_language_data): Likewise. | |
5266 | * p-lang.c (pascal_language_data): Likewise. | |
5267 | (pascal_language::range_checking_on_by_default): New member | |
5268 | function. | |
5269 | * rust-lang.c (rust_language_data): Remove la_range_check | |
5270 | initializer. | |
5271 | (rust_language::range_checking_on_by_default): New member | |
5272 | function. | |
5273 | ||
5274 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> | |
5275 | ||
5276 | * dwarf2/read.c (dwarf2_physname): Remove special case for | |
5277 | language_go. | |
5278 | * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New | |
5279 | member function. | |
5280 | ||
5281 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> | |
5282 | ||
5283 | * ada-lang.c (ada_language_data): Remove | |
5284 | la_store_sym_names_in_linkage_form_p initializer. | |
5285 | (ada_language::store_sym_names_in_linkage_form_p): New member | |
5286 | function. | |
5287 | * c-lang.c (c_language_data): Remove | |
5288 | la_store_sym_names_in_linkage_form_p initializer. | |
5289 | (c_language::store_sym_names_in_linkage_form_p): New member | |
5290 | function. | |
5291 | (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p | |
5292 | initializer. | |
5293 | (asm_language_data): Likewise. | |
5294 | (asm_language::store_sym_names_in_linkage_form_p): New member | |
5295 | function. | |
5296 | (minimal_language_data): Remove | |
5297 | la_store_sym_names_in_linkage_form_p initializer. | |
5298 | (minimal_language::store_sym_names_in_linkage_form_p): New member | |
5299 | function. | |
5300 | * d-lang.c (d_language_data): Remove | |
5301 | la_store_sym_names_in_linkage_form_p initializer. | |
5302 | * dwarf2/read.c (dwarf2_physname): Update call to | |
5303 | store_sym_names_in_linkage_form_p. | |
5304 | * f-lang.c (f_language_data): Remove | |
5305 | la_store_sym_names_in_linkage_form_p initializer. | |
5306 | * go-lang.c (go_language_data): Remove | |
5307 | la_store_sym_names_in_linkage_form_p initializer. | |
5308 | * language.c (unknown_language_data): Remove | |
5309 | la_store_sym_names_in_linkage_form_p initializer. | |
5310 | (unknown_language::store_sym_names_in_linkage_form_p): New member | |
5311 | function. | |
5312 | (auto_language_data): Remove la_store_sym_names_in_linkage_form_p | |
5313 | initializer. | |
5314 | (auto_language::store_sym_names_in_linkage_form_p): New member | |
5315 | function. | |
5316 | * language.h (language_data): Remove | |
5317 | la_store_sym_names_in_linkage_form_p member variable. | |
5318 | (language_defn::store_sym_names_in_linkage_form_p): New member | |
5319 | function. | |
5320 | * m2-lang.c (m2_language_data): Remove | |
5321 | la_store_sym_names_in_linkage_form_p initializer. | |
5322 | * objc-lang.c (objc_language_data): Likewise. | |
5323 | * opencl-lang.c (opencl_language_data): Likewise. | |
5324 | * p-lang.c (pascal_language_data): Likewise. | |
5325 | * rust-lang.c (rust_language_data): Likewise. | |
5326 | ||
5327 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> | |
5328 | ||
5329 | * ada-lang.c (ada_language_data): Remove string_lower_bound | |
5330 | initializer. | |
5331 | * c-lang.c (c_language_data): Likewise. | |
5332 | (cplus_language_data): Likewise. | |
5333 | (asm_language_data): Likewise. | |
5334 | (minimal_language_data): Likewise. | |
5335 | * d-lang.c (d_language_data): Likewise. | |
5336 | * f-lang.c (f_language_data): Likewise. | |
5337 | * go-lang.c (go_language_data): Likewise. | |
5338 | * language.c (unknown_language_data): Likewise. | |
5339 | (auto_language_data): Likewise. | |
5340 | * language.h (language_data): Remove string_lower_bound field. | |
5341 | (language_defn::string_lower_bound): New member function. | |
5342 | * m2-lang.c (m2_language_data): Remove string_lower_bound | |
5343 | initializer. | |
5344 | (m2_language::string_lower_bound): New member function. | |
5345 | * objc-lang.c (objc_language_data): Remove string_lower_bound | |
5346 | initializer. | |
5347 | * opencl-lang.c (opencl_language_data): Likewise. | |
5348 | * p-lang.c (pascal_language_data): Likewise. | |
5349 | * rust-lang.c (rust_language_data): Likewise. | |
5350 | * valops.c (value_cstring): Update call to string_lower_bound. | |
5351 | (value_string): Likewise. | |
5352 | * value.c (allocate_repeated_value): Likewise. | |
5353 | ||
5354 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> | |
5355 | ||
5356 | * valops.c (value_repeat): Fix incorrect argument name in comment. | |
5357 | ||
5358 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> | |
5359 | ||
5360 | * ada-lang.c (ada_language_data): Remove c_style_arrays | |
5361 | initializer. | |
5362 | (ada_language::c_style_arrays_p): New member fuction. | |
5363 | * c-lang.c (c_language_data): Remove c_style_arrays | |
5364 | initializer. | |
5365 | (cplus_language_data): Likewise. | |
5366 | (asm_language_data): Likewise. | |
5367 | (minimal_language_data): Likewise. | |
5368 | * d-lang.c (d_language_data): Likewise. | |
5369 | * eval.c (ptrmath_type_p): Update call to c_style_arrays_p. | |
5370 | * f-lang.c (f_language_data): Remove c_style_arrays initializer. | |
5371 | (f_language::c_style_arrays_p): New member function. | |
5372 | * go-lang.c (go_language_data): Remove c_style_arrays initializer. | |
5373 | * infcall.c (value_arg_coerce): Update call to c_style_arrays_p. | |
5374 | * language.c (unknown_language_data): Remove c_style_arrays | |
5375 | initializer. | |
5376 | (auto_language_data): Likewise. | |
5377 | * language.h (language_data): Remove c_style_arrays field. | |
5378 | (language_defn::c_style_arrays_p): New member function. | |
5379 | * m2-lang.c (m2_language_data): Remove c_style_arrays initializer. | |
5380 | (m2_language::c_style_arrays_p): New member function. | |
5381 | * objc-lang.c (objc_language_data): Remove c_style_arrays | |
5382 | initializer. | |
5383 | * opencl-lang.c (opencl_language_data): Likewise. | |
5384 | * p-lang.c (pascal_language_data): Likewise. | |
5385 | * rust-lang.c (rust_language_data): Likewise. | |
5386 | * valarith.c (value_subscript): Update call to c_style_arrays_p, | |
5387 | and update local variable to a bool. | |
5388 | * valops.c (value_cast): Update call to c_style_arrays_p. | |
5389 | (value_array): Likewise. | |
5390 | * value.c (coerce_array): Likewise. | |
5391 | ||
5392 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> | |
5393 | ||
5394 | * ada-lang.c (ada_language_data): Remove la_language initializer. | |
5395 | * c-lang.c (c_language_data): Likewise. | |
5396 | (cplus_language_data): Likewise. | |
5397 | (asm_language_data): Likewise. | |
5398 | (minimal_language_data): Likewise. | |
5399 | * d-lang.c (d_language_data): Likewise. | |
5400 | * f-lang.c (f_language_data): Likewise. | |
5401 | * go-lang.c (go_language_data): Likewise. | |
5402 | * language.c (unknown_language_data): Likewise. | |
5403 | (auto_language_data): Likewise. | |
5404 | * language.h (language_data): Remove la_language field. | |
5405 | (language_defn::language_defn): Initialise la_language field. | |
5406 | (language_defn::la_language): New member variable. | |
5407 | * m2-lang.c (m2_language_data): Remove la_language field. | |
5408 | * objc-lang.c (objc_language_data): Likewise. | |
5409 | * opencl-lang.c (opencl_language_data): Likewise. | |
5410 | * p-lang.c (pascal_language_data): Likewise. | |
5411 | * rust-lang.c (rust_language_data): Likewise. | |
5412 | ||
5413 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> | |
5414 | ||
5415 | * ada-lang.c (ada_extensions): Delete, moved into | |
5416 | ada_language::filename_extensions. | |
5417 | (ada_language_data): Remove la_filename_extensions initializer. | |
5418 | (ada_language::filename_extensions): New member function. | |
5419 | * c-lang.c (c_extensions): Delete, moved into | |
5420 | c_language::filename_extensions. | |
5421 | (c_language_data): Remove la_filename_extensions initializer. | |
5422 | (c_language::filename_extensions): New member function. | |
5423 | (cplus_extensions): Delete, moved into | |
5424 | cplus_language::filename_extensions. | |
5425 | (cplus_language_data): Remove la_filename_extensions initializer. | |
5426 | (cplus_language::filename_extensions): New member function. | |
5427 | (asm_extensions): Delete, moved into | |
5428 | asm_language::filename_extensions. | |
5429 | (asm_language_data): Remove la_filename_extensions initializer. | |
5430 | (asm_language::filename_extensions): New member function. | |
5431 | (minimal_language_data): Remove la_filename_extensions | |
5432 | initializer. | |
5433 | * d-lang.c (d_extensions): Delete, moved into | |
5434 | d_language::filename_extensions. | |
5435 | (d_language_data): Remove la_filename_extensions initializer. | |
5436 | (d_language::filename_extensions): New member function. | |
5437 | * f-lang.c (f_extensions): Delete, moved into | |
5438 | f_language::filename_extensions. | |
5439 | (f_language_data): Remove la_filename_extensions initializer. | |
5440 | (f_language::filename_extensions): New member function. | |
5441 | * go-lang.c (go_language_data): Remove la_filename_extensions | |
5442 | initializer. | |
5443 | * language.c (add_set_language_command): Update now that | |
5444 | filename_extensions returns a vector. | |
5445 | (unknown_language_data): Remove la_filename_extensions | |
5446 | initializer. | |
5447 | (auto_language_data): Likewise. | |
5448 | * language.h (language_data): Remove la_filename_extensions field. | |
5449 | (language_defn::filename_extensions): New member function. | |
5450 | * m2-lang.c (m2_language_data): Remove la_filename_extensions | |
5451 | initializer. | |
5452 | * objc-lang.c (objc_extensions): Delete, moved into | |
5453 | objc_language::filename_extensions. | |
5454 | (objc_language_data): Remove la_filename_extensions initializer. | |
5455 | (objc_language::filename_extensions): New member function. | |
5456 | * opencl-lang.c (opencl_language_data): Remove | |
5457 | la_filename_extensions initializer. | |
5458 | * p-lang.c (pascal_extensions): Delete, moved into | |
5459 | pascal_language::filename_extensions. | |
5460 | (pascal_language_data): Remove la_filename_extensions initializer. | |
5461 | (pascal_language::filename_extensions): New member function. | |
5462 | * rust-lang.c (rust_extensions): Delete, moved into | |
5463 | rust_language::filename_extensions. | |
5464 | (rust_language_data): Remove la_filename_extensions initializer. | |
5465 | (rust_language::filename_extensions): New member function. | |
5466 | * symfile.c (add_filename_language): Add new assert. | |
5467 | ||
5468 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> | |
5469 | ||
5470 | * ada-lang.c (ada_language_data): Remove la_name and | |
5471 | la_natural_name initializers. | |
5472 | (ada_language::name): New member function. | |
5473 | (ada_language::natural_name): New member function. | |
5474 | * c-lang.c (c_language_data): Remove la_name and | |
5475 | la_natural_name initializers. | |
5476 | (c_language::name): New member function. | |
5477 | (c_language::natural_name): New member function. | |
5478 | (cplus_language_data): Remove la_name and | |
5479 | la_natural_name initializers. | |
5480 | (cplus_language::name): New member function. | |
5481 | (cplus_language::natural_name): New member function. | |
5482 | (asm_language_data): Remove la_name and | |
5483 | la_natural_name initializers. | |
5484 | (asm_language::name): New member function. | |
5485 | (asm_language::natural_name): New member function. | |
5486 | (minimal_language_data): Remove la_name and | |
5487 | la_natural_name initializers. | |
5488 | (minimal_language::name): New member function. | |
5489 | (minimal_language::natural_name): New member function. | |
5490 | * compile/compile.c (compile_to_object): Update call to | |
5491 | lanugage_defn::name. | |
5492 | * d-lang.c (d_language_data): Remove la_name and | |
5493 | la_natural_name initializers. | |
5494 | (d_language::name): New member function. | |
5495 | (d_language::natural_name): New member function. | |
5496 | * expprint.c (print_subexp_standard): Update call to | |
5497 | language_defn::name. | |
5498 | (dump_raw_expression): Likewise | |
5499 | (dump_prefix_expression): Likewise. | |
5500 | * f-lang.c (f_language_data): Remove la_name and | |
5501 | la_natural_name initializers. | |
5502 | (f_language::name): New member function. | |
5503 | (f_language::natural_name): New member function. | |
5504 | * go-lang.c (go_language_data): Remove la_name and | |
5505 | la_natural_name initializers. | |
5506 | (go_language::name): New member function. | |
5507 | (go_language::natural_name): New member function. | |
5508 | * language.c (show_language_command): Update call to | |
5509 | language_defn::name. | |
5510 | (set_language_command): Likewise. | |
5511 | (language_enum): Likewise. | |
5512 | (language_str): Likewise. | |
5513 | (add_set_language_command): Likewise, use | |
5514 | language_defn::natural_name in the doc string. | |
5515 | (unknown_language_data): Remove la_name and | |
5516 | la_natural_name initializers. | |
5517 | (unknown_language::name): New member function. | |
5518 | (unknown_language::natural_name): New member function. | |
5519 | (auto_language_data): Remove la_name and | |
5520 | la_natural_name initializers. | |
5521 | (auto_language::name): New member function. | |
5522 | (auto_language::natural_name): New member function. | |
5523 | (language_lookup_primitive_type_as_symbol): Update call to | |
5524 | language_defn::name. | |
5525 | * language.h (language_data): Remove la_name and la_natural_name | |
5526 | member variables. | |
5527 | (language_defn::name): New member function. | |
5528 | (language_defn::natural_name): New member function. | |
5529 | * m2-lang.c (m2_language_data): Remove la_name and | |
5530 | la_natural_name initializers. | |
5531 | (m2_language::name): New member function. | |
5532 | (m2_language::natural_name): New member function. | |
5533 | * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to | |
5534 | language_defn::natural_name. | |
5535 | * objc-lang.c (objc_language_data): Remove la_name and | |
5536 | la_natural_name initializers. | |
5537 | (objc_language::name): New member function. | |
5538 | (objc_language::natural_name): New member function. | |
5539 | * opencl-lang.c (opencl_language_data): Remove la_name and | |
5540 | la_natural_name initializers. | |
5541 | (opencl_language::name): New member function. | |
5542 | (opencl_language::natural_name): New member function. | |
5543 | * p-lang.c (pascal_language_data): Remove la_name and | |
5544 | la_natural_name initializers. | |
5545 | (pascal_language::name): New member function. | |
5546 | (pascal_language::natural_name): New member function. | |
5547 | * rust-lang.c (rust_language_data): Remove la_name and | |
5548 | la_natural_name initializers. | |
5549 | (rust_language::name): New member function. | |
5550 | (rust_language::natural_name): New member function. | |
5551 | * symtab.c (lookup_language_this): Update call to | |
5552 | language_defn::name. | |
5553 | ||
5554 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> | |
5555 | ||
5556 | * ada-lang.c (ada_language_data): Remove la_name_of_this | |
5557 | initializer. | |
5558 | * ax-gdb.c (gen_expr): Update call to name_of_this. | |
5559 | * c-exp.y (classify_name): Likewise. | |
5560 | * c-lang.c (c_language_data): Remove la_name_of_this initializer. | |
5561 | (cplus_language_data): Likewise. | |
5562 | (cplus_language::name_of_this): New member function. | |
5563 | (asm_language_data): Remove la_name_of_this initializer. | |
5564 | (minimal_language_data): Likewise. | |
5565 | * d-lang.c (d_language_data): Likewise. | |
5566 | (d_language::name_of_this): New member function. | |
5567 | * expprint.c (print_subexp_standard): Update call to name_of_this. | |
5568 | * f-lang.c (f_language_data): Remove la_name_of_this initializer. | |
5569 | * go-lang.c (go_language_data): Likewise. | |
5570 | * language.c (unknown_language_data): Likewise. | |
5571 | (unknown_language::name_of_this): New member function. | |
5572 | (auto_language_data): Remove la_name_of_this initializer. | |
5573 | (auto_language::name_of_this): New member function. | |
5574 | * language.h (language_data): Delete la_name_of_this member | |
5575 | variable. | |
5576 | (language_defn::name_of_this): New member function. | |
5577 | * m2-lang.c (m2_language_data): Remove la_name_of_this | |
5578 | initializer. | |
5579 | * objc-lang.c (objc_language_data): Likewise. | |
5580 | (objc_language::name_of_this): New member function. | |
5581 | * opencl-lang.c (opencl_language_data): Remove la_name_of_this | |
5582 | initializer. | |
5583 | * p-lang.c (pascal_language_data): Likewise. | |
5584 | (pascal_language::name_of_this): New member function. | |
5585 | * rust-lang.c (rust_language_data): Remove la_name_of_this | |
5586 | initializer. | |
5587 | * symtab.c (lookup_language_this): Update call to name_of_this. | |
5588 | (lookup_symbol_aux): Likewise. | |
5589 | * valops.c (value_of_this): Likewise. | |
5590 | ||
5591 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> | |
5592 | ||
5593 | * ada-lang.c (ada_language_data): Remove | |
5594 | la_struct_too_deep_ellipsis initializer. | |
5595 | (ada_language::struct_too_deep_ellipsis): New member function. | |
5596 | * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis | |
5597 | initializer. | |
5598 | (cplus_language_data): Likewise. | |
5599 | (asm_language_data): Likewise. | |
5600 | (minimal_language_data): Likewise. | |
5601 | * cp-valprint.c (cp_print_value): Update call to | |
5602 | struct_too_deep_ellipsis. | |
5603 | * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis | |
5604 | initializer. | |
5605 | * f-lang.c (f_language_data): Likewise. | |
5606 | (f_language::struct_too_deep_ellipsis): New member function. | |
5607 | * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis | |
5608 | initializer. | |
5609 | * language.c (unknown_language_data): Likewise. | |
5610 | (auto_language_data): Likewise. | |
5611 | * language.h (language_data): Delete la_struct_too_deep_ellipsis | |
5612 | member variable. | |
5613 | (language_defn::struct_too_deep_ellipsis): New member function. | |
5614 | * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis | |
5615 | initializer.Q | |
5616 | * objc-lang.c (objc_language_data): Likewise. | |
5617 | * opencl-lang.c (opencl_language_data): Likewise. | |
5618 | * p-lang.c (pascal_language_data): Likewise. | |
5619 | * rust-lang.c (rust_language_data): Likewise. | |
5620 | * valprint.c (val_print_check_max_depth): Update call to | |
5621 | struct_too_deep_ellipsis. | |
5622 | ||
5623 | 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com> | |
5624 | ||
5625 | * MAINTAINERS (Write After Approval): Add myself. | |
5626 | ||
5627 | 2020-09-15 Tom Tromey <tom@tromey.com> | |
5628 | ||
5629 | * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>: | |
5630 | Remove. | |
5631 | ||
5632 | 2020-09-15 Tom Tromey <tom@tromey.com> | |
5633 | ||
5634 | * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR | |
5635 | and TYPE_CODE_METHODPTR cases. | |
5636 | * c-valprint.c (c_value_print_memberptr): Move to valprint.c. | |
5637 | (c_value_print_inner): Update. | |
5638 | * valprint.c (generic_value_print_memberptr): New function, from | |
5639 | c_value_print_memberptr. | |
5640 | (generic_value_print): Use it. Call cplus_print_method_ptr. | |
5641 | ||
5642 | 2020-09-15 Tom Tromey <tromey@adacore.com> | |
5643 | ||
5644 | * python/python-internal.h (PyInt_FromLong): Remove define. | |
5645 | * python/py-value.c (convert_value_from_python): Use | |
5646 | gdb_py_object_from_longest. | |
5647 | * python/py-type.c (typy_get_code): Use | |
5648 | gdb_py_object_from_longest. | |
5649 | * python/py-symtab.c (salpy_get_line): Use | |
5650 | gdb_py_object_from_longest. | |
5651 | * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use | |
5652 | gdb_py_object_from_longest. | |
5653 | * python/py-record.c (recpy_gap_reason_code): Use | |
5654 | gdb_py_object_from_longest. | |
5655 | * python/py-record-btrace.c (recpy_bt_insn_size) | |
5656 | (recpy_bt_func_level, btpy_list_count): Use | |
5657 | gdb_py_object_from_longest. | |
5658 | * python/py-infthread.c (gdbpy_create_ptid_object): Use | |
5659 | gdb_py_object_from_longest. Fix error handling. | |
5660 | * python/py-framefilter.c (bootstrap_python_frame_filters): Use | |
5661 | gdb_py_object_from_longest. | |
5662 | * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use | |
5663 | gdb_py_object_from_longest. | |
5664 | * python/py-breakpoint.c (bppy_get_type, bppy_get_number) | |
5665 | (bppy_get_thread, bppy_get_task, bppy_get_hit_count) | |
5666 | (bppy_get_ignore_count): Use gdb_py_object_from_longest. | |
5667 | ||
5668 | 2020-09-15 Tom Tromey <tromey@adacore.com> | |
5669 | ||
5670 | * python/python.c (gdbpy_parameter_value): Use | |
5671 | gdb_py_object_from_ulongest. | |
5672 | ||
5673 | 2020-09-15 Tom Tromey <tromey@adacore.com> | |
5674 | ||
5675 | * python/py-infevents.c (create_register_changed_event_object): | |
5676 | Use gdb_py_object_from_longest. | |
5677 | * python/py-exitedevent.c (create_exited_event_object): Use | |
5678 | gdb_py_object_from_longest. | |
5679 | ||
5680 | 2020-09-15 Tom Tromey <tromey@adacore.com> | |
5681 | ||
5682 | * python/python.c (gdbpy_parameter_value): Use | |
5683 | gdb_py_object_from_longest. | |
5684 | * python/py-type.c (convert_field, typy_range): Use | |
5685 | gdb_py_object_from_longest. | |
5686 | * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use | |
5687 | gdb_py_object_from_longest. | |
5688 | * python/py-lazy-string.c (stpy_get_length): Use | |
5689 | gdb_py_object_from_longest. | |
5690 | * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use | |
5691 | gdb_py_object_from_longest. | |
5692 | * python/py-infevents.c (create_memory_changed_event_object): Use | |
5693 | gdb_py_object_from_longest. | |
5694 | * python/py-inferior.c (infpy_get_num): Use | |
5695 | gdb_py_object_from_longest. | |
5696 | (infpy_get_pid): Likewise. | |
5697 | ||
5698 | 2020-09-15 Tom Tromey <tromey@adacore.com> | |
5699 | ||
5700 | * python/python-internal.h (gdb_py_long_from_ulongest): Remove | |
5701 | defines. | |
5702 | * python/py-value.c (valpy_long): Use | |
5703 | gdb_py_object_from_ulongest. | |
5704 | * python/py-symtab.c (salpy_get_pc): Use | |
5705 | gdb_py_object_from_ulongest. | |
5706 | (salpy_get_last): Likewise. | |
5707 | * python/py-record-btrace.c (recpy_bt_insn_pc): Use | |
5708 | gdb_py_object_from_ulongest. | |
5709 | * python/py-lazy-string.c (stpy_get_address): Use | |
5710 | gdb_py_object_from_ulongest. | |
5711 | * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest. | |
5712 | * python/py-arch.c (archpy_disassemble): Use | |
5713 | gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix | |
5714 | error handling. | |
5715 | ||
5716 | 2020-09-15 Tom Tromey <tromey@adacore.com> | |
5717 | ||
5718 | * python/python-internal.h (gdb_py_long_from_longest): Remove | |
5719 | defines. | |
5720 | * python/py-value.c (valpy_long): Use gdb_py_object_from_longest. | |
5721 | * python/py-type.c (convert_field, typy_get_sizeof): Use | |
5722 | gdb_py_object_from_longest. | |
5723 | * python/py-record-btrace.c (btpy_list_index): Use | |
5724 | gdb_py_object_from_longest. | |
5725 | ||
5726 | 2020-09-15 Tom Tromey <tromey@adacore.com> | |
5727 | ||
5728 | * python/python-internal.h (PyInt_FromSsize_t): Remove define. | |
5729 | * python/py-record.c (recpy_element_number): Use | |
5730 | gdb_py_object_from_longest. | |
5731 | (recpy_gap_number): Likewise. | |
5732 | ||
5733 | 2020-09-15 Tom Tromey <tromey@adacore.com> | |
5734 | ||
5735 | * top.c (ui::ui): Update. | |
5736 | (highest_ui_num): Remove. | |
5737 | * top.h (struct ui) <num>: Remove. | |
5738 | ||
5739 | 2020-09-15 Tom Tromey <tromey@adacore.com> | |
5740 | ||
5741 | * unittests/memory-map-selftests.c (valid_mem_map): Now array. | |
5742 | * ui-style.c (ansi_regex_text): Now array. | |
5743 | * rust-exp.y (number_regex_text): Now array. | |
5744 | * linespec.c (linespec_quote_characters): Now array. | |
5745 | * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym): | |
5746 | Now arrays. | |
5747 | ||
5748 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> | |
5749 | ||
5750 | * debuginfod-support.c (debuginfod_client_deleter): New. | |
5751 | (debuginfod_client_up): New. | |
5752 | (debuginfod_init): Return debuginfod_client_up. | |
5753 | (debuginfod_source_query): Adjust. | |
5754 | (debuginfod_debuginfo_query): Adjust. | |
5755 | ||
5756 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> | |
5757 | ||
5758 | * debuginfod-support.c (debuginfod_source_query): Use | |
5759 | make_unique_xstrdup. | |
5760 | ||
5761 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> | |
5762 | ||
5763 | * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses | |
5764 | with `type::instance_flags`. | |
5765 | ||
5766 | 2020-09-14 Michael Mullin <masmullin@gmail.com> | |
5767 | ||
5768 | * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml): | |
5769 | Remove baton parameter. | |
5770 | ||
5771 | 2020-09-14 Pedro Alves <pedro@palves.net> | |
5772 | ||
5773 | * Makefile.in (SELFTESTS_SRCS): Add | |
5774 | unittests/enum-flags-selftests.c. | |
5775 | * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use | |
5776 | btrace_function_flags instead of enum btrace_function_flag. | |
5777 | * compile/compile-c-types.c (convert_qualified): Use | |
5778 | enum_flags::raw. | |
5779 | * compile/compile-cplus-symbols.c (convert_one_symbol) | |
5780 | (convert_symbol_bmsym): | |
5781 | * compile/compile-cplus-types.c (compile_cplus_convert_method) | |
5782 | (compile_cplus_convert_struct_or_union_methods) | |
5783 | (compile_cplus_instance::convert_qualified_base): | |
5784 | * go-exp.y (parse_string_or_char): Add cast to int. | |
5785 | * unittests/enum-flags-selftests.c: New file. | |
5786 | * record-btrace.c (btrace_thread_flag_to_str): Change parameter's | |
5787 | type to btrace_thread_flags from btrace_thread_flag. | |
5788 | (record_btrace_cancel_resume, record_btrace_step_thread): Change | |
5789 | local's type to btrace_thread_flags from btrace_thread_flag. Add | |
5790 | cast in DEBUG call. | |
5791 | ||
5792 | 2020-09-14 Pedro Alves <pedro@palves.net> | |
5793 | ||
5794 | * c-typeprint.c (c_type_print_modifier): Adjust to rename. | |
5795 | * gdbtypes.c (address_space_name_to_int): Rename to ... | |
5796 | (address_space_name_to_type_instance_flags): ... this. | |
5797 | (address_space_int_to_name): Rename to ... | |
5798 | (address_space_type_instance_flags_to_name): ... this. | |
5799 | * gdbtypes.h (address_space_name_to_int): Rename to ... | |
5800 | (address_space_name_to_type_instance_flags): ... this. | |
5801 | (address_space_int_to_name): Rename to ... | |
5802 | (address_space_type_instance_flags_to_name): ... this. | |
5803 | * type-stack.c (type_stack::insert): Adjust to rename. | |
5804 | * type-stack.h (type_stack::insert): Likewise. | |
5805 | ||
5806 | 2020-09-14 Pedro Alves <pedro@palves.net> | |
5807 | Andrew Burgess <andrew.burgess@embecosm.com> | |
5808 | ||
5809 | * avr-tdep.c (avr_address_class_type_flags): Return | |
5810 | type_instance_flags. | |
5811 | (avr_address_class_type_flags_to_name): Take a | |
5812 | type_instance_flags. | |
5813 | (avr_address_class_name_to_type_flags): Return bool and take a | |
5814 | type_instance_flags. | |
5815 | * d-lang.c (build_d_types): Use type::set_instance_flags. | |
5816 | * ft32-tdep.c (ft32_address_class_type_flags): Return | |
5817 | type_instance_flags. | |
5818 | (ft32_address_class_type_flags_to_name): Take a | |
5819 | type_instance_flags. | |
5820 | (ft32_address_class_name_to_type_flags): Return bool and take a | |
5821 | type_instance_flags. | |
5822 | (ft32_gdbarch_init): Use type::set_instance_flags. | |
5823 | * eval.c (fake_method::fake_method): Use type::set_instance_flags. | |
5824 | * gdbarch.h, gdbarch.c: Regenerate. | |
5825 | * gdbarch.sh (address_class_type_flags): Use type_instance_flags. | |
5826 | (address_class_name_to_type_flags): Use type_instance_flags and | |
5827 | bool. | |
5828 | * gdbtypes.c (address_space_name_to_int) | |
5829 | (address_space_int_to_name, make_qualified_type): Use | |
5830 | type_instance_flags. | |
5831 | (make_qualified_type): Use type_instance_flags and | |
5832 | type::set_instance_flags. | |
5833 | (make_type_with_address_space, make_cv_type, make_vector_type) | |
5834 | (check_typedef): Use type_instance_flags. | |
5835 | (recursive_dump_type): Cast type_instance_flags to unsigned for | |
5836 | printing. | |
5837 | (copy_type_recursive): Use type::set_instance_flags. | |
5838 | (gdbtypes_post_init): Use type::set_instance_flags. | |
5839 | * gdbtypes.h (struct type) <instance_flags>: Rename to ... | |
5840 | <m_instance_flags>: ... this. | |
5841 | <instance_flags, set_instance_flags>: New methods. | |
5842 | (TYPE_INSTANCE_FLAGS): Use the instance_flags method. | |
5843 | (SET_TYPE_INSTANCE_FLAGS): New. | |
5844 | (address_space_name_to_int, address_space_int_to_name) | |
5845 | (make_type_with_address_space): Pass flags using | |
5846 | type_instance_flags instead of int. | |
5847 | * stabsread.c (cleanup_undefined_types_noname): Use | |
5848 | type::set_instance_flags. | |
5849 | * s390-tdep.c (s390_address_class_type_flags): Return | |
5850 | type_instance_flags. | |
5851 | (s390_address_class_type_flags_to_name): Take a | |
5852 | type_instance_flags. | |
5853 | (s390_address_class_name_to_type_flags): Return bool and take a | |
5854 | type_instance_flags. | |
5855 | * type-stack.c (type_stack::follow_types): Use | |
5856 | type_instance_flags. | |
5857 | * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags. | |
5858 | ||
5859 | 2020-09-14 Tom Tromey <tromey@adacore.com> | |
5860 | ||
5861 | * x86-tdep.h (x86_in_indirect_branch_thunk): Update. | |
5862 | * x86-tdep.c (x86_is_thunk_register_name) | |
5863 | (x86_in_indirect_branch_thunk): Update. | |
5864 | * sparc64-tdep.c (sparc64_fpu_register_names) | |
5865 | (sparc64_cp0_register_names, sparc64_register_names) | |
5866 | (sparc64_pseudo_register_names): Now const. | |
5867 | * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names, | |
5868 | cp0_registers_num>: Now const. | |
5869 | * sparc-tdep.c (sparc_core_register_names) | |
5870 | (sparc32_fpu_register_names, sparc32_cp0_register_names) | |
5871 | (sparc32_pseudo_register_names): Now const. | |
5872 | (validate_tdesc_registers): Update. | |
5873 | * rust-lang.c (rust_extensions): Now const. | |
5874 | * p-lang.c (p_extensions): Now const. | |
5875 | * objc-lang.c (objc_extensions): Now const. | |
5876 | * nto-tdep.c (nto_thread_state_str): Now const. | |
5877 | * moxie-tdep.c (moxie_register_names): Now const. | |
5878 | * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>: | |
5879 | Now const. | |
5880 | * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names) | |
5881 | (mips_linux_reg_names): Now const. | |
5882 | (mips_gdbarch_init): Update. | |
5883 | * microblaze-tdep.c (microblaze_register_names): Now const. | |
5884 | * m68k-tdep.c (m68k_register_names): Now const. | |
5885 | * m32r-tdep.c (m32r_register_names): Now const. | |
5886 | * ia64-tdep.c (ia64_register_names): Now const. | |
5887 | * i386-tdep.h (struct gdbarch_tdep) <register_names, | |
5888 | ymmh_register_names, ymm16h_regnum, mpx_register_names, | |
5889 | k_register_names, zmmh_register_names, xmm_avx512_register_names, | |
5890 | ymm_avx512_register_names, pkeys_register_names>: Now const. | |
5891 | * i386-tdep.c (i386_register_names, i386_zmm_names) | |
5892 | (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names) | |
5893 | (i386_mpx_names, i386_pkeys_names, i386_bnd_names) | |
5894 | (i386_mmx_names, i386_byte_names, i386_word_names): Now const. | |
5895 | * f-lang.c (f_extensions): Now const. | |
5896 | * d-lang.c (d_extensions): Now const. | |
5897 | * csky-tdep.c (csky_register_names): Now const. | |
5898 | * charset.c (default_charset_names, charset_enum): Now const. | |
5899 | (_initialize_charset): Update. | |
5900 | * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now | |
5901 | const. | |
5902 | * bsd-uthread.c (bsd_uthread_solib_names): Now const. | |
5903 | (bsd_uthread_solib_loaded): Update. | |
5904 | (bsd_uthread_state): Now const. | |
5905 | * amd64-tdep.c (amd64_register_names, amd64_ymm_names) | |
5906 | (amd64_ymm_avx512_names, amd64_ymmh_names) | |
5907 | (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names) | |
5908 | (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names) | |
5909 | (amd64_pkeys_names, amd64_byte_names, amd64_word_names) | |
5910 | (amd64_dword_names): Now const. | |
5911 | * agent.c (can_use_agent_enum): Now const. | |
5912 | * ada-tasks.c (task_states, long_task_states): Now const. | |
5913 | * ada-lang.c (known_runtime_file_name_patterns) | |
5914 | (known_auxiliary_function_name_patterns, attribute_names) | |
5915 | (standard_exc, ada_extensions): Now const. | |
5916 | ||
5917 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> | |
5918 | ||
5919 | * bcache.h (struct bcache) <bcache>: Remove constructor. | |
5920 | <m_hash_function, m_compare_function>: Remove. | |
5921 | <~bcache>: Make virtual. | |
5922 | <compare>: Remove static method, introduce virtual method. | |
5923 | <default_hash>: Remove. | |
5924 | <hash>: New virtual method. | |
5925 | * bcache.c (bcache::expand_hash_table): Update. | |
5926 | (bcache::insert): Update. | |
5927 | (bcache::hash): New. | |
5928 | (bcache::compare): Update comment and parameter names. | |
5929 | * gdbtypes.c (types_deeply_equal): Update. | |
5930 | * psymtab.h (struct psymbol_bcache): New struct. | |
5931 | (class psymtab_storage) <psymtab_storage>: Make default. | |
5932 | <psymbol_cache>: Change type to psymbol_bcache. | |
5933 | * psymtab.c (psymtab_storage::psymtab_storage): Remove. | |
5934 | (psymbol_hash): Change to... | |
5935 | (psymbol_bcache::hash): ... this. | |
5936 | (psymbol_compare): Change to... | |
5937 | (psymbol_bcache::compare): ... this. | |
5938 | ||
5939 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> | |
5940 | ||
5941 | * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when | |
5942 | checking for initial lwp. | |
5943 | ||
5944 | 2020-09-14 Tom Tromey <tromey@adacore.com> | |
5945 | ||
5946 | * m68k-tdep.c (m68k_extract_return_value): Use | |
5947 | pointer_result_regnum. | |
5948 | (m68k_store_return_value): Likewise. | |
5949 | (m68k_reg_struct_return_p): Handle vectors and arrays. | |
5950 | (m68k_return_value): Handle arrays. | |
5951 | (m68k_svr4_return_value): Fix single-element aggregate handling. | |
5952 | Handle long double. Adjust for embedded ABI. | |
5953 | (m68k_svr4_init_abi): Set pointer_result_regnum. | |
5954 | (m68k_embedded_init_abi): New function. | |
5955 | (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP. | |
5956 | (m68k_osabi_sniffer): New function. | |
5957 | (_initialize_m68k_tdep): Register osabi sniffer. | |
5958 | * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New | |
5959 | member. | |
5960 | ||
5961 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> | |
5962 | ||
5963 | * xml-support.c (xml_fetch_content_from_file): Replace xfree | |
5964 | with gdb::unique_xmalloc_ptr<char>. | |
5965 | ||
5966 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> | |
5967 | ||
5968 | * xml-support.h (xml_fetch_another): Change type to be a | |
5969 | function_view. | |
5970 | (xml_process_xincludes): Remove baton parameter. | |
5971 | (xml_fetch_content_from_file): Change baton parameter to | |
5972 | dirname. | |
5973 | * xml-support.c (struct xinclude_parsing_data) | |
5974 | <xinclude_parsing_data>: Remove baton parameter. | |
5975 | <fetcher_baton>: Remove. | |
5976 | (xinclude_start_include): Adjust. | |
5977 | (xml_process_xincludes): Adjust. | |
5978 | (xml_fetch_content_from_file): Replace baton parameter with | |
5979 | dirname. | |
5980 | * xml-syscall.c (syscall_parse_xml): Remove baton parameter. | |
5981 | (xml_init_syscalls_info): Use a lambda. | |
5982 | * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter. | |
5983 | (file_read_description_xml): Use a lambda. | |
5984 | (fetch_available_features_from_target): Change baton parameter | |
5985 | to target_ops. | |
5986 | (target_read_description_xml): Use a lambda. | |
5987 | (target_fetch_description_xml): Use a lambda. | |
5988 | (string_read_description_xml): Update. | |
5989 | ||
5990 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> | |
5991 | ||
5992 | * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all | |
5993 | uses with type::endianity_is_not_default. | |
5994 | ||
5995 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> | |
5996 | ||
5997 | * gdbtypes.h (struct type) <endianity_is_not_default, | |
5998 | set_endianity_is_not_default>: New methods. | |
5999 | (TYPE_ENDIANITY_NOT_DEFAULT): Use | |
6000 | type::endianity_is_not_default, change all write call sites to | |
6001 | use type::set_endianity_is_not_default. | |
6002 | ||
6003 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> | |
6004 | ||
6005 | * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all | |
6006 | uses with type::is_fixed_instance. | |
6007 | ||
6008 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> | |
6009 | ||
6010 | * gdbtypes.h (struct type) <is_fixed_instance, | |
6011 | set_is_fixed_instance>: New methods. | |
6012 | (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all | |
6013 | write call sites to use type::set_is_fixed_instance. | |
6014 | ||
6015 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> | |
6016 | ||
6017 | * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all | |
6018 | uses with type::is_gnu_ifunc. | |
6019 | ||
6020 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> | |
6021 | ||
6022 | * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods. | |
6023 | (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to | |
6024 | use type::set_is_gnu_ifunc. | |
6025 | ||
6026 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> | |
6027 | ||
6028 | * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all | |
6029 | uses with type::stub_is_supported. | |
6030 | ||
6031 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> | |
6032 | ||
6033 | * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods. | |
6034 | (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to | |
6035 | use type::set_stub_is_supported. | |
6036 | ||
6037 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> | |
6038 | ||
6039 | * gdbtypes.h (TYPE_VECTOR): Remove, replace all | |
6040 | uses with type::is_vector. | |
6041 | ||
6042 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> | |
6043 | ||
6044 | * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods. | |
6045 | (TYPE_VECTOR): Use type::is_vector, change all write call sites to | |
6046 | use type::set_is_vector. | |
6047 | ||
6048 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> | |
6049 | ||
6050 | * gdbtypes.h (TYPE_VARARGS): Remove, replace all | |
6051 | uses with type::has_varargs. | |
6052 | ||
6053 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> | |
6054 | ||
6055 | * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods. | |
6056 | (TYPE_VARARGS): Use type::has_varargs, change all write call sites to | |
6057 | use type::set_has_varargs. | |
6058 | ||
6059 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> | |
6060 | ||
6061 | * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all | |
6062 | uses with type::is_prototyped. | |
6063 | ||
6064 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> | |
6065 | ||
6066 | * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>: | |
6067 | New methods. | |
6068 | (TYPE_PROTOTYPED): Use type::is_prototyped, change all write | |
6069 | call sites to use type::set_is_prototyped. | |
6070 | ||
6071 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> | |
6072 | ||
6073 | * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all | |
6074 | uses with type::target_is_stub. | |
6075 | ||
6076 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> | |
6077 | ||
6078 | * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>: | |
6079 | New methods. | |
6080 | (TYPE_TARGET_STUB): Use type::is_stub, change all write call | |
6081 | sites to use type::set_target_is_stub. | |
6082 | ||
6083 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> | |
6084 | ||
6085 | * gdbtypes.h (TYPE_STUB): Remove, replace all | |
6086 | uses with type::is_stub. | |
6087 | ||
6088 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> | |
6089 | ||
6090 | * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods. | |
6091 | (TYPE_STUB): Use type::is_stub, change all write call sites to | |
6092 | use type::set_is_stub. | |
6093 | ||
6094 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> | |
6095 | ||
6096 | * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with | |
6097 | type::has_no_signedness. | |
6098 | ||
6099 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> | |
6100 | ||
6101 | * gdbtypes.h (struct type) <has_no_signedness, | |
6102 | set_has_no_signedness>: New methods. | |
6103 | (TYPE_NOSIGN): Use type::has_no_signedness, change all write | |
6104 | call sites to use type::set_has_no_signedness. | |
6105 | ||
6106 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> | |
6107 | ||
6108 | * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with | |
6109 | type::is_unsigned. | |
6110 | ||
6111 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> | |
6112 | ||
6113 | * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New | |
6114 | methods. | |
6115 | (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call | |
6116 | sites to use type::set_is_unsigned. | |
6117 | ||
6118 | 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com> | |
6119 | Adam Renquinha <arenquinha@cimeq.qc.ca> | |
6120 | ||
6121 | * arm-tdep.c (arm_m_exception_cache): Try use correct stack | |
6122 | pointer and stack frame offset when unwinding. | |
6123 | ||
6124 | 2020-09-13 Pedro Alves <pedro@palves.net> | |
6125 | ||
6126 | * NEWS: Document "-break-insert --qualified". | |
6127 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified". | |
6128 | ||
6129 | 2020-09-13 Pedro Alves <pedro@palves.net> | |
6130 | ||
6131 | * linespec.c (classify_mtype, compare_msyms): Delete. | |
6132 | (search_minsyms_for_name): Remove classification logic. Instead | |
6133 | filter out trampoline symbols if we also found an external | |
6134 | function of the same name. | |
6135 | ||
6136 | 2020-09-13 Joel Brobecker <brobecker@adacore.com> | |
6137 | ||
6138 | * NEWS: Create a new section for the next release branch. | |
6139 | Rename the section of the current branch, now that it has | |
6140 | been cut. | |
6141 | ||
6142 | 2020-09-13 Joel Brobecker <brobecker@adacore.com> | |
6143 | ||
6144 | GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59): | |
6145 | * version.in: Bump version to 11.0.50.DATE-git. | |
6146 | ||
6147 | 2020-09-12 Joel Brobecker <brobecker@adacore.com> | |
6148 | ||
6149 | * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST. | |
6150 | ||
6151 | 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com> | |
6152 | Felix Willgerodt <Felix.Willgerodt@intel.com> | |
6153 | ||
6154 | * gdbarch.sh: Added bfloat16 type. | |
6155 | * gdbarch.c: Regenerated. | |
6156 | * gdbarch.h: Regenerated. | |
6157 | * gdbtypes.c (floatformats_bfloat16): New struct. | |
6158 | (gdbtypes_post_init): Add builtin_bfloat16. | |
6159 | * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member. | |
6160 | (floatformats_bfloat16): New struct. | |
6161 | * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16" | |
6162 | (i386_ymm_type): Add field "v16_bfloat16" | |
6163 | (i386_gdbarch_init): Add set_gdbarch_bfloat16_format. | |
6164 | * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16. | |
6165 | * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16. | |
6166 | * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16. | |
6167 | * features/i386/64bit-avx512.xml: Add bfloat16 type. | |
6168 | * features/i386/64bit-avx512.c: Regenerated. | |
6169 | * features/i386/64bit-sse.xml: Add bfloat16 type. | |
6170 | * features/i386/64bit-sse.c: Regenerated. | |
6171 | ||
6172 | 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com> | |
6173 | ||
6174 | * i386-tdep.c (i386_zmm_type): Fix field names. | |
6175 | (i386_ymm_type): Fix field names. | |
6176 | ||
6177 | 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
6178 | ||
6179 | * breakpoint.c: Fix typo in the help message of the | |
6180 | "set breakpoint condition-evaluation" command. | |
6181 | ||
6182 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> | |
6183 | ||
6184 | * nbsd-nat.c: Include "nat/netbsd-nat.h". | |
6185 | * (nbsd_nat_target::pid_to_exec_file) | |
6186 | (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name) | |
6187 | (nbsd_nat_target::post_startup_inferior) | |
6188 | (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial) | |
6189 | (nbsd_add_threads): Switch local code to common gdb/nat functions. | |
6190 | * (nbsd_pid_to_cmdline): Call sysctl from the global namespace. | |
6191 | * (nbsd_thread_lister): Remove. | |
6192 | ||
6193 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> | |
6194 | ||
6195 | * fork-inferior.c (startup_inferior): Avoid double free. | |
6196 | ||
6197 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> | |
6198 | ||
6199 | * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add. | |
6200 | * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise. | |
6201 | ||
6202 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> | |
6203 | ||
6204 | * netbsd-nat.h (netbsd_nat::enable_proc_events): Add. | |
6205 | * netbsd-nat.c: Include <sys/ptrace.h>. | |
6206 | * (netbsd_nat::enable_proc_events): Add. | |
6207 | ||
6208 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> | |
6209 | ||
6210 | * netbsd-nat.h: Include "gdbsupport/function-view.h". | |
6211 | * (netbsd_nat::thread_alive, netbsd_nat::thread_name) | |
6212 | (netbsd_nat::for_each_thread): Add. | |
6213 | * netbsd-nat.c: Include "gdbsupport/common-defs.h" and | |
6214 | "gdbsupport/common-debug.h". | |
6215 | * (netbsd_nat::netbsd_thread_lister) | |
6216 | (netbsd_nat::thread_alive, netbsd_nat::thread_name) | |
6217 | (netbsd_nat::for_each_thread): Add. | |
6218 | ||
6219 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> | |
6220 | ||
6221 | * netbsd-nat.h: Include <unistd.h>. | |
6222 | * (netbsd_nat::pid_to_exec_file): Add. | |
6223 | * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>. | |
6224 | * (netbsd_nat::pid_to_exec_file) Add. | |
6225 | ||
6226 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> | |
6227 | ||
6228 | * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed. | |
6229 | ||
6230 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> | |
6231 | ||
6232 | * netbsd-nat.h: New file. | |
6233 | * netbsd-nat.c: Likewise. | |
6234 | ||
6235 | 2020-09-09 Tom Tromey <tromey@adacore.com> | |
6236 | ||
6237 | * ada-lang.c (remove_extra_symbols): Do not increment when | |
6238 | removing an element | |
6239 | ||
6240 | 2020-09-08 Tom Tromey <tromey@adacore.com> | |
6241 | ||
6242 | * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails. | |
6243 | ||
6244 | 2020-09-08 Tom Tromey <tromey@adacore.com> | |
6245 | ||
6246 | PR win32/25302: | |
6247 | * gdb_bfd.c (gdb_bfd_data): Add "st" parameter. | |
6248 | (gdb_bfd_init_data): New function. | |
6249 | (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data. | |
6250 | ||
6251 | 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
6252 | ||
6253 | * infrun.c (fetch_inferior_event): Use | |
6254 | `switch_to_target_no_thread` to switch the target. | |
6255 | ||
6256 | 2020-09-06 Tom Tromey <tom@tromey.com> | |
6257 | ||
6258 | * symfile.h (dwarf2_free_objfile): Don't declare. | |
6259 | ||
6260 | 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> | |
6261 | ||
6262 | * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions | |
6263 | to match 16 byte real/complex type generated by Flang compiler. | |
6264 | ||
6265 | 2020-09-03 Tom de Vries <tdevries@suse.de> | |
6266 | ||
6267 | PR breakpoint/26546 | |
6268 | * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as | |
6269 | LOC_OPTIMIZED_OUT instead of LOC_LABEL. | |
6270 | ||
6271 | 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca> | |
6272 | ||
6273 | * maint.c (index_digits): New function. | |
6274 | (struct maint_print_section_data): Remove. | |
6275 | (print_bfd_section_info): Remove print_data parameter, add arg | |
6276 | and index_digits. | |
6277 | (print_objfile_section_info): Likewise. | |
6278 | (print_bfd_section_info_maybe_relocated): Likewise (plus | |
6279 | objfile). | |
6280 | (maintenance_info_sections): Adjust calls. | |
6281 | ||
6282 | 2020-09-02 Tom Tromey <tromey@adacore.com> | |
6283 | ||
6284 | * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0 | |
6285 | for null pointers. | |
6286 | (ada_varobj_adjust_for_child_access): Special-case null pointers. | |
6287 | ||
6288 | 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca> | |
6289 | ||
6290 | * bcache.h (struct bcache) <insert>: Change type of `added` to | |
6291 | pointer to bool. | |
6292 | * bcache.c (bcache::insert): Likewise. | |
6293 | * gdbtypes.c (check_types_worklist): Adjust. | |
6294 | * psymtab.c (add_psymbol_to_bcache): Adjust. | |
6295 | ||
6296 | 2020-08-31 Kevin Buettner <kevinb@redhat.com> | |
6297 | ||
6298 | * corelow.c (unordered_set): Include. | |
6299 | (class core_target): Add field 'm_core_unavailable_mappings'. | |
6300 | (core_target::build_file_mappings): Print only one warning | |
6301 | per inaccessible file. Add unavailable/broken mappings | |
6302 | to m_core_unavailable_mappings. | |
6303 | (core_target::xfer_partial): Call... | |
6304 | (core_target::xfer_memory_via_mappings): New method. | |
6305 | ||
6306 | 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca> | |
6307 | ||
6308 | * dwarf2/read.c (struct field_info) <non_public_fields>: Change | |
6309 | type to bool. | |
6310 | ||
6311 | 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca> | |
6312 | ||
6313 | * dwarf2/read.c (struct field_info): Fix indentation. | |
6314 | ||
6315 | 2020-08-31 Simon Marchi <simon.marchi@efficios.com> | |
6316 | ||
6317 | * frame-unwind.h (frame_prev_register_ftype): Fix adjective | |
6318 | ordering in comment. | |
6319 | * frame.c (frame_id_eq): Fix indentation. | |
6320 | ||
6321 | 2020-08-31 Scott Linder <scott@scottlinder.com> | |
6322 | Simon Marchi <simon.marchi@efficios.com> | |
6323 | ||
6324 | * inline-frame.c (inline_frame_this_id): Remove assert that prevents | |
6325 | inline frame ids in outer frame. | |
6326 | ||
6327 | 2020-08-31 Simon Marchi <simon.marchi@efficios.com> | |
6328 | ||
6329 | * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New. | |
6330 | * frame.c (fprint_frame_id): Handle FID_STACK_OUTER. | |
6331 | (outer_frame_id): Use FID_STACK_OUTER instead of | |
6332 | FID_STACK_INVALID. | |
6333 | (frame_id_p): Don't check for outer_frame_id. | |
6334 | ||
6335 | 2020-08-31 Simon Marchi <simon.marchi@efficios.com> | |
6336 | ||
6337 | * frame-unwind.c (frame_unwind_got_optimized): Don't set | |
6338 | regnum/frame in value. Call allocate_value_lazy. | |
6339 | * frame.c (frame_unwind_register_value): Use | |
6340 | val_print_not_saved. | |
6341 | ||
6342 | 2020-08-31 Simon Marchi <simon.marchi@efficios.com> | |
6343 | ||
6344 | * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr. | |
6345 | ||
6346 | 2020-08-29 Pedro Alves <pedro@palves.net> | |
6347 | ||
6348 | * progspace.c (print_program_space): Use all_inferiors. Switch to | |
6349 | the inferior before calling target_pid_to_str. | |
6350 | ||
6351 | 2020-08-28 Tom Tromey <tom@tromey.com> | |
6352 | ||
6353 | * xcoffread.c (xcoff_end_psymtab): Update comment. | |
6354 | * dbxread.c (dbx_end_psymtab): Update comment. | |
6355 | ||
6356 | 2020-08-28 Tom de Vries <tdevries@suse.de> | |
6357 | ||
6358 | PR breakpoint/26544 | |
6359 | * breakpoint.c (parse_breakpoint_sals): Remove const from struct | |
6360 | event_location. | |
6361 | (create_breakpoint): Same. | |
6362 | (base_breakpoint_decode_location): Same. | |
6363 | (bkpt_create_sals_from_location): Same. | |
6364 | (bkpt_decode_location): Same. | |
6365 | (bkpt_probe_create_sals_from_location): Same. | |
6366 | (bkpt_probe_decode_location): Same. | |
6367 | (tracepoint_create_sals_from_location): Same. | |
6368 | (tracepoint_decode_location): Same. | |
6369 | (tracepoint_probe_decode_location): Same. | |
6370 | (strace_marker_create_sals_from_location): Same. | |
6371 | (strace_marker_decode_location): Same. | |
6372 | (create_sals_from_location_default): Same. | |
6373 | (decode_location_default): Same. | |
6374 | * breakpoint.h (struct breakpoint_ops): Same. | |
6375 | (create_breakpoint): Same. | |
6376 | * linespec.h (decode_line_full): Same. | |
6377 | * linespec.c (decode_line_full): Same. Throw error if | |
6378 | result.size () == 0. | |
6379 | ||
6380 | 2020-08-27 Pedro Alves <pedro@palves.net> | |
6381 | ||
6382 | PR gdb/26524 | |
6383 | * breakpoint.c (until_break_fsm) <location_breakpoint, | |
6384 | caller_breakpoint>: Delete fields. | |
6385 | <breakpoints>: New field. | |
6386 | <until_break_fsm>: Adjust to save a breakpoint vector instead of | |
6387 | two individual breakpoints. | |
6388 | (until_break_fsm::should_stop): Loop over breakpoints in the | |
6389 | breakpoint vector. | |
6390 | (until_break_fsm::clean_up): Adjust to clear the breakpoints | |
6391 | vector. | |
6392 | (until_break_command): Handle location expanding into multiple | |
6393 | sals. | |
6394 | ||
6395 | 2020-08-27 Pedro Alves <pedro@palves.net> | |
6396 | ||
6397 | PR gdb/26523 | |
6398 | * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider | |
6399 | bp_until breakpoints user-specified locations. Update intro | |
6400 | comment. | |
6401 | ||
6402 | 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca> | |
6403 | ||
6404 | * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range, | |
6405 | gdb_bfd_sections): New. | |
6406 | * maint.c (print_bfd_section_info): Change param type to | |
6407 | maint_print_section_data. | |
6408 | (print_objfile_section_info): Likewise. | |
6409 | (print_bfd_section_info_maybe_relocated): Likewise. | |
6410 | (maintenance_info_sections): Use gdb_bfd_sections. | |
6411 | ||
6412 | 2020-08-25 Shahab Vahedi <shahab@synopsys.com> | |
6413 | ||
6414 | * MAINTAINERS: Add ARC target and maintainer. | |
6415 | ||
6416 | 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com> | |
6417 | ||
6418 | * configure.tgt: ARC support for GNU/Linux. | |
6419 | * Makefile.in (ALL_TARGET_OBJS): Likewise. | |
6420 | * arc-linux-tdep.c: New file. | |
6421 | * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare. | |
6422 | * arc-tdep.c (arc_write_pc): Use it. | |
6423 | ||
6424 | 2020-08-25 Shahab Vahedi <shahab@synopsys.com> | |
6425 | ||
6426 | * arc-tdep.c (arc_check_for_hardware_loop): New. | |
6427 | * arc-tdep.h (gdbarch_tdep): New field has_hw_loops. | |
6428 | ||
6429 | 2020-08-25 Shahab Vahedi <shahab@synopsys.com> | |
6430 | ||
6431 | * arc-tdep.h: Include "gdbarch.h". | |
6432 | ||
6433 | 2020-08-25 Shahab Vahedi <shahab@synopsys.com> | |
6434 | ||
6435 | * arch/arc.h | |
6436 | (arc_gdbarch_features): New class to stir the selection of target XML. | |
6437 | (arc_create_target_description): Use FEATURES to choose XML target. | |
6438 | (arc_lookup_target_description): Use arc_create_target_description | |
6439 | to create _new_ target descriptions or return the already created | |
6440 | ones if the FEATURES is the same. | |
6441 | * arch/arc.c: Implementation of prototypes described above. | |
6442 | * gdb/arc-tdep.h (arc_regnum enum): Add more registers. | |
6443 | (arc_gdbarch_features_init): Initialize the FEATURES struct. | |
6444 | * arc-tdep.c (*_feature_name): Make feature names consistent. | |
6445 | (arc_register_feature): A new struct to hold information about | |
6446 | registers of a particular target/feature. | |
6447 | (arc_check_tdesc_feature): Check if XML provides registers in | |
6448 | compliance with ARC_REGISTER_FEATURE structs. | |
6449 | (arc_update_acc_reg_names): Add aliases for r58 and r59. | |
6450 | (determine_*_reg_feature_set): Which feature name to look for. | |
6451 | (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES. | |
6452 | (mach_type_to_arc_isa): Convert from a set of binutils machine types | |
6453 | to expected ISA enums to be used in arc_gdbarch_features structs. | |
6454 | * features/Makefile (FEATURE_XMLFILES): Add new files. | |
6455 | * gdb/features/arc/v1-aux.c: New file. | |
6456 | * gdb/features/arc/v1-aux.xml: Likewise. | |
6457 | * gdb/features/arc/v1-core.c: Likewise. | |
6458 | * gdb/features/arc/v1-core.xml: Likewise. | |
6459 | * gdb/features/arc/v2-aux.c: Likewise. | |
6460 | * gdb/features/arc/v2-aux.xml: Likewise. | |
6461 | * gdb/features/arc/v2-core.c: Likewise. | |
6462 | * gdb/features/arc/v2-core.xml: Likewise. | |
6463 | * NEWS (Changes since GDB 9): Announce obsolence of old feature names. | |
6464 | ||
6465 | 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com> | |
6466 | Andrew Burgess <andrew.burgess@embecosm.com> | |
6467 | ||
6468 | PR m2/26372 | |
6469 | * m2-exp.y (exp): Improve comment for non_empty_arglist case, add | |
6470 | an assert. Remove single element array indexing pattern as the | |
6471 | MULTI_SUBSCRIPT support will handle this case too. | |
6472 | ||
6473 | 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca> | |
6474 | ||
6475 | * value.h (valprint_check_validity): Move declaration from | |
6476 | here... | |
6477 | * valprint.h (valprint_check_validity): ... to here. | |
6478 | ||
6479 | 2020-08-24 Simon Marchi <simon.marchi@efficios.com> | |
6480 | ||
6481 | * debug.h: New file. | |
6482 | * debug.c (debug_prefixed_vprintf): New function. | |
6483 | * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf. | |
6484 | * linux-nat.c (linux_nat_debug_printf_1): Likewise. | |
6485 | ||
6486 | 2020-08-24 Simon Marchi <simon.marchi@efficios.com> | |
6487 | ||
6488 | * infrun.h (infrun_debug_printf_1): New function declaration. | |
6489 | (infrun_debug_printf): New macro. | |
6490 | * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf | |
6491 | throughout. | |
6492 | (infrun_debug_printf): New function. | |
6493 | * breakpoint.c (should_be_inserted): Use infrun_debug_printf. | |
6494 | (handle_jit_event): Likewise. | |
6495 | ||
6496 | 2020-08-21 Mark Wielaard <mark@klomp.org> | |
6497 | ||
6498 | * ada-lex.l: Extend register warnings diagnostics comment for g++. | |
6499 | ||
6500 | 2020-08-22 Simon Marchi <simon.marchi@efficios.com> | |
6501 | ||
6502 | * frame.c (enum class frame_id_status): New. | |
6503 | (struct frame_info) <this_id::p>: Change type to frame_id_status. | |
6504 | (fprintf_frame): Update. | |
6505 | (compute_frame_id): Set frame id status to "computing" on entry. | |
6506 | Set it back to "not_computed" on failure and to "computed" on | |
6507 | success. | |
6508 | (get_frame_id): Assert the frame id is not being computed. | |
6509 | (create_sentinel_frame): Use frame_id_status::COMPUTED. | |
6510 | (create_new_frame): Likewise. | |
6511 | (frame_cleanup_after_sniffer): Update assert. | |
6512 | ||
6513 | 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca> | |
6514 | ||
6515 | * regcache.c (pid_ptid_regcache_map): New type. | |
6516 | (target_ptid_regcache_map): Remove. | |
6517 | (target_pid_ptid_regcache_map): New type. | |
6518 | (regcaches): Change type to target_pid_ptid_regcache_map. | |
6519 | (get_thread_arch_aspace_regcache): Update. | |
6520 | (regcache_thread_ptid_changed): Update, handle pid-like ptid | |
6521 | case. | |
6522 | (regcaches_size): Update. | |
6523 | (regcache_count): Update. | |
6524 | (registers_changed_ptid_target_pid_test): New. | |
6525 | (_initialize_regcache): Register new test. | |
6526 | ||
6527 | 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca> | |
6528 | ||
6529 | * regcache.c (regcache_count): New. | |
6530 | (struct regcache_test_data): New. | |
6531 | (regcache_test_data_up): New. | |
6532 | (populate_regcaches_for_test): New. | |
6533 | (regcaches_test): Remove. | |
6534 | (get_thread_arch_aspace_regcache_test): New. | |
6535 | (registers_changed_ptid_all_test): New. | |
6536 | (registers_changed_ptid_target_test): New. | |
6537 | (registers_changed_ptid_target_ptid_test): New. | |
6538 | (regcache_thread_ptid_changed): Remove regcache_count lambda. | |
6539 | (_initialize_regcache): Register new tests. | |
6540 | ||
6541 | 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca> | |
6542 | ||
6543 | * regcache.c (test_get_thread_arch_aspace_regcache): Rename to... | |
6544 | (get_thread_arch_aspace_regcache_and_check): ... this. Remove | |
6545 | gdbarch and aspace parameter. Use current inferior's aspace. | |
6546 | Validate regcache's arch value. | |
6547 | (regcaches_test): Update. | |
6548 | ||
6549 | 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca> | |
6550 | ||
6551 | * regcache.c (regcaches_test): Call registers_changed. | |
6552 | ||
6553 | 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
6554 | ||
6555 | * infrun.c (process_event_stop_test): Fix typo "breapoint". | |
6556 | ||
6557 | 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> | |
6558 | ||
6559 | * amd64-tdep.c (amd64_skip_prologue): Using symbol table | |
6560 | to find the end of prologue for flang compiled binaries. | |
6561 | * arm-tdep.c (arm_skip_prologue): Likewise. | |
6562 | * i386-tdep.c (i386_skip_prologue): Likewise. | |
6563 | * producer.c (producer_is_llvm): New function. | |
6564 | (producer_parsing_tests): Added new tests for clang/flang. | |
6565 | * producer.h (producer_is_llvm): New declaration. | |
6566 | ||
6567 | 2020-08-18 Simon Marchi <simon.marchi@efficios.com> | |
6568 | ||
6569 | * linux-nat.c (linux_nat_debug_printf): New function. | |
6570 | (linux_nat_debug_printf_1): New macro. Use throughout the file. | |
6571 | ||
6572 | 2020-08-18 Aaron Merey <amerey@redhat.com> | |
6573 | ||
6574 | * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables. | |
6575 | (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS. | |
6576 | (CLIBS): Add DEBUGINFOD_LIBS. | |
6577 | ||
6578 | 2020-08-17 Sergei Trofimovich <siarheit@google.com> | |
6579 | ||
6580 | * ia64-linux-nat.c: Include "gdbarch.h" to declare used | |
6581 | 'gdbarch_num_regs'. | |
6582 | ||
6583 | 2020-08-17 Tom Tromey <tromey@adacore.com> | |
6584 | ||
6585 | * ada-varobj.c (ada_varobj_decode_var): Handle case where | |
6586 | ada_get_decoded_value returns NULL. | |
6587 | ||
6588 | 2020-08-17 Tom Tromey <tromey@adacore.com> | |
6589 | ||
6590 | * python/py-inferior.c (infpy_search_memory): Use | |
6591 | gdb_py_object_from_ulongest. | |
6592 | * python/py-infevents.c (create_inferior_call_event_object) | |
6593 | (create_memory_changed_event_object): Use | |
6594 | gdb_py_object_from_ulongest. | |
6595 | * python/py-linetable.c (ltpy_entry_get_pc): Use | |
6596 | gdb_py_object_from_ulongest. | |
6597 | ||
6598 | 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca> | |
6599 | ||
6600 | * loc.c (class symbol_needs_eval_context): Fix indentation. | |
6601 | ||
6602 | 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca> | |
6603 | ||
6604 | * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use | |
6605 | bool. | |
6606 | ||
6607 | 2020-08-17 Tom de Vries <tdevries@suse.de> | |
6608 | ||
6609 | PR gdb/26393 | |
6610 | * gdbtypes.c (dump_dynamic_prop): New function. | |
6611 | (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE. | |
6612 | ||
6613 | 2020-08-15 Tom de Vries <tdevries@suse.de> | |
6614 | ||
6615 | PR backtrace/26390 | |
6616 | * stack.c (print_frame_args): Temporarily set the selected | |
6617 | frame to FRAME while printing the frame's arguments. | |
6618 | ||
6619 | 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> | |
6620 | ||
6621 | PR breakpoints/26385 | |
6622 | * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume): | |
6623 | Always clear watchpoint with PTRACE_SET_DEBUGREG. | |
6624 | ||
6625 | 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> | |
6626 | ||
6627 | * ppc-linux-nat.c (ppc_linux_dreg_interface::detect) | |
6628 | (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0 | |
6629 | and >= to check return value instead of == -1 and != -1. | |
6630 | ||
6631 | 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca> | |
6632 | ||
6633 | * utils.h (class gdb_argv) <as_array_view>: New method. | |
6634 | * utils.c (gdb_argv_as_array_view_test): New. | |
6635 | (_initialize_utils): Register selftest. | |
6636 | * maint.c (maintenance_selftest): Use the new method. | |
6637 | ||
6638 | 2020-08-13 Kamil Rytarowski <n54@gmx.com> | |
6639 | ||
6640 | * target.h (supports_dumpcore, dumpcore): New | |
6641 | function declarations. | |
6642 | * target.c (supports_dumpcore, dumpcore): New | |
6643 | functions. | |
6644 | * target-delegates.c: Rebuild. | |
6645 | * gcore.c (gcore_command): Use target_supports_dumpcore () | |
6646 | and target_dumpcore (). | |
6647 | ||
6648 | 2020-08-13 Aaron Merey <amerey@redhat.com> | |
6649 | ||
6650 | * debuginfod-support.c: Replace global variables with user_data. | |
6651 | ||
6652 | 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca> | |
6653 | ||
6654 | * maint.c (maintenance_selftest): Split args and pass array_view | |
6655 | to run_tests. | |
6656 | ||
6657 | 2020-08-12 Luis Machado <luis.machado@linaro.org> | |
6658 | ||
6659 | * value.c (check_type_length_before_alloc): Use ULONGEST to store a | |
6660 | type's length. | |
6661 | Use %s and pulongest to print the length. | |
6662 | ||
6663 | 2020-08-12 Pedro Alves <palves@redhat.com> | |
6664 | ||
6665 | * NEWS: Move "Multi-target debugging support" item to the | |
6666 | "Changes since GDB 9" section. | |
6667 | ||
6668 | 2020-08-12 Pedro Alves <palves@redhat.com> | |
6669 | ||
6670 | PR gdb/26336 | |
6671 | * progspace.c (program_space::remove_objfile): Invalidate the | |
6672 | frame cache. | |
6673 | ||
6674 | 2020-08-11 Tom de Vries <tdevries@suse.de> | |
6675 | ||
6676 | * MAINTAINERS: Mark ms1 as deleted. | |
6677 | ||
6678 | 2020-08-10 Luis Machado <luis.machado@linaro.org> | |
6679 | ||
6680 | PR gdb/26310 | |
6681 | ||
6682 | * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and | |
6683 | act accordingly. | |
6684 | (aarch64_analyze_prologue_test): Add more unit tests to exercise | |
6685 | movz/str/stur/stp skipping behavior. | |
6686 | ||
6687 | 2020-08-10 Luis Machado <luis.machado@linaro.org> | |
6688 | ||
6689 | * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use | |
6690 | struct user_sve_header instead of struct sve_context. | |
6691 | ||
6692 | 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca> | |
6693 | ||
6694 | * read.h (dwarf2_fetch_die_loc_sect_off, | |
6695 | dwarf2_fetch_die_loc_cu_off): Replace function pointer + | |
6696 | `void *` parameter with function_view. | |
6697 | * read.c (dwarf2_fetch_die_loc_sect_off, | |
6698 | dwarf2_fetch_die_loc_cu_off): Likewise. | |
6699 | * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove. | |
6700 | (per_cu_dwarf_call): Adjust. | |
6701 | (get_frame_address_in_block_wrapper): Remove. | |
6702 | (indirect_synthetic_pointer): Adjust. | |
6703 | (get_ax_pc): Remove. | |
6704 | (dwarf2_compile_expr_to_ax): Adjust. | |
6705 | ||
6706 | 2020-08-08 Tom de Vries <tdevries@suse.de> | |
6707 | ||
6708 | PR build/26344 | |
6709 | * arch/riscv.c (riscv_lookup_target_description): Use an explicit | |
6710 | constructor. | |
6711 | * regcache.c (get_thread_arch_aspace_regcache): Same. | |
6712 | ||
6713 | 2020-08-07 Tom Tromey <tromey@adacore.com> | |
6714 | ||
6715 | * ravenscar-thread.c | |
6716 | (ravenscar_thread_target::set_base_thread_from_ravenscar_task): | |
6717 | New method. | |
6718 | (ravenscar_thread_target::wait): Check | |
6719 | runtime_initialized. | |
6720 | (ravenscar_thread_target::prepare_to_store) | |
6721 | (ravenscar_thread_target::stopped_by_sw_breakpoint) | |
6722 | (ravenscar_thread_target::stopped_by_hw_breakpoint) | |
6723 | (ravenscar_thread_target::stopped_by_watchpoint) | |
6724 | (ravenscar_thread_target::stopped_data_address) | |
6725 | (ravenscar_thread_target::core_of_thread): Use | |
6726 | scoped_restore_current_thread and | |
6727 | set_base_thread_from_ravenscar_task. | |
6728 | ||
6729 | 2020-08-07 Tom Tromey <tromey@adacore.com> | |
6730 | ||
6731 | * ravenscar-thread.c (update_thread_list): Set inferior_ptid. | |
6732 | ||
6733 | 2020-08-07 Tom Tromey <tromey@adacore.com> | |
6734 | ||
6735 | * ravenscar-thread.c (ravenscar_thread_target::wait): Call | |
6736 | update_inferior_ptid before update_thread_list. | |
6737 | (temporarily_change_regcache_ptid): New class. | |
6738 | (ravenscar_thread_target::fetch_registers) | |
6739 | (ravenscar_thread_target::store_registers) | |
6740 | (ravenscar_thread_target::prepare_to_store): Use base thread when | |
6741 | forwarding operation. | |
6742 | ||
6743 | 2020-08-07 Tom Tromey <tromey@adacore.com> | |
6744 | ||
6745 | * ravenscar-thread.c (ravenscar_thread_target::resume): Handle | |
6746 | "is_pid" case. | |
6747 | ||
6748 | 2020-08-07 Tom Tromey <tromey@adacore.com> | |
6749 | ||
6750 | * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread): | |
6751 | New methods. | |
6752 | (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map | |
6753 | first. | |
6754 | (ravenscar_thread_target::add_thread): Rename from | |
6755 | ravenscar_add_thread. | |
6756 | (ravenscar_thread_target::update_thread_list): Use a lambda. | |
6757 | (ravenscar_thread_target::xfer_partial): New method. | |
6758 | ||
6759 | 2020-08-07 Tom Tromey <tromey@adacore.com> | |
6760 | ||
6761 | * ada-lang.h (ada_task_list_iterator_ftype): Now a | |
6762 | gdb::function_view. | |
6763 | (iterate_over_live_ada_tasks): Change type of argument. | |
6764 | * ada-tasks.c (iterate_over_live_ada_tasks): Change type | |
6765 | of argument. | |
6766 | ||
6767 | 2020-08-07 Tom Tromey <tromey@adacore.com> | |
6768 | ||
6769 | * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>: | |
6770 | Remove. | |
6771 | (ravenscar_thread_target::extra_thread_info): Remove. | |
6772 | (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result; | |
6773 | defer to target beneath for non-Ravenscar threads. | |
6774 | ||
6775 | 2020-08-07 Tom Tromey <tromey@adacore.com> | |
6776 | ||
6777 | * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu, | |
6778 | get_base_thread_from_ravenscar_task>: Now methods. | |
6779 | <m_cpu_map>: New member. | |
6780 | (ravenscar_thread_target::get_thread_base_cpu): Rename from | |
6781 | ravenscar_get_thread_base_cpu. Check m_cpu_map. | |
6782 | (ravenscar_thread_target::task_is_currently_active): Update. | |
6783 | (ravenscar_thread_target::get_base_thread_from_ravenscar_task): | |
6784 | Now a method. | |
6785 | (ravenscar_thread_target::add_active_thread): Put initial thread | |
6786 | into the m_cpu_map. | |
6787 | ||
6788 | 2020-08-07 Tom Tromey <tromey@adacore.com> | |
6789 | ||
6790 | * ravenscar-thread.c (ravenscar_thread_target::wait): Return | |
6791 | event_ptid. | |
6792 | ||
6793 | 2020-08-07 Tom Tromey <tromey@adacore.com> | |
6794 | ||
6795 | * ravenscar-thread.c (ravenscar_thread_target::wait): Check | |
6796 | runtime_initialized. | |
6797 | ||
6798 | 2020-08-07 Tom Tromey <tromey@adacore.com> | |
6799 | ||
6800 | * ravenscar-thread.c (ravenscar_thread_target): Don't call | |
6801 | add_active_thread. | |
6802 | (ravenscar_thread_target::add_active_thread): Now public. | |
6803 | (ravenscar_inferior_created): Call add_active_thread after pushing | |
6804 | the target. | |
6805 | ||
6806 | 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca> | |
6807 | ||
6808 | * regcache.c (ptid_regcache_map): New type. | |
6809 | (target_ptid_regcache_map): New type. | |
6810 | (regcaches): Change type to target_ptid_regcache_map. | |
6811 | (get_thread_arch_aspace_regcache): Update to regcaches' new | |
6812 | type. | |
6813 | (regcache_thread_ptid_changed): Likewise. | |
6814 | (registers_changed_ptid): Likewise. | |
6815 | (regcaches_size): Likewise. | |
6816 | (regcaches_test): Update. | |
6817 | (regcache_thread_ptid_changed): Update. | |
6818 | * regcache.h (regcache_up): New type. | |
6819 | * gdbsupport/ptid.h (hash_ptid): New struct. | |
6820 | ||
6821 | 2020-08-07 Simon Marchi <simon.marchi@efficios.com> | |
6822 | ||
6823 | * observable.h (thread_ptid_changed): Add parameter | |
6824 | `process_stratum_target *`. | |
6825 | * infrun.c (infrun_thread_ptid_changed): Add parameter | |
6826 | `process_stratum_target *` and use it. | |
6827 | (selftests): New namespace. | |
6828 | (infrun_thread_ptid_changed): New function. | |
6829 | (_initialize_infrun): Register selftest. | |
6830 | * regcache.c (regcache_thread_ptid_changed): Add parameter | |
6831 | `process_stratum_target *` and use it. | |
6832 | (regcache_thread_ptid_changed): New function. | |
6833 | (_initialize_regcache): Register selftest. | |
6834 | * thread.c (thread_change_ptid): Pass target to | |
6835 | thread_ptid_changed observable. | |
6836 | ||
6837 | 2020-08-06 Caroline Tice <cmtice@google.com> | |
6838 | ||
6839 | * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field. | |
6840 | (struct dwp_sections): Update field comments. Add loclists and | |
6841 | rnglists fields. | |
6842 | (struct virtual_v2_dwo_sections): Rename struct to | |
6843 | 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add | |
6844 | size & offset fields for loclists and rnglists. | |
6845 | (struct dwp_hash_table): Add a 'v5' struct field to the union section. | |
6846 | (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for | |
6847 | skipping dummy type units. | |
6848 | (create_dwp_hash_table): Update the large comment above the function to | |
6849 | discuss Version 5 DWP files as well, with references. Update all the | |
6850 | version checks in the function to check for version 5 as well. Add new | |
6851 | section at the end to create dwp hash table for version 5. | |
6852 | (create_dwp_v2_section): Rename function to | |
6853 | 'create_dwp_v2_or_v5_section'. Update function comment appropriately. | |
6854 | Add V5 to error message text. | |
6855 | (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section | |
6856 | into calls to create_dwp_v2_or_v5_section. | |
6857 | (create_dwo_unit_in_dwp_v5): New function. | |
6858 | (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly | |
6859 | check for version2; add else clause to handle version 5. | |
6860 | (open_and_init_dwo_file): Add code to check dwarf version & only call | |
6861 | create_debug_types_hash_table (with sections.types) if version is not 5; | |
6862 | else call create_debug_type_hash_table, with sections.info. | |
6863 | (dwarf2_locate_v2_dwp_sections): Update function comment to mention | |
6864 | version 5. | |
6865 | (dwarf2_locate_v5_dwp_sections): New function. | |
6866 | (open_and_init_dwp_file): Add else-if clause for version 5 to call | |
6867 | bfd_map_over_sections with dwarf2_locate_v5_dwp_sections. | |
6868 | ||
6869 | 2020-08-06 Simon Marchi <simon.marchi@efficios.com> | |
6870 | ||
6871 | * regcache.h (class regcache): Remove friend | |
6872 | registers_changed_ptid. | |
6873 | <regcache_thread_ptid_changed>: Remove. | |
6874 | <regcaches>: Remove. | |
6875 | * regcache.c (regcache::regcaches): Rename to... | |
6876 | (regcaches): ... this. Make static. | |
6877 | (get_thread_arch_aspace_regcache): Update. | |
6878 | (regcache::regcache_thread_ptid_changed): Rename to... | |
6879 | (regcache_thread_ptid_changed): ... this. Update. | |
6880 | (class regcache_access): Remove. | |
6881 | (regcaches_test): Update. | |
6882 | (_initialize_regcache): Update. | |
6883 | * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include | |
6884 | <forward_list>. | |
6885 | ||
6886 | 2020-08-06 Simon Marchi <simon.marchi@efficios.com> | |
6887 | ||
6888 | * regcache.h (class regcache) <current_regcache>: Rename to... | |
6889 | <regcaches>: ... this. Move doc here. | |
6890 | * regcache.c (regcache::current_regcache) Rename to... | |
6891 | (regcache::regcaches): ... this. Move doc to header. | |
6892 | (get_thread_arch_aspace_regcache): Update. | |
6893 | (regcache::regcache_thread_ptid_changed): Update. | |
6894 | (registers_changed_ptid): Update. | |
6895 | (class regcache_access) <current_regcache_size>: Rename to... | |
6896 | <regcaches_size>: ... this. | |
6897 | (current_regcache_test): Rename to... | |
6898 | (regcaches_test): ... this. | |
6899 | (_initialize_regcache): Update. | |
6900 | ||
6901 | 2020-08-06 Victor Collod <vcollod@nvidia.com> | |
6902 | ||
6903 | * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment. | |
6904 | ||
6905 | 2020-08-05 Kevin Buettner <kevinb@redhat.com> | |
6906 | ||
6907 | * corelow.c (core_target::build_file_mappings): Don't output | |
6908 | null pathname in warning. | |
6909 | ||
6910 | 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca> | |
6911 | ||
6912 | * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp, | |
6913 | gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp, | |
6914 | gdb.dwarf2/dw2-single-line-discriminators.exp, | |
6915 | dw2-undefined-ret-addr.exp: Pass nopie to compilation options. | |
6916 | ||
6917 | 2020-08-05 Tom Tromey <tromey@adacore.com> | |
6918 | ||
6919 | PR rust/26197: | |
6920 | * dwarf2/read.c (alloc_rust_variant): Handle univariant case. | |
6921 | (quirk_rust_enum): Call alloc_rust_variant for univariant case. | |
6922 | Fix off-by-one and type size errors in ordinary case. | |
6923 | ||
6924 | 2020-08-05 Tom de Vries <tdevries@suse.de> | |
6925 | ||
6926 | * gdbtypes.c (type_not_allocated, type_not_associated): Use | |
6927 | "prop->const_val () == 0" instead of "prop->const_val () != 0". | |
6928 | ||
6929 | 2020-08-04 Simon Marchi <simon.marchi@efficios.com> | |
6930 | ||
6931 | * frame.h (frame_id_p): Return bool. | |
6932 | (frame_id_artificial_p): Return bool. | |
6933 | (frame_id_eq): Return bool. | |
6934 | (has_stack_frames): Return bool. | |
6935 | (get_selected_frame): Fix typo in comment. | |
6936 | (get_frame_pc_if_available): Return bool. | |
6937 | (get_frame_address_in_block_if_available): Return bool. | |
6938 | (get_frame_func_if_available): Return bool. | |
6939 | (read_frame_register_unsigned): Return bool. | |
6940 | (get_frame_register_bytes): Return bool. | |
6941 | (safe_frame_unwind_memory): Return bool. | |
6942 | (deprecated_frame_register_read): Return bool. | |
6943 | (frame_unwinder_is): Return bool. | |
6944 | * frame.c (struct frame_info) <prev_arch::p>: Change type to | |
6945 | bool. | |
6946 | <this_id::p>: Likewise. | |
6947 | <prev_p>: Likewise. | |
6948 | (frame_stash_add): Return bool. | |
6949 | (get_frame_id): Use bool. | |
6950 | (frame_id_build_special) Use bool. | |
6951 | (frame_id_build_unavailable_stack): Use bool. | |
6952 | (frame_id_build): Use bool. | |
6953 | (frame_id_p): Return bool, use true/false instead of 1/0. | |
6954 | (frame_id_artificial_p): Likewise. | |
6955 | (frame_id_eq): Likewise. | |
6956 | (frame_id_inner): Likewise. | |
6957 | (get_frame_func_if_available): Likewise. | |
6958 | (read_frame_register_unsigned): Likewise. | |
6959 | (deprecated_frame_register_read): Likewise. | |
6960 | (get_frame_register_bytes): Likewise. | |
6961 | (has_stack_frames): Likewise. | |
6962 | (inside_main_func): Likewise. | |
6963 | (inside_entry_func): Likewise. | |
6964 | (get_frame_pc_if_available): Likewise. | |
6965 | (get_frame_address_in_block_if_available): Likewise. | |
6966 | (frame_unwinder_is): Likewise. | |
6967 | (safe_frame_unwind_memory): Likewise. | |
6968 | (frame_unwind_arch): Likewise. | |
6969 | ||
6970 | 2020-08-04 Simon Marchi <simon.marchi@efficios.com> | |
6971 | ||
6972 | * frame.c (frame_info) <prev_func> <p>: Rename to status, change | |
6973 | type to cached_copy_status. | |
6974 | (fprintf_frame): Adjust. | |
6975 | (get_frame_func_if_available): Adjust. | |
6976 | (frame_cleanup_after_sniffer): Adjust. | |
6977 | ||
6978 | 2020-08-04 Mark Wielaard <mark@klomp.org> | |
6979 | ||
6980 | * MAINTAINERS (Write After Approval): Update email address. | |
6981 | ||
6982 | 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca> | |
6983 | ||
6984 | * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with | |
6985 | dynamic_prop::const_val. | |
6986 | ||
6987 | 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca> | |
6988 | ||
6989 | * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with | |
6990 | dynamic_prop::kind. | |
6991 | ||
6992 | 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca> | |
6993 | ||
6994 | * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove. | |
6995 | ||
6996 | 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com> | |
6997 | ||
6998 | * configure.tgt: Set gdb_sim for bpf-*-* targets. | |
6999 | ||
7000 | 2020-08-04 Weimin Pan <weimin.pan@oracle.com> | |
7001 | Jose E. Marchesi <jose.marchesi@oracle.com> | |
7002 | ||
7003 | * configure.tgt: Add entry for bpf-*-*. | |
7004 | * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o | |
7005 | (ALLDEPFILES): Add bpf-tdep.c. | |
7006 | * bpf-tdep.c: New file. | |
7007 | * MAINTAINERS: Add bpf target and maintainer. | |
7008 | * NEWS: Mention the support for the new target. | |
7009 | ||
7010 | 2020-08-04 Tom de Vries <tdevries@suse.de> | |
7011 | ||
7012 | PR symtab/23270 | |
7013 | * dwarf2/read.c (find_partial_die): Change internal error into Dwarf | |
7014 | Error. | |
7015 | ||
7016 | 2020-08-03 John Baldwin <jhb@FreeBSD.org> | |
7017 | ||
7018 | * syscalls/freebsd.xml: Regenerate. | |
7019 | ||
7020 | 2020-08-03 John Baldwin <jhb@FreeBSD.org> | |
7021 | ||
7022 | * syscalls/update-freebsd.sh: Fix usage and year range. | |
7023 | ||
7024 | 2020-08-03 Tom de Vries <tdevries@suse.de> | |
7025 | ||
7026 | PR symtab/26333 | |
7027 | * dwarf2/read.c (dwarf_decode_lines_1): Ignore | |
7028 | DW_LNE_lo_user/DW_LNE_hi_user range. | |
7029 | ||
7030 | 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca> | |
7031 | ||
7032 | PR ada/26318 | |
7033 | * ada-lang.c (ada_modulus): Return 0 if property is not of const | |
7034 | kind. | |
7035 | ||
7036 | 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
7037 | ||
7038 | * breakpoint.c (set_breakpoint_condition): Do minor refactoring. | |
7039 | ||
7040 | 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
7041 | ||
7042 | * breakpoint.c (set_breakpoint_condition): Update the condition | |
7043 | expressions after checking that the input condition string parses | |
7044 | successfully and does not contain junk at the end. | |
7045 | ||
7046 | 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
7047 | ||
7048 | * breakpoint.c (set_breakpoint_condition): Update the | |
7049 | condition string after parsing the new condition successfully. | |
7050 | ||
7051 | 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
7052 | ||
7053 | * proc-api.c (_STRUCTURED_PROC): Don't define. | |
7054 | * proc-events.c: Likewise. | |
7055 | * proc-flags.c: Likewise. | |
7056 | * proc-why.c: Likewise. | |
7057 | * procfs.c: Likewise. | |
7058 | ||
7059 | * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS. | |
7060 | * configure, config.in: Regenerate. | |
7061 | ||
7062 | 2020-07-30 Tom de Vries <tdevries@suse.de> | |
7063 | ||
7064 | PR build/26320 | |
7065 | * ui-style.h (struct ui_file_style::color): Wrap m_value and | |
7066 | m_red/m_green/m_blue in a union. | |
7067 | ||
7068 | 2020-07-29 Tom de Vries <tdevries@suse.de> | |
7069 | ||
7070 | PR tdep/26280 | |
7071 | * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized. | |
7072 | ||
7073 | 2020-07-28 Tom Tromey <tromey@adacore.com> | |
7074 | ||
7075 | PR symtab/26270: | |
7076 | * symtab.h (find_pc_partial_function_sym): Declare. | |
7077 | * cli/cli-cmds.c (disassemble_command): Use | |
7078 | find_pc_partial_function_sym. Check asm_demangle. | |
7079 | * blockframe.c (cache_pc_function_sym): New global. | |
7080 | (cache_pc_function_name): Remove. | |
7081 | (clear_pc_function_cache): Update. | |
7082 | (find_pc_partial_function_sym): New function, from | |
7083 | find_pc_partial_function. | |
7084 | (find_pc_partial_function): Rewrite using | |
7085 | find_pc_partial_function_sym. | |
7086 | ||
7087 | 2020-07-28 Tom Tromey <tromey@adacore.com> | |
7088 | ||
7089 | * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble" | |
7090 | help. Add usage. | |
7091 | ||
7092 | 2020-07-28 Tom Tromey <tromey@adacore.com> | |
7093 | ||
7094 | * dwarf2/expr.c (dwarf_expr_context::execute_stack_op) | |
7095 | <DW_OP_GNU_variable_value>: Cast to address type. | |
7096 | ||
7097 | 2020-07-28 Kamil Rytarowski <n54@gmx.com> | |
7098 | ||
7099 | * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration. | |
7100 | * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function. | |
7101 | * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data) | |
7102 | (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data) | |
7103 | (nbsd_get_siginfo_type): New. | |
7104 | (nbsd_init_abi): Install gdbarch "get_siginfo_type" method. | |
7105 | (_initialize_nbsd_tdep): New. | |
7106 | ||
7107 | 2020-07-28 H.J. Lu <hongjiu.lu@intel.com> | |
7108 | ||
7109 | PR binutils/26301 | |
7110 | * configure: Regenerated. | |
7111 | ||
7112 | 2020-07-28 H.J. Lu <hongjiu.lu@intel.com> | |
7113 | ||
7114 | PR binutils/26301 | |
7115 | * configure: Regenerated. | |
7116 | ||
7117 | 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com> | |
7118 | ||
7119 | * python/py-frame.c: Remove 'user-regs.h' include. | |
7120 | (frapy_read_register): Rewrite to make use of | |
7121 | gdbpy_parse_register_id. | |
7122 | * python/py-registers.c (gdbpy_parse_register_id): New function, | |
7123 | moved here from python/py-unwind.c. Updated the return type, and | |
7124 | also accepts register descriptor objects. | |
7125 | * python/py-unwind.c: Remove 'user-regs.h' include. | |
7126 | (pyuw_parse_register_id): Moved to python/py-registers.c. | |
7127 | (unwind_infopy_add_saved_register): Update to use | |
7128 | gdbpy_parse_register_id. | |
7129 | (pending_framepy_read_register): Likewise. | |
7130 | * python/python-internal.h (gdbpy_parse_register_id): Declare. | |
7131 | ||
7132 | 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com> | |
7133 | ||
7134 | * python/py-registers.c: Add 'user-regs.h' include. | |
7135 | (register_descriptor_iter_find): New function. | |
7136 | (register_descriptor_iterator_object_methods): New static global | |
7137 | methods array. | |
7138 | (register_descriptor_iterator_object_type): Add pointer to methods | |
7139 | array. | |
7140 | ||
7141 | 2020-07-27 John Baldwin <jhb@FreeBSD.org> | |
7142 | ||
7143 | * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO | |
7144 | for all architectures on FreeBSD 11.3 and later. | |
7145 | ||
7146 | 2020-07-27 Tom Tromey <tromey@adacore.com> | |
7147 | ||
7148 | * gcore.h (load_corefile): Don't declare. | |
7149 | ||
7150 | 2020-07-27 Tom de Vries <tdevries@suse.de> | |
7151 | ||
7152 | * configure.ac: Fix sys/sockets.h -> sys/socket.h typo. | |
7153 | * config.in: Regenerate. | |
7154 | * configure: Regenerate. | |
7155 | ||
7156 | 2020-07-26 Eli Zaretskii <eliz@gnu.org> | |
7157 | ||
7158 | * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and | |
7159 | ws2tcpip.h. When checking whether socklen_t type is defined, use | |
7160 | ws2tcpip.h if it is available and sys/socket.h isn't. | |
7161 | * configure: Regenerate. | |
7162 | * config.in: Regenerate. | |
7163 | ||
7164 | 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com> | |
7165 | ||
7166 | PR fortran/23051 | |
7167 | PR fortran/26139 | |
7168 | * valops.c (value_ind): Pass address to | |
7169 | readjust_indirect_value_type. | |
7170 | * value.c (readjust_indirect_value_type): Make parameter | |
7171 | non-const, and add extra address parameter. Resolve original type | |
7172 | before using it. | |
7173 | * value.h (readjust_indirect_value_type): Update function | |
7174 | signature and comment. | |
7175 | ||
7176 | 2020-07-25 Tom de Vries <tdevries@suse.de> | |
7177 | ||
7178 | PR symtab/26243 | |
7179 | * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line | |
7180 | entries. | |
7181 | ||
7182 | 2020-07-24 Aaron Merey <amerey@redhat.com> | |
7183 | ||
7184 | * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS. | |
7185 | * configure: Rebuild. | |
7186 | ||
7187 | 2020-07-23 Kevin Buettner <kevinb@redhat.com> | |
7188 | ||
7189 | PR corefiles/26294 | |
7190 | * corelow.c (_initialize_corelow): Add period to help text | |
7191 | for "maintenance print core-file-backed-mappings". | |
7192 | ||
7193 | 2020-07-23 Pedro Alves <pedro@palves.net> | |
7194 | ||
7195 | * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't | |
7196 | touch THIS_CACHE/THIS_FRAME if the frame cache was cleared | |
7197 | meanwhile. | |
7198 | * frame.c (frame_cache_generation, get_frame_cache_generation): | |
7199 | New. | |
7200 | (reinit_frame_cache): Increment FRAME_CACHE_GENERATION. | |
7201 | (get_prev_frame_if_no_cycle): On exception, don't touch | |
7202 | PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile. | |
7203 | * frame.h (get_frame_cache_generation): Declare. | |
7204 | ||
7205 | 2020-07-23 Tom de Vries <tdevries@suse.de> | |
7206 | ||
7207 | PR tui/26282 | |
7208 | * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows): | |
7209 | New default constructor. | |
7210 | ||
7211 | 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
7212 | ||
7213 | * disasm.c (do_mixed_source_and_assembly_deprecated): Don't | |
7214 | exclude non-statement entries. | |
7215 | ||
7216 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> | |
7217 | ||
7218 | * NEWS (New commands): Mention new command | |
7219 | "maintenance print core-file-backed-mappings". | |
7220 | ||
7221 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> | |
7222 | ||
7223 | * corelow.c (gdbcmd.h): Include. | |
7224 | (core_target::info_proc_mappings): New method. | |
7225 | (get_current_core_target): New function. | |
7226 | (maintenance_print_core_file_backed_mappings): New function. | |
7227 | (_initialize_corelow): Add core-file-backed-mappings to | |
7228 | "maint print" commands. | |
7229 | ||
7230 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> | |
7231 | ||
7232 | * linux-tdep.c (dump_note_entry_p): New function. | |
7233 | (linux_dump_mapping_p_ftype): New typedef. | |
7234 | (linux_find_memory_regions_full): Add new parameter, | |
7235 | should_dump_mapping_p. | |
7236 | (linux_find_memory_regions): Adjust call to | |
7237 | linux_find_memory_regions_full. | |
7238 | (linux_make_mappings_core_file_notes): Use dump_note_entry_p in | |
7239 | call to linux_find_memory_regions_full. | |
7240 | ||
7241 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> | |
7242 | ||
7243 | * corelow.c (solist.h, unordered_map): Include. | |
7244 | (class core_target): Add field m_core_file_mappings and | |
7245 | method build_file_mappings. | |
7246 | (core_target::core_target): Call build_file_mappings. | |
7247 | (core_target::~core_target): Free memory associated with | |
7248 | m_core_file_mappings. | |
7249 | (core_target::build_file_mappings): New method. | |
7250 | (core_target::xfer_partial): Use m_core_file_mappings | |
7251 | for memory transfers. | |
7252 | * linux-tdep.c (linux_read_core_file_mappings): New | |
7253 | function. | |
7254 | (linux_core_info_proc_mappings): Rewrite to use | |
7255 | linux_read_core_file_mappings. | |
7256 | (linux_init_abi): Register linux_read_core_file_mappings. | |
7257 | ||
7258 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> | |
7259 | ||
7260 | * arch-utils.c (default_read_core_file_mappings): New function. | |
7261 | * arch-utils.c (default_read_core_file_mappings): Declare. | |
7262 | * gdbarch.sh (read_core_file_mappings): New gdbarch method. | |
7263 | * gdbarch.h, gdbarch.c: Regenerate. | |
7264 | ||
7265 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> | |
7266 | ||
7267 | PR corefiles/25631 | |
7268 | * corelow.c (core_target:xfer_partial): Revise | |
7269 | TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS | |
7270 | case after first checking the stratum beneath the core | |
7271 | target. | |
7272 | (has_all_memory): Return true. | |
7273 | * target.c (raw_memory_xfer_partial): Revise comment | |
7274 | regarding use of has_all_memory. | |
7275 | ||
7276 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> | |
7277 | ||
7278 | * exec.h (section_table_xfer_memory): Revise declaration, | |
7279 | replacing section name parameter with an optional callback | |
7280 | predicate. | |
7281 | * exec.c (section_table_xfer_memory): Likewise. | |
7282 | * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers | |
7283 | of section_table_xfer_memory. | |
7284 | ||
7285 | 2020-07-22 Tom Tromey <tromey@adacore.com> | |
7286 | ||
7287 | * mi/mi-cmd-stack.c (list_args_or_locals): Use | |
7288 | lookup_symbol_search_name. | |
7289 | ||
7290 | 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com> | |
7291 | ||
7292 | * python/py-registers.c (gdbpy_register_object_data_init): Remove | |
7293 | redundant local variable. | |
7294 | (gdbpy_get_register_descriptor): Extract descriptor vector as a | |
7295 | reference, not pointer, update code accordingly. | |
7296 | ||
7297 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> | |
7298 | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
7299 | ||
7300 | * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field. | |
7301 | * jit.c (jit_breakpoint_re_set_internal): Use the | |
7302 | `skip_jit_symbol_lookup` field. | |
7303 | ||
7304 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> | |
7305 | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
7306 | ||
7307 | * jit.c (jit_read_descriptor): Define the descriptor address once, | |
7308 | use twice. | |
7309 | (jit_breakpoint_deleted): Move the declaration of the loop variable | |
7310 | `iter` into the loop header. | |
7311 | (jit_breakpoint_re_set_internal): Move the declaration of the local | |
7312 | variable `objf_data` to the first point of definition. | |
7313 | (jit_event_handler): Move the declaration of local variables | |
7314 | `code_entry`, `entry_addr`, and `objf` to their first point of use. | |
7315 | Rename `objf` to `jited`. | |
7316 | ||
7317 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> | |
7318 | ||
7319 | * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>: | |
7320 | Remove. | |
7321 | * jit.c (get_jiter_objfile_data): Update. | |
7322 | ||
7323 | 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
7324 | Simon Marchi <simon.marchi@polymtl.ca> | |
7325 | ||
7326 | * jit.c (struct jit_program_space_data): Remove. | |
7327 | (jit_program_space_key): Remove. | |
7328 | (jiter_objfile_data::~jiter_objfile_data): Remove program space | |
7329 | stuff. | |
7330 | (get_jit_program_space_data): Remove. | |
7331 | (jit_breakpoint_deleted): Iterate on all of the program space's | |
7332 | objfiles. | |
7333 | (jit_inferior_init): Likewise. | |
7334 | (jit_breakpoint_re_set_internal): Likewise. Also change return | |
7335 | type to void. | |
7336 | (jit_breakpoint_re_set): Pass current_program_space to | |
7337 | jit_breakpoint_re_set_internal. | |
7338 | ||
7339 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> | |
7340 | ||
7341 | * jit.h (struct jiter_objfile_data) <cached_code_address, | |
7342 | jit_breakpoint>: Move to here from ... | |
7343 | * jit.c (jit_program_space_data): ... here. | |
7344 | (jiter_objfile_data::~jiter_objfile_data): Update. | |
7345 | (jit_breakpoint_deleted): Update. | |
7346 | (jit_breakpoint_re_set_internal): Update. | |
7347 | ||
7348 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> | |
7349 | ||
7350 | * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some | |
7351 | checks. | |
7352 | (jit_read_descriptor): Remove NULL check. | |
7353 | (jit_event_handler): Add an assertion. | |
7354 | ||
7355 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> | |
7356 | ||
7357 | * jit.h (struct jit_objfile_data): Split into... | |
7358 | (struct jiter_objfile_data): ... this ... | |
7359 | (struct jited_objfile_data): ... and this. | |
7360 | * objfiles.h (struct objfile) <jit_data>: Remove. | |
7361 | <jiter_data, jited_data>: New fields. | |
7362 | * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ... | |
7363 | (jiter_objfile_data::~jiter_objfile_data): ... this. | |
7364 | (get_jit_objfile_data): Rename to ... | |
7365 | (get_jiter_objfile_data): ... this. | |
7366 | (add_objfile_entry): Update. | |
7367 | (jit_read_descriptor): Use get_jiter_objfile_data. | |
7368 | (jit_find_objf_with_entry_addr): Use objfile's jited_data field. | |
7369 | (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data. | |
7370 | (jit_inferior_exit_hook): Use objfile's jited_data field. | |
7371 | ||
7372 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> | |
7373 | ||
7374 | * jit.h: Forward-declare `struct minimal_symbol`. | |
7375 | (struct jit_objfile_data): Migrate to here from jit.c; also add a | |
7376 | constructor, destructor, and an objfile* field. | |
7377 | * jit.c (jit_objfile_data): Remove. | |
7378 | (struct jit_objfile_data): Migrate from here to jit.h. | |
7379 | (jit_objfile_data::~jit_objfile_data): New destructor | |
7380 | implementation with code moved from free_objfile_data. | |
7381 | (free_objfile_data): Delete. | |
7382 | (get_jit_objfile_data): Update to use the jit_data field of objfile. | |
7383 | (jit_find_objf_with_entry_addr): Ditto. | |
7384 | (jit_inferior_exit_hook): Ditto. | |
7385 | (_initialize_jit): Remove the call to | |
7386 | register_objfile_data_with_cleanup. | |
7387 | * objfiles.h (struct objfile) <jit_data>: New field. | |
7388 | ||
7389 | 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
7390 | ||
7391 | * jit.h: Forward-declare `struct objfile`. | |
7392 | (jit_event_handler): Add a second parameter, the JITer objfile. | |
7393 | * jit.c (jit_read_descriptor): Change the signature to take the | |
7394 | JITer objfile as an argument instead of the jit_program_space_data. | |
7395 | (jit_inferior_init): Update the call to jit_read_descriptor. | |
7396 | (jit_event_handler): Use the new JITer objfile argument when calling | |
7397 | jit_read_descriptor. | |
7398 | * breakpoint.c (handle_jit_event): Update the call to | |
7399 | jit_event_handler to pass the JITer objfile. | |
7400 | ||
7401 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> | |
7402 | ||
7403 | * gdbarch.c: Regenerate. | |
7404 | * gdbarch.h: Regenerate. | |
7405 | * gdbarch.sh (handle_segmentation_fault): Remove method. | |
7406 | * infrun.c (handle_segmentation_fault): Remove. | |
7407 | (print_signal_received_reason): Remove call to | |
7408 | handle_segmentation_fault. | |
7409 | ||
7410 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> | |
7411 | ||
7412 | * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault): | |
7413 | Rename to sparc64_linux_report_signal_info and add siggnal | |
7414 | argument. | |
7415 | (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info | |
7416 | instead of sparc64_linux_handle_segmentation_fault. | |
7417 | ||
7418 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> | |
7419 | ||
7420 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use | |
7421 | i386_linux_report_signal_info instead of | |
7422 | i386_linux_handle_segmentation_fault. | |
7423 | * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename | |
7424 | to i386_linux_report_signal_info and add siggnal argument. | |
7425 | (i386_linux_init_abi): Use i386_linux_report_signal_info instead | |
7426 | of i386_linux_handle_segmentation_fault. | |
7427 | * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename | |
7428 | to i386_linux_report_signal_info and add siggnal argument. | |
7429 | ||
7430 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> | |
7431 | ||
7432 | * corelow.c (core_target_open): Invoke gdbarch report_signal_info | |
7433 | hook if present. | |
7434 | ||
7435 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> | |
7436 | ||
7437 | * gdbarch.c: Regenerate. | |
7438 | * gdbarch.h: Regenerate. | |
7439 | * gdbarch.sh (report_signal_info): New method. | |
7440 | * infrun.c (print_signal_received_reason): Invoke gdbarch | |
7441 | report_signal_info hook if present. | |
7442 | ||
7443 | 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com> | |
7444 | ||
7445 | * python/py-registers.c : Add 'unordered_map' include. | |
7446 | (gdbpy_new_reggroup): Renamed to... | |
7447 | (gdbpy_get_reggroup): ...this. Update to only create register | |
7448 | group descriptors when needed. | |
7449 | (gdbpy_reggroup_iter_next): Update. | |
7450 | ||
7451 | 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com> | |
7452 | ||
7453 | * python/py-registers.c (gdbpy_register_object_data): New static | |
7454 | global. | |
7455 | (gdbpy_register_object_data_init): New function. | |
7456 | (gdbpy_new_register_descriptor): Renamed to... | |
7457 | (gdbpy_get_register_descriptor): ...this, and update to reuse | |
7458 | existing register descriptors where possible. | |
7459 | (gdbpy_register_descriptor_iter_next): Update. | |
7460 | (gdbpy_initialize_registers): Register new gdbarch data. | |
7461 | ||
7462 | 2020-07-21 Simon Marchi <simon.marchi@efficios.com> | |
7463 | ||
7464 | * linux-nat.c (stopped_pids): Make static. | |
7465 | ||
7466 | 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca> | |
7467 | ||
7468 | PR ada/26235 | |
7469 | * gdbtypes.c (ada_discrete_type_low_bound, | |
7470 | ada_discrete_type_high_bound): Handle undefined bounds. | |
7471 | ||
7472 | 2020-07-21 Kamil Rytarowski <n54@gmx.com> | |
7473 | ||
7474 | * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New | |
7475 | declaration. | |
7476 | * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New | |
7477 | function. | |
7478 | ||
7479 | 2020-07-20 John Baldwin <jhb@FreeBSD.org> | |
7480 | ||
7481 | * fbsd-tdep.c (fbsd_skip_solib_resolver): New function. | |
7482 | (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method. | |
7483 | * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype. | |
7484 | * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function. | |
7485 | (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver" | |
7486 | method. | |
7487 | ||
7488 | 2020-07-20 Ludovic Courtès <ludo@gnu.org> | |
7489 | ||
7490 | * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t' | |
7491 | and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax', | |
7492 | which are deprecated in Guile 3.0. | |
7493 | * configure.ac (try_guile_versions): Add "guile-3.0". | |
7494 | * configure (try_guile_versions): Regenerate. | |
7495 | * NEWS: Update entry. | |
7496 | ||
7497 | 2020-07-20 Ludovic Courtès <ludo@gnu.org> | |
7498 | Doug Evans <dje@google.com> | |
7499 | ||
7500 | PR gdb/21104 | |
7501 | * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro. | |
7502 | (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if | |
7503 | USING_GUILE_BEFORE_2_2. | |
7504 | (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]: | |
7505 | Change type to 'scm_t_port_type *'. | |
7506 | (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable. | |
7507 | (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream' | |
7508 | parameter and honor it. Update callers. | |
7509 | (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function. | |
7510 | (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New | |
7511 | functions. | |
7512 | (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if | |
7513 | USING_GUILE_BEFORE_2_2. | |
7514 | (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use | |
7515 | 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'. | |
7516 | (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function. | |
7517 | (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP' | |
7518 | and 'SCM_PORT_TYPE'. | |
7519 | (gdbscm_memory_port_end_input, gdbscm_memory_port_seek) | |
7520 | (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2. | |
7521 | (gdbscm_memory_port_read, gdbscm_memory_port_write) | |
7522 | (gdbscm_memory_port_seek, gdbscm_memory_port_close) | |
7523 | [!USING_GUILE_BEFORE_2_2]: New functions. | |
7524 | (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'. | |
7525 | (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use | |
7526 | 'gdbscm_memory_port_read'. | |
7527 | Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and | |
7528 | 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2. | |
7529 | (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New | |
7530 | function. | |
7531 | (ioscm_init_memory_port): Remove. | |
7532 | (ioscm_init_memory_port_stream): New function | |
7533 | (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New | |
7534 | function. | |
7535 | (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]: | |
7536 | Return scm_from_uint (0). | |
7537 | (gdbscm_set_memory_port_read_buffer_size_x) | |
7538 | [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'. | |
7539 | (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]: | |
7540 | Return scm_from_uint (0). | |
7541 | (gdbscm_set_memory_port_write_buffer_size_x) | |
7542 | [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'. | |
7543 | * configure.ac (try_guile_versions): Add "guile-2.2". | |
7544 | * configure: Regenerate. | |
7545 | * NEWS: Add entry. | |
7546 | ||
7547 | 2020-07-18 Tom Tromey <tom@tromey.com> | |
7548 | ||
7549 | * linux-nat.c (linux_multi_process): Remove. | |
7550 | (linux_nat_target::supports_multi_process): Return true. | |
7551 | ||
7552 | 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com> | |
7553 | ||
7554 | * arch/riscv.c (riscv_tdesc_cache): Change map type. | |
7555 | (riscv_lookup_target_description): Return pointer out of | |
7556 | unique_ptr. | |
7557 | * target-descriptions.c (allocate_target_description): Add | |
7558 | comment. | |
7559 | (target_desc_deleter::operator()): Likewise. | |
7560 | * target-descriptions.h (struct target_desc_deleter): Moved to | |
7561 | gdbsupport/tdesc.h. | |
7562 | (target_desc_up): Likewise. | |
7563 | ||
7564 | 2020-07-17 Tom Tromey <tromey@adacore.com> | |
7565 | ||
7566 | * linux-nat.c (linux_nat_target::supports_non_stop) | |
7567 | (linux_nat_target::always_non_stop_p): Use "true". | |
7568 | (linux_nat_target::supports_disable_randomization): Use "true" and | |
7569 | "false". | |
7570 | ||
7571 | 2020-07-16 Caroline Tice <cmtice@google.com> | |
7572 | ||
7573 | * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition. | |
7574 | (RNGLIST_HEADER_SIZE64): New constant definition. | |
7575 | (struct dwop_section_names): Add rnglists_dwo. | |
7576 | (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo. | |
7577 | (struct loclist_header): Rename to 'loclists_rnglists_header'. | |
7578 | (struct dwo_sections): Add rnglists field. | |
7579 | (read_attribut_reprocess): Add tag parameter. | |
7580 | (dwarf2_ranges_read): Add tag parameter & remove forward function decl. | |
7581 | (cu_debug_rnglists_section): New function (decl & definition). | |
7582 | (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section. | |
7583 | (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of | |
7584 | die whose range is being checked; get rnglist section from | |
7585 | cu_debug_rnglists_section, to get from either objfile or dwo file as | |
7586 | appropriate. Add cases for DW_RLE_base_addressx, | |
7587 | DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add | |
7588 | the base address to DW_RLE_offset_pairs (not to all ranges), moving | |
7589 | test inside if-condition and updating complaint message. | |
7590 | (dwarf2_ranges_process): Add dwarf tag parameter and pass it to | |
7591 | dwarf2_rnglists_process. | |
7592 | (dwarf2_ranges_read): Add dwarf tag parameter and pass it to | |
7593 | dwarf2_ranges_process. | |
7594 | (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting | |
7595 | need_ranges_base and update comment appropriately. Also pass die tag | |
7596 | to dwarf2_ranges_read. | |
7597 | (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting | |
7598 | need_ranges_base and update comment appropriately. Also pass die tag | |
7599 | to dwarf2_ranges_process. | |
7600 | (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to | |
7601 | cu->ranges_base. Also pass die tag to read_attribute_reprocess. | |
7602 | (partial_die_info::read): Check for DW_FORM_rnglistx when setting | |
7603 | need_ranges_base and update comment appropriately. Also pass die tag | |
7604 | to read_attribute_reprocess and dwarf2_ranges_read. | |
7605 | (read_loclist_header): Rename function to read_loclists_rnglists_header, | |
7606 | and update function comment appropriately. | |
7607 | (read_loclist_index): Call read_loclists_rnglists_header instead of | |
7608 | read_loclist_header. | |
7609 | (read_rnglist_index): New function. | |
7610 | (read_attribute_reprocess): Add tag parameter. Add code for | |
7611 | DW_FORM_rnglistx, passing tag to read_rnglist_index. | |
7612 | (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess. | |
7613 | ||
7614 | 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com> | |
7615 | ||
7616 | * f-typeprint.c (f_type_print_base): Allow for dynamic types not | |
7617 | being resolved. | |
7618 | ||
7619 | 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com> | |
7620 | ||
7621 | * arch-utils.c (show_architecture): Update formatting of messages. | |
7622 | ||
7623 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> | |
7624 | ||
7625 | * gdbtypes.h (struct type) <bounds>: Handle array and string | |
7626 | types. | |
7627 | * ada-lang.c (assign_aggregate): Use type::bounds on | |
7628 | array/string type. | |
7629 | * c-typeprint.c (c_type_print_varspec_suffix): Likewise. | |
7630 | * c-varobj.c (c_number_of_children): Likewise. | |
7631 | (c_describe_child): Likewise. | |
7632 | * eval.c (evaluate_subexp_for_sizeof): Likewise. | |
7633 | * f-typeprint.c (f_type_print_varspec_suffix): Likewise. | |
7634 | (f_type_print_base): Likewise. | |
7635 | * f-valprint.c (f77_array_offset_tbl): Likewise. | |
7636 | (f77_get_upperbound): Likewise. | |
7637 | (f77_print_array_1): Likewise. | |
7638 | * guile/scm-type.c (gdbscm_type_range): Likewise. | |
7639 | * m2-typeprint.c (m2_array): Likewise. | |
7640 | (m2_is_long_set_of_type): Likewise. | |
7641 | * m2-valprint.c (get_long_set_bounds): Likewise. | |
7642 | * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise. | |
7643 | * python/py-type.c (typy_range): Likewise. | |
7644 | * rust-lang.c (rust_internal_print_type): Likewise. | |
7645 | * type-stack.c (type_stack::follow_types): Likewise. | |
7646 | * valarith.c (value_subscripted_rvalue): Likewise. | |
7647 | * valops.c (value_cast): Likewise. | |
7648 | ||
7649 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> | |
7650 | ||
7651 | * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all | |
7652 | callers to use the equivalent accessor methods. | |
7653 | ||
7654 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> | |
7655 | ||
7656 | * gdbtypes.h (struct range_bounds) <bit_stride>: New method. | |
7657 | (struct type) <bit_stride>: New method. | |
7658 | (TYPE_BIT_STRIDE): Remove. | |
7659 | * gdbtypes.c (update_static_array_size): Use type::bit_stride. | |
7660 | ||
7661 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> | |
7662 | ||
7663 | * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE, | |
7664 | TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all | |
7665 | callers to use the equivalent accessor methods instead. | |
7666 | ||
7667 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> | |
7668 | ||
7669 | * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED, | |
7670 | TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all | |
7671 | callers to use the equivalent accessor methods instead. | |
7672 | ||
7673 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> | |
7674 | ||
7675 | * gdbtypes.h (TYPE_LOW_BOUND_KIND, | |
7676 | TYPE_HIGH_BOUND_KIND): Remove. Update all callers | |
7677 | to use dynamic_prop::kind. | |
7678 | ||
7679 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> | |
7680 | ||
7681 | * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED, | |
7682 | TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers | |
7683 | to get the bound property's kind and check against | |
7684 | PROP_UNDEFINED. | |
7685 | ||
7686 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> | |
7687 | ||
7688 | * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update | |
7689 | all callers to use type::range_bounds followed by | |
7690 | dynamic_prop::{low,high}. | |
7691 | ||
7692 | 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca> | |
7693 | ||
7694 | * gdbtypes.h (struct dynamic_prop) <kind, set_undefined, | |
7695 | const_val, set_const_val, baton, set_locexpr, set_loclist, | |
7696 | set_addr_offset, variant_parts, set_variant_parts, | |
7697 | original_type, set_original_type>: New methods. | |
7698 | <kind>: Rename to... | |
7699 | <m_kind>: ... this. Update all users to use the new methods | |
7700 | instead. | |
7701 | <data>: Rename to... | |
7702 | <m_data>: ... this. Update all users to use the new methods | |
7703 | instead. | |
7704 | ||
7705 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> | |
7706 | ||
7707 | * gdbtypes.c (get_discrete_bounds): Return failure if | |
7708 | the range type's bounds are not both defined and constant | |
7709 | values. | |
7710 | (get_array_bounds): Update comment. Remove undefined bound check. | |
7711 | ||
7712 | 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca> | |
7713 | ||
7714 | * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use | |
7715 | the type::bounds method directly. | |
7716 | ||
7717 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> | |
7718 | ||
7719 | * gdbtypes.h (struct type) <bounds, set_bounds>: New methods. | |
7720 | (TYPE_RANGE_DATA): Use type::bounds. Change all uses that | |
7721 | are used to set the range type's bounds to use set_bounds. | |
7722 | ||
7723 | 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
7724 | ||
7725 | * exec.c (_initialize_exec): Update exec-file-mismatch help. | |
7726 | ||
7727 | 2020-07-10 Pedro Alves <pedro@palves.net> | |
7728 | ||
7729 | * gdbthread.h (inferior_ref): Define. | |
7730 | (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref. | |
7731 | (scoped_restore_current_thread) <m_inf>: Now an inferior_ref. | |
7732 | * thread.c | |
7733 | (scoped_restore_current_thread::restore): | |
7734 | Adjust to gdb::ref_ptr. | |
7735 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
7736 | Remove manual decref handling. | |
7737 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
7738 | Adjust to use | |
7739 | inferior_ref::new_reference/thread_info_ref::new_reference. | |
7740 | Incref the thread before calling get_frame_id instead of after. | |
7741 | Let TARGET_CLOSE_ERROR propagate. | |
7742 | ||
7743 | 2020-07-10 Pedro Alves <pedro@palves.net> | |
7744 | ||
7745 | * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow | |
7746 | NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR / | |
7747 | NOT_AVAILABLE_ERROR. | |
7748 | * value.c (value_optimized_out): Only swallow MEMORY_ERROR / | |
7749 | OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR. | |
7750 | ||
7751 | 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca> | |
7752 | Pedro Alves <pedro@palves.net> | |
7753 | ||
7754 | PR gdb/26199 | |
7755 | * infrun.c (threads_are_resumed_pending_p): Delete. | |
7756 | (do_target_wait): Remove threads_are_executing and | |
7757 | threads_are_resumed_pending_p checks from the inferior_matches | |
7758 | lambda. Update comments. | |
7759 | ||
7760 | 2020-07-10 Pedro Alves <pedro@palves.net> | |
7761 | ||
7762 | PR gdb/26199 | |
7763 | * infrun.c (handle_no_resumed): Transfer terminal to inferior with | |
7764 | executing threads. | |
7765 | ||
7766 | 2020-07-10 Pedro Alves <pedro@palves.net> | |
7767 | ||
7768 | PR gdb/26199 | |
7769 | * infrun.c (handle_no_resumed): Handle multiple targets. | |
7770 | ||
7771 | 2020-07-10 Pedro Alves <pedro@palves.net> | |
7772 | ||
7773 | PR gdb/26199 | |
7774 | * infrun.c (prepare_to_wait): Check target_can_async_p instead of | |
7775 | target_is_async_p. | |
7776 | ||
7777 | 2020-07-10 Pedro Alves <pedro@palves.net> | |
7778 | ||
7779 | PR gdb/26199 | |
7780 | * target.c (target_pass_ctrlc): Look at the inferior's non-exited | |
7781 | threads, not all threads. | |
7782 | ||
7783 | 2020-07-10 Pedro Alves <pedro@palves.net> | |
7784 | ||
7785 | PR gdb/26199 | |
7786 | * remote.c (remote_target::open_1): Pass remote target pointer as | |
7787 | data to create_async_event_handler. | |
7788 | (remote_async_inferior_event_handler): Mark async event handler | |
7789 | before returning if the remote target still has either pending | |
7790 | events or unacknowledged notifications. | |
7791 | ||
7792 | 2020-07-10 John Baldwin <jhb@FreeBSD.org> | |
7793 | ||
7794 | * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New | |
7795 | declaration. | |
7796 | * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New | |
7797 | function. | |
7798 | ||
7799 | 2020-07-09 John Baldwin <jhb@FreeBSD.org> | |
7800 | ||
7801 | * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against | |
7802 | inferior_ptid. | |
7803 | ||
7804 | 2020-07-09 John Baldwin <jhb@FreeBSD.org> | |
7805 | ||
7806 | * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC, | |
7807 | AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV, | |
7808 | AT_FREEBSD_PS_STRINGS. | |
7809 | ||
7810 | 2020-07-08 Hannes Domani <ssbssa@yahoo.de> | |
7811 | ||
7812 | * auto-load.c (auto_load_objfile_script_1): Convert drive part | |
7813 | of debugfile path on Windows. | |
7814 | ||
7815 | 2020-07-08 John Baldwin <jhb@FreeBSD.org> | |
7816 | ||
7817 | * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd' | |
7818 | argument to 'data'. | |
7819 | ||
7820 | 2020-07-08 Tom Tromey <tromey@adacore.com> | |
7821 | ||
7822 | * ada-lang.c (ada_exception_message_1): Use read_memory. | |
7823 | ||
7824 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> | |
7825 | ||
7826 | PR python/22748 | |
7827 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove | |
7828 | special handling for inline frames. | |
7829 | * findvar.c (value_of_register_lazy): Skip inline frames when | |
7830 | creating lazy register values. | |
7831 | * frame.c (frame_id_computed_p): Delete definition. | |
7832 | * frame.h (frame_id_computed_p): Delete declaration. | |
7833 | ||
7834 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> | |
7835 | ||
7836 | * NEWS: Mention additions to Python API. | |
7837 | * python/py-arch.c (archpy_register_groups): New function. | |
7838 | (arch_object_methods): Add 'register_groups' method. | |
7839 | * python/py-registers.c (reggroup_iterator_object): New struct. | |
7840 | (reggroup_object): New struct. | |
7841 | (gdbpy_new_reggroup): New function. | |
7842 | (gdbpy_reggroup_to_string): New function. | |
7843 | (gdbpy_reggroup_name): New function. | |
7844 | (gdbpy_reggroup_iter): New function. | |
7845 | (gdbpy_reggroup_iter_next): New function. | |
7846 | (gdbpy_new_reggroup_iterator): New function | |
7847 | (gdbpy_initialize_registers): Register new types. | |
7848 | (reggroup_iterator_object_type): Define new Python type. | |
7849 | (gdbpy_reggroup_getset): New static global. | |
7850 | (reggroup_object_type): Define new Python type. | |
7851 | * python/python-internal.h | |
7852 | ||
7853 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> | |
7854 | ||
7855 | * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c | |
7856 | * python/py-arch.c (archpy_registers): New function. | |
7857 | (arch_object_methods): Add 'registers' method. | |
7858 | * python/py-registers.c: New file. | |
7859 | * python/python-internal.h | |
7860 | (gdbpy_new_register_descriptor_iterator): Declare. | |
7861 | (gdbpy_initialize_registers): Declare. | |
7862 | * python/python.c (do_start_initialization): Call | |
7863 | gdbpy_initialize_registers. | |
7864 | * NEWS: Mention additions to the Python API. | |
7865 | ||
7866 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> | |
7867 | ||
7868 | * NEWS: Mention new Python API method. | |
7869 | * python/py-unwind.c (pending_framepy_architecture): New function. | |
7870 | (pending_frame_object_methods): Add architecture method. | |
7871 | ||
7872 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> | |
7873 | ||
7874 | * gdbarch.c: Regenerate. | |
7875 | * gdbarch.h: Regenerate. | |
7876 | * gdbarch.sh (deprecated_set_gdbarch_data): Delete. | |
7877 | (gdbarch_data): Use internal_error for the case where | |
7878 | deprecated_set_gdbarch_data was originally needed. | |
7879 | * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters, | |
7880 | and use passed in obstack. | |
7881 | (libunwind_frame_set_descr): Should no longer get back NULL from | |
7882 | gdbarch_data. | |
7883 | (_initialize_libunwind_frame): Register as a pre-init gdbarch data | |
7884 | type. | |
7885 | * user-regs.c (user_regs_init): Update parameters, and use passed | |
7886 | in obstack. | |
7887 | (user_reg_add): Should no longer get back NULL from gdbarch_data. | |
7888 | (_initialize_user_regs): Register as a pre-init gdbarch data type. | |
7889 | ||
7890 | 2020-07-06 Tom de Vries <tdevries@suse.de> | |
7891 | ||
7892 | * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle | |
7893 | End-Of-Sequence in lte_is_less_than. | |
7894 | * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313 | |
7895 | "gdb: Don't reorder line table entries too much when sorting". | |
7896 | ||
7897 | 2020-07-06 Tom de Vries <tdevries@suse.de> | |
7898 | ||
7899 | PR tui/26205 | |
7900 | * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name. | |
7901 | ||
7902 | 2020-07-05 Tom de Vries <tdevries@suse.de> | |
7903 | ||
7904 | PR build/26187 | |
7905 | * inferior.h (struct infcall_suspend_state_deleter): If available, use | |
7906 | std::uncaught_exceptions instead of deprecated | |
7907 | std::uncaught_exception. | |
7908 | ||
7909 | 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca> | |
7910 | ||
7911 | * macroexp.h (macro_stringify): Return | |
7912 | gdb::unique_xmalloc_ptr<char>. | |
7913 | * macroexp.c (macro_stringify): Likewise. | |
7914 | * macrotab.c (fixup_definition): Update. | |
7915 | ||
7916 | 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca> | |
7917 | ||
7918 | * c-exp.y (scan_macro_expansion): Don't free `expansion`. | |
7919 | (lex_one_token): Update. | |
7920 | * macroexp.c (struct macro_buffer) <release>: Return | |
7921 | gdb::unique_xmalloc_ptr<char>. | |
7922 | (macro_stringify): Update. | |
7923 | (macro_expand): Update. | |
7924 | (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>. | |
7925 | * macroexp.h (macro_expand_next): Likewise. | |
7926 | ||
7927 | 2020-07-02 Simon Marchi <simon.marchi@efficios.com> | |
7928 | ||
7929 | * macroexp.h (macro_lookup_ftype): Remove. | |
7930 | (macro_expand, macro_expand_once, macro_expand_next): Remove | |
7931 | lookup function parameters, add scope parameter. | |
7932 | * macroexp.c (scan, substitute_args, expand, maybe_expand, | |
7933 | macro_expand, macro_expand_once, macro_expand_next): Likewise. | |
7934 | * macroscope.h (standard_macro_lookup): Change parameter type | |
7935 | to macro_scope. | |
7936 | * macroscope.c (standard_macro_lookup): Likewise. | |
7937 | * c-exp.y (lex_one_token): Update. | |
7938 | * macrocmd.c (macro_expand_command): Likewise. | |
7939 | (macro_expand_once_command): Likewise. | |
7940 | ||
7941 | 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca> | |
7942 | ||
7943 | * inf-loop.c (inferior_event_handler): Remove client_data param. | |
7944 | * inf-loop.h (inferior_event_handler): Likewise. | |
7945 | * infcmd.c (step_1): Adjust. | |
7946 | * infrun.c (proceed): Adjust. | |
7947 | (fetch_inferior_event): Remove client_data param. | |
7948 | (infrun_async_inferior_event_handler): Adjust. | |
7949 | * infrun.h (fetch_inferior_event): Remove `void *` param. | |
7950 | * linux-nat.c (handle_target_event): Adjust. | |
7951 | * record-btrace.c (record_btrace_handle_async_inferior_event): | |
7952 | Adjust. | |
7953 | * record-full.c (record_full_async_inferior_event_handler): | |
7954 | Adjust. | |
7955 | * remote.c (remote_async_inferior_event_handler): Adjust. | |
7956 | ||
7957 | 2020-07-01 Tom Tromey <tom@tromey.com> | |
7958 | ||
7959 | * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual. | |
7960 | * tui/tui-stack.h (struct tui_locator_window) <name>: New method. | |
7961 | ||
7962 | 2020-07-01 Tom Tromey <tom@tromey.com> | |
7963 | ||
7964 | * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from | |
7965 | tui_gen_win_info. | |
7966 | (tui_win_info::make_window): Merge with | |
7967 | tui_gen_win_info::make_window. | |
7968 | (tui_win_info::make_visible): Move from tui_gen_win_info. | |
7969 | * tui/tui-win.c (tui_win_info::max_width): Move from | |
7970 | tui_gen_win_info. | |
7971 | * tui/tui-layout.h (class tui_layout_window) <m_window>: Change | |
7972 | type. | |
7973 | <window_factory>: Likewise. | |
7974 | * tui/tui-layout.c (tui_win_info::resize): Move from | |
7975 | tui_gen_win_info. | |
7976 | (make_standard_window): Change return type. | |
7977 | (get_locator_window, tui_get_window_by_name): Likewise. | |
7978 | (tui_layout_window::apply): Remove a cast. | |
7979 | * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier. | |
7980 | (struct tui_win_info): Merge with tui_gen_win_info. | |
7981 | (struct tui_gen_win_info): Remove. | |
7982 | ||
7983 | 2020-07-01 Tom Tromey <tom@tromey.com> | |
7984 | ||
7985 | * tui/tui-stack.h (struct tui_locator_window): Derive from | |
7986 | tui_win_info. | |
7987 | <do_scroll_horizontal, do_scroll_vertical>: New methods. | |
7988 | <can_box>: New method. | |
7989 | ||
7990 | 2020-07-01 Tom Tromey <tom@tromey.com> | |
7991 | ||
7992 | * tui/tui-stack.h (struct tui_locator_window): Remove body. | |
7993 | ||
7994 | 2020-07-01 Tom Tromey <tom@tromey.com> | |
7995 | ||
7996 | * tui/tui-regs.c (tui_data_window::display_registers_from) | |
7997 | (tui_data_window::display_registers_from) | |
7998 | (tui_data_window::first_data_item_displayed) | |
7999 | (tui_data_window::delete_data_content_windows): Update. | |
8000 | (tui_data_window::refresh_window, tui_data_window::no_refresh): | |
8001 | Remove. | |
8002 | (tui_data_window::check_register_values): Update. | |
8003 | (tui_data_item_window::rerender): Add parameters. Update. | |
8004 | (tui_data_item_window::refresh_window): Remove. | |
8005 | * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer | |
8006 | virtual. | |
8007 | * tui/tui-regs.h (struct tui_data_item_window): Don't derive from | |
8008 | tui_gen_win_info. | |
8009 | <refresh_window, max_height, min_height>: Remove. | |
8010 | <rerender>: Add parameters. | |
8011 | <x, y, visible>: New members. | |
8012 | (struct tui_data_window) <refresh_window, no_refresh>: Remove. | |
8013 | <m_item_width>: New member. | |
8014 | ||
8015 | 2020-07-01 Tom Tromey <tom@tromey.com> | |
8016 | ||
8017 | * tui/tui-regs.c (tui_data_window::show_register_group) | |
8018 | (tui_data_window::check_register_values): Update. | |
8019 | * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename | |
8020 | from item_no. | |
8021 | ||
8022 | 2020-07-01 Tom Tromey <tom@tromey.com> | |
8023 | ||
8024 | * tui/tui-regs.c (tui_data_window::show_register_group): Remove | |
8025 | useless "if". | |
8026 | ||
8027 | 2020-07-01 Tom Tromey <tom@tromey.com> | |
8028 | ||
8029 | * tui/tui-regs.c (tui_data_window::show_register_group): Update. | |
8030 | * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove. | |
8031 | ||
8032 | 2020-07-01 Tom Tromey <tom@tromey.com> | |
8033 | ||
8034 | * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h | |
8035 | * tui/tui-winsource.h (enum tui_line_or_address_kind) | |
8036 | (struct tui_line_or_address): Move from tui-data.h. | |
8037 | * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h. | |
8038 | * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c. | |
8039 | (tui_cmd_window, tui_source_window_base, tui_source_window) | |
8040 | (tui_disasm_window): Don't declare. | |
8041 | (enum tui_line_or_address_kind, struct tui_line_or_address): Move | |
8042 | to tui-winsource.h. | |
8043 | (SINGLE_KEY): Move to tui-stack.c. | |
8044 | ||
8045 | 2020-07-01 Tom Tromey <tom@tromey.com> | |
8046 | ||
8047 | * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a | |
8048 | std::string. | |
8049 | * tui/tui-regs.c (class tab_expansion_file): New. | |
8050 | (tab_expansion_file::write): New method. | |
8051 | (tui_register_format): Change return type. Use | |
8052 | tab_expansion_file. | |
8053 | (tui_get_register, tui_data_window::display_registers_from) | |
8054 | (tui_data_item_window::rerender): Update. | |
8055 | * tui/tui-io.h (tui_expand_tabs): Don't declare. | |
8056 | * tui/tui-io.c (tui_expand_tabs): Remove. | |
8057 | ||
8058 | 2020-07-01 Tom Tromey <tom@tromey.com> | |
8059 | ||
8060 | * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum. | |
8061 | ||
8062 | 2020-07-01 Fangrui Song <maskray@google.com> | |
8063 | ||
8064 | * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1. | |
8065 | ||
8066 | 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> | |
8067 | ||
8068 | * dwarf2/read.c (set_die_type): Removed conditions to restrict | |
8069 | forms for DW_AT_associated and DW_AT_allocated attributes, | |
8070 | which is already checked in function attr_to_dynamic_prop. | |
8071 | ||
8072 | 2020-06-30 Tom Tromey <tromey@adacore.com> | |
8073 | ||
8074 | * dwarf2/read.c (quirk_rust_enum): Correctly call | |
8075 | alloc_rust_variant for default-less enum. | |
8076 | ||
8077 | 2020-06-30 Tom Tromey <tromey@adacore.com> | |
8078 | ||
8079 | PR build/26183: | |
8080 | * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use | |
8081 | gdb::to_string. | |
8082 | ||
8083 | 2020-06-29 Simon Marchi <simon.marchi@efficios.com> | |
8084 | ||
8085 | * gdbarch.sh (displaced_step_copy_insn): Update doc. | |
8086 | * gdbarch.h: Re-generate. | |
8087 | ||
8088 | 2020-06-28 Tom Tromey <tom@tromey.com> | |
8089 | ||
8090 | * command.h (cmd_types): Remove. | |
8091 | (cmd_type): Don't declare. | |
8092 | * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a | |
8093 | typedef. | |
8094 | * cli/cli-cmds.c (setting_cmd): Use cmd->type directly. | |
8095 | * cli/cli-decode.c (cmd_type): Remove. | |
8096 | ||
8097 | 2020-06-27 Pedro Alves <palves@redhat.com> | |
8098 | ||
8099 | * fork-child.c (prefork_hook): Adjust. | |
8100 | * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal): | |
8101 | Delete. | |
8102 | (set_inferior_tty_command, show_inferior_tty_command): Adjust. | |
8103 | * inferior.c (inferior::set_tty, inferior::tty): New methods. | |
8104 | * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal): | |
8105 | Remove declarations. | |
8106 | (struct inferior) <set_tty, tty>: New methods. | |
8107 | (struct inferior) <terminal>: Rename to ... | |
8108 | (struct inferior) <m_terminal>: ... this and make private. | |
8109 | * main.c (captured_main_1): Adjust. | |
8110 | * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust. | |
8111 | (mi_cmd_inferior_tty_show): Adjust. | |
8112 | * nto-procfs.c (nto_procfs_target::create_inferior): Adjust. | |
8113 | * windows-nat.c (windows_nat_target::create_inferior): Adjust. | |
8114 | ||
8115 | 2020-06-26 Nick Alcock <nick.alcock@oracle.com> | |
8116 | ||
8117 | * configure.ac: Add --enable-libctf: handle --disable-static | |
8118 | properly. | |
8119 | * acinclude.m4: sinclude ../config/enable.m4. | |
8120 | * Makefile.in (aclocal_m4_deps): Adjust accordingly. | |
8121 | (LIBCTF): Substitute in. | |
8122 | (CTF_DEPS): New, likewise. | |
8123 | (CLIBS): libctf needs symbols from libbfd: move earlier. | |
8124 | (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath | |
8125 | flags. | |
8126 | * ctfread.c: Surround in ENABLE_LIBCTF. | |
8127 | (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub. | |
8128 | * configure: Regenerate. | |
8129 | * config.in: Likewise. | |
8130 | ||
8131 | 2020-06-25 Simon Marchi <simon.marchi@efficios.com> | |
8132 | ||
8133 | * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup. | |
8134 | ||
8135 | 2020-06-25 Simon Marchi <simon.marchi@efficios.com> | |
8136 | ||
8137 | * inferior.h (struct inferior) <terminal>: Change type to | |
8138 | gdb::unique_xmalloc_ptr<char>. | |
8139 | * inferior.c (inferior::~inferior): Don't free inf->terminal. | |
8140 | * infcmd.c (set_inferior_io_terminal): Don't free terminal | |
8141 | field, adjust to unique pointer. | |
8142 | (get_inferior_io_terminal): Adjust to unique pointer. | |
8143 | ||
8144 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> | |
8145 | ||
8146 | * riscv-tdep.c (riscv_print_registers_info): Loop over all | |
8147 | registers, not just the known core set of registers. | |
8148 | ||
8149 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> | |
8150 | ||
8151 | * riscv-tdep.c (riscv_register_name): Return NULL for duplicate | |
8152 | fflags, frm, and fcsr registers. | |
8153 | (riscv_register_reggroup_p): Remove unknown CSRs from save and | |
8154 | restore groups. | |
8155 | (riscv_tdesc_unknown_reg): New function. | |
8156 | (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to | |
8157 | tdesc_use_registers. | |
8158 | * riscv-tdep.h (struct gdbarch_tdep): Add | |
8159 | unknown_csrs_first_regnum, unknown_csrs_count, | |
8160 | duplicate_fflags_regnum, duplicate_frm_regnum, and | |
8161 | duplicate_fcsr_regnum fields. | |
8162 | ||
8163 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> | |
8164 | ||
8165 | * target-descriptions.c (tdesc_use_registers): Add new parameter a | |
8166 | callback, use the callback (when not null) to help number unknown | |
8167 | registers. | |
8168 | * target-descriptions.h (tdesc_unknown_register_ftype): New typedef. | |
8169 | (tdesc_use_registers): Add extra parameter to declaration. | |
8170 | ||
8171 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> | |
8172 | ||
8173 | * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later | |
8174 | in the file. | |
8175 | (class riscv_pending_register_alias): Likewise. | |
8176 | (riscv_register_feature::register_info): Change 'required_p' field | |
8177 | to 'required', and change its type. Add 'check' member function. | |
8178 | (riscv_register_feature::register_info::check): Define new member | |
8179 | function. | |
8180 | (riscv_xreg_feature): Change initialisation of 'required' field. | |
8181 | (riscv_freg_feature): Likewise. | |
8182 | (riscv_virtual_feature): Likewise. | |
8183 | (riscv_csr_feature): Likewise. | |
8184 | (riscv_check_tdesc_feature): Take extra parameter, the csr | |
8185 | tdesc_feature, rewrite the function to use the new | |
8186 | riscv_register_feature::register_info::check function. | |
8187 | (riscv_gdbarch_init): Pass the csr tdesc_feature where needed. | |
8188 | ||
8189 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> | |
8190 | ||
8191 | * features/Makefile: Remove all references to the deleted files | |
8192 | below. | |
8193 | * features/riscv/32bit-csr.c: Deleted. | |
8194 | * features/riscv/32bit-csr.xml: Deleted. | |
8195 | * features/riscv/64bit-csr.c: Deleted. | |
8196 | * features/riscv/64bit-csr.xml: Deleted. | |
8197 | * features/riscv/rebuild-csr-xml.sh: Deleted. | |
8198 | ||
8199 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> | |
8200 | ||
8201 | * riscv-tdep.c (struct riscv_register_feature::register_info): Fix | |
8202 | whitespace error for declaration of names member variable. | |
8203 | (struct riscv_register_feature): Add new prefer_first_name member | |
8204 | variable, and fix whitespace error in declaration of registers. | |
8205 | (riscv_xreg_feature): Initialize prefer_first_name field. | |
8206 | (riscv_freg_feature): Likewise. | |
8207 | (riscv_virtual_feature): Likewise. | |
8208 | (riscv_csr_feature): Likewise. | |
8209 | (riscv_register_name): Expand on comments. Remove register name | |
8210 | modifications for CSR and virtual registers. | |
8211 | ||
8212 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> | |
8213 | ||
8214 | * riscv-tdep.c (struct riscv_register_feature): Fix whitespace | |
8215 | errors. | |
8216 | ||
8217 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> | |
8218 | ||
8219 | * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from | |
8220 | riscv-opc.h. | |
8221 | (class riscv_pending_register_alias): New class. | |
8222 | (riscv_check_tdesc_feature): Take vector of pending aliases and | |
8223 | populate it as appropriate. | |
8224 | (riscv_setup_register_aliases): Delete. | |
8225 | (riscv_gdbarch_init): Create vector of pending aliases and pass it | |
8226 | to riscv_check_tdesc_feature in all cases. Use the vector to | |
8227 | create the register aliases. | |
8228 | ||
8229 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
8230 | ||
8231 | * sol2-tdep.c (sol2_static_transform_name): Remove. | |
8232 | (sol2_init_abi): Don't register it. | |
8233 | * gdbarch.sh (static_transform_name): Remove. | |
8234 | * gdbarch.c, gdbarch.h: Regenerate. | |
8235 | ||
8236 | * dbxread.c (read_dbx_symtab) <'S'>: Remove call to | |
8237 | gdbarch_static_transform_name. | |
8238 | * mdebugread.c (parse_partial_symbols) <'S'>: Likewise. | |
8239 | * stabsread.c (define_symbol) <'X'>: Remove. | |
8240 | (define_symbol) <'S'>: Remove gdbarch_static_transform_name | |
8241 | handling. | |
8242 | <'V'>: Likewise. | |
8243 | * xcoffread.c (scan_xcoff_symtab): Remove gdbarch. | |
8244 | <'S'>: Remove call to gdbarch_static_transform_name. | |
8245 | ||
8246 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
8247 | ||
8248 | * procfs.c (procfs_pre_trace): New function. | |
8249 | (procfs_target::create_inferior): Pass it to fork_inferior. | |
8250 | ||
8251 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
8252 | ||
8253 | * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove | |
8254 | sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o. | |
8255 | <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o, | |
8256 | sol2-tdep.o, sparc-sol2-tdep.o. | |
8257 | * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static. | |
8258 | * sparc-tdep.h (sparc32_sol2_init_abi): Remove. | |
8259 | * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static. | |
8260 | * sparc64-tdep.h (sparc64_sol2_init_abi): Remove. | |
8261 | ||
8262 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
8263 | ||
8264 | * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove. | |
8265 | (amd64_sol2_init_abi): Use sol2_sigtramp_p. | |
8266 | Call sol2_init_abi. | |
8267 | Remove calls to set_gdbarch_skip_solib_resolver, | |
8268 | set_gdbarch_core_pid_to_str. | |
8269 | * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove. | |
8270 | (i386_sol2_static_transform_name): Remove. | |
8271 | (i386_sol2_init_abi): Call sol2_init_abi. | |
8272 | Remove calls to set_gdbarch_sofun_address_maybe_missing, | |
8273 | set_gdbarch_static_transform_name, | |
8274 | set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str. | |
8275 | Use sol2_sigtramp_p. | |
8276 | * sol2-tdep.c (sol2_pc_in_sigtramp): New function. | |
8277 | (sol2_sigtramp_p): New function. | |
8278 | (sol2_static_transform_name): New function. | |
8279 | (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static. | |
8280 | (sol2_init_abi): New function. | |
8281 | * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare. | |
8282 | (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove. | |
8283 | * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove. | |
8284 | (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p. | |
8285 | (sparc_sol2_static_transform_name): Remove. | |
8286 | (sparc32_sol2_init_abi): Call sol2_init_abi. | |
8287 | Remove calls to set_gdbarch_sofun_address_maybe_missing, | |
8288 | set_gdbarch_static_transform_name, | |
8289 | set_gdbarch_skip_solib_resolver, | |
8290 | set_gdbarch_core_pid_to_str. | |
8291 | * sparc-tdep.h (sparc_sol2_pc_in_sigtramp) | |
8292 | (sparc_sol2_static_transform_name): Remove | |
8293 | * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just | |
8294 | call sol2_sigtramp_p. | |
8295 | (sparc64_sol2_init_abi): Call sol2_init_abi. | |
8296 | Remove calls to set_gdbarch_sofun_address_maybe_missing, | |
8297 | set_gdbarch_static_transform_name, | |
8298 | set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str. | |
8299 | ||
8300 | 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
8301 | ||
8302 | * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM. | |
8303 | * exec.c (validate_exec_file): If from_tty, set both | |
8304 | SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM. | |
8305 | * symfile.c (symbol_file_add_with_addrs): if always_confirm | |
8306 | and from_tty, unconditionally ask a confirmation. | |
8307 | ||
8308 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
8309 | ||
8310 | * target-descriptions.c (tdesc_architecture_name): Protect against | |
8311 | NULL pointer dereference. | |
8312 | (maint_print_xml_tdesc_cmd): New function. | |
8313 | (_initialize_target_descriptions): Register new 'maint print | |
8314 | xml-tdesc' command and give it the filename completer. | |
8315 | * NEWS: Mention new 'maint print xml-tdesc' command. | |
8316 | ||
8317 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
8318 | ||
8319 | * target-descriptions.c (class tdesc_compatible_info): New class. | |
8320 | (struct target_desc): Change type of compatible vector. | |
8321 | (tdesc_compatible_p): Update for change in type of | |
8322 | target_desc::compatible. | |
8323 | (tdesc_compatible_info_list): New function. | |
8324 | (tdesc_compatible_info_arch_name): New function. | |
8325 | (tdesc_add_compatible): Update for change in type of | |
8326 | target_desc::compatible. | |
8327 | (print_c_tdesc::visit_pre): Likewise. | |
8328 | ||
8329 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
8330 | ||
8331 | * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change | |
8332 | whitespace to underscore. | |
8333 | (maint_print_c_tdesc_cmd): Use fake filename for target | |
8334 | descriptions that came from the target. | |
8335 | (_initialize_target_descriptions): Add filename command completion | |
8336 | for 'maint print c-tdesc'. | |
8337 | ||
8338 | 2020-06-23 Simon Marchi <simon.marchi@efficios.com> | |
8339 | ||
8340 | * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty | |
8341 | lines. | |
8342 | ||
8343 | 2020-06-23 Simon Marchi <simon.marchi@efficios.com> | |
8344 | ||
8345 | * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty | |
8346 | lines. | |
8347 | (dwarf2_find_location_expression): Likewise. | |
8348 | (call_site_parameter_matches): Likewise. | |
8349 | (dwarf2_compile_expr_to_ax): Likewise. | |
8350 | (disassemble_dwarf_expression): Likewise. | |
8351 | (loclist_describe_location): Likewise. | |
8352 | ||
8353 | 2020-06-23 Pedro Alves <palves@redhat.com> | |
8354 | ||
8355 | * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or | |
8356 | progspace-and-thread.h. Include scoped-mock-context.h instead. | |
8357 | (register_to_value_test): Use scoped_mock_context. | |
8358 | * regcache.c: Include "scoped-mock-context.h". | |
8359 | (cooked_read_test): Don't error out if a target is already pushed. | |
8360 | Use scoped_mock_context. Adjust. | |
8361 | * scoped-mock-context.h: New file. | |
8362 | ||
8363 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
8364 | ||
8365 | * ada-lang.c (ada_language_data): Delete la_is_string_type_p | |
8366 | initializer. | |
8367 | (ada_language::is_string_type_p): New member function. | |
8368 | * c-lang.c (c_language_data): Delete la_is_string_type_p | |
8369 | initializer. | |
8370 | (cplus_language_data): Likewise. | |
8371 | (asm_language_data): Likewise. | |
8372 | (minimal_language_data): Likewise. | |
8373 | * d-lang.c (d_language_data): Likewise. | |
8374 | * f-lang.c (f_is_string_type_p): Delete function, implementation | |
8375 | moved to f_language::is_string_type_p. | |
8376 | (f_language_data): Delete la_is_string_type_p initializer. | |
8377 | (f_language::is_string_type_p): New member function, | |
8378 | implementation from f_is_string_type_p. | |
8379 | * go-lang.c (go_is_string_type_p): Delete function, implementation | |
8380 | moved to go_language::is_string_type_p. | |
8381 | (go_language_data): Delete la_is_string_type_p initializer. | |
8382 | (go_language::is_string_type_p): New member function, | |
8383 | implementation from go_is_string_type_p. | |
8384 | * language.c (language_defn::is_string_type_p): Define new member | |
8385 | function. | |
8386 | (default_is_string_type_p): Make static, add comment copied from | |
8387 | header file. | |
8388 | (unknown_language_data): Delete la_is_string_type_p initializer. | |
8389 | (unknown_language::is_string_type_p): New member function. | |
8390 | (auto_language_data): Delete la_is_string_type_p initializer. | |
8391 | (auto_language::is_string_type_p): New member function. | |
8392 | * language.h (language_data): Delete la_is_string_type_p field. | |
8393 | (language_defn::is_string_type_p): Declare new function. | |
8394 | (default_is_string_type_p): Delete desclaration, move comment to | |
8395 | definition. | |
8396 | * m2-lang.c (m2_is_string_type_p): Delete function, implementation | |
8397 | moved to m2_language::is_string_type_p. | |
8398 | (m2_language_data): Delete la_is_string_type_p initializer. | |
8399 | (m2_language::is_string_type_p): New member function, | |
8400 | implementation from m2_is_string_type_p. | |
8401 | * objc-lang.c (objc_language_data): Delete la_is_string_type_p | |
8402 | initializer. | |
8403 | * opencl-lang.c (opencl_language_data): Likewise. | |
8404 | * p-lang.c (pascal_is_string_type_p): Delete function, | |
8405 | implementation moved to pascal_language::is_string_type_p. | |
8406 | (pascal_language_data): Delete la_is_string_type_p initializer. | |
8407 | (pascal_language::is_string_type_p): New member function, | |
8408 | implementation from pascal_is_string_type_p. | |
8409 | * rust-lang.c (rust_is_string_type_p): Delete function, | |
8410 | implementation moved to rust_language::is_string_type_p. | |
8411 | (rust_language_data): Delete la_is_string_type_p initializer. | |
8412 | (rust_language::is_string_type_p): New member function, | |
8413 | implementation from rust_is_string_type_p. | |
8414 | * valprint.c (val_print_scalar_or_string_type_p): Update call to | |
8415 | is_string_type_p. | |
8416 | ||
8417 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
8418 | ||
8419 | * ada-lang.c (ada_language_data): Delete la_print_typedef | |
8420 | initializer. | |
8421 | (ada_language::print_typedef): New member function. | |
8422 | * c-lang.c (c_language_data): Delete la_print_typedef initializer. | |
8423 | (cplus_language_data): Likewise. | |
8424 | (asm_language_data): Likewise. | |
8425 | (minimal_language_data): Likewise. | |
8426 | * d-lang.c (d_language_data): Likewise. | |
8427 | * f-lang.c (f_language_data): Likewise. | |
8428 | (f_language::print_typedef): New member function. | |
8429 | * go-lang.c (go_language_data): Delete la_print_typedef | |
8430 | initializer. | |
8431 | * language.c (language_defn::print_typedef): Define member | |
8432 | function. | |
8433 | (unknown_language_data): Delete la_print_typedef initializer. | |
8434 | (unknown_language::print_typedef): New member function. | |
8435 | (auto_language_data): Delete la_print_typedef initializer. | |
8436 | (auto_language::print_typedef): New member function. | |
8437 | * language.h (language_data): Delete la_print_typedef field. | |
8438 | (language_defn::print_typedef): Declare new member function. | |
8439 | (LA_PRINT_TYPEDEF): Update call to print_typedef. | |
8440 | (default_print_typedef): Delete declaration. | |
8441 | * m2-lang.c (m2_language_data): Delete la_print_typedef | |
8442 | initializer. | |
8443 | (m2_language::print_typedef): New member function. | |
8444 | * objc-lang.c (objc_language_data): Delete la_print_typedef | |
8445 | initializer. | |
8446 | * opencl-lang.c (opencl_language_data): Likewise. | |
8447 | * p-lang.c (pascal_language_data): Likewise. | |
8448 | (pascal_language::print_typedef): New member function. | |
8449 | * rust-lang.c (rust_print_typedef): Delete function, | |
8450 | implementation moved to rust_language::print_typedef. | |
8451 | (rust_language): Delete la_print_typedef initializer. | |
8452 | (rust_language::print_typedef): New member function, | |
8453 | implementation from rust_print_typedef. | |
8454 | * typeprint.c (default_print_typedef): Delete. | |
8455 | ||
8456 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
8457 | ||
8458 | * ada-lang.c (ada_language_data): Delete la_printstr initializer. | |
8459 | (ada_language::printstr): New member function. | |
8460 | * c-lang.c (c_language_data): Delete la_printstr initializer. | |
8461 | (cplus_language_data): Likewise. | |
8462 | (asm_language_data): Likewise. | |
8463 | (minimal_language_data): Likewise. | |
8464 | * d-lang.c (d_language_data): Likewise. | |
8465 | * f-lang.c (f_printstr): Rename to f_language::printstr. | |
8466 | (f_language_data): Delete la_printstr initializer. | |
8467 | (f_language::printstr): New member function, implementation from | |
8468 | f_printstr. | |
8469 | * go-lang.c (go_language_data): Delete la_printstr initializer. | |
8470 | * language.c (language_defn::printstr): Define new member | |
8471 | function. | |
8472 | (unk_lang_printstr): Delete. | |
8473 | (unknown_language_data): Delete la_printstr initializer. | |
8474 | (unknown_language::printstr): New member function. | |
8475 | (auto_language_data): Delete la_printstr initializer. | |
8476 | (auto_language::printstr): New member function. | |
8477 | * language.h (language_data): Delete la_printstr field. | |
8478 | (language_defn::printstr): Declare new member function. | |
8479 | (LA_PRINT_STRING): Update call to printstr. | |
8480 | * m2-lang.c (m2_printstr): Rename to m2_language::printstr. | |
8481 | (m2_language_data): Delete la_printstr initializer. | |
8482 | (m2_language::printstr): New member function, implementation from | |
8483 | m2_printstr. | |
8484 | * objc-lang.c (objc_language_data): Delete la_printstr | |
8485 | initializer. | |
8486 | * opencl-lang.c (opencl_language_data): Likewise. | |
8487 | * p-lang.c (pascal_printstr): Rename to pascal_language::printstr. | |
8488 | (pascal_language_data): Delete la_printstr initializer. | |
8489 | (pascal_language::printstr): New member function, implementation | |
8490 | from pascal_printstr. | |
8491 | * p-lang.h (pascal_printstr): Delete declaration. | |
8492 | * rust-lang.c (rust_printstr): Update header comment. | |
8493 | (rust_language_data): Delete la_printstr initializer. | |
8494 | (rust_language::printstr): New member function. | |
8495 | ||
8496 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
8497 | ||
8498 | * ada-lang.c (ada_language_data): Delete la_printchar initializer. | |
8499 | (ada_language::printchar): New member function. | |
8500 | * c-lang.c (c_language_data): Delete la_printchar initializer. | |
8501 | (cplus_language_data): Likewise. | |
8502 | (asm_language_data): Likewise. | |
8503 | (minimal_language_data): Likewise. | |
8504 | * d-lang.c (d_language_data): Likewise. | |
8505 | * f-lang.c (f_printchar): Rename to f_language::printchar. | |
8506 | (f_language_data): Delete la_printchar initializer. | |
8507 | (f_language::printchar): New member function, implementation from | |
8508 | f_printchar. | |
8509 | * go-lang.c (go_language_data): Delete la_printchar initializer. | |
8510 | * language.c (unk_lang_printchar): Delete. | |
8511 | (language_defn::printchar): Define new member function. | |
8512 | (unknown_language_data): Delete la_printchar initializer. | |
8513 | (unknown_language::printchar): New member function. | |
8514 | (auto_language_data): Delete la_printchar initializer. | |
8515 | (auto_language::printchar): New member function. | |
8516 | * language.h (language_data): Delete la_printchar field. | |
8517 | (language_defn::printchar): Declare new member function. | |
8518 | (LA_PRINT_CHAR): Update call to printchar. | |
8519 | * m2-lang.c (m2_language_data): Delete la_printchar initializer. | |
8520 | (m2_language::printchar): New member function. | |
8521 | * objc-lang.c (objc_language_data): Delete la_printchar | |
8522 | initializer. | |
8523 | * opencl-lang.c (opencl_language_data): Likewise. | |
8524 | * p-lang.c (pascal_language_data): Delete la_printchar | |
8525 | initializer. | |
8526 | (pascal_language::printchar): New member function. | |
8527 | * rust-lang.c (rust_printchar): Rename to | |
8528 | rust_language::printchar. | |
8529 | (rust_language_data): Delete la_printchar initializer. | |
8530 | (rust_language::printchar): New member function, implementation | |
8531 | from rust_printchar. | |
8532 | ||
8533 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
8534 | ||
8535 | * ada-lang.c (emit_char): Renamed to ada_language::emitchar. | |
8536 | (ada_language_data): Delete la_emitchar initializer. | |
8537 | (ada_language::emitchar): New member function, implementation from | |
8538 | emit_char. | |
8539 | * c-lang.c (c_language_data): Delete la_emitchar initializer. | |
8540 | (cplus_language_data): Likewise. | |
8541 | (asm_language_data): Likewise. | |
8542 | (minimal_language_data): Likewise. | |
8543 | * d-lang.c (d_language_data): Likewise. | |
8544 | * f-lang.c (f_emit_char): Rename to f_language::emitchar. | |
8545 | (f_language_data): Delete la_emitchar initializer. | |
8546 | (f_language::emitchar): New member function, implementation from | |
8547 | f_emit_char. | |
8548 | * go-lang.c (go_language_data): Delete la_emitchar initializer. | |
8549 | * language.c (unk_lang_emit_char): Delete. | |
8550 | (language_defn::emitchar): New member function definition. | |
8551 | (unknown_language_data): Delete la_emitchar initializer. | |
8552 | (unknown_language::emitchar): New member function. | |
8553 | (auto_language_data): Delete la_emitchar initializer. | |
8554 | (auto_language::emitchar): New member function. | |
8555 | * language.h (language_data): Delete la_emitchar field. | |
8556 | (language_defn::emitchar): New member field declaration. | |
8557 | (LA_EMIT_CHAR): Update call to emitchar. | |
8558 | * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar. | |
8559 | (m2_language_data): Delete la_emitchar initializer. | |
8560 | (m2_language::emitchar): New member function, implementation from | |
8561 | m2_emit_char. | |
8562 | * objc-lang.c (objc_language_data): Delete la_emitchar | |
8563 | initializer. | |
8564 | * opencl-lang.c (opencl_language_data): Likewise. | |
8565 | * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar. | |
8566 | (pascal_language_data): Delete la_emitchar initializer. | |
8567 | (pascal_language::emitchar): New member function, implementation | |
8568 | from pascal_emit_char. | |
8569 | * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar. | |
8570 | (rust_language_data): Delete la_emitchar initializer. | |
8571 | (rust_language::emitchar): New member function, implementation | |
8572 | from rust_emitchar. | |
8573 | ||
8574 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
8575 | ||
8576 | * ada-lang.c (resolve): Rename to ada_language::post_parser. | |
8577 | (ada_language_data): Delete la_post_parser initializer. | |
8578 | (ada_language::post_parser): New member function. | |
8579 | * c-lang.c (c_language_data): Delete la_post_parser initializer. | |
8580 | (cplus_language_data): Likewise. | |
8581 | (asm_language_data): Likewise. | |
8582 | (minimal_language_data): Likewise. | |
8583 | * d-lang.c (d_language_data): Likewise. | |
8584 | * f-lang.c (f_language_data): Likewise. | |
8585 | * go-lang.c (go_language_data): Likewise. | |
8586 | * language.c (unknown_language_data): Likewise. | |
8587 | (auto_language_data): Likewise. | |
8588 | * language.h (language_data): Delete la_post_parser field. | |
8589 | (language_defn::post_parser): New member function. | |
8590 | * m2-lang.c (m2_language_data): Delete la_post_parser initializer. | |
8591 | * objc-lang.c (objc_language_data): Likewise. | |
8592 | * opencl-lang.c (opencl_language_data): Likewise. | |
8593 | * p-lang.c (pascal_language_data): Likewise. | |
8594 | * parse.c (parse_exp_in_context): Update call to post_parser. | |
8595 | (null_post_parser): Delete definition. | |
8596 | * parser-defs.h (null_post_parser): Delete declaration. | |
8597 | * rust-lang.c (rust_language_data): Delete la_post_parser | |
8598 | initializer. | |
8599 | ||
8600 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
8601 | ||
8602 | * ada-lang.c (parse): Rename to ada_language::parser. | |
8603 | (ada_language_data): Delete la_parser initializer. | |
8604 | (ada_language::parser): New member function, implementation from | |
8605 | parse. | |
8606 | * c-lang.c (c_language_data): Delete la_parser initializer. | |
8607 | (cplus_language_data): Likewise. | |
8608 | (asm_language_data): Likewise. | |
8609 | (minimal_language_data): Likewise. | |
8610 | * d-lang.c (d_language_data): Likewise. | |
8611 | (d_language::parser): New member function. | |
8612 | * f-lang.c (f_language_data): Delete la_parser initializer. | |
8613 | (f_language::parser): New member function. | |
8614 | * go-lang.c (go_language_data): Delete la_parser initializer. | |
8615 | (go_language::parser): New member function. | |
8616 | * language.c (unk_lang_parser): Delete. | |
8617 | (language_defn::parser): Define new member function. | |
8618 | (unknown_language_data): Delete la_parser initializer. | |
8619 | (unknown_language::parser): New member function. | |
8620 | (auto_language_data): Delete la_parser initializer. | |
8621 | (auto_language::parser): New member function. | |
8622 | * language.h (language_data): Delete la_parser field. | |
8623 | (language_defn::parser): Declare new member function. | |
8624 | * m2-lang.c (m2_language_data): Delete la_parser initializer. | |
8625 | (m2_language::parser): New member function. | |
8626 | * objc-lang.c (objc_language_data): Delete la_parser initializer. | |
8627 | * opencl-lang.c (opencl_language_data): Likewise. | |
8628 | * p-lang.c (pascal_language_data): Likewise. | |
8629 | (pascal_language::parser): New member function. | |
8630 | * parse.c (parse_exp_in_context): Update call to parser. | |
8631 | * rust-lang.c (rust_language_data): Delete la_parser initializer. | |
8632 | (rust_language::parser): New member function. | |
8633 | ||
8634 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> | |
8635 | ||
8636 | * top.c (print_gdb_configuration): Print --with-python-libdir | |
8637 | configuration value. | |
8638 | ||
8639 | 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
8640 | ||
8641 | * NEWS: Mention change to the alias command. | |
8642 | ||
8643 | 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
8644 | ||
8645 | * cli/cli-cmds.c (lookup_cmd_for_default_args) | |
8646 | (alias_command_completer) | |
8647 | (make_alias_options_def_group): New functions. | |
8648 | (alias_opts, alias_option_defs): New struct and array. | |
8649 | (alias_usage_error): Update usage. | |
8650 | (alias_command): Handles optional DEFAULT-ARGS... arguments. | |
8651 | Use option framework. | |
8652 | (_initialize_cli_cmds): Update alias command help. | |
8653 | Update aliases command help. | |
8654 | (show_user): | |
8655 | Add NULL for new default_args lookup_cmd argument. | |
8656 | (valid_command_p): Rename to validate_aliased_command. | |
8657 | Add NULL for new default_args lookup_cmd argument. Verify that the | |
8658 | aliased_command has no default args. | |
8659 | * cli/cli-decode.c (help_cmd): Show aliases definitions. | |
8660 | (lookup_cmd_1, lookup_cmd): New argument default_args. | |
8661 | (add_alias_cmd): | |
8662 | Add NULL for new default_args lookup_cmd argument. | |
8663 | (print_help_for_command): Show default args under the layout | |
8664 | alias some_alias = some_aliased_cmd some_alias_default_arg. | |
8665 | * cli/cli-decode.h (struct cmd_list_element): New member default_args. | |
8666 | xfree default_args in destructor. | |
8667 | * cli/cli-script.c (process_next_line, do_define_command): | |
8668 | Add NULL for new default_args lookup_cmd argument. | |
8669 | * command.h: Declare new default_args argument in lookup_cmd | |
8670 | and lookup_cmd_1. | |
8671 | * completer.c (complete_line_internal_1): | |
8672 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. | |
8673 | * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise. | |
8674 | * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p): | |
8675 | Likewise. | |
8676 | * infcmd.c (_initialize_infcmd): Likewise. | |
8677 | * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise. | |
8678 | * python/py-cmd.c (gdbpy_parse_command_name): Likewise. | |
8679 | * python/py-param.c (add_setshow_generic): Likewise. | |
8680 | * remote.c (_initialize_remote): Likewise. | |
8681 | * top.c (execute_command): Prepend default_args if command has some. | |
8682 | (set_verbose): | |
8683 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. | |
8684 | * tracepoint.c (validate_actionline, encode_actions_1): | |
8685 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. | |
8686 | ||
8687 | 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
8688 | ||
8689 | * jit.c (jit_read_descriptor): Use bool as the return type. | |
8690 | (jit_breakpoint_re_set_internal): Use bool as the return type. | |
8691 | Invert the return value logic; return true if the jit breakpoint | |
8692 | has been successfully initialized. | |
8693 | (jit_inferior_init): Update the call to | |
8694 | jit_breakpoint_re_set_internal. | |
8695 | ||
8696 | 2020-06-22 Pedro Alves <palves@redhat.com> | |
8697 | ||
8698 | PR gdb/25939 | |
8699 | * procfs.c (procfs_target::wait): Don't reference inferior_ptid. | |
8700 | Use the current inferior instead. Don't return | |
8701 | TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and | |
8702 | wait again. | |
8703 | * sol-thread.c (sol_thread_target::wait): Don't reference | |
8704 | inferior_ptid. | |
8705 | (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs) | |
8706 | (sol_update_thread_list_callback): Use the current inferior's pid | |
8707 | instead of inferior_ptid. | |
8708 | ||
8709 | 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
8710 | ||
8711 | * procfs.c: Cleanup many comments. | |
8712 | ||
8713 | (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG) | |
8714 | (AFTER_WATCHFLAG): Replace by value. | |
8715 | ||
8716 | (MAIN_PROC_NAME_FORMAT): Inline ... | |
8717 | (create_procinfo): ... here. | |
8718 | ||
8719 | (procfs_debug_inferior): Remove SYS_exec handling. | |
8720 | (syscall_is_exec): Likewise. | |
8721 | (procfs_set_exec_trap): Likewise. | |
8722 | ||
8723 | (syscall_is_lwp_exit): Inline in callers. | |
8724 | (syscall_is_exit): Likewise. | |
8725 | (syscall_is_exec): Likewise. | |
8726 | (syscall_is_lwp_create): Likewise. | |
8727 | ||
8728 | (invalidate_cache): Remove #if 0 code. | |
8729 | ||
8730 | (make_signal_thread_runnable): Remove. | |
8731 | (procfs_target::resume): Remove #if 0 code. | |
8732 | ||
8733 | 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
8734 | ||
8735 | PR gdb/25939 | |
8736 | * procfs.c (procfs_target::procfs_init_inferior): Move push_target | |
8737 | call ... | |
8738 | (procfs_target::create_inferior): ... here. | |
8739 | ||
8740 | 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
8741 | ||
8742 | * exec.c (validate_exec_file): Ensure the build-id is up to | |
8743 | date by calling reopen_exec_file (that checks file timestamp | |
8744 | to decide to re-read the file). | |
8745 | ||
8746 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8747 | ||
8748 | PR gdb/25412 | |
8749 | * gdbthread.h (delete_thread, delete_thread_silent) | |
8750 | (find_thread_ptid): Update comments. | |
8751 | * thread.c (current_thread_): New global. | |
8752 | (is_current_thread): Move higher, and reimplement. | |
8753 | (inferior_thread): Reimplement. | |
8754 | (set_thread_exited): Use bool. Add assertions. | |
8755 | (add_thread_silent): Simplify thread-reuse handling by always | |
8756 | calling delete_thread. | |
8757 | (delete_thread): Remove intro comment. | |
8758 | (find_thread_ptid): Skip exited threads. | |
8759 | (switch_to_thread_no_regs): Write to current_thread_. | |
8760 | (switch_to_no_thread): Check CURRENT_THREAD_ instead of | |
8761 | INFERIOR_PTID. Clear current_thread_. | |
8762 | ||
8763 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8764 | ||
8765 | * aix-thread.c (pd_update): Use switch_to_thread. | |
8766 | ||
8767 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8768 | ||
8769 | * ravenscar-thread.c (ravenscar_thread_target): Update. | |
8770 | (ravenscar_thread_target::update_inferior_ptid): Rename to ... | |
8771 | (ravenscar_thread_target::add_active_thread): ... this. Don't | |
8772 | set m_base_ptid here. Update to avoid referencing inferior_ptid. | |
8773 | (ravenscar_thread_target::wait): Don't write to inferior_ptid. | |
8774 | ||
8775 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8776 | ||
8777 | * nat/windows-nat.c (current_windows_thread): Remove. | |
8778 | * nat/windows-nat.h (current_windows_thread): Remove. | |
8779 | * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint): | |
8780 | Adjust. | |
8781 | (display_selectors): Adjust to fetch the current | |
8782 | windows_thread_info based on inferior_ptid. | |
8783 | (fake_create_process): No longer write to current_windows_thread. | |
8784 | (windows_nat_target::get_windows_debug_event): | |
8785 | Don't set inferior_ptid or current_windows_thread. | |
8786 | (windows_nat_target::wait): Adjust to not rely on | |
8787 | current_windows_thread. | |
8788 | (do_initial_windows_stuff): Now a method of windows_nat_target. | |
8789 | Switch to the last_ptid thread. | |
8790 | (windows_nat_target::attach): Adjust. | |
8791 | (windows_nat_target::detach): Use switch_to_no_thread instead of | |
8792 | writing to inferior_ptid directly. | |
8793 | (windows_nat_target::create_inferior): Adjust. | |
8794 | ||
8795 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8796 | ||
8797 | * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid. | |
8798 | ||
8799 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8800 | ||
8801 | * go32-nat.c (go32_nat_target::create_inferior): Switch to thread | |
8802 | after creating it, instead of writing to inferior_ptid. Don't | |
8803 | write to inferior_ptid. | |
8804 | ||
8805 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8806 | ||
8807 | * fork-child.c (postfork_hook): Don't write to inferior_ptid. | |
8808 | ||
8809 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8810 | ||
8811 | * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding | |
8812 | it, instead of writing to inferior_ptid. | |
8813 | ||
8814 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8815 | ||
8816 | * btrace.c (btrace_fetch): Use switch_to_thread instead of writing | |
8817 | to inferior_ptid. | |
8818 | ||
8819 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8820 | ||
8821 | * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread | |
8822 | instead of writing to inferior_ptid directly. | |
8823 | ||
8824 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8825 | ||
8826 | * corelow.c (core_target::close): Use switch_to_no_thread instead | |
8827 | of writing to inferior_ptid directly. | |
8828 | (add_to_thread_list, core_target_open): Use switch_to_thread | |
8829 | instead of writing to inferior_ptid directly. | |
8830 | ||
8831 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8832 | ||
8833 | * darwin-nat.c (darwin_nat_target::decode_message): Don't write to | |
8834 | inferior_ptid. | |
8835 | (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid | |
8836 | inferior_ptid. | |
8837 | (darwin_attach_pid): Use switch_to_no_thread instead of writing to | |
8838 | inferior_ptid directly. | |
8839 | (darwin_nat_target::init_thread_list): Switch to thread, instead | |
8840 | of writing to inferior_ptid. | |
8841 | (darwin_nat_target::attach): Don't write to inferior_ptid. | |
8842 | (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid. | |
8843 | ||
8844 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8845 | ||
8846 | * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added | |
8847 | thread. | |
8848 | (gnu_nat_target::attach): Don't write to inferior_ptid directly. | |
8849 | Instead use switch_to_thread. | |
8850 | (gnu_nat_target::detach): Use switch_to_no_thread | |
8851 | instead of writing to inferior_ptid directly. Used passed-in | |
8852 | inferior instead of looking up the inferior by pid. | |
8853 | ||
8854 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8855 | ||
8856 | * go32-nat.c (go32_nat_target::create_inferior): Don't write to | |
8857 | inferior_ptid. | |
8858 | ||
8859 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8860 | ||
8861 | * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid | |
8862 | inferior_ptid. | |
8863 | (nto_procfs_target::attach): Avoid inferior_ptid. Switch to | |
8864 | thread. | |
8865 | (nto_procfs_target::detach): Avoid referencing | |
8866 | inferior_ptid. Use switch_to_no_thread instead of writing to | |
8867 | inferior_ptid directly. | |
8868 | (nto_procfs_target::mourn_inferior): Use switch_to_no_thread | |
8869 | instead of writing to inferior_ptid directly. | |
8870 | (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch | |
8871 | to thread. | |
8872 | ||
8873 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8874 | ||
8875 | * remote-sim.c (gdbsim_target::create_inferior): Switch to thread | |
8876 | after creating it, instead of writing to inferior_ptid. | |
8877 | (gdbsim_target_open): Use switch_to_no_thread instead of writing | |
8878 | to inferior_ptid directly. | |
8879 | (gdbsim_target::wait): Don't write to inferior_ptid. | |
8880 | ||
8881 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8882 | ||
8883 | * remote.c (remote_target::remote_notice_new_inferior): Use | |
8884 | switch_to_thread instead of writing to inferior_ptid directly. | |
8885 | (remote_target::add_current_inferior_and_thread): Use | |
8886 | switch_to_no_thread instead of writing to inferior_ptid directly. | |
8887 | (extended_remote_target::attach): Use switch_to_inferior_no_thread | |
8888 | and switch_to_thread instead of using set_current_inferior or | |
8889 | writing to inferior_ptid directly. | |
8890 | ||
8891 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8892 | ||
8893 | * tracectf.c (ctf_target_open): Switch to added thread instead of | |
8894 | writing to inferior_ptid directly. | |
8895 | (ctf_target::close): Use switch_to_no_thread instead of writing to | |
8896 | inferior_ptid directly. | |
8897 | ||
8898 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8899 | ||
8900 | * tracefile-tfile.c (tfile_target_open): Don't write to | |
8901 | inferior_ptid directly, instead switch to added thread. | |
8902 | (tfile_target::close): Use switch_to_no_thread instead of writing | |
8903 | to inferior_ptid directly. | |
8904 | ||
8905 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8906 | ||
8907 | * procfs.c (procfs_target::attach): Don't write to inferior_ptid. | |
8908 | (procfs_target::detach): Use switch_to_no_thread | |
8909 | instead of writing to inferior_ptid directly. | |
8910 | (do_attach): Change return type to void. Switch to the added | |
8911 | thread. | |
8912 | (procfs_target::create_inferior): Switch to the added thread. | |
8913 | (procfs_do_thread_registers): Don't write to inferior_ptid. | |
8914 | ||
8915 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8916 | ||
8917 | * infrun.c (generic_mourn_inferior): Use switch_to_thread instead | |
8918 | of writing to inferior_ptid. | |
8919 | (scoped_restore_exited_inferior): Delete. | |
8920 | (handle_vfork_child_exec_or_exit): Simplify using | |
8921 | scoped_restore_current_pspace_and_thread. Use switch_to_thread | |
8922 | instead of writing to inferior_ptid. | |
8923 | (THREAD_STOPPED_BY): Delete. | |
8924 | (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint) | |
8925 | (thread_stopped_by_hw_breakpoint): Delete. | |
8926 | (save_waitstatus): Use | |
8927 | scoped_restore_current_thread+switch_to_thread, and call | |
8928 | target_stopped_by_watchpoint instead of | |
8929 | thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint | |
8930 | instead of thread_stopped_by_sw_breakpoint, and | |
8931 | target_stopped_by_hw_breakpoint instead of | |
8932 | thread_stopped_by_hw_breakpoint. | |
8933 | (handle_inferior_event) | |
8934 | <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to | |
8935 | inferior_ptid directly, nor | |
8936 | set_current_inferior/set_current_program_space. Use | |
8937 | switch_to_thread / switch_to_inferior_no_thread instead. | |
8938 | ||
8939 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8940 | ||
8941 | * target.c (generic_mourn_inferior): Use switch_to_no_thread | |
8942 | instead of writing to inferior_ptid. | |
8943 | ||
8944 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8945 | ||
8946 | * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the | |
8947 | added thread. | |
8948 | (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch | |
8949 | to the added thread. | |
8950 | (inf_ptrace_target::detach_success): Use switch_to_no_thread | |
8951 | instead of writing to inferior_ptid. | |
8952 | ||
8953 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8954 | ||
8955 | * gdbarch-selftests.c: Include "progspace-and-thread.h". | |
8956 | (register_to_value_test): Mock a program_space too. Heap-allocate | |
8957 | the address space. Don't write to inferior_ptid. Use | |
8958 | switch_to_thread instead. | |
8959 | ||
8960 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8961 | ||
8962 | * linux-tdep.c (find_signalled_thread(thread_info *,void *)): | |
8963 | Delete. | |
8964 | (find_signalled_thread()): New, factored out from | |
8965 | linux_make_corefile_notes and adjusted to handle exited threads. | |
8966 | (linux_make_corefile_notes): Adjust to use the new | |
8967 | find_signalled_thread. | |
8968 | ||
8969 | 2020-06-18 Pedro Alves <palves@redhat.com> | |
8970 | ||
8971 | * linux-tdep.c (btrace_fetch): Save/restore current thread instead | |
8972 | of saving/restoring inferior_ptid. | |
8973 | ||
8974 | 2020-06-17 Tom Tromey <tom@tromey.com> | |
8975 | ||
8976 | * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward) | |
8977 | (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't | |
8978 | declare. | |
8979 | * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove. | |
8980 | ||
8981 | 2020-06-15 Simon Marchi <simon.marchi@efficios.com> | |
8982 | ||
8983 | * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence | |
8984 | of partial symtabs. | |
8985 | ||
8986 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> | |
8987 | ||
8988 | * regformats/reg-arm.dat: Remove. | |
8989 | * regformats/reg-bfin.dat: Remove. | |
8990 | * regformats/reg-cris.dat: Remove. | |
8991 | * regformats/reg-crisv32.dat: Remove. | |
8992 | * regformats/reg-m32r.dat: Remove. | |
8993 | * regformats/reg-tilegx.dat: Remove. | |
8994 | * regformats/reg-tilegx32.dat: Remove. | |
8995 | ||
8996 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> | |
8997 | ||
8998 | * features/Makefile (WHICH): Remove arm files. | |
8999 | * regformats/arm/arm-with-iwmmxt.dat: Remove. | |
9000 | * regformats/arm/arm-with-neon.dat: Remove. | |
9001 | * regformats/arm/arm-with-vfpv2.dat: Remove. | |
9002 | * regformats/arm/arm-with-vfpv3.dat: Remove. | |
9003 | ||
9004 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> | |
9005 | ||
9006 | * features/Makefile (XMLTOC): Remove rx.xml. | |
9007 | ||
9008 | 2020-06-17 Pedro Alves <palves@redhat.com> | |
9009 | ||
9010 | * gdbthread.h (thread_control_state) <trap_expected> Update | |
9011 | comments. | |
9012 | ||
9013 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> | |
9014 | ||
9015 | * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to | |
9016 | ada_language::lookup_symbol_nonlocal. | |
9017 | (ada_language_data): Delete la_lookup_symbol_nonlocal initializer. | |
9018 | (ada_language::lookup_symbol_nonlocal): New member function, | |
9019 | implementation from ada_lookup_symbol_nonlocal. | |
9020 | * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal | |
9021 | initializer. | |
9022 | (cplus_language_data): Delete la_lookup_symbol_nonlocal | |
9023 | initializer. | |
9024 | (cplus_language::lookup_symbol_nonlocal): New member function. | |
9025 | (asm_language_data): Delete la_lookup_symbol_nonlocal initializer. | |
9026 | (minimal_language_data) Likewise. | |
9027 | * cp-namespace.c (cp_lookup_nested_symbol): Update comment. | |
9028 | * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal | |
9029 | initializer. | |
9030 | (d_language::lookup_symbol_nonlocal): New member function. | |
9031 | * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal | |
9032 | initializer. | |
9033 | (f_language::lookup_symbol_nonlocal): New member function. | |
9034 | * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal | |
9035 | initializer. | |
9036 | * language.c (unknown_language_data): Likewise. | |
9037 | (auto_language_data): Likewise. | |
9038 | * language.h (language_data): Delete la_lookup_symbol_nonlocal | |
9039 | field. | |
9040 | (language_defn::lookup_symbol_nonlocal): New member function. | |
9041 | * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal | |
9042 | initializer. | |
9043 | * objc-lang.c (objc_language_data): Likewise. | |
9044 | * opencl-lang.c (opencl_language_data): Likewise. | |
9045 | * p-lang.c (pascal_language_data): Likewise. | |
9046 | * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to | |
9047 | rust_language::lookup_symbol_nonlocal. | |
9048 | (rust_language_data): Delete la_lookup_symbol_nonlocal | |
9049 | initializer. | |
9050 | (rust_language::lookup_symbol_nonlocal): New member function, | |
9051 | implementation from rust_lookup_symbol_nonlocal. | |
9052 | * symtab.c (lookup_symbol_aux): Update call to | |
9053 | lookup_symbol_nonlocal. | |
9054 | (basic_lookup_symbol_nonlocal): Rename to... | |
9055 | (language_defn::lookup_symbol_nonlocal): ...this, and update | |
9056 | header comment. Remove language_defn parameter, and replace with | |
9057 | uses of `this'. | |
9058 | * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration. | |
9059 | ||
9060 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> | |
9061 | ||
9062 | * ada-lang.c (ada_language_data): Delete la_value_print_inner | |
9063 | initializer. | |
9064 | (ada_language::value_print_inner): New member function. | |
9065 | * c-lang.c (c_language_data): Delete la_value_print_inner | |
9066 | initializer. | |
9067 | (cplus_language_data): Likewise. | |
9068 | (asm_language_data): Likewise. | |
9069 | (minimal_language_data): Likewise. | |
9070 | * d-lang.c (d_language_data): Likewise. | |
9071 | (d_language::value_print_inner): New member function. | |
9072 | * f-lang.c (f_language_data): Delete la_value_print_inner | |
9073 | initializer. | |
9074 | (f_language::value_print_inner): New member function. | |
9075 | * f-lang.h (f_value_print_innner): Rename to... | |
9076 | (f_value_print_inner): ...this (note spelling of 'inner'). | |
9077 | * f-valprint.c (f_value_print_innner): Rename to... | |
9078 | (f_value_print_inner): ...this (note spelling of 'inner'). | |
9079 | * go-lang.c (go_language_data): Delete la_value_print_inner | |
9080 | initializer. | |
9081 | (go_language::value_print_inner): New member function. | |
9082 | * language.c (language_defn::value_print_inner): Define new member | |
9083 | function. | |
9084 | (unk_lang_value_print_inner): Delete. | |
9085 | (unknown_language_data): Delete la_value_print_inner initializer. | |
9086 | (unknown_language::value_print_inner): New member function. | |
9087 | (auto_language_data): Delete la_value_print_inner initializer. | |
9088 | (auto_language::value_print_inner): New member function. | |
9089 | * language.h (language_data): Delete la_value_print_inner field. | |
9090 | (language_defn::value_print_inner): Delcare new member function. | |
9091 | * m2-lang.c (m2_language_data): Delete la_value_print_inner | |
9092 | initializer. | |
9093 | (m2_language::value_print_inner): New member function. | |
9094 | * objc-lang.c (objc_language_data): Delete la_value_print_inner | |
9095 | initializer. | |
9096 | * opencl-lang.c (opencl_language_data): Likewise. | |
9097 | * p-lang.c (pascal_language_data): Likewise. | |
9098 | (pascal_language::value_print_inner): New member function. | |
9099 | * rust-lang.c (rust_language_data): Delete la_value_print_inner | |
9100 | initializer. | |
9101 | (rust_language::value_print_inner): New member function. | |
9102 | * valprint.c (do_val_print): Update call to value_print_inner. | |
9103 | ||
9104 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> | |
9105 | ||
9106 | * ada-lang.c (ada_language_data): Delete la_value_print | |
9107 | initializer. | |
9108 | (ada_language::value_print): New member function. | |
9109 | * c-lang.c (c_language_data): Delete la_value_print initializer. | |
9110 | (cplus_language_data): Likewise. | |
9111 | (asm_language_data): Likewise. | |
9112 | (minimal_language_data): Likewise. | |
9113 | * d-lang.c (d_language_data): Likewise. | |
9114 | * f-lang.c (f_language_data): Likewise. | |
9115 | * go-lang.c (go_language_data): Likewise. | |
9116 | * language.c (unk_lang_value_print): Delete. | |
9117 | (language_defn::value_print): Define new member function. | |
9118 | (unknown_language_data): Delete la_value_print initializer. | |
9119 | (unknown_language::value_print): New member function. | |
9120 | (auto_language_data): Delete la_value_print initializer. | |
9121 | (auto_language::value_print): New member function. | |
9122 | * language.h (language_data): Delete la_value_print field. | |
9123 | (language_defn::value_print): Declare new member function. | |
9124 | (LA_VALUE_PRINT): Update call to value_print. | |
9125 | * m2-lang.c (m2_language_data): Delete la_value_print initializer. | |
9126 | * objc-lang.c (objc_language_data): Likewise. | |
9127 | * opencl-lang.c (opencl_language_data): Likewise. | |
9128 | * p-lang.c (pascal_language_data): Likewise. | |
9129 | (pascal_language::value_print): New member function. | |
9130 | * rust-lang.c (rust_language_data): Delete la_value_print | |
9131 | initializer. | |
9132 | ||
9133 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> | |
9134 | ||
9135 | * ada-lang.c (ada_watch_location_expression): Rename to | |
9136 | ada_language::watch_location_expression. | |
9137 | (ada_language_data): Delete la_watch_location_expression | |
9138 | initializer. | |
9139 | (ada_language::watch_location_expression): New member function, | |
9140 | implementation from ada_watch_location_expression. | |
9141 | * breakpoint.c (watch_command_1): Update call to | |
9142 | watch_location_expression. | |
9143 | * c-lang.c (c_watch_location_expression): Rename to | |
9144 | language_defn::watch_location_expression. | |
9145 | (c_language_data): Delete la_watch_location_expression | |
9146 | initializer. | |
9147 | (cplus_language_data): Likewise. | |
9148 | (asm_language_data): Likewise. | |
9149 | (minimal_language_data): Likewise. | |
9150 | * c-lang.h (c_watch_location_expression): Delete declaration. | |
9151 | * d-lang.c (d_language_data): Delete la_watch_location_expression | |
9152 | initializer. | |
9153 | * f-lang.c (f_language_data): Likewise. | |
9154 | * go-lang.c (go_language_data): Likewise. | |
9155 | * language.c (language_defn::watch_location_expression): Member | |
9156 | function implementation from c_watch_location_expression. | |
9157 | (unknown_language_data): Delete la_watch_location_expression | |
9158 | initializer. | |
9159 | (auto_language_data): Likewise. | |
9160 | * language.h (language_data): Delete la_watch_location_expression | |
9161 | field. | |
9162 | (language_defn::watch_location_expression): Declare new member | |
9163 | function. | |
9164 | * m2-lang.c (m2_language_data): Delete | |
9165 | la_watch_location_expression initializer. | |
9166 | * objc-lang.c (objc_language_data): Likewise. | |
9167 | * opencl-lang.c (opencl_language_data): Likewise. | |
9168 | * p-lang.c (pascal_language_data): Likewise. | |
9169 | * rust-lang.c (rust_watch_location_expression): Rename to | |
9170 | rust_language::watch_location_expression. | |
9171 | (rust_language_data): Delete la_watch_location_expression | |
9172 | initializer. | |
9173 | (rust_language::watch_location_expression): New member function, | |
9174 | implementation from rust_watch_location_expression. | |
9175 | ||
9176 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> | |
9177 | ||
9178 | * ada-lang.c (ada_collect_symbol_completion_matches): Rename to | |
9179 | ada_language::collect_symbol_completion_matches. | |
9180 | (ada_language_data): Delete la_collect_symbol_completion_matches | |
9181 | initializer. | |
9182 | (ada_language::collect_symbol_completion_matches): New member | |
9183 | function, implementation from | |
9184 | ada_collect_symbol_completion_matches. | |
9185 | * c-lang.c (c_language_data): Delete | |
9186 | la_collect_symbol_completion_matches initializer. | |
9187 | (cplus_language_data): Likewise. | |
9188 | (asm_language_data): Likewise. | |
9189 | (minimal_language_data): Likewise. | |
9190 | * d-lang.c (d_language_data): Likewise. | |
9191 | * f-lang.c (f_collect_symbol_completion_matches): Rename to | |
9192 | f_language::collect_symbol_completion_matches. | |
9193 | (f_language_data): Delete la_collect_symbol_completion_matches | |
9194 | initializer. | |
9195 | (f_language::collect_symbol_completion_matches) New member | |
9196 | function, implementation from f_collect_symbol_completion_matches. | |
9197 | * go-lang.c (go_language_data): Delete | |
9198 | la_collect_symbol_completion_matches initializer. | |
9199 | * language.c (unknown_language_data): Likewise. | |
9200 | (auto_language_data): Likewise. | |
9201 | * language.h (language_data): Delete | |
9202 | la_collect_symbol_completion_matches field. | |
9203 | (language_defn::collect_symbol_completion_matches): New member | |
9204 | function. | |
9205 | * m2-lang.c (m2_language_data): Delete | |
9206 | la_collect_symbol_completion_matches initializer. | |
9207 | * objc-lang.c (objc_language_data): Likewise. | |
9208 | * opencl-lang.c (opencl_language_data): Likewise. | |
9209 | * p-lang.c (pascal_language_data): Likewise. | |
9210 | * rust-lang.c (rust_language_data): Likewise. | |
9211 | * symtab.c (default_collect_symbol_completion_matches): Delete. | |
9212 | (collect_symbol_completion_matches): Update call to | |
9213 | collect_symbol_completion_matches. | |
9214 | (collect_symbol_completion_matches_type): Likewise. | |
9215 | * symtab.h (default_collect_symbol_completion_matches): Delete | |
9216 | declaration. | |
9217 | ||
9218 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> | |
9219 | ||
9220 | * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete. | |
9221 | (ada_language_data): Delete la_word_break_characters initializer. | |
9222 | (ada_language::word_break_characters): New member function. | |
9223 | * c-lang.c (c_language_data): Delete la_word_break_characters | |
9224 | initializer. | |
9225 | (cplus_language_data): Likewise. | |
9226 | (asm_language_data): Likewise. | |
9227 | (minimal_language_data): Likewise. | |
9228 | * completer.c: Update global comment. | |
9229 | (advance_to_expression_complete_word_point): Update call to | |
9230 | word_break_characters. | |
9231 | (complete_files_symbols): Likewise. | |
9232 | (complete_line_internal_1): Likewise. | |
9233 | (default_completer_handle_brkchars): Likewise. | |
9234 | (skip_quoted_chars): Likewise. | |
9235 | * d-lang.c (d_language_data): Delete la_word_break_characters | |
9236 | initializer. | |
9237 | * f-lang.c (f_word_break_characters): Delete. | |
9238 | (f_language_data): Delete la_word_break_characters initializer. | |
9239 | (f_language::word_break_characters): New member function. | |
9240 | * go-lang.c (go_language_data): Delete la_word_break_characters | |
9241 | initializer. | |
9242 | * language.c (unknown_language_data): Likewise. | |
9243 | (auto_language_data): Likewise. | |
9244 | * language.h (default_word_break_characters): Move declaration to | |
9245 | earlier in the file. | |
9246 | (language_data): Delete la_word_break_characters field. | |
9247 | (language_defn::word_break_characters): New member function. | |
9248 | * m2-lang.c (m2_language_data): Delete la_word_break_characters | |
9249 | initializer. | |
9250 | * objc-lang.c (objc_language_data): Likewise. | |
9251 | * opencl-lang.c (opencl_language_data): Likewise. | |
9252 | * p-lang.c (pascal_language_data): Likewise. | |
9253 | * rust-lang.c (rust_language_data): Likewise. | |
9254 | ||
9255 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> | |
9256 | ||
9257 | * ada-lang.c (ada_get_symbol_name_matcher): Update header comment. | |
9258 | (ada_language_data): Delete la_get_symbol_name_matcher | |
9259 | initializer. | |
9260 | (language_defn::get_symbol_name_matcher_inner): New member | |
9261 | function. | |
9262 | * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher | |
9263 | initializer. | |
9264 | (cplus_language_data): Likewise. | |
9265 | (cplus_language::get_symbol_name_matcher_inner): New member | |
9266 | function. | |
9267 | (asm_language_data): Delete la_get_symbol_name_matcher initializer. | |
9268 | (minimal_language_data): Likewise. | |
9269 | * cp-support.h (cp_get_symbol_name_matcher): Update header comment. | |
9270 | * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher | |
9271 | initializer. | |
9272 | * dictionary.c (iter_match_first_hashed): Update call to | |
9273 | get_symbol_name_matcher. | |
9274 | (iter_match_next_hashed): Likewise. | |
9275 | (iter_match_next_linear): Likewise. | |
9276 | * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise. | |
9277 | * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher | |
9278 | initializer. | |
9279 | (f_language::get_symbol_name_matcher_inner): New member function. | |
9280 | * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher | |
9281 | initializer. | |
9282 | * language.c (default_symbol_name_matcher): Update header comment, | |
9283 | make static. | |
9284 | (language_defn::get_symbol_name_matcher): New definition. | |
9285 | (language_defn::get_symbol_name_matcher_inner): Likewise. | |
9286 | (get_symbol_name_matcher): Delete. | |
9287 | (unknown_language_data): Delete la_get_symbol_name_matcher | |
9288 | initializer. | |
9289 | (auto_language_data): Likewise. | |
9290 | * language.h (language_data): Delete la_get_symbol_name_matcher | |
9291 | field. | |
9292 | (language_defn::get_symbol_name_matcher): New member function. | |
9293 | (language_defn::get_symbol_name_matcher_inner): Likewise. | |
9294 | (default_symbol_name_matcher): Delete declaration. | |
9295 | * linespec.c (find_methods): Update call to | |
9296 | get_symbol_name_matcher. | |
9297 | * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher | |
9298 | initializer. | |
9299 | * minsyms.c (lookup_minimal_symbol): Update call to | |
9300 | get_symbol_name_matcher. | |
9301 | (iterate_over_minimal_symbols): Likewise. | |
9302 | * objc-lang.c (objc_language_data): Delete | |
9303 | la_get_symbol_name_matcher initializer. | |
9304 | * opencl-lang.c (opencl_language_data): Likewise. | |
9305 | * p-lang.c (pascal_language_data): Likewise. | |
9306 | * psymtab.c (psymbol_name_matches): Update call to | |
9307 | get_symbol_name_matcher. | |
9308 | * rust-lang.c (rust_language_data): Delete | |
9309 | la_get_symbol_name_matcher initializer. | |
9310 | * symtab.c (symbol_matches_search_name): Update call to | |
9311 | get_symbol_name_matcher. | |
9312 | (compare_symbol_name): Likewise. | |
9313 | ||
9314 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> | |
9315 | ||
9316 | * ada-lang.c (ada_language_data): Delete la_compute_program | |
9317 | initializer. | |
9318 | * c-lang.c (c_language_data): Likewise. | |
9319 | (c_language::compute_program): New member function. | |
9320 | (cplus_language_data): Delete la_compute_program initializer. | |
9321 | (cplus_language::compute_program): New member function. | |
9322 | (asm_language_data): Delete la_compute_program initializer. | |
9323 | (minimal_language_data): Likewise. | |
9324 | * c-lang.h (c_compute_program): Update comment. | |
9325 | (cplus_compute_program): Likewise. | |
9326 | * compile/compile-c-support.c (c_compute_program): Likewise. | |
9327 | (cplus_compute_program): Likewise. | |
9328 | * compile/compile.c (compile_to_object): Update call to | |
9329 | la_compute_program. | |
9330 | * d-lang.c (d_language_data): Delete la_compute_program | |
9331 | initializer. | |
9332 | * f-lang.c (f_language_data): Likewise. | |
9333 | * go-lang.c (go_language_data): Likewise. | |
9334 | * language.c (unknown_language_data): Likewise. | |
9335 | (auto_language_data): Likewise. | |
9336 | * language.h (language_data): Delete la_compute_program field. | |
9337 | (language_defn::compute_program): New member function. | |
9338 | * m2-lang.c (m2_language_data): Delete la_compute_program | |
9339 | initializer. | |
9340 | * objc-lang.c (objc_language_data): Likewise. | |
9341 | * opencl-lang.c (opencl_language_data): Likewise. | |
9342 | * p-lang.c (pascal_language_data): Likewise. | |
9343 | * rust-lang.c (rust_language_data): Likewise. | |
9344 | ||
9345 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> | |
9346 | ||
9347 | * ada-lang.c (ada_language_data) Delete | |
9348 | la_class_name_from_physname initializer. | |
9349 | * c-lang.c (c_language_data): Likewise. | |
9350 | (cplus_language_data): Likewise. | |
9351 | (cplus_language::class_name_from_physname): New member function. | |
9352 | (asm_language_data): Delete la_class_name_from_physname | |
9353 | initializer. | |
9354 | (minimal_language_data): Likewise. | |
9355 | * d-lang.c (d_language_data): Likewise. | |
9356 | * dwarf2/read.c (guess_partial_die_structure_name): Update to call | |
9357 | method on language_defn class. | |
9358 | (guess_full_die_structure_name): Likewise. | |
9359 | * f-lang.c (f_language_data): Delete la_class_name_from_physname | |
9360 | initializer. | |
9361 | * go-lang.c (go_language_data): Likewise. | |
9362 | * language.c (language_class_name_from_physname): Delete. | |
9363 | (unk_lang_class_name): Delete. | |
9364 | (unknown_language_data): Delete la_class_name_from_physname | |
9365 | initializer. | |
9366 | (auto_language_data): Likewise. | |
9367 | * language.h (language_data): Delete la_class_name_from_physname | |
9368 | field. | |
9369 | (language_defn::class_name_from_physname): New function. | |
9370 | (language_class_name_from_physname): Delete declaration. | |
9371 | * m2-lang.c (m2_language_data): Delete la_class_name_from_physname | |
9372 | initializer. | |
9373 | * objc-lang.c (objc_language_data): Likewise. | |
9374 | * opencl-lang.c (opencl_language_data): Likewise. | |
9375 | * p-lang.c (pascal_language_data): Likewise. | |
9376 | * rust-lang.c (rust_language_data): Likewise. | |
9377 | ||
9378 | 2020-06-16 Tom Tromey <tom@tromey.com> | |
9379 | ||
9380 | * tui/tui-data.h (STATUS_NAME): New macro. | |
9381 | * tui/tui-layout.c (tui_remove_some_windows) | |
9382 | (initialize_known_windows, tui_register_window) | |
9383 | (tui_layout_split::remove_windows, initialize_layouts) | |
9384 | (tui_new_layout_command): Don't use hard-coded window names. | |
9385 | ||
9386 | 2020-06-16 Tom Tromey <tom@tromey.com> | |
9387 | ||
9388 | PR tui/25348: | |
9389 | * tui/tui.c (tui_ensure_readline_initialized): Rename from | |
9390 | tui_initialize_readline. Only run once. Call rl_initialize. | |
9391 | * tui/tui.h (tui_ensure_readline_initialized): Rename from | |
9392 | tui_initialize_readline. | |
9393 | * tui/tui-io.c (tui_setup_io): Call | |
9394 | tui_ensure_readline_initialized. | |
9395 | * tui/tui-interp.c (tui_interp::init): Update. | |
9396 | ||
9397 | 2020-06-16 Tom Tromey <tom@tromey.com> | |
9398 | ||
9399 | * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic. | |
9400 | Also preserve the status window. | |
9401 | ||
9402 | 2020-06-16 Tom Tromey <tom@tromey.com> | |
9403 | ||
9404 | * python/py-tui.c (tui_py_window::~tui_py_window): Handle case | |
9405 | where m_window==nullptr. | |
9406 | ||
9407 | 2020-06-15 Tom Tromey <tromey@adacore.com> | |
9408 | ||
9409 | * windows-nat.c (windows_nat::handle_output_debug_string): | |
9410 | Update. | |
9411 | (windows_nat::handle_ms_vc_exception): Update. | |
9412 | * target.h (target_read_string): Change API. | |
9413 | * target.c (target_read_string): Change API. | |
9414 | * solib-svr4.c (open_symbol_file_object, svr4_read_so_list): | |
9415 | Update. | |
9416 | * solib-frv.c (frv_current_sos): Update. | |
9417 | * solib-dsbt.c (dsbt_current_sos): Update. | |
9418 | * solib-darwin.c (darwin_current_sos): Update. | |
9419 | * linux-thread-db.c (inferior_has_bug): Update. | |
9420 | * expprint.c (print_subexp_standard): Update. | |
9421 | * ada-lang.c (ada_main_name, ada_tag_name_from_tsd) | |
9422 | (ada_exception_message_1): Update. | |
9423 | ||
9424 | 2020-06-15 Tom Tromey <tromey@adacore.com> | |
9425 | ||
9426 | * linux-tdep.c (dump_mapping_p): Use target_read_memory. | |
9427 | ||
9428 | 2020-06-15 Tom Tromey <tromey@adacore.com> | |
9429 | ||
9430 | * valprint.c (read_string): Update comment. | |
9431 | * target.c (MIN): Remove. | |
9432 | (target_read_string): Rewrite. | |
9433 | ||
9434 | 2020-06-15 Tom Tromey <tromey@adacore.com> | |
9435 | ||
9436 | * corefile.c (read_memory_string): Remove. | |
9437 | * ada-valprint.c (ada_value_print_ptr): Update. | |
9438 | * ada-lang.h (ada_tag_name): Change return type. | |
9439 | * ada-lang.c (type_from_tag): Update. | |
9440 | (ada_tag_name_from_tsd): Change return type. Use | |
9441 | target_read_string. | |
9442 | (ada_tag_name): Likewise. | |
9443 | * gdbcore.h (read_memory_string): Don't declare. | |
9444 | ||
9445 | 2020-06-14 Hannes Domani <ssbssa@yahoo.de> | |
9446 | ||
9447 | * symtab.c (rbreak_command): Ignore Windows drive colon. | |
9448 | ||
9449 | 2020-06-12 Simon Marchi <simon.marchi@efficios.com> | |
9450 | ||
9451 | * NEWS: Mention removed GDBserver host support. | |
9452 | ||
9453 | 2020-06-12 Nelson Chu <nelson.chu@sifive.com> | |
9454 | ||
9455 | * features/riscv/rebuild-csr-xml.sh: Updated. | |
9456 | ||
9457 | 2020-06-11 Tom Tromey <tom@tromey.com> | |
9458 | ||
9459 | PR gdb/18318: | |
9460 | * c-exp.y (lex_one_token): Handle 'p' like 'e'. | |
9461 | ||
9462 | 2020-06-09 Jonny Grant <jg@jguk.org> | |
9463 | 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca> | |
9464 | ||
9465 | * main.c (captured_main_1): Don't print new line after help. | |
9466 | (print_gdb_help): add mailing list and IRC channel information | |
9467 | to --help. Add new lines between items in the footer. Remove | |
9468 | quotes around bug url. | |
9469 | ||
9470 | 2020-06-11 Keith Seitz <keiths@redhat.com> | |
9471 | ||
9472 | PR gdb/21356 | |
9473 | * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct): | |
9474 | Resolve typedefs for type length calculations. | |
9475 | ||
9476 | 2020-06-10 Tom de Vries <tdevries@suse.de> | |
9477 | ||
9478 | PR ada/24713 | |
9479 | * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack. | |
9480 | (write_psymbols): Enable .gdb_index for ada. | |
9481 | * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for | |
9482 | ada. | |
9483 | ||
9484 | 2020-06-10 Tom de Vries <tdevries@suse.de> | |
9485 | ||
9486 | * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ... | |
9487 | (dw2_symtab_iter_init): ... here. Add variant with "offset_type | |
9488 | namei" instead of "const char *name" argument. | |
9489 | (dw2_map_matching_symbols): Use "offset_type namei" variant of | |
9490 | dw2_symtab_iter_init. | |
9491 | ||
9492 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> | |
9493 | ||
9494 | * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites | |
9495 | to use type::field and field::type instead. | |
9496 | ||
9497 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> | |
9498 | ||
9499 | * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites | |
9500 | to use field::type instead. | |
9501 | ||
9502 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> | |
9503 | ||
9504 | * gdbtypes.h (struct field) <type, set_type>: New methods. | |
9505 | Rename `type` field to... | |
9506 | <m_type>: ... this. Change references throughout to use type or | |
9507 | set_type methods. | |
9508 | (FIELD_TYPE): Use field::type. Change call sites that modify | |
9509 | the field's type to use field::set_type instead. | |
9510 | ||
9511 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> | |
9512 | ||
9513 | * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites | |
9514 | to use type::index_type instead. | |
9515 | ||
9516 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> | |
9517 | ||
9518 | * gdbtypes.h (struct type) <index_type, set_index_type>: New | |
9519 | methods. | |
9520 | (TYPE_INDEX_TYPE): Use type::index_type. | |
9521 | * gdbtypes.c (create_array_type_with_stride): Likewise. | |
9522 | ||
9523 | 2020-06-07 Tom Tromey <tom@tromey.com> | |
9524 | ||
9525 | * valprint.c (generic_val_print_float): Remove "embedded_offset" | |
9526 | parameter. | |
9527 | (generic_value_print): Update. | |
9528 | ||
9529 | 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com> | |
9530 | ||
9531 | Revert commit 982a38f60b0. | |
9532 | * python/py-tui.c (gdbpy_tui_set_title): Restore use of get. | |
9533 | ||
9534 | 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com> | |
9535 | ||
9536 | * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to | |
9537 | avoid use after free. | |
9538 | ||
9539 | 2020-06-05 Tom de Vries <tdevries@suse.de> | |
9540 | ||
9541 | * NEWS: Fix typos. | |
9542 | ||
9543 | 2020-06-04 Simon Marchi <simon.marchi@efficios.com> | |
9544 | ||
9545 | * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in | |
9546 | the per_bfd object. | |
9547 | (dwarf2_read_debug_names): Likewise. | |
9548 | (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd | |
9549 | object when re-using a per_bfd object with an index. | |
9550 | ||
9551 | 2020-06-03 Tom de Vries <tdevries@suse.de> | |
9552 | ||
9553 | PR symtab/26046 | |
9554 | * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram | |
9555 | children for C++. | |
9556 | (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of | |
9557 | DW_TAG_subprogram. | |
9558 | ||
9559 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> | |
9560 | ||
9561 | * ada-lang.c (ada_language_data): Delete skip_trampoline | |
9562 | initializer. | |
9563 | * c-lang.c (c_language_data): Likewise. | |
9564 | (cplus_language_data): Likewise. | |
9565 | (cplus_language::skip_trampoline): New member function. | |
9566 | (asm_language_data): Delete skip_trampoline initializer. | |
9567 | (minimal_language_data): Likewise. | |
9568 | * d-lang.c (d_language_data): Likewise. | |
9569 | * f-lang.c (f_language_data): Likewise. | |
9570 | * go-lang.c (go_language_data): Likewise. | |
9571 | * language.c (unk_lang_trampoline): Delete function. | |
9572 | (skip_language_trampoline): Update. | |
9573 | (unknown_language_data): Delete skip_trampoline initializer. | |
9574 | (auto_language_data): Likewise. | |
9575 | * language.h (language_data): Delete skip_trampoline field. | |
9576 | (language_defn::skip_trampoline): New function. | |
9577 | * m2-lang.c (m2_language_data): Delete skip_trampoline | |
9578 | initializer. | |
9579 | * objc-lang.c (objc_skip_trampoline): Delete function, move | |
9580 | implementation to objc_language::skip_trampoline. | |
9581 | (objc_language_data): Delete skip_trampoline initializer. | |
9582 | (objc_language::skip_trampoline): New member function with | |
9583 | implementation from objc_skip_trampoline. | |
9584 | * opencl-lang.c (opencl_language_data): Delete skip_trampoline | |
9585 | initializer. | |
9586 | * p-lang.c (pascal_language_data): Likewise. | |
9587 | * rust-lang.c (rust_language_data): Likewise. | |
9588 | ||
9589 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> | |
9590 | ||
9591 | * ada-lang.c (ada_language_data): Delete la_demangle initializer. | |
9592 | (ada_language::demangle): New member function. | |
9593 | * c-lang.c (c_language_data): Delete la_demangle initializer. | |
9594 | (cplus_language_data): Delete la_demangle initializer. | |
9595 | (cplus_language::demangle): New member function. | |
9596 | (asm_language_data): Delete la_demangle initializer. | |
9597 | (minimal_language_data): Delete la_demangle initializer. | |
9598 | * d-lang.c (d_language_data): Delete la_demangle initializer. | |
9599 | (d_language::demangle): New member function. | |
9600 | * f-lang.c (f_language_data): Delete la_demangle initializer. | |
9601 | (f_language::demangle): New member function. | |
9602 | * go-lang.c (go_language_data): Delete la_demangle initializer. | |
9603 | (go_language::demangle): New member function. | |
9604 | * language.c (language_demangle): Update. | |
9605 | (unk_lang_demangle): Delete. | |
9606 | (unknown_language_data): Delete la_demangle initializer. | |
9607 | (unknown_language::demangle): New member function. | |
9608 | (auto_language_data): Delete la_demangle initializer. | |
9609 | (auto_language::demangle): New member function. | |
9610 | * language.h (language_data): Delete la_demangle field. | |
9611 | (language_defn::demangle): New function. | |
9612 | * m2-lang.c (m2_language_data): Delete la_demangle initializer. | |
9613 | * objc-lang.c (objc_language_data): Delete la_demangle | |
9614 | initializer. | |
9615 | (objc_language::demangle): New member function. | |
9616 | * opencl-lang.c (opencl_language_data): Delete la_demangle | |
9617 | initializer. | |
9618 | * p-lang.c (pascal_language_data): Likewise. | |
9619 | * rust-lang.c (rust_language_data): Likewise. | |
9620 | (rust_language::demangle): New member function. | |
9621 | ||
9622 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> | |
9623 | ||
9624 | * ada-lang.c (ada_language_data): Delete la_print_type | |
9625 | initializer. | |
9626 | (ada_language::print_type): New member function. | |
9627 | * c-lang.c (c_language_data): Delete la_print_type initializer. | |
9628 | (c_language::print_type): New member function. | |
9629 | (cplus_language_data): Delete la_print_type initializer. | |
9630 | (cplus_language::print_type): New member function. | |
9631 | (asm_language_data): Delete la_print_type initializer. | |
9632 | (asm_language::print_type): New member function. | |
9633 | (minimal_language_data): Delete la_print_type initializer. | |
9634 | (minimal_language::print_type): New member function. | |
9635 | * d-lang.c (d_language_data): Delete la_print_type initializer. | |
9636 | (d_language::print_type): New member function. | |
9637 | * f-lang.c (f_language_data): Delete la_print_type initializer. | |
9638 | (f_language::print_type): New member function. | |
9639 | * go-lang.c (go_language_data): Delete la_print_type initializer. | |
9640 | (go_language::print_type): New member function. | |
9641 | * language.c (unk_lang_print_type): Delete. | |
9642 | (unknown_language_data): Delete la_print_type initializer. | |
9643 | (unknown_language::print_type): New member function. | |
9644 | (auto_language_data): Delete la_print_type initializer. | |
9645 | (auto_language::print_type): New member function. | |
9646 | * language.h (language_data): Delete la_print_type field. | |
9647 | (language_defn::print_type): New function. | |
9648 | (LA_PRINT_TYPE): Update. | |
9649 | * m2-lang.c (m2_language_data): Delete la_print_type initializer. | |
9650 | (m2_language::print_type): New member function. | |
9651 | * objc-lang.c (objc_language_data): Delete la_print_type | |
9652 | initializer. | |
9653 | (objc_language::print_type): New member function. | |
9654 | * opencl-lang.c (opencl_print_type): Delete, implementation moved | |
9655 | to opencl_language::print_type. | |
9656 | (opencl_language_data): Delete la_print_type initializer. | |
9657 | (opencl_language::print_type): New member function, implementation | |
9658 | from opencl_print_type. | |
9659 | * p-lang.c (pascal_language_data): Delete la_print_type | |
9660 | initializer. | |
9661 | (pascal_language::print_type): New member function. | |
9662 | * rust-lang.c (rust_print_type): Delete, implementation moved to | |
9663 | rust_language::print_type. | |
9664 | (rust_language_data): Delete la_print_type initializer. | |
9665 | (rust_language::print_type): New member function, implementation | |
9666 | from rust_print_type. | |
9667 | ||
9668 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> | |
9669 | ||
9670 | * ada-lang.c (ada_sniff_from_mangled_name): Delete function, | |
9671 | implementation moves to... | |
9672 | (ada_language::sniff_from_mangled_name): ...here. Update return | |
9673 | type. | |
9674 | (ada_language_data): Delete la_sniff_from_mangled_name | |
9675 | initializer. | |
9676 | * c-lang.c (c_language_data): Likewise. | |
9677 | (cplus_language_data): Likewise. | |
9678 | (cplus_language::sniff_from_mangled_name): New member function, | |
9679 | implementation taken from gdb_sniff_from_mangled_name. | |
9680 | (asm_language_data): Delete la_sniff_from_mangled_name | |
9681 | initializer. | |
9682 | (minimal_language_data): Likewise. | |
9683 | * cp-support.c (gdb_sniff_from_mangled_name): Delete, | |
9684 | implementation moves to cplus_language::sniff_from_mangled_name. | |
9685 | * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration. | |
9686 | * d-lang.c (d_sniff_from_mangled_name): Delete, implementation | |
9687 | moves to... | |
9688 | (d_language::sniff_from_mangled_name): ...here. | |
9689 | (d_language_data): Delete la_sniff_from_mangled_name initializer. | |
9690 | * f-lang.c (f_language_data): Likewise. | |
9691 | * go-lang.c (go_sniff_from_mangled_name): Delete, implementation | |
9692 | moves to... | |
9693 | (go_language::sniff_from_mangled_name): ...here. | |
9694 | (go_language_data): Delete la_sniff_from_mangled_name initializer. | |
9695 | * language.c (language_sniff_from_mangled_name): Delete. | |
9696 | (unknown_language_data): Delete la_sniff_from_mangled_name | |
9697 | initializer. | |
9698 | (auto_language_data): Likewise. | |
9699 | * language.h (language_data): Delete la_sniff_from_mangled_name | |
9700 | field. | |
9701 | (language_defn::sniff_from_mangled_name): New function. | |
9702 | (language_sniff_from_mangled_name): Delete declaration. | |
9703 | * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name | |
9704 | field. | |
9705 | * objc-lang.c (objc_sniff_from_mangled_name): Delete, | |
9706 | implementation moves to... | |
9707 | (objc_language::sniff_from_mangled_name): ...here. | |
9708 | (objc_language_data): Delete la_sniff_from_mangled_name initializer. | |
9709 | * opencl-lang.c (opencl_language_data): Likewise. | |
9710 | * p-lang.c (pascal_language_data): Likewise. | |
9711 | * rust-lang.c (rust_sniff_from_mangled_name): Delete, | |
9712 | implementation moves to... | |
9713 | (rust_language::sniff_from_mangled_name): ...here. | |
9714 | (rust_language_data): Delete la_sniff_from_mangled_name | |
9715 | initializer. | |
9716 | * symtab.c (symbol_find_demangled_name): Call | |
9717 | sniff_from_mangled_name member function. | |
9718 | ||
9719 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> | |
9720 | ||
9721 | * ada-lang.c (ada_language_data): Delete la_search_name_hash | |
9722 | initializer. | |
9723 | * c-lang.c (c_language_data): Likewise. | |
9724 | (cplus_language_data): Likewise. | |
9725 | (cplus_language::search_name_hash): New member function. | |
9726 | (asm_language_data): Delete la_search_name_hash initializer. | |
9727 | (minimal_language_data): Likewise. | |
9728 | * d-lang.c (d_language_data): Likewise. | |
9729 | * dictionary.c (default_search_name_hash): Rename to... | |
9730 | (language_defn::search_name_hash): ...this. | |
9731 | * f-lang.c (f_language_data): Likewise. | |
9732 | (f_language::search_name_hash): New member function. | |
9733 | * go-lang.c (go_language_data): Delete la_search_name_hash | |
9734 | initializer. | |
9735 | * language.c (unknown_language_data): Likewise. | |
9736 | (auto_language_data): Likewise. | |
9737 | * language.h (struct language_data): Delete la_search_name_hash | |
9738 | field. | |
9739 | (language_defn::search_name_hash): Declare new member function. | |
9740 | (default_search_name_hash): Delete declaration. | |
9741 | * m2-lang.c (m2_language_data): Delete la_search_name_hash | |
9742 | initializer. | |
9743 | * objc-lang.c (objc_language_data): Likewise. | |
9744 | * opencl-lang.c (opencl_language_data): Likewise. | |
9745 | * p-lang.c (pascal_language_data): Likewise. | |
9746 | * rust-lang.c (rust_language_data): Likewise. | |
9747 | * symtab.c (search_name_hash): Update call. | |
9748 | ||
9749 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> | |
9750 | ||
9751 | * ada-lang.c (ada_language_data): Delete la_get_compile_instance | |
9752 | initializer. | |
9753 | * c-lang.c (class compile_instance): Declare. | |
9754 | (c_language_data): Delete la_get_compile_instance initializer. | |
9755 | (c_language::get_compile_instance): New member function. | |
9756 | (cplus_language_data): Delete la_get_compile_instance initializer. | |
9757 | (cplus_language::get_compile_instance): New member function. | |
9758 | (asm_language_data): Delete la_get_compile_instance initializer. | |
9759 | (minimal_language_data): Likewise. | |
9760 | * c-lang.h (c_get_compile_context): Update comment. | |
9761 | (cplus_get_compile_context): Update comment. | |
9762 | * compile/compile.c (compile_to_object): Update calls, don't rely | |
9763 | on function pointer being NULL. | |
9764 | * d-lang.c (d_language_data): Delete la_get_compile_instance | |
9765 | initializer. | |
9766 | * f-lang.c (f_language_data): Likewise. | |
9767 | * go-lang.c (go_language_data): Likewise. | |
9768 | * language.c (unknown_language_data): Likewise. | |
9769 | (auto_language_data): Likewise. | |
9770 | * language.h (language_data): Delete la_get_compile_instance field. | |
9771 | (language_defn::get_compile_instance): New member function. | |
9772 | * m2-lang.c (m2_language_data): Delete la_get_compile_instance | |
9773 | initializer. | |
9774 | * objc-lang.c (objc_language_data): Likewise. | |
9775 | * opencl-lang.c (opencl_language_data): Likewise. | |
9776 | * p-lang.c (pascal_language_data): Likewise. | |
9777 | * rust-lang.c (rust_language_data): Likewise. | |
9778 | ||
9779 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> | |
9780 | ||
9781 | * ada-lang.c (ada_add_all_symbols): Update comment. | |
9782 | (ada_iterate_over_symbols): Delete, move implementation to... | |
9783 | (ada_language::iterate_over_symbols): ...here, a new member | |
9784 | function, rewrite to use range based for loop. | |
9785 | (ada_language_data): Delete la_iterate_over_symbols initializer. | |
9786 | * c-lang.c (c_language_data): Likewise. | |
9787 | (cplus_language_data): Likewise. | |
9788 | (asm_language_data): Likewise. | |
9789 | (minimal_language_data): Likewise. | |
9790 | * d-lang.c (d_language_data): Likewise. | |
9791 | * f-lang.c (f_language_data): Likewise. | |
9792 | * go-lang.c (go_language_data): Likewise. | |
9793 | * language.c (unknown_language_data): Likewise. | |
9794 | (auto_language_data): Likewise. | |
9795 | * language.h (language_data): Delete la_iterate_over_symbols field. | |
9796 | (language_defn::iterate_over_symbols): New member function. | |
9797 | (LA_ITERATE_OVER_SYMBOLS): Update. | |
9798 | * linespec.c (iterate_over_all_matching_symtabs): Update. | |
9799 | * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols | |
9800 | initializer. | |
9801 | * objc-lang.c (objc_language_data): Likewise. | |
9802 | * opencl-lang.c (opencl_language_data): Likewise. | |
9803 | * p-lang.c (pascal_language_data): Likewise. | |
9804 | * rust-lang.c (rust_language_data): Likewise. | |
9805 | ||
9806 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> | |
9807 | ||
9808 | * ada-lang.c (ada_language_data): Delete | |
9809 | la_lookup_transparent_type initializer. | |
9810 | * c-lang.c (c_language_data): Likewise. | |
9811 | (cplus_language_data): Likewise. | |
9812 | (cplus_language::lookup_transparent_type): New member function. | |
9813 | (asm_language_data): Delete la_lookup_transparent_type | |
9814 | initializer. | |
9815 | (minimal_language_data): Likewise. | |
9816 | * d-lang.c (d_language_data): Likewise. | |
9817 | * f-lang.c (f_language_data): Likewise. | |
9818 | * go-lang.c (go_language_data): Likewise. | |
9819 | * language.c (unknown_language_data): Likewise. | |
9820 | (auto_language_data): Likewise. | |
9821 | * language.h (struct language_data): Delete | |
9822 | la_lookup_transparent_type field. | |
9823 | (language_defn::lookup_transparent_type): New member function. | |
9824 | * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type | |
9825 | initializer. | |
9826 | * objc-lang.c (objc_language_data): Likewise. | |
9827 | * opencl-lang.c (opencl_language_data): Likewise. | |
9828 | * p-lang.c (pascal_language_data): Likewise. | |
9829 | * rust-lang.c (rust_language_data): Likewise. | |
9830 | * symtab.c (symbol_matches_domain): Update call. | |
9831 | ||
9832 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> | |
9833 | ||
9834 | * ada-lang.c (ada_language_arch_info): Delete function, move | |
9835 | implementation to... | |
9836 | (ada_language::language_arch_info): ...here, a new member | |
9837 | function. | |
9838 | (ada_language_data): Delete la_language_arch_info. | |
9839 | * c-lang.c (c_language_data): Likewise. | |
9840 | (c_language::language_arch_info): New member function. | |
9841 | (cplus_language_arch_info): Delete function, move | |
9842 | implementation to... | |
9843 | (cplus_language::language_arch_info): ...here, a new member | |
9844 | function. | |
9845 | (cplus_language_data): Delete la_language_arch_info. | |
9846 | (asm_language_data): Likewise. | |
9847 | (asm_language::language_arch_info): New member function. | |
9848 | (minimal_language_data): Delete la_language_arch_info. | |
9849 | (minimal_language::language_arch_info): New member function. | |
9850 | * d-lang.c (d_language_arch_info): Delete function, move | |
9851 | implementation to... | |
9852 | (d_language::language_arch_info): ...here, a new member | |
9853 | function. | |
9854 | (d_language_data): Delete la_language_arch_info. | |
9855 | * f-lang.c (f_language_arch_info): Delete function, move | |
9856 | implementation to... | |
9857 | (f_language::language_arch_info): ...here, a new member | |
9858 | function. | |
9859 | (f_language_data): Delete la_language_arch_info. | |
9860 | * go-lang.c (go_language_arch_info): Delete function, move | |
9861 | implementation to... | |
9862 | (go_language::language_arch_info): ...here, a new member | |
9863 | function. | |
9864 | (go_language_data): Delete la_language_arch_info. | |
9865 | * language.c (unknown_language_data): Likewise. | |
9866 | (unknown_language::language_arch_info): New member function. | |
9867 | (auto_language_data): Delete la_language_arch_info. | |
9868 | (auto_language::language_arch_info): New member function. | |
9869 | (language_gdbarch_post_init): Update call to | |
9870 | la_language_arch_info. | |
9871 | * language.h (language_data): Delete la_language_arch_info | |
9872 | function pointer. | |
9873 | (language_defn::language_arch_info): New function. | |
9874 | * m2-lang.c (m2_language_arch_info): Delete function, move | |
9875 | implementation to... | |
9876 | (m2_language::language_arch_info): ...here, a new member | |
9877 | function. | |
9878 | (m2_language_data): Delete la_language_arch_info. | |
9879 | * objc-lang.c (objc_language_arch_info): Delete function, move | |
9880 | implementation to... | |
9881 | (objc_language::language_arch_info): ...here, a new member | |
9882 | function. | |
9883 | (objc_language_data): Delete la_language_arch_info. | |
9884 | * opencl-lang.c (opencl_language_arch_info): Delete function, move | |
9885 | implementation to... | |
9886 | (opencl_language::language_arch_info): ...here, a new member | |
9887 | function. | |
9888 | (opencl_language_data): Delete la_language_arch_info. | |
9889 | * p-lang.c (pascal_language_arch_info): Delete function, move | |
9890 | implementation to... | |
9891 | (pascal_language::language_arch_info): ...here, a new member | |
9892 | function. | |
9893 | (pascal_language_data): Delete la_language_arch_info. | |
9894 | * rust-lang.c (rust_language_arch_info): Delete function, move | |
9895 | implementation to... | |
9896 | (rust_language::language_arch_info): ...here, a new member | |
9897 | function. | |
9898 | (rust_language_data): Delete la_language_arch_info. | |
9899 | ||
9900 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> | |
9901 | ||
9902 | * ada-lang.c (ada_language_data): Delete la_pass_by_reference | |
9903 | initializer. | |
9904 | * c-lang.c (c_language_data): Likewise. | |
9905 | (cplus_language_data): Likewise. | |
9906 | (cplus_language::pass_by_reference_info): New method. | |
9907 | (asm_language_data): Delete la_pass_by_reference initializer. | |
9908 | (minimal_language_data): Likewise. | |
9909 | * cp-abi.c (cp_pass_by_reference): Remove use of | |
9910 | default_pass_by_reference. | |
9911 | * d-lang.c (d_language_data): Likewise. | |
9912 | * f-lang.c (f_language_data): Likewise. | |
9913 | * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of | |
9914 | default_pass_by_reference. | |
9915 | * go-lang.c (go_language_data): Likewise. | |
9916 | * language.c (language_pass_by_reference): Update. | |
9917 | (default_pass_by_reference): Delete. | |
9918 | (unknown_language_data): Delete la_pass_by_reference | |
9919 | initializer. | |
9920 | (auto_language_data): Likewise. | |
9921 | * language.h (struct language_data): Delete la_pass_by_reference | |
9922 | field. | |
9923 | (language_defn::pass_by_reference_info): New member function. | |
9924 | (default_pass_by_reference): Delete declaration. | |
9925 | * m2-lang.c (m2_language_data): Delete la_pass_by_reference | |
9926 | initializer. | |
9927 | * objc-lang.c (objc_language_data): Likewise. | |
9928 | * opencl-lang.c (opencl_language_data): Likewise. | |
9929 | * p-lang.c (pascal_language_data): Likewise. | |
9930 | * rust-lang.c (rust_language_data): Likewise. | |
9931 | ||
9932 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> | |
9933 | ||
9934 | * ada-lang.c (ada_read_var_value): Delete function, move | |
9935 | implementation to... | |
9936 | (ada_language::read_var_value): ...here. | |
9937 | (ada_language_data): Delete la_read_var_value initializer. | |
9938 | * c-lang.c (c_language_data): Likewise. | |
9939 | (cplus_language_data): Likewise. | |
9940 | (minimal_language_data): Likewise. | |
9941 | * d-lang.c (d_language_data): Likewise. | |
9942 | * f-lang.c (f_language_data): Likewise. | |
9943 | * findvar.c (default_read_var_value): Rename to... | |
9944 | (language_defn::read_var_value): ...this. | |
9945 | * findvar.c (read_var_value): Update header comment, and change to | |
9946 | call member function instead of function pointer. | |
9947 | * go-lang.c (go_language_data): Likewise. | |
9948 | * language.c (unknown_language_data): Delete la_read_var_value | |
9949 | initializer. | |
9950 | (auto_language_data): Likewise. | |
9951 | * language.h (struct language_data): Delete la_read_var_value | |
9952 | field. | |
9953 | (language_defn::read_var_value): New member function. | |
9954 | (default_read_var_value): Delete declaration. | |
9955 | * m2-lang.c (m2_language_data): Delete la_read_var_value | |
9956 | initializer. | |
9957 | * objc-lang.c (objc_language_data): Likewise. | |
9958 | * opencl-lang.c (opencl_language_data): Likewise. | |
9959 | * p-lang.c (pascal_language_data): Likewise. | |
9960 | * rust-lang.c (rust_language_data): Likewise. | |
9961 | * value.h (default_read_var_value): Delete declaration. | |
9962 | ||
9963 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> | |
9964 | ||
9965 | * ada-lang.c (ada_print_array_index): Delete function, move | |
9966 | implementation to... | |
9967 | (ada_language::print_array_index): ...here. | |
9968 | (ada_language_data): Delete la_print_array_index initializer. | |
9969 | * c-lang.c (c_language_data): Likewise. | |
9970 | (cplus_language_data): Likewise. | |
9971 | (minimal_language_data): Likewise. | |
9972 | * d-lang.c (d_language_data): Likewise. | |
9973 | * f-lang.c (f_language_data): Likewise. | |
9974 | * go-lang.c (go_language_data): Likewise. | |
9975 | * language.c (default_print_array_index): Delete function, move | |
9976 | implementation to... | |
9977 | (language_defn::print_array_index): ...here. | |
9978 | (unknown_language_data): Delete la_print_array_index initializer. | |
9979 | (auto_language_data): Likewise. | |
9980 | * language.h (struct language_data): Delete la_print_array_index | |
9981 | field. | |
9982 | (language_defn::print_array_index): New member function. | |
9983 | (LA_PRINT_ARRAY_INDEX): Update. | |
9984 | (default_print_array_index): Delete declaration. | |
9985 | * m2-lang.c (m2_language_data): Delete la_print_array_index | |
9986 | initializer. | |
9987 | * objc-lang.c (objc_language_data): Likewise. | |
9988 | * opencl-lang.c (opencl_language_data): Likewise. | |
9989 | * p-lang.c (pascal_language_data): Likewise. | |
9990 | * rust-lang.c (rust_language_data): Likewise. | |
9991 | ||
9992 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> | |
9993 | ||
9994 | * gdb/ada-lang.c (ada_language_defn): Convert to... | |
9995 | (ada_language_data): ...this. | |
9996 | (class ada_language): New class. | |
9997 | (ada_language_defn): New static global. | |
9998 | * gdb/c-lang.c (c_language_defn): Convert to... | |
9999 | (c_language_data): ...this. | |
10000 | (class c_language): New class. | |
10001 | (c_language_defn): New static global. | |
10002 | (cplus_language_defn): Convert to... | |
10003 | (cplus_language_data): ...this. | |
10004 | (class cplus_language): New class. | |
10005 | (cplus_language_defn): New static global. | |
10006 | (asm_language_defn): Convert to... | |
10007 | (asm_language_data): ...this. | |
10008 | (class asm_language): New class. | |
10009 | (asm_language_defn): New static global. | |
10010 | (minimal_language_defn): Convert to... | |
10011 | (minimal_language_data): ...this. | |
10012 | (class minimal_language): New class. | |
10013 | (minimal_language_defn): New static global. | |
10014 | * gdb/d-lang.c (d_language_defn): Convert to... | |
10015 | (d_language_data): ...this. | |
10016 | (class d_language): New class. | |
10017 | (d_language_defn): New static global. | |
10018 | * gdb/f-lang.c (f_language_defn): Convert to... | |
10019 | (f_language_data): ...this. | |
10020 | (class f_language): New class. | |
10021 | (f_language_defn): New static global. | |
10022 | * gdb/go-lang.c (go_language_defn): Convert to... | |
10023 | (go_language_data): ...this. | |
10024 | (class go_language): New class. | |
10025 | (go_language_defn): New static global. | |
10026 | * gdb/language.c (unknown_language_defn): Remove declaration. | |
10027 | (current_language): Initialize to nullptr, real initialization is | |
10028 | moved to _initialize_language. | |
10029 | (languages): Delete global. | |
10030 | (language_defn::languages): Define. | |
10031 | (set_language_command): Use language_defn::languages. | |
10032 | (set_language): Likewise. | |
10033 | (range_error): Likewise. | |
10034 | (language_enum): Likewise. | |
10035 | (language_def): Likewise. | |
10036 | (add_set_language_command): Use language_def::languages for the | |
10037 | language list, and language_def to lookup language pointers. | |
10038 | (skip_language_trampoline): Use language_defn::languages. | |
10039 | (unknown_language_defn): Convert to... | |
10040 | (unknown_language_data): ...this. | |
10041 | (class unknown_language): New class. | |
10042 | (unknown_language_defn): New static global. | |
10043 | (auto_language_defn): Convert to... | |
10044 | (auto_language_data): ...this. | |
10045 | (class auto_language): New class. | |
10046 | (auto_language_defn): New static global. | |
10047 | (language_gdbarch_post_init): Use language_defn::languages. | |
10048 | (_initialize_language): Initialize current_language. | |
10049 | * gdb/language.h (struct language_defn): Rename to... | |
10050 | (struct language_data): ...this. | |
10051 | (struct language_defn): New. | |
10052 | (auto_language_defn): Delete. | |
10053 | (unknown_language_defn): Delete. | |
10054 | (minimal_language_defn): Delete. | |
10055 | (ada_language_defn): Delete. | |
10056 | (asm_language_defn): Delete. | |
10057 | (c_language_defn): Delete. | |
10058 | (cplus_language_defn): Delete. | |
10059 | (d_language_defn): Delete. | |
10060 | (f_language_defn): Delete. | |
10061 | (go_language_defn): Delete. | |
10062 | (m2_language_defn): Delete. | |
10063 | (objc_language_defn): Delete. | |
10064 | (opencl_language_defn): Delete. | |
10065 | (pascal_language_defn): Delete. | |
10066 | (rust_language_defn): Delete. | |
10067 | * gdb/m2-lang.c (m2_language_defn): Convert to... | |
10068 | (m2_language_data): ...this. | |
10069 | (class m2_language): New class. | |
10070 | (m2_language_defn): New static global. | |
10071 | * gdb/objc-lang.c (objc_language_defn): Convert to... | |
10072 | (objc_language_data): ...this. | |
10073 | (class objc_language): New class. | |
10074 | (objc_language_defn): New static global. | |
10075 | * gdb/opencl-lang.c (opencl_language_defn): Convert to... | |
10076 | (opencl_language_data): ...this. | |
10077 | (class opencl_language): New class. | |
10078 | (opencl_language_defn): New static global. | |
10079 | * gdb/p-lang.c (pascal_language_defn): Convert to... | |
10080 | (pascal_language_data): ...this. | |
10081 | (class pascal_language): New class. | |
10082 | (pascal_language_defn): New static global. | |
10083 | * gdb/rust-exp.y (rust_lex_tests): Use language_def to find | |
10084 | language pointer, update comment format. | |
10085 | * gdb/rust-lang.c (rust_language_defn): Convert to... | |
10086 | (rust_language_data): ...this. | |
10087 | (class rust_language): New class. | |
10088 | (rust_language_defn): New static global. | |
10089 | ||
10090 | 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com> | |
10091 | ||
10092 | * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New | |
10093 | member variable. | |
10094 | <m_stmt_at_address>: New member variable. | |
10095 | (lnp_state_machine::record_line): Don't record some lines, update | |
10096 | tracking of is_stmt at the same address. | |
10097 | (lnp_state_machine::lnp_state_machine): Initialise new member | |
10098 | variables. | |
10099 | ||
10100 | 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org> | |
10101 | ||
10102 | * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add | |
10103 | "-include gnu-nat-mig.h". | |
10104 | * gnu-nat-mig.h: New file. | |
10105 | * gnu-nat.c: Include "gnu-nat-mig.h". | |
10106 | (exc_server, msg_reply_server, notify_server, | |
10107 | process_reply_server): Remove declarations. | |
10108 | ||
10109 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> | |
10110 | ||
10111 | * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced, | |
10112 | steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup, | |
10113 | inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports, | |
10114 | inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports, | |
10115 | inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread, | |
10116 | inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal, | |
10117 | inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc, | |
10118 | proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port, | |
10119 | proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions | |
10120 | to gnu_nat_target class. | |
10121 | * gnu-nat.c: Likewise. | |
10122 | (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd, | |
10123 | set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd, | |
10124 | set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target | |
10125 | object. | |
10126 | (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this' | |
10127 | instead of `gnu_target'. | |
10128 | ||
10129 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> | |
10130 | ||
10131 | * i386-gnu-tdep.c: Include "gdbcore.h" | |
10132 | (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays. | |
10133 | (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL, | |
10134 | I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros | |
10135 | (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p, | |
10136 | i386_gnu_sigcontext_addr): New functions | |
10137 | (i386gnu_init_abi): Register i386_gnu_sigtramp_p, | |
10138 | i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch | |
10139 | tdep. | |
10140 | ||
10141 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> | |
10142 | ||
10143 | * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call | |
10144 | before fork_inferior call. Avoid calling it if target_is_pushed returns | |
10145 | true. | |
10146 | ||
10147 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> | |
10148 | ||
10149 | * gnu-nat.h (gnu_target): New variable declaration. | |
10150 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize | |
10151 | gnu_target. | |
10152 | * gnu-nat.c (gnu_target): New variable. | |
10153 | (inf_validate_procs): Pass gnu_target to thread_change_ptid, | |
10154 | add_thread_silent, and add_thread calls. | |
10155 | (gnu_nat_target::create_inferior): Pass gnu_target to | |
10156 | add_thread_silent, thread_change_ptid call. | |
10157 | (gnu_nat_target::detach): Pass gnu_target to detach_inferior | |
10158 | call. | |
10159 | ||
10160 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> | |
10161 | ||
10162 | * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable. | |
10163 | (gnu_nat_target::find_memory_regions): Remove unused | |
10164 | `old_address' variable. | |
10165 | ||
10166 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> | |
10167 | ||
10168 | * gnu-nat.c: Include "gdbarch.h". | |
10169 | ||
10170 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> | |
10171 | ||
10172 | * reply_mig_hack.awk (Error return): Cast function through | |
10173 | void *, to bypass compiler function call check. | |
10174 | ||
10175 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> | |
10176 | ||
10177 | * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on | |
10178 | $(srcdir)/reply_mig_hack.awk. | |
10179 | ||
10180 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> | |
10181 | ||
10182 | * gnu-nat.h (gnu_debug_flag): Set type to bool. | |
10183 | ||
10184 | 2020-05-30 Jonny Grant <jg@jguk.org> | |
10185 | ||
10186 | * configure.ac (ACX_BUGURL): change bug URL to https. | |
10187 | ||
10188 | 2020-05-30 Pedro Alves <palves@redhat.com> | |
10189 | ||
10190 | * cp-support.c (replace_typedefs_template): New. | |
10191 | (replace_typedefs_qualified_name): Handle | |
10192 | DEMANGLE_COMPONENT_TEMPLATE. | |
10193 | ||
10194 | 2020-05-29 Simon Marchi <simon.marchi@efficios.com> | |
10195 | ||
10196 | * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c, | |
10197 | dwarf2/index-cache.h, dwarf2/index-write.c, | |
10198 | dwarf2/index-write.h, dwarf2/line-header.c, | |
10199 | dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h, | |
10200 | dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile | |
10201 | variables and fields from `dwarf2_per_objfile` to just | |
10202 | `per_objfile` throughout. | |
10203 | ||
10204 | 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca> | |
10205 | ||
10206 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
10207 | <push_dwarf_reg_entry_value>: Add comment. | |
10208 | ||
10209 | 2020-05-28 Kevin Buettner <kevinb@redhat.com> | |
10210 | Keith Seitz <keiths@redhat.com> | |
10211 | ||
10212 | * python/python.c (do_start_initialization): Call PyEval_SaveThread | |
10213 | instead of PyEval_ReleaseLock. | |
10214 | (class gdbpy_gil): Move to earlier in file. | |
10215 | (finalize_python): Set gdb_python_initialized. | |
10216 | (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early | |
10217 | when not initialized. | |
10218 | ||
10219 | 2020-05-28 Simon Marchi <simon.marchi@efficios.com> | |
10220 | ||
10221 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
10222 | <push_dwarf_reg_entry_value>: Remove assert. Override | |
10223 | per_objfile with caller_per_objfile. | |
10224 | ||
10225 | 2020-05-28 Tom de Vries <tdevries@suse.de> | |
10226 | ||
10227 | * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit | |
10228 | PR gold/15646 workaround to symbol kind "type". | |
10229 | ||
10230 | 2020-05-27 Tom Tromey <tromey@adacore.com> | |
10231 | ||
10232 | * dwarf2/read.c (load_partial_dies): Use add_partial_symbol. | |
10233 | ||
10234 | 2020-05-27 Tom Tromey <tromey@adacore.com> | |
10235 | ||
10236 | * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline. | |
10237 | Use htab_find_with_hash. | |
10238 | <add_abbrev>: Remove "abbrev_number" parameter. | |
10239 | * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove | |
10240 | "abbrev_number" parameter. Use htab_find_slot_with_hash. | |
10241 | (hash_abbrev): Add comment. | |
10242 | (abbrev_table::lookup_abbrev): Move to header file. | |
10243 | (abbrev_table::read): Update. | |
10244 | ||
10245 | 2020-05-27 Tom Tromey <tromey@adacore.com> | |
10246 | ||
10247 | * dwarf2/read.c (struct partial_die_info) <name>: Declare new | |
10248 | method. | |
10249 | <canonical_name>: New member. | |
10250 | <raw_name>: Rename from "name". | |
10251 | (partial_die_info): Initialize canonical_name. | |
10252 | (scan_partial_symbols): Check raw_name. | |
10253 | (partial_die_parent_scope, partial_die_full_name) | |
10254 | (add_partial_symbol, add_partial_subprogram) | |
10255 | (add_partial_enumeration, load_partial_dies): Use "name" method. | |
10256 | (partial_die_info::name): New method. | |
10257 | (partial_die_info::read, guess_partial_die_structure_name) | |
10258 | (partial_die_info::fixup): Update. | |
10259 | ||
10260 | 2020-05-27 Tom Tromey <tromey@adacore.com> | |
10261 | ||
10262 | * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline. | |
10263 | <get_ref_die_offset>: Inline. | |
10264 | <get_ref_die_offset_complaint>: New method. | |
10265 | * dwarf2/attribute.c (attribute::form_is_ref): Move to header. | |
10266 | (attribute::get_ref_die_offset_complaint): Rename from | |
10267 | get_ref_die_offset. Just issue complaint. | |
10268 | ||
10269 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> | |
10270 | ||
10271 | * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars. | |
10272 | ||
10273 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> | |
10274 | ||
10275 | * exec.c (exec_file_attach): Use errno value of first openp failure. | |
10276 | ||
10277 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> | |
10278 | ||
10279 | * nat/windows-nat.c (windows_thread_info::~windows_thread_info): | |
10280 | Don't close thread handle. | |
10281 | ||
10282 | 2020-05-27 Tom Tromey <tom@tromey.com> | |
10283 | Simon Marchi <simon.marchi@efficios.com> | |
10284 | ||
10285 | * objfiles.h (struct objfile) <partial_symtabs>: Now a | |
10286 | shared_ptr. | |
10287 | * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New | |
10288 | member. | |
10289 | * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key, | |
10290 | dwarf2_per_bfd_objfile_data_key>: New globals. | |
10291 | (dwarf2_has_info): Use shared dwarf2_per_bfd if possible. | |
10292 | (dwarf2_get_section_info): Use get_dwarf2_per_objfile. | |
10293 | (dwarf2_initialize_objfile): Consider cases where per_bfd can be | |
10294 | shared. | |
10295 | (dwarf2_build_psymtabs): Set objfile::partial_symtabs and | |
10296 | short-circuit when sharing. | |
10297 | (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs. | |
10298 | (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units. | |
10299 | ||
10300 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10301 | ||
10302 | * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move | |
10303 | to... | |
10304 | (struct dwarf2_per_objfile) <line_header_hash>: ... here. | |
10305 | * dwarf2/read.c (handle_DW_AT_stmt_list): Update. | |
10306 | ||
10307 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10308 | ||
10309 | * dwarf2/read.c (struct mapped_index_base) <symbol_name_at, | |
10310 | build_name_components, find_name_components_bounds>: | |
10311 | Add per_objfile parameter. | |
10312 | (struct mapped_index) <symbol_name_at>: Likewise. | |
10313 | (struct mapped_debug_names): Remove constructor. | |
10314 | <dwarf2_per_objfile>: Remove field. | |
10315 | <namei_to_name, symbol_name_at>: Add per_objfile parameter. | |
10316 | (mapped_index_base::find_name_components_bounds, | |
10317 | mapped_index_base::build_name_components, | |
10318 | dw2_expand_symtabs_matching_symbol): Likewise. | |
10319 | (class mock_mapped_index) <symbol_name_at>: Likewise. | |
10320 | (check_match): Likewise. | |
10321 | (check_find_bounds_finds): Likewise. | |
10322 | (test_mapped_index_find_name_component_bounds): Update. | |
10323 | (CHECK_MATCH): Update. | |
10324 | (dw2_expand_symtabs_matching): Update. | |
10325 | (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add | |
10326 | per_objfile parameter. | |
10327 | <find_vec_in_debug_names>: Likewise. | |
10328 | <m_per_objfile>: New field. | |
10329 | (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile | |
10330 | parameter. | |
10331 | (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise. | |
10332 | (dw2_debug_names_iterator::next): Update. | |
10333 | (dw2_debug_names_lookup_symbol): Update. | |
10334 | (dw2_debug_names_expand_symtabs_for_function): Update. | |
10335 | (dw2_debug_names_map_matching_symbols): Update. | |
10336 | (dw2_debug_names_expand_symtabs_matching): Update. | |
10337 | (dwarf2_read_debug_names): Update. | |
10338 | ||
10339 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10340 | ||
10341 | * dwarf2/read.h (struct dwarf2_cu): Forward-declare. | |
10342 | (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove, | |
10343 | move to dwarf2_per_objfile. | |
10344 | <read_in_chain>: Remove. | |
10345 | (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu, | |
10346 | remove_all_cus, age_comp_units>: New methods. | |
10347 | <m_dwarf2_cus>: New member. | |
10348 | (struct dwarf2_per_cu_data) <cu>: Remove. | |
10349 | * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove. | |
10350 | (age_cached_comp_units, free_one_cached_comp_unit): Remove, | |
10351 | moved to methods of dwarf2_per_objfile. | |
10352 | (dwarf2_clear_marks): Remove. | |
10353 | (dwarf2_queue_item::~dwarf2_queue_item): Update. | |
10354 | (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus. | |
10355 | (dwarf2_per_bfd::free_cached_comp_units): Remove. | |
10356 | (dwarf2_per_objfile::remove_all_cus): New. | |
10357 | (class free_cached_comp_units) <~free_cached_comp_units>: | |
10358 | Update. | |
10359 | (load_cu): Update. | |
10360 | (dw2_do_instantiate_symtab): Adjust. | |
10361 | (fill_in_sig_entry_from_dwo_entry): Adjust. | |
10362 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
10363 | (cutu_reader::cutu_reader): Likewise. | |
10364 | (cutu_reader::keep): Use dwarf2_per_objfile::set_cu. | |
10365 | (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu. | |
10366 | (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu | |
10367 | and dwarf2_per_objfile::age_comp_units. | |
10368 | (load_partial_comp_unit): Update. | |
10369 | (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu. | |
10370 | (process_queue): Likewise. | |
10371 | (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu | |
10372 | backlink. | |
10373 | (dwarf2_read_addr_index): Likewise. | |
10374 | (follow_die_offset): Likewise. | |
10375 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
10376 | (dwarf2_fetch_constant_bytes): Likewise. | |
10377 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
10378 | (follow_die_sig_1): Likewise. | |
10379 | (load_full_type_unit): Likewise. | |
10380 | (read_signatured_type): Likewise. | |
10381 | (dwarf2_cu::dwarf2_cu): Don't set cu field. | |
10382 | (dwarf2_cu::~dwarf2_cu): Remove. | |
10383 | (dwarf2_per_objfile::get_cu): New. | |
10384 | (dwarf2_per_objfile::set_cu): New. | |
10385 | (age_cached_comp_units): Rename to... | |
10386 | (dwarf2_per_objfile::age_comp_units): ... this. Adjust | |
10387 | to std::unordered_map. | |
10388 | (free_one_cached_comp_unit): Rename to... | |
10389 | (dwarf2_per_objfile::remove_cu): ... this. Adjust | |
10390 | to std::unordered_map. | |
10391 | (dwarf2_per_objfile::~dwarf2_per_objfile): New. | |
10392 | (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect | |
10393 | a dwarf2_per_objfile in data. | |
10394 | (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse. | |
10395 | (dwarf2_clear_marks): Remove. | |
10396 | ||
10397 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10398 | ||
10399 | * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace | |
10400 | `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`. | |
10401 | (init_tu_and_read_dwo_dies): Likewise. | |
10402 | (cutu_reader::init_tu_and_read_dwo_dies): Likewise. | |
10403 | (cutu_reader::cutu_reader): Likewise. | |
10404 | (load_partial_comp_unit): Likewise. | |
10405 | (process_psymtab_comp_unit): Update. | |
10406 | (build_type_psymtabs_1): Update. | |
10407 | (process_skeletonless_type_unit): Update. | |
10408 | (load_full_comp_unit): Update. | |
10409 | (find_partial_die): Update. | |
10410 | (dwarf2_read_addr_index): Update. | |
10411 | (read_signatured_type): Update. | |
10412 | ||
10413 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> | |
10414 | ||
10415 | * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header, | |
10416 | m_header_read_in>: New fields. | |
10417 | <get_header>: New method. | |
10418 | * dwarf2/read.c (per_cu_header_read_in): Remove. | |
10419 | (dwarf2_per_cu_data::get_header): New. | |
10420 | (dwarf2_per_cu_data::addr_size): Update. | |
10421 | (dwarf2_per_cu_data::offset_size): Update. | |
10422 | (dwarf2_per_cu_data::ref_addr_size): Update. | |
10423 | ||
10424 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> | |
10425 | ||
10426 | * dwarf2/read.c (load_cu): Return dwarf2_cu. | |
10427 | (dw2_do_instantiate_symtab): Update. | |
10428 | (queue_and_load_all_dwo_tus): Change parameter from | |
10429 | dwarf2_per_cu_data to dwarf2_cu. | |
10430 | (dwarf2_fetch_die_loc_sect_off): Update. | |
10431 | (dwarf2_fetch_constant_bytes): Update. | |
10432 | (dwarf2_fetch_die_type_sect_off): Update. | |
10433 | ||
10434 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> | |
10435 | ||
10436 | * dwarf2/read.c (process_full_comp_unit, | |
10437 | process_full_type_unit): Remove per_cu, per_objfile paramters. | |
10438 | Add dwarf2_cu parameter. | |
10439 | (process_queue): Update. | |
10440 | ||
10441 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> | |
10442 | ||
10443 | * dwarf2/read.c (create_cu_from_index_list): Replace | |
10444 | dwarf2_per_objfile parameter with dwarf2_per_bfd. | |
10445 | (create_cus_from_index_list): Likewise. | |
10446 | (create_cus_from_index): Likewise. | |
10447 | (create_signatured_type_table_from_index): Likewise. | |
10448 | (create_cus_from_debug_names_list): Likewise. | |
10449 | (create_cus_from_debug_names): Likewise. | |
10450 | (dwarf2_read_gdb_index): Update. | |
10451 | (dwarf2_read_debug_names): Update. | |
10452 | ||
10453 | 2020-05-27 Tom Tromey <tom@tromey.com> | |
10454 | Simon Marchi <simon.marchi@efficios.com> | |
10455 | ||
10456 | * dwarf2/read.h (struct dwarf2_per_objfile) | |
10457 | <get_type_for_signatured_type, set_type_for_signatured_type>: | |
10458 | New methods. | |
10459 | <m_type_map>: New member. | |
10460 | (struct signatured_type) <type>: Remove. | |
10461 | * dwarf2/read.c | |
10462 | (dwarf2_per_objfile::get_type_for_signatured_type, | |
10463 | dwarf2_per_objfile::set_type_for_signatured_type): New. | |
10464 | (get_signatured_type): Use new methods. | |
10465 | ||
10466 | 2020-05-27 Tom Tromey <tom@tromey.com> | |
10467 | Simon Marchi <simon.marchi@efficios.com> | |
10468 | ||
10469 | * dwarf2/read.h (struct type_unit_group_unshareable): New. | |
10470 | (struct dwarf2_per_objfile) <type_units>: New member. | |
10471 | <get_type_unit_group_unshareable>: New method. | |
10472 | * dwarf2/read.c (struct type_unit_group) <compunit_symtab, | |
10473 | num_symtabs, symtabs>: Remove; move to | |
10474 | type_unit_group_unshareable. | |
10475 | (dwarf2_per_objfile::get_type_unit_group_unshareable): New. | |
10476 | (process_full_type_unit, dwarf2_cu::setup_type_unit_groups) | |
10477 | (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable. | |
10478 | ||
10479 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10480 | ||
10481 | * dwarf2/read.h (struct dwarf2_per_cu_data): | |
10482 | <dwarf2_per_objfile>: Remove. | |
10483 | * dwarf2/read.c (create_cu_from_index_list): Don't assign | |
10484 | dwarf2_per_objfile. | |
10485 | (create_signatured_type_table_from_index): Likewise. | |
10486 | (create_signatured_type_table_from_debug_names): Likewise. | |
10487 | (create_debug_type_hash_table): Likewise. | |
10488 | (fill_in_sig_entry_from_dwo_entry): Likewise. | |
10489 | (create_type_unit_group): Likewise. | |
10490 | (read_comp_units_from_section): Likewise. | |
10491 | (create_cus_hash_table): Likewise. | |
10492 | ||
10493 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10494 | ||
10495 | * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to | |
10496 | dwarf2_per_cu_data::dwarf2_per_objfile. | |
10497 | (compute_compunit_symtab_includes): Likewise. | |
10498 | (dwarf2_cu::start_symtab): Likewise. | |
10499 | ||
10500 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> | |
10501 | ||
10502 | * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile | |
10503 | parameter. | |
10504 | * dwarf2/read.c (get_die_type_at_offset): Likewise. | |
10505 | (read_namespace_alias): Update. | |
10506 | (lookup_die_type): Update. | |
10507 | (dwarf2_get_die_type): Add dwarf2_per_objfile parameter. | |
10508 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>: | |
10509 | Update. | |
10510 | (disassemble_dwarf_expression): Update. | |
10511 | ||
10512 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10513 | ||
10514 | * dwarf2/read.h (struct dwarf2_queue_item): Add | |
10515 | dwarf2_per_objfile parameter, assign new parameter. | |
10516 | <per_objfile>: New field. | |
10517 | * dwarf2/read.c (free_one_cached_comp_unit): Add | |
10518 | dwarf2_per_objfile parameter. | |
10519 | (queue_comp_unit): Likewise. | |
10520 | (dw2_do_instantiate_symtab): Update. | |
10521 | (process_psymtab_comp_unit): Update. | |
10522 | (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter. | |
10523 | (process_imported_unit_die): Update. | |
10524 | (queue_and_load_dwo_tu): Update. | |
10525 | (follow_die_offset): Update. | |
10526 | (follow_die_sig_1): Update. | |
10527 | ||
10528 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10529 | ||
10530 | * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove. | |
10531 | * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down. | |
10532 | (read_call_site_scope): Assign per_objfile. | |
10533 | (dwarf2_per_cu_data::objfile): Remove. | |
10534 | * gdbtypes.h (struct call_site) <per_objfile>: New member. | |
10535 | * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add | |
10536 | dwarf2_per_objfile parameter. | |
10537 | * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add | |
10538 | dwarf2_per_objfile parameter. | |
10539 | (dwarf_expr_reg_to_entry_parameter): Add output | |
10540 | dwarf2_per_objfile parameter. | |
10541 | (locexpr_get_frame_base): Update. | |
10542 | (class dwarf_evaluate_loc_desc) <get_tls_address>: Update. | |
10543 | <push_dwarf_reg_entry_value>: Update. | |
10544 | <call_site_to_target_addr>: Update. | |
10545 | (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile | |
10546 | parameter. | |
10547 | (value_of_dwarf_reg_entry): Update. | |
10548 | (rw_pieced_value): Update. | |
10549 | (indirect_synthetic_pointer): Update. | |
10550 | (dwarf2_evaluate_property): Update. | |
10551 | (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile | |
10552 | parameter. | |
10553 | (locexpr_read_variable): Update. | |
10554 | (locexpr_get_symbol_read_needs): Update. | |
10555 | (loclist_read_variable): Update. | |
10556 | ||
10557 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10558 | ||
10559 | * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off, | |
10560 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
10561 | dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile | |
10562 | parameter. | |
10563 | * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off, | |
10564 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
10565 | dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile | |
10566 | parameter. | |
10567 | * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call, | |
10568 | sect_variable_value): Add dwarf2_per_objfile parameter. | |
10569 | (class dwarf_evaluate_loc_desc) <dwarf_call, | |
10570 | dwarf_variable_value>: Update. | |
10571 | (fetch_const_value_from_synthetic_pointer): Add | |
10572 | dwarf2_per_objfile parameter. | |
10573 | (fetch_const_value_from_synthetic_pointer): Update. | |
10574 | (coerced_pieced_ref): Update. | |
10575 | (class symbol_needs_eval_context) <dwarf_call, | |
10576 | dwarf_variable_value>: Update. | |
10577 | (dwarf2_compile_expr_to_ax): Update. | |
10578 | ||
10579 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10580 | ||
10581 | * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile | |
10582 | parameter. | |
10583 | (dwarf2_evaluate_loc_desc_full): Update. | |
10584 | ||
10585 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10586 | ||
10587 | * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile | |
10588 | parameter. | |
10589 | * dwarf2/read.c (dwarf2_read_addr_index): Likewise. | |
10590 | * dwarf2/loc.c (decode_debug_loclists_addresses): Add | |
10591 | dwarf2_per_objfile parameter. | |
10592 | (decode_debug_loc_dwo_addresses): Likewise. | |
10593 | (dwarf2_find_location_expression): Update. | |
10594 | (class dwarf_evaluate_loc_desc) <get_addr_index>: Update. | |
10595 | (locexpr_describe_location_piece): Add dwarf2_per_objfile | |
10596 | parameter. | |
10597 | (disassemble_dwarf_expression): Add dwarf2_per_objfile | |
10598 | parameter. | |
10599 | (locexpr_describe_location_1): Likewise. | |
10600 | (locexpr_describe_location): Update. | |
10601 | ||
10602 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10603 | ||
10604 | * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>: | |
10605 | Remove. | |
10606 | * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove. | |
10607 | * dwarf2/loc.c (dwarf2_find_location_expression): Update. | |
10608 | (dwarf2_compile_property_to_c): Update. | |
10609 | (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter, | |
10610 | use text offset from objfile. | |
10611 | (locexpr_tracepoint_var_ref): Update. | |
10612 | (locexpr_generate_c_location): Update. | |
10613 | (loclist_describe_location): Update. | |
10614 | (loclist_tracepoint_var_ref): Update. | |
10615 | * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add | |
10616 | dwarf2_per_objfile parameter. | |
10617 | * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise, | |
10618 | use text offset from objfile. | |
10619 | (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter. | |
10620 | ||
10621 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10622 | ||
10623 | * dwarf2/expr.h (struct dwarf_expr_context) | |
10624 | <dwarf_expr_context>: Add dwarf2_per_objfile parameter. | |
10625 | <offset>: Remove. | |
10626 | <per_objfile>: New member. | |
10627 | * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add | |
10628 | dwarf2_per_objfile parameter. Don't set offset, set | |
10629 | per_objfile. | |
10630 | (dwarf_expr_context::execute_stack_op): Use offset from objfile. | |
10631 | * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter) | |
10632 | a dwarf2_per_objfile object instead of an offset. | |
10633 | (class dwarf_expr_executor) <dwarf_expr_executor>: Add | |
10634 | constructor. | |
10635 | (execute_stack_op): Add dwarf2_per_objfile parameter, pass it | |
10636 | to dwarf2_expr_executor constructor. Don't set offset. | |
10637 | (dwarf2_fetch_cfa_info): Update. | |
10638 | (struct dwarf2_frame_cache) <text_offset>: Remove. | |
10639 | <per_objfile>: New field. | |
10640 | (dwarf2_frame_cache): Update. | |
10641 | (dwarf2_frame_prev_register): Update. | |
10642 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
10643 | <dwarf_evaluate_loc_desc>: Add constructor. | |
10644 | (dwarf2_evaluate_loc_desc_full): Update. | |
10645 | (dwarf2_locexpr_baton_eval): Update. | |
10646 | (class symbol_needs_eval_context) <symbol_needs_eval_context>: | |
10647 | Add constructor. | |
10648 | (dwarf2_loc_desc_get_symbol_read_needs): Update. | |
10649 | ||
10650 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10651 | ||
10652 | * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type, | |
10653 | addr_sized_int_type>: Move to dwarf2_cu. | |
10654 | <int_type>: Move to dwarf2_per_objfile. | |
10655 | (struct dwarf2_per_objfile) <int_type>: Move here. | |
10656 | * dwarf2/read.c (struct dwarf2_cu) <addr_type, | |
10657 | addr_sized_int_type>: Move here. | |
10658 | (read_func_scope): Update. | |
10659 | (read_array_type): Update. | |
10660 | (read_tag_string_type): Update. | |
10661 | (attr_to_dynamic_prop): Update. | |
10662 | (dwarf2_per_cu_data::int_type): Rename to... | |
10663 | (dwarf2_per_objfile::int_type): ... this. | |
10664 | (dwarf2_per_cu_data::addr_sized_int_type): Rename to... | |
10665 | (dwarf2_cu::addr_sized_int_type): ... this. | |
10666 | (read_subrange_type): Update. | |
10667 | (dwarf2_per_cu_data::addr_type): Rename to... | |
10668 | (dwarf2_cu::addr_type): ... this. | |
10669 | (set_die_type): Update. | |
10670 | ||
10671 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10672 | ||
10673 | * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile | |
10674 | data through per_cu->cu. | |
10675 | ||
10676 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10677 | ||
10678 | * dwarf2/read.c (lookup_dwo_comp_unit): Change | |
10679 | dwarf2_per_cu_data parameter fo dwarf2_cu. | |
10680 | (lookup_dwo_type_unit): Likewise. | |
10681 | (read_cutu_die_from_dwo): Likewise. | |
10682 | (lookup_dwo_unit): Likewise. | |
10683 | (open_and_init_dwo_file): Likewise. | |
10684 | (lookup_dwo_cutu): Likewise. | |
10685 | (lookup_dwo_comp_unit): Likewise. | |
10686 | (lookup_dwo_type_unit): Likewise. | |
10687 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
10688 | (cutu_reader::cutu_reader): Update. | |
10689 | ||
10690 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10691 | ||
10692 | * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile | |
10693 | parameter. | |
10694 | (process_full_type_unit): Likewise. | |
10695 | (process_queue): Update. | |
10696 | ||
10697 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10698 | ||
10699 | * dwarf2/read.c (recursively_compute_inclusions): Add | |
10700 | dwarf2_per_objfile parameter. | |
10701 | (compute_compunit_symtab_includes): Likewise. | |
10702 | (process_cu_includes): Update. | |
10703 | ||
10704 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10705 | ||
10706 | * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile | |
10707 | parameter. | |
10708 | (create_type_unit_group): Update. | |
10709 | (process_psymtab_comp_unit_reader): Update. | |
10710 | (build_type_psymtabs_reader): Update. | |
10711 | ||
10712 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10713 | ||
10714 | * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile | |
10715 | object through m_this_cu->cu. | |
10716 | ||
10717 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> | |
10718 | ||
10719 | * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as | |
10720 | the info parameter. | |
10721 | (queue_and_load_all_dwo_tus): Pass per_cu->cu. | |
10722 | ||
10723 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> | |
10724 | ||
10725 | * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add | |
10726 | per_objfile parameter. | |
10727 | (load_full_type_unit): Add per_objfile parameter. | |
10728 | (read_signatured_type): Likewise. | |
10729 | (load_full_comp_unit): Likewise. | |
10730 | (load_cu): Likewise. | |
10731 | (dw2_do_instantiate_symtab): Likewise. | |
10732 | (dw2_get_file_names): Likewise. | |
10733 | (dw2_map_symtabs_matching_filename): Update. | |
10734 | (dw_expand_symtabs_matching_file_matcher): Update. | |
10735 | (dw2_map_symbol_filenames): Update. | |
10736 | (process_psymtab_comp_unit): Add per_objfile parameter. | |
10737 | (build_type_psymtabs_1): Update. | |
10738 | (process_skeletonless_type_unit): Update. | |
10739 | (dwarf2_build_psymtabs_hard): Update. | |
10740 | (load_partial_comp_unit): Add per_objfile parameter. | |
10741 | (scan_partial_symbols): Update. | |
10742 | (load_full_comp_unit): Add per_objfile parameter. | |
10743 | (process_imported_unit_die): Update. | |
10744 | (create_cus_hash_table): Update. | |
10745 | (find_partial_die): Update. | |
10746 | (dwarf2_read_addr_index): Update. | |
10747 | (follow_die_offset): Update. | |
10748 | (dwarf2_fetch_die_loc_sect_off): Update. | |
10749 | (dwarf2_fetch_constant_bytes): Update. | |
10750 | (dwarf2_fetch_die_type_sect_off): Update. | |
10751 | (follow_die_sig_1): Update. | |
10752 | (load_full_type_unit): Add per_objfile parameter. | |
10753 | (read_signatured_type): Likewise. | |
10754 | ||
10755 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10756 | ||
10757 | * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead | |
10758 | of objfile_name. | |
10759 | ||
10760 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> | |
10761 | ||
10762 | * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member. | |
10763 | (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd. | |
10764 | * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd | |
10765 | field. | |
10766 | (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd. | |
10767 | (create_cus_from_index): Update. | |
10768 | (dwarf2_read_gdb_index): Update. | |
10769 | (create_cus_from_debug_names): Update. | |
10770 | (dwarf2_read_debug_names): Update. | |
10771 | (get_abbrev_section_for_cu): Update. | |
10772 | (create_all_comp_units): Update. | |
10773 | (read_attribute_value): Update. | |
10774 | (get_debug_line_section): Update. | |
10775 | * dwarf2/index-cache.c (index_cache::store): Update. | |
10776 | * dwarf2/index-write.c (save_gdb_index_command): Update. | |
10777 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Update. | |
10778 | ||
10779 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> | |
10780 | ||
10781 | * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New | |
10782 | member. | |
10783 | * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize | |
10784 | dwarf2_per_cu_data::per_bfd. | |
10785 | (dwarf2_per_bfd::allocate_signatured_type): Likewise. | |
10786 | (create_type_unit_group): Likewise. | |
10787 | (queue_comp_unit): Remove reference to | |
10788 | per_cu->dwarf2_per_objfile. | |
10789 | (maybe_queue_comp_unit): Likewise. | |
10790 | (fill_in_sig_entry_from_dwo_entry): Assign new field. | |
10791 | (create_cus_hash_table): Assign new field. | |
10792 | ||
10793 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10794 | ||
10795 | * dwarf2/read.c: Replace | |
10796 | dwarf2_cu->per_cu->dwarf2_per_objfile references with | |
10797 | dwarf2_cu->per_objfile throughout. | |
10798 | ||
10799 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10800 | ||
10801 | * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile | |
10802 | parameter, don't use per_cu->dwarf2_per_objfile. | |
10803 | (dw2_instantiate_symtab): Likewise. | |
10804 | (dw2_find_last_source_symtab): Update. | |
10805 | (dw2_map_expand_apply): Update. | |
10806 | (dw2_lookup_symbol): Update. | |
10807 | (dw2_expand_symtabs_for_function): Update. | |
10808 | (dw2_expand_all_symtabs): Update. | |
10809 | (dw2_expand_symtabs_with_fullname): Update. | |
10810 | (dw2_expand_symtabs_matching_one): Add per_objfile parameter, | |
10811 | don't use per_cu->dwarf2_per_objfile. | |
10812 | (dw2_expand_marked_cus): Update. | |
10813 | (dw2_find_pc_sect_compunit_symtab): Update. | |
10814 | (dw2_debug_names_lookup_symbol): Update. | |
10815 | (dw2_debug_names_expand_symtabs_for_function): Update. | |
10816 | (dw2_debug_names_map_matching_symbols): Update. | |
10817 | (dwarf2_psymtab::expand_psymtab): Update. | |
10818 | ||
10819 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10820 | ||
10821 | * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter. | |
10822 | <per_objfile>: New member. | |
10823 | (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter. | |
10824 | (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update | |
10825 | call to dwarf2_cu. | |
10826 | (cutu_reader::cutu_reader): Update. | |
10827 | (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile. | |
10828 | ||
10829 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> | |
10830 | ||
10831 | * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to | |
10832 | struct dwarf2_per_objfile. | |
10833 | (struct dwarf2_per_objfile) <die_type_hash>: Move from struct | |
10834 | dwarf2_per_bfd. | |
10835 | * dwarf2/read.c (set_die_type): Update. | |
10836 | (get_die_type_at_offset): Update. | |
10837 | ||
10838 | 2020-05-27 Tom Tromey <tom@tromey.com> | |
10839 | Simon Marchi <simon.marchi@efficios.com> | |
10840 | ||
10841 | * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New | |
10842 | method. | |
10843 | (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p, | |
10844 | get_symtab, set_symtab>: New methods. | |
10845 | <m_symtabs>: New field. | |
10846 | (struct dwarf2_psymtab): Derive from partial_symtab. | |
10847 | <readin_p, get_compunit_symtab>: Declare methods. | |
10848 | * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p, | |
10849 | dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab): | |
10850 | New methods. | |
10851 | (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove. | |
10852 | (dw2_do_instantiate_symtab, dw2_instantiate_symtab) | |
10853 | (dw2_map_expand_apply, dw2_map_symtabs_matching_filename) | |
10854 | (dw2_symtab_iter_next, dw2_print_stats) | |
10855 | (dw2_expand_symtabs_with_fullname) | |
10856 | (dw2_expand_symtabs_matching_one) | |
10857 | (dw_expand_symtabs_matching_file_matcher) | |
10858 | (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames) | |
10859 | (dw2_debug_names_iterator::next) | |
10860 | (dw2_debug_names_map_matching_symbols) | |
10861 | (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab) | |
10862 | (process_queue, dwarf2_psymtab::expand_psymtab): Update. | |
10863 | (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab): | |
10864 | New methods. | |
10865 | (get_compunit_symtab, process_full_comp_unit) | |
10866 | (process_full_type_unit): Update. | |
10867 | (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call | |
10868 | ||
10869 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> | |
10870 | ||
10871 | * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd, | |
10872 | then introduce a new dwarf2_per_objfile type. | |
10873 | <read_line_string>: Move to the new dwarf2_per_objfile type. | |
10874 | <objfile>: Likewise. | |
10875 | (dwarf2_per_bfd): Rename dwarf2_per_objfile to this. | |
10876 | * dwarf2/read.c: Replace references to dwarf2_per_objfile with | |
10877 | dwarf2_per_objfile->per_bfd. | |
10878 | (dwarf2_per_objfile::dwarf2_per_objfile): Rename to... | |
10879 | (dwarf2_per_bfd::dwarf2_per_bfd): ... this. | |
10880 | (dwarf2_per_objfile::free_cached_comp_units): Rename to... | |
10881 | (dwarf2_per_bfd::free_cached_comp_units): ... this. | |
10882 | (dwarf2_has_info): Allocate dwarf2_per_bfd. | |
10883 | (dwarf2_per_objfile::locate_sections): Rename to... | |
10884 | (dwarf2_per_bfd::locate_sections): ... this. | |
10885 | (dwarf2_per_objfile::get_cutu): Rename to... | |
10886 | (dwarf2_per_bfd::get_cutu): ... this. | |
10887 | (dwarf2_per_objfile::get_cu): Rename to... | |
10888 | (dwarf2_per_bfd::get_cu): ... this. | |
10889 | (dwarf2_per_objfile::get_tu): Rename to... | |
10890 | (dwarf2_per_bfd::get_tu): ... this. | |
10891 | (dwarf2_per_objfile::allocate_per_cu): Rename to... | |
10892 | (dwarf2_per_bfd::allocate_per_cu): ... this. | |
10893 | (dwarf2_per_objfile::allocate_signatured_type): Rename to... | |
10894 | (dwarf2_per_bfd::allocate_signatured_type): ... this. | |
10895 | (get_gdb_index_contents_ftype): Change parameter from | |
10896 | dwarf2_per_objfile to dwarf2_per_bfd. | |
10897 | * dwarf2/macro.c, dwarf2/index-write.c: Replace references to | |
10898 | dwarf2_per_objfile with dwarf2_per_objfile->per_bfd. | |
10899 | ||
10900 | 2020-05-27 Tom Tromey <tom@tromey.com> | |
10901 | Simon Marchi <simon.marchi@efficios.com> | |
10902 | ||
10903 | * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member. | |
10904 | (allocate_piece_closure): Set "per_objfile" member. | |
10905 | (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval) | |
10906 | (locexpr_describe_location, loclist_describe_location): Use new | |
10907 | member. | |
10908 | * dwarf2/read.c (read_call_site_scope) | |
10909 | (mark_common_block_symbol_computed, attr_to_dynamic_prop) | |
10910 | (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off) | |
10911 | (fill_in_loclist_baton, dwarf2_symbol_mark_computed, | |
10912 | handle_data_member_location): Set per_objfile member. | |
10913 | * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New | |
10914 | member. | |
10915 | (struct dwarf2_loclist_baton) <per_objfile>: New member. | |
10916 | ||
10917 | 2020-05-27 Tom Tromey <tom@tromey.com> | |
10918 | ||
10919 | * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu, | |
10920 | allocate_signatured_type>: Declare new methods. | |
10921 | <m_num_psymtabs>: New member. | |
10922 | (struct dwarf2_per_cu_data) <index>: New member. | |
10923 | * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu) | |
10924 | (dwarf2_per_objfile::allocate_signatured_type): New methods. | |
10925 | (create_cu_from_index_list): Use allocate_per_cu. | |
10926 | (create_signatured_type_table_from_index) | |
10927 | (create_signatured_type_table_from_debug_names) | |
10928 | (create_debug_type_hash_table, add_type_unit) | |
10929 | (read_comp_units_from_section): Use allocate_signatured_type. | |
10930 | ||
10931 | 2020-05-27 Tom Tromey <tom@tromey.com> | |
10932 | ||
10933 | * psymtab.c (partial_map_expand_apply) | |
10934 | (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol) | |
10935 | (psym_lookup_global_symbol_language) | |
10936 | (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab) | |
10937 | (psym_print_stats, psym_expand_symtabs_for_function) | |
10938 | (psym_map_symbol_filenames, psym_map_matching_symbols) | |
10939 | (psym_expand_symtabs_matching) | |
10940 | (partial_symtab::read_dependencies, maintenance_info_psymtabs) | |
10941 | (maintenance_check_psymtabs): Update. | |
10942 | * psympriv.h (struct partial_symtab) <readin_p, | |
10943 | get_compunit_symtab>: Add objfile parameter. | |
10944 | (struct standard_psymtab) <readin_p, get_compunit_symtab>: | |
10945 | Likewise. | |
10946 | * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p, | |
10947 | get_compunit_symtab>: Likewise. | |
10948 | (dwarf2_psymtab::expand_psymtab): Pass objfile argument. | |
10949 | ||
10950 | 2020-05-27 Tom Tromey <tom@tromey.com> | |
10951 | ||
10952 | * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New | |
10953 | member. | |
10954 | * dwarf2/read.c (delete_file_name_entry): Fix comment. | |
10955 | (create_cu_from_index_list) | |
10956 | (create_signatured_type_table_from_index) | |
10957 | (create_signatured_type_table_from_debug_names) | |
10958 | (dw2_get_file_names_reader, dwarf2_initialize_objfile) | |
10959 | (dwarf2_create_include_psymtab) | |
10960 | (create_debug_type_hash_table, add_type_unit) | |
10961 | (create_type_unit_group, read_comp_units_from_section) | |
10962 | (dwarf2_compute_name, create_cus_hash_table) | |
10963 | (create_dwp_hash_table, create_dwo_unit_in_dwp_v1) | |
10964 | (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new | |
10965 | obstack. | |
10966 | (dw2_get_real_path): Likewise. Change argument to | |
10967 | dwarf2_per_objfile. | |
10968 | ||
10969 | 2020-05-27 Luis Machado <luis.machado@linaro.org> | |
10970 | ||
10971 | PR tdep/26000 | |
10972 | * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching | |
10973 | for ldrd (immediate). | |
10974 | ||
10975 | 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
10976 | ||
10977 | * command.h: Add comment giving the name of class_tui. | |
10978 | * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined, | |
10979 | create the fake command for the help for class_tui. | |
10980 | ||
10981 | 2020-05-26 Tom Tromey <tromey@adacore.com> | |
10982 | ||
10983 | * ada-lang.c (ada_print_array_index): Change type. Call val_atr. | |
10984 | (ada_value_ptr_subscript): Don't call pos_atr on the lower bound. | |
10985 | (val_atr): New function. | |
10986 | (value_val_atr): Use it. | |
10987 | * ada-valprint.c (print_optional_low_bound): Change low bound | |
10988 | handling for enums. | |
10989 | (val_print_packed_array_elements): Don't call discrete_position. | |
10990 | * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call | |
10991 | discrete_position for enum types. | |
10992 | * language.c (default_print_array_index): Change type. | |
10993 | * language.h (struct language_defn) <la_print_array_index>: Add | |
10994 | index_type parameter, change type of index_value. | |
10995 | (LA_PRINT_ARRAY_INDEX): Add index_type parameter. | |
10996 | (default_print_array_index): Update. | |
10997 | * valprint.c (maybe_print_array_index): Don't call | |
10998 | value_from_longest. Update. | |
10999 | (value_print_array_elements): Don't call discrete_position. | |
11000 | ||
11001 | 2020-05-26 Tom Tromey <tromey@adacore.com> | |
11002 | ||
11003 | * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE. | |
11004 | * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE. | |
11005 | ||
11006 | 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com> | |
11007 | ||
11008 | PR gdb/13519 | |
11009 | * avr-tdep.c (avr_integer_to_address): Return data or code | |
11010 | address accordingly to the second 'type' argument of the | |
11011 | function. | |
11012 | ||
11013 | 2020-05-25 Michael Weghorn <m.weghorn@posteo.de> | |
11014 | ||
11015 | * infcmd.c, inferior.h: (construct_inferior_arguments): | |
11016 | Moved function from here to gdbsupport/common-inferior.{h,cc} | |
11017 | ||
11018 | 2020-05-23 Tom Tromey <tom@tromey.com> | |
11019 | ||
11020 | Revert commit eca1f90c: | |
11021 | * NEWS: Remove entry for completion styling. | |
11022 | * completer.c (_rl_completion_prefix_display_length): Move | |
11023 | declaration later. | |
11024 | (gdb_fnprint): Revert. | |
11025 | (gdb_display_match_list_1): Likewise. | |
11026 | * cli/cli-style.c (completion_prefix_style) | |
11027 | (completion_difference_style, completion_suffix_style): Remove. | |
11028 | (_initialize_cli_style): Revert. | |
11029 | * cli/cli-style.h (completion_prefix_style) | |
11030 | (completion_difference_style, completion_suffix_style): Don't | |
11031 | declare. | |
11032 | ||
11033 | 2020-05-24 Pedro Alves <palves@redhat.com> | |
11034 | ||
11035 | * symtab.c (completion_list_add_name): Return boolean indication | |
11036 | of whether the symbol matched. | |
11037 | (completion_list_add_symbol): Don't try to remove C++ aliases if | |
11038 | the symbol didn't match in the first place. | |
11039 | * symtab.h (completion_list_add_name): Return bool. | |
11040 | ||
11041 | 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca> | |
11042 | ||
11043 | * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with | |
11044 | type::field. | |
11045 | ||
11046 | 2020-05-23 Joel Brobecker <brobecker@adacore.com> | |
11047 | ||
11048 | GDB 9.2 released. | |
11049 | ||
11050 | 2020-05-23 Tom Tromey <tom@tromey.com> | |
11051 | ||
11052 | * NEWS: Add entry for completion styling. | |
11053 | * completer.c (_rl_completion_prefix_display_length): Move | |
11054 | declaration earlier. | |
11055 | (gdb_fnprint): Use completion_style. | |
11056 | (gdb_display_match_list_1): Likewise. | |
11057 | * cli/cli-style.c (completion_prefix_style) | |
11058 | (completion_difference_style, completion_suffix_style): New | |
11059 | globals. | |
11060 | (_initialize_cli_style): Register new globals. | |
11061 | * cli/cli-style.h (completion_prefix_style) | |
11062 | (completion_difference_style, completion_suffix_style): Declare. | |
11063 | ||
11064 | 2020-05-23 Pedro Alves <palves@redhat.com> | |
11065 | ||
11066 | * utils.c: Include "gdbsupport/gdb-safe-ctype.h". | |
11067 | (parse_escape): Use ISDIGIT instead of isdigit. | |
11068 | (puts_debug): Use gdb_isprint instead of isprint. | |
11069 | (fprintf_symbol_filtered): Use ISALNUM instead of isalnum. | |
11070 | (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use | |
11071 | ISSPACE instead of isspace. | |
11072 | (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE | |
11073 | instead of isspace. | |
11074 | (strcmp_iw_ordered): Use ISSPACE instead of isspace. | |
11075 | (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT | |
11076 | instead of isxdigit and ISDIGIT instead of isdigit. | |
11077 | ||
11078 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> | |
11079 | ||
11080 | * gdbtypes.h (struct type) <field>: New method. | |
11081 | (TYPE_FIELDS): Remove, replace all uses with either type::fields | |
11082 | or type::field. | |
11083 | ||
11084 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> | |
11085 | ||
11086 | * gdbtypes.h (struct type) <fields, set_fields>: New methods. | |
11087 | (TYPE_FIELDS): Use type::fields. Change all call sites that | |
11088 | modify the propery to use type::set_fields instead. | |
11089 | ||
11090 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> | |
11091 | ||
11092 | * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use | |
11093 | type::num_fields instead. | |
11094 | ||
11095 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> | |
11096 | ||
11097 | * gdbtypes.h (struct type) <num_fields, set_num_fields>: New | |
11098 | methods. | |
11099 | (TYPE_NFIELDS): Use type::num_fields. Change all call sites | |
11100 | that modify the number of fields to use type::set_num_fields | |
11101 | instead. | |
11102 | ||
11103 | 2020-05-22 Tom Tromey <tromey@adacore.com> | |
11104 | ||
11105 | * compile/compile-object-load.h (munmap_list_free): Don't | |
11106 | declare. | |
11107 | ||
11108 | 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com> | |
11109 | ||
11110 | * annotate.c (annotate_source_line): Update return type, add call | |
11111 | to update current symtab and line. | |
11112 | * annotate.h (annotate_source_line): Update return type, and | |
11113 | extend header comment. | |
11114 | * source.c (info_line_command): Check annotation_level before | |
11115 | calling annotate_source_line. | |
11116 | * stack.c (print_frame_info): If calling annotate_source_line | |
11117 | returns true, then don't print any other source line information. | |
11118 | ||
11119 | 2020-05-21 Simon Marchi <simon.marchi@efficios.com> | |
11120 | ||
11121 | * lm32-tdep.c (lm32_register_reggroup_p): Fix condition. | |
11122 | ||
11123 | 2020-05-21 Simon Marchi <simon.marchi@efficios.com> | |
11124 | ||
11125 | * coffread.c (patch_type): Remove NULL check before xfree. | |
11126 | * corefile.c (set_gnutarget): Likewise. | |
11127 | * cp-abi.c (set_cp_abi_as_auto_default): Likewise. | |
11128 | * exec.c (build_section_table): Likewise. | |
11129 | * remote.c (remote_target::pass_signals): Likewise. | |
11130 | * utils.c (n_spaces): Likewise. | |
11131 | * cli/cli-script.c (document_command): Likewise. | |
11132 | * i386-windows-tdep.c (core_process_module_section): Likewise. | |
11133 | * linux-fork.c (struct fork_info) <~fork_info>: Likewise. | |
11134 | ||
11135 | 2020-05-20 Simon Marchi <simon.marchi@efficios.com> | |
11136 | ||
11137 | * symfile.c (reread_symbols): Clear objfile's section_offsets | |
11138 | vector and section indices, re-compute them by calling | |
11139 | sym_offsets. | |
11140 | ||
11141 | 2020-05-20 Tom Tromey <tromey@adacore.com> | |
11142 | ||
11143 | * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove. | |
11144 | (desc_one_bound, desc_index_type): Compute field name. | |
11145 | ||
11146 | 2020-05-20 Tom de Vries <tdevries@suse.de> | |
11147 | ||
11148 | PR symtab/25833 | |
11149 | * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index. | |
11150 | ||
11151 | 2020-05-20 Alan Modra <amodra@gmail.com> | |
11152 | ||
11153 | PR 25993 | |
11154 | * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for | |
11155 | bfd_set_filename. | |
11156 | * solib-aix.c (solib_aix_bfd_open): Use std::string for name | |
11157 | passed to bfd_set_filename. | |
11158 | * symfile-mem.c (add_vsyscall_page): Likewise for string | |
11159 | passed to symbol_file_add_from_memory. | |
11160 | (symbol_file_add_from_memory): Make name param a const char* and | |
11161 | don't strdup. | |
11162 | ||
11163 | 2020-05-20 Alan Modra <amodra@gmail.com> | |
11164 | ||
11165 | * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename | |
11166 | rather than accessing bfd->filename directly. | |
11167 | * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise, | |
11168 | and use bfd_section_name. | |
11169 | * dwarf2/frame.c (decode_frame_entry): Likewise. | |
11170 | * exec.c (exec_set_section_address): Likewise. | |
11171 | * solib-aix.c (solib_aix_bfd_open): Likewise. | |
11172 | * stap-probe.c (get_stap_base_address): Likewise. | |
11173 | * symfile.c (reread_symbols): Likewise. | |
11174 | ||
11175 | 2020-05-19 Tom Tromey <tromey@adacore.com> | |
11176 | ||
11177 | * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open. | |
11178 | ||
11179 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> | |
11180 | ||
11181 | * dwarf2/read.c (quirk_rust_enum): Allocate enough fields. | |
11182 | ||
11183 | 2020-05-19 Pedro Alves <palves@redhat.com> | |
11184 | ||
11185 | * NEWS (set exec-file-mismatch): Adjust entry. | |
11186 | * exec.c: Include "build-id.h". | |
11187 | (validate_exec_file): Try to match build IDs instead of filenames. | |
11188 | * gdb_bfd.c (struct gdb_bfd_open_closure): New. | |
11189 | (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure | |
11190 | and pass down 'warn_if_slow'. | |
11191 | (gdb_bfd_open): Add 'warn_if_slow' parameter. Use | |
11192 | gdb_bfd_open_closure to pass it down. | |
11193 | * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter. | |
11194 | ||
11195 | 2020-05-19 Pedro Alves <palves@redhat.com> | |
11196 | ||
11197 | * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust. | |
11198 | * target.c (target_fileio_open_1): Rename to target_fileio_open | |
11199 | and make extern. Use bool. | |
11200 | (target_fileio_open, target_fileio_open_warn_if_slow): Delete. | |
11201 | (target_fileio_read_alloc_1): Adjust. | |
11202 | * target.h (target_fileio_open): Add 'warn_if_slow' parameter. | |
11203 | (target_fileio_open_warn_if_slow): Delete declaration. | |
11204 | ||
11205 | 2020-05-19 Pedro Alves <palves@redhat.com> | |
11206 | ||
11207 | * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1. | |
11208 | Adjust all callers. | |
11209 | ||
11210 | 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp> | |
11211 | ||
11212 | * h8300-tdep.c (h8300_is_argument_spill): Change how we check | |
11213 | whether disp is negative. | |
11214 | ||
11215 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> | |
11216 | ||
11217 | * symfile.h (struct symfile_segment_data) | |
11218 | <~symfile_segment_data>: Remove. | |
11219 | <segment_info>: Change to std::vector. | |
11220 | * symfile.c (default_symfile_segments): Update. | |
11221 | * elfread.c (elf_symfile_segments): Update. | |
11222 | ||
11223 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> | |
11224 | ||
11225 | * symfile.h (struct symfile_segment_data) <struct segment>: New. | |
11226 | <segments>: New. | |
11227 | <segment_bases, segment_sizes>: Remove. | |
11228 | * symfile.c (default_symfile_segments): Update. | |
11229 | * elfread.c (elf_symfile_segments): Update. | |
11230 | * remote.c (remote_target::get_offsets): Update. | |
11231 | * solib-target.c (solib_target_relocate_section_addresses): | |
11232 | Update. | |
11233 | ||
11234 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> | |
11235 | ||
11236 | * symfile.h (struct symfile_segment_data): Initialize fields. | |
11237 | <~symfile_segment_data>: Add. | |
11238 | (symfile_segment_data_up): New. | |
11239 | (struct sym_fns) <sym_segments>: Return a | |
11240 | symfile_segment_data_up. | |
11241 | (default_symfile_segments): Return a symfile_segment_data_up. | |
11242 | (free_symfile_segment_data): Remove. | |
11243 | (get_symfile_segment_data): Return a symfile_segment_data_up. | |
11244 | * symfile.c (default_symfile_segments): Likewise. | |
11245 | (get_symfile_segment_data): Likewise. | |
11246 | (free_symfile_segment_data): Remove. | |
11247 | (symfile_find_segment_sections): Update. | |
11248 | * elfread.c (elf_symfile_segments): Return a | |
11249 | symfile_segment_data_up. | |
11250 | * remote.c (remote_target::get_offsets): Update. | |
11251 | * solib-target.c (solib_target_relocate_section_addresses): | |
11252 | Update. | |
11253 | * symfile-debug.c (debug_sym_segments): Return a | |
11254 | symfile_segment_data_up. | |
11255 | ||
11256 | 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
11257 | ||
11258 | PR build/25981 | |
11259 | * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap): | |
11260 | Hardcode register numbers. | |
11261 | ||
11262 | PR build/25981 | |
11263 | * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry, | |
11264 | procfs_find_LDT_entry): Remove. | |
11265 | * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd, | |
11266 | procfs_find_LDT_entry): Remove. | |
11267 | * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT): | |
11268 | Remove. | |
11269 | ||
11270 | 2020-05-17 Pedro Alves <palves@redhat.com> | |
11271 | Andrew Burgess <andrew.burgess@embecosm.com> | |
11272 | Keno Fischer <keno@juliacomputing.com> | |
11273 | ||
11274 | PR gdb/25741 | |
11275 | * breakpoint.c (build_target_condition_list): Update comments. | |
11276 | (build_target_command_list): Update comments and skip matching | |
11277 | locations. | |
11278 | (insert_bp_location): Move "set breakpoint auto-hw on" handling to | |
11279 | a separate function. Simplify "set breakpoint auto-hw off" | |
11280 | handling. | |
11281 | (insert_breakpoints): Update comment. | |
11282 | (tracepoint_locations_match): New parameter. For breakpoints, | |
11283 | compare location types too, if the caller wants to. | |
11284 | (handle_automatic_hardware_breakpoints): New functions. | |
11285 | (bp_location_is_less_than): Also sort by location type and | |
11286 | hardware breakpoint length. | |
11287 | (update_global_location_list): Handle "set breakpoint auto-hw on" | |
11288 | here. | |
11289 | (update_breakpoint_locations): Ask breakpoint_locations_match to | |
11290 | ignore location types. | |
11291 | ||
11292 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> | |
11293 | ||
11294 | * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use | |
11295 | type::name instead. | |
11296 | ||
11297 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> | |
11298 | ||
11299 | * gdbtypes.h (struct type) <name, set_name>: New methods. | |
11300 | (TYPE_CODE): Use type::name. Change all call sites used to set | |
11301 | the name to use type::set_name instead. | |
11302 | ||
11303 | 2020-05-16 Tom Tromey <tom@tromey.com> | |
11304 | ||
11305 | * top.c (quit_force): Update. | |
11306 | * infrun.c (handle_no_resumed): Update. | |
11307 | * top.h (all_uis): New function. | |
11308 | (ALL_UIS): Remove. | |
11309 | ||
11310 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> | |
11311 | ||
11312 | * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition. | |
11313 | ||
11314 | 2020-05-16 Pedro Alves <palves@redhat.com> | |
11315 | ||
11316 | * ia64-linux-nat.c | |
11317 | (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>: | |
11318 | Declare method. | |
11319 | (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target. | |
11320 | ||
11321 | 2020-05-15 Simon Marchi <simon.marchi@efficios.com> | |
11322 | ||
11323 | * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct). | |
11324 | (sparc64_adi_info): Likewise. | |
11325 | ||
11326 | 2020-05-15 Tom Tromey <tom@tromey.com> | |
11327 | ||
11328 | * symtab.c (lookup_language_this, lookup_symbol_aux): Use | |
11329 | block_objfile. | |
11330 | (lookup_objfile_from_block): Remove. | |
11331 | (lookup_symbol_in_block, lookup_symbol_in_static_block) | |
11332 | (lookup_global_symbol): Use block_objfile. | |
11333 | * symtab.h (lookup_objfile_from_block): Don't declare. | |
11334 | * printcmd.c (clear_dangling_display_expressions): Use | |
11335 | block_objfile. | |
11336 | * parse.c (operator_check_standard): Use block_objfile. | |
11337 | ||
11338 | 2020-05-15 Tom Tromey <tom@tromey.com> | |
11339 | ||
11340 | * language.c (language_alloc_type_symbol): Set | |
11341 | SYMBOL_SECTION. | |
11342 | * symtab.c (initialize_objfile_symbol): Remove. | |
11343 | (allocate_symbol): Remove. | |
11344 | (allocate_template_symbol): Remove. | |
11345 | * dwarf2/read.c (fixup_go_packaging): Use "new". | |
11346 | (new_symbol): Use "new". | |
11347 | (read_variable): Don't call initialize_objfile_symbol. Use | |
11348 | "new". | |
11349 | (read_func_scope): Use "new". | |
11350 | * xcoffread.c (process_xcoff_symbol): Don't call | |
11351 | initialize_objfile_symbol. | |
11352 | (SYMBOL_DUP): Remove. | |
11353 | * coffread.c (process_coff_symbol, coff_read_enum_type): Use | |
11354 | "new". | |
11355 | * symtab.h (allocate_symbol, initialize_objfile_symbol) | |
11356 | (allocate_template_symbol): Don't declare. | |
11357 | (struct symbol): Add copy constructor. Change defaults. | |
11358 | * jit.c (finalize_symtab): Use "new". | |
11359 | * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb): | |
11360 | Use "new". | |
11361 | * stabsread.c (patch_block_stabs, define_symbol, read_enum_type) | |
11362 | (common_block_end): Use "new". | |
11363 | * mdebugread.c (parse_symbol): Use "new". | |
11364 | (new_symbol): Likewise. | |
11365 | ||
11366 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
11367 | ||
11368 | * NEWS: Mention changes to help and apropos. | |
11369 | ||
11370 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
11371 | ||
11372 | * command.h (enum command_class): Improve comments, document | |
11373 | that class_alias is for user-defined aliases, give the class | |
11374 | name for each class, remove unused class_xdb. | |
11375 | * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage. | |
11376 | * breakpoint.c (_initialize_breakpoint): Replace class_alias | |
11377 | by a precise class. | |
11378 | * infcmd.c (_initialize_infcmd): Likewise. | |
11379 | * reverse.c (_initialize_reverse): Likewise. | |
11380 | * stack.c (_initialize_stack): Likewise. | |
11381 | * symfile.c (_initialize_symfile): Likewise. | |
11382 | * tracepoint.c (_initialize_tracepoint): Likewise. | |
11383 | ||
11384 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
11385 | ||
11386 | * cli/cli-decode.c (apropos_cmd): Produce output for aliases | |
11387 | when their aliased command is traversed. | |
11388 | (help_cmd): Add fput_command_names_styled call to | |
11389 | output command name and aliases when command has an alias. | |
11390 | ||
11391 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
11392 | ||
11393 | * cli/cli-decode.h (help_cmd_list): Remove declaration. | |
11394 | * cli/cli-decode.c (help_cmd_list): Declare as static, | |
11395 | remove prefix argument, use bool for recurse arg, rework to show the aliases of | |
11396 | a command together with the command. | |
11397 | (fput_command_name_styled, fput_command_names_styled): New functions. | |
11398 | (print_help_for_command): Remove prefix arg, use bool for recurse arg, use | |
11399 | fput_command_name_styled. | |
11400 | (help_list, help_all): Update callers to remove prefix arg and use bool recurse. | |
11401 | * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc. | |
11402 | ||
11403 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
11404 | ||
11405 | * cli/cli-setshow.h (cmd_show_list): Remove prefix argument. | |
11406 | * cli/cli-decode.c (do_show_prefix_cmd): Likewise. | |
11407 | * command.h (cmd_show_list): Likewise. | |
11408 | * dwarf2/index-cache.c (show_index_cache_command): Likewise. | |
11409 | * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases. | |
11410 | ||
11411 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
11412 | ||
11413 | * unittests/command-def-selftests.c (traverse_command_structure): | |
11414 | Verify all commands of a list have the same prefix command and | |
11415 | that only the top cmdlist commands have a null prefix. | |
11416 | ||
11417 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
11418 | ||
11419 | * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command | |
11420 | as prefix, not one of its aliases. | |
11421 | (set_cmd_prefix): Remove. | |
11422 | (do_add_cmd): Centralize the setting of the prefix of a command, when | |
11423 | command is defined after its full chain of prefix commands. | |
11424 | (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it. | |
11425 | (add_setshow_cmd_full): Likewise. | |
11426 | (update_prefix_field_of_prefixed_commands): New function. | |
11427 | (add_prefix_cmd): Replace non working call to set_cmd_prefix by | |
11428 | update_prefix_field_of_prefixed_commands. | |
11429 | * gdb/remote-fileio.c (initialize_remote_fileio): Use the real | |
11430 | addresses of remote_set_cmdlist and remote_show_cmdlist given | |
11431 | as argument, not the address of an argument. | |
11432 | * gdb/remote-fileio.h (initialize_remote_fileio): Likewise. | |
11433 | * gdb/remote.c (_initialize_remote): Likewise. | |
11434 | ||
11435 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
11436 | ||
11437 | * cli/cli-cmds.c (alias_command): Check for an existing alias | |
11438 | using lookup_cmd_composition, as valid_command_p is too strict | |
11439 | and forbids aliases that are the prefix of an existing alias | |
11440 | or command. | |
11441 | * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix | |
11442 | command is properly recognised as a valid command. | |
11443 | ||
11444 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
11445 | ||
11446 | * unittests/help-doc-selftests.c: Rename to | |
11447 | unittests/command-def-selftests.c | |
11448 | * unittests/command-def-selftests.c (help_doc_tests): Update some | |
11449 | comments. | |
11450 | (command_structure_tests, traverse_command_structure): New namespace | |
11451 | and function. | |
11452 | (command_structure_invariants_tests): New function. | |
11453 | (_initialize_command_def_selftests) Renamed from | |
11454 | _initialize_help_doc_selftests, register command_structure_invariants | |
11455 | selftest. | |
11456 | ||
11457 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
11458 | ||
11459 | * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as | |
11460 | an alias of 'show'. | |
11461 | ||
11462 | 2020-05-15 Joel Brobecker <brobecker@adacore.com> | |
11463 | ||
11464 | * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames | |
11465 | ada_is_fixed_point_type. Update all callers. | |
11466 | (gnat_encoded_fixed_point_delta): Renames ada_delta. Update | |
11467 | all callers. | |
11468 | * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info. | |
11469 | Update all callers. | |
11470 | * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames | |
11471 | print_fixed_point_type. Update all callers. | |
11472 | * ada-valprint.c (ada_value_print_num): Replace call to | |
11473 | ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type. | |
11474 | ||
11475 | 2020-05-14 Kevin Buettner <kevinb@redhat.com> | |
11476 | ||
11477 | * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD | |
11478 | processors. | |
11479 | (cpu_supports_bts): Add CV_AMD case. | |
11480 | ||
11481 | 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com> | |
11482 | Simon Marchi <simon.marchi@efficios.com> | |
11483 | ||
11484 | * infrun.c (stop_all_threads): Collect multiple wait events at | |
11485 | each pass. | |
11486 | ||
11487 | 2020-05-14 Simon Marchi <simon.marchi@efficios.com> | |
11488 | ||
11489 | * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use | |
11490 | type::code instead. | |
11491 | ||
11492 | 2020-05-14 Simon Marchi <simon.marchi@efficios.com> | |
11493 | ||
11494 | * gdbtypes.h (struct type) <code, set_code>: New methods. | |
11495 | (TYPE_CODE): Use type::code. Change all call sites used to set | |
11496 | the code to use type::set_code instead. | |
11497 | ||
11498 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
11499 | Tom de Vries <tdevries@suse.de> | |
11500 | Pedro Alves <palves@redhat.com> | |
11501 | ||
11502 | PR threads/25478 | |
11503 | * infrun.c (stop_all_threads): Do NOT ignore | |
11504 | TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED, | |
11505 | TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses | |
11506 | received. | |
11507 | (handle_no_resumed): Remove code handling a live inferior with no | |
11508 | threads. | |
11509 | * remote.c (has_single_non_exited_thread): New. | |
11510 | (remote_target::update_thread_list): Do not delete a thread if is | |
11511 | the last thread of the process. | |
11512 | * thread.c (thread_select): Call delete_exited_threads instead of | |
11513 | prune_threads. | |
11514 | ||
11515 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
11516 | ||
11517 | * infrun.c (stop_all_threads): Enable/disable thread events of all | |
11518 | targets. Move a debug message denoting the end of the function | |
11519 | into the SCOPED_EXIT block. | |
11520 | ||
11521 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
11522 | ||
11523 | * process-stratum-target.h: Include <set>. | |
11524 | (all_non_exited_process_targets, switch_to_target_no_thread): New | |
11525 | function declarations. | |
11526 | * process-stratum-target.c (all_non_exited_process_targets) | |
11527 | (switch_to_target_no_thread): New function implementations. | |
11528 | ||
11529 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
11530 | ||
11531 | * infrun.c (handle_inferior_event): Extract out a piece of code | |
11532 | into... | |
11533 | (mark_non_executing_threads): ...this new function. | |
11534 | ||
11535 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
11536 | ||
11537 | * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first | |
11538 | use. | |
11539 | ||
11540 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
11541 | ||
11542 | * regcache.c (regcache_read_pc_protected): New function | |
11543 | implementation that returns 0 if the PC cannot read via | |
11544 | 'regcache_read_pc'. | |
11545 | * infrun.c (proceed): Call 'regcache_read_pc_protected' | |
11546 | instead of 'regcache_read_pc'. | |
11547 | (keep_going_pass_signal): Ditto. | |
11548 | ||
11549 | 2020-05-13 Tom Tromey <tromey@adacore.com> | |
11550 | ||
11551 | * ada-lang.c (align_value): Remove. | |
11552 | (ada_template_to_fixed_record_type_1): Use align_up. | |
11553 | ||
11554 | 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
11555 | ||
11556 | * async-event.c: Update the copyright year. | |
11557 | * async-event.h: Update the copyright year. | |
11558 | ||
11559 | 2020-05-12 Simon Marchi <simon.marchi@efficios.com> | |
11560 | ||
11561 | * objfiles.h (is_addr_in_objfile, | |
11562 | shared_objfile_contains_address_p): Return bool. | |
11563 | * objfile.c (is_addr_in_objfile, | |
11564 | shared_objfile_contains_address_p): Return bool. | |
11565 | ||
11566 | 2020-05-11 Tom Tromey <tromey@adacore.com> | |
11567 | ||
11568 | * cli/cli-cmds.c (info_command): Restore. | |
11569 | (_initialize_cli_cmds): Use add_prefix_command for "info". | |
11570 | * gdb-gdb.gdb.in: Restore breakpoint on info_command. | |
11571 | ||
11572 | 2020-05-11 Tom Tromey <tromey@adacore.com> | |
11573 | ||
11574 | * ada-lang.c (ada_value_primitive_field): Now public. | |
11575 | * ada-lang.h (ada_value_primitive_field): Declare. | |
11576 | * ada-valprint.c (print_field_values): Use | |
11577 | ada_value_primitive_field for wrapper fields. | |
11578 | ||
11579 | 2020-05-11 Tom de Vries <tdevries@suse.de> | |
11580 | ||
11581 | * dwarf2/index-write.c (debug_names::psymbol_tag): Handle | |
11582 | MODULE_DOMAIN. | |
11583 | ||
11584 | 2020-05-11 Tom de Vries <tdevries@suse.de> | |
11585 | ||
11586 | PR symtab/25941 | |
11587 | * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs | |
11588 | with length 0, if not gdb-produced. | |
11589 | (cutu_reader::cutu_reader): Set CU length to actual length if 0. | |
11590 | ||
11591 | 2020-05-09 Tom de Vries <tdevries@suse.de> | |
11592 | ||
11593 | PR gdb/25955 | |
11594 | * break-catch-throw.c (check_status_exception_catchpoint): Fix name | |
11595 | calculation. | |
11596 | ||
11597 | 2020-05-09 Tom Tromey <tom@tromey.com> | |
11598 | ||
11599 | * top.c (server_command): Now bool. | |
11600 | * top.h (server_command): Now bool. | |
11601 | ||
11602 | 2020-05-08 Tom Tromey <tromey@adacore.com> | |
11603 | ||
11604 | * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE | |
11605 | already being processed. | |
11606 | ||
11607 | 2020-05-08 Tom Tromey <tom@tromey.com> | |
11608 | ||
11609 | * printcmd.c (struct display) <next>: Remove. | |
11610 | <display>: New constructor. | |
11611 | <exp_string>: Now a std::string. | |
11612 | <enabled_p>: Now a bool. | |
11613 | (display_number): Move definition earlier. | |
11614 | (displays): Rename from display_chain. Now a std::vector. | |
11615 | (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove. | |
11616 | (display_command): Update. | |
11617 | (do_one_display, disable_display) | |
11618 | (enable_disable_display_command, do_enable_disable_display): | |
11619 | Update. | |
11620 | (free_display): Remove. | |
11621 | (clear_displays): Rewrite. | |
11622 | (delete_display): Update. | |
11623 | (map_display_numbers): Use function_view. Remove "data" | |
11624 | parameter. Update. | |
11625 | (do_delete_display): Remove. | |
11626 | (undisplay_command): Update. | |
11627 | (do_one_display, do_displays, disable_display) | |
11628 | (info_display_command): Update. | |
11629 | (do_enable_disable_display): Remove. | |
11630 | (enable_disable_display_command) | |
11631 | (clear_dangling_display_expressions): Update. | |
11632 | ||
11633 | 2020-05-08 Tom Tromey <tom@tromey.com> | |
11634 | ||
11635 | * symtab.c (set_symbol_cache_size) | |
11636 | (maintenance_print_symbol_cache, maintenance_flush_symbol_cache) | |
11637 | (maintenance_print_symbol_cache_statistics): Update. | |
11638 | * symmisc.c (print_symbol_bcache_statistics) | |
11639 | (print_objfile_statistics, maintenance_print_objfiles) | |
11640 | (maintenance_info_symtabs, maintenance_check_symtabs) | |
11641 | (maintenance_expand_symtabs, maintenance_info_line_tables): | |
11642 | Update. | |
11643 | * symfile-debug.c (set_debug_symfile): Update. | |
11644 | * source.c (forget_cached_source_info): Update. | |
11645 | * python/python.c (gdbpy_progspaces): Update. | |
11646 | * psymtab.c (maintenance_info_psymtabs): Update. | |
11647 | * probe.c (parse_probes): Update. | |
11648 | * linespec.c (iterate_over_all_matching_symtabs) | |
11649 | (collect_symtabs_from_filename, search_minsyms_for_name): Update. | |
11650 | * guile/scm-progspace.c (gdbscm_progspaces): Update. | |
11651 | * exec.c (exec_target::close): Update. | |
11652 | * ada-tasks.c (ada_tasks_new_objfile_observer): Update. | |
11653 | * breakpoint.c (print_one_breakpoint_location) | |
11654 | (create_longjmp_master_breakpoint) | |
11655 | (create_std_terminate_master_breakpoint): Update. | |
11656 | * progspace.c (program_spaces): Now a std::vector. | |
11657 | (maybe_new_address_space): Update. | |
11658 | (add_program_space): Remove. | |
11659 | (program_space::program_space): Update. | |
11660 | (remove_program_space): Update. | |
11661 | (number_of_program_spaces): Remove. | |
11662 | (print_program_space, update_address_spaces): Update. | |
11663 | * progspace.h (program_spaces): Change type. | |
11664 | (ALL_PSPACES): Remove. | |
11665 | (number_of_program_spaces): Don't declare. | |
11666 | (struct program_space) <next>: Remove. | |
11667 | ||
11668 | 2020-05-08 Tom Tromey <tom@tromey.com> | |
11669 | ||
11670 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update. | |
11671 | * solib-svr4.c (svr4_fetch_objfile_link_map): Update. | |
11672 | (enable_break): Update. | |
11673 | * solib-frv.c (frv_fdpic_find_global_pointer): Update. | |
11674 | (frv_fdpic_find_canonical_descriptor): Update. | |
11675 | (frv_fetch_objfile_link_map): Update. | |
11676 | * progspace.c (program_space::free_all_objfiles): Update. | |
11677 | (program_space::solibs): New method. | |
11678 | * progspace.h (struct program_space) <solibs>: New method. | |
11679 | * solist.h (master_so_list): Don't declare. | |
11680 | (ALL_SO_LIBS): Remove. | |
11681 | * solib.h (so_list_head): Remove. | |
11682 | (update_solib_list): Update comment. | |
11683 | * solib.c (master_so_list): Remove. | |
11684 | (solib_used, update_solib_list, solib_add) | |
11685 | (info_sharedlibrary_command, clear_solib) | |
11686 | (reload_shared_libraries_1, remove_user_added_objfile): Update. | |
11687 | ||
11688 | 2020-05-08 Tom Tromey <tom@tromey.com> | |
11689 | ||
11690 | * extension.c (extension_languages): Now a std::array. | |
11691 | (ALL_EXTENSION_LANGUAGES): Remove. | |
11692 | (get_ext_lang_defn, get_ext_lang_of_file) | |
11693 | (eval_ext_lang_from_control_command): Update. | |
11694 | (finish_ext_lang_initialization) | |
11695 | (auto_load_ext_lang_scripts_for_objfile) | |
11696 | (ext_lang_type_printers::ext_lang_type_printers) | |
11697 | (apply_ext_lang_type_printers) | |
11698 | (ext_lang_type_printers::~ext_lang_type_printers) | |
11699 | (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter) | |
11700 | (preserve_ext_lang_values, get_breakpoint_cond_ext_lang) | |
11701 | (breakpoint_ext_lang_cond_says_stop, check_quit_flag) | |
11702 | (get_matching_xmethod_workers, ext_lang_colorize) | |
11703 | (ext_lang_before_prompt): Update. | |
11704 | (ALL_ENABLED_EXTENSION_LANGUAGES): Remove. | |
11705 | ||
11706 | 2020-05-08 Tom Tromey <tom@tromey.com> | |
11707 | ||
11708 | * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New | |
11709 | overload. | |
11710 | <swap_string, m_string>: Remove. | |
11711 | * symtab.c (demangle_for_lookup, completion_list_add_symbol): | |
11712 | Update. | |
11713 | * stabsread.c (define_symbol, read_type): Update. | |
11714 | * linespec.c (find_linespec_symbols): Update. | |
11715 | * gnu-v3-abi.c (gnuv3_get_typeid): Update. | |
11716 | * dwarf2/read.c (dwarf2_canonicalize_name): Update. | |
11717 | * dbxread.c (read_dbx_symtab): Update. | |
11718 | * cp-support.h (cp_canonicalize_string_full) | |
11719 | (cp_canonicalize_string, cp_canonicalize_string_no_typedefs): | |
11720 | Return unique_xmalloc_ptr. | |
11721 | * cp-support.c (inspect_type): Update. | |
11722 | (cp_canonicalize_string_full): Return unique_xmalloc_ptr. | |
11723 | (cp_canonicalize_string_no_typedefs, cp_canonicalize_string): | |
11724 | Likewise. | |
11725 | * c-typeprint.c (print_name_maybe_canonical): Update. | |
11726 | * break-catch-throw.c (check_status_exception_catchpoint): | |
11727 | Update. | |
11728 | ||
11729 | 2020-05-08 Tom de Vries <tdevries@suse.de> | |
11730 | ||
11731 | * infrun.c (follow_fork): Copy current_line and current_symtab to | |
11732 | child thread. | |
11733 | ||
11734 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> | |
11735 | ||
11736 | * async-event.c (struct async_signal_handler, struct | |
11737 | async_event_handler): Reformat, remove typedef. | |
11738 | ||
11739 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> | |
11740 | ||
11741 | * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users | |
11742 | access thistype->main_type->dyn_prop_list directly. | |
11743 | ||
11744 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> | |
11745 | ||
11746 | * gdbtypes.h (struct type) <remove_dyn_prop>: New method. | |
11747 | (remove_dyn_prop): Remove. Update all users to use | |
11748 | type::remove_dyn_prop. | |
11749 | * gdbtypes.c (remove_dyn_prop): Rename to... | |
11750 | (type::remove_dyn_prop): ... this. | |
11751 | ||
11752 | 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> | |
11753 | ||
11754 | * gdbtypes.h (struct type) <add_dyn_prop>: New method. | |
11755 | (add_dyn_prop): Remove. Update all users to use | |
11756 | type::add_dyn_prop. | |
11757 | * gdbtypes.c (add_dyn_prop): Rename to... | |
11758 | (type::add_dyn_prop): ... this. | |
11759 | ||
11760 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> | |
11761 | ||
11762 | * gdbtypes.h (struct type) <get_dyn_prop>: New method. | |
11763 | (get_dyn_prop): Remove. Update all users to use | |
11764 | type::dyn_prop. | |
11765 | * gdbtypes.c (get_dyn_prop): Rename to... | |
11766 | (type::dyn_prop): ... this. | |
11767 | ||
11768 | 2020-05-06 Simon Marchi <simon.marchi@efficios.com> | |
11769 | ||
11770 | * gdbtypes.h (struct main_type) <flag_static>: Remove. | |
11771 | ||
11772 | 2020-05-06 Simon Marchi <simon.marchi@efficios.com> | |
11773 | ||
11774 | * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64` | |
11775 | instruction, skip it if it's there. | |
11776 | ||
11777 | 2020-05-05 Simon Marchi <simon.marchi@efficios.com> | |
11778 | ||
11779 | * gdbtypes.h (struct main_type) <flag_incomplete>: Remove. | |
11780 | ||
11781 | 2020-05-04 Simon Marchi <simon.marchi@efficios.com> | |
11782 | ||
11783 | * gdbtypes.h (TYPE_INCOMPLETE): Remove. | |
11784 | * gdbtypes.c (recursive_dump_type): Remove use of | |
11785 | TYPE_INCOMPLETE. | |
11786 | ||
11787 | 2020-05-03 Tom Tromey <tom@tromey.com> | |
11788 | ||
11789 | * breakpoint.c (catch_command, tcatch_command): Remove. | |
11790 | (_initialize_breakpoint): Use add_basic_prefix_cmd, | |
11791 | add_show_prefix_cmd. | |
11792 | (set_breakpoint_cmd, show_breakpoint_cmd): Remove | |
11793 | * utils.c (set_internal_problem_cmd, show_internal_problem_cmd): | |
11794 | Remove. | |
11795 | (add_internal_problem_command): Use add_basic_prefix_cmd, | |
11796 | add_show_prefix_cmd. | |
11797 | * mips-tdep.c (set_mipsfpu_command): Remove. | |
11798 | (_initialize_mips_tdep): Use add_basic_prefix_cmd. | |
11799 | * dwarf2/index-cache.c (set_index_cache_command): Remove. | |
11800 | (_initialize_index_cache): Use add_basic_prefix_cmd. | |
11801 | * memattr.c (dummy_cmd): Remove. | |
11802 | (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd. | |
11803 | * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove. | |
11804 | (_initialize_tui_win): Use add_basic_prefix_cmd, | |
11805 | add_show_prefix_cmd. | |
11806 | * cli/cli-logging.c (set_logging_command): Remove. | |
11807 | (_initialize_cli_logging): Use add_basic_prefix_cmd, | |
11808 | add_show_prefix_cmd. | |
11809 | (show_logging_command): Remove. | |
11810 | * target.c (target_command): Remove. | |
11811 | (add_target): Use add_basic_prefix_cmd. | |
11812 | ||
11813 | 2020-05-02 Hannes Domani <ssbssa@yahoo.de> | |
11814 | ||
11815 | * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo. | |
11816 | ||
11817 | 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
11818 | ||
11819 | * gdb-gdb.gdb-in: Remove breakpoint on disappeared function | |
11820 | info_command. | |
11821 | ||
11822 | 2020-04-30 Kamil Rytarowski <n54@gmx.com> | |
11823 | ||
11824 | * nbsd-nat.c (nbsd_enable_proc_events) | |
11825 | (nbsd_nat_target::post_startup_inferior): Add. | |
11826 | (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'. | |
11827 | (nbsd_nat_target::update_thread_list): Rewrite. | |
11828 | (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and | |
11829 | "PTRACE_LWP_CREATE". | |
11830 | * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add. | |
11831 | ||
11832 | 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
11833 | ||
11834 | * stack.c (_initialize_stack): Remove duplicated creation | |
11835 | of "frame" command and "f" alias. | |
11836 | ||
11837 | 2020-04-30 Hannes Domani <ssbssa@yahoo.de> | |
11838 | ||
11839 | PR gdb/18706 | |
11840 | * gdbtypes.c (check_typedef): Calculate size of array of | |
11841 | stubbed type. | |
11842 | ||
11843 | 2020-04-30 Hannes Domani <ssbssa@yahoo.de> | |
11844 | ||
11845 | PR gdb/15559 | |
11846 | * i386-tdep.c (i386_push_dummy_call): Call | |
11847 | i386_thiscall_push_dummy_call. | |
11848 | (i386_thiscall_push_dummy_call): New function. | |
11849 | * i386-tdep.h (i386_thiscall_push_dummy_call): Declare. | |
11850 | * i386-windows-tdep.c (i386_windows_push_dummy_call): New function. | |
11851 | (i386_windows_init_abi): Call set_gdbarch_push_dummy_call. | |
11852 | ||
11853 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> | |
11854 | ||
11855 | * gdbarch.sh (do_read): Add shellcheck disable directive for | |
11856 | warning SC2162. | |
11857 | ||
11858 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> | |
11859 | ||
11860 | * gdbarch.sh: Use ${foo:-} where shellcheck would report a | |
11861 | "referenced but not assigned" warning. | |
11862 | ||
11863 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> | |
11864 | ||
11865 | * gdbarch.sh: Remove code that sets fallbackdefault. | |
11866 | ||
11867 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> | |
11868 | ||
11869 | * gdbarch.sh: Use shell operators && and || instead of | |
11870 | -a and -o. | |
11871 | ||
11872 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> | |
11873 | ||
11874 | * gdbarch.sh: Use $(...) instead of `...`. | |
11875 | ||
11876 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> | |
11877 | ||
11878 | * gdbarch.sh: Use double quotes around variables. | |
11879 | ||
11880 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> | |
11881 | ||
11882 | * gdbarch.sh: Use %s with printf, instead of variables in the | |
11883 | format string. | |
11884 | ||
11885 | 2020-04-29 Tom Tromey <tromey@adacore.com> | |
11886 | ||
11887 | PR ada/25875: | |
11888 | * dwarf2/read.c (update_enumeration_type_from_children): Compute | |
11889 | type fields here. | |
11890 | (read_enumeration_type): Call | |
11891 | update_enumeration_type_from_children later. Update comments. | |
11892 | (process_enumeration_scope): Don't create type fields. | |
11893 | ||
11894 | 2020-04-29 Kamil Rytarowski <n54@gmx.com> | |
11895 | ||
11896 | * nbsd-tdep.c: Include "xml-syscall.h". | |
11897 | (nbsd_init_abi): Call `set_xml_syscall_file_name'. | |
11898 | ||
11899 | 2020-04-29 Kamil Rytarowski <n54@gmx.com> | |
11900 | ||
11901 | * nbsd-nat.c: Include "sys/wait.h". | |
11902 | (nbsd_resume, nbsd_nat_target::resume, nbsd_wait) | |
11903 | (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint) | |
11904 | (nbsd_nat_target::remove_exec_catchpoint) | |
11905 | (nbsd_nat_target::set_syscall_catchpoint): Add. | |
11906 | * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait) | |
11907 | (nbsd_nat_target::insert_exec_catchpoint) | |
11908 | (nbsd_nat_target::remove_exec_catchpoint) | |
11909 | (nbsd_nat_target::set_syscall_catchpoint): Add. | |
11910 | * nbsd-tdep.c (nbsd_get_syscall_number): Add. | |
11911 | (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass | |
11912 | `nbsd_get_syscall_number'. | |
11913 | ||
11914 | 2020-04-29 Tom Tromey <tom@tromey.com> | |
11915 | ||
11916 | * stack.c (print_block_frame_labels): Remove. | |
11917 | ||
11918 | 2020-04-29 Hannes Domani <ssbssa@yahoo.de> | |
11919 | ||
11920 | PR gdb/17320 | |
11921 | * ada-valprint.c (val_print_packed_array_elements): Move array | |
11922 | end bracket to new line. | |
11923 | (ada_val_print_string): Remove extra spaces before first array | |
11924 | element. | |
11925 | * c-valprint.c (c_value_print_array): Likewise. | |
11926 | * m2-valprint.c (m2_print_array_contents): Likewise. | |
11927 | (m2_value_print_inner): Likewise. | |
11928 | * p-valprint.c (pascal_value_print_inner): Likewise. | |
11929 | * valprint.c (generic_val_print_array): Likewise. | |
11930 | (value_print_array_elements): Move first array element and array | |
11931 | end bracket to new line. | |
11932 | ||
11933 | 2020-04-29 Tom de Vries <tdevries@suse.de> | |
11934 | ||
11935 | PR symtab/25889 | |
11936 | * linespec.c (find_method): Fix ix calculation. | |
11937 | ||
11938 | 2020-04-28 Kamil Rytarowski <n54@gmx.com> | |
11939 | ||
11940 | * syscalls/update-netbsd.sh: New file. | |
11941 | * syscalls/netbsd.xml: Regenerate. | |
11942 | * data-directory/Makefile.in: Register `netbsd.xml' in | |
11943 | `SYSCALLS_FILES'. | |
11944 | ||
11945 | 2020-04-28 Simon Marchi <simon.marchi@efficios.com> | |
11946 | ||
11947 | * syscalls/update-freebsd.sh: Add double quotes. | |
11948 | ||
11949 | 2020-04-28 Tom Tromey <tom@tromey.com> | |
11950 | ||
11951 | * NEWS: Update. | |
11952 | * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI. | |
11953 | (cmdpy_init): Allow class_tui. | |
11954 | ||
11955 | 2020-04-28 Mark Williams <mark@myosotissp.com> | |
11956 | ||
11957 | PR gdb/24480 | |
11958 | * dwarf2read.c: Add missing assingments to list_in_scope when | |
11959 | start_symtab was already called. | |
11960 | ||
11961 | 2020-04-28 Simon Marchi <simon.marchi@efficios.com> | |
11962 | ||
11963 | PR gdb/25881 | |
11964 | * dwarf2/read.c (offset_map_type): Use | |
11965 | gdb:hash_enum<sect_offset> as hash function. | |
11966 | ||
11967 | 2020-04-28 Tom de Vries <tdevries@suse.de> | |
11968 | ||
11969 | * dwarf2/read.c (process_structure_scope): Add symbol for struct decl | |
11970 | with DW_AT_signature. | |
11971 | ||
11972 | 2020-04-27 Simon Marchi <simon.marchi@efficios.com> | |
11973 | ||
11974 | * configure.ac: Remove check for fs_base/gs_base in | |
11975 | user_regs_struct. | |
11976 | * configure: Re-generate. | |
11977 | * config.in: Re-generate. | |
11978 | * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust. | |
11979 | * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers, | |
11980 | amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust. | |
11981 | ||
11982 | 2020-04-27 Luis Machado <luis.machado@linaro.org> | |
11983 | ||
11984 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle | |
11985 | problematic inline frame unwinding situation. | |
11986 | * frame.c (frame_id_computed_p): New function. | |
11987 | * frame.h (frame_id_computed_p): New prototype. | |
11988 | ||
11989 | 2020-04-26 Tom Tromey <tom@tromey.com> | |
11990 | ||
11991 | * command.h (enum command_class) <class_pseudo>: Remove. | |
11992 | ||
11993 | 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
11994 | ||
11995 | * cli/cli-decode.c (lookup_cmd_composition): Fix comments | |
11996 | and whitespace. | |
11997 | ||
11998 | 2020-04-25 Kamil Rytarowski <n54@gmx.com> | |
11999 | ||
12000 | * inf-ptrace.c (inf_ptrace_target::wait): Remove | |
12001 | `PT_GET_PROCESS_STATE' block. | |
12002 | ||
12003 | 2020-04-24 Tom Tromey <tom@tromey.com> | |
12004 | ||
12005 | * symtab.h (symbol_get_demangled_name): Don't declare. | |
12006 | * symtab.c (symbol_get_demangled_name): Remove. | |
12007 | (general_symbol_info::natural_name) | |
12008 | (general_symbol_info::demangled_name): Update. | |
12009 | ||
12010 | 2020-04-24 Tom Tromey <tom@tromey.com> | |
12011 | ||
12012 | PR rust/25025: | |
12013 | * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust. | |
12014 | ||
12015 | 2020-04-24 Tom Tromey <tom@tromey.com> | |
12016 | ||
12017 | PR symtab/12707: | |
12018 | * dwarf2/read.c (add_partial_symbol): Use the linkage name if it | |
12019 | exists. | |
12020 | (new_symbol): Likewise. | |
12021 | * compile/compile-object-load.c (get_out_value_type): Use | |
12022 | symbol_matches_search_name. | |
12023 | ||
12024 | 2020-04-24 Tom Tromey <tom@tromey.com> | |
12025 | ||
12026 | * dwarf2/read.c (add_partial_symbol): Do not call | |
12027 | compute_and_set_names. | |
12028 | ||
12029 | 2020-04-24 Tom Tromey <tom@tromey.com> | |
12030 | ||
12031 | * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list | |
12032 | overload. | |
12033 | ||
12034 | 2020-04-24 Tom Tromey <tom@tromey.com> | |
12035 | ||
12036 | * psymtab.c (add_psymbol_to_bcache): Simplify calling convention. | |
12037 | (add_psymbol_to_list): New overload. Make old overload call new | |
12038 | one. | |
12039 | * psympriv.h (add_psymbol_to_list): New overload. | |
12040 | ||
12041 | 2020-04-24 Tom Tromey <tom@tromey.com> | |
12042 | ||
12043 | * dwarf2/read.c (partial_die_info::read) <case | |
12044 | DW_AT_linkage_name>: Use value_as_string. | |
12045 | (dwarf2_string_attr): Use value_as_string. | |
12046 | * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare | |
12047 | method. | |
12048 | * dwarf2/attribute.c (attribute::value_as_string): New method. | |
12049 | ||
12050 | 2020-04-24 Tom Tromey <tom@tromey.com> | |
12051 | ||
12052 | * symtab.c (general_symbol_info::natural_name) | |
12053 | (general_symbol_info::demangled_name): Check for language_rust. | |
12054 | ||
12055 | 2020-04-24 Tom Tromey <tom@tromey.com> | |
12056 | ||
12057 | * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here... | |
12058 | (dwarf2_physname): ... from here. | |
12059 | (partial_die_info::read): Add Rust "{" hack. | |
12060 | ||
12061 | 2020-04-24 Tom Tromey <tom@tromey.com> | |
12062 | ||
12063 | * symtab.h (struct general_symbol_info) <set_demangled_name>: New | |
12064 | method. | |
12065 | (symbol_set_demangled_name): Don't declare. | |
12066 | * symtab.c (general_symbol_info::set_demangled_name): Rename from | |
12067 | symbol_set_demangled_name. | |
12068 | (general_symbol_info::set_language) | |
12069 | (general_symbol_info::compute_and_set_names): Update. | |
12070 | * minsyms.c (minimal_symbol_reader::install): Update. | |
12071 | * dwarf2/read.c (new_symbol): Update. | |
12072 | ||
12073 | 2020-04-24 Tom Tromey <tromey@adacore.com> | |
12074 | ||
12075 | PR python/23662: | |
12076 | * python/py-type.c (convert_field): Handle | |
12077 | FIELD_LOC_KIND_DWARF_BLOCK. | |
12078 | (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH. | |
12079 | (typy_get_dynamic): Nw function. | |
12080 | (type_object_getset): Add "dynamic". | |
12081 | * NEWS: Add entry. | |
12082 | ||
12083 | 2020-04-24 Tom Tromey <tromey@adacore.com> | |
12084 | ||
12085 | * ada-typeprint.c (print_choices, print_variant_part) | |
12086 | (print_record_field_types_dynamic): New functions. | |
12087 | (print_record_field_types): Use print_record_field_types_dynamic. | |
12088 | ||
12089 | 2020-04-24 Tom Tromey <tromey@adacore.com> | |
12090 | ||
12091 | * dwarf2/read.c (handle_data_member_location): New overload. | |
12092 | (dwarf2_add_field): Use it. | |
12093 | (decode_locdesc): Add "computed" parameter. Update comment. | |
12094 | * gdbtypes.c (is_dynamic_type_internal): Also look for | |
12095 | FIELD_LOC_KIND_DWARF_BLOCK. | |
12096 | (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK. | |
12097 | * gdbtypes.c (is_dynamic_type_internal): Add special case for C++ | |
12098 | virtual base classes. | |
12099 | * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle | |
12100 | FIELD_LOC_KIND_DWARF_BLOCK. | |
12101 | ||
12102 | 2020-04-24 Tom Tromey <tromey@adacore.com> | |
12103 | ||
12104 | * dwarf2/read.c (read_structure_type): Handle dynamic length. | |
12105 | * gdbtypes.c (is_dynamic_type_internal): Check | |
12106 | TYPE_HAS_DYNAMIC_LENGTH. | |
12107 | (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH. | |
12108 | * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH): | |
12109 | New macros. | |
12110 | (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New | |
12111 | constant. | |
12112 | ||
12113 | 2020-04-24 Tom Tromey <tromey@adacore.com> | |
12114 | ||
12115 | * dwarf2/read.c (struct variant_field): Rewrite. | |
12116 | (struct variant_part_builder): New. | |
12117 | (struct nextfield): Remove "variant" field. Add "offset". | |
12118 | (struct field_info): Add "current_variant_part" and | |
12119 | "variant_parts". | |
12120 | (alloc_discriminant_info): Remove. | |
12121 | (alloc_rust_variant): New function. | |
12122 | (quirk_rust_enum): Update. | |
12123 | (dwarf2_add_field): Set "offset" member. Don't handle | |
12124 | DW_TAG_variant_part. | |
12125 | (offset_map_type): New typedef. | |
12126 | (convert_variant_range, create_one_variant) | |
12127 | (create_one_variant_part, create_variant_parts) | |
12128 | (add_variant_property): New functions. | |
12129 | (dwarf2_attach_fields_to_type): Call add_variant_property. | |
12130 | (read_structure_type): Don't handle DW_TAG_variant_part. | |
12131 | (handle_variant_part, handle_variant): New functions. | |
12132 | (handle_struct_member_die): Use them. | |
12133 | (process_structure_scope): Don't handle variant parts. | |
12134 | * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove. | |
12135 | (struct discriminant_info): Remove. | |
12136 | (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove. | |
12137 | (struct main_type) <flag_discriminated_union>: Remove. | |
12138 | * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite. | |
12139 | (rust_enum_variant): Return int. Remove "contents". Rewrite. | |
12140 | (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp): | |
12141 | Update. | |
12142 | * valops.c (value_union_variant): Remove. | |
12143 | * value.h (value_union_variant): Don't declare. | |
12144 | ||
12145 | 2020-04-24 Tom Tromey <tromey@adacore.com> | |
12146 | ||
12147 | * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low) | |
12148 | (ada_value_primitive_packed_val): Update. | |
12149 | * ada-valprint.c (ada_value_print_1): Update. | |
12150 | * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct. | |
12151 | (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than | |
12152 | just an address. Use evaluate_for_locexpr_baton. | |
12153 | (dwarf2_evaluate_property): Update. | |
12154 | * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an | |
12155 | array_view. | |
12156 | * findvar.c (default_read_var_value): Update. | |
12157 | * gdbtypes.c (compute_variant_fields_inner) | |
12158 | (resolve_dynamic_type_internal): Update. | |
12159 | (resolve_dynamic_type): Change type of valaddr parameter. | |
12160 | * gdbtypes.h (resolve_dynamic_type): Update. | |
12161 | * valarith.c (value_subscripted_rvalue): Update. | |
12162 | * value.c (value_from_contents_and_address): Update. | |
12163 | ||
12164 | 2020-04-24 Tom Tromey <tromey@adacore.com> | |
12165 | ||
12166 | * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add | |
12167 | "push_initial_value" parameter. | |
12168 | (dwarf2_evaluate_property): Likewise. | |
12169 | * dwarf2/loc.h (dwarf2_evaluate_property): Update. | |
12170 | ||
12171 | 2020-04-24 Tom Tromey <tromey@adacore.com> | |
12172 | ||
12173 | * gdbtypes.c (is_dynamic_type_internal): Check for variant parts. | |
12174 | (variant::matches, compute_variant_fields_recurse) | |
12175 | (compute_variant_fields_inner, compute_variant_fields): New | |
12176 | functions. | |
12177 | (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS. | |
12178 | Use resolved_type after type is made. | |
12179 | (operator==): Add new cases. | |
12180 | * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro. | |
12181 | (struct discriminant_range, struct variant, struct variant_part): | |
12182 | New. | |
12183 | (union dynamic_prop_data) <variant_parts, original_type>: New | |
12184 | members. | |
12185 | (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant. | |
12186 | (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New | |
12187 | constants. | |
12188 | * value.c (unpack_bits_as_long): Now public. | |
12189 | * value.h (unpack_bits_as_long): Declare. | |
12190 | ||
12191 | 2020-04-24 Tom Tromey <tromey@adacore.com> | |
12192 | ||
12193 | * rs6000-tdep.c (struct ppc_variant): Rename from "variant". | |
12194 | (variants, find_variant_by_arch, rs6000_gdbarch_init): Update. | |
12195 | ||
12196 | 2020-04-24 Hannes Domani <ssbssa@yahoo.de> | |
12197 | ||
12198 | * windows-tdep.c (exception_values): Add WOW64 exception numbers. | |
12199 | ||
12200 | 2020-04-24 Kamil Rytarowski <n54@gmx.com> | |
12201 | ||
12202 | * inf-ptrace.h (follow_fork, insert_fork_catchpoint) | |
12203 | (remove_fork_catchpoint, post_startup_inferior) | |
12204 | (post_attach): Move... | |
12205 | * obsd-nat.h (follow_fork, insert_fork_catchpoint) | |
12206 | (remove_fork_catchpoint, post_startup_inferior) | |
12207 | (post_attach): ...here. | |
12208 | * inf-ptrace.c (follow_fork, insert_fork_catchpoint) | |
12209 | (remove_fork_catchpoint, post_startup_inferior) | |
12210 | (post_attach): Move... | |
12211 | * obsd-nat.c (follow_fork, insert_fork_catchpoint) | |
12212 | (remove_fork_catchpoint, post_startup_inferior) | |
12213 | (post_attach): ...here. | |
12214 | ||
12215 | 2020-04-24 Tom Tromey <tromey@adacore.com> | |
12216 | ||
12217 | * nat/windows-nat.h (struct windows_thread_info) | |
12218 | <pc_adjusted>: New member. | |
12219 | * windows-nat.c (windows_fetch_one_register): Check | |
12220 | pc_adjusted. | |
12221 | (windows_nat_target::get_windows_debug_event) | |
12222 | (windows_nat_target::wait): Set pc_adjusted. | |
12223 | ||
12224 | 2020-04-24 Tom de Vries <tdevries@suse.de> | |
12225 | ||
12226 | * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling. | |
12227 | Run gdb-add-index inside temp dir. | |
12228 | ||
12229 | 2020-04-23 Tom Tromey <tromey@adacore.com> | |
12230 | ||
12231 | * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter" | |
12232 | in loop. | |
12233 | ||
12234 | 2020-04-23 Luis Machado <luis.machado@linaro.org> | |
12235 | ||
12236 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use | |
12237 | get_frame_register instead of gdbarch_unwind_pc. | |
12238 | ||
12239 | 2020-04-23 Tom de Vries <tdevries@suse.de> | |
12240 | ||
12241 | * symtab.c (lookup_global_symbol): Prefer def over decl. | |
12242 | ||
12243 | 2020-04-23 Tom de Vries <tdevries@suse.de> | |
12244 | ||
12245 | PR symtab/25807 | |
12246 | * block.c (best_symbol, better_symbol): Promote to external. | |
12247 | * block.h (best_symbol, better_symbol): Declare. | |
12248 | * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over | |
12249 | decl. | |
12250 | ||
12251 | 2020-04-23 Tom Tromey <tromey@adacore.com> | |
12252 | ||
12253 | PR ada/25837: | |
12254 | * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a | |
12255 | "const char *", not a "const std::string &". | |
12256 | <name_and_matcher::operator==>: Update. | |
12257 | * unittests/lookup_name_info-selftests.c: Change type of | |
12258 | "result". | |
12259 | ||
12260 | 2020-04-23 Tom Tromey <tom@tromey.com> | |
12261 | ||
12262 | * inferior.h (iterate_over_inferiors): Don't declare. | |
12263 | * inferior.c (iterate_over_inferiors): Remove. | |
12264 | * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it): | |
12265 | Remove. | |
12266 | (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't | |
12267 | use iterate_over_inferiors. | |
12268 | (darwin_resume_inferior_it) | |
12269 | (struct resume_inferior_threads_param) | |
12270 | (darwin_resume_inferior_threads_it): Remove. | |
12271 | (darwin_nat_target::resume): Don't use iterate_over_inferiors. | |
12272 | ||
12273 | 2020-04-23 Tom de Vries <tdevries@suse.de> | |
12274 | ||
12275 | * blockframe.c (find_pc_partial_function): Use | |
12276 | find_pc_sect_compunit_symtab rather than | |
12277 | objfile->sf->qf->find_pc_sect_compunit_symtab. | |
12278 | ||
12279 | 2020-04-22 Tom de Vries <tdevries@suse.de> | |
12280 | ||
12281 | PR symtab/25764 | |
12282 | * dwarf2/read.c (scan_partial_symbols): Allow external variable decls | |
12283 | in psymtabs. | |
12284 | ||
12285 | 2020-04-22 Tom de Vries <tdevries@suse.de> | |
12286 | ||
12287 | PR symtab/25801 | |
12288 | * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared | |
12289 | symtabs. | |
12290 | ||
12291 | 2020-04-22 Tom de Vries <tdevries@suse.de> | |
12292 | ||
12293 | PR symtab/25700 | |
12294 | * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for | |
12295 | CU if already created. | |
12296 | ||
12297 | 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
12298 | ||
12299 | * infrun.c (displaced_step_fixup): Switch to the event_thread | |
12300 | before calling displaced_step_restore, not after. | |
12301 | ||
12302 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> | |
12303 | ||
12304 | * record-btrace.c (record_btrace_enable_warn): Ignore thread if | |
12305 | its inferior is not recorded by us. | |
12306 | (record_btrace_target_open): Replace call to | |
12307 | all_non_exited_threads () with call to current_inferior | |
12308 | ()->non_exited_threads (). | |
12309 | (record_btrace_target::stop_recording): Likewise. | |
12310 | (record_btrace_target::close): Likewise. | |
12311 | (record_btrace_target::wait): Likewise. | |
12312 | (record_btrace_target::record_stop_replaying): Likewise. | |
12313 | ||
12314 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> | |
12315 | ||
12316 | * btrace.c (btrace_enable): Throw an error on double enables and | |
12317 | when enabling recording fails. | |
12318 | (btrace_disable): Throw an error if the thread is not recorded. | |
12319 | ||
12320 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> | |
12321 | ||
12322 | * record-btrace.c (record_btrace_target::fetch_registers): Forward | |
12323 | request if we do not have a thread_info. | |
12324 | ||
12325 | 2020-04-21 Tom de Vries <tdevries@suse.de> | |
12326 | ||
12327 | PR gdb/25471 | |
12328 | * thread.c | |
12329 | (scoped_restore_current_thread::scoped_restore_current_thread): Catch | |
12330 | exception in get_frame_id. | |
12331 | ||
12332 | 2020-04-20 Tom Tromey <tromey@adacore.com> | |
12333 | ||
12334 | * python/python.c (struct gdbpy_event): Mark move constructor as | |
12335 | noexcept. | |
12336 | * python/py-tui.c (class gdbpy_tui_window_maker): Mark move | |
12337 | constructor as noexcept. | |
12338 | * completer.h (struct completion_result): Mark move constructor as | |
12339 | noexcept. | |
12340 | * completer.c (completion_result::completion_result): Use | |
12341 | initialization style. Don't call reset_match_list. | |
12342 | ||
12343 | 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com> | |
12344 | ||
12345 | * MAINTAINERS (Write After Approval): Add myself. | |
12346 | ||
12347 | 2020-04-18 Tom Tromey <tom@tromey.com> | |
12348 | ||
12349 | * windows-tdep.c (init_w32_command_list) | |
12350 | (w32_prefix_command_valid): Restore. | |
12351 | (_initialize_windows_tdep): Call init_w32_command_list. | |
12352 | ||
12353 | 2020-04-18 Tom Tromey <tom@tromey.com> | |
12354 | ||
12355 | * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update. | |
12356 | * value.c (value_fn_field): Update. | |
12357 | * valops.c (find_function_in_inferior) | |
12358 | (value_allocate_space_in_inferior): Update. | |
12359 | * tui/tui-winsource.c (tui_update_source_windows_with_line): | |
12360 | Update. | |
12361 | * tui/tui-source.c (tui_source_window::set_contents): Update. | |
12362 | * symtab.c (lookup_global_or_static_symbol) | |
12363 | (find_function_start_sal_1, skip_prologue_sal) | |
12364 | (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update. | |
12365 | * symmisc.c (dump_msymbols, dump_symtab_1) | |
12366 | (maintenance_print_one_line_table): Update. | |
12367 | * symfile.c (init_entry_point_info, section_is_mapped) | |
12368 | (list_overlays_command, simple_read_overlay_table) | |
12369 | (simple_overlay_update_1): Update. | |
12370 | * stap-probe.c (handle_stap_probe): Update. | |
12371 | * stabsread.c (dbx_init_float_type, define_symbol) | |
12372 | (read_one_struct_field, read_enum_type, read_range_type): Update. | |
12373 | * source.c (info_line_command): Update. | |
12374 | * python/python.c (gdbpy_source_objfile_script) | |
12375 | (gdbpy_execute_objfile_script): Update. | |
12376 | * python/py-type.c (save_objfile_types): Update. | |
12377 | * python/py-objfile.c (py_free_objfile): Update. | |
12378 | * python/py-inferior.c (python_new_objfile): Update. | |
12379 | * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab) | |
12380 | (dump_psymtab_addrmap_1, maintenance_info_psymtabs) | |
12381 | (maintenance_check_psymtabs): Update. | |
12382 | * printcmd.c (info_address_command): Update. | |
12383 | * objfiles.h (struct objfile) <arch>: New method, from | |
12384 | get_objfile_arch. | |
12385 | (get_objfile_arch): Don't declare. | |
12386 | * objfiles.c (get_objfile_arch): Remove. | |
12387 | (filter_overlapping_sections): Update. | |
12388 | * minsyms.c (msymbol_is_function): Update. | |
12389 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines) | |
12390 | (output_nondebug_symbol): Update. | |
12391 | * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols) | |
12392 | (mdebug_expand_psymtab): Update. | |
12393 | * machoread.c (macho_add_oso_symfile): Update. | |
12394 | * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): | |
12395 | Update. | |
12396 | * linux-fork.c (checkpoint_command): Update. | |
12397 | * linespec.c (convert_linespec_to_sals): Update. | |
12398 | * jit.c (finalize_symtab): Update. | |
12399 | * infrun.c (insert_exception_resume_from_probe): Update. | |
12400 | * ia64-tdep.c (ia64_find_unwind_table): Update. | |
12401 | * hppa-tdep.c (internalize_unwinds): Update. | |
12402 | * gdbtypes.c (get_type_arch, init_float_type, objfile_type): | |
12403 | Update. | |
12404 | * gcore.c (call_target_sbrk): Update. | |
12405 | * elfread.c (record_minimal_symbol, elf_symtab_read) | |
12406 | (elf_rel_plt_read, elf_gnu_ifunc_record_cache) | |
12407 | (elf_gnu_ifunc_resolve_by_got): Update. | |
12408 | * dwarf2/read.c (create_addrmap_from_index) | |
12409 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) | |
12410 | (read_debug_names_from_section) | |
12411 | (process_psymtab_comp_unit_reader, add_partial_symbol) | |
12412 | (add_partial_subprogram, process_full_comp_unit) | |
12413 | (read_file_scope, read_func_scope, read_lexical_block_scope) | |
12414 | (read_call_site_scope, dwarf2_ranges_read) | |
12415 | (dwarf2_record_block_ranges, dwarf2_add_field) | |
12416 | (mark_common_block_symbol_computed, read_tag_pointer_type) | |
12417 | (read_tag_string_type, dwarf2_init_float_type) | |
12418 | (dwarf2_init_complex_target_type, read_base_type) | |
12419 | (partial_die_info::read, partial_die_info::read) | |
12420 | (read_attribute_value, dwarf_decode_lines_1, new_symbol) | |
12421 | (dwarf2_fetch_die_loc_sect_off): Update. | |
12422 | * dwarf2/loc.c (dwarf2_find_location_expression) | |
12423 | (class dwarf_evaluate_loc_desc, rw_pieced_value) | |
12424 | (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval) | |
12425 | (dwarf2_loc_desc_get_symbol_read_needs) | |
12426 | (locexpr_describe_location_piece, locexpr_describe_location_1) | |
12427 | (loclist_describe_location): Update. | |
12428 | * dwarf2/index-write.c (write_debug_names): Update. | |
12429 | * dwarf2/frame.c (dwarf2_build_frame_info): Update. | |
12430 | * dtrace-probe.c (dtrace_process_dof): Update. | |
12431 | * dbxread.c (read_dbx_symtab, dbx_end_psymtab) | |
12432 | (process_one_symbol): Update. | |
12433 | * ctfread.c (ctf_init_float_type, read_base_type): Update. | |
12434 | * coffread.c (coff_symtab_read, enter_linenos, decode_base_type) | |
12435 | (coff_read_enum_type): Update. | |
12436 | * cli/cli-cmds.c (edit_command, list_command): Update. | |
12437 | * buildsym.c (buildsym_compunit::finish_block_internal): Update. | |
12438 | * breakpoint.c (create_overlay_event_breakpoint) | |
12439 | (create_longjmp_master_breakpoint) | |
12440 | (create_std_terminate_master_breakpoint) | |
12441 | (create_exception_master_breakpoint, get_sal_arch): Update. | |
12442 | * block.c (block_gdbarch): Update. | |
12443 | * annotate.c (annotate_source_line): Update. | |
12444 | ||
12445 | 2020-04-17 Tom Tromey <tromey@adacore.com> | |
12446 | ||
12447 | * auto-load.c (show_auto_load_cmd): Remove. | |
12448 | (auto_load_show_cmdlist_get): Use add_show_prefix_cmd. | |
12449 | * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd. | |
12450 | (maintenance_print_arc_command): Remove. | |
12451 | * tui/tui-win.c (tui_command): Remove. | |
12452 | (tui_get_cmd_list): Use add_basic_prefix_cmd. | |
12453 | * tui/tui-layout.c (tui_layout_command): Remove. | |
12454 | (_initialize_tui_layout): Use add_basic_prefix_cmd. | |
12455 | * python/python.c (user_set_python, user_show_python): Remove. | |
12456 | (_initialize_python): Use add_basic_prefix_cmd, | |
12457 | add_show_prefix_cmd. | |
12458 | * guile/guile.c (set_guile_command, show_guile_command): Remove. | |
12459 | (install_gdb_commands): Use add_basic_prefix_cmd, | |
12460 | add_show_prefix_cmd. | |
12461 | (info_guile_command): Remove. | |
12462 | * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove. | |
12463 | (_initialize_dwarf2_read): Use add_basic_prefix_cmd, | |
12464 | add_show_prefix_cmd. | |
12465 | * cli/cli-style.h (class cli_style_option) <add_setshow_commands>: | |
12466 | Remove do_set and do_show parameters. | |
12467 | * cli/cli-style.c (set_style, show_style): Remove. | |
12468 | (_initialize_cli_style): Use add_basic_prefix_cmd, | |
12469 | add_show_prefix_cmd. | |
12470 | (cli_style_option::add_setshow_commands): Remove do_set and | |
12471 | do_show parameters. | |
12472 | (cli_style_option::add_setshow_commands): Use | |
12473 | add_basic_prefix_cmd, add_show_prefix_cmd. | |
12474 | (STYLE_ADD_SETSHOW_COMMANDS): Remove macro. | |
12475 | (set_style_name): Remove. | |
12476 | * cli/cli-dump.c (dump_command, append_command): Remove. | |
12477 | (srec_dump_command, ihex_dump_command, verilog_dump_command) | |
12478 | (tekhex_dump_command, binary_dump_command) | |
12479 | (binary_append_command): Remove. | |
12480 | (_initialize_cli_dump): Use add_basic_prefix_cmd. | |
12481 | * windows-tdep.c (w32_prefix_command_valid): Remove global. | |
12482 | (init_w32_command_list): Remove; move into ... | |
12483 | (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd. | |
12484 | * valprint.c (set_print, show_print, set_print_raw) | |
12485 | (show_print_raw): Remove. | |
12486 | (_initialize_valprint): Use add_basic_prefix_cmd, | |
12487 | add_show_prefix_cmd. | |
12488 | * typeprint.c (set_print_type, show_print_type): Remove. | |
12489 | (_initialize_typeprint): Use add_basic_prefix_cmd, | |
12490 | add_show_prefix_cmd. | |
12491 | * record.c (set_record_command, show_record_command): Remove. | |
12492 | (_initialize_record): Use add_basic_prefix_cmd, | |
12493 | add_show_prefix_cmd. | |
12494 | * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd, | |
12495 | add_show_prefix_cmd. | |
12496 | (info_command, show_command, set_debug, show_debug): Remove. | |
12497 | * top.h (set_history, show_history): Don't declare. | |
12498 | * top.c (set_history, show_history): Remove. | |
12499 | * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd) | |
12500 | (unset_tdesc_cmd): Remove. | |
12501 | (_initialize_target_descriptions): Use add_basic_prefix_cmd, | |
12502 | add_show_prefix_cmd. | |
12503 | * symtab.c (info_module_command): Remove. | |
12504 | (_initialize_symtab): Use add_basic_prefix_cmd. | |
12505 | * symfile.c (overlay_command): Remove. | |
12506 | (_initialize_symfile): Use add_basic_prefix_cmd. | |
12507 | * sparc64-tdep.c (info_adi_command): Remove. | |
12508 | (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd. | |
12509 | * sh-tdep.c (show_sh_command, set_sh_command): Remove. | |
12510 | (_initialize_sh_tdep): Use add_basic_prefix_cmd, | |
12511 | add_show_prefix_cmd. | |
12512 | * serial.c (serial_set_cmd, serial_show_cmd): Remove. | |
12513 | (_initialize_serial): Use add_basic_prefix_cmd, | |
12514 | add_show_prefix_cmd. | |
12515 | * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove. | |
12516 | (_initialize_ser_tcp): Use add_basic_prefix_cmd, | |
12517 | add_show_prefix_cmd. | |
12518 | * rs6000-tdep.c (set_powerpc_command, show_powerpc_command) | |
12519 | (_initialize_rs6000_tdep): Use add_basic_prefix_cmd, | |
12520 | add_show_prefix_cmd. | |
12521 | * riscv-tdep.c (show_riscv_command, set_riscv_command) | |
12522 | (show_debug_riscv_command, set_debug_riscv_command): Remove. | |
12523 | (_initialize_riscv_tdep): Use add_basic_prefix_cmd, | |
12524 | add_show_prefix_cmd. | |
12525 | * remote.c (remote_command, set_remote_cmd): Remove. | |
12526 | (_initialize_remote): Use add_basic_prefix_cmd. | |
12527 | * record-full.c (set_record_full_command) | |
12528 | (show_record_full_command): Remove. | |
12529 | (_initialize_record_full): Use add_basic_prefix_cmd, | |
12530 | add_show_prefix_cmd. | |
12531 | * record-btrace.c (cmd_set_record_btrace) | |
12532 | (cmd_show_record_btrace, cmd_set_record_btrace_bts) | |
12533 | (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt) | |
12534 | (cmd_show_record_btrace_pt): Remove. | |
12535 | (_initialize_record_btrace): Use add_basic_prefix_cmd, | |
12536 | add_show_prefix_cmd. | |
12537 | * ravenscar-thread.c (set_ravenscar_command) | |
12538 | (show_ravenscar_command): Remove. | |
12539 | (_initialize_ravenscar): Use add_basic_prefix_cmd, | |
12540 | add_show_prefix_cmd. | |
12541 | * mips-tdep.c (show_mips_command, set_mips_command) | |
12542 | (_initialize_mips_tdep): Use add_basic_prefix_cmd, | |
12543 | add_show_prefix_cmd. | |
12544 | * maint.c (maintenance_command, maintenance_info_command) | |
12545 | (maintenance_check_command, maintenance_print_command) | |
12546 | (maintenance_set_cmd, maintenance_show_cmd): Remove. | |
12547 | (_initialize_maint_cmds): Use add_basic_prefix_cmd, | |
12548 | add_show_prefix_cmd. | |
12549 | (show_per_command_cmd): Remove. | |
12550 | * maint-test-settings.c (maintenance_set_test_settings_cmd): | |
12551 | Remove. | |
12552 | (maintenance_show_test_settings_cmd): Remove. | |
12553 | (_initialize_maint_test_settings): Use add_basic_prefix_cmd, | |
12554 | add_show_prefix_cmd. | |
12555 | * maint-test-options.c (maintenance_test_options_command): | |
12556 | Remove. | |
12557 | (_initialize_maint_test_options): Use add_basic_prefix_cmd. | |
12558 | * macrocmd.c (macro_command): Remove | |
12559 | (_initialize_macrocmd): Use add_basic_prefix_cmd. | |
12560 | * language.c (set_check, show_check): Remove. | |
12561 | (_initialize_language): Use add_basic_prefix_cmd, | |
12562 | add_show_prefix_cmd. | |
12563 | * infcmd.c (unset_command): Remove. | |
12564 | (_initialize_infcmd): Use add_basic_prefix_cmd. | |
12565 | * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove. | |
12566 | (_initialize_i386_tdep): Use add_basic_prefix_cmd, | |
12567 | add_show_prefix_cmd. | |
12568 | * go32-nat.c (go32_info_dos_command): Remove. | |
12569 | (_initialize_go32_nat): Use add_basic_prefix_cmd. | |
12570 | * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd) | |
12571 | (do_show_prefix_cmd, add_show_prefix_cmd): New functions. | |
12572 | * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove. | |
12573 | (_initialize_frame): Use add_basic_prefix_cmd, | |
12574 | add_show_prefix_cmd. | |
12575 | * dcache.c (set_dcache_command, show_dcache_command): Remove. | |
12576 | (_initialize_dcache): Use add_basic_prefix_cmd, | |
12577 | add_show_prefix_cmd. | |
12578 | * cp-support.c (maint_cplus_command): Remove. | |
12579 | (_initialize_cp_support): Use add_basic_prefix_cmd. | |
12580 | * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd) | |
12581 | (maint_btrace_show_cmd, maint_btrace_pt_set_cmd) | |
12582 | (maint_btrace_pt_show_cmd, _initialize_btrace): Use | |
12583 | add_basic_prefix_cmd, add_show_prefix_cmd. | |
12584 | * breakpoint.c (save_command): Remove. | |
12585 | (_initialize_breakpoint): Use add_basic_prefix_cmd. | |
12586 | * arm-tdep.c (set_arm_command, show_arm_command): Remove. | |
12587 | (_initialize_arm_tdep): Use add_basic_prefix_cmd, | |
12588 | add_show_prefix_cmd. | |
12589 | * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd) | |
12590 | (set_ada_command, show_ada_command): Remove. | |
12591 | (_initialize_ada_language): Use add_basic_prefix_cmd, | |
12592 | add_show_prefix_cmd. | |
12593 | * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare. | |
12594 | ||
12595 | 2020-04-16 Kamil Rytarowski <n54@gmx.com> | |
12596 | ||
12597 | * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove. | |
12598 | * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise. | |
12599 | ||
12600 | 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca> | |
12601 | ||
12602 | * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to | |
12603 | warning messages. | |
12604 | ||
12605 | 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca> | |
12606 | ||
12607 | * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where | |
12608 | import table is not at beginning of .idata section. | |
12609 | ||
12610 | 2020-04-16 Pedro Alves <palves@redhat.com> | |
12611 | ||
12612 | * inferior.c (delete_inferior): Use delete operator directly | |
12613 | instead of delete_program_space. | |
12614 | * progspace.c (add_program_space): New, factored out from | |
12615 | program_space::program_space. | |
12616 | (remove_program_space): New, factored out from | |
12617 | delete_program_space. | |
12618 | (program_space::program_space): Remove intro comment. Rewrite. | |
12619 | (program_space::~program_space): Remove intro comment. Call | |
12620 | remove_program_space. | |
12621 | (delete_program_space): Delete. | |
12622 | * progspace.h (program_space::program_space): Make explicit. Move | |
12623 | intro comment here, adjusted. | |
12624 | (program_space::~program_space): Move intro comment here, | |
12625 | adjusted. | |
12626 | (delete_program_space): Remove. | |
12627 | ||
12628 | 2020-04-16 Tom Tromey <tromey@adacore.com> | |
12629 | ||
12630 | * windows-nat.c (windows_nat::handle_access_violation): New | |
12631 | function. | |
12632 | * nat/windows-nat.h (handle_access_violation): Declare. | |
12633 | * nat/windows-nat.c (handle_exception): Move Cygwin code to | |
12634 | windows-nat.c. Call handle_access_violation. | |
12635 | ||
12636 | 2020-04-16 Tom de Vries <tdevries@suse.de> | |
12637 | ||
12638 | PR symtab/25791 | |
12639 | * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for | |
12640 | CUs without psymtab. | |
12641 | ||
12642 | 2020-04-16 Kevin Buettner <kevinb@redhat.com> | |
12643 | ||
12644 | * python/python.c (do_start_initialization): Don't call | |
12645 | PyEval_InitThreads for Python 3.9 and beyond. | |
12646 | ||
12647 | 2020-04-15 Kamil Rytarowski <n54@gmx.com> | |
12648 | ||
12649 | * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to | |
12650 | thread functions. | |
12651 | (obsd_nat_target::wait): Likewise. | |
12652 | ||
12653 | 2020-04-15 Tom Tromey <tromey@adacore.com> | |
12654 | ||
12655 | * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM) | |
12656 | (DEBUG_EXCEPT): Use debug_printf. | |
12657 | ||
12658 | 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com> | |
12659 | ||
12660 | * completer.c (class completion_tracker::completion_hash_entry) | |
12661 | <hash_name>: New member function. | |
12662 | (completion_tracker::discard_completions): New callback to hash a | |
12663 | completion_hash_entry, pass this to htab_create_alloc. | |
12664 | ||
12665 | 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk> | |
12666 | ||
12667 | * windows-nat.c (windows_make_so): Warn rather than stopping with | |
12668 | an error if realpath() fails. | |
12669 | ||
12670 | 2020-04-14 Kamil Rytarowski <n54@gmx.com> | |
12671 | ||
12672 | * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New. | |
12673 | (nbsd_nat_target::info_proc): Add do_status. | |
12674 | ||
12675 | 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca> | |
12676 | Tom de Vries <tdevries@suse.de> | |
12677 | ||
12678 | PR symtab/25718 | |
12679 | * psympriv.h (struct partial_symtab::read_symtab) | |
12680 | (struct partial_symtab::expand_psymtab) | |
12681 | (struct partial_symtab::read_dependencies): Update comments. | |
12682 | * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call | |
12683 | read_symtab for includer. | |
12684 | (struct dwarf2_include_psymtab::expand_psymtab): Assert false. | |
12685 | (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer. | |
12686 | (struct dwarf2_include_psymtab::m_readin): Remove. | |
12687 | (struct dwarf2_include_psymtab::includer): New member function. | |
12688 | (dwarf2_psymtab::expand_psymtab): Assert !readin. | |
12689 | ||
12690 | 2020-04-14 Tom de Vries <tdevries@suse.de> | |
12691 | ||
12692 | PR symtab/25720 | |
12693 | * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching | |
12694 | with NULL symbol_matcher and lookup_name. | |
12695 | * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher | |
12696 | and lookup_name. | |
12697 | * dwarf2/read.c (dw2_expand_symtabs_matching) | |
12698 | (dw2_debug_names_expand_symtabs_matching): Same. | |
12699 | * symfile.h (struct quick_symbol_functions::expand_symtabs_matching): | |
12700 | Make lookup_name a pointer. Update comment. | |
12701 | * symtab.c (global_symbol_searcher::expand_symtabs): Handle | |
12702 | lookup_name being a pointer. | |
12703 | * symfile.c (expand_symtabs_matching): Same. | |
12704 | * symfile-debug.c (debug_qf_expand_symtabs_matching): Same. | |
12705 | * linespec.c (iterate_over_all_matching_symtabs): Same. | |
12706 | ||
12707 | 2020-04-13 Tom Tromey <tom@tromey.com> | |
12708 | ||
12709 | * run-on-main-thread.c: Update include. | |
12710 | * unittests/main-thread-selftests.c: Update include. | |
12711 | * tui/tui-win.c: Update include. | |
12712 | * tui/tui-io.c: Update include. | |
12713 | * tui/tui-interp.c: Update include. | |
12714 | * tui/tui-hooks.c: Update include. | |
12715 | * top.h: Update include. | |
12716 | * top.c: Update include. | |
12717 | * ser-base.c: Update include. | |
12718 | * remote.c: Update include. | |
12719 | * remote-notif.c: Update include. | |
12720 | * remote-fileio.c: Update include. | |
12721 | * record-full.c: Update include. | |
12722 | * record-btrace.c: Update include. | |
12723 | * python/python.c: Update include. | |
12724 | * posix-hdep.c: Update include. | |
12725 | * mingw-hdep.c: Update include. | |
12726 | * mi/mi-main.c: Update include. | |
12727 | * mi/mi-interp.c: Update include. | |
12728 | * main.c: Update include. | |
12729 | * linux-nat.c: Update include. | |
12730 | * interps.c: Update include. | |
12731 | * infrun.c: Update include. | |
12732 | * inf-loop.c: Update include. | |
12733 | * event-top.c: Update include. | |
12734 | * event-loop.c: Move to ../gdbsupport/. | |
12735 | * event-loop.h: Move to ../gdbsupport/. | |
12736 | * async-event.h: Update include. | |
12737 | * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update. | |
12738 | ||
12739 | 2020-04-13 Tom Tromey <tom@tromey.com> | |
12740 | ||
12741 | * tui/tui-win.c: Include async-event.h. | |
12742 | * remote.c: Include async-event.h. | |
12743 | * remote-notif.c: Include async-event.h. | |
12744 | * record-full.c: Include async-event.h. | |
12745 | * record-btrace.c: Include async-event.h. | |
12746 | * infrun.c: Include async-event.h. | |
12747 | * event-top.c: Include async-event.h. | |
12748 | * event-loop.h: Move some declarations to async-event.h. | |
12749 | * event-loop.c: Don't include ser-event.h or top.h. Move some | |
12750 | code to async-event.c. | |
12751 | * async-event.h: New file. | |
12752 | * async-event.c: New file. | |
12753 | * Makefile.in (COMMON_SFILES): Add async-event.c. | |
12754 | (HFILES_NO_SRCDIR): Add async-event.h. | |
12755 | ||
12756 | 2020-04-13 Tom Tromey <tom@tromey.com> | |
12757 | ||
12758 | * utils.c (flush_streams): New function. | |
12759 | * event-loop.c (gdb_wait_for_event): Call flush_streams. | |
12760 | ||
12761 | 2020-04-13 Tom Tromey <tom@tromey.com> | |
12762 | ||
12763 | * event-loop.c (handle_file_event): Use warning, not | |
12764 | printf_unfiltered. | |
12765 | ||
12766 | 2020-04-13 Tom Tromey <tom@tromey.com> | |
12767 | ||
12768 | * event-loop.c: Include <chrono>. | |
12769 | ||
12770 | 2020-04-13 Tom Tromey <tom@tromey.com> | |
12771 | ||
12772 | * gdb_select.h: Move to ../gdbsupport/. | |
12773 | * event-loop.c: Update include path. | |
12774 | * top.c: Update include path. | |
12775 | * ser-base.c: Update include path. | |
12776 | * ui-file.c: Update include path. | |
12777 | * ser-tcp.c: Update include path. | |
12778 | * guile/scm-ports.c: Update include path. | |
12779 | * posix-hdep.c: Update include path. | |
12780 | * ser-unix.c: Update include path. | |
12781 | * gdb_usleep.c: Update include path. | |
12782 | * mingw-hdep.c: Update include path. | |
12783 | * inflow.c: Update include path. | |
12784 | * infrun.c: Update include path. | |
12785 | * event-top.c: Update include path. | |
12786 | ||
12787 | 2020-04-13 Tom Tromey <tom@tromey.com> | |
12788 | ||
12789 | * configure: Rebuild. | |
12790 | * configure.ac: Remove checks that are now in GDB_AC_COMMON. | |
12791 | ||
12792 | 2020-04-13 Tom Tromey <tom@tromey.com> | |
12793 | ||
12794 | * event-loop.h (start_event_loop): Don't declare. | |
12795 | * event-loop.c (start_event_loop): Move... | |
12796 | * main.c (start_event_loop): ...here. Now static. | |
12797 | ||
12798 | 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net> | |
12799 | ||
12800 | * MAINTAINERS: Update my email address. | |
12801 | ||
12802 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> | |
12803 | ||
12804 | * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and | |
12805 | IP_ALL. | |
12806 | ||
12807 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> | |
12808 | ||
12809 | * nbsd-nat.c (nbsd_pid_to_cmdline): Add. | |
12810 | (nbsd_nat_target::info_proc): Add do_cmdline. | |
12811 | ||
12812 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> | |
12813 | ||
12814 | * nbsd-nat.c (nbsd_pid_to_cwd): Add. | |
12815 | (nbsd_nat_target::info_proc): Add do_cwd. | |
12816 | ||
12817 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> | |
12818 | ||
12819 | * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe. | |
12820 | ||
12821 | 2020-04-11 Kamil Rytarowski <n54@gmx.com> | |
12822 | ||
12823 | * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h". | |
12824 | * nbsd-nat.c (nbsd_nat_target::find_memory_regions) | |
12825 | (nbsd_nat_target::info_proc): New functions. | |
12826 | * nbsd-nat.c (kinfo_get_vmmap): New function. | |
12827 | * nbsd-nat.c (nbsd_nat_target::info_proc) Use | |
12828 | nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry. | |
12829 | * nbsd-tdep.c (nbsd_info_proc_mappings_header) | |
12830 | (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New | |
12831 | functions. | |
12832 | * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE) | |
12833 | (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW) | |
12834 | (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP) | |
12835 | (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP) | |
12836 | (KINFO_VME_FLAG_GROWS_DOWN): New. | |
12837 | ||
12838 | 2020-04-10 Artur Shepilko <nomadbyte@gmail.com> | |
12839 | ||
12840 | * utils.c (copy_bitwise): Use unsigned 0 constant as operand of | |
12841 | bit shift. | |
12842 | ||
12843 | 2020-04-10 Tom Tromey <tromey@adacore.com> | |
12844 | ||
12845 | * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE. | |
12846 | ||
12847 | 2020-04-10 Tom Tromey <tromey@adacore.com> | |
12848 | ||
12849 | * symtab.c (get_symbol_address, get_msymbol_address): Skip | |
12850 | separate debug files. | |
12851 | ||
12852 | 2020-04-10 Hannes Domani <ssbssa@yahoo.de> | |
12853 | ||
12854 | * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): | |
12855 | Move to... | |
12856 | * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): | |
12857 | ... here. | |
12858 | * windows-nat.c (windows_nat_target::get_windows_debug_event): | |
12859 | Check for STATUS_WX86_BREAKPOINT. | |
12860 | (windows_nat_target::wait): Same. | |
12861 | ||
12862 | 2020-04-10 Tom de Vries <tdevries@suse.de> | |
12863 | ||
12864 | PR cli/25808 | |
12865 | * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False. | |
12866 | ||
12867 | 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca> | |
12868 | ||
12869 | * MAINTAINERS (Global Maintainers): Add Tom de Vries. | |
12870 | (Write After Approval): Remove Tom de Vries. | |
12871 | ||
12872 | 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de> | |
12873 | ||
12874 | revert partially: | |
12875 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> | |
12876 | ||
12877 | * buildsym.c (record_line): Fix undefined behavior and preserve | |
12878 | lines at eof. | |
12879 | ||
12880 | 2020-04-09 Kamil Rytarowski <n54@gmx.com> | |
12881 | ||
12882 | * auxv.h (svr4_auxv_parse): New. | |
12883 | * auxv.c (default_auxv_parse): Split into default_auxv_parse | |
12884 | and generic_auxv_parse. | |
12885 | (svr4_auxv_parse): Add. | |
12886 | * obsd-tdep.c: Include "auxv.h". | |
12887 | (obsd_auxv_parse): Remove. | |
12888 | (obsd_init_abi): Remove comment. | |
12889 | (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument | |
12890 | from `obsd_auxv_parse' to `svr4_auxv_parse'. | |
12891 | * nbsd-tdep.c: Include "auxv.h". | |
12892 | (nbsd_init_abi): Call set_gdbarch_auxv_parse. | |
12893 | ||
12894 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
12895 | ||
12896 | * nat/windows-nat.h (last_wait_event): Don't declare. | |
12897 | (wait_for_debug_event): Update comment. | |
12898 | * nat/windows-nat.c (last_wait_event): Now static. | |
12899 | ||
12900 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
12901 | ||
12902 | * windows-nat.c (wait_for_debug_event): Move to | |
12903 | nat/windows-nat.c. | |
12904 | * nat/windows-nat.h (wait_for_debug_event): Declare. | |
12905 | * nat/windows-nat.c (wait_for_debug_event): Move from | |
12906 | windows-nat.c. No longer static. | |
12907 | ||
12908 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
12909 | ||
12910 | * windows-nat.c (get_windows_debug_event): Use | |
12911 | fetch_pending_stop. | |
12912 | * nat/windows-nat.h (fetch_pending_stop): Declare. | |
12913 | * nat/windows-nat.c (fetch_pending_stop): New function. | |
12914 | ||
12915 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
12916 | ||
12917 | * windows-nat.c (windows_continue): Use matching_pending_stop and | |
12918 | continue_last_debug_event. | |
12919 | * nat/windows-nat.h (matching_pending_stop) | |
12920 | (continue_last_debug_event): Declare. | |
12921 | * nat/windows-nat.c (DEBUG_EVENTS): New define. | |
12922 | (matching_pending_stop, continue_last_debug_event): New | |
12923 | functions. | |
12924 | ||
12925 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
12926 | ||
12927 | * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c. | |
12928 | (handle_exception_result): Move to nat/windows-nat.h. | |
12929 | (DEBUG_EXCEPTION_SIMPLE): Remove. | |
12930 | (windows_nat::handle_ms_vc_exception): New function. | |
12931 | (handle_exception): Move to nat/windows-nat.c. | |
12932 | (get_windows_debug_event): Update. | |
12933 | (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to | |
12934 | nat/windows-nat.c. | |
12935 | * nat/windows-nat.h (handle_ms_vc_exception): Declare. | |
12936 | (handle_exception_result): Move from windows-nat.c. | |
12937 | (handle_exception): Declare. | |
12938 | * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception) | |
12939 | (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from | |
12940 | windows-nat.c. | |
12941 | ||
12942 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
12943 | ||
12944 | * windows-nat.c (exception_count, event_count): Remove. | |
12945 | (handle_exception, get_windows_debug_event) | |
12946 | (do_initial_windows_stuff): Update. | |
12947 | ||
12948 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
12949 | ||
12950 | * windows-nat.c (windows_nat::handle_load_dll) | |
12951 | (windows_nat::handle_unload_dll): Rename. No longer static. | |
12952 | * nat/windows-nat.h (handle_load_dll, handle_unload_dll): | |
12953 | Declare. | |
12954 | ||
12955 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
12956 | ||
12957 | * complaints.h (stop_whining): Declare at top-level. | |
12958 | (complaint): Don't declare stop_whining. | |
12959 | ||
12960 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
12961 | ||
12962 | * windows-nat.c (windows_nat::handle_output_debug_string): | |
12963 | Rename. No longer static. | |
12964 | * nat/windows-nat.h (handle_output_debug_string): Declare. | |
12965 | ||
12966 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
12967 | ||
12968 | * windows-nat.c (current_process_handle, current_process_id) | |
12969 | (main_thread_id, last_sig, current_event, last_wait_event) | |
12970 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
12971 | (struct pending_stop, siginfo_er): Move to nat/windows-nat.c. | |
12972 | (display_selectors, fake_create_process) | |
12973 | (get_windows_debug_event): Update. | |
12974 | * nat/windows-nat.h (current_process_handle, current_process_id) | |
12975 | (main_thread_id, last_sig, current_event, last_wait_event) | |
12976 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
12977 | (struct pending_stop, siginfo_er): Move from windows-nat.c. | |
12978 | * nat/windows-nat.c (current_process_handle, current_process_id) | |
12979 | (main_thread_id, last_sig, current_event, last_wait_event) | |
12980 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
12981 | (siginfo_er): New globals. Move from windows-nat.c. | |
12982 | ||
12983 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
12984 | ||
12985 | * windows-nat.c (get_image_name): Move to nat/windows-nat.c. | |
12986 | (handle_load_dll): Update. | |
12987 | * nat/windows-nat.c (get_image_name): Move from windows-nat.c. | |
12988 | ||
12989 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
12990 | ||
12991 | * windows-nat.c (enum thread_disposition_type): Move to | |
12992 | nat/windows-nat.h. | |
12993 | (windows_nat::thread_rec): Rename from thread_rec. No longer | |
12994 | static. | |
12995 | (windows_add_thread, windows_nat_target::fetch_registers) | |
12996 | (windows_nat_target::store_registers, handle_exception) | |
12997 | (windows_nat_target::resume, get_windows_debug_event) | |
12998 | (windows_nat_target::get_tib_address) | |
12999 | (windows_nat_target::thread_name) | |
13000 | (windows_nat_target::thread_alive): Update. | |
13001 | * nat/windows-nat.h (enum thread_disposition_type): Move from | |
13002 | windows-nat.c. | |
13003 | (thread_rec): Declare. | |
13004 | ||
13005 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
13006 | ||
13007 | * windows-nat.c: Add "using namespace". | |
13008 | * nat/windows-nat.h: Wrap contents in windows_nat namespace. | |
13009 | * nat/windows-nat.c: Wrap contents in windows_nat namespace. | |
13010 | ||
13011 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
13012 | ||
13013 | * nat/windows-nat.h (struct windows_thread_info): Declare | |
13014 | destructor. | |
13015 | * nat/windows-nat.c (~windows_thread_info): New. | |
13016 | ||
13017 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
13018 | ||
13019 | PR gdb/22992 | |
13020 | * windows-nat.c (current_event): Update comment. | |
13021 | (last_wait_event, desired_stop_thread_id): New globals. | |
13022 | (struct pending_stop): New. | |
13023 | (pending_stops): New global. | |
13024 | (windows_nat_target) <stopped_by_sw_breakpoint> | |
13025 | <supports_stopped_by_sw_breakpoint>: New methods. | |
13026 | (windows_fetch_one_register): Add assertions. Adjust PC. | |
13027 | (windows_continue): Handle pending stops. Suspend other threads | |
13028 | when stepping. Use last_wait_event | |
13029 | (wait_for_debug_event): New function. | |
13030 | (get_windows_debug_event): Use wait_for_debug_event. Handle | |
13031 | pending stops. Queue spurious stops. | |
13032 | (windows_nat_target::wait): Set stopped_at_software_breakpoint. | |
13033 | (windows_nat_target::kill): Use wait_for_debug_event. | |
13034 | * nat/windows-nat.h (struct windows_thread_info) | |
13035 | <stopped_at_software_breakpoint>: New field. | |
13036 | * nat/windows-nat.c (windows_thread_info::resume): Clear | |
13037 | stopped_at_software_breakpoint. | |
13038 | ||
13039 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
13040 | ||
13041 | * windows-nat.c (enum thread_disposition_type): New. | |
13042 | (thread_rec): Replace "get_context" parameter with "disposition"; | |
13043 | change type. | |
13044 | (windows_add_thread, windows_nat_target::fetch_registers) | |
13045 | (windows_nat_target::store_registers, handle_exception) | |
13046 | (windows_nat_target::resume, get_windows_debug_event) | |
13047 | (windows_nat_target::get_tib_address) | |
13048 | (windows_nat_target::thread_name) | |
13049 | (windows_nat_target::thread_alive): Update. | |
13050 | ||
13051 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
13052 | ||
13053 | * windows-nat.c (thread_rec): Use windows_thread_info::suspend. | |
13054 | (windows_continue): Use windows_continue::resume. | |
13055 | * nat/windows-nat.h (struct windows_thread_info) <suspend, | |
13056 | resume>: Declare new methods. | |
13057 | * nat/windows-nat.c: New file. | |
13058 | * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed. | |
13059 | ||
13060 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
13061 | ||
13062 | * windows-nat.c (windows_add_thread, windows_delete_thread) | |
13063 | (windows_nat_target::fetch_registers) | |
13064 | (windows_nat_target::store_registers, fake_create_process) | |
13065 | (windows_nat_target::resume, windows_nat_target::resume) | |
13066 | (get_windows_debug_event, windows_nat_target::wait) | |
13067 | (windows_nat_target::pid_to_str) | |
13068 | (windows_nat_target::get_tib_address) | |
13069 | (windows_nat_target::get_ada_task_ptid) | |
13070 | (windows_nat_target::thread_name) | |
13071 | (windows_nat_target::thread_alive): Use lwp, not tid. | |
13072 | ||
13073 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
13074 | ||
13075 | * windows-nat.c (handle_exception) | |
13076 | (windows_nat_target::thread_name): Update. | |
13077 | * nat/windows-nat.h (windows_thread_info): Remove destructor. | |
13078 | <name>: Now unique_xmalloc_ptr. | |
13079 | ||
13080 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
13081 | ||
13082 | * windows-nat.c (thread_rec) | |
13083 | (windows_nat_target::fetch_registers): Update. | |
13084 | * nat/windows-nat.h (struct windows_thread_info) <suspended>: | |
13085 | Update comment. | |
13086 | <debug_registers_changed, reload_context>: Now bool. | |
13087 | ||
13088 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
13089 | ||
13090 | * windows-nat.c (windows_add_thread): Use new. | |
13091 | (windows_init_thread_list, windows_delete_thread): Use delete. | |
13092 | (get_windows_debug_event): Update. | |
13093 | * nat/windows-nat.h (struct windows_thread_info): Add constructor, | |
13094 | destructor, and initializers. | |
13095 | ||
13096 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
13097 | ||
13098 | * windows-nat.c (struct windows_thread_info): Remove. | |
13099 | * nat/windows-nat.h: New file. | |
13100 | ||
13101 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
13102 | ||
13103 | * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id". | |
13104 | (thread_rec, windows_add_thread, windows_delete_thread) | |
13105 | (windows_continue): Update. | |
13106 | ||
13107 | 2020-04-08 Tom Tromey <tromey@adacore.com> | |
13108 | ||
13109 | * windows-nat.c (struct windows_thread_info): Remove typedef. | |
13110 | (thread_head): Remove. | |
13111 | (thread_list): New global. | |
13112 | (thread_rec, windows_add_thread, windows_init_thread_list) | |
13113 | (windows_delete_thread, windows_continue): Update. | |
13114 | ||
13115 | 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca> | |
13116 | ||
13117 | * windows-tdep.h (windows_init_abi): Add comment. | |
13118 | (cygwin_init_abi): New declaration. | |
13119 | * windows-tdep.c: Split signal enumeration in two, one for | |
13120 | Windows and one for Cygwin. | |
13121 | (windows_gdb_signal_to_target): Only deal with signal of the | |
13122 | Windows OS ABI. | |
13123 | (cygwin_gdb_signal_to_target): New function. | |
13124 | (windows_init_abi): Rename to windows_init_abi_common, don't set | |
13125 | gdb_signal_to_target gdbarch method. Add new new function with | |
13126 | this name. | |
13127 | (cygwin_init_abi): New function. | |
13128 | * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add | |
13129 | comment. Don't call windows_init_abi. | |
13130 | (amd64_windows_init_abi): Add comment, call windows_init_abi. | |
13131 | (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi. | |
13132 | * i386-windows-tdep.c (i386_windows_init_abi): Rename to | |
13133 | i386_windows_init_abi_common, don't call windows_init_abi. Add | |
13134 | a new function of this name. | |
13135 | (i386_cygwin_init_abi): New function. | |
13136 | (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to | |
13137 | OS ABI Cygwin. | |
13138 | ||
13139 | 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca> | |
13140 | ||
13141 | * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile | |
13142 | parameter.c. | |
13143 | (dwarf2_read_gdb_index): Update. | |
13144 | ||
13145 | 2020-04-07 Kamil Rytarowski <n54@gmx.com> | |
13146 | ||
13147 | * nbsd-tdep.c: Include "objfiles.h". | |
13148 | (nbsd_skip_solib_resolver): New. | |
13149 | (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver(). | |
13150 | ||
13151 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> | |
13152 | ||
13153 | * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_ | |
13154 | addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair | |
13155 | with DW_LLE_base_addressx are being emitted in DWARFv5. | |
13156 | Add the newly added kind DW_LOC_OFFSET_PAIR also. | |
13157 | The length of location description is an unsigned ULEB integer in DWARFv5 instead of | |
13158 | unsigned integer. | |
13159 | ||
13160 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> | |
13161 | ||
13162 | * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR. | |
13163 | (dwarf2_find_location_expression): Call the function decode_debug_loclists_ | |
13164 | addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair | |
13165 | with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*. | |
13166 | Add applicable base address if the entry is DW_LLE_offset_pair from DWO. | |
13167 | (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of | |
13168 | DEBUG_LOC_START_END in case of DW_LLE_offset_pair. | |
13169 | ||
13170 | ||
13171 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> | |
13172 | ||
13173 | * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function. | |
13174 | (read_loclist_index): New function definition. | |
13175 | (lookup_loclist_base): New function definition. | |
13176 | (read_loclist_header): New function definition. | |
13177 | (dwarf2_cu): Add loclist_base and loclist_header field. | |
13178 | (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section. | |
13179 | (read_full_die_1): Read the value of DW_AT_loclists_base. | |
13180 | (read_attribute_reprocess): Handle DW_FORM_loclistx. | |
13181 | (read_attribute_value): Handle DW_FORM_loclistx. | |
13182 | (skip_one_die): Handle DW_FORM_loclistx. | |
13183 | (loclist_header): New structure declaration. | |
13184 | * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx. | |
13185 | ||
13186 | 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca> | |
13187 | ||
13188 | * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters | |
13189 | constructor. Remove `addr` parameter from other constructor and | |
13190 | add `per_cu` parameter. | |
13191 | * dwarf2/read.c (create_partial_symtab): Update. | |
13192 | ||
13193 | 2020-04-07 Tom de Vries <tdevries@suse.de> | |
13194 | ||
13195 | PR symtab/25796 | |
13196 | * dwarf2/read.c (can_have_DW_AT_const_value_p): New function. | |
13197 | (partial_die_info::fixup): Inherit has_const_value. | |
13198 | ||
13199 | 2020-04-07 Tom de Vries <tdevries@suse.de> | |
13200 | ||
13201 | * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK | |
13202 | symbols without address. | |
13203 | ||
13204 | 2020-04-06 Kamil Rytarowski <n54@gmx.com> | |
13205 | ||
13206 | * nbsd-nat.h (struct thread_info): Add forward declaration. | |
13207 | (nbsd_nat_target::thread_alive): Add. | |
13208 | (nbsd_nat_target::thread_name): Likewise. | |
13209 | (nbsd_nat_target::update_thread_list): Likewise. | |
13210 | (update_thread_list::post_attach): Likewise. | |
13211 | (post_attach::pid_to_str): Likewise. | |
13212 | * nbsd-nat.c: Include "gdbthread.h" and "inferior.h". | |
13213 | (nbsd_thread_lister): Add. | |
13214 | (nbsd_nat_target::thread_alive): Likewise. | |
13215 | (nbsd_nat_target::thread_name): Likewise. | |
13216 | (nbsd_add_threads): Likewise. | |
13217 | (update_thread_list::post_attach): Likewise. | |
13218 | (nbsd_nat_target::update_thread_list): Likewise. | |
13219 | (post_attach::pid_to_str): Likewise. | |
13220 | ||
13221 | 2020-04-06 Tom Tromey <tromey@adacore.com> | |
13222 | ||
13223 | * ada-valprint.c (print_variant_part): Extract the variant field. | |
13224 | (print_field_values): Use the field as the outer value when | |
13225 | recursing. | |
13226 | ||
13227 | 2020-04-06 Tom Tromey <tromey@adacore.com> | |
13228 | ||
13229 | * sh-nbsd-tdep.c: Include nbsd-tdep.h. | |
13230 | * ppc-nbsd-tdep.c: Include nbsd-tdep.h. | |
13231 | * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";". | |
13232 | * arm-nbsd-tdep.c: Include nbsd-tdep.h. | |
13233 | * hppa-nbsd-tdep.c: Include nbsd-tdep.h. | |
13234 | ||
13235 | 2020-04-06 Tom Tromey <tromey@adacore.com> | |
13236 | ||
13237 | * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle | |
13238 | TYPE_CODE_ERROR. | |
13239 | ||
13240 | 2020-04-06 Kamil Rytarowski <n54@gmx.com> | |
13241 | ||
13242 | * nbsd-tdep.c: Include "gdbarch.h". | |
13243 | Define enum with NetBSD signal numbers. | |
13244 | (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New. | |
13245 | * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi(). | |
13246 | * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise. | |
13247 | * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise. | |
13248 | * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise. | |
13249 | * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise. | |
13250 | * mips-nbsd-tdep.c (nbsd_init_abi): Likewise. | |
13251 | * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise. | |
13252 | * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise. | |
13253 | * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise. | |
13254 | * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise. | |
13255 | * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise. | |
13256 | ||
13257 | 2020-04-03 Hannes Domani <ssbssa@yahoo.de> | |
13258 | ||
13259 | PR gdb/25325 | |
13260 | * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes. | |
13261 | ||
13262 | 2020-04-03 Tom Tromey <tromey@adacore.com> | |
13263 | ||
13264 | * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>: | |
13265 | Read constant block. | |
13266 | ||
13267 | 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca> | |
13268 | ||
13269 | * gdb_bfd.h: Include gdbsupport/byte-vector.h. | |
13270 | (gdb_bfd_get_full_section_contents): New declaration. | |
13271 | * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function. | |
13272 | * windows-tdep.c (is_linked_with_cygwin_dll): Use | |
13273 | gdb_bfd_get_full_section_contents. | |
13274 | ||
13275 | 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca> | |
13276 | ||
13277 | * exec.c (build_section_table): Replace internal_error with | |
13278 | gdb_assert. | |
13279 | (section_table_xfer_memory_partial): Likewise. | |
13280 | * mdebugread.c (parse_partial_symbols): Likewise. | |
13281 | * psymtab.c (lookup_partial_symbol): Likewise. | |
13282 | * utils.c (wrap_here): Likewise. | |
13283 | ||
13284 | 2020-04-02 Tom Tromey <tromey@adacore.com> | |
13285 | ||
13286 | * f-lang.c (build_fortran_types): Use arch_type to initialize | |
13287 | builtin_complex_s32 in the TYPE_CODE_ERROR case. | |
13288 | ||
13289 | 2020-04-02 Tom Tromey <tromey@adacore.com> | |
13290 | ||
13291 | * dwarf2/read.c (partial_die_info::read): Do not create a vector | |
13292 | of attributes. | |
13293 | ||
13294 | 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com> | |
13295 | Bernd Edlinger <bernd.edlinger@hotmail.de> | |
13296 | Tom Tromey <tromey@adacore.com> | |
13297 | ||
13298 | * buildsym.c (buildsym_compunit::record_line): Remove | |
13299 | deduplication code. | |
13300 | ||
13301 | 2020-04-02 Tom de Vries <tdevries@suse.de> | |
13302 | ||
13303 | PR ada/24671 | |
13304 | * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow. | |
13305 | ||
13306 | 2020-04-02 Tom de Vries <tdevries@suse.de> | |
13307 | ||
13308 | * dwarf2/read.c (dwarf2_gdb_index_functions, | |
13309 | dwarf2_debug_names_functions): Init lookup_global_symbol_language with | |
13310 | NULL. | |
13311 | * psymtab.c (psym_lookup_global_symbol_language): New function. | |
13312 | (psym_functions): Init psym_lookup_global_symbol_language with | |
13313 | psym_lookup_global_symbol_language. | |
13314 | * symfile-debug.c (debug_sym_quick_functions): Init | |
13315 | lookup_global_symbol_language with NULL. | |
13316 | * symfile.c (set_initial_language): Remove fixme comment. | |
13317 | * symfile.h (struct quick_symbol_functions): Add | |
13318 | lookup_global_symbol_language. | |
13319 | * symtab.c (find_quick_global_symbol_language): New function. | |
13320 | (find_main_name): Use find_quick_global_symbol_language. | |
13321 | ||
13322 | 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca> | |
13323 | ||
13324 | * windows-tdep.c (is_linked_with_cygwin_dll): Fix style. | |
13325 | ||
13326 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> | |
13327 | ||
13328 | * buildsym.c (record_line): Fix undefined behavior and preserve | |
13329 | lines at eof. | |
13330 | ||
13331 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> | |
13332 | ||
13333 | * buildsym.c (record_line): Fix the resizing condition. | |
13334 | ||
13335 | 2020-04-01 Tom Tromey <tom@tromey.com> | |
13336 | ||
13337 | * value.h (value_literal_complex): Add comment. | |
13338 | * valops.c (value_literal_complex): Refer to value.h. | |
13339 | ||
13340 | 2020-04-01 Tom Tromey <tom@tromey.com> | |
13341 | ||
13342 | * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens. | |
13343 | (scalar_type): New rule, from typebase. | |
13344 | (typebase): Use scalar_type. Recognize complex types. | |
13345 | (field_name): Handle FLOAT_KEYWORD. | |
13346 | (ident_tokens): Add _Complex and __complex__. | |
13347 | ||
13348 | 2020-04-01 Tom Tromey <tom@tromey.com> | |
13349 | ||
13350 | PR exp/25299: | |
13351 | * valarith.c (promotion_type, complex_binop): New functions. | |
13352 | (scalar_binop): Handle complex numbers. Use promotion_type. | |
13353 | (value_pos, value_neg, value_complement): Handle complex numbers. | |
13354 | ||
13355 | 2020-04-01 Tom Tromey <tom@tromey.com> | |
13356 | ||
13357 | * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens. | |
13358 | (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules. | |
13359 | (parse_number): Handle complex numbers. | |
13360 | ||
13361 | 2020-04-01 Tom Tromey <tom@tromey.com> | |
13362 | ||
13363 | * c-valprint.c (c_decorations): Change complex suffix to "i". | |
13364 | ||
13365 | 2020-04-01 Tom Tromey <tom@tromey.com> | |
13366 | ||
13367 | * valprint.c (generic_value_print_complex): Use accessors. | |
13368 | * value.h (value_real_part, value_imaginary_part): Declare. | |
13369 | * valops.c (value_real_part, value_imaginary_part): New | |
13370 | functions. | |
13371 | * value.c (creal_internal_fn, cimag_internal_fn): Use accessors. | |
13372 | ||
13373 | 2020-04-01 Tom Tromey <tom@tromey.com> | |
13374 | ||
13375 | * stabsread.c (rs6000_builtin_type, read_sun_floating_type) | |
13376 | (read_range_type): Update. | |
13377 | * mdebugread.c (basic_type): Update. | |
13378 | * go-lang.c (build_go_types): Use init_complex_type. | |
13379 | * gdbtypes.h (struct main_type) <complex_type>: New member. | |
13380 | (init_complex_type): Update. | |
13381 | (arch_complex_type): Don't declare. | |
13382 | * gdbtypes.c (init_complex_type): Remove "objfile" parameter. | |
13383 | Make name if none given. Use alloc_type_copy. Look for cached | |
13384 | complex type. | |
13385 | (arch_complex_type): Remove. | |
13386 | (gdbtypes_post_init): Use init_complex_type. | |
13387 | * f-lang.c (build_fortran_types): Use init_complex_type. | |
13388 | * dwarf2/read.c (read_base_type): Update. | |
13389 | * d-lang.c (build_d_types): Use init_complex_type. | |
13390 | * ctfread.c (read_base_type): Update. | |
13391 | ||
13392 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
13393 | ||
13394 | * infrun.c (stop_all_threads): Update assertion, plus when | |
13395 | stopping threads, take into account that we might be trying | |
13396 | to stop an all-stop target. | |
13397 | (stop_waiting): Call 'stop_all_threads' if there exists a | |
13398 | non-stop target. | |
13399 | ||
13400 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
13401 | ||
13402 | * target.h (exists_non_stop_target): New function declaration. | |
13403 | * target.c (exists_non_stop_target): New function. | |
13404 | ||
13405 | 2020-04-01 Hannes Domani <ssbssa@yahoo.de> | |
13406 | ||
13407 | PR gdb/24789 | |
13408 | * eval.c (is_integral_or_integral_reference): New function. | |
13409 | (evaluate_subexp_standard): Allow integer references in | |
13410 | pointer arithmetic. | |
13411 | ||
13412 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
13413 | ||
13414 | * remote.c (remote_target::remote_parse_stop_reply): Remove the | |
13415 | check for no ptid in the stop reply when the target is non-stop. | |
13416 | ||
13417 | 2020-04-01 Tom Tromey <tromey@adacore.com> | |
13418 | ||
13419 | * symtab.h (class lookup_name_info) <lookup_name_info>: Change | |
13420 | "name" parameter to rvalue reference. Initialize m_name_holder. | |
13421 | <lookup_name_info>: New overloads. | |
13422 | <name>: Return gdb::string_view. | |
13423 | <c_str>: New method. | |
13424 | <make_ignore_params>: Update. | |
13425 | <search_name_hash>: Update. | |
13426 | <language_lookup_name>: Return const char *. | |
13427 | <m_name>: Change type. | |
13428 | * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info) | |
13429 | (demangle_for_lookup_info::demangle_for_lookup_info): Update. | |
13430 | (lookup_name_info::match_any): Update. | |
13431 | * psymtab.c (match_partial_symbol, lookup_partial_symbol): | |
13432 | Update. | |
13433 | * minsyms.c (linkage_name_str): Update. | |
13434 | * language.c (default_symbol_name_matcher): Update. | |
13435 | * dwarf2/read.c (mapped_index_base::find_name_components_bounds): | |
13436 | Update. | |
13437 | * ada-lang.c (ada_fold_name): Change parameter to string_view. | |
13438 | (ada_lookup_name_info::ada_lookup_name_info): Update. | |
13439 | (literal_symbol_name_matcher): Update. | |
13440 | ||
13441 | 2020-04-01 Tom Tromey <tromey@adacore.com> | |
13442 | ||
13443 | * psymtab.c (psymtab_search_name): Remove function. | |
13444 | (psym_lookup_symbol): Create search name and lookup name here. | |
13445 | (lookup_partial_symbol): Remove "name" parameter; add | |
13446 | lookup_name. | |
13447 | (psym_expand_symtabs_for_function): Update. | |
13448 | ||
13449 | 2020-03-31 Joel Jones <joelkevinjones@gmail.com> | |
13450 | ||
13451 | PR tui/25597: | |
13452 | * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI. | |
13453 | ||
13454 | 2020-03-31 Tom Tromey <tromey@adacore.com> | |
13455 | ||
13456 | * dwarf2/abbrev.c (abbrev_table::read): Conditionally call | |
13457 | memcpy. | |
13458 | ||
13459 | 2020-03-30 Nelson Chu <nelson.chu@sifive.com> | |
13460 | ||
13461 | * features/riscv/32bit-csr.xml: Regenerated. | |
13462 | * features/riscv/64bit-csr.xml: Regenerated. | |
13463 | ||
13464 | 2020-03-30 Tom Tromey <tromey@adacore.com> | |
13465 | ||
13466 | * ada-valprint.c (print_variant_part): Update. | |
13467 | * ada-lang.h (ada_which_variant_applies): Update. | |
13468 | * ada-lang.c (ada_which_variant_applies): Remove outer_type and | |
13469 | outer_valaddr parameters; replace with "outer" value parameter. | |
13470 | (to_fixed_variant_branch_type): Update. | |
13471 | ||
13472 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> | |
13473 | ||
13474 | * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and | |
13475 | <list>. Remove inclusion of observable.h. | |
13476 | (PPC_DEBUG_CURRENT_VERSION): Move up define. | |
13477 | (struct arch_lwp_info): New struct. | |
13478 | (class ppc_linux_dreg_interface): New class. | |
13479 | (struct ppc_linux_process_info): New struct. | |
13480 | (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork> | |
13481 | <low_new_clone, low_forget_process, low_prepare_to_resume> | |
13482 | <copy_thread_dreg_state, mark_thread_stale> | |
13483 | <mark_debug_registers_changed, register_hw_breakpoint> | |
13484 | <clear_hw_breakpoint, register_wp, clear_wp> | |
13485 | <can_use_watchpoint_cond_accel, calculate_dvc, check_condition> | |
13486 | <num_memory_accesses, get_trigger_type> | |
13487 | <create_watchpoint_request, hwdebug_point_cmp> | |
13488 | <init_arch_lwp_info, get_arch_lwp_info> | |
13489 | <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as | |
13490 | methods. | |
13491 | <struct ptid_hash>: New inner struct. | |
13492 | <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare | |
13493 | members. | |
13494 | (saved_dabr_value, hwdebug_info, max_slots_number) | |
13495 | (struct hw_break_tuple, struct thread_points, ppc_threads) | |
13496 | (have_ptrace_hwdebug_interface) | |
13497 | (hwdebug_find_thread_points_by_tid) | |
13498 | (hwdebug_insert_point, hwdebug_remove_point): Remove. | |
13499 | (ppc_linux_nat_target::can_use_hw_breakpoint): Use | |
13500 | m_dreg_interface, remove call to PTRACE_SET_DEBUGREG. | |
13501 | (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment, | |
13502 | use m_dreg_interface. | |
13503 | (hwdebug_point_cmp): Change to... | |
13504 | (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use | |
13505 | reference arguments instead of pointers. | |
13506 | (ppc_linux_nat_target::ranged_break_num_registers): Use | |
13507 | m_dreg_interface. | |
13508 | (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use | |
13509 | m_dreg_interface. Call register_hw_breakpoint. | |
13510 | (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use | |
13511 | m_dreg_interface. Call clear_hw_breakpoint. | |
13512 | (get_trigger_type): Change to... | |
13513 | (ppc_linux_nat_target::get_trigger_type): ...this method. Add | |
13514 | comment. | |
13515 | (ppc_linux_nat_target::insert_mask_watchpoint): Update comment, | |
13516 | use m_dreg_interface. Call register_hw_breakpoint. | |
13517 | (ppc_linux_nat_target::remove_mask_watchpoint): Update comment, | |
13518 | use m_dreg_interface. Call clear_hw_breakpoint. | |
13519 | (can_use_watchpoint_cond_accel): Change to... | |
13520 | (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this | |
13521 | method. Update comment, use m_dreg_interface and | |
13522 | m_process_info. | |
13523 | (calculate_dvc): Change to... | |
13524 | (ppc_linux_nat_target::calculate_dvc): ...this method. Use | |
13525 | m_dreg_interface. | |
13526 | (num_memory_accesses): Change to... | |
13527 | (ppc_linux_nat_target::num_memory_accesses): ...this method. | |
13528 | (check_condition): Change to... | |
13529 | (ppc_linux_nat_target::check_condition): ...this method. | |
13530 | (ppc_linux_nat_target::can_accel_watchpoint_condition): Update | |
13531 | comment, use m_dreg_interface. | |
13532 | (create_watchpoint_request): Change to... | |
13533 | (ppc_linux_nat_target::create_watchpoint_request): ...this | |
13534 | method. Use m_dreg_interface. | |
13535 | (ppc_linux_nat_target::insert_watchpoint): Add comment, use | |
13536 | m_dreg_interface. Call register_hw_breakpoint or register_wp. | |
13537 | (ppc_linux_nat_target::remove_watchpoint): Add comment, use | |
13538 | m_dreg_interface. Call clear_hw_breakpoint or clear_wp. | |
13539 | (ppc_linux_nat_target::low_forget_process) | |
13540 | (ppc_linux_nat_target::low_new_fork) | |
13541 | (ppc_linux_nat_target::low_new_clone) | |
13542 | (ppc_linux_nat_target::low_delete_thread) | |
13543 | (ppc_linux_nat_target::low_prepare_to_resume): New methods. | |
13544 | (ppc_linux_nat_target::low_new_thread): Remove previous logic, | |
13545 | only call mark_thread_stale. | |
13546 | (ppc_linux_thread_exit): Remove. | |
13547 | (ppc_linux_nat_target::stopped_data_address): Change to... | |
13548 | (ppc_linux_nat_target::low_stopped_data_address): This. Add | |
13549 | comment, use m_dreg_interface and m_thread_hw_breakpoints. | |
13550 | (ppc_linux_nat_target::stopped_by_watchpoint): Change to... | |
13551 | (ppc_linux_nat_target::stopped_by_watchpoint): This. Add | |
13552 | comment. Call low_stopped_data_address. | |
13553 | (ppc_linux_nat_target::watchpoint_addr_within_range): Use | |
13554 | m_dreg_interface. | |
13555 | (ppc_linux_nat_target::masked_watch_num_registers): Use | |
13556 | m_dreg_interface. | |
13557 | (ppc_linux_nat_target::copy_thread_dreg_state) | |
13558 | (ppc_linux_nat_target::mark_thread_stale) | |
13559 | (ppc_linux_nat_target::mark_debug_registers_changed) | |
13560 | (ppc_linux_nat_target::register_hw_breakpoint) | |
13561 | (ppc_linux_nat_target::clear_hw_breakpoint) | |
13562 | (ppc_linux_nat_target::register_wp) | |
13563 | (ppc_linux_nat_target::clear_wp) | |
13564 | (ppc_linux_nat_target::init_arch_lwp_info) | |
13565 | (ppc_linux_nat_target::get_arch_lwp_info): New methods. | |
13566 | (_initialize_ppc_linux_nat): Remove observer callback. | |
13567 | ||
13568 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> | |
13569 | ||
13570 | * ppc-linux-nat.c (ppc_linux_nat_target::store_registers) | |
13571 | (ppc_linux_nat_target::auxv_parse) | |
13572 | (ppc_linux_nat_target::read_description) | |
13573 | (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): | |
13574 | Move up. | |
13575 | ||
13576 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> | |
13577 | ||
13578 | * linux-nat.h (low_new_clone): New method. | |
13579 | * linux-nat.c (linux_handle_extended_wait): Call low_new_clone. | |
13580 | ||
13581 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> | |
13582 | ||
13583 | * dbxread.c (dbx_psymtab_to_symtab_1): Rename to... | |
13584 | (dbx_expand_psymtab): ... this. | |
13585 | (start_psymtab): Update. | |
13586 | * mdebugread.c (psymtab_to_symtab_1): Rename to... | |
13587 | (mdebug_expand_psymtab): ... this. | |
13588 | (parse_partial_symbols): Update. | |
13589 | (new_psymtab): Update. | |
13590 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to... | |
13591 | (xcoff_expand_psymtab): ... this. | |
13592 | (xcoff_start_psymtab): Update. | |
13593 | ||
13594 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> | |
13595 | ||
13596 | * psympriv.h (partial_symtab) <read_dependencies>: Rename to... | |
13597 | <expand_dependencies>: ... this. | |
13598 | * psymtab.c (partial_symtab::read_dependencies): Rename to... | |
13599 | (partial_symtab::expand_dependencies): ... this. | |
13600 | * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>: | |
13601 | Update. | |
13602 | (dwarf2_psymtab::expand_psymtab): Update. | |
13603 | * dbxread.c (dbx_psymtab_to_symtab_1): Update. | |
13604 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
13605 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. | |
13606 | ||
13607 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> | |
13608 | ||
13609 | * psympriv.h (discard_psymtab): Remove. | |
13610 | * dbxread.c (dbx_end_psymtab): Update. | |
13611 | * xcoffread.c (xcoff_end_psymtab): Update. | |
13612 | ||
13613 | 2020-03-28 Tom Tromey <tom@tromey.com> | |
13614 | ||
13615 | * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update | |
13616 | comment. | |
13617 | ||
13618 | 2020-03-28 Tom Tromey <tom@tromey.com> | |
13619 | ||
13620 | * dwarf2/read.c (read_attribute_reprocess): Fix formatting. | |
13621 | ||
13622 | 2020-03-27 Hannes Domani <ssbssa@yahoo.de> | |
13623 | ||
13624 | * windows-nat.c (windows_add_all_dlls): Fix system dll paths. | |
13625 | ||
13626 | 2020-03-26 John Baldwin <jhb@FreeBSD.org> | |
13627 | ||
13628 | * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS. | |
13629 | ||
13630 | 2020-03-26 Tom Tromey <tom@tromey.com> | |
13631 | ||
13632 | * dwarf2/read.c (handle_data_member_location, dwarf2_add_field) | |
13633 | (mark_common_block_symbol_computed, read_tag_string_type) | |
13634 | (attr_to_dynamic_prop, read_subrange_type): Update. | |
13635 | (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move | |
13636 | to be methods on struct attribute. | |
13637 | (skip_one_die, process_imported_unit_die, read_namespace_alias) | |
13638 | (read_call_site_scope, partial_die_info::read) | |
13639 | (partial_die_info::read, lookup_die_type, follow_die_ref): | |
13640 | Update. | |
13641 | * dwarf2/attribute.c (attribute::get_ref_die_offset): New method, | |
13642 | from dwarf2_get_ref_die_offset. | |
13643 | (attribute::constant_value): New method, from | |
13644 | dwarf2_get_attr_constant_value. | |
13645 | * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>: | |
13646 | Declare method. | |
13647 | <constant_value>: New method. | |
13648 | ||
13649 | 2020-03-26 Tom Tromey <tom@tromey.com> | |
13650 | ||
13651 | * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name) | |
13652 | (dwarf_attr_name, dwarf_form_name, dwarf_bool_name) | |
13653 | (dwarf_type_encoding_name): Move to stringify.c. | |
13654 | * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c. | |
13655 | * dwarf2/stringify.c: New file. | |
13656 | * dwarf2/stringify.h: New file. | |
13657 | ||
13658 | 2020-03-26 Tom Tromey <tom@tromey.com> | |
13659 | ||
13660 | * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: | |
13661 | Rewrite. | |
13662 | ||
13663 | 2020-03-26 Tom Tromey <tom@tromey.com> | |
13664 | ||
13665 | * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New | |
13666 | methods. | |
13667 | * dwarf2/read.c (lookup_addr_base): Move to die.h. | |
13668 | (lookup_ranges_base): Likewise. | |
13669 | (read_cutu_die_from_dwo, read_full_die_1): Update. | |
13670 | ||
13671 | 2020-03-26 Tom Tromey <tom@tromey.com> | |
13672 | ||
13673 | * dwarf2/read.c (read_import_statement, read_file_scope) | |
13674 | (read_type_unit_scope, inherit_abstract_dies, read_func_scope) | |
13675 | (read_lexical_block_scope, read_call_site_scope) | |
13676 | (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds) | |
13677 | (handle_struct_member_die, process_structure_scope) | |
13678 | (update_enumeration_type_from_children) | |
13679 | (process_enumeration_scope, read_array_type, read_common_block) | |
13680 | (read_namespace, read_module, read_subroutine_type): Update. | |
13681 | (sibling_die): Remove. | |
13682 | ||
13683 | 2020-03-26 Tom Tromey <tom@tromey.com> | |
13684 | ||
13685 | * dwarf2/read.c (lookup_addr_base, lookup_ranges_base) | |
13686 | (build_type_psymtabs_reader, read_structure_type) | |
13687 | (read_enumeration_type, read_full_die_1): Update. | |
13688 | (dwarf2_attr_no_follow): Move to die.h. | |
13689 | * dwarf2/die.h (struct die_info) <attr>: New method. | |
13690 | ||
13691 | 2020-03-26 Tom Tromey <tom@tromey.com> | |
13692 | ||
13693 | * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove. | |
13694 | <base_address>: Now an optional. | |
13695 | (dwarf2_find_base_address, dwarf2_rnglists_process) | |
13696 | (dwarf2_ranges_process, fill_in_loclist_baton) | |
13697 | (dwarf2_symbol_mark_computed): Update. | |
13698 | ||
13699 | 2020-03-26 Tom Tromey <tom@tromey.com> | |
13700 | ||
13701 | * dwarf2/read.c (struct die_info): Move to die.h. | |
13702 | * dwarf2/die.h: New file. | |
13703 | ||
13704 | 2020-03-26 Tom Tromey <tom@tromey.com> | |
13705 | ||
13706 | * dwarf2/line-header.h (dwarf_decode_line_header): Declare. | |
13707 | * dwarf2/read.c | |
13708 | (dwarf2_statement_list_fits_in_line_number_section_complaint): | |
13709 | Move to line-header.c. | |
13710 | (read_checked_initial_length_and_offset, read_formatted_entries): | |
13711 | Likewise. | |
13712 | (dwarf_decode_line_header): Split into two. | |
13713 | * dwarf2/line-header.c | |
13714 | (dwarf2_statement_list_fits_in_line_number_section_complaint): | |
13715 | Move from read.c. | |
13716 | (read_checked_initial_length_and_offset, read_formatted_entries): | |
13717 | Likewise. | |
13718 | (dwarf_decode_line_header): New function, split from read.c. | |
13719 | ||
13720 | 2020-03-26 Tom Tromey <tom@tromey.com> | |
13721 | ||
13722 | * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>: | |
13723 | Declare method. | |
13724 | * dwarf2/read.c (read_attribute_value): Update. | |
13725 | (dwarf2_per_objfile::read_line_string): Rename from | |
13726 | read_indirect_line_string. | |
13727 | (read_formatted_entries): Update. | |
13728 | ||
13729 | 2020-03-26 Tom Tromey <tom@tromey.com> | |
13730 | ||
13731 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local | |
13732 | variable. | |
13733 | ||
13734 | 2020-03-26 Tom Tromey <tom@tromey.com> | |
13735 | ||
13736 | * dwarf2/macro.h (dwarf_decode_macros): Make section parameter | |
13737 | const. | |
13738 | * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode) | |
13739 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section | |
13740 | parameter const. | |
13741 | ||
13742 | 2020-03-26 Tom Tromey <tom@tromey.com> | |
13743 | ||
13744 | * dwarf2/read.c (dwarf_decode_macros): Make "lh" const. | |
13745 | * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter. | |
13746 | * dwarf2/macro.c (macro_start_file): Constify "lh" parameter. | |
13747 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise. | |
13748 | ||
13749 | 2020-03-26 Tom Tromey <tom@tromey.com> | |
13750 | ||
13751 | * dwarf2/line-header.h (struct line_header) <is_valid_file_index, | |
13752 | file_names_size, file_full_name, file_file_name>: Use const. | |
13753 | <file_name_at, file_names>: Add const overload. | |
13754 | * dwarf2/line-header.c (line_header::file_file_name) | |
13755 | (line_header::file_full_name): Update. | |
13756 | ||
13757 | 2020-03-26 Tom Tromey <tom@tromey.com> | |
13758 | ||
13759 | * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint) | |
13760 | (macro_start_file, consume_improper_spaces) | |
13761 | (parse_macro_definition, skip_form_bytes, skip_unknown_opcode) | |
13762 | (dwarf_parse_macro_header, dwarf_decode_macro_bytes) | |
13763 | (dwarf_decode_macros): Move to macro.c. | |
13764 | * dwarf2/macro.c: New file. | |
13765 | * dwarf2/macro.h: New file. | |
13766 | * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c. | |
13767 | ||
13768 | 2020-03-26 Tom Tromey <tom@tromey.com> | |
13769 | ||
13770 | * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New | |
13771 | method. | |
13772 | * dwarf2/section.c: New method. From | |
13773 | read_indirect_string_at_offset_from. | |
13774 | * dwarf2/read.c (mapped_debug_names::namei_to_name): Update. | |
13775 | (read_indirect_string_at_offset_from): Move to section.c. | |
13776 | (read_indirect_string_at_offset): Rewrite. | |
13777 | (read_indirect_line_string_at_offset): Remove. | |
13778 | (read_indirect_string, read_indirect_line_string) | |
13779 | (dwarf_decode_macro_bytes): Update. | |
13780 | ||
13781 | 2020-03-26 Tom Tromey <tom@tromey.com> | |
13782 | ||
13783 | * dwarf2/section.h (struct dwarf2_section_info) | |
13784 | <overload_complaint>: Declare. | |
13785 | (dwarf2_section_buffer_overflow_complaint): Don't declare. | |
13786 | * dwarf2/section.c (dwarf2_section_info::overflow_complaint): | |
13787 | Rename from dwarf2_section_buffer_overflow_complaint. | |
13788 | * dwarf2/read.c (skip_one_die, partial_die_info::read) | |
13789 | (skip_form_bytes, dwarf_decode_macro_bytes): Update. | |
13790 | ||
13791 | 2020-03-26 Tom Tromey <tom@tromey.com> | |
13792 | ||
13793 | * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint): | |
13794 | Declare. | |
13795 | * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint): | |
13796 | Move from read.c. | |
13797 | * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move | |
13798 | to section.c. | |
13799 | ||
13800 | 2020-03-26 Tom Tromey <tom@tromey.com> | |
13801 | ||
13802 | * dwarf2/read.c (dwarf_decode_macros): Split into two overloads. | |
13803 | ||
13804 | 2020-03-26 Tom Tromey <tom@tromey.com> | |
13805 | ||
13806 | * dwarf2/read.c (macro_start_file): Change "cu" parameter to | |
13807 | "builder". | |
13808 | (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile | |
13809 | parameter. | |
13810 | (dwarf_decode_macros): Update. | |
13811 | ||
13812 | 2020-03-26 Tom Tromey <tom@tromey.com> | |
13813 | ||
13814 | * dwarf2/read.c (read_attribute_value): Update. | |
13815 | (read_indirect_string_from_dwz): Move to dwz.c; change into | |
13816 | method. | |
13817 | (dwarf_decode_macro_bytes): Update. | |
13818 | * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method. | |
13819 | * dwarf2/dwz.c: New file. | |
13820 | * Makefile.in (COMMON_SFILES): Add dwz.c. | |
13821 | ||
13822 | 2020-03-26 Tom Tromey <tom@tromey.com> | |
13823 | ||
13824 | * dwarf2/read.h (struct dwz_file): Move to dwz.h. | |
13825 | * dwarf2/read.c: Add include. | |
13826 | * dwarf2/index-write.c: Add include. | |
13827 | * dwarf2/index-cache.c: Add include. | |
13828 | * dwarf2/dwz.h: New file. | |
13829 | ||
13830 | 2020-03-25 Tom Tromey <tom@tromey.com> | |
13831 | ||
13832 | * compile/compile-object-load.c (get_out_value_type): Mention | |
13833 | correct symbol name in error message. | |
13834 | ||
13835 | 2020-03-25 Hannes Domani <ssbssa@yahoo.de> | |
13836 | ||
13837 | * windows-nat.c (windows_add_all_dlls): Fix system dll paths. | |
13838 | ||
13839 | 2020-03-25 Tom de Vries <tdevries@suse.de> | |
13840 | ||
13841 | * symtab.h (is_main_symtab_of_compunit_symtab): New function. | |
13842 | * symmisc.c (dump_symtab_1): Print user and includes fields. | |
13843 | (maintenance_info_symtabs): Same. | |
13844 | ||
13845 | 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com> | |
13846 | ||
13847 | PR gdb/25534 | |
13848 | * riscv-tdep.c (riscv_arg_info::c_offset): Update comment. | |
13849 | (riscv_regcache_cooked_write): New function. | |
13850 | (riscv_push_dummy_call): Use new function. | |
13851 | (riscv_return_value): Likewise. | |
13852 | ||
13853 | 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca> | |
13854 | ||
13855 | * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int. | |
13856 | * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise. | |
13857 | * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise. | |
13858 | * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise. | |
13859 | * infrun.c (follow_fork): Likewise. | |
13860 | (follow_fork_inferior): Likewise. | |
13861 | * linux-nat.c (linux_nat_target::follow_fork): Likewise. | |
13862 | * linux-nat.h (class linux_nat_target): Likewise. | |
13863 | * remote.c (class remote_target) <follow_fork>: Likewise. | |
13864 | (remote_target::follow_fork): Likewise. | |
13865 | * target-delegates.c: Re-generate. | |
13866 | * target.c (default_follow_fork): Likewise. | |
13867 | (target_follow_fork): Likewise. | |
13868 | * target.h (struct target_ops) <follow_fork>: Likewise. | |
13869 | (target_follow_fork): Likewise. | |
13870 | ||
13871 | 2020-03-24 Tom de Vries <tdevries@suse.de> | |
13872 | ||
13873 | * psymtab.c (maintenance_info_psymtabs): Print user field. | |
13874 | ||
13875 | 2020-03-20 Tom Tromey <tromey@adacore.com> | |
13876 | ||
13877 | * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack" | |
13878 | const. | |
13879 | * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack" | |
13880 | const. | |
13881 | ||
13882 | 2020-03-20 Simon Marchi <simon.marchi@efficios.com> | |
13883 | ||
13884 | * ptrace.m4: Don't check for ptrace declaration. | |
13885 | * config.in: Re-generate. | |
13886 | * configure: Re-generate. | |
13887 | * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is | |
13888 | not defined. | |
13889 | ||
13890 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> | |
13891 | ||
13892 | * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to | |
13893 | `PTRACE_TYPE_RET'. | |
13894 | * i386-bsd-nat.c (gdb_ptrace): Likewise. | |
13895 | * sparc-nat.c (gdb_ptrace): Likewise. | |
13896 | * x86-bsd-nat.c (gdb_ptrace): Likewise. | |
13897 | ||
13898 | 2020-03-20 Tom Tromey <tromey@adacore.com> | |
13899 | ||
13900 | * c-exp.y (lex_one_token): Fix assert. | |
13901 | ||
13902 | 2020-03-20 Tom Tromey <tromey@adacore.com> | |
13903 | ||
13904 | * ada-tasks.c (read_atcb): Use smaller length in strncpy call. | |
13905 | * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in | |
13906 | strncpy call. | |
13907 | ||
13908 | 2020-03-20 Tom Tromey <tromey@adacore.com> | |
13909 | ||
13910 | * symmisc.c (maintenance_print_one_line_table): Use ui_out. | |
13911 | ||
13912 | 2020-03-20 Tom Tromey <tromey@adacore.com> | |
13913 | ||
13914 | * ada-valprint.c (print_variant_part): Remove parameters; switch | |
13915 | to value-based API. | |
13916 | (print_field_values): Likewise. | |
13917 | (ada_val_print_struct_union): Likewise. | |
13918 | (ada_value_print_1): Update. | |
13919 | ||
13920 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> | |
13921 | ||
13922 | * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from | |
13923 | nbsd_nat_target instead of inf_ptrace_target. | |
13924 | * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
13925 | nbsd_nat_target. | |
13926 | ||
13927 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> | |
13928 | ||
13929 | * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
13930 | it to the ptrace call. | |
13931 | * (store_registers): Likewise. | |
13932 | ||
13933 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> | |
13934 | ||
13935 | * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
13936 | it to the ptrace call. | |
13937 | * (store_registers): Likewise. | |
13938 | ||
13939 | 2020-03-19 Luis Machado <luis.machado@linaro.org> | |
13940 | ||
13941 | * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not | |
13942 | valid, fetch vg value from ptrace. | |
13943 | ||
13944 | 2020-03-19 Kamil Rytarowski <n54@gmx.com> | |
13945 | * inf-ptrace.h: Disable get_ptrace_pid on NetBSD. | |
13946 | * inf-ptrace.c: Likewise. | |
13947 | * (gdb_ptrace): Add. | |
13948 | * (inf_ptrace_target::resume): Update. | |
13949 | * (inf_ptrace_target::xfer_partial): Likewise. | |
13950 | * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'. | |
13951 | * (inf_ptrace_peek_poke): Update. | |
13952 | ||
13953 | 2020-03-19 Kamil Rytarowski <n54@gmx.com> | |
13954 | ||
13955 | * x86-bsd-nat.c (gdb_ptrace): New. | |
13956 | * (x86bsd_dr_set): Add new argument `ptid'. | |
13957 | * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control, | |
13958 | x86bsd_dr_set_addr): Update. | |
13959 | ||
13960 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> | |
13961 | ||
13962 | * remote.c (remote_target::process_stop_reply): Handle events for | |
13963 | all threads differently. | |
13964 | ||
13965 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> | |
13966 | ||
13967 | * completer.c (completion_tracker::remove_completion): Define new | |
13968 | function. | |
13969 | * completer.h (completion_tracker::remove_completion): Declare new | |
13970 | function. | |
13971 | * symtab.c (completion_list_add_symbol): Remove aliasing msymbols | |
13972 | when adding a C++ function symbol. | |
13973 | ||
13974 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> | |
13975 | ||
13976 | * completer.c (completion_tracker::completion_hash_entry): Define | |
13977 | new class. | |
13978 | (advance_to_filename_complete_word_point): Call | |
13979 | recompute_lowest_common_denominator. | |
13980 | (completion_tracker::completion_tracker): Call discard_completions | |
13981 | to setup the hash table. | |
13982 | (completion_tracker::discard_completions): Allow for being called | |
13983 | from the constructor, pass new equal function, and element deleter | |
13984 | when constructing the hash table. Initialise new class member | |
13985 | variables. | |
13986 | (completion_tracker::maybe_add_completion): Remove use of | |
13987 | m_entries_vec, and store more information into m_entries_hash. | |
13988 | (completion_tracker::recompute_lcd_visitor): New function, most | |
13989 | content taken from... | |
13990 | (completion_tracker::recompute_lowest_common_denominator): | |
13991 | ...here, this now just visits each item in the hash calling the | |
13992 | above visitor. | |
13993 | (completion_tracker::build_completion_result): Remove use of | |
13994 | m_entries_vec, call recompute_lowest_common_denominator. | |
13995 | * completer.h (completion_tracker::have_completions): Remove use | |
13996 | of m_entries_vec. | |
13997 | (completion_tracker::completion_hash_entry): Declare new class. | |
13998 | (completion_tracker::recompute_lowest_common_denominator): Change | |
13999 | function signature. | |
14000 | (completion_tracker::recompute_lcd_visitor): Declare new function. | |
14001 | (completion_tracker::m_entries_vec): Delete. | |
14002 | (completion_tracker::m_entries_hash): Initialize to NULL. | |
14003 | (completion_tracker::m_lowest_common_denominator_valid): New | |
14004 | member variable. | |
14005 | (completion_tracker::m_lowest_common_denominator_max_length): New | |
14006 | member variable. | |
14007 | ||
14008 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> | |
14009 | ||
14010 | * regformats/regdef.h: Put reg in gdb namespace. | |
14011 | ||
14012 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> | |
14013 | ||
14014 | * i386-bsd-nat.c (gdb_ptrace): New. | |
14015 | * (i386bsd_fetch_inferior_registers, | |
14016 | i386bsd_store_inferior_registers) Switch from pid_t to ptid_t. | |
14017 | * (i386bsd_fetch_inferior_registers, | |
14018 | i386bsd_store_inferior_registers) Use gdb_ptrace. | |
14019 | ||
14020 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> | |
14021 | ||
14022 | * amd64-bsd-nat.c (gdb_ptrace): New. | |
14023 | * (amd64bsd_fetch_inferior_registers, | |
14024 | amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t. | |
14025 | * (amd64bsd_fetch_inferior_registers, | |
14026 | amd64bsd_store_inferior_registers) Use gdb_ptrace. | |
14027 | ||
14028 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> | |
14029 | ||
14030 | * user-regs.c (user_reg::read): Rename to... | |
14031 | (user_reg::xread): ...this. | |
14032 | * (append_user_reg): Rename argument `read' to `xread'. | |
14033 | * (user_reg_add_builtin): Likewise. | |
14034 | * (user_reg_add): Likewise. | |
14035 | * (value_of_user_reg): Likewise. | |
14036 | ||
14037 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> | |
14038 | ||
14039 | * sparc-nat.c (gdb_ptrace): New. | |
14040 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
14041 | (sparc_store_inferior_registers) Remove obsolete comment. | |
14042 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
14043 | (sparc_store_inferior_registers) Switch from pid_t to ptid_t. | |
14044 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
14045 | (sparc_store_inferior_registers) Use gdb_ptrace. | |
14046 | ||
14047 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> | |
14048 | ||
14049 | * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
14050 | it to the ptrace call. | |
14051 | * sh-nbsd-nat.c (store_registers): Likewise. | |
14052 | ||
14053 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> | |
14054 | ||
14055 | * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from | |
14056 | nbsd_nat_target instead of inf_ptrace_target. | |
14057 | * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
14058 | nbsd_nat_target. | |
14059 | ||
14060 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> | |
14061 | ||
14062 | * amd64-bsd-nat.c: Include amd64-bsd-nat.h". | |
14063 | ||
14064 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> | |
14065 | ||
14066 | * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and | |
14067 | <sys/sysctl.h>. | |
14068 | * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite. | |
14069 | ||
14070 | 2020-03-17 Tom de Vries <tdevries@suse.de> | |
14071 | ||
14072 | PR gdb/23710 | |
14073 | * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang | |
14074 | fields. | |
14075 | * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang | |
14076 | fields. | |
14077 | (process_imported_unit_die): Skip import of c++ CUs. | |
14078 | ||
14079 | 2020-03-16 Tom Tromey <tom@tromey.com> | |
14080 | ||
14081 | * p-valprint.c (pascal_object_print_value): Initialize | |
14082 | base_value. | |
14083 | ||
14084 | 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com> | |
14085 | Shahab Vahedi <shahab@synopsys.com> | |
14086 | ||
14087 | * Makefile.in: Add arch/arc.o | |
14088 | * configure.tgt: Likewise. | |
14089 | * arc-tdep.c (arc_tdesc_init): Use arc_read_description. | |
14090 | (_initialize_arc_tdep): Don't initialize old target descriptions. | |
14091 | (arc_read_description): New function to cache target descriptions. | |
14092 | * arc-tdep.h (arc_read_description): Add proto type. | |
14093 | * arch/arc.c: New file. | |
14094 | * arch/arc.h: Likewise. | |
14095 | * features/Makefile: Replace old target descriptions with new. | |
14096 | * features/arc-arcompact.c: Remove. | |
14097 | * features/arc-arcompact.xml: Likewise. | |
14098 | * features/arc-v2.c: Likewise | |
14099 | * features/arc-v2.xml: Likewise | |
14100 | * features/arc/aux-arcompact.xml: New file. | |
14101 | * features/arc/aux-v2.xml: Likewise. | |
14102 | * features/arc/core-arcompact.xml: Likewise. | |
14103 | * features/arc/core-v2.xml: Likewise. | |
14104 | * features/arc/aux-arcompact.c: Generate. | |
14105 | * features/arc/aux-v2.c: Likewise. | |
14106 | * features/arc/core-arcompact.c: Likewise. | |
14107 | * features/arc/core-v2.c: Likewise. | |
14108 | * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features. | |
14109 | ||
14110 | 2020-03-16 Tom Tromey <tromey@adacore.com> | |
14111 | ||
14112 | PR gdb/25663: | |
14113 | * dwarf2/read.c (dwarf2_name): Strip leading namespaces after | |
14114 | putting value into bcache. | |
14115 | ||
14116 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> | |
14117 | ||
14118 | PR gdb/21500 | |
14119 | * amd64-windows-tdep.c (amd64_windows_init_abi): Rename | |
14120 | to... | |
14121 | (amd64_windows_init_abi_common): ... this. Don't set size of | |
14122 | long type. | |
14123 | (amd64_windows_init_abi): New function. | |
14124 | (amd64_cygwin_init_abi): New function. | |
14125 | (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for | |
14126 | the Cygwin OS ABI. | |
14127 | * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify | |
14128 | comment. | |
14129 | ||
14130 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> | |
14131 | ||
14132 | * windows-tdep.h (is_linked_with_cygwin_dll): New declaration. | |
14133 | * windows-tdep.c (CYGWIN_DLL_NAME): New. | |
14134 | (pe_import_directory_entry): New struct type. | |
14135 | (is_linked_with_cygwin_dll): New function. | |
14136 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select | |
14137 | GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL. | |
14138 | * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise. | |
14139 | ||
14140 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> | |
14141 | ||
14142 | * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except | |
14143 | i386_cygwin_core_osabi_sniffer. | |
14144 | ||
14145 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> | |
14146 | ||
14147 | * i386-cygwin-tdep.c: Rename to... | |
14148 | * i386-windows-tdep.c: ... this. | |
14149 | * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to | |
14150 | i386-windows-tdep.c. | |
14151 | * configure.tgt: Likewise. | |
14152 | ||
14153 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> | |
14154 | ||
14155 | * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS. | |
14156 | * osabi.c (gdb_osabi_names): Add "Windows". | |
14157 | * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return | |
14158 | GDB_OSABI_WINDOWS when the binary's target is "pei-i386". | |
14159 | (i386_cygwin_core_osabi_sniffer): New function, extracted from | |
14160 | i386_cygwin_osabi_sniffer. | |
14161 | (_initialize_i386_cygwin_tdep): Register OS ABI | |
14162 | GDB_OSABI_WINDOWS for i386. | |
14163 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return | |
14164 | GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64". | |
14165 | (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS | |
14166 | for x86-64. | |
14167 | * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI | |
14168 | when the target matches '*-*-mingw*'. | |
14169 | ||
14170 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> | |
14171 | ||
14172 | * defs.h (enum gdb_osabi): Move to... | |
14173 | * osabi.h (enum gdb_osabi): ... here. | |
14174 | * gdbarch.sh: Include osabi.h in gdbarch.h. | |
14175 | * gdbarch.h: Re-generate. | |
14176 | ||
14177 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> | |
14178 | ||
14179 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New | |
14180 | function. | |
14181 | (_initialize_amd64_windows_tdep): Register osabi sniffer. | |
14182 | ||
14183 | 2020-03-14 Tom Tromey <tom@tromey.com> | |
14184 | ||
14185 | * c-typeprint.c (cp_type_print_method_args): Print "__restrict__" | |
14186 | for C++. | |
14187 | (c_type_print_modifier): Likewise. Add "language" parameter. | |
14188 | (c_type_print_varspec_prefix, c_type_print_base_struct_union) | |
14189 | (c_type_print_base_1): Update. | |
14190 | * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New | |
14191 | constants. | |
14192 | * type-stack.c (type_stack::insert): Handle tp_atomic and | |
14193 | tp_restrict. | |
14194 | (type_stack::follow_type_instance_flags): Likewise. | |
14195 | (type_stack::follow_types): Likewise. Merge type-following code. | |
14196 | * c-exp.y (RESTRICT, ATOMIC): New tokens. | |
14197 | (space_identifier, cv_with_space_id) | |
14198 | (const_or_volatile_or_space_identifier_noopt) | |
14199 | (const_or_volatile_or_space_identifier): Remove. | |
14200 | (single_qualifier, qualifier_seq_noopt, qualifier_seq): New | |
14201 | rules. | |
14202 | (ptr_operator, typebase): Update. | |
14203 | (enum token_flag) <FLAG_C>: New constant. | |
14204 | (ident_tokens): Add "restrict", "__restrict__", "__restrict", and | |
14205 | "_Atomic". | |
14206 | (lex_one_token): Handle FLAG_C. | |
14207 | ||
14208 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
14209 | ||
14210 | * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass | |
14211 | it to the ptrace call. | |
14212 | * m68k-bsd-nat.c (store_registers): Likewise. | |
14213 | ||
14214 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
14215 | ||
14216 | * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to | |
14217 | gdb_byte *. | |
14218 | * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise. | |
14219 | * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise. | |
14220 | * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *. | |
14221 | ||
14222 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
14223 | ||
14224 | * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from | |
14225 | nbsd_nat_target instead of inf_ptrace_target. | |
14226 | * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
14227 | nbsd_nat_target. | |
14228 | ||
14229 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
14230 | ||
14231 | * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
14232 | register_t. | |
14233 | ||
14234 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
14235 | ||
14236 | * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass | |
14237 | it to the ptrace call. | |
14238 | * alpha-bsd-nat.c (store_registers): Likewise. | |
14239 | ||
14240 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
14241 | ||
14242 | * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from | |
14243 | includes. | |
14244 | * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove. | |
14245 | * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset, | |
14246 | fill_fpregset): Likewise. | |
14247 | ||
14248 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
14249 | ||
14250 | * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from | |
14251 | nbsd_nat_target instead of inf_ptrace_target. | |
14252 | * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
14253 | nbsd_nat_target. | |
14254 | ||
14255 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
14256 | ||
14257 | * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
14258 | register_t. | |
14259 | ||
14260 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
14261 | ||
14262 | * arm-nbsd-nat.c (fetch_register): New variable lwp and pass | |
14263 | it to the ptrace call. | |
14264 | * arm-nbsd-nat.c (fetch_fp_register): Likewise. | |
14265 | * arm-nbsd-nat.c (fetch_fp_regs): Likewise. | |
14266 | * arm-nbsd-nat.c (store_register): Likewise. | |
14267 | * arm-nbsd-nat.c (store_regs): Likewise. | |
14268 | * arm-nbsd-nat.c (store_fp_register): Likewise. | |
14269 | * arm-nbsd-nat.c (store_fp_regs): Likewise. | |
14270 | ||
14271 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
14272 | ||
14273 | * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from | |
14274 | nbsd_nat_target instead of inf_ptrace_target. | |
14275 | * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
14276 | nbsd_nat_target. | |
14277 | ||
14278 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
14279 | ||
14280 | * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass | |
14281 | it to the ptrace call. | |
14282 | * x86-bsd-nat.c (x86bsd_dr_set): Likewise. | |
14283 | ||
14284 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
14285 | ||
14286 | * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass | |
14287 | it to the ptrace call. | |
14288 | * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise. | |
14289 | ||
14290 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
14291 | ||
14292 | * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const | |
14293 | gdb_byte *. | |
14294 | * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *. | |
14295 | ||
14296 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
14297 | ||
14298 | * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target | |
14299 | instead of inf_ptrace_target. | |
14300 | * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
14301 | nbsd_nat_target. | |
14302 | ||
14303 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
14304 | ||
14305 | * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
14306 | register_t. | |
14307 | ||
14308 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
14309 | ||
14310 | * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
14311 | register_t. | |
14312 | ||
14313 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
14314 | ||
14315 | * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
14316 | register_t. | |
14317 | ||
14318 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14319 | ||
14320 | * value.h (val_print): Don't declare. | |
14321 | * valprint.h (val_print_array_elements) | |
14322 | (val_print_scalar_formatted, generic_val_print): Don't declare. | |
14323 | * valprint.c (generic_val_print_array): Take a struct value. | |
14324 | (generic_val_print_ptr, generic_val_print_memberptr) | |
14325 | (generic_val_print_bool, generic_val_print_int) | |
14326 | (generic_val_print_char, generic_val_print_complex) | |
14327 | (generic_val_print): Remove. | |
14328 | (generic_value_print): Update. | |
14329 | (do_val_print): Remove unused parameters. Don't call | |
14330 | la_val_print. | |
14331 | (val_print): Remove. | |
14332 | (common_val_print): Update. Don't call value_check_printable. | |
14333 | (val_print_scalar_formatted, val_print_array_elements): Remove. | |
14334 | * rust-lang.c (rust_val_print): Remove. | |
14335 | (rust_language_defn): Update. | |
14336 | * p-valprint.c (pascal_val_print): Remove. | |
14337 | (pascal_value_print_inner): Update. | |
14338 | (pascal_object_print_val_fields, pascal_object_print_val): | |
14339 | Remove. | |
14340 | (pascal_object_print_static_field): Update. | |
14341 | * p-lang.h (pascal_val_print): Don't declare. | |
14342 | * p-lang.c (pascal_language_defn): Update. | |
14343 | * opencl-lang.c (opencl_language_defn): Update. | |
14344 | * objc-lang.c (objc_language_defn): Update. | |
14345 | * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove. | |
14346 | * m2-lang.h (m2_val_print): Don't declare. | |
14347 | * m2-lang.c (m2_language_defn): Update. | |
14348 | * language.h (struct language_defn) <la_val_print>: Remove. | |
14349 | * language.c (unk_lang_value_print_inner): Rename. Change | |
14350 | argument types. | |
14351 | (unknown_language_defn, auto_language_defn): Update. | |
14352 | * go-valprint.c (go_val_print): Remove. | |
14353 | * go-lang.h (go_val_print): Don't declare. | |
14354 | * go-lang.c (go_language_defn): Update. | |
14355 | * f-valprint.c (f_val_print): Remove. | |
14356 | * f-lang.h (f_value_print): Don't declare. | |
14357 | * f-lang.c (f_language_defn): Update. | |
14358 | * d-valprint.c (d_val_print): Remove. | |
14359 | * d-lang.h (d_value_print): Don't declare. | |
14360 | * d-lang.c (d_language_defn): Update. | |
14361 | * cp-valprint.c (cp_print_value_fields) | |
14362 | (cp_print_value_fields_rtti, cp_print_value): Remove. | |
14363 | (cp_print_static_field): Update. | |
14364 | * c-valprint.c (c_val_print_array, c_val_print_ptr) | |
14365 | (c_val_print_struct, c_val_print_union, c_val_print_int) | |
14366 | (c_val_print_memberptr, c_val_print): Remove. | |
14367 | * c-lang.h (c_val_print_array, cp_print_value_fields) | |
14368 | (cp_print_value_fields_rtti): Don't declare. | |
14369 | * c-lang.c (c_language_defn, cplus_language_defn) | |
14370 | (asm_language_defn, minimal_language_defn): Update. | |
14371 | * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove. | |
14372 | (ada_val_print_enum): Take a struct value. | |
14373 | (ada_val_print_flt, ada_val_print_array, ada_val_print_1) | |
14374 | (ada_val_print): Remove. | |
14375 | (ada_value_print_1): Update. | |
14376 | (printable_val_type): Remove. | |
14377 | * ada-lang.h (ada_val_print): Don't declare. | |
14378 | * ada-lang.c (ada_language_defn): Update. | |
14379 | ||
14380 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14381 | ||
14382 | * valprint.c (do_val_print): Update. | |
14383 | * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take | |
14384 | a struct value. | |
14385 | (value_to_value_object_no_release): Declare. | |
14386 | * python/py-value.c (value_to_value_object_no_release): New | |
14387 | function. | |
14388 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a | |
14389 | struct value. | |
14390 | * guile/scm-value.c (vlscm_scm_from_value_no_release): New | |
14391 | function. | |
14392 | * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take | |
14393 | a struct value. | |
14394 | * guile/guile-internal.h (vlscm_scm_from_value_no_release): | |
14395 | Declare. | |
14396 | (gdbscm_apply_val_pretty_printer): Take a struct value. | |
14397 | * extension.h (apply_ext_lang_val_pretty_printer): Take a struct | |
14398 | value. | |
14399 | * extension.c (apply_ext_lang_val_pretty_printer): Take a struct | |
14400 | value. | |
14401 | * extension-priv.h (struct extension_language_ops) | |
14402 | <apply_val_pretty_printer>: Take a struct value. | |
14403 | * cp-valprint.c (cp_print_value): Create a struct value. | |
14404 | (cp_print_value): Update. | |
14405 | ||
14406 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14407 | ||
14408 | * ada-valprint.c (print_field_values): Call common_val_print. | |
14409 | ||
14410 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14411 | ||
14412 | * ada-valprint.c (val_print_packed_array_elements): Remove | |
14413 | bitoffset and val parameters. Call common_val_print. | |
14414 | (ada_val_print_string): Remove offset, address, and original_value | |
14415 | parameters. | |
14416 | (ada_val_print_array): Update. | |
14417 | (ada_value_print_array): New function. | |
14418 | (ada_value_print_1): Call it. | |
14419 | ||
14420 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14421 | ||
14422 | * ada-valprint.c (ada_value_print): Use common_val_print. | |
14423 | ||
14424 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14425 | ||
14426 | * ada-valprint.c (ada_val_print_ref): Use common_val_print. | |
14427 | ||
14428 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14429 | ||
14430 | * ada-valprint.c (ada_value_print_num): New function. | |
14431 | (ada_value_print_1): Use it. | |
14432 | ||
14433 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14434 | ||
14435 | * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite. | |
14436 | ||
14437 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14438 | ||
14439 | * ada-valprint.c (ada_value_print_ptr): New function. | |
14440 | (ada_value_print_1): Use it. | |
14441 | ||
14442 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14443 | ||
14444 | * ada-valprint.c (ada_val_print_gnat_array): Take a struct value; | |
14445 | call common_val_print. | |
14446 | (ada_val_print_1): Update. | |
14447 | (ada_value_print_1): New function. | |
14448 | (ada_value_print_inner): Rewrite. | |
14449 | ||
14450 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14451 | ||
14452 | * cp-valprint.c (cp_print_value_fields): Update. | |
14453 | (cp_print_value): New function. | |
14454 | ||
14455 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14456 | ||
14457 | * m2-valprint.c (m2_value_print_inner): Use | |
14458 | cp_print_value_fields. | |
14459 | * cp-valprint.c (cp_print_value_fields): New function. | |
14460 | * c-valprint.c (c_value_print_struct): New function. | |
14461 | (c_value_print_inner): Use c_value_print_struct. | |
14462 | * c-lang.h (cp_print_value_fields): Declare. | |
14463 | ||
14464 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14465 | ||
14466 | * c-valprint.c (c_value_print_array): New function. | |
14467 | (c_value_print_inner): Use it. | |
14468 | ||
14469 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14470 | ||
14471 | * c-valprint.c (c_value_print_memberptr): New function. | |
14472 | (c_value_print_inner): Use it. | |
14473 | ||
14474 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14475 | ||
14476 | * c-valprint.c (c_value_print_int): New function. | |
14477 | (c_value_print_inner): Use it. | |
14478 | ||
14479 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14480 | ||
14481 | * c-valprint.c (c_value_print_ptr): New function. | |
14482 | (c_value_print_inner): Use it. | |
14483 | ||
14484 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14485 | ||
14486 | * c-valprint.c (c_value_print_inner): Rewrite. | |
14487 | ||
14488 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14489 | ||
14490 | * valprint.c (generic_value_print_complex): New function. | |
14491 | (generic_value_print): Use it. | |
14492 | ||
14493 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14494 | ||
14495 | * valprint.c (generic_val_print_float): Don't call | |
14496 | val_print_scalar_formatted. | |
14497 | (generic_val_print, generic_value_print): Update. | |
14498 | ||
14499 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14500 | ||
14501 | * valprint.c (generic_value_print_char): New function | |
14502 | (generic_value_print): Use it. | |
14503 | ||
14504 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14505 | ||
14506 | * valprint.c (generic_value_print_int): New function. | |
14507 | (generic_value_print): Use it. | |
14508 | ||
14509 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14510 | ||
14511 | * valprint.c (generic_value_print_bool): New function. | |
14512 | (generic_value_print): Use it. | |
14513 | ||
14514 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14515 | ||
14516 | * valprint.c (generic_val_print_func): Simplify. | |
14517 | (generic_val_print, generic_value_print): Update. | |
14518 | ||
14519 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14520 | ||
14521 | * valprint.c (generic_val_print_flags): Remove. | |
14522 | (generic_val_print, generic_value_print): Update. | |
14523 | (val_print_type_code_flags): Add original_value parameter. | |
14524 | ||
14525 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14526 | ||
14527 | * valprint.c (generic_val_print): Update. | |
14528 | (generic_value_print): Update. | |
14529 | * valprint.c (generic_val_print_enum): Don't call | |
14530 | val_print_scalar_formatted. | |
14531 | ||
14532 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14533 | ||
14534 | * valprint.c (generic_value_print): Call generic_value_print_ptr. | |
14535 | * valprint.c (generic_value_print_ptr): New function. | |
14536 | ||
14537 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14538 | ||
14539 | * valprint.c (generic_value_print): Rewrite. | |
14540 | ||
14541 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14542 | ||
14543 | * p-valprint.c (pascal_object_print_value_fields) | |
14544 | (pascal_object_print_value): New functions. | |
14545 | ||
14546 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14547 | ||
14548 | * p-valprint.c (pascal_value_print_inner): Rewrite. | |
14549 | ||
14550 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14551 | ||
14552 | * f-valprint.c (f_value_print_innner): Rewrite. | |
14553 | ||
14554 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14555 | ||
14556 | * m2-valprint.c (m2_print_unbounded_array): New overload. | |
14557 | (m2_print_unbounded_array): Update. | |
14558 | (m2_print_array_contents): Take a struct value. | |
14559 | (m2_value_print_inner): Rewrite. | |
14560 | ||
14561 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14562 | ||
14563 | * d-valprint.c (dynamic_array_type): Call d_value_print_inner. | |
14564 | (d_value_print_inner): New function. | |
14565 | * d-lang.h (d_value_print_inner): Declare. | |
14566 | * d-lang.c (d_language_defn): Use d_value_print_inner. | |
14567 | ||
14568 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14569 | ||
14570 | * go-valprint.c (go_value_print_inner): New function. | |
14571 | * go-lang.h (go_value_print_inner): Declare. | |
14572 | * go-lang.c (go_language_defn): Use go_value_print_inner. | |
14573 | ||
14574 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14575 | ||
14576 | * rust-lang.c (val_print_struct, rust_print_enum): Use the value | |
14577 | API. | |
14578 | (rust_val_print): Rewrite. | |
14579 | (rust_value_print_inner): New function, from rust_val_print. | |
14580 | (rust_language_defn): Use rust_value_print_inner. | |
14581 | ||
14582 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14583 | ||
14584 | * ada-valprint.c (ada_value_print_inner): New function. | |
14585 | * ada-lang.h (ada_value_print_inner): Declare. | |
14586 | * ada-lang.c (ada_language_defn): Use ada_value_print_inner. | |
14587 | ||
14588 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14589 | ||
14590 | * f-valprint.c (f_value_print_innner): New function. | |
14591 | * f-lang.h (f_value_print_innner): Declare. | |
14592 | * f-lang.c (f_language_defn): Use f_value_print_innner. | |
14593 | ||
14594 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14595 | ||
14596 | * p-valprint.c (pascal_value_print_inner): New function. | |
14597 | * p-lang.h (pascal_value_print_inner): Declare. | |
14598 | * p-lang.c (pascal_language_defn): Use pascal_value_print_inner. | |
14599 | ||
14600 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14601 | ||
14602 | * m2-valprint.c (m2_value_print_inner): New function. | |
14603 | * m2-lang.h (m2_value_print_inner): Declare. | |
14604 | * m2-lang.c (m2_language_defn): Use m2_value_print_inner. | |
14605 | ||
14606 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14607 | ||
14608 | * opencl-lang.c (opencl_language_defn): Use c_value_print_inner. | |
14609 | * objc-lang.c (objc_language_defn): Use c_value_print_inner. | |
14610 | * c-valprint.c (c_value_print_inner): New function. | |
14611 | * c-lang.h (c_value_print_inner): Declare. | |
14612 | * c-lang.c (c_language_defn, cplus_language_defn) | |
14613 | (asm_language_defn, minimal_language_defn): Use | |
14614 | c_value_print_inner. | |
14615 | ||
14616 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14617 | ||
14618 | * p-valprint.c (pascal_object_print_value_fields): Now static. | |
14619 | * p-lang.h (pascal_object_print_value_fields): Don't declare. | |
14620 | ||
14621 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14622 | ||
14623 | * c-valprint.c (c_val_print_array): Simplify. | |
14624 | ||
14625 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14626 | ||
14627 | * valprint.c (value_print_array_elements): New function. | |
14628 | * valprint.h (value_print_array_elements): Declare. | |
14629 | ||
14630 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14631 | ||
14632 | * printcmd.c (print_formatted): Use value_print_scalar_formatted. | |
14633 | * mips-tdep.c (mips_print_register): Use | |
14634 | value_print_scalar_formatted. | |
14635 | ||
14636 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14637 | ||
14638 | * valprint.h (value_print_scalar_formatted): Declare. | |
14639 | * valprint.c (value_print_scalar_formatted): New function. | |
14640 | ||
14641 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14642 | ||
14643 | * valprint.h (generic_value_print): Declare. | |
14644 | * valprint.c (generic_value_print): New function. | |
14645 | ||
14646 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14647 | ||
14648 | * valprint.c (do_val_print): Call la_value_print_inner, if | |
14649 | available. | |
14650 | * rust-lang.c (rust_language_defn): Update. | |
14651 | * p-lang.c (pascal_language_defn): Update. | |
14652 | * opencl-lang.c (opencl_language_defn): Update. | |
14653 | * objc-lang.c (objc_language_defn): Update. | |
14654 | * m2-lang.c (m2_language_defn): Update. | |
14655 | * language.h (struct language_defn) <la_value_print_inner>: New | |
14656 | member. | |
14657 | * language.c (unknown_language_defn, auto_language_defn): Update. | |
14658 | * go-lang.c (go_language_defn): Update. | |
14659 | * f-lang.c (f_language_defn): Update. | |
14660 | * d-lang.c (d_language_defn): Update. | |
14661 | * c-lang.c (c_language_defn, cplus_language_defn) | |
14662 | (asm_language_defn, minimal_language_defn): Update. | |
14663 | * ada-lang.c (ada_language_defn): Update. | |
14664 | ||
14665 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14666 | ||
14667 | * c-valprint.c (c_value_print): Use common_val_print. | |
14668 | ||
14669 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14670 | ||
14671 | * cp-valprint.c (cp_print_static_field): Use common_val_print. | |
14672 | ||
14673 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14674 | ||
14675 | * f-valprint.c (f77_print_array_1, f_val_print): Use | |
14676 | common_val_print. | |
14677 | ||
14678 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14679 | ||
14680 | * riscv-tdep.c (riscv_print_one_register_info): Use | |
14681 | common_val_print. | |
14682 | ||
14683 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14684 | ||
14685 | * mi/mi-main.c (output_register): Use common_val_print. | |
14686 | ||
14687 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14688 | ||
14689 | * infcmd.c (default_print_one_register_info): Use | |
14690 | common_val_print. | |
14691 | ||
14692 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14693 | ||
14694 | * valprint.h (common_val_print_checked): Declare. | |
14695 | * valprint.c (common_val_print_checked): New function. | |
14696 | * stack.c (print_frame_arg): Use common_val_print_checked. | |
14697 | ||
14698 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14699 | ||
14700 | * valprint.c (do_val_print): New function, from val_print. | |
14701 | (val_print): Use do_val_print. | |
14702 | (common_val_print): Use do_val_print. | |
14703 | ||
14704 | 2020-03-13 Tom Tromey <tom@tromey.com> | |
14705 | ||
14706 | * valprint.c (value_print): Use scoped_value_mark. | |
14707 | ||
14708 | 2020-03-13 Tom de Vries <tdevries@suse.de> | |
14709 | ||
14710 | PR symtab/25646 | |
14711 | * psymtab.c (partial_symtab::partial_symtab): Don't set | |
14712 | globals_offset and statics_offset. Push element onto | |
14713 | current_global_psymbols and current_static_psymbols stacks. | |
14714 | (concat): New function. | |
14715 | (end_psymtab_common): Set globals_offset and statics_offset. Pop | |
14716 | element from current_global_psymbols and current_static_psymbols | |
14717 | stacks. Concat popped elements to global_psymbols and | |
14718 | static_symbols. | |
14719 | (add_psymbol_to_list): Use current_global_psymbols and | |
14720 | current_static_psymbols stacks. | |
14721 | * psymtab.h (class psymtab_storage): Add current_global_psymbols and | |
14722 | current_static_psymbols fields. | |
14723 | ||
14724 | 2020-03-12 Christian Biesinger <cbiesinger@google.com> | |
14725 | ||
14726 | * corelow.c (sniff_core_bfd): Remove. | |
14727 | (class core_target) <m_core_vec>: Remove. | |
14728 | (core_target::core_target): Update. | |
14729 | (core_file_fns): Remove. | |
14730 | (deprecated_add_core_fns): Remove. | |
14731 | (default_core_sniffer): Remove. | |
14732 | (sniff_core_bfd): Remove. | |
14733 | (default_check_format): Remove. | |
14734 | (gdb_check_format): Remove. | |
14735 | (core_target_open): Update. | |
14736 | (core_target::get_core_register_section): Update. | |
14737 | (get_core_registers_cb): Update. | |
14738 | (core_target::fetch_registers): Update. | |
14739 | * gdbcore.h (struct core_fns): Remove. | |
14740 | (deprecated_add_core_fns): Remove. | |
14741 | (default_core_sniffer): Remove. | |
14742 | (default_check_format): Remove. | |
14743 | ||
14744 | 2020-03-12 Tom Tromey <tom@tromey.com> | |
14745 | ||
14746 | * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a | |
14747 | CORE_ADDR. | |
14748 | (struct arm_exidx_entry) <addr>: Now a CORE_ADDR. | |
14749 | ||
14750 | 2020-03-12 Tom Tromey <tom@tromey.com> | |
14751 | ||
14752 | * remote.c (remote_target::download_tracepoint) | |
14753 | (remote_target::enable_tracepoint) | |
14754 | (remote_target::disable_tracepoint): Use phex, not sprintf_vma. | |
14755 | * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not | |
14756 | sprintf_vma. | |
14757 | ||
14758 | 2020-03-12 Tom Tromey <tom@tromey.com> | |
14759 | ||
14760 | * symfile-mem.c: Update CORE_ADDR size assert. | |
14761 | ||
14762 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> | |
14763 | ||
14764 | * selftest.m4: Move to gdbsupport/. | |
14765 | * acinclude.m4: Update path to selftest.m4. | |
14766 | ||
14767 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> | |
14768 | ||
14769 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to... | |
14770 | (SELFTESTS_SRCS): ... this. Add disasm-selftests.c, | |
14771 | gdbarch-selfselftests.c and selftest-arch.c. | |
14772 | (SUBDIR_UNITTESTS_OBS): Rename to... | |
14773 | (SELFTESTS_OBS): ... this. | |
14774 | (COMMON_SFILES): Remove disasm-selftests.c and | |
14775 | gdbarch-selftests.c. | |
14776 | * configure.ac: Don't add selftest-arch.{c,o} to | |
14777 | CONFIG_{SRCS,OBS}. | |
14778 | * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST | |
14779 | preprocessor conditions. | |
14780 | ||
14781 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> | |
14782 | ||
14783 | * configure.ac: Don't source bfd/development.sh. | |
14784 | * selftest.m4: Modify comment. | |
14785 | * configure: Re-generate. | |
14786 | ||
14787 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> | |
14788 | ||
14789 | * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is | |
14790 | not "true" or "false". | |
14791 | * configure: Re-generate. | |
14792 | ||
14793 | 2020-03-12 Christian Biesinger <cbiesinger@google.com> | |
14794 | ||
14795 | * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file. | |
14796 | * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and | |
14797 | renamed to arm_nbsd_supply_gregset. | |
14798 | (fetch_register): Update to call arm_nbsd_supply_gregset. | |
14799 | (fetch_regs): Remove in favor of fetch_register with a -1 regno. | |
14800 | (arm_netbsd_nat_target::fetch_registers): Update. | |
14801 | (fetch_elfcore_registers): Removed. | |
14802 | (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns. | |
14803 | * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct. | |
14804 | (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to | |
14805 | not require NetBSD system headers. | |
14806 | (arm_nbsd_regset): New struct. | |
14807 | (arm_nbsd_iterate_over_regset_sections): New function. | |
14808 | (arm_netbsd_init_abi_common): Updated to call | |
14809 | set_gdbarch_iterate_over_regset_sections. | |
14810 | * arm-nbsd-tdep.h: New file. | |
14811 | ||
14812 | 2020-03-11 Kevin Buettner <kevinb@redhat.com> | |
14813 | ||
14814 | * symtab.c (find_pc_sect_line): Add check which prevents infinite | |
14815 | recursion. | |
14816 | ||
14817 | 2020-03-11 Simon Marchi <simon.marchi@efficios.com> | |
14818 | ||
14819 | * configure: Re-generate. | |
14820 | ||
14821 | 2020-03-11 Tom Tromey <tromey@adacore.com> | |
14822 | ||
14823 | * ada-typeprint.c (print_choices): Fix comment. | |
14824 | ||
14825 | 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com> | |
14826 | ||
14827 | * buildsyms.c (buildsym_compunit::record_line): Avoid accessing | |
14828 | previous item in the list, when the list has no items. | |
14829 | ||
14830 | 2020-03-11 Tom de Vries <tdevries@suse.de> | |
14831 | ||
14832 | * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in | |
14833 | PROP_LOCLIST handling code. | |
14834 | ||
14835 | 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com> | |
14836 | ||
14837 | * buildsym-legacy.c (record_line): Pass extra parameter to | |
14838 | record_line. | |
14839 | * buildsym.c (buildsym_compunit::record_line): Take an extra | |
14840 | parameter, reduce duplication in the line table, and record the | |
14841 | is_stmt flag in the line table. | |
14842 | * buildsym.h (buildsym_compunit::record_line): Add extra | |
14843 | parameter. | |
14844 | * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore | |
14845 | non-statement lines. | |
14846 | * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass | |
14847 | this to the symtab builder. | |
14848 | (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1. | |
14849 | (lnp_state_machine::record_line): Pass a suitable is_stmt flag | |
14850 | through to dwarf_record_line_1. | |
14851 | * infrun.c (process_event_stop_test): When stepping, don't stop at | |
14852 | a non-statement instruction, and only refresh the step info when | |
14853 | we land in the middle of a line's range. Also add an extra | |
14854 | comment. | |
14855 | * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt | |
14856 | field. | |
14857 | * record-btrace.c (btrace_find_line_range): Only record lines | |
14858 | marked as is-statement. | |
14859 | * stack.c (frame_show_address): Show the frame address if we are | |
14860 | in a non-statement sal. | |
14861 | * symmisc.c (dump_symtab_1): Print the is_stmt flag. | |
14862 | (maintenance_print_one_line_table): Print a header for the is_stmt | |
14863 | column, and include is_stmt information in the output. | |
14864 | * symtab.c (find_pc_sect_line): Find lines marked as statements in | |
14865 | preference to non-statements. | |
14866 | (find_pcs_for_symtab_line): Prefer is-statement entries. | |
14867 | (find_line_common): Likewise. | |
14868 | * symtab.h (struct linetable_entry): Add is_stmt field. | |
14869 | (struct symtab_and_line): Likewise. | |
14870 | * xcoffread.c (arrange_linetable): Initialise is_stmt field when | |
14871 | arranging the line table. | |
14872 | ||
14873 | 2020-03-07 Tom de Vries <tdevries@suse.de> | |
14874 | ||
14875 | * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder | |
14876 | DIE. | |
14877 | ||
14878 | 2020-03-07 Tom Tromey <tom@tromey.com> | |
14879 | ||
14880 | * valops.c (value_literal_complex): Remove obsolete comment. | |
14881 | * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete | |
14882 | comment. | |
14883 | ||
14884 | 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca> | |
14885 | ||
14886 | * infrun.h: Forward-declare thread_info. | |
14887 | (set_step_info): Add thread_info parameter, add doc. | |
14888 | * infrun.c (set_step_info): Add thread_info parameter, move doc | |
14889 | to header. | |
14890 | * infrun.c (process_event_stop_test): Pass thread to | |
14891 | set_step_info call. | |
14892 | * infcmd.c (set_step_frame): Add thread_info pointer, pass it to | |
14893 | set_step_info. | |
14894 | (prepare_one_step): Add thread_info parameter, pass it to | |
14895 | set_step_frame and prepare_one_step (recursive) call. | |
14896 | (step_1): Pass thread to prepare_one_step call. | |
14897 | (step_command_fsm::should_stop): Pass thread to | |
14898 | prepare_one_step. | |
14899 | (until_next_fsm): Pass thread to set_step_frame call. | |
14900 | (finish_command): Pass thread to set_step_info call. | |
14901 | ||
14902 | 2020-03-06 Hannes Domani <ssbssa@yahoo.de> | |
14903 | ||
14904 | * windows-tdep.c (windows_solib_create_inferior_hook): | |
14905 | Check if inferior is running. | |
14906 | ||
14907 | 2020-03-06 Tom de Vries <tdevries@suse.de> | |
14908 | ||
14909 | * NEWS: Fix "the the". | |
14910 | * ctfread.c: Same. | |
14911 | ||
14912 | 2020-03-06 Tom de Vries <tdevries@suse.de> | |
14913 | ||
14914 | * psymtab.c (psymtab_to_symtab): Don't print "done.". | |
14915 | ||
14916 | 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com> | |
14917 | ||
14918 | * .dir-locals.el: Add a comment referencing the other copies of | |
14919 | this file. | |
14920 | ||
14921 | 2020-03-05 John Baldwin <jhb@FreeBSD.org> | |
14922 | ||
14923 | * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for | |
14924 | psargs. | |
14925 | ||
14926 | 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
14927 | ||
14928 | * .gitattributes: New file. | |
14929 | ||
14930 | 2020-03-04 Tom Tromey <tom@tromey.com> | |
14931 | ||
14932 | * symmisc.c (print_symbol_bcache_statistics) | |
14933 | (print_objfile_statistics): Update. | |
14934 | * symfile.c (allocate_symtab): Use intern. | |
14935 | * psymtab.c (partial_symtab::partial_symtab): Use intern. | |
14936 | * objfiles.h (struct objfile_per_bfd_storage) <filename_cache, | |
14937 | macro_cache>: Remove. | |
14938 | <string_cache>: New member. | |
14939 | (struct objfile) <intern>: New methods. | |
14940 | * elfread.c (elf_symtab_read): Use intern. | |
14941 | * dwarf2/read.c (fixup_go_packaging): Intern package name. | |
14942 | (dwarf2_compute_name, dwarf2_physname) | |
14943 | (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern | |
14944 | names. | |
14945 | (guess_partial_die_structure_name): Update. | |
14946 | (partial_die_info::fixup): Intern name. | |
14947 | (dwarf2_canonicalize_name): Change parameter to objfile. Intern | |
14948 | name. | |
14949 | (dwarf2_name): Intern name. Update. | |
14950 | * buildsym.c (buildsym_compunit::get_macro_table): Use | |
14951 | string_cache. | |
14952 | ||
14953 | 2020-03-04 Tom Tromey <tom@tromey.com> | |
14954 | ||
14955 | * jit.c (bfd_open_from_target_memory): Make "target" const. | |
14956 | * corefile.c (gnutarget): Now const. | |
14957 | * gdbcore.h (gnutarget): Now const. | |
14958 | ||
14959 | 2020-03-04 Hannes Domani <ssbssa@yahoo.de> | |
14960 | ||
14961 | * NEWS: Mention support for WOW64 processes. | |
14962 | * amd64-windows-nat.c (amd64_mappings): Rename and remove static. | |
14963 | (amd64_windows_segment_register_p): Remove static. | |
14964 | (_initialize_amd64_windows_nat): Update. | |
14965 | * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o. | |
14966 | * i386-windows-nat.c (context_offset): Update. | |
14967 | (i386_mappings): Rename and remove static. | |
14968 | (i386_windows_segment_register_p): Remove static. | |
14969 | (_initialize_i386_windows_nat): Update. | |
14970 | * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro. | |
14971 | (STATUS_WX86_SINGLE_STEP): New macro. | |
14972 | (EnumProcessModulesEx): New macro. | |
14973 | (Wow64SuspendThread): New macro. | |
14974 | (Wow64GetThreadContext): New macro. | |
14975 | (Wow64SetThreadContext): New macro. | |
14976 | (Wow64GetThreadSelectorEntry): New macro. | |
14977 | (windows_set_context_register_offsets): Add static. | |
14978 | (windows_set_segment_register_p): Likewise. | |
14979 | (windows_add_thread): Adapt for WOW64 processes. | |
14980 | (windows_fetch_one_register): Likewise. | |
14981 | (windows_nat_target::fetch_registers): Likewise. | |
14982 | (windows_store_one_register): Likewise. | |
14983 | (display_selector): Likewise. | |
14984 | (display_selectors): Likewise. | |
14985 | (handle_exception): Likewise. | |
14986 | (windows_continue): Likewise. | |
14987 | (windows_nat_target::resume): Likewise. | |
14988 | (windows_add_all_dlls): Likewise. | |
14989 | (do_initial_windows_stuff): Likewise. | |
14990 | (windows_nat_target::attach): Likewise. | |
14991 | (windows_get_exec_module_filename): Likewise. | |
14992 | (windows_nat_target::create_inferior): Likewise. | |
14993 | (windows_xfer_siginfo): Likewise. | |
14994 | (_initialize_loadable): Initialize Wow64SuspendThread, | |
14995 | Wow64GetThreadContext, Wow64SetThreadContext, | |
14996 | Wow64GetThreadSelectorEntry and EnumProcessModulesEx. | |
14997 | * windows-nat.h (windows_set_context_register_offsets): | |
14998 | Remove declaration. | |
14999 | (windows_set_segment_register_p): Likewise. | |
15000 | (i386_windows_segment_register_p): Add declaration. | |
15001 | (amd64_windows_segment_register_p): Likewise. | |
15002 | ||
15003 | 2020-03-04 Luis Machado <luis.machado@linaro.org> | |
15004 | ||
15005 | Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions | |
15006 | in "info registers" for AArch64/ARM. | |
15007 | ||
15008 | The change caused "info registers" to not print GPR's. | |
15009 | ||
15010 | gdb/ChangeLog: | |
15011 | ||
15012 | 2020-02-01 Shahab Vahedi <shahab@synopsys.com> | |
15013 | ||
15014 | * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0 | |
15015 | when reg->group is empty and reggroup is not. | |
15016 | ||
15017 | 2020-03-03 Tom Tromey <tromey@adacore.com> | |
15018 | ||
15019 | * dwarf2/frame.c (struct dwarf2_frame_cache) | |
15020 | <checked_tailcall_bottom, entry_cfa_sp_offset, | |
15021 | entry_cfa_sp_offset_p>: Remove members. | |
15022 | (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first. | |
15023 | (dwarf2_frame_prev_register): Don't call | |
15024 | dwarf2_tailcall_sniffer_first. | |
15025 | (dwarf2_append_unwinders): Don't append tailcall unwinder. | |
15026 | * frame-unwind.c (add_unwinder): New fuction. | |
15027 | (frame_unwind_init): Use it. Add tailcall unwinder. | |
15028 | ||
15029 | 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com> | |
15030 | Alok Kumar Sharma <AlokKumar.Sharma@amd.com> | |
15031 | ||
15032 | * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero | |
15033 | value should be printed as true. | |
15034 | ||
15035 | 2020-03-03 Hannes Domani <ssbssa@yahoo.de> | |
15036 | ||
15037 | * windows-tdep.c (windows_solib_create_inferior_hook): New function. | |
15038 | (windows_init_abi): Set and use windows_so_ops. | |
15039 | ||
15040 | 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com> | |
15041 | ||
15042 | * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR | |
15043 | when verifying if dealing with a convenience variable. | |
15044 | ||
15045 | 2020-03-03 Luis Machado <luis.machado@linaro.org> | |
15046 | ||
15047 | * auxv.c (default_print_auxv_entry): Add new AUXV entries. | |
15048 | ||
15049 | 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca> | |
15050 | ||
15051 | * infrun.c (gdbarch_supports_displaced_stepping): New. | |
15052 | (use_displaced_stepping): Break up conditions in smaller pieces. | |
15053 | Use gdbarch_supports_displaced_stepping. | |
15054 | (displaced_step_prepare_throw): Use | |
15055 | gdbarch_supports_displaced_stepping. | |
15056 | ||
15057 | 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> | |
15058 | ||
15059 | * NEWS: Mention new behaviour of the history filename. | |
15060 | * top.c (write_history_p): Add comment. | |
15061 | (show_write_history_p): Add header comment, give a different | |
15062 | message when history writing is on, but the history filename is | |
15063 | empty. | |
15064 | (history_filename): Add comment. | |
15065 | (history_filename_empty): New function. | |
15066 | (show_history_filename): Add header comment, give a different | |
15067 | message when the filename is empty. | |
15068 | (init_history): Compare history_filename against nullptr, and only | |
15069 | read history if the filename is not empty. | |
15070 | (set_history_filename): Add header comment, and only make | |
15071 | non-empty filenames absolute. | |
15072 | (init_main): Make the filename argument to 'set history filename' | |
15073 | optional. | |
15074 | ||
15075 | 2020-03-02 Christian Biesinger <cbiesinger@google.com> | |
15076 | ||
15077 | * arm-nbsd-nat.c (arm_supply_fparegset): Rename to... | |
15078 | (arm_supply_vfpregset): ...this, and update to use VFP registers. | |
15079 | (fetch_fp_register): Update. | |
15080 | (fetch_fp_regs): Update. | |
15081 | (store_fp_register): Update. | |
15082 | (store_fp_regs): Update. | |
15083 | (arm_netbsd_nat_target::read_description): New function. | |
15084 | (fetch_elfcore_registers): Update. | |
15085 | ||
15086 | 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> | |
15087 | ||
15088 | * remote.c (remote_target::remote_parse_stop_reply): Don't use the | |
15089 | general_thread if the stop reply is missing a thread-id. | |
15090 | (remote_target::process_stop_reply): Use the first non-exited | |
15091 | thread if the target didn't pass a thread-id. | |
15092 | * infrun.c (do_target_wait): Move call to | |
15093 | switch_to_inferior_no_thread to .... | |
15094 | (do_target_wait_1): ... here. | |
15095 | ||
15096 | 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk> | |
15097 | ||
15098 | * debuginfod-support.c: Include defs.h first. | |
15099 | ||
15100 | 2020-02-28 Tom de Vries <tdevries@suse.de> | |
15101 | ||
15102 | * symfile.c (set_initial_language): Use default language for lookup. | |
15103 | ||
15104 | 2020-02-28 Simon Marchi <simon.marchi@efficios.com> | |
15105 | ||
15106 | * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove | |
15107 | reader variable, pass `this` to read_cutu_die_from_dwo. | |
15108 | ||
15109 | 2020-02-27 Aaron Merey <amerey@redhat.com> | |
15110 | ||
15111 | * source.c (open_source_file): Check for nullptr when computing | |
15112 | srcpath. | |
15113 | ||
15114 | 2020-02-27 Tom Tromey <tromey@adacore.com> | |
15115 | ||
15116 | * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a | |
15117 | member. | |
15118 | (dwarf2_add_field): Don't update nfields. | |
15119 | (dwarf2_attach_fields_to_type, process_structure_scope): Update. | |
15120 | ||
15121 | 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com> | |
15122 | ||
15123 | * gdbtypes.c (create_array_type_with_stride): Use std::abs not | |
15124 | abs. | |
15125 | ||
15126 | 2020-02-26 Tom Tromey <tom@tromey.com> | |
15127 | ||
15128 | * dwarf2/read.c (struct dwarf2_include_psymtab): New. | |
15129 | (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab. | |
15130 | (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p) | |
15131 | (dwarf2_psymtab::get_compunit_symtab): Remove null checks for | |
15132 | per_cu_data. | |
15133 | ||
15134 | 2020-02-26 Tom Tromey <tom@tromey.com> | |
15135 | ||
15136 | * dwarf2/index-write.c (psym_index_map): Change type. | |
15137 | (add_address_entry_worker, write_one_signatured_type) | |
15138 | (recursively_count_psymbols, recursively_write_psymbols) | |
15139 | (class debug_names, psyms_seen_size, write_gdbindex) | |
15140 | (write_debug_names): Use partial_symtab, not dwarf2_psymtab. | |
15141 | ||
15142 | 2020-02-26 Aaron Merey <amerey@redhat.com> | |
15143 | ||
15144 | * Makefile.in: Handle optional debuginfod support. | |
15145 | * NEWS: Update. | |
15146 | * README: Add --with-debuginfod summary. | |
15147 | * config.in: Regenerate. | |
15148 | * configure: Regenerate. | |
15149 | * configure.ac: Handle optional debuginfod support. | |
15150 | * debuginfod-support.c: debuginfod helper functions. | |
15151 | * debuginfod-support.h: Ditto. | |
15152 | * doc/gdb.texinfo: Add --with-debuginfod to configure options | |
15153 | summary. | |
15154 | * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers | |
15155 | when a dwz file cannot be found. | |
15156 | * elfread.c (elf_symfile_read): Query debuginfod servers when a | |
15157 | debuginfo file cannot be found. | |
15158 | * source.c (open_source_file): Query debuginfod servers when a | |
15159 | source file cannot be found. | |
15160 | * top.c (print_gdb_configuration): Include | |
15161 | --{with,without}-debuginfod in the output. | |
15162 | ||
15163 | 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com> | |
15164 | ||
15165 | * thread.c (thr_try_catch_cmd): Print thread name. | |
15166 | ||
15167 | 2020-02-26 Simon Marchi <simon.marchi@efficios.com> | |
15168 | ||
15169 | * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off, | |
15170 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
15171 | dwarf2_fetch_die_type_sect_off): Move to... | |
15172 | * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off, | |
15173 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
15174 | dwarf2_fetch_die_type_sect_off): ... here. | |
15175 | * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off, | |
15176 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
15177 | dwarf2_fetch_die_type_sect_off): Move doc to header file. | |
15178 | ||
15179 | 2020-02-26 Tom de Vries <tdevries@suse.de> | |
15180 | ||
15181 | PR gdb/25603 | |
15182 | * symfile.c (set_initial_language): Exit-early if | |
15183 | language_mode == language_mode_manual. | |
15184 | ||
15185 | 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca> | |
15186 | ||
15187 | * dwarf2/loc.h (dwarf2_read_addr_index): Move... | |
15188 | * dwarf2/read.h (dwarf2_read_addr_index): ... here. | |
15189 | * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header. | |
15190 | ||
15191 | 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com> | |
15192 | ||
15193 | * gdbtypes.c (create_array_type_with_stride): Handle negative | |
15194 | array strides. | |
15195 | * valarith.c (value_subscripted_rvalue): Likewise. | |
15196 | ||
15197 | 2020-02-25 Luis Machado <luis.machado@linaro.org> | |
15198 | ||
15199 | * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo. | |
15200 | ||
15201 | 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca> | |
15202 | ||
15203 | * loc.h (dwarf2_get_die_type): Move to... | |
15204 | * read.h (dwarf2_get_die_type): ... here. | |
15205 | * read.c (dwarf2_get_die_type): Move doc to header. | |
15206 | ||
15207 | 2020-02-25 Joel Brobecker <brobecker@adacore.com> | |
15208 | ||
15209 | * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and | |
15210 | 'gnulib/Makefile.in' to the list. | |
15211 | ||
15212 | 2020-02-24 Tom Tromey <tom@tromey.com> | |
15213 | ||
15214 | * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>: | |
15215 | Remove. | |
15216 | * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use | |
15217 | XOBNEWVEC. | |
15218 | ||
15219 | 2020-02-24 Tom Tromey <tom@tromey.com> | |
15220 | ||
15221 | * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>: | |
15222 | New method. | |
15223 | * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove. | |
15224 | (dw2_do_instantiate_symtab, dw2_get_file_names) | |
15225 | (build_type_psymtab_dependencies, load_full_type_unit): Update. | |
15226 | ||
15227 | 2020-02-24 Tom Tromey <tom@tromey.com> | |
15228 | ||
15229 | * dwarf2read.c (dwarf2_build_psymtabs_hard): Use | |
15230 | make_scoped_restore. | |
15231 | (dwarf2_psymtab::read_symtab): Don't clear | |
15232 | reading_partial_symbols. | |
15233 | ||
15234 | 2020-02-24 Tom de Vries <tdevries@suse.de> | |
15235 | ||
15236 | PR gdb/25592 | |
15237 | * stack.c (iterate_over_block_locals): Handle LOC_CONST. | |
15238 | ||
15239 | 2020-02-24 Tom de Vries <tdevries@suse.de> | |
15240 | ||
15241 | * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for | |
15242 | commands layout next/prev/regs. | |
15243 | ||
15244 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15245 | ||
15246 | * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare. | |
15247 | * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static. | |
15248 | ||
15249 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15250 | ||
15251 | * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window. | |
15252 | ||
15253 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15254 | ||
15255 | * tui/tui-win.c (_initialize_tui_win): Add usage text. | |
15256 | * tui/tui-stack.c (_initialize_tui_stack): Add usage text. | |
15257 | * tui/tui-regs.c (_initialize_tui_regs): Add usage text. | |
15258 | * tui/tui.c (_initialize_tui): Add usage text. | |
15259 | ||
15260 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15261 | ||
15262 | * tui/tui-win.c (tui_set_focus_command) | |
15263 | (tui_set_win_height_command): Use error_no_arg. | |
15264 | (_initialize_tui_win): Update help text. | |
15265 | (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define. | |
15266 | ||
15267 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15268 | ||
15269 | * tui/tui-layout.c (extract_display_start_addr): Rewrite. | |
15270 | * tui/tui-disasm.h (struct tui_disasm_window) | |
15271 | <display_start_addr>: Declare. | |
15272 | * tui/tui-source.h (struct tui_source_window) | |
15273 | <display_start_addr>: Declare. | |
15274 | * tui/tui-winsource.h (struct tui_source_window_base) | |
15275 | <show_source_line, display_start_addr>: New methods. | |
15276 | <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>: | |
15277 | Rename and move to protected section. | |
15278 | * tui/tui-winsource.c (tui_source_window_base::update_source_window) | |
15279 | (tui_source_window_base::do_erase_source_content): Update. | |
15280 | (tui_source_window_base::show_source_line): Now a method. | |
15281 | (tui_source_window_base::show_source_content) | |
15282 | (tui_source_window_base::tui_source_window_base) | |
15283 | (tui_source_window_base::rerender) | |
15284 | (tui_source_window_base::refill) | |
15285 | (tui_source_window_base::do_scroll_horizontal) | |
15286 | (tui_source_window_base::set_is_exec_point_at) | |
15287 | (tui_source_window_base::update_breakpoint_info) | |
15288 | (tui_source_window_base::update_exec_info): Update. | |
15289 | * tui/tui-source.c (tui_source_window::set_contents) | |
15290 | (tui_source_window::showing_source_p) | |
15291 | (tui_source_window::do_scroll_vertical) | |
15292 | (tui_source_window::location_matches_p) | |
15293 | (tui_source_window::line_is_displayed): Update. | |
15294 | (tui_source_window::display_start_addr): New method. | |
15295 | * tui/tui-disasm.c (tui_disasm_window::set_contents) | |
15296 | (tui_disasm_window::do_scroll_vertical) | |
15297 | (tui_disasm_window::location_matches_p): Update. | |
15298 | (tui_disasm_window::display_start_addr): New method. | |
15299 | ||
15300 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15301 | ||
15302 | * NEWS: Add entry for gdb.register_window_type. | |
15303 | * tui/tui-layout.h (window_factory): New typedef. | |
15304 | (tui_register_window): Declare. | |
15305 | * tui/tui-layout.c (saved_tui_windows): New global. | |
15306 | (tui_apply_current_layout): Use it. | |
15307 | (tui_register_window): New function. | |
15308 | * python/python.c (do_start_initialization): Call | |
15309 | gdbpy_initialize_tui. | |
15310 | (python_GdbMethods): Add "register_window_type" function. | |
15311 | * python/python-internal.h (gdbpy_register_tui_window) | |
15312 | (gdbpy_initialize_tui): Declare. | |
15313 | * python/py-tui.c: New file. | |
15314 | * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c. | |
15315 | ||
15316 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15317 | ||
15318 | * tui/tui-io.c (do_tui_putc): Don't omit annotations. | |
15319 | ||
15320 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15321 | ||
15322 | * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c. | |
15323 | * tui/tui-data.h (tui_set_win_with_focus): Don't declare. | |
15324 | * tui/tui-data.c (tui_set_win_with_focus): Remove. | |
15325 | (tui_set_win_focus_to): Move from tui-win.c. | |
15326 | ||
15327 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15328 | ||
15329 | * tui/tui-layout.c (make_standard_window, get_locator_window): New | |
15330 | functions. | |
15331 | (known_window_types): New global. | |
15332 | (tui_get_window_by_name): Reimplement. | |
15333 | (initialize_known_windows): New function. | |
15334 | (validate_window_name): Rewrite. | |
15335 | (_initialize_tui_layout): Call initialize_known_windows. | |
15336 | ||
15337 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15338 | ||
15339 | * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>: | |
15340 | Remove constants. | |
15341 | * tui/tui-winsource.h (struct tui_source_window_base) | |
15342 | <tui_source_window_base>: Remove parameter. | |
15343 | * tui/tui-winsource.c | |
15344 | (tui_source_window_base::tui_source_window_base): Remove | |
15345 | parameter. | |
15346 | (tui_source_window_base::refill): Update. | |
15347 | * tui/tui-stack.h (struct tui_locator_window) | |
15348 | <tui_locator_window>: Update. | |
15349 | * tui/tui-source.h (struct tui_source_window) <tui_source_window>: | |
15350 | Default the constructor. | |
15351 | * tui/tui-regs.h (struct tui_data_item_window) | |
15352 | <tui_data_item_window>: Default the constructor. | |
15353 | (struct tui_data_window) <tui_data_window>: Likewise. | |
15354 | * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>: | |
15355 | Default the constructor. | |
15356 | * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>: | |
15357 | Default the constructor. | |
15358 | <type>: Remove. | |
15359 | (struct tui_win_info) <tui_win_info>: Default the constructor. | |
15360 | * tui/tui-data.c (tui_win_info::tui_win_info): Remove. | |
15361 | * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>: | |
15362 | Default the constructor. | |
15363 | ||
15364 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15365 | ||
15366 | * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare. | |
15367 | * tui/tui-wingeneral.c (tui_make_all_invisible): Remove. | |
15368 | * tui/tui-win.c (tui_resize_all): Don't call | |
15369 | tui_delete_invisible_windows. | |
15370 | * tui/tui-layout.c (tui_apply_current_layout): Delete windows when | |
15371 | done. | |
15372 | (tui_set_layout): Update. | |
15373 | (tui_add_win_to_layout): Don't call tui_delete_invisible_windows. | |
15374 | * tui/tui-data.h (tui_delete_invisible_windows): Don't declare. | |
15375 | * tui/tui-data.c (tui_delete_invisible_windows): Remove. | |
15376 | ||
15377 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15378 | ||
15379 | * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity | |
15380 | correctly. | |
15381 | ||
15382 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15383 | ||
15384 | * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement. | |
15385 | ||
15386 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15387 | ||
15388 | * tui/tui-winsource.h (struct tui_source_window_iterator) | |
15389 | <inner_iterator>: New etytypedef. | |
15390 | <tui_source_window_iterator>: Take "end" parameter. | |
15391 | <tui_source_window_iterator>: Take iterator. | |
15392 | <operator*, advance>: Update. | |
15393 | <m_iter>: Change type. | |
15394 | <m_end>: New field. | |
15395 | (struct tui_source_windows) <begin, end>: Update. | |
15396 | * tui/tui-layout.c (tui_windows): New global. | |
15397 | (tui_apply_current_layout): Clear tui_windows. | |
15398 | (tui_layout_window::apply): Update tui_windows. | |
15399 | * tui/tui-data.h (tui_windows): Declare. | |
15400 | (all_tui_windows): Now inline function. | |
15401 | (class tui_window_iterator, struct all_tui_windows): Remove. | |
15402 | ||
15403 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15404 | ||
15405 | PR tui/17850: | |
15406 | * tui/tui-win.c (tui_gen_win_info::max_width): New method. | |
15407 | * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add | |
15408 | "height" argument. | |
15409 | (class tui_layout_window) <get_sizes>: Likewise. | |
15410 | (class tui_layout_split) <tui_layout_split>: Add "vertical" | |
15411 | argument. | |
15412 | <get_sizes>: Add "height" argument. | |
15413 | <m_vertical>: New field. | |
15414 | * tui/tui-layout.c (tui_layout_split::clone): Update. | |
15415 | (tui_layout_split::get_sizes): Add "height" argument. | |
15416 | (tui_layout_split::adjust_size, tui_layout_split::apply): Update. | |
15417 | (tui_new_layout_command): Parse "-horizontal". | |
15418 | (_initialize_tui_layout): Update help string. | |
15419 | (tui_layout_split::specification): Add "-horizontal" when needed. | |
15420 | * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height" | |
15421 | argument. | |
15422 | * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>: | |
15423 | New methods. | |
15424 | ||
15425 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15426 | ||
15427 | * tui/tui-layout.h (enum tui_adjust_result): New. | |
15428 | (class tui_layout_base) <adjust_size>: Return tui_adjust_result. | |
15429 | (class tui_layout_window) <adjust_size>: Return | |
15430 | tui_adjust_result. Rewrite. | |
15431 | (class tui_layout_split) <adjust_size>: Return tui_adjust_result. | |
15432 | * tui/tui-layout.c (tui_layout_split::adjust_size): Update. | |
15433 | ||
15434 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15435 | ||
15436 | * tui/tui-layout.h (class tui_layout_split) <add_split>: Change | |
15437 | parameter and return types. | |
15438 | (class tui_layout_base) <specification>: Add "depth". | |
15439 | (class tui_layout_window) <specification>: Add "depth". | |
15440 | (class tui_layout_split) <specification>: Add "depth". | |
15441 | * tui/tui-layout.c (tui_layout_split::add_split): Change parameter | |
15442 | and return types. | |
15443 | (tui_new_layout_command): Parse sub-layouts. | |
15444 | (_initialize_tui_layout): Update help string. | |
15445 | (tui_layout_window::specification): Add "depth". | |
15446 | (add_layout_command): Update. | |
15447 | ||
15448 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15449 | ||
15450 | * NEWS: Add "tui new-layout" item. | |
15451 | * tui/tui-layout.c (add_layout_command): Return cmd_list_element. | |
15452 | Add new-layout command to help text. | |
15453 | (validate_window_name): New function. | |
15454 | (tui_new_layout_command): New function. | |
15455 | (_initialize_tui_layout): Register "new-layout". | |
15456 | (tui_layout_window::specification): New method. | |
15457 | (tui_layout_window::specification): New method. | |
15458 | * tui/tui-layout.h (class tui_layout_base) <specification>: New | |
15459 | method. | |
15460 | (class tui_layout_window) <specification>: New method. | |
15461 | (class tui_layout_split) <specification>: New method. | |
15462 | ||
15463 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15464 | ||
15465 | * tui/tui.c (tui_enable): Call tui_set_initial_layout. | |
15466 | * tui/tui-win.c (window_name_completer): Update comment. | |
15467 | * tui/tui-layout.h (class tui_layout_base) <replace_window>: | |
15468 | Declare method. | |
15469 | (class tui_layout_window) <replace_window>: Likewise. | |
15470 | (class tui_layout_split) <replace_window>: Likewise. | |
15471 | (tui_set_layout): Don't declare. | |
15472 | (tui_set_initial_layout): Declare function. | |
15473 | * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout) | |
15474 | (asm_regs_layout): New globals. | |
15475 | (tui_current_layout, show_layout): Remove. | |
15476 | (tui_set_layout, tui_add_win_to_layout): Rewrite. | |
15477 | (find_layout, tui_apply_layout): New function. | |
15478 | (layout_completer): Remove. | |
15479 | (tui_next_layout): Reimplement. | |
15480 | (tui_next_layout_command): New function. | |
15481 | (tui_set_initial_layout, tui_prev_layout_command): New functions. | |
15482 | (tui_regs_layout): Reimplement. | |
15483 | (tui_regs_layout_command): New function. | |
15484 | (extract_display_start_addr): Rewrite. | |
15485 | (next_layout, prev_layout): Remove. | |
15486 | (tui_layout_window::replace_window): New method. | |
15487 | (tui_layout_split::replace_window): New method. | |
15488 | (destroy_layout): New function. | |
15489 | (layout_list): New global. | |
15490 | (add_layout_command): New function. | |
15491 | (initialize_layouts): Update. | |
15492 | (tui_layout_command): New function. | |
15493 | (_initialize_tui_layout): Install "layout" commands. | |
15494 | * tui/tui-data.h (enum tui_layout_type): Remove. | |
15495 | (tui_current_layout): Don't declare. | |
15496 | ||
15497 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15498 | ||
15499 | * tui/tui-regs.c (tui_reg_layout): Remove. | |
15500 | (tui_reg_command): Use tui_regs_layout. | |
15501 | * tui/tui-layout.h (tui_reg_command): Declare. | |
15502 | * tui/tui-layout.c (tui_reg_command): New function. | |
15503 | ||
15504 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15505 | ||
15506 | * tui/tui.c (tui_rl_delete_other_windows): Call | |
15507 | tui_remove_some_windows. | |
15508 | * tui/tui-layout.h (class tui_layout_base) <remove_windows>: | |
15509 | Declare method. | |
15510 | (class tui_layout_window) <remove_windows>: New method. | |
15511 | (class tui_layout_split) <remove_windows>: Declare. | |
15512 | (tui_remove_some_windows): Declare. | |
15513 | * tui/tui-layout.c (tui_remove_some_windows): New function. | |
15514 | (tui_layout_split::remove_windows): New method. | |
15515 | ||
15516 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15517 | ||
15518 | * tui/tui.c (tui_rl_change_windows): Call tui_next_layout. | |
15519 | * tui/tui-layout.h (tui_next_layout): Declare. | |
15520 | * tui/tui-layout.c (tui_next_layout): New function. | |
15521 | ||
15522 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15523 | ||
15524 | * tui/tui-regs.c (tui_data_window::display_registers_from): Use | |
15525 | correct coordinates. | |
15526 | ||
15527 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15528 | ||
15529 | * tui/tui-layout.h (tui_add_win_to_layout): Add comment. | |
15530 | * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove | |
15531 | DATA_WIN case. | |
15532 | ||
15533 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15534 | ||
15535 | * tui/tui-disasm.c (tui_get_low_disassembly_address): Use | |
15536 | TUI_DISASM_WIN, not tui_win_list. | |
15537 | ||
15538 | 2020-02-22 Tom Tromey <tom@tromey.com> | |
15539 | ||
15540 | * valprint.c (generic_val_print_enum_1) | |
15541 | (val_print_type_code_flags): Style member names. | |
15542 | * rust-lang.c (val_print_struct, rust_print_enum) | |
15543 | (rust_print_struct_def, rust_internal_print_type): Style member | |
15544 | names. | |
15545 | * p-valprint.c (pascal_object_print_value_fields): Style member | |
15546 | names. Only call fprintf_symbol_filtered for static members. | |
15547 | * m2-typeprint.c (m2_record_fields, m2_enum): Style member names. | |
15548 | * f-valprint.c (f_val_print): Style member names. | |
15549 | * f-typeprint.c (f_type_print_base): Style member names. | |
15550 | * cp-valprint.c (cp_print_value_fields): Style member names. Only | |
15551 | call fprintf_symbol_filtered for static members. | |
15552 | (cp_print_class_member): Style member names. | |
15553 | * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style | |
15554 | member names. | |
15555 | * ada-valprint.c (ada_print_scalar): Style enum names. | |
15556 | (ada_val_print_enum): Likewise. | |
15557 | * ada-typeprint.c (print_enum_type): Style enum names. | |
15558 | ||
15559 | 2020-02-21 Tom Tromey <tom@tromey.com> | |
15560 | ||
15561 | * psympriv.h (struct partial_symtab): Update comment. | |
15562 | ||
15563 | 2020-02-21 Tom Tromey <tromey@adacore.com> | |
15564 | ||
15565 | * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter | |
15566 | type is CORE_ADDR. | |
15567 | ||
15568 | 2020-02-21 Tom de Vries <tdevries@suse.de> | |
15569 | ||
15570 | PR gdb/25534 | |
15571 | * psymtab.c (partial_symtab::read_dependencies): Don't read dependency | |
15572 | if dependencies[i]->user != NULL. | |
15573 | ||
15574 | 2020-02-21 Ali Tamur <tamur@google.com> | |
15575 | ||
15576 | * dwarf2/read.c (dwarf2_name): Add null check. | |
15577 | ||
15578 | 2020-02-20 Tom Tromey <tom@tromey.com> | |
15579 | ||
15580 | * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not | |
15581 | ">=", in binary search. | |
15582 | (dwarf2_find_containing_comp_unit): New overload. | |
15583 | (run_test): New self-test. | |
15584 | (_initialize_dwarf2_read): Register new test. | |
15585 | ||
15586 | 2020-02-20 Nelson Chu <nelson.chu@sifive.com> | |
15587 | ||
15588 | * riscv-tdep.c: Updated since the DECLARE_CSR is changed. | |
15589 | * riscv-tdep.h: Likewise. | |
15590 | * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without | |
15591 | rv32-only CSR. | |
15592 | * features/riscv/64bit-csr.xml: Regenerated. | |
15593 | ||
15594 | 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com> | |
15595 | Tom Tromey <tom@tromey.com> | |
15596 | ||
15597 | * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead | |
15598 | of 'fputc_unfiltered'. | |
15599 | (putchar_unfiltered): Call 'fputc_unfiltered'. | |
15600 | (fputc_unfiltered): Call 'fputs_unfiltered'. | |
15601 | ||
15602 | 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com> | |
15603 | ||
15604 | * config.in: Regenerate. | |
15605 | * configure: Regenerate. | |
15606 | * configure.ac: Add --with-python-libdir option. | |
15607 | * main.c: Use WITH_PYTHON_LIBDIR. | |
15608 | ||
15609 | 2020-02-19 Tom Tromey <tom@tromey.com> | |
15610 | ||
15611 | * symtab.c (general_symbol_info::compute_and_set_names): Use | |
15612 | obstack_strndup. Simplify call to symbol_set_demangled_name. | |
15613 | ||
15614 | 2020-02-19 Simon Marchi <simon.marchi@efficios.com> | |
15615 | ||
15616 | * dwarf2/read.c (allocate_signatured_type_table, | |
15617 | allocate_dwo_unit_table, allocate_type_unit_groups_table, | |
15618 | allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table): | |
15619 | Remove objfile parameter, update all callers. | |
15620 | ||
15621 | 2020-02-19 Doug Evans <dje@google.com> | |
15622 | ||
15623 | PR rust/25535 | |
15624 | * rust-lang.c (rust_print_enum): Apply embedded_offset to | |
15625 | rust_enum_variant calculation. | |
15626 | ||
15627 | 2020-02-19 Tom Tromey <tromey@adacore.com> | |
15628 | ||
15629 | * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR. | |
15630 | ||
15631 | 2020-02-19 Tom Tromey <tromey@adacore.com> | |
15632 | ||
15633 | * ada-lang.c (cache_symbol): Use obstack_strdup. | |
15634 | ||
15635 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> | |
15636 | ||
15637 | * configure: Regenerate. | |
15638 | ||
15639 | 2020-02-19 Tom Tromey <tromey@adacore.com> | |
15640 | ||
15641 | * python/python.c (do_start_initialization): Use XNEWVEC. Remove | |
15642 | NULL check. | |
15643 | ||
15644 | 2020-02-19 Maciej W. Rozycki <macro@wdc.com> | |
15645 | ||
15646 | * NEWS: Mention RISC-V GNU/Linux GDBserver support. | |
15647 | ||
15648 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> | |
15649 | ||
15650 | * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define | |
15651 | if GDBSERVER is not defined. | |
15652 | (riscv_tdesc_cache): Likewise, also store const target_desc. | |
15653 | (STATIC_IN_GDB): Define. | |
15654 | (riscv_create_target_description): Update declaration with | |
15655 | STATIC_IN_GDB. | |
15656 | (riscv_lookup_target_description): New function, only define if | |
15657 | GDBSERVER is not defined. | |
15658 | * arch/riscv.h (riscv_create_target_description): Declare only | |
15659 | when GDBSERVER is defined. | |
15660 | (riscv_lookup_target_description): New declaration when GDBSERVER | |
15661 | is not defined. | |
15662 | * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to... | |
15663 | (riscv_linux_read_features): ...this, and return | |
15664 | riscv_gdbarch_features instead of target_desc. | |
15665 | * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'. | |
15666 | (riscv_linux_read_description): Rename to... | |
15667 | (riscv_linux_read_features): ...this. | |
15668 | * riscv-linux-nat.c (riscv_linux_nat_target::read_description): | |
15669 | Update to use riscv_gdbarch_features and | |
15670 | riscv_lookup_target_description. | |
15671 | * riscv-tdep.c (riscv_find_default_target_description): Use | |
15672 | riscv_lookup_target_description instead of | |
15673 | riscv_create_target_description. | |
15674 | ||
15675 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> | |
15676 | ||
15677 | * valprint.c (generic_val_print_enum_1): When printing a flag | |
15678 | enum with value 0 and there is no enumerator with value 0, print | |
15679 | just "0" instead of "(unknown: 0x0)". | |
15680 | ||
15681 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> | |
15682 | ||
15683 | * valprint.c (generic_val_print_enum_1): Print unknown part of | |
15684 | flag enum in hex. | |
15685 | ||
15686 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> | |
15687 | ||
15688 | * dwarf2/read.c (update_enumeration_type_from_children): Allow | |
15689 | flag enums to contain duplicate enumerators. | |
15690 | * valprint.c (generic_val_print_enum_1): Update comment. | |
15691 | ||
15692 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> | |
15693 | ||
15694 | * dwarf2/read.c: Include "count-one-bits.h". | |
15695 | (update_enumeration_type_from_children): If an enumerator has | |
15696 | multiple bits set, don't treat the enumeration as a "flag enum". | |
15697 | * valprint.c (generic_val_print_enum_1): Assert that enumerators | |
15698 | of flag enums have 0 or 1 bit set. | |
15699 | ||
15700 | 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de> | |
15701 | ||
15702 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit | |
15703 | conversion. | |
15704 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
15705 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise. | |
15706 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
15707 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise. | |
15708 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
15709 | ||
15710 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> | |
15711 | ||
15712 | * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com. | |
15713 | ||
15714 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> | |
15715 | ||
15716 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use | |
15717 | displaced_step_closure_up. | |
15718 | * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise. | |
15719 | (struct displaced_step_closure_up): | |
15720 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
15721 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise. | |
15722 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): | |
15723 | Likewise. | |
15724 | * gdbarch.sh (displaced_step_copy_insn): Likewise. | |
15725 | * gdbarch.c, gdbarch.h: Re-generate. | |
15726 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use | |
15727 | displaced_step_closure_up. | |
15728 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
15729 | * i386-tdep.h (i386_displaced_step_copy_insn): Likewise. | |
15730 | * infrun.h (displaced_step_closure_up): New type alias. | |
15731 | (struct displaced_step_inferior_state) <step_closure>: Change | |
15732 | type to displaced_step_closure_up. | |
15733 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use | |
15734 | displaced_step_closure_up. | |
15735 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
15736 | ||
15737 | 2020-02-14 Tom Tromey <tom@tromey.com> | |
15738 | ||
15739 | * minidebug.c (gnu_debug_key): New global. | |
15740 | (find_separate_debug_file_in_section): Use it. | |
15741 | ||
15742 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> | |
15743 | ||
15744 | * gdbarch.sh (displaced_step_copy_insn): Change return type to an | |
15745 | std::unique_ptr. | |
15746 | * gdbarch.c: Re-generate. | |
15747 | * gdbarch.h: Re-generate. | |
15748 | * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr | |
15749 | change. | |
15750 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return | |
15751 | type to std::unique_ptr. | |
15752 | * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise. | |
15753 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
15754 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise. | |
15755 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise. | |
15756 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise. | |
15757 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
15758 | * i386-tdep.h (i386_displaced_step_copy_insn): Likewise. | |
15759 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise. | |
15760 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
15761 | ||
15762 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> | |
15763 | ||
15764 | * infrun.c (get_displaced_step_closure_by_addr): Adjust to | |
15765 | std::unique_ptr. | |
15766 | (displaced_step_clear): Rename to... | |
15767 | (displaced_step_reset): ... this. Just call displaced->reset (). | |
15768 | (displaced_step_clear_cleanup): Rename to... | |
15769 | (displaced_step_reset_cleanup): ... this. | |
15770 | (displaced_step_prepare_throw): Adjust to std::unique_ptr. | |
15771 | (displaced_step_fixup): Likewise. | |
15772 | (resume_1): Likewise. | |
15773 | (handle_inferior_event): Restore child's memory before calling | |
15774 | displaced_step_fixup on the parent. | |
15775 | * infrun.h (displaced_step_inferior_state) <reset>: Adjust | |
15776 | to std::unique_ptr. | |
15777 | <step_closure>: Change type to std::unique_ptr. | |
15778 | ||
15779 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> | |
15780 | ||
15781 | * arm-tdep.c: Include count-one-bits.h. | |
15782 | (cleanup_block_store_pc): Use count_one_bits. | |
15783 | (cleanup_block_load_pc): Use count_one_bits. | |
15784 | (arm_copy_block_xfer): Use count_one_bits. | |
15785 | (thumb2_copy_block_xfer): Use count_one_bits. | |
15786 | (thumb_copy_pop_pc_16bit): Use count_one_bits. | |
15787 | * arch/arm-get-next-pcs.c: Include count-one-bits.h. | |
15788 | (thumb_get_next_pcs_raw): Use count_one_bits. | |
15789 | (arm_get_next_pcs_raw): Use count_one_bits_l. | |
15790 | * arch/arm.c (bitcount): Remove. | |
15791 | * arch/arm.h (bitcount): Remove. | |
15792 | ||
15793 | 2020-02-14 Tom Tromey <tromey@adacore.com> | |
15794 | ||
15795 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): | |
15796 | Update. | |
15797 | * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr. | |
15798 | * dwarf2/loc.c (call_site_find_chain_1): Return | |
15799 | unique_xmalloc_ptr. | |
15800 | (call_site_find_chain): Likewise. | |
15801 | ||
15802 | 2020-02-14 Richard Biener <rguenther@suse.de> | |
15803 | ||
15804 | * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE | |
15805 | on expression with division operators. | |
15806 | ||
15807 | 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> | |
15808 | ||
15809 | * MAINTAINERS (Write After Approval): Adding myself. | |
15810 | ||
15811 | 2020-02-12 Tom Tromey <tom@tromey.com> | |
15812 | ||
15813 | * event-loop.c (event_data, gdb_event, event_handler_func): | |
15814 | Remove. | |
15815 | ||
15816 | 2020-02-12 Tom Tromey <tom@tromey.com> | |
15817 | ||
15818 | * dwarf2/frame.c (dwarf2_frame_bfd_data): New global. | |
15819 | (dwarf2_frame_objfile_data): Add comment. | |
15820 | (find_comp_unit, set_comp_unit): New functions. | |
15821 | (dwarf2_frame_find_fde): Use find_comp_unit. | |
15822 | (dwarf2_build_frame_info): Use set_comp_unit. | |
15823 | ||
15824 | 2020-02-12 Tom Tromey <tom@tromey.com> | |
15825 | ||
15826 | * dwarf2/frame.c (struct comp_unit) <objfile>: Remove. | |
15827 | (comp_unit): Don't initialize objfile. | |
15828 | (execute_cfa_program): Add text_offset parameter. | |
15829 | (execute_cfa_program_test, dwarf2_fetch_cfa_info) | |
15830 | (dwarf2_frame_cache): Update. | |
15831 | (dwarf2_build_frame_info): Don't set "objfile" member. | |
15832 | ||
15833 | 2020-02-12 Tom Tromey <tom@tromey.com> | |
15834 | ||
15835 | * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter. | |
15836 | (decode_frame_entry): Likewise. | |
15837 | (dwarf2_build_frame_info): Update. | |
15838 | ||
15839 | 2020-02-12 Tom Tromey <tom@tromey.com> | |
15840 | ||
15841 | * dwarf2/frame.c (struct comp_unit) <obstack>: New member. | |
15842 | (decode_frame_entry_1): Use the comp_unit obstack. | |
15843 | ||
15844 | 2020-02-12 Tom Tromey <tom@tromey.com> | |
15845 | ||
15846 | * dwarf2/frame.c (struct comp_unit): Add initializers and | |
15847 | constructor. | |
15848 | (dwarf2_frame_objfile_data): Store a comp_unit. | |
15849 | (dwarf2_frame_find_fde): Update. | |
15850 | (dwarf2_build_frame_info): Use "new". | |
15851 | ||
15852 | 2020-02-12 Tom Tromey <tom@tromey.com> | |
15853 | ||
15854 | * dwarf2/frame.c (struct dwarf2_fde_table): Remove. | |
15855 | (dwarf2_fde_table): Typedef for std::vector. | |
15856 | (dwarf2_frame_objfile_data): Remove the deleter. Now static. | |
15857 | (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1) | |
15858 | (decode_frame_entry): Update. | |
15859 | (dwarf2_build_frame_info): Use "new". | |
15860 | ||
15861 | 2020-02-12 Christian Biesinger <cbiesinger@google.com> | |
15862 | ||
15863 | * arm-tdep.c (arm_gdbarch_init): Update. | |
15864 | * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers, | |
15865 | have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos, | |
15866 | have_neon, is_m>: Change to bool. | |
15867 | ||
15868 | 2020-02-12 Christian Biesinger <cbiesinger@google.com> | |
15869 | ||
15870 | * arm-tdep.c (arm_dump_tdep): Print more fields of tdep. | |
15871 | ||
15872 | 2020-02-12 Tom Tromey <tom@tromey.com> | |
15873 | ||
15874 | * dwarf2/loc.c (struct dwarf_expr_baton): Remove. | |
15875 | ||
15876 | 2020-02-12 Hannes Domani <ssbssa@yahoo.de> | |
15877 | ||
15878 | * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type. | |
15879 | (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type. | |
15880 | ||
15881 | 2020-02-11 Tom Tromey <tom@tromey.com> | |
15882 | ||
15883 | * psymtab.h: Update comment. | |
15884 | ||
15885 | 2020-02-11 Tom Tromey <tom@tromey.com> | |
15886 | ||
15887 | * gdb_obstack.h (struct auto_obstack): Use | |
15888 | DISABLE_COPY_AND_ASSIGN. | |
15889 | ||
15890 | 2020-02-11 Tom Tromey <tom@tromey.com> | |
15891 | ||
15892 | * dwarf2/frame.h (struct objfile): Don't forward declare. | |
15893 | ||
15894 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> | |
15895 | ||
15896 | * cris-tdep.c (cris_supply_gregset): Change signature to match | |
15897 | what struct regset expects. | |
15898 | (cris_regset): New struct. | |
15899 | (fetch_core_registers): Remove. | |
15900 | (cris_iterate_over_regset_sections): New function. | |
15901 | (_initialize_cris_tdep): Don't call deprecated_add_core_fns. | |
15902 | (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections. | |
15903 | ||
15904 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> | |
15905 | ||
15906 | * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7 | |
15907 | registers. | |
15908 | ||
15909 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> | |
15910 | ||
15911 | * arm-tdep.c (arm_dump_tdep): Add \n in fprintf. | |
15912 | ||
15913 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> | |
15914 | ||
15915 | * configure: Re-generate. | |
15916 | ||
15917 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> | |
15918 | ||
15919 | * configure: Re-generate. | |
15920 | ||
15921 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> | |
15922 | ||
15923 | * acinclude: Update warning.m4 path. | |
15924 | * warning.m4: Move to gdbsupport. | |
15925 | ||
15926 | 2020-02-11 Tom Tromey <tromey@adacore.com> | |
15927 | ||
15928 | * remote.c (remote_console_output): Update. | |
15929 | * printcmd.c (printf_command): Update. | |
15930 | * event-loop.c (gdb_wait_for_event): Update. | |
15931 | * linux-nat.c (sigchld_handler): Update. | |
15932 | * remote-sim.c (gdb_os_write_stdout): Update. | |
15933 | (gdb_os_flush_stdout): Update. | |
15934 | (gdb_os_flush_stderr): Update. | |
15935 | (gdb_os_write_stderr): Update. | |
15936 | * exceptions.c (print_exception): Update. | |
15937 | * remote-fileio.c (remote_fileio_func_read): Update. | |
15938 | (remote_fileio_func_write): Update. | |
15939 | * tui/tui.c (tui_enable): Update. | |
15940 | * tui/tui-interp.c (tui_interp::init): Update. | |
15941 | * utils.c (init_page_info): Update. | |
15942 | (putchar_unfiltered, fputc_unfiltered): Update. | |
15943 | (gdb_flush): Update. | |
15944 | (emit_style_escape): Update. | |
15945 | (flush_wrap_buffer, fputs_maybe_filtered): Update. | |
15946 | * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write) | |
15947 | (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove. | |
15948 | (stderr_file::write): Update. | |
15949 | (stderr_file::puts): Update. | |
15950 | * ui-file.h (ui_file_isatty, ui_file_write) | |
15951 | (ui_file_write_async_safe, ui_file_read, ui_file_flush) | |
15952 | (ui_file_puts): Don't declare. | |
15953 | ||
15954 | 2020-02-10 Tom de Vries <tdevries@suse.de> | |
15955 | ||
15956 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL | |
15957 | sentinel to char *. | |
15958 | ||
15959 | 2020-02-09 Tom de Vries <tdevries@suse.de> | |
15960 | ||
15961 | * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to | |
15962 | filename if it matches "<artificial>". | |
15963 | ||
15964 | 2020-02-09 Hannes Domani <ssbssa@yahoo.de> | |
15965 | ||
15966 | * windows-tdep.c (struct enum_value_name): New struct. | |
15967 | (create_enum): New function. | |
15968 | (windows_get_siginfo_type): Create and use enum types. | |
15969 | ||
15970 | 2020-02-09 Hannes Domani <ssbssa@yahoo.de> | |
15971 | ||
15972 | * NEWS: Mention $_siginfo support for Windows. | |
15973 | * windows-nat.c (handle_exception): Set siginfo_er. | |
15974 | (windows_nat_target::mourn_inferior): Reset siginfo_er. | |
15975 | (windows_xfer_siginfo): New function. | |
15976 | (windows_nat_target::xfer_partial): Call windows_xfer_siginfo. | |
15977 | * windows-tdep.c (struct windows_gdbarch_data): New struct. | |
15978 | (init_windows_gdbarch_data): New function. | |
15979 | (get_windows_gdbarch_data): New function. | |
15980 | (windows_get_siginfo_type): New function. | |
15981 | (windows_init_abi): Register windows_get_siginfo_type. | |
15982 | (_initialize_windows_tdep): Register init_windows_gdbarch_data. | |
15983 | ||
15984 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
15985 | ||
15986 | * dwarf2/read.c (class cutu_reader) <cutu_reader, | |
15987 | init_tu_and_read_dwo_dies>: Remove "keep" parameter. | |
15988 | <keep>: Declare method. | |
15989 | <m_keep>: Remove member. | |
15990 | <~cutu_reader>: Remove. | |
15991 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
15992 | (cutu_reader::cutu_reader): Update. | |
15993 | (cutu_reader::keep): Rename from ~cutu_reader. | |
15994 | (process_psymtab_comp_unit, build_type_psymtabs_1) | |
15995 | (process_skeletonless_type_unit, load_partial_comp_unit) | |
15996 | (load_full_comp_unit, dwarf2_read_addr_index) | |
15997 | (read_signatured_type): Update. | |
15998 | ||
15999 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16000 | ||
16001 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove | |
16002 | "want_partial_unit" parameter. | |
16003 | (process_psymtab_comp_unit): Change want_partial_unit to bool. | |
16004 | Inline check for DW_TAG_partial_unit. | |
16005 | (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update. | |
16006 | ||
16007 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16008 | ||
16009 | * dwarf2/read.c (read_n_bytes, read_direct_string): Move to | |
16010 | read.c. | |
16011 | * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from | |
16012 | read.c. | |
16013 | ||
16014 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16015 | ||
16016 | * dwarf2/read.c (read_address): Move to comp-unit.c. | |
16017 | (dwarf2_rnglists_process, dwarf2_ranges_process) | |
16018 | (read_attribute_value, dwarf_decode_lines_1) | |
16019 | (var_decode_location, decode_locdesc): Update. | |
16020 | * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from | |
16021 | read.c. Remove "cu" parameter. | |
16022 | * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New | |
16023 | method. | |
16024 | ||
16025 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16026 | ||
16027 | * dwarf2/read.c (read_attribute_value, read_indirect_string) | |
16028 | (read_indirect_line_string): Update. | |
16029 | * dwarf2/comp-unit.c (read_offset): Remove. | |
16030 | (read_comp_unit_head): Update. | |
16031 | * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New | |
16032 | method. | |
16033 | (read_offset): Don't declare. | |
16034 | ||
16035 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16036 | ||
16037 | * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c. | |
16038 | * dwarf2/read.c (struct comp_unit_head): Move to | |
16039 | dwarf2/comp-unit.h. | |
16040 | (enum class rcuh_kind): Move to comp-unit.h. | |
16041 | (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head. | |
16042 | (read_comp_unit_head, error_check_comp_unit_head) | |
16043 | (read_and_check_comp_unit_head): Move to comp-unit.c. | |
16044 | (read_offset, dwarf_unit_type_name): Likewise. | |
16045 | (create_debug_type_hash_table, read_cutu_die_from_dwo) | |
16046 | (cutu_reader::cutu_reader, read_call_site_scope) | |
16047 | (find_partial_die, follow_die_offset): Update. | |
16048 | * dwarf2/comp-unit.h: New file, from dwarf2read.c. | |
16049 | ||
16050 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16051 | ||
16052 | * dwarf2/read.c (read_offset_1): Move to leb.c. | |
16053 | (read_abbrev_offset, read_offset, dwarf_decode_line_header) | |
16054 | (dwarf_decode_macro_bytes): Update. | |
16055 | * dwarf2/leb.c (read_offset): Rename; move from read.c. | |
16056 | * dwarf2/leb.h (read_offset): Declare. | |
16057 | ||
16058 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16059 | ||
16060 | * dwarf2/read.c (dwarf2_section_size): Remove. | |
16061 | (error_check_comp_unit_head, dwarf2_symbol_mark_computed): | |
16062 | Update. | |
16063 | * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method. | |
16064 | ||
16065 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16066 | ||
16067 | * dwarf2/read.c (read_initial_length): Move to leb.c. | |
16068 | * dwarf2/leb.h (read_initial_length): Declare. | |
16069 | * dwarf2/leb.c (read_initial_length): Move from read.c. Add | |
16070 | handle_nonstd parameter. | |
16071 | * dwarf2/frame.c (read_initial_length): Remove. | |
16072 | (decode_frame_entry_1): Update. | |
16073 | ||
16074 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16075 | ||
16076 | * dwarf2/loc.c (dwarf2_find_location_expression) | |
16077 | (dwarf_evaluate_loc_desc::get_tls_address) | |
16078 | (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value) | |
16079 | (rw_pieced_value, dwarf2_evaluate_loc_desc_full) | |
16080 | (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property) | |
16081 | (dwarf2_compile_property_to_c) | |
16082 | (dwarf2_loc_desc_get_symbol_read_needs) | |
16083 | (dwarf2_compile_expr_to_ax, locexpr_describe_location) | |
16084 | (locexpr_tracepoint_var_ref, locexpr_generate_c_location) | |
16085 | (loclist_describe_location, loclist_tracepoint_var_ref) | |
16086 | (loclist_generate_c_location): Update. | |
16087 | * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update. | |
16088 | * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size) | |
16089 | (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size) | |
16090 | (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare. | |
16091 | * dwarf2/read.c (dwarf2_per_cu_data::objfile) | |
16092 | (dwarf2_per_cu_data::addr_size) | |
16093 | (dwarf2_per_cu_data::ref_addr_size) | |
16094 | (dwarf2_per_cu_data::text_offset) | |
16095 | (dwarf2_per_cu_data::addr_type): Now methods. | |
16096 | (per_cu_header_read_in): Make per_cu "const". | |
16097 | (dwarf2_version): Remove. | |
16098 | (dwarf2_per_cu_data::int_type): Now a method. | |
16099 | (dwarf2_per_cu_data::_addr_sized_int_type): Likewise. | |
16100 | (set_die_type, read_array_type, read_subrange_index_type) | |
16101 | (read_tag_string_type, read_subrange_type): Update. | |
16102 | * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size, | |
16103 | offset_size, ref_addr_size, text_offset, addr_type, version, | |
16104 | objfile, int_type, addr_sized_int_type>: Declare methods. | |
16105 | ||
16106 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16107 | ||
16108 | * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>: | |
16109 | Move earlier. | |
16110 | ||
16111 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16112 | ||
16113 | * dwarf2/read.h (dwarf_line_debug): Declare. | |
16114 | * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c. | |
16115 | * dwarf2/read.c: Move line_header code to new files. | |
16116 | (dwarf_line_debug): No longer static. | |
16117 | * dwarf2/line-header.c: New file. | |
16118 | * dwarf2/line-header.h: New file. | |
16119 | ||
16120 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16121 | ||
16122 | * dwarf2/read.c (struct line_header) <file_full_name, | |
16123 | file_file_name>: Return unique_xmalloc_ptr. | |
16124 | (line_header::file_file_name): Update. | |
16125 | (line_header::file_full_name): Update. | |
16126 | (dw2_get_file_names_reader): Update. | |
16127 | (macro_start_file): Update. | |
16128 | ||
16129 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16130 | ||
16131 | * dwarf2/read.c (struct line_header) <file_full_name, | |
16132 | file_file_name>: Declare methods. | |
16133 | (dw2_get_file_names_reader): Update. | |
16134 | (file_file_name): Now a method. | |
16135 | (file_full_name): Likewise. | |
16136 | (macro_start_file): Update. | |
16137 | ||
16138 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16139 | ||
16140 | * dwarf2/read.c (dwarf_always_disassemble) | |
16141 | (show_dwarf_always_disassemble): Move to loc.c. | |
16142 | (_initialize_dwarf2_read): Move "always-disassemble" registration | |
16143 | to loc.c. | |
16144 | * dwarf2/read.h (dwarf_always_disassemble): Don't declare. | |
16145 | * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now | |
16146 | static. | |
16147 | (show_dwarf_always_disassemble): Move from read.c. | |
16148 | (_initialize_dwarf2loc): Move always-disassemble from read.c. | |
16149 | ||
16150 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16151 | ||
16152 | * dwarf2/read.c (~dwarf2_per_objfile): Update. | |
16153 | (create_quick_file_names_table): Return htab_up. | |
16154 | (dw2_get_file_names_reader, dw2_forget_cached_source_info): | |
16155 | Update. | |
16156 | * dwarf2/read.h (struct dwarf2_per_objfile) | |
16157 | <quick_file_names_table>: Now htab_up. | |
16158 | ||
16159 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16160 | ||
16161 | * dwarf2/abbrev.c (abbrev_table::read): Simplify. | |
16162 | ||
16163 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16164 | ||
16165 | * dwarf2/abbrev.c (abbrev_table): Move constructor from header. | |
16166 | Rewrite. | |
16167 | (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite. | |
16168 | * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove. | |
16169 | (abbrev_table::abbrev_table): No longer inline. | |
16170 | (ABBREV_HASH_SIZE): Remove. | |
16171 | (abbrev_table::m_abbrevs): Now an htab_up. | |
16172 | ||
16173 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16174 | ||
16175 | * dwarf2/read.c (read_cutu_die_from_dwo): Update. | |
16176 | (cutu_reader): Update. | |
16177 | (build_type_psymtabs_1): Update. | |
16178 | * dwarf2/abbrev.c (abbrev_table::read): Rename. | |
16179 | (abbrev_table::alloc_abbrev): Update. | |
16180 | * dwarf2/abbrev.h (abbrev_table_up): Move earlier. | |
16181 | (abbrev_table::read): New static method, renamed from | |
16182 | abbrev_table_read_table. | |
16183 | (abbrev_table::alloc_abbrev) | |
16184 | (abbrev_table::add_abbrev): Now private. | |
16185 | (abbrev_table::abbrev_table): Now private. | |
16186 | (abbrev_table::m_abbrev_obstack): Now private. Rename. | |
16187 | ||
16188 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16189 | ||
16190 | * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update. | |
16191 | * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now | |
16192 | htab_up. | |
16193 | ||
16194 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16195 | ||
16196 | * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now | |
16197 | htab_up. | |
16198 | (lookup_dwo_unit_in_dwp): Update. | |
16199 | (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate | |
16200 | on obstack. | |
16201 | ||
16202 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16203 | ||
16204 | * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on | |
16205 | obstack. | |
16206 | ||
16207 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16208 | ||
16209 | * dwarf2/read.c (~dwarf2_per_objfile): Don't delete | |
16210 | line_header_hash. | |
16211 | (handle_DW_AT_stmt_list): Update. Don't allocate on obstack. | |
16212 | * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>: | |
16213 | Change type to htab_up. | |
16214 | ||
16215 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16216 | ||
16217 | * dwarf2/read.c (allocate_type_unit_groups_table): Return | |
16218 | htab_up. Don't allocate on obstack. | |
16219 | (get_type_unit_group, dwarf2_build_psymtabs_hard): Update. | |
16220 | * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>: | |
16221 | Change type to htab_up. | |
16222 | ||
16223 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16224 | ||
16225 | * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>: | |
16226 | Change type to htab_up. | |
16227 | * dwarf2/read.c (create_signatured_type_table_from_index) | |
16228 | (create_signatured_type_table_from_debug_names) | |
16229 | (create_all_type_units, add_type_unit) | |
16230 | (lookup_dwo_signatured_type, lookup_signatured_type) | |
16231 | (process_skeletonless_type_unit): Update. | |
16232 | (create_debug_type_hash_table, create_debug_types_hash_table): | |
16233 | Change type of types_htab. | |
16234 | (allocate_signatured_type_table, allocate_dwo_unit_table): Return | |
16235 | htab_up. Don't allocate on obstack. | |
16236 | (create_cus_hash_table): Change type of cus_htab parameter. | |
16237 | (struct dwo_file) <cus, tus>: Now htab_up. | |
16238 | (lookup_dwo_signatured_type, lookup_dwo_cutu) | |
16239 | (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu) | |
16240 | (queue_and_load_all_dwo_tus): Update. | |
16241 | * dwarf2/index-write.c (write_gdbindex): Update. | |
16242 | (write_debug_names): Update. | |
16243 | ||
16244 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16245 | ||
16246 | * dwarf2/read.h (struct dwarf2_queue_item): Move from | |
16247 | dwarf2/read.c. Remove "next" member. Add constructor ntad | |
16248 | destructor. | |
16249 | (struct dwarf2_per_objfile) <queue>: New member. | |
16250 | * dwarf2/read.c (struct dwarf2_queue_item): Move to | |
16251 | dwarf2/read.h. | |
16252 | (dwarf2_queue, dwarf2_queue_tail): Remove. | |
16253 | (class dwarf2_queue_guard): Add parameter to constructor. Use | |
16254 | DISABLE_COPY_AND_ASSIGN. | |
16255 | <m_per_objfile>: New member. | |
16256 | <~dwarf2_queue_guard>: Rewrite. | |
16257 | (dw2_do_instantiate_symtab, queue_comp_unit, process_queue): | |
16258 | Update. | |
16259 | (~dwarf2_queue_item): New. | |
16260 | ||
16261 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16262 | ||
16263 | * dwarf2/read.c (struct die_info) <has_children>: New member. | |
16264 | (dw2_get_file_names_reader): Remove has_children. | |
16265 | (dw2_get_file_names): Update. | |
16266 | (read_cutu_die_from_dwo): Remove has_children. | |
16267 | (cutu_reader::init_tu_and_read_dwo_dies) | |
16268 | (cutu_reader::cutu_reader): Update. | |
16269 | (process_psymtab_comp_unit_reader, build_type_psymtabs_reader): | |
16270 | Remove has_children. | |
16271 | (build_type_psymtabs_1, process_skeletonless_type_unit) | |
16272 | (load_partial_comp_unit, load_full_comp_unit): Update. | |
16273 | (create_dwo_cu_reader): Remove has_children. | |
16274 | (create_cus_hash_table, read_die_and_children): Update. | |
16275 | (read_full_die_1,read_full_die): Remove has_children. | |
16276 | (read_signatured_type): Update. | |
16277 | (class cutu_reader) <has_children>: Remove. | |
16278 | ||
16279 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16280 | ||
16281 | * dwarf2/expr.c: Rename from dwarf2expr.c. | |
16282 | * dwarf2/expr.h: Rename from dwarf2expr.h. | |
16283 | * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c. | |
16284 | * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h. | |
16285 | * dwarf2/frame.c: Rename from dwarf2-frame.c. | |
16286 | * dwarf2/frame.h: Rename from dwarf2-frame.h. | |
16287 | * dwarf2/index-cache.c: Rename from dwarf-index-cache.c. | |
16288 | * dwarf2/index-cache.h: Rename from dwarf-index-cache.h. | |
16289 | * dwarf2/index-common.c: Rename from dwarf-index-common.c. | |
16290 | * dwarf2/index-common.h: Rename from dwarf-index-common.h. | |
16291 | * dwarf2/index-write.c: Rename from dwarf-index-write.c. | |
16292 | * dwarf2/index-write.h: Rename from dwarf-index-write.h. | |
16293 | * dwarf2/loc.c: Rename from dwarf2loc.c. | |
16294 | * dwarf2/loc.h: Rename from dwarf2loc.h. | |
16295 | * dwarf2/read.c: Rename from dwarf2read.c. | |
16296 | * dwarf2/read.h: Rename from dwarf2read.h. | |
16297 | * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c, | |
16298 | amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c, | |
16299 | compile/compile-c-symbols.c, compile/compile-cplus-symbols.c, | |
16300 | compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c, | |
16301 | gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c, | |
16302 | hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c, | |
16303 | i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c, | |
16304 | m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c, | |
16305 | msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c, | |
16306 | riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c, | |
16307 | s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c, | |
16308 | sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c, | |
16309 | tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c: | |
16310 | Update. | |
16311 | * Makefile.in (COMMON_SFILES): Update. | |
16312 | (HFILES_NO_SRCDIR): Update. | |
16313 | ||
16314 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16315 | ||
16316 | * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove. | |
16317 | (init_cu_die_reader, read_cutu_die_from_dwo): Update. | |
16318 | ||
16319 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16320 | ||
16321 | * dwarf2read.h (struct die_info): Don't declare. | |
16322 | ||
16323 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16324 | ||
16325 | * dwarf2read.h (die_info_ptr): Remove typedef. | |
16326 | ||
16327 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16328 | ||
16329 | * dwarf2read.c (read_call_site_scope) | |
16330 | (handle_data_member_location, dwarf2_add_member_fn) | |
16331 | (mark_common_block_symbol_computed, read_common_block) | |
16332 | (attr_to_dynamic_prop, partial_die_info::read) | |
16333 | (var_decode_location, dwarf2_fetch_die_loc_sect_off) | |
16334 | (dwarf2_symbol_mark_computed, set_die_type): Update. | |
16335 | * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare | |
16336 | method. | |
16337 | (attr_form_is_block): Don't declare. | |
16338 | * dwarf2/attribute.c (attribute::form_is_block): Now a method. | |
16339 | ||
16340 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16341 | ||
16342 | * dwarf2read.c (dwarf2_find_base_address, ) | |
16343 | (read_call_site_scope, rust_containing_type) | |
16344 | (dwarf2_get_pc_bounds, dwarf2_record_block_ranges) | |
16345 | (handle_data_member_location, dwarf2_add_member_fn) | |
16346 | (get_alignment, read_structure_type, process_structure_scope) | |
16347 | (mark_common_block_symbol_computed, read_common_block) | |
16348 | (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type) | |
16349 | (partial_die_info::read, read_attribute_value, new_symbol) | |
16350 | (lookup_die_type, dwarf2_get_ref_die_offset) | |
16351 | (dwarf2_get_attr_constant_value, follow_die_ref_or_sig) | |
16352 | (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type) | |
16353 | (dwarf2_symbol_mark_computed): Update. | |
16354 | * dwarf2/attribute.h (struct attribute) <value_as_address, | |
16355 | form_is_section_offset, form_is_constant, form_is_ref>: Declare | |
16356 | methods. | |
16357 | (value_as_address, attr_form_is_section_offset) | |
16358 | (attr_form_is_constant, attr_form_is_ref): Don't declare. | |
16359 | * dwarf2/attribute.c (attribute::value_as_address) | |
16360 | (attribute::form_is_section_offset, attribute::form_is_constant) | |
16361 | (attribute::form_is_ref): Now methods. | |
16362 | ||
16363 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16364 | ||
16365 | * dwarf2read.c (struct attribute, DW_STRING) | |
16366 | (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR) | |
16367 | (DW_SIGNATURE, struct dwarf_block, attr_value_as_address) | |
16368 | (attr_form_is_block, attr_form_is_section_offset) | |
16369 | (attr_form_is_constant, attr_form_is_ref): Move. | |
16370 | * dwarf2/attribute.h: New file. | |
16371 | * dwarf2/attribute.c: New file, from dwarf2read.c. | |
16372 | * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c. | |
16373 | ||
16374 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16375 | ||
16376 | * dwarf2read.c (abbrev_table_up, struct abbrev_info) | |
16377 | (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table): | |
16378 | Move. | |
16379 | (read_cutu_die_from_dwo, build_type_psymtabs_1): Update. | |
16380 | (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev) | |
16381 | (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to | |
16382 | abbrev.c. | |
16383 | * dwarf2/abbrev.h: New file. | |
16384 | * dwarf2/abbrev.c: New file, from dwarf2read.c. | |
16385 | * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c. | |
16386 | ||
16387 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16388 | ||
16389 | * dwarf2read.c (dwarf2_section_buffer_overflow_complaint) | |
16390 | (dwarf2_section_size, dwarf2_get_section_info) | |
16391 | (create_signatured_type_table_from_debug_names) | |
16392 | (create_addrmap_from_aranges, read_debug_names_from_section) | |
16393 | (get_gdb_index_contents_from_section, read_comp_unit_head) | |
16394 | (error_check_comp_unit_head, read_abbrev_offset) | |
16395 | (create_debug_type_hash_table, init_cu_die_reader) | |
16396 | (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard) | |
16397 | (read_comp_units_from_section, create_cus_hash_table) | |
16398 | (create_dwp_hash_table, create_dwo_unit_in_dwp_v1) | |
16399 | (create_dwp_v2_section, dwarf2_rnglists_process) | |
16400 | (dwarf2_ranges_process, read_die_and_siblings, read_full_die) | |
16401 | (abbrev_table_read_table, read_indirect_string_at_offset_from) | |
16402 | (read_indirect_string_from_dwz, read_addr_index_1) | |
16403 | (read_str_index, dwarf_decode_line_header, skip_form_bytes) | |
16404 | (dwarf_decode_macro_bytes, dwarf_decode_macros) | |
16405 | (fill_in_loclist_baton): Update. | |
16406 | * dwarf2/section.h (struct dwarf2_section_info) <get_name, | |
16407 | get_containing_section, get_bfd_owner, get_bfd_section, | |
16408 | get_file_name, get_id, get_flags, empty, read>: Declare methods. | |
16409 | (dwarf2_read_section, get_section_name, get_section_file_name) | |
16410 | (get_containing_section, get_section_bfd_owner) | |
16411 | (get_section_bfd_section, get_section_name, get_section_file_name) | |
16412 | (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't | |
16413 | declare. | |
16414 | * dwarf2/section.c (dwarf2_section_info::get_containing_section) | |
16415 | (dwarf2_section_info::get_bfd_owner) | |
16416 | (dwarf2_section_info::get_bfd_section) | |
16417 | (dwarf2_section_info::get_name) | |
16418 | (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id) | |
16419 | (dwarf2_section_info::get_flags, dwarf2_section_info::empty) | |
16420 | (dwarf2_section_info::read): Now methods. | |
16421 | * dwarf-index-write.c (class debug_names): Update. | |
16422 | ||
16423 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16424 | ||
16425 | * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section): | |
16426 | Move to dwarf2/section.h. | |
16427 | * dwarf2read.c (get_containing_section, get_section_bfd_owner) | |
16428 | (get_section_bfd_section, get_section_name) | |
16429 | (get_section_file_name, get_section_id, get_section_flags) | |
16430 | (dwarf2_section_empty_p, dwarf2_read_section): Moe to | |
16431 | dwarf2/section.c. | |
16432 | * dwarf2/section.h: New file. | |
16433 | * dwarf2/section.c: New file, from dwarf2read.c. | |
16434 | * Makefile.in (COMMON_SFILES): Add dwarf2/section.c. | |
16435 | ||
16436 | 2020-02-08 Tom Tromey <tom@tromey.com> | |
16437 | ||
16438 | * dwarf2read.h (read_unsigned_leb128): Don't declare. | |
16439 | * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes) | |
16440 | (read_2_signed_bytes, read_3_bytes, read_4_bytes) | |
16441 | (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h. | |
16442 | (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c. | |
16443 | * dwarf2/leb.h: New file, from dwarf2read.c. | |
16444 | * dwarf2/leb.c: New file, from dwarf2read.c. | |
16445 | * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes): | |
16446 | Remove. | |
16447 | * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2. | |
16448 | (COMMON_SFILES): Add dwarf2/leb.c. | |
16449 | ||
16450 | 2020-02-08 Joel Brobecker <brobecker@adacore.com> | |
16451 | ||
16452 | GDB 9.1 released. | |
16453 | ||
16454 | 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org> | |
16455 | ||
16456 | PR gdb/25190: | |
16457 | * gdb/remote-sim.c (gdb_os_write_stderr): Update. | |
16458 | * gdb/remote.c (remote_console_output): Update. | |
16459 | * gdb/ui-file.c (fputs_unfiltered): Rename to... | |
16460 | (ui_file_puts): ...this. | |
16461 | * gdb/ui-file.h (ui_file_puts): Add declaration. | |
16462 | * gdb/utils.c (emit_style_escape): Update. | |
16463 | (flush_wrap_buffer): Update. | |
16464 | (fputs_maybe_filtered): Update. | |
16465 | (fputs_unfiltered): Add function. | |
16466 | ||
16467 | 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org> | |
16468 | ||
16469 | * gdb/event-loop.c (gdb_wait_for_event): Update. | |
16470 | * gdb/printcmd.c (printf_command): Update. | |
16471 | * gdb/remote-fileio.c (remote_fileio_func_write): Update. | |
16472 | * gdb/remote-sim.c (gdb_os_flush_stdout): Update. | |
16473 | (gdb_os_flush_stderr): Update. | |
16474 | * gdb/remote.c (remote_console_output): Update. | |
16475 | * gdb/ui-file.c (gdb_flush): Rename to... | |
16476 | (ui_file_flush): ...this. | |
16477 | (stderr_file::write): Update. | |
16478 | (stderr_file::puts): Update. | |
16479 | * gdb/ui-file.h (gdb_flush): Rename to... | |
16480 | (ui_file_flush): ...this. | |
16481 | * gdb/utils.c (gdb_flush): Add function. | |
16482 | * gdb/utils.h (gdb_flush): Add declaration. | |
16483 | ||
16484 | 2020-02-07 Tom Tromey <tromey@adacore.com> | |
16485 | ||
16486 | PR breakpoints/24915: | |
16487 | * source.c (find_and_open_source): Do not check basenames_may_differ. | |
16488 | ||
16489 | 2020-02-07 Tom Tromey <tom@tromey.com> | |
16490 | ||
16491 | * README: Update gdbserver documentation. | |
16492 | * gdbserver: Move to top level. | |
16493 | * configure.tgt (build_gdbserver): Remove. | |
16494 | * configure.ac: Remove --enable-gdbserver. | |
16495 | * configure: Rebuild. | |
16496 | * Makefile.in (distclean): Don't mention gdbserver. | |
16497 | ||
16498 | 2020-02-06 Shahab Vahedi <shahab@synopsys.com> | |
16499 | ||
16500 | * source-cache.c (source_cache::ensure): Surround | |
16501 | get_plain_source_lines with a try/catch. | |
16502 | (source_cache::get_line_charpos): Get rid of try/catch | |
16503 | and only check for the return value of "ensure". | |
16504 | * tui/tui-source.c (tui_source_window::set_contents): | |
16505 | Simplify "nlines" calculation. | |
16506 | ||
16507 | 2020-02-06 Shahab Vahedi <shahab@synopsys.com> | |
16508 | ||
16509 | * MAINTAINERS (Write After Approval): Add myself. | |
16510 | ||
16511 | 2020-02-05 Christian Biesinger <cbiesinger@google.com> | |
16512 | ||
16513 | * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class | |
16514 | function call. | |
16515 | ||
16516 | 2020-02-05 Christian Biesinger <cbiesinger@google.com> | |
16517 | ||
16518 | * ppc-nbsd-tdep.h: Fix macro name in #endif comment. | |
16519 | ||
16520 | 2020-02-05 Maciej W. Rozycki <macro@wdc.com> | |
16521 | ||
16522 | * nat/riscv-linux-tdesc.h: New file. | |
16523 | * nat/riscv-linux-tdesc.c: New file, taking code from... | |
16524 | * riscv-linux-nat.c (riscv_linux_nat_target::read_description): | |
16525 | ... here. | |
16526 | * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to | |
16527 | NATDEPFILES. | |
16528 | ||
16529 | 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com> | |
16530 | ||
16531 | * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that | |
16532 | we don't set the fake simulator ptid to the null_ptid. | |
16533 | ||
16534 | 2020-02-03 Simon Marchi <simon.marchi@efficios.com> | |
16535 | ||
16536 | * fork-child.c (gdb_startup_inferior): Use bool instead of int. | |
16537 | * gdbthread.h (class thread_info) <resumed>: Likewise. | |
16538 | * infrun.c (resume_1): Likewise. | |
16539 | (proceed): Likewise. | |
16540 | (infrun_thread_stop_requested): Likewise. | |
16541 | (stop_all_threads): Likewise. | |
16542 | (handle_inferior_event): Likewise. | |
16543 | (restart_threads): Likewise. | |
16544 | (finish_step_over): Likewise. | |
16545 | (keep_going_stepped_thread): Likewise. | |
16546 | * linux-nat.c (attach_proc_task_lwp_callback): Likewise. | |
16547 | (linux_handle_extended_wait): Likewise. | |
16548 | * record-btrace.c (get_thread_current_frame_id): Likewise. | |
16549 | * record-full.c (record_full_wait_1): Likewise. | |
16550 | * remote.c (remote_target::process_initial_stop_replies): Likewise. | |
16551 | * target.c (target_resume): Likewise. | |
16552 | * thread.c (set_running_thread): Likewise. | |
16553 | ||
16554 | 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> | |
16555 | ||
16556 | * f-valprint.c (f77_print_array_1): Changed datatype of index | |
16557 | variable to LONGEST from int to enable it to contain bound | |
16558 | values correctly. | |
16559 | ||
16560 | 2020-02-03 Maciej W. Rozycki <macro@wdc.com> | |
16561 | ||
16562 | * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro. | |
16563 | (supply_fpregset_regnum, fill_fpregset): Handle regset buffer | |
16564 | offsets according to FLEN determined. | |
16565 | (riscv_linux_nat_target::read_description): Determine FLEN | |
16566 | dynamically. | |
16567 | (riscv_linux_nat_target::fetch_registers): Size regset buffer | |
16568 | according to FLEN determined. | |
16569 | (riscv_linux_nat_target::store_registers): Likewise. | |
16570 | ||
16571 | 2020-02-01 Shahab Vahedi <shahab@synopsys.com> | |
16572 | ||
16573 | * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0 | |
16574 | when reg->group is empty and reggroup is not. | |
16575 | ||
16576 | 2020-01-31 Tom Tromey <tromey@adacore.com> | |
16577 | ||
16578 | * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior): | |
16579 | Call beneath target's mourn_inferior after unpushing. | |
16580 | ||
16581 | 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com> | |
16582 | ||
16583 | PR tui/9765 | |
16584 | * tui/tui-disasm.c (tui_find_disassembly_address): If we don't | |
16585 | have enough lines to fill the screen, still return the lowest | |
16586 | address we found. | |
16587 | ||
16588 | 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com> | |
16589 | ||
16590 | * tui/tui-win.c (_initialize_tui_win): Update help text for '+', | |
16591 | '-', '<', and '>' commands. | |
16592 | ||
16593 | 2020-01-29 Pedro Alves <palves@redhat.com> | |
16594 | Sergio Durigan Junior <sergiodj@redhat.com> | |
16595 | ||
16596 | * infcmd.c (construct_inferior_arguments): Assert that | |
16597 | 'argc' is greater than 0. | |
16598 | ||
16599 | 2020-01-29 Luis Machado <luis.machado@linaro.org> | |
16600 | ||
16601 | * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f. | |
16602 | (BRK_INSN_MASK): Define to 0xd4200000. | |
16603 | (aarch64_program_breakpoint_here_p): New function. | |
16604 | (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook. | |
16605 | * arch-utils.c (default_program_breakpoint_here_p): Moved from | |
16606 | breakpoint.c. | |
16607 | * arch-utils.h (default_program_breakpoint_here_p): Moved from | |
16608 | breakpoint.h | |
16609 | * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and | |
16610 | call gdbarch_program_breakpoint_here_p. | |
16611 | (program_breakpoint_here): Moved to arch-utils.c, renamed to | |
16612 | default_program_breakpoint_here_p, changed return type to bool and | |
16613 | simplified. | |
16614 | * breakpoint.h (program_breakpoint_here): Moved prototype to | |
16615 | arch-utils.h, renamed to default_program_breakpoint_here_p and changed | |
16616 | return type to bool. | |
16617 | * gdbarch.c: Regenerate. | |
16618 | * gdbarch.h: Regenerate. | |
16619 | * gdbarch.sh (program_breakpoint_here_p): New method. | |
16620 | * infrun.c (handle_signal_stop): Call | |
16621 | gdbarch_program_breakpoint_here_p. | |
16622 | ||
16623 | 2020-01-26 Tom Tromey <tom@tromey.com> | |
16624 | ||
16625 | * ctfread.c (struct ctf_fp_info): Reindent. | |
16626 | (_initialize_ctfread): Remove. | |
16627 | ||
16628 | 2020-01-26 Tom Tromey <tom@tromey.com> | |
16629 | ||
16630 | * psymtab.c (partial_map_expand_apply) | |
16631 | (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol) | |
16632 | (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab) | |
16633 | (psym_print_stats, psym_expand_symtabs_for_function) | |
16634 | (psym_map_symbol_filenames, psym_map_matching_symbols) | |
16635 | (psym_expand_symtabs_matching) | |
16636 | (partial_symtab::read_dependencies, maintenance_info_psymtabs) | |
16637 | (maintenance_check_psymtabs): Use new methods. | |
16638 | * psympriv.h (struct partial_symtab) <readin_p, | |
16639 | get_compunit_symtab>: New methods. | |
16640 | <readin, compunit_symtab>: Remove members. | |
16641 | (struct standard_psymtab): New. | |
16642 | (struct legacy_psymtab): Derive from standard_psymtab. | |
16643 | * dwarf2read.h (struct dwarf2_psymtab): Derive from | |
16644 | standard_psymtab. | |
16645 | * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab. | |
16646 | ||
16647 | 2020-01-26 Tom Tromey <tom@tromey.com> | |
16648 | ||
16649 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Call | |
16650 | read_dependencies. Add assert. | |
16651 | * psymtab.c (partial_symtab::read_dependencies): New method. | |
16652 | * psympriv.h (struct partial_symtab) <read_dependencies>: New | |
16653 | method. | |
16654 | * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies. | |
16655 | * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call | |
16656 | read_dependencies. | |
16657 | * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies. | |
16658 | Add assert. | |
16659 | ||
16660 | 2020-01-26 Tom Tromey <tom@tromey.com> | |
16661 | ||
16662 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order. | |
16663 | Call expand_psymtab. | |
16664 | (xcoff_read_symtab): Call expand_psymtab. | |
16665 | (xcoff_start_psymtab, xcoff_end_psymtab): Set | |
16666 | legacy_expand_psymtab. | |
16667 | * psympriv.h (struct partial_symtab) <expand_psymtab>: New | |
16668 | method. | |
16669 | (struct legacy_psymtab) <expand_psymtab>: Implement. | |
16670 | <legacy_expand_psymtab>: New member. | |
16671 | * mdebugread.c (mdebug_read_symtab): Call expand_psymtab. | |
16672 | (parse_partial_symbols): Set legacy_expand_psymtab. | |
16673 | (psymtab_to_symtab_1): Change argument order. Call | |
16674 | expand_psymtab. | |
16675 | (new_psymtab): Set legacy_expand_psymtab. | |
16676 | * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare. | |
16677 | * dwarf2read.c (dwarf2_psymtab::read_symtab): Call | |
16678 | expand_psymtab. | |
16679 | (dwarf2_psymtab::expand_psymtab): Rename from | |
16680 | psymtab_to_symtab_1. Call expand_psymtab. | |
16681 | * dbxread.c (start_psymtab): Set legacy_expand_psymtab. | |
16682 | (dbx_end_psymtab): Likewise. | |
16683 | (dbx_psymtab_to_symtab_1): Change argument order. Call | |
16684 | expand_psymtab. | |
16685 | (dbx_read_symtab): Call expand_psymtab. | |
16686 | * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare. | |
16687 | (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab. | |
16688 | (ctf_psymtab::read_symtab): Call expand_psymtab. | |
16689 | ||
16690 | 2020-01-26 Tom Tromey <tom@tromey.com> | |
16691 | ||
16692 | * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert. | |
16693 | * psymtab.c (psymtab_to_symtab): Print verbose "Reading" | |
16694 | messages. | |
16695 | * mdebugread.c (mdebug_read_symtab): Remove prints. | |
16696 | * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add | |
16697 | assert. | |
16698 | * dbxread.c (dbx_read_symtab): Remove prints. Add assert. | |
16699 | ||
16700 | 2020-01-26 Tom Tromey <tom@tromey.com> | |
16701 | ||
16702 | * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab) | |
16703 | (xcoff_psymtab_to_symtab_1, xcoff_read_symtab) | |
16704 | (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use | |
16705 | legacy_symtab. | |
16706 | * stabsread.h (dbx_end_psymtab): Use legacy_symtab. | |
16707 | * psymtab.c (psymtab_to_symtab): Call method. | |
16708 | (dump_psymtab): Update. | |
16709 | * psympriv.h (struct partial_symtab): Add virtual destructor. | |
16710 | <read_symtab>: New method. | |
16711 | (struct legacy_symtab): New. | |
16712 | * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab. | |
16713 | (struct pst_map) <pst>: Now a legacy_psymtab. | |
16714 | (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1) | |
16715 | (new_psymtab): Use legacy_psymtab. | |
16716 | * dwarf2read.h (struct dwarf2_psymtab): New. | |
16717 | (struct dwarf2_per_cu_data) <psymtab>: Use it. | |
16718 | * dwarf2read.c (dwarf2_create_include_psymtab) | |
16719 | (dwarf2_build_include_psymtabs, create_type_unit_group) | |
16720 | (create_partial_symtab, process_psymtab_comp_unit_reader) | |
16721 | (build_type_psymtabs_reader, build_type_psymtab_dependencies) | |
16722 | (set_partial_user): Use dwarf2_psymtab. | |
16723 | (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab. | |
16724 | (psymtab_to_symtab_1, process_full_comp_unit) | |
16725 | (process_full_type_unit, dwarf2_ranges_read) | |
16726 | (dwarf2_get_pc_bounds, psymtab_include_file_name) | |
16727 | (dwarf_decode_lines): Use dwarf2_psymtab. | |
16728 | * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab. | |
16729 | (add_address_entry_worker, write_one_signatured_type) | |
16730 | (recursively_count_psymbols, recursively_write_psymbols) | |
16731 | (write_one_signatured_type, psyms_seen_size, write_gdbindex) | |
16732 | (write_debug_names): Likewise. | |
16733 | * dbxread.c (struct header_file_location): Take a legacy_psymtab. | |
16734 | <pst>: Now a legacy_psymtab. | |
16735 | (find_corresponding_bincl_psymtab): Return a legacy_psymtab. | |
16736 | (read_dbx_symtab, start_psymtab, dbx_end_psymtab) | |
16737 | (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab. | |
16738 | * ctfread.c (struct ctf_psymtab): New. | |
16739 | (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a | |
16740 | ctf_psymtab. | |
16741 | (ctf_psymtab::read_symtab): Rename from ctf_read_symtab. | |
16742 | (create_partial_symtab): Return a ctf_psymtab. | |
16743 | (scan_partial_symbols): Update. | |
16744 | ||
16745 | 2020-01-26 Tom Tromey <tom@tromey.com> | |
16746 | ||
16747 | * xcoffread.c (xcoff_start_psymtab): Use new. | |
16748 | * psymtab.c (partial_symtab::partial_symtab): New constructor, | |
16749 | renamed from start_psymtab_common. | |
16750 | * psympriv.h (struct partial_symtab): Add new constructor. | |
16751 | (start_psymtab_common): Don't declare. | |
16752 | * mdebugread.c (parse_partial_symbols): Use new. | |
16753 | * dwarf2read.c (create_partial_symtab): Use new. | |
16754 | * dbxread.c (start_psymtab): Use new. | |
16755 | * ctfread.c (create_partial_symtab): Use new. | |
16756 | ||
16757 | 2020-01-26 Tom Tromey <tom@tromey.com> | |
16758 | ||
16759 | * xcoffread.c (xcoff_end_psymtab): Use new. | |
16760 | * psymtab.c (start_psymtab_common): Use new. | |
16761 | (partial_symtab::partial_symtab): Rename from allocate_psymtab. | |
16762 | Update. | |
16763 | * psympriv.h (struct partial_symtab): Add parameters to | |
16764 | constructor. Don't inline. | |
16765 | (allocate_psymtab): Don't declare. | |
16766 | * mdebugread.c (new_psymtab): Use new. | |
16767 | * dwarf2read.c (dwarf2_create_include_psymtab): Use new. | |
16768 | * dbxread.c (dbx_end_psymtab): Use new. | |
16769 | ||
16770 | 2020-01-26 Tom Tromey <tom@tromey.com> | |
16771 | ||
16772 | * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from | |
16773 | allocate_psymtab. Update documentation. | |
16774 | * psymtab.c (psymtab_storage::install_psymtab): Rename from | |
16775 | allocate_psymtab. Do not use new. | |
16776 | (allocate_psymtab): Use new. Update. | |
16777 | ||
16778 | 2020-01-26 Tom Tromey <tom@tromey.com> | |
16779 | ||
16780 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. | |
16781 | * psymtab.c (psym_print_stats): Update. | |
16782 | * psympriv.h (struct partial_symtab) <readin, | |
16783 | psymtabs_addrmap_supported, anonymous>: Now bool. | |
16784 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
16785 | * dwarf2read.c (create_type_unit_group, create_partial_symtab) | |
16786 | (build_type_psymtabs_reader, psymtab_to_symtab_1) | |
16787 | (process_full_comp_unit, process_full_type_unit): Update. | |
16788 | * dbxread.c (dbx_psymtab_to_symtab_1): Update. | |
16789 | * ctfread.c (psymtab_to_symtab): Update. | |
16790 | ||
16791 | 2020-01-26 Tom Tromey <tom@tromey.com> | |
16792 | ||
16793 | * mdebugread.c (parse_partial_symbols): Use discard_psymtab. | |
16794 | * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove. | |
16795 | * psymtab.c (psymtab_storage): Delete psymtabs. | |
16796 | (psymtab_storage::allocate_psymtab): Use new. | |
16797 | (psymtab_storage::discard_psymtab): Use delete. | |
16798 | * psympriv.h (struct partial_symtab): Add constructor and | |
16799 | initializers. | |
16800 | ||
16801 | 2020-01-26 Tom Tromey <tom@tromey.com> | |
16802 | ||
16803 | * machoread.c: Do not include psympriv.h. | |
16804 | ||
16805 | 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
16806 | ||
16807 | * NEWS: Mention the new option and the set/show commands. | |
16808 | ||
16809 | 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
16810 | ||
16811 | * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode) | |
16812 | (show_exec_file_mismatch_command, set_exec_file_mismatch_command) | |
16813 | (validate_exec_file): New variables, enums, functions. | |
16814 | (exec_file_locate_attach, print_section_info): Style the filenames. | |
16815 | (_initialize_exec): Install show_exec_file_mismatch_command and | |
16816 | set_exec_file_mismatch_command. | |
16817 | * gdbcore.h (validate_exec_file): Declare. | |
16818 | * infcmd.c (attach_command): Call validate_exec_file. | |
16819 | * remote.c ( remote_target::remote_add_inferior): Likewise. | |
16820 | ||
16821 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> | |
16822 | ||
16823 | * frame.c (find_frame_sal): Move call to get_next_frame into more | |
16824 | inner scope. | |
16825 | * inline-frame.c (inilne_state) <inline_state>: Update argument | |
16826 | types. | |
16827 | (inilne_state) <skipped_symbol>: Rename to... | |
16828 | (inilne_state) <skipped_symbols>: ...this, and change to a vector. | |
16829 | (skip_inline_frames): Build vector of skipped symbols and use this | |
16830 | to reate the inline_state. | |
16831 | (inline_skipped_symbol): Add a comment and some assertions, fetch | |
16832 | skipped symbol from the list. | |
16833 | ||
16834 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> | |
16835 | ||
16836 | * buildsym.c (lte_is_less_than): Delete. | |
16837 | (buildsym_compunit::end_symtab_with_blockvector): Create local | |
16838 | lambda function to sort line table entries, and use | |
16839 | std::stable_sort instead of std::sort. | |
16840 | * symtab.c (find_pc_sect_line): Skip backward over end of sequence | |
16841 | markers when looking for a previous line. | |
16842 | ||
16843 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> | |
16844 | ||
16845 | * dwarf2read.c (lnp_state_machine::record_line): Include | |
16846 | end_sequence parameter in debug print out. Record the line if we | |
16847 | are at an end_sequence marker even if it's not the start of a | |
16848 | statement. | |
16849 | * symmisc.c (maintenance_print_one_line_table): Print end of | |
16850 | sequence markers with 'END' not '0'. | |
16851 | ||
16852 | 2020-01-24 Pedro Alves <palves@redhat.com> | |
16853 | ||
16854 | PR gdb/25410 | |
16855 | * thread.c (scoped_restore_current_thread::restore): Use | |
16856 | switch_to_inferior_no_thread. | |
16857 | * exec.c: Include "progspace-and-thread.h". | |
16858 | (add_target_sections, remove_target_sections): | |
16859 | scoped_restore_current_pspace_and_thread instead of | |
16860 | scoped_restore_current_thread. | |
16861 | * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace | |
16862 | and aspace to the inferior before calling clone_program_space. | |
16863 | Remove stale comment. | |
16864 | ||
16865 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> | |
16866 | ||
16867 | * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to... | |
16868 | (arm_netbsd_nat_target::fetch_registers): ...this. | |
16869 | (arm_nbsd_nat_target::store_registers): Rename to... | |
16870 | (arm_netbsd_nat_target::store_registers): ...this. | |
16871 | ||
16872 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> | |
16873 | ||
16874 | * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
16875 | register_t. | |
16876 | ||
16877 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> | |
16878 | ||
16879 | * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections): | |
16880 | Update comment. | |
16881 | * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections): | |
16882 | Likewise. | |
16883 | * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise. | |
16884 | * gdbcore.h (deprecated_add_core_fns): Update comment to point to | |
16885 | the correct replacement (iterate_over_regset_sections). | |
16886 | * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections): | |
16887 | Update comment. | |
16888 | ||
16889 | 2020-01-24 Graham Markall <graham.markall@embecosm.com> | |
16890 | ||
16891 | PR gdb/23718 | |
16892 | * gdb/python/python.c (execute_gdb_command): Call | |
16893 | async_enable_stdin in catch block. | |
16894 | ||
16895 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> | |
16896 | ||
16897 | * event-loop.c (start_event_loop): Wrap async_enable_stdin with | |
16898 | SWITCH_THRU_ALL_UIS. | |
16899 | ||
16900 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> | |
16901 | ||
16902 | PR tui/9765 | |
16903 | * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header | |
16904 | comment, add extra parameter, and update to store previous symbol | |
16905 | when appropriate. | |
16906 | * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment, | |
16907 | add extra parameter. | |
16908 | * tui/tui-disasm.c (tui_disassemble): Update header comment, | |
16909 | remove unneeded parameter, add try/catch around gdb_print_insn, | |
16910 | rewrite to add items to asm_lines vector. | |
16911 | (tui_find_backward_disassembly_start_address): New function. | |
16912 | (tui_find_disassembly_address): Updated throughout. | |
16913 | (tui_disasm_window::set_contents): Update for changes to | |
16914 | tui_disassemble. | |
16915 | (tui_disasm_window::do_scroll_vertical): No need to adjust the | |
16916 | number of lines to scroll. | |
16917 | ||
16918 | 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca> | |
16919 | ||
16920 | * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up. | |
16921 | (SECT_OFF_DATA): Likewise. | |
16922 | (SECT_OFF_RODATA): Likewise. | |
16923 | (SECT_OFF_TEXT): Likewise. | |
16924 | (SECT_OFF_BSS): Likewise. | |
16925 | (struct objfile) <text_section_offset, data_section_offset>: New | |
16926 | methods. | |
16927 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use | |
16928 | objfile::text_section_offset. | |
16929 | * coff-pe-read.c (add_pe_forwarded_sym): Likewise. | |
16930 | * coffread.c (coff_symtab_read): Likewise. | |
16931 | (enter_linenos): Likewise. | |
16932 | (process_coff_symbol): Likewise. | |
16933 | * ctfread.c (get_objfile_text_range): Likewise. | |
16934 | * dtrace-probe.c (dtrace_probe::get_relocated_address): | |
16935 | Use objfile::data_section_offset. | |
16936 | * dwarf2-frame.c (execute_cfa_program): Use | |
16937 | objfile::text_section_offset. | |
16938 | (dwarf2_frame_find_fde): Likewise. | |
16939 | * dwarf2read.c (create_addrmap_from_index): Likewise. | |
16940 | (create_addrmap_from_aranges): Likewise. | |
16941 | (dw2_find_pc_sect_compunit_symtab): Likewise. | |
16942 | (process_psymtab_comp_unit_reader): Likewise. | |
16943 | (add_partial_symbol): Likewise. | |
16944 | (add_partial_subprogram): Likewise. | |
16945 | (process_full_comp_unit): Likewise. | |
16946 | (read_file_scope): Likewise. | |
16947 | (read_func_scope): Likewise. | |
16948 | (read_lexical_block_scope): Likewise. | |
16949 | (read_call_site_scope): Likewise. | |
16950 | (dwarf2_rnglists_process): Likewise. | |
16951 | (dwarf2_ranges_process): Likewise. | |
16952 | (dwarf2_ranges_read): Likewise. | |
16953 | (dwarf_decode_lines_1): Likewise. | |
16954 | (new_symbol): Likewise. | |
16955 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
16956 | (dwarf2_per_cu_text_offset): Likewise. | |
16957 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise. | |
16958 | * hppa-tdep.c (read_unwind_info): Likewise. | |
16959 | * ia64-tdep.c (ia64_find_unwind_table): Likewise. | |
16960 | * psympriv.h (struct partial_symtab): Likewise. | |
16961 | * psymtab.c (find_pc_sect_psymtab): Likewise. | |
16962 | * solib-svr4.c (enable_break): Likewise. | |
16963 | * stap-probe.c (relocate_address): Use | |
16964 | objfile::data_section_offset. | |
16965 | * xcoffread.c (enter_line_range): Use | |
16966 | objfile::text_section_offset. | |
16967 | (read_xcoff_symtab): Likewise. | |
16968 | ||
16969 | 2020-01-23 Simon Marchi <simon.marchi@efficios.com> | |
16970 | ||
16971 | * darwin-nat.c (darwin_nat_target::wait_1): Move `inf` | |
16972 | declaration to narrower scopes. | |
16973 | ||
16974 | 2020-01-23 Simon Marchi <simon.marchi@efficios.com> | |
16975 | ||
16976 | * darwin-nat.h (struct darwin_exception_msg, enum | |
16977 | darwin_msg_state, struct darwin_thread_info, darwin_thread_t): | |
16978 | Move up. | |
16979 | (class darwin_nat_target) <wait_1, check_new_threads, | |
16980 | decode_exception_message, decode_message, stop_inferior, | |
16981 | init_thread_list, ptrace_him, cancel_breakpoint>: Declare. | |
16982 | * darwin-nat.c (darwin_check_new_threads): Rename to... | |
16983 | (darwin_nat_target::check_new_threads): ... this. | |
16984 | (darwin_suspend_inferior_it): Remove. | |
16985 | (darwin_decode_exception_message): Rename to... | |
16986 | (darwin_nat_target::decode_exception_message): ... this. | |
16987 | (darwin_nat_target::resume): Pass target to find_inferior_ptid. | |
16988 | (darwin_decode_message): Rename to... | |
16989 | (darwin_nat_target::decode_message): ... this. | |
16990 | (cancel_breakpoint): Rename to... | |
16991 | (darwin_nat_target::cancel_breakpoint): ... this. | |
16992 | (darwin_wait): Rename to... | |
16993 | (darwin_nat_target::wait_1): ... this. Use range-based for loop | |
16994 | instead of iterate_over_inferiors. | |
16995 | (darwin_nat_target::wait): Call wait_1 instead of darwin_wait. | |
16996 | (darwin_stop_inferior): Rename to... | |
16997 | (darwin_nat_target::stop_inferior): ... this. | |
16998 | (darwin_nat_target::kill): Call wait_1 instead of darwin_wait. | |
16999 | (darwin_init_thread_list): Rename to... | |
17000 | (darwin_nat_target::init_thread_list): ... this. | |
17001 | (darwin_ptrace_him): Rename to... | |
17002 | (darwin_nat_target::ptrace_him): ... this. | |
17003 | (darwin_nat_target::create_inferior): Pass lambda function to | |
17004 | fork_inferior. | |
17005 | (darwin_nat_target::detach): Call stop_inferior instead of | |
17006 | darwin_stop_inferior. | |
17007 | * fork-inferior.h (fork_inferior): Change init_trace_fun | |
17008 | parameter to gdb::function_view. | |
17009 | * fork-inferior.c (fork_inferior): Likewise. | |
17010 | ||
17011 | 2020-01-23 Hannes Domani <ssbssa@yahoo.de> | |
17012 | ||
17013 | * i386-cygwin-tdep.c (core_process_module_section): Update. | |
17014 | * windows-nat.c (struct lm_info_windows): Add text_offset. | |
17015 | (windows_xfer_shared_libraries): Update. | |
17016 | * windows-tdep.c (windows_xfer_shared_library): | |
17017 | Add text_offset_cached argument. | |
17018 | * windows-tdep.h (windows_xfer_shared_library): Update. | |
17019 | ||
17020 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> | |
17021 | ||
17022 | * gdbarch.sh: Add declaration for _initialize_gdbarch. | |
17023 | ||
17024 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> | |
17025 | ||
17026 | * remote-sim.c (check_for_duplicate_sim_descriptor): Remove. | |
17027 | (get_sim_inferior_data): Remove use of iterate_over_inferiors, | |
17028 | replace with range-based for. | |
17029 | (gdbsim_interrupt_inferior): Remove. | |
17030 | (gdbsim_target::interrupt): Replace iterate_over_inferiors use | |
17031 | with a range-based for. Inline code from | |
17032 | gdbsim_interrupt_inferior. | |
17033 | ||
17034 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> | |
17035 | ||
17036 | * infrun.c (proceed): Fix indentation. | |
17037 | ||
17038 | 2020-01-21 Tom Tromey <tromey@adacore.com> | |
17039 | ||
17040 | * source-cache.c (source_cache::ensure): Call ext_lang_colorize. | |
17041 | * python/python.c (python_extension_ops): Update. | |
17042 | (gdbpy_colorize): New function. | |
17043 | * python/lib/gdb/__init__.py (colorize): New function. | |
17044 | * extension.h (ext_lang_colorize): Declare. | |
17045 | * extension.c (ext_lang_colorize): New function. | |
17046 | * extension-priv.h (struct extension_language_ops) <colorize>: New | |
17047 | member. | |
17048 | * cli/cli-style.c (_initialize_cli_style): Update help text. | |
17049 | ||
17050 | 2020-01-21 Luis Machado <luis.machado@linaro.org> | |
17051 | ||
17052 | * aarch64-tdep.c (struct aarch64_displaced_step_closure) | |
17053 | <cond>: Change type to bool. | |
17054 | (aarch64_displaced_step_b_cond): Update cond to use bool type. | |
17055 | (aarch64_displaced_step_cb): Likewise. | |
17056 | (aarch64_displaced_step_tb): Likewise. | |
17057 | ||
17058 | 2020-01-21 Luis Machado <luis.machado@linaro.org> | |
17059 | ||
17060 | * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging | |
17061 | output. | |
17062 | ||
17063 | 2020-01-21 Luis Machado <luis.machado@linaro.org> | |
17064 | ||
17065 | * aarch64-tdep.c (struct aarch64_displaced_step_closure ) | |
17066 | <pc_adjust>: Adjust the documentation. | |
17067 | (aarch64_displaced_step_fixup): Check if PC really moved before | |
17068 | adjusting it. | |
17069 | ||
17070 | 2020-01-19 Tom Tromey <tom@tromey.com> | |
17071 | ||
17072 | * disasm.c (~gdb_disassembler): New destructor. | |
17073 | (gdb_buffered_insn_length): Call disassemble_free_target. | |
17074 | * disasm.h (class gdb_disassembler): Declare destructor. Use | |
17075 | DISABLE_COPY_AND_ASSIGN. | |
17076 | ||
17077 | 2020-01-19 Tom Tromey <tom@tromey.com> | |
17078 | ||
17079 | * dwarf2read.c (abbrev_table_up): Move typedef earlier. | |
17080 | (die_reader_func_ftype): Remove. | |
17081 | (cutu_reader): New class. | |
17082 | (dw2_get_file_names_reader): Remove "data" parameter. | |
17083 | (dw2_get_file_names): Use cutu_reader. | |
17084 | (create_debug_type_hash_table): Update. | |
17085 | (read_cutu_die_from_dwo): Update comment. | |
17086 | (lookup_dwo_unit): Add dwo_name parameter. | |
17087 | (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove | |
17088 | die_reader_func_ftype and data parameters. | |
17089 | (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies. | |
17090 | Remove die_reader_func_ftype and data parameters. | |
17091 | (~cutu_reader): New; from init_cutu_and_read_dies. | |
17092 | (cutu_reader::cutu_reader): Rename from | |
17093 | init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype | |
17094 | and data parameters. | |
17095 | (init_cutu_and_read_dies_simple): Remove. | |
17096 | (struct process_psymtab_comp_unit_data): Remove. | |
17097 | (process_psymtab_comp_unit_reader): Remove data parameter; add | |
17098 | want_partial_unit and pretend_language parameters. | |
17099 | (process_psymtab_comp_unit): Use cutu_reader. | |
17100 | (build_type_psymtabs_reader): Remove data parameter. | |
17101 | (build_type_psymtabs_1): Use cutu_reader. | |
17102 | (process_skeletonless_type_unit): Likewise. | |
17103 | (load_partial_comp_unit_reader): Remove. | |
17104 | (load_partial_comp_unit): Use cutu_reader. | |
17105 | (load_full_comp_unit_reader): Remove. | |
17106 | (load_full_comp_unit): Use cutu_reader. | |
17107 | (struct create_dwo_cu_data): Remove. | |
17108 | (create_dwo_cu_reader): Remove datap parameter; add dwo_file and | |
17109 | dwo_unit parameters. | |
17110 | (create_cus_hash_table): Use cutu_reader. | |
17111 | (struct dwarf2_read_addr_index_data): Remove. | |
17112 | (dwarf2_read_addr_index_reader): Remove. | |
17113 | (dwarf2_read_addr_index): Use cutu_reader. | |
17114 | (read_signatured_type_reader): Remove. | |
17115 | (read_signatured_type): Use cutu_reader. | |
17116 | ||
17117 | 2020-01-19 Tom Tromey <tom@tromey.com> | |
17118 | ||
17119 | * tui/tui.c (tui_show_assembly): Use tui_suppress_output. | |
17120 | * tui/tui-wingeneral.h (class tui_suppress_output): New. | |
17121 | (tui_wrefresh): Declare. | |
17122 | * tui/tui-wingeneral.c (suppress_output): New global. | |
17123 | (tui_suppress_output, ~tui_suppress_output): New constructor and | |
17124 | destructor. | |
17125 | (tui_wrefresh): New function. | |
17126 | (tui_gen_win_info::refresh_window): Use tui_wrefresh. | |
17127 | (tui_gen_win_info::make_window): Call wnoutrefresh when needed. | |
17128 | * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare | |
17129 | method. | |
17130 | * tui/tui-regs.c (tui_data_window::erase_data_content): Call | |
17131 | tui_wrefresh. | |
17132 | (tui_data_window::no_refresh): New method. | |
17133 | (tui_data_item_window::refresh_window): Call tui_wrefresh. | |
17134 | (tui_reg_command): Use tui_suppress_output | |
17135 | * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output. | |
17136 | * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New | |
17137 | method. | |
17138 | * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh. | |
17139 | ||
17140 | 2020-01-19 Tom Tromey <tom@tromey.com> | |
17141 | ||
17142 | * tui/tui-winsource.c (tui_update_source_windows_with_line): | |
17143 | Handle case where symtab is null. | |
17144 | ||
17145 | 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca> | |
17146 | ||
17147 | * linux-fork.c (one_fork_p): Simplify. | |
17148 | ||
17149 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> | |
17150 | ||
17151 | * top.c (struct qt_args): Remove. | |
17152 | (kill_or_detach): Change return type to void, replace `void *` | |
17153 | parameter with a proper one. | |
17154 | (print_inferior_quit_action): Likewise. | |
17155 | (quit_confirm): Use range-based for loop to iterate over inferiors. | |
17156 | (quit_force): Likewise. | |
17157 | ||
17158 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> | |
17159 | ||
17160 | * mi/mi-main.c (run_one_inferior): Change return type to void, replace | |
17161 | `void *` parameter with proper parameters. | |
17162 | (mi_cmd_exec_run): Use range-based loop to iterate over inferiors. | |
17163 | (print_one_inferior): Change return type to void, replace `void *` | |
17164 | parameter with proper parameters. | |
17165 | (mi_cmd_list_thread_groups): Use range-based loop to iterate over | |
17166 | inferiors. | |
17167 | (get_other_inferior): Remove. | |
17168 | (mi_cmd_remove_inferior): Use range-based loop to iterate over | |
17169 | inferiors. | |
17170 | ||
17171 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> | |
17172 | ||
17173 | * mi/mi-interp.c (report_initial_inferior): Remove. | |
17174 | (mi_interp::init): Use range-based for to iterate over inferiors. | |
17175 | ||
17176 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> | |
17177 | ||
17178 | * python/py-inferior.c (build_inferior_list): Remove. | |
17179 | (gdbpy_ref): Use range-based for loop to iterate over inferiors. | |
17180 | ||
17181 | 2020-01-16 Christian Biesinger <cbiesinger@google.com> | |
17182 | ||
17183 | * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown). | |
17184 | (btrace_stitch_trace): Likewise. | |
17185 | * charset.c (intermediate_encoding): Likewise (vaild). | |
17186 | * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown). | |
17187 | * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences). | |
17188 | * record-btrace.c (record_btrace_print_conf): Likewise (unkown). | |
17189 | ||
17190 | 2020-01-16 Hannes Domani <ssbssa@yahoo.de> | |
17191 | ||
17192 | * windows-tdep.c (windows_get_tlb_type): | |
17193 | Add rtl_user_process_parameters type. | |
17194 | ||
17195 | 2020-01-16 Pedro Alves <palves@redhat.com> | |
17196 | Norbert Lange <nolange79@gmail.com> | |
17197 | ||
17198 | PR build/24805 | |
17199 | * gdbsupport/gdb_proc_service.h (PS_EXPORT): New. | |
17200 | (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs) | |
17201 | (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue) | |
17202 | (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread) | |
17203 | (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs) | |
17204 | (ps_plog): Redeclare exported functions with default visibility. | |
17205 | ||
17206 | 2020-01-16 Nitika Achra <Nitika.Achra@amd.com> | |
17207 | ||
17208 | * dwarf2loc.c (decode_debug_loclists_addresses): Handle | |
17209 | DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length. | |
17210 | ||
17211 | 2020-01-15 Simon Marchi <simon.marchi@efficios.com> | |
17212 | ||
17213 | * infcmd.c (post_create_inferior): Use get_thread_regcache | |
17214 | instead of get_current_regcache. | |
17215 | ||
17216 | 2020-01-14 Tom Tromey <tom@tromey.com> | |
17217 | ||
17218 | PR symtab/12535: | |
17219 | * python/python.c (gdbpy_decode_line): Treat empty string the same | |
17220 | as no argument. | |
17221 | ||
17222 | 2020-01-14 Tom Tromey <tom@tromey.com> | |
17223 | ||
17224 | * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY). | |
17225 | ||
17226 | 2020-01-14 Tom Tromey <tom@tromey.com> | |
17227 | ||
17228 | * nat/linux-btrace.c: Don't include <config.h>. | |
17229 | * nat/linux-ptrace.c: Don't include <config.h>. | |
17230 | * nat/x86-linux-dregs.c: Don't include <config.h>. | |
17231 | ||
17232 | 2020-01-14 Tom Tromey <tom@tromey.com> | |
17233 | ||
17234 | * configure: Rebuild. | |
17235 | * configure.ac: Move many checks to ../gdbsupport/common.m4. | |
17236 | ||
17237 | 2020-01-14 Tom Tromey <tom@tromey.com> | |
17238 | ||
17239 | * nat/x86-linux-dregs.c: Include configh.h. | |
17240 | * nat/linux-ptrace.c: Include configh.h. | |
17241 | * nat/linux-btrace.c: Include configh.h. | |
17242 | * defs.h: Include config.h, bfd.h. | |
17243 | * configure.ac: Don't source common.host. | |
17244 | (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files. | |
17245 | * configure: Rebuild. | |
17246 | * acinclude.m4: Update path. | |
17247 | * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables. | |
17248 | (CONFIG_SRC_SUBDIR): Remove gdbsupport. | |
17249 | (INTERNAL_CFLAGS_BASE): Add INCSUPPORT. | |
17250 | (CLIBS): Add LIBSUPPORT. | |
17251 | (CDEPS): Likewise. | |
17252 | (COMMON_SFILES): Remove gdbsupport files. | |
17253 | (HFILES_NO_SRCDIR): Likewise. | |
17254 | (stamp-version): Update path to create-version.sh. | |
17255 | (ALLDEPFILES): Remove gdbsupport files. | |
17256 | ||
17257 | 2020-01-14 Tom Tromey <tom@tromey.com> | |
17258 | ||
17259 | * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and | |
17260 | USE_WIN32API when needed. | |
17261 | * configure.ac (USE_WIN32API): Don't define. | |
17262 | (WIN32LIBS): Use WIN32APILIBS. | |
17263 | * configure: Rebuild. | |
17264 | ||
17265 | 2020-01-14 Tom Tromey <tom@tromey.com> | |
17266 | ||
17267 | * configure: Rebuild. | |
17268 | * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation. | |
17269 | ||
17270 | 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de> | |
17271 | ||
17272 | * skip.c (skip_function_command): Make skip w/o arguments use the | |
17273 | name of the inlined function if pc is inside any inlined function. | |
17274 | ||
17275 | 2020-01-14 Luis Machado <luis.machado@linaro.org> | |
17276 | ||
17277 | * inf-ptrace.c (inf_ptrace_target::resume): Update comments. | |
17278 | * infrun.c (resume_1): Likewise. | |
17279 | (handle_inferior_event): Remove stale comment. | |
17280 | * linux-nat.c (linux_nat_target::resume): Update comments. | |
17281 | (save_stop_reason): Likewise. | |
17282 | (linux_nat_filter_event): Likewise. | |
17283 | * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise. | |
17284 | ||
17285 | 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com> | |
17286 | ||
17287 | * elfread.c (record_minimal_symbol): Set section index to 0 for | |
17288 | non-allocatable sections. | |
17289 | ||
17290 | ||
17291 | 2020-01-13 Ali Tamur <tamur@google.com> | |
17292 | ||
17293 | * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections. | |
17294 | (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base | |
17295 | to gdb::optional. Update comments. | |
17296 | (dwo_file): Update comments. | |
17297 | (read_attribute): Update API to take an additional out parameter, | |
17298 | need_reprocess. This is used to mark attributes that need other | |
17299 | attributes (e.g. str_offsets_base) for correct computation which may not | |
17300 | have been read yet. | |
17301 | (read_attribute_reprocess): New function declaration. | |
17302 | (read_addr_index): Likewise. | |
17303 | (read_dwo_str_index): Likewise. | |
17304 | (read_stub_str_index): Likewise. | |
17305 | (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section. | |
17306 | (lookup_addr_base): New function definition. | |
17307 | (lookup_ranges_base): Likewise. | |
17308 | (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base, | |
17309 | lookup_ranges_base. | |
17310 | (init_cutu_and_read_dies): Update comments. | |
17311 | (init_cutu_and_read_dies_no_follow): Change API to take parent compile | |
17312 | unit. This is used to inherit parent's str_offsets_base and addr_base. | |
17313 | Update comments. | |
17314 | (init_cutu_and_read_dies_simple): Reflect API changes. | |
17315 | (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx. | |
17316 | (create_cus_hash_table): Change API to take parent compile unit. | |
17317 | Reflect API changes. | |
17318 | (open_and_init_dwo_file): Reflect API changes. | |
17319 | (dwarf2_get_pc_bounds): Update comments. | |
17320 | (dwarf2_record_block_ranges): Likewise. | |
17321 | (read_full_die_1): Change implementation to reprocess attributes that | |
17322 | need str_offsets_base and addr_base. | |
17323 | (partial_die_info::read): Likewise. | |
17324 | (read_attribute_reprocess): New function definition. | |
17325 | (read_attribute_value): Change API to take an additional out parameter, | |
17326 | need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error | |
17327 | when a non-dwo compile unit has index based attributes. | |
17328 | (read_attribute): Reflect API changes. | |
17329 | (read_addr_index_1): Reflect API changes. Update comments. | |
17330 | (dwarf2_read_addr_index_data): Reflect API changes. | |
17331 | (dwarf2_read_addr_index): Likewise. | |
17332 | (read_str_index): Change API and implementation. This becomes a helper | |
17333 | to be used by the new string index related methods. Update error | |
17334 | message and comments. | |
17335 | (read_dwo_str_index): New function definition. | |
17336 | (read_stub_str_index): Likewise. | |
17337 | * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field. | |
17338 | * symfile.h (dwarf2_debug_sections): Likewise. | |
17339 | * xcoffread.c (dwarf2_debug_sections): Likewise. | |
17340 | ||
17341 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> | |
17342 | ||
17343 | * gdbcore.h (struct core_fns) <core_read_registers>: Change | |
17344 | core_reg_sect type to gdb_byte *. | |
17345 | * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise. | |
17346 | * cris-tdep.c (fetch_core_registers): Likewise. | |
17347 | * corelow.c (core_target::get_core_register_section): Change | |
17348 | type of `contents` to gdb::byte_vector. | |
17349 | ||
17350 | 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com> | |
17351 | ||
17352 | * tui/tui-wingeneral.c (box_win): Position the title in the center | |
17353 | of the border. | |
17354 | ||
17355 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> | |
17356 | ||
17357 | * corelow.c (core_target::get_core_register_section): Use | |
17358 | std::vector instead of alloca. | |
17359 | ||
17360 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> | |
17361 | ||
17362 | * warning.m4: Add -Wmissing-declarations to build_warnings. | |
17363 | * configure: Re-generate. | |
17364 | ||
17365 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> | |
17366 | ||
17367 | * python/python.c (init__gdb_module): Add declaration. | |
17368 | ||
17369 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> | |
17370 | ||
17371 | * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration. | |
17372 | * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration. | |
17373 | * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration. | |
17374 | * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration. | |
17375 | * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration. | |
17376 | * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration. | |
17377 | * ada-exp.y (_initialize_ada_exp): Add declaration. | |
17378 | * ada-lang.c (_initialize_ada_language): Add declaration. | |
17379 | * ada-tasks.c (_initialize_tasks): Add declaration. | |
17380 | * agent.c (_initialize_agent): Add declaration. | |
17381 | * aix-thread.c (_initialize_aix_thread): Add declaration. | |
17382 | * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration. | |
17383 | * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration. | |
17384 | * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration. | |
17385 | * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration. | |
17386 | * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration. | |
17387 | * alpha-tdep.c (_initialize_alpha_tdep): Add declaration. | |
17388 | * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration. | |
17389 | * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration. | |
17390 | * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration. | |
17391 | * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration. | |
17392 | * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration. | |
17393 | * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration. | |
17394 | * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration. | |
17395 | * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration. | |
17396 | * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration. | |
17397 | * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration. | |
17398 | * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration. | |
17399 | * amd64-tdep.c (_initialize_amd64_tdep): Add declaration. | |
17400 | * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration. | |
17401 | * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration. | |
17402 | * annotate.c (_initialize_annotate): Add declaration. | |
17403 | * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration. | |
17404 | * arc-tdep.c (_initialize_arc_tdep): Add declaration. | |
17405 | * arch-utils.c (_initialize_gdbarch_utils): Add declaration. | |
17406 | * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration. | |
17407 | * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration. | |
17408 | * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration. | |
17409 | * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration. | |
17410 | * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration. | |
17411 | * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration. | |
17412 | * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration. | |
17413 | * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration. | |
17414 | * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration. | |
17415 | * arm-tdep.c (_initialize_arm_tdep): Add declaration. | |
17416 | * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration. | |
17417 | * auto-load.c (_initialize_auto_load): Add declaration. | |
17418 | * auxv.c (_initialize_auxv): Add declaration. | |
17419 | * avr-tdep.c (_initialize_avr_tdep): Add declaration. | |
17420 | * ax-gdb.c (_initialize_ax_gdb): Add declaration. | |
17421 | * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration. | |
17422 | * bfin-tdep.c (_initialize_bfin_tdep): Add declaration. | |
17423 | * break-catch-sig.c (_initialize_break_catch_sig): Add declaration. | |
17424 | * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration. | |
17425 | * break-catch-throw.c (_initialize_break_catch_throw): Add declaration. | |
17426 | * breakpoint.c (_initialize_breakpoint): Add declaration. | |
17427 | * bsd-uthread.c (_initialize_bsd_uthread): Add declaration. | |
17428 | * btrace.c (_initialize_btrace): Add declaration. | |
17429 | * charset.c (_initialize_charset): Add declaration. | |
17430 | * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration. | |
17431 | * cli/cli-dump.c (_initialize_cli_dump): Add declaration. | |
17432 | * cli/cli-interp.c (_initialize_cli_interp): Add declaration. | |
17433 | * cli/cli-logging.c (_initialize_cli_logging): Add declaration. | |
17434 | * cli/cli-script.c (_initialize_cli_script): Add declaration. | |
17435 | * cli/cli-style.c (_initialize_cli_style): Add declaration. | |
17436 | * coff-pe-read.c (_initialize_coff_pe_read): Add declaration. | |
17437 | * coffread.c (_initialize_coffread): Add declaration. | |
17438 | * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration. | |
17439 | * compile/compile.c (_initialize_compile): Add declaration. | |
17440 | * complaints.c (_initialize_complaints): Add declaration. | |
17441 | * completer.c (_initialize_completer): Add declaration. | |
17442 | * copying.c (_initialize_copying): Add declaration. | |
17443 | * corefile.c (_initialize_core): Add declaration. | |
17444 | * corelow.c (_initialize_corelow): Add declaration. | |
17445 | * cp-abi.c (_initialize_cp_abi): Add declaration. | |
17446 | * cp-namespace.c (_initialize_cp_namespace): Add declaration. | |
17447 | * cp-support.c (_initialize_cp_support): Add declaration. | |
17448 | * cp-valprint.c (_initialize_cp_valprint): Add declaration. | |
17449 | * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration. | |
17450 | * cris-tdep.c (_initialize_cris_tdep): Add declaration. | |
17451 | * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration. | |
17452 | * csky-tdep.c (_initialize_csky_tdep): Add declaration. | |
17453 | * ctfread.c (_initialize_ctfread): Add declaration. | |
17454 | * d-lang.c (_initialize_d_language): Add declaration. | |
17455 | * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration. | |
17456 | * darwin-nat.c (_initialize_darwin_nat): Add declaration. | |
17457 | * dbxread.c (_initialize_dbxread): Add declaration. | |
17458 | * dcache.c (_initialize_dcache): Add declaration. | |
17459 | * disasm-selftests.c (_initialize_disasm_selftests): Add declaration. | |
17460 | * disasm.c (_initialize_disasm): Add declaration. | |
17461 | * dtrace-probe.c (_initialize_dtrace_probe): Add declaration. | |
17462 | * dummy-frame.c (_initialize_dummy_frame): Add declaration. | |
17463 | * dwarf-index-cache.c (_initialize_index_cache): Add declaration. | |
17464 | * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration. | |
17465 | * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration. | |
17466 | * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration. | |
17467 | * dwarf2expr.c (_initialize_dwarf2expr): Add declaration. | |
17468 | * dwarf2loc.c (_initialize_dwarf2loc): Add declaration. | |
17469 | * dwarf2read.c (_initialize_dwarf2_read): Add declaration. | |
17470 | * elfread.c (_initialize_elfread): Add declaration. | |
17471 | * exec.c (_initialize_exec): Add declaration. | |
17472 | * extension.c (_initialize_extension): Add declaration. | |
17473 | * f-lang.c (_initialize_f_language): Add declaration. | |
17474 | * f-valprint.c (_initialize_f_valprint): Add declaration. | |
17475 | * fbsd-nat.c (_initialize_fbsd_nat): Add declaration. | |
17476 | * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration. | |
17477 | * filesystem.c (_initialize_filesystem): Add declaration. | |
17478 | * findcmd.c (_initialize_mem_search): Add declaration. | |
17479 | * findvar.c (_initialize_findvar): Add declaration. | |
17480 | * fork-child.c (_initialize_fork_child): Add declaration. | |
17481 | * frame-base.c (_initialize_frame_base): Add declaration. | |
17482 | * frame-unwind.c (_initialize_frame_unwind): Add declaration. | |
17483 | * frame.c (_initialize_frame): Add declaration. | |
17484 | * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration. | |
17485 | * frv-tdep.c (_initialize_frv_tdep): Add declaration. | |
17486 | * ft32-tdep.c (_initialize_ft32_tdep): Add declaration. | |
17487 | * gcore.c (_initialize_gcore): Add declaration. | |
17488 | * gdb-demangle.c (_initialize_gdb_demangle): Add declaration. | |
17489 | * gdb_bfd.c (_initialize_gdb_bfd): Add declaration. | |
17490 | * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration. | |
17491 | * gdbarch.c (_initialize_gdbarch): Add declaration. | |
17492 | * gdbtypes.c (_initialize_gdbtypes): Add declaration. | |
17493 | * gnu-nat.c (_initialize_gnu_nat): Add declaration. | |
17494 | * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration. | |
17495 | * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration. | |
17496 | * go-lang.c (_initialize_go_language): Add declaration. | |
17497 | * go32-nat.c (_initialize_go32_nat): Add declaration. | |
17498 | * guile/guile.c (_initialize_guile): Add declaration. | |
17499 | * h8300-tdep.c (_initialize_h8300_tdep): Add declaration. | |
17500 | * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration. | |
17501 | * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration. | |
17502 | * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration. | |
17503 | * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration. | |
17504 | * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration. | |
17505 | * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration. | |
17506 | * hppa-tdep.c (_initialize_hppa_tdep): Add declaration. | |
17507 | * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration. | |
17508 | * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration. | |
17509 | * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration. | |
17510 | * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration. | |
17511 | * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration. | |
17512 | * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration. | |
17513 | * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration. | |
17514 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration. | |
17515 | * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration. | |
17516 | * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration. | |
17517 | * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration. | |
17518 | * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration. | |
17519 | * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration. | |
17520 | * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration. | |
17521 | * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration. | |
17522 | * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration. | |
17523 | * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration. | |
17524 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration. | |
17525 | * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration. | |
17526 | * i386-tdep.c (_initialize_i386_tdep): Add declaration. | |
17527 | * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration. | |
17528 | * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration. | |
17529 | * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration. | |
17530 | * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration. | |
17531 | * ia64-tdep.c (_initialize_ia64_tdep): Add declaration. | |
17532 | * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration. | |
17533 | * infcall.c (_initialize_infcall): Add declaration. | |
17534 | * infcmd.c (_initialize_infcmd): Add declaration. | |
17535 | * inflow.c (_initialize_inflow): Add declaration. | |
17536 | * infrun.c (_initialize_infrun): Add declaration. | |
17537 | * interps.c (_initialize_interpreter): Add declaration. | |
17538 | * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration. | |
17539 | * jit.c (_initialize_jit): Add declaration. | |
17540 | * language.c (_initialize_language): Add declaration. | |
17541 | * linux-fork.c (_initialize_linux_fork): Add declaration. | |
17542 | * linux-nat.c (_initialize_linux_nat): Add declaration. | |
17543 | * linux-tdep.c (_initialize_linux_tdep): Add declaration. | |
17544 | * linux-thread-db.c (_initialize_thread_db): Add declaration. | |
17545 | * lm32-tdep.c (_initialize_lm32_tdep): Add declaration. | |
17546 | * m2-lang.c (_initialize_m2_language): Add declaration. | |
17547 | * m32c-tdep.c (_initialize_m32c_tdep): Add declaration. | |
17548 | * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration. | |
17549 | * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration. | |
17550 | * m32r-tdep.c (_initialize_m32r_tdep): Add declaration. | |
17551 | * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration. | |
17552 | * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration. | |
17553 | * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration. | |
17554 | * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration. | |
17555 | * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration. | |
17556 | * m68k-tdep.c (_initialize_m68k_tdep): Add declaration. | |
17557 | * machoread.c (_initialize_machoread): Add declaration. | |
17558 | * macrocmd.c (_initialize_macrocmd): Add declaration. | |
17559 | * macroscope.c (_initialize_macroscope): Add declaration. | |
17560 | * maint-test-options.c (_initialize_maint_test_options): Add declaration. | |
17561 | * maint-test-settings.c (_initialize_maint_test_settings): Add declaration. | |
17562 | * maint.c (_initialize_maint_cmds): Add declaration. | |
17563 | * mdebugread.c (_initialize_mdebugread): Add declaration. | |
17564 | * memattr.c (_initialize_mem): Add declaration. | |
17565 | * mep-tdep.c (_initialize_mep_tdep): Add declaration. | |
17566 | * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration. | |
17567 | * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration. | |
17568 | * mi/mi-interp.c (_initialize_mi_interp): Add declaration. | |
17569 | * mi/mi-main.c (_initialize_mi_main): Add declaration. | |
17570 | * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration. | |
17571 | * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration. | |
17572 | * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration. | |
17573 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration. | |
17574 | * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration. | |
17575 | * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration. | |
17576 | * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration. | |
17577 | * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration. | |
17578 | * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration. | |
17579 | * mips-tdep.c (_initialize_mips_tdep): Add declaration. | |
17580 | * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration. | |
17581 | * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration. | |
17582 | * mipsread.c (_initialize_mipsread): Add declaration. | |
17583 | * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration. | |
17584 | * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration. | |
17585 | * moxie-tdep.c (_initialize_moxie_tdep): Add declaration. | |
17586 | * msp430-tdep.c (_initialize_msp430_tdep): Add declaration. | |
17587 | * nds32-tdep.c (_initialize_nds32_tdep): Add declaration. | |
17588 | * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration. | |
17589 | * nios2-tdep.c (_initialize_nios2_tdep): Add declaration. | |
17590 | * nto-procfs.c (_initialize_procfs): Add declaration. | |
17591 | * objc-lang.c (_initialize_objc_language): Add declaration. | |
17592 | * observable.c (_initialize_observer): Add declaration. | |
17593 | * opencl-lang.c (_initialize_opencl_language): Add declaration. | |
17594 | * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration. | |
17595 | * or1k-tdep.c (_initialize_or1k_tdep): Add declaration. | |
17596 | * osabi.c (_initialize_gdb_osabi): Add declaration. | |
17597 | * osdata.c (_initialize_osdata): Add declaration. | |
17598 | * p-valprint.c (_initialize_pascal_valprint): Add declaration. | |
17599 | * parse.c (_initialize_parse): Add declaration. | |
17600 | * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration. | |
17601 | * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration. | |
17602 | * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration. | |
17603 | * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration. | |
17604 | * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration. | |
17605 | * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration. | |
17606 | * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration. | |
17607 | * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration. | |
17608 | * printcmd.c (_initialize_printcmd): Add declaration. | |
17609 | * probe.c (_initialize_probe): Add declaration. | |
17610 | * proc-api.c (_initialize_proc_api): Add declaration. | |
17611 | * proc-events.c (_initialize_proc_events): Add declaration. | |
17612 | * proc-service.c (_initialize_proc_service): Add declaration. | |
17613 | * procfs.c (_initialize_procfs): Add declaration. | |
17614 | * producer.c (_initialize_producer): Add declaration. | |
17615 | * psymtab.c (_initialize_psymtab): Add declaration. | |
17616 | * python/python.c (_initialize_python): Add declaration. | |
17617 | * ravenscar-thread.c (_initialize_ravenscar): Add declaration. | |
17618 | * record-btrace.c (_initialize_record_btrace): Add declaration. | |
17619 | * record-full.c (_initialize_record_full): Add declaration. | |
17620 | * record.c (_initialize_record): Add declaration. | |
17621 | * regcache-dump.c (_initialize_regcache_dump): Add declaration. | |
17622 | * regcache.c (_initialize_regcache): Add declaration. | |
17623 | * reggroups.c (_initialize_reggroup): Add declaration. | |
17624 | * remote-notif.c (_initialize_notif): Add declaration. | |
17625 | * remote-sim.c (_initialize_remote_sim): Add declaration. | |
17626 | * remote.c (_initialize_remote): Add declaration. | |
17627 | * reverse.c (_initialize_reverse): Add declaration. | |
17628 | * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration. | |
17629 | * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration. | |
17630 | * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration. | |
17631 | * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration. | |
17632 | * riscv-tdep.c (_initialize_riscv_tdep): Add declaration. | |
17633 | * rl78-tdep.c (_initialize_rl78_tdep): Add declaration. | |
17634 | * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration. | |
17635 | * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep): | |
17636 | Add declaration. | |
17637 | * rs6000-nat.c (_initialize_rs6000_nat): Add declaration. | |
17638 | * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration. | |
17639 | * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration. | |
17640 | * rust-exp.y (_initialize_rust_exp): Add declaration. | |
17641 | * rx-tdep.c (_initialize_rx_tdep): Add declaration. | |
17642 | * s12z-tdep.c (_initialize_s12z_tdep): Add declaration. | |
17643 | * s390-linux-nat.c (_initialize_s390_nat): Add declaration. | |
17644 | * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration. | |
17645 | * s390-tdep.c (_initialize_s390_tdep): Add declaration. | |
17646 | * score-tdep.c (_initialize_score_tdep): Add declaration. | |
17647 | * ser-go32.c (_initialize_ser_dos): Add declaration. | |
17648 | * ser-mingw.c (_initialize_ser_windows): Add declaration. | |
17649 | * ser-pipe.c (_initialize_ser_pipe): Add declaration. | |
17650 | * ser-tcp.c (_initialize_ser_tcp): Add declaration. | |
17651 | * ser-uds.c (_initialize_ser_socket): Add declaration. | |
17652 | * ser-unix.c (_initialize_ser_hardwire): Add declaration. | |
17653 | * serial.c (_initialize_serial): Add declaration. | |
17654 | * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration. | |
17655 | * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration. | |
17656 | * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration. | |
17657 | * sh-tdep.c (_initialize_sh_tdep): Add declaration. | |
17658 | * skip.c (_initialize_step_skip): Add declaration. | |
17659 | * sol-thread.c (_initialize_sol_thread): Add declaration. | |
17660 | * solib-aix.c (_initialize_solib_aix): Add declaration. | |
17661 | * solib-darwin.c (_initialize_darwin_solib): Add declaration. | |
17662 | * solib-dsbt.c (_initialize_dsbt_solib): Add declaration. | |
17663 | * solib-frv.c (_initialize_frv_solib): Add declaration. | |
17664 | * solib-svr4.c (_initialize_svr4_solib): Add declaration. | |
17665 | * solib-target.c (_initialize_solib_target): Add declaration. | |
17666 | * solib.c (_initialize_solib): Add declaration. | |
17667 | * source-cache.c (_initialize_source_cache): Add declaration. | |
17668 | * source.c (_initialize_source): Add declaration. | |
17669 | * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration. | |
17670 | * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration. | |
17671 | * sparc-nat.c (_initialize_sparc_nat): Add declaration. | |
17672 | * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration. | |
17673 | * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration. | |
17674 | * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration. | |
17675 | * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration. | |
17676 | * sparc-tdep.c (_initialize_sparc_tdep): Add declaration. | |
17677 | * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration. | |
17678 | * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration. | |
17679 | * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration. | |
17680 | * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration. | |
17681 | * sparc64-nat.c (_initialize_sparc64_nat): Add declaration. | |
17682 | * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration. | |
17683 | * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration. | |
17684 | * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration. | |
17685 | * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration. | |
17686 | * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration. | |
17687 | * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration. | |
17688 | * stabsread.c (_initialize_stabsread): Add declaration. | |
17689 | * stack.c (_initialize_stack): Add declaration. | |
17690 | * stap-probe.c (_initialize_stap_probe): Add declaration. | |
17691 | * std-regs.c (_initialize_frame_reg): Add declaration. | |
17692 | * symfile-debug.c (_initialize_symfile_debug): Add declaration. | |
17693 | * symfile-mem.c (_initialize_symfile_mem): Add declaration. | |
17694 | * symfile.c (_initialize_symfile): Add declaration. | |
17695 | * symmisc.c (_initialize_symmisc): Add declaration. | |
17696 | * symtab.c (_initialize_symtab): Add declaration. | |
17697 | * target.c (_initialize_target): Add declaration. | |
17698 | * target-connection.c (_initialize_target_connection): Add | |
17699 | declaration. | |
17700 | * target-dcache.c (_initialize_target_dcache): Add declaration. | |
17701 | * target-descriptions.c (_initialize_target_descriptions): Add declaration. | |
17702 | * thread.c (_initialize_thread): Add declaration. | |
17703 | * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration. | |
17704 | * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration. | |
17705 | * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration. | |
17706 | * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration. | |
17707 | * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration. | |
17708 | * tracectf.c (_initialize_ctf): Add declaration. | |
17709 | * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration. | |
17710 | * tracefile.c (_initialize_tracefile): Add declaration. | |
17711 | * tracepoint.c (_initialize_tracepoint): Add declaration. | |
17712 | * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration. | |
17713 | * tui/tui-interp.c (_initialize_tui_interp): Add declaration. | |
17714 | * tui/tui-layout.c (_initialize_tui_layout): Add declaration. | |
17715 | * tui/tui-regs.c (_initialize_tui_regs): Add declaration. | |
17716 | * tui/tui-stack.c (_initialize_tui_stack): Add declaration. | |
17717 | * tui/tui-win.c (_initialize_tui_win): Add declaration. | |
17718 | * tui/tui.c (_initialize_tui): Add declaration. | |
17719 | * typeprint.c (_initialize_typeprint): Add declaration. | |
17720 | * ui-style.c (_initialize_ui_style): Add declaration. | |
17721 | * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration. | |
17722 | * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration. | |
17723 | * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration. | |
17724 | * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration. | |
17725 | * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration. | |
17726 | * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration. | |
17727 | * unittests/filtered_iterator-selftests.c | |
17728 | (_initialize_filtered_iterator_selftests): Add declaration. | |
17729 | * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration. | |
17730 | * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration. | |
17731 | * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration. | |
17732 | * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration. | |
17733 | * unittests/main-thread-selftests.c | |
17734 | (_initialize_main_thread_selftests): Add declaration. | |
17735 | * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration. | |
17736 | * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration. | |
17737 | * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration. | |
17738 | * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration. | |
17739 | * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration. | |
17740 | * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration. | |
17741 | * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration. | |
17742 | * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration. | |
17743 | * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration. | |
17744 | * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration. | |
17745 | * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration. | |
17746 | * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration. | |
17747 | * unittests/style-selftests.c (_initialize_style_selftest): Add declaration. | |
17748 | * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration. | |
17749 | * unittests/tui-selftests.c (_initialize_tui_selftest): Add | |
17750 | declaration. | |
17751 | * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration. | |
17752 | * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration. | |
17753 | * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration. | |
17754 | * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration. | |
17755 | * user-regs.c (_initialize_user_regs): Add declaration. | |
17756 | * utils.c (_initialize_utils): Add declaration. | |
17757 | * v850-tdep.c (_initialize_v850_tdep): Add declaration. | |
17758 | * valops.c (_initialize_valops): Add declaration. | |
17759 | * valprint.c (_initialize_valprint): Add declaration. | |
17760 | * value.c (_initialize_values): Add declaration. | |
17761 | * varobj.c (_initialize_varobj): Add declaration. | |
17762 | * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration. | |
17763 | * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration. | |
17764 | * vax-tdep.c (_initialize_vax_tdep): Add declaration. | |
17765 | * windows-nat.c (_initialize_windows_nat): Add declaration. | |
17766 | (_initialize_check_for_gdb_ini): Add declaration. | |
17767 | (_initialize_loadable): Add declaration. | |
17768 | * windows-tdep.c (_initialize_windows_tdep): Add declaration. | |
17769 | * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration. | |
17770 | * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration. | |
17771 | * xcoffread.c (_initialize_xcoffread): Add declaration. | |
17772 | * xml-support.c (_initialize_xml_support): Add declaration. | |
17773 | * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration. | |
17774 | * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration. | |
17775 | * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration. | |
17776 | * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration. | |
17777 | ||
17778 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> | |
17779 | ||
17780 | * regformats/regdat.sh: Generate declaration for init function. | |
17781 | ||
17782 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> | |
17783 | ||
17784 | * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move | |
17785 | up. | |
17786 | (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior, | |
17787 | close_one_inferior>: New methods. | |
17788 | (get_sim_inferior_data_by_ptid): Move to gdbsim_target, | |
17789 | pass down target to find_inferior_pid. | |
17790 | (gdbsim_target::fetch_registers, gdbsim_target::store_registers): | |
17791 | Pass down target to find_inferior_ptid. | |
17792 | (gdbsim_target::create_inferior): Pass down target to | |
17793 | add_thread_silent. | |
17794 | (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass | |
17795 | target down to find_inferior_ptid and switch_to_thread. | |
17796 | (gdbsim_target::close): Update to call close_one_inferior. | |
17797 | (struct resume_data): Remove. | |
17798 | (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments | |
17799 | directly, rather than through a void pointer. | |
17800 | (gdbsim_target::resume): Update to call resume_one_inferior. | |
17801 | ||
17802 | 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca> | |
17803 | ||
17804 | * gdbsupport/gdb_wait.c: Include gdb_wait.h. | |
17805 | ||
17806 | 2020-01-12 Pedro Alves <palves@redhat.com> | |
17807 | ||
17808 | * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent | |
17809 | directly for the current inferior instead of | |
17810 | discard_all_inferiors. | |
17811 | (discard_all_inferiors): Delete. | |
17812 | ||
17813 | 2020-01-11 Tom Tromey <tom@tromey.com> | |
17814 | ||
17815 | * tui/tui-wingeneral.c (box_win): Check cli_styling. | |
17816 | * tui/tui-winsource.c (tui_source_window_base::refill): Use | |
17817 | deprecated_safe_get_selected_frame. | |
17818 | ||
17819 | 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
17820 | ||
17821 | * inferior.c (print_inferior): Switch inferior before printing it. | |
17822 | ||
17823 | 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com> | |
17824 | Pedro Alves <palves@redhat.com> | |
17825 | ||
17826 | * progspace-and-thread.c (switch_to_program_space_and_thread): | |
17827 | Assert there's an inferior for PSPACE. Use | |
17828 | switch_to_inferior_no_thread to switch the inferior too. | |
17829 | * progspace.c (program_space::~program_space): Call | |
17830 | clear_symtab_users here, with SYMFILE_DEFER_BP_RESET. | |
17831 | (program_space::free_all_objfiles): Don't call clear_symtab_users | |
17832 | here. | |
17833 | * symfile.c (symbol_file_clear): Call clear_symtab_users here. | |
17834 | ||
17835 | 2020-01-10 Pedro Alves <palves@redhat.com> | |
17836 | ||
17837 | * NEWS: Mention multi-target debugging, "info connections", and | |
17838 | "add-inferior -no-connection". | |
17839 | ||
17840 | 2020-01-10 Pedro Alves <palves@redhat.com> | |
17841 | ||
17842 | * infrun.c: Include "target-connection.h". | |
17843 | (check_multi_target_resumption): New. | |
17844 | (proceed): Call it. | |
17845 | * target-connection.c (make_target_connection_string): Make | |
17846 | extern. | |
17847 | * target-connection.h (make_target_connection_string): Declare. | |
17848 | ||
17849 | 2020-01-10 Pedro Alves <palves@redhat.com> | |
17850 | ||
17851 | * Makefile.in (COMMON_SFILES): Add target-connection.c. | |
17852 | * inferior.c (uiout_field_connection): New function. | |
17853 | (print_inferior): Add new "connection-id" column. | |
17854 | (add_inferior_command): Show connection number/string of added | |
17855 | inferior. | |
17856 | * process-stratum-target.h | |
17857 | (process_stratum_target::connection_string): New virtual method. | |
17858 | (process_stratum_target::connection_number): New field. | |
17859 | * remote.c (remote_target::connection_string): New override. | |
17860 | * target-connection.c: New file. | |
17861 | * target-connection.h: New file. | |
17862 | * target.c (decref_target): Remove process_stratum targets from | |
17863 | the connection list. | |
17864 | (target_stack::push): Add process_stratum targets to the | |
17865 | connection list. | |
17866 | ||
17867 | 2020-01-10 Pedro Alves <palves@redhat.com> | |
17868 | ||
17869 | Revert: | |
17870 | 2016-04-12 Pedro Alves <palves@redhat.com> | |
17871 | * serial.c (serial_open, serial_fdopen_ops, do_serial_close): | |
17872 | Remove references to name. | |
17873 | * serial.h (struct serial) <name>: Delete. | |
17874 | ||
17875 | 2020-01-10 Pedro Alves <palves@redhat.com> | |
17876 | ||
17877 | * gdbarch-selftests.c (register_to_value_test): Remove "target | |
17878 | already pushed" check. | |
17879 | ||
17880 | 2020-01-10 Pedro Alves <palves@redhat.com> | |
17881 | John Baldwin <jhb@FreeBSD.org> | |
17882 | ||
17883 | * aarch64-linux-nat.c | |
17884 | (aarch64_linux_nat_target::thread_architecture): Adjust. | |
17885 | * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call. | |
17886 | (task_command_1): Likewise. | |
17887 | * aix-thread.c (sync_threadlists, aix_thread_target::resume) | |
17888 | (aix_thread_target::wait, aix_thread_target::fetch_registers) | |
17889 | (aix_thread_target::store_registers) | |
17890 | (aix_thread_target::thread_alive): Adjust. | |
17891 | * amd64-fbsd-tdep.c: Include "inferior.h". | |
17892 | (amd64fbsd_get_thread_local_address): Pass down target. | |
17893 | * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle | |
17894 | thread's gdbarch instead of target_gdbarch. | |
17895 | * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to | |
17896 | get_last_target_status. | |
17897 | * break-catch-syscall.c (print_it_catch_syscall): Likewise. | |
17898 | * breakpoint.c (breakpoints_should_be_inserted_now): Consider all | |
17899 | inferiors. | |
17900 | (update_inserted_breakpoint_locations): Skip if inferiors with no | |
17901 | execution. | |
17902 | (update_global_location_list): When handling moribund locations, | |
17903 | find representative inferior for location's pspace, and use thread | |
17904 | count of its process_stratum target. | |
17905 | * bsd-kvm.c (bsd_kvm_target_open): Pass target down. | |
17906 | * bsd-uthread.c (bsd_uthread_target::wait): Use | |
17907 | as_process_stratum_target and adjust thread_change_ptid and | |
17908 | add_thread calls. | |
17909 | (bsd_uthread_target::update_thread_list): Use | |
17910 | as_process_stratum_target and adjust find_thread_ptid, | |
17911 | thread_change_ptid and add_thread calls. | |
17912 | * btrace.c (maint_btrace_packet_history_cmd): Adjust | |
17913 | find_thread_ptid call. | |
17914 | * corelow.c (add_to_thread_list): Adjust add_thread call. | |
17915 | (core_target_open): Adjust add_thread_silent and thread_count | |
17916 | calls. | |
17917 | (core_target::pid_to_str): Adjust find_inferior_ptid call. | |
17918 | * ctf.c (ctf_target_open): Adjust add_thread_silent call. | |
17919 | * event-top.c (async_disconnect): Pop targets from all inferiors. | |
17920 | * exec.c (add_target_sections): Push exec target on all inferiors | |
17921 | sharing the program space. | |
17922 | (remove_target_sections): Remove the exec target from all | |
17923 | inferiors sharing the program space. | |
17924 | (exec_on_vfork): New. | |
17925 | * exec.h (exec_on_vfork): Declare. | |
17926 | * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter. | |
17927 | Pass it down. | |
17928 | (fbsd_nat_target::update_thread_list): Adjust. | |
17929 | (fbsd_nat_target::resume): Adjust. | |
17930 | (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it | |
17931 | down. | |
17932 | (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust. | |
17933 | * fbsd-tdep.c (fbsd_corefile_thread): Adjust | |
17934 | get_thread_arch_regcache call. | |
17935 | * fork-child.c (gdb_startup_inferior): Pass target down to | |
17936 | startup_inferior and set_executing. | |
17937 | * gdbthread.h (struct process_stratum_target): Forward declare. | |
17938 | (add_thread, add_thread_silent, add_thread_with_info) | |
17939 | (in_thread_list): Add process_stratum_target parameter. | |
17940 | (find_thread_ptid(inferior*, ptid_t)): New overload. | |
17941 | (find_thread_ptid, thread_change_ptid): Add process_stratum_target | |
17942 | parameter. | |
17943 | (all_threads()): Delete overload. | |
17944 | (all_threads, all_non_exited_threads): Add process_stratum_target | |
17945 | parameter. | |
17946 | (all_threads_safe): Use brace initialization. | |
17947 | (thread_count): Add process_stratum_target parameter. | |
17948 | (set_resumed, set_running, set_stop_requested, set_executing) | |
17949 | (threads_are_executing, finish_thread_state): Add | |
17950 | process_stratum_target parameter. | |
17951 | (switch_to_thread): Use is_current_thread. | |
17952 | * i386-fbsd-tdep.c: Include "inferior.h". | |
17953 | (i386fbsd_get_thread_local_address): Pass down target. | |
17954 | * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust. | |
17955 | * inf-child.c (inf_child_target::maybe_unpush_target): Remove | |
17956 | have_inferiors check. | |
17957 | * inf-ptrace.c (inf_ptrace_target::create_inferior) | |
17958 | (inf_ptrace_target::attach): Adjust. | |
17959 | * infcall.c (run_inferior_call): Adjust. | |
17960 | * infcmd.c (run_command_1): Pass target to | |
17961 | scoped_finish_thread_state. | |
17962 | (proceed_thread_callback): Skip inferiors with no execution. | |
17963 | (continue_command): Rename 'all_threads' local to avoid hiding | |
17964 | 'all_threads' function. Adjust get_last_target_status call. | |
17965 | (prepare_one_step): Adjust set_running call. | |
17966 | (signal_command): Use user_visible_resume_target. Compare thread | |
17967 | pointers instead of inferior_ptid. | |
17968 | (info_program_command): Adjust to pass down target. | |
17969 | (attach_command): Mark target's 'thread_executing' flag. | |
17970 | (stop_current_target_threads_ns): New, factored out from ... | |
17971 | (interrupt_target_1): ... this. Switch inferior before making | |
17972 | target calls. | |
17973 | * inferior-iter.h | |
17974 | (struct all_inferiors_iterator, struct all_inferiors_range) | |
17975 | (struct all_inferiors_safe_range) | |
17976 | (struct all_non_exited_inferiors_range): Filter on | |
17977 | process_stratum_target too. Remove explicit. | |
17978 | * inferior.c (inferior::inferior): Push dummy target on target | |
17979 | stack. | |
17980 | (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors): | |
17981 | Add process_stratum_target parameter, and pass it down. | |
17982 | (have_live_inferiors): Adjust. | |
17983 | (switch_to_inferior_and_push_target): New. | |
17984 | (add_inferior_command, clone_inferior_command): Handle | |
17985 | "-no-connection" parameter. Use | |
17986 | switch_to_inferior_and_push_target. | |
17987 | (_initialize_inferior): Mention "-no-connection" option in | |
17988 | the help of "add-inferior" and "clone-inferior" commands. | |
17989 | * inferior.h: Include "process-stratum-target.h". | |
17990 | (interrupt_target_1): Use bool. | |
17991 | (struct inferior) <push_target, unpush_target, target_is_pushed, | |
17992 | find_target_beneath, top_target, process_target, target_at, | |
17993 | m_stack>: New. | |
17994 | (discard_all_inferiors): Delete. | |
17995 | (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors) | |
17996 | (all_inferiors, all_non_exited_inferiors): Add | |
17997 | process_stratum_target parameter. | |
17998 | * infrun.c: Include "gdb_select.h" and <unordered_map>. | |
17999 | (target_last_proc_target): New global. | |
18000 | (follow_fork_inferior): Push target on new inferior. Pass target | |
18001 | to add_thread_silent. Call exec_on_vfork. Handle target's | |
18002 | reference count. | |
18003 | (follow_fork): Adjust get_last_target_status call. Also consider | |
18004 | target. | |
18005 | (follow_exec): Push target on new inferior. | |
18006 | (struct execution_control_state) <target>: New field. | |
18007 | (user_visible_resume_target): New. | |
18008 | (do_target_resume): Call target_async. | |
18009 | (resume_1): Set target's threads_executing flag. Consider resume | |
18010 | target. | |
18011 | (commit_resume_all_targets): New. | |
18012 | (proceed): Also consider resume target. Skip threads of inferiors | |
18013 | with no execution. Commit resumtion in all targets. | |
18014 | (start_remote): Pass current inferior to wait_for_inferior. | |
18015 | (infrun_thread_stop_requested): Consider target as well. Pass | |
18016 | thread_info pointer to clear_inline_frame_state instead of ptid. | |
18017 | (infrun_thread_thread_exit): Consider target as well. | |
18018 | (random_pending_event_thread): New inferior parameter. Use it. | |
18019 | (do_target_wait): Rename to ... | |
18020 | (do_target_wait_1): ... this. Add inferior parameter, and pass it | |
18021 | down. | |
18022 | (threads_are_resumed_pending_p, do_target_wait): New. | |
18023 | (prepare_for_detach): Adjust calls. | |
18024 | (wait_for_inferior): New inferior parameter. Handle it. Use | |
18025 | do_target_wait_1 instead of do_target_wait. | |
18026 | (fetch_inferior_event): Adjust. Switch to representative | |
18027 | inferior. Pass target down. | |
18028 | (set_last_target_status): Add process_stratum_target parameter. | |
18029 | Save target in global. | |
18030 | (get_last_target_status): Add process_stratum_target parameter and | |
18031 | handle it. | |
18032 | (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'. | |
18033 | (context_switch): Check inferior_ptid == null_ptid before calling | |
18034 | inferior_thread(). | |
18035 | (get_inferior_stop_soon): Pass down target. | |
18036 | (wait_one): Rename to ... | |
18037 | (poll_one_curr_target): ... this. | |
18038 | (struct wait_one_event): New. | |
18039 | (wait_one): New. | |
18040 | (stop_all_threads): Adjust. | |
18041 | (handle_no_resumed, handle_inferior_event): Adjust to consider the | |
18042 | event's target. | |
18043 | (switch_back_to_stepped_thread): Also consider target. | |
18044 | (print_stop_event): Update. | |
18045 | (normal_stop): Update. Also consider the resume target. | |
18046 | * infrun.h (wait_for_inferior): Remove declaration. | |
18047 | (user_visible_resume_target): New declaration. | |
18048 | (get_last_target_status, set_last_target_status): New | |
18049 | process_stratum_target parameter. | |
18050 | * inline-frame.c (clear_inline_frame_state(ptid_t)): Add | |
18051 | process_stratum_target parameter, and use it. | |
18052 | (clear_inline_frame_state (thread_info*)): New. | |
18053 | * inline-frame.c (clear_inline_frame_state(ptid_t)): Add | |
18054 | process_stratum_target parameter. | |
18055 | (clear_inline_frame_state (thread_info*)): Declare. | |
18056 | * linux-fork.c (delete_checkpoint_command): Pass target down to | |
18057 | find_thread_ptid. | |
18058 | (checkpoint_command): Adjust. | |
18059 | * linux-nat.c (linux_nat_target::follow_fork): Switch to thread | |
18060 | instead of just tweaking inferior_ptid. | |
18061 | (linux_nat_switch_fork): Pass target down to thread_change_ptid. | |
18062 | (exit_lwp): Pass target down to find_thread_ptid. | |
18063 | (attach_proc_task_lwp_callback): Pass target down to | |
18064 | add_thread/set_running/set_executing. | |
18065 | (linux_nat_target::attach): Pass target down to | |
18066 | thread_change_ptid. | |
18067 | (get_detach_signal): Pass target down to find_thread_ptid. | |
18068 | Consider last target status's target. | |
18069 | (linux_resume_one_lwp_throw, resume_lwp) | |
18070 | (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp) | |
18071 | (stop_wait_callback, save_stop_reason, linux_nat_filter_event) | |
18072 | (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down. | |
18073 | (linux_nat_target::async_wait_fd): New. | |
18074 | (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass | |
18075 | target down. | |
18076 | * linux-nat.h (linux_nat_target::async_wait_fd): Declare. | |
18077 | * linux-tdep.c (get_thread_arch_regcache): Pass target down. | |
18078 | * linux-thread-db.c (struct thread_db_info::process_target): New | |
18079 | field. | |
18080 | (add_thread_db_info): Save target. | |
18081 | (get_thread_db_info): New process_stratum_target parameter. Also | |
18082 | match target. | |
18083 | (delete_thread_db_info): New process_stratum_target parameter. | |
18084 | Also match target. | |
18085 | (thread_from_lwp): Adjust to pass down target. | |
18086 | (thread_db_notice_clone): Pass down target. | |
18087 | (check_thread_db_callback): Pass down target. | |
18088 | (try_thread_db_load_1): Always push the thread_db target. | |
18089 | (try_thread_db_load, record_thread): Pass target down. | |
18090 | (thread_db_target::detach): Pass target down. Always unpush the | |
18091 | thread_db target. | |
18092 | (thread_db_target::wait, thread_db_target::mourn_inferior): Pass | |
18093 | target down. Always unpush the thread_db target. | |
18094 | (find_new_threads_callback, thread_db_find_new_threads_2) | |
18095 | (thread_db_target::update_thread_list): Pass target down. | |
18096 | (thread_db_target::pid_to_str): Pass current inferior down. | |
18097 | (thread_db_target::get_thread_local_address): Pass target down. | |
18098 | (thread_db_target::resume, maintenance_check_libthread_db): Pass | |
18099 | target down. | |
18100 | * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust. | |
18101 | * procfs.c (procfs_target::procfs_init_inferior): Declare. | |
18102 | (proc_set_current_signal, do_attach, procfs_target::wait): Adjust. | |
18103 | (procfs_init_inferior): Rename to ... | |
18104 | (procfs_target::procfs_init_inferior): ... this and adjust. | |
18105 | (procfs_target::create_inferior, procfs_notice_thread) | |
18106 | (procfs_do_thread_registers): Adjust. | |
18107 | * ppc-fbsd-tdep.c: Include "inferior.h". | |
18108 | (ppcfbsd_get_thread_local_address): Pass down target. | |
18109 | * proc-service.c (ps_xfer_memory): Switch current inferior and | |
18110 | program space as well. | |
18111 | (get_ps_regcache): Pass target down. | |
18112 | * process-stratum-target.c | |
18113 | (process_stratum_target::thread_address_space) | |
18114 | (process_stratum_target::thread_architecture): Pass target down. | |
18115 | * process-stratum-target.h | |
18116 | (process_stratum_target::threads_executing): New field. | |
18117 | (as_process_stratum_target): New. | |
18118 | * ravenscar-thread.c | |
18119 | (ravenscar_thread_target::update_inferior_ptid): Pass target down. | |
18120 | (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target | |
18121 | down. | |
18122 | * record-btrace.c (record_btrace_target::info_record): Adjust. | |
18123 | (record_btrace_target::record_method) | |
18124 | (record_btrace_target::record_is_replaying) | |
18125 | (record_btrace_target::fetch_registers) | |
18126 | (get_thread_current_frame_id, record_btrace_target::resume) | |
18127 | (record_btrace_target::wait, record_btrace_target::stop): Pass | |
18128 | target down. | |
18129 | * record-full.c (record_full_wait_1): Switch to event thread. | |
18130 | Pass target down. | |
18131 | * regcache.c (regcache::regcache) | |
18132 | (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add | |
18133 | process_stratum_target parameter and handle it. | |
18134 | (current_thread_target): New global. | |
18135 | (get_thread_regcache): Add process_stratum_target parameter and | |
18136 | handle it. Switch inferior before calling target method. | |
18137 | (get_thread_regcache): Pass target down. | |
18138 | (get_thread_regcache_for_ptid): Pass target down. | |
18139 | (registers_changed_ptid): Add process_stratum_target parameter and | |
18140 | handle it. | |
18141 | (registers_changed_thread, registers_changed): Pass target down. | |
18142 | (test_get_thread_arch_aspace_regcache): New. | |
18143 | (current_regcache_test): Define a couple local test_target_ops | |
18144 | instances and use them for testing. | |
18145 | (readwrite_regcache): Pass process_stratum_target parameter. | |
18146 | (cooked_read_test, cooked_write_test): Pass mock_target down. | |
18147 | * regcache.h (get_thread_regcache, get_thread_arch_regcache) | |
18148 | (get_thread_arch_aspace_regcache): Add process_stratum_target | |
18149 | parameter. | |
18150 | (regcache::target): New method. | |
18151 | (regcache::regcache, regcache::get_thread_arch_aspace_regcache) | |
18152 | (regcache::registers_changed_ptid): Add process_stratum_target | |
18153 | parameter. | |
18154 | (regcache::m_target): New field. | |
18155 | (registers_changed_ptid): Add process_stratum_target parameter. | |
18156 | * remote.c (remote_state::supports_vCont_probed): New field. | |
18157 | (remote_target::async_wait_fd): New method. | |
18158 | (remote_unpush_and_throw): Add remote_target parameter. | |
18159 | (get_current_remote_target): Adjust. | |
18160 | (remote_target::remote_add_inferior): Push target. | |
18161 | (remote_target::remote_add_thread) | |
18162 | (remote_target::remote_notice_new_inferior) | |
18163 | (get_remote_thread_info): Pass target down. | |
18164 | (remote_target::update_thread_list): Skip threads of inferiors | |
18165 | bound to other targets. (remote_target::close): Don't discard | |
18166 | inferiors. (remote_target::add_current_inferior_and_thread) | |
18167 | (remote_target::process_initial_stop_replies) | |
18168 | (remote_target::start_remote) | |
18169 | (remote_target::remote_serial_quit_handler): Pass down target. | |
18170 | (remote_target::remote_unpush_target): New remote_target | |
18171 | parameter. Unpush the target from all inferiors. | |
18172 | (remote_target::remote_unpush_and_throw): New remote_target | |
18173 | parameter. Pass it down. | |
18174 | (remote_target::open_1): Check whether the current inferior has | |
18175 | execution instead of checking whether any inferior is live. Pass | |
18176 | target down. | |
18177 | (remote_target::remote_detach_1): Pass down target. Use | |
18178 | remote_unpush_target. | |
18179 | (extended_remote_target::attach): Pass down target. | |
18180 | (remote_target::remote_vcont_probe): Set supports_vCont_probed. | |
18181 | (remote_target::append_resumption): Pass down target. | |
18182 | (remote_target::append_pending_thread_resumptions) | |
18183 | (remote_target::remote_resume_with_hc, remote_target::resume) | |
18184 | (remote_target::commit_resume): Pass down target. | |
18185 | (remote_target::remote_stop_ns): Check supports_vCont_probed. | |
18186 | (remote_target::interrupt_query) | |
18187 | (remote_target::remove_new_fork_children) | |
18188 | (remote_target::check_pending_events_prevent_wildcard_vcont) | |
18189 | (remote_target::remote_parse_stop_reply) | |
18190 | (remote_target::process_stop_reply): Pass down target. | |
18191 | (first_remote_resumed_thread): New remote_target parameter. Pass | |
18192 | it down. | |
18193 | (remote_target::wait_as): Pass down target. | |
18194 | (unpush_and_perror): New remote_target parameter. Pass it down. | |
18195 | (remote_target::readchar, remote_target::remote_serial_write) | |
18196 | (remote_target::getpkt_or_notif_sane_1) | |
18197 | (remote_target::kill_new_fork_children, remote_target::kill): Pass | |
18198 | down target. | |
18199 | (remote_target::mourn_inferior): Pass down target. Use | |
18200 | remote_unpush_target. | |
18201 | (remote_target::core_of_thread) | |
18202 | (remote_target::remote_btrace_maybe_reopen): Pass down target. | |
18203 | (remote_target::pid_to_exec_file) | |
18204 | (remote_target::thread_handle_to_thread_info): Pass down target. | |
18205 | (remote_target::async_wait_fd): New. | |
18206 | * riscv-fbsd-tdep.c: Include "inferior.h". | |
18207 | (riscv_fbsd_get_thread_local_address): Pass down target. | |
18208 | * sol2-tdep.c (sol2_core_pid_to_str): Pass down target. | |
18209 | * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs) | |
18210 | (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback): | |
18211 | Adjust. | |
18212 | * solib-spu.c (spu_skip_standalone_loader): Pass down target. | |
18213 | * solib-svr4.c (enable_break): Pass down target. | |
18214 | * spu-multiarch.c (parse_spufs_run): Pass down target. | |
18215 | * spu-tdep.c (spu2ppu_sniffer): Pass down target. | |
18216 | * target-delegates.c: Regenerate. | |
18217 | * target.c (g_target_stack): Delete. | |
18218 | (current_top_target): Return the current inferior's top target. | |
18219 | (target_has_execution_1): Refer to the passed-in inferior's top | |
18220 | target. | |
18221 | (target_supports_terminal_ours): Check whether the initial | |
18222 | inferior was already created. | |
18223 | (decref_target): New. | |
18224 | (target_stack::push): Incref/decref the target. | |
18225 | (push_target, push_target, unpush_target): Adjust. | |
18226 | (target_stack::unpush): Defref target. | |
18227 | (target_is_pushed): Return bool. Adjust to refer to the current | |
18228 | inferior's target stack. | |
18229 | (dispose_inferior): Delete, and inline parts ... | |
18230 | (target_preopen): ... here. Only dispose of the current inferior. | |
18231 | (target_detach): Hold strong target reference while detaching. | |
18232 | Pass target down. | |
18233 | (target_thread_name): Add assertion. | |
18234 | (target_resume): Pass down target. | |
18235 | (target_ops::beneath, find_target_at): Adjust to refer to the | |
18236 | current inferior's target stack. | |
18237 | (get_dummy_target): New. | |
18238 | (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that | |
18239 | has a thread running. | |
18240 | (initialize_targets): Rename to ... | |
18241 | (_initialize_target): ... this. | |
18242 | * target.h: Include "gdbsupport/refcounted-object.h". | |
18243 | (struct target_ops): Inherit refcounted_object. | |
18244 | (target_ops::shortname, target_ops::longname): Make const. | |
18245 | (target_ops::async_wait_fd): New method. | |
18246 | (decref_target): Declare. | |
18247 | (struct target_ops_ref_policy): New. | |
18248 | (target_ops_ref): New typedef. | |
18249 | (get_dummy_target): Declare function. | |
18250 | (target_is_pushed): Return bool. | |
18251 | * thread-iter.c (all_matching_threads_iterator::m_inf_matches) | |
18252 | (all_matching_threads_iterator::all_matching_threads_iterator): | |
18253 | Handle filter target. | |
18254 | * thread-iter.h (struct all_matching_threads_iterator, struct | |
18255 | all_matching_threads_range, class all_non_exited_threads_range): | |
18256 | Filter by target too. Remove explicit. | |
18257 | * thread.c (threads_executing): Delete. | |
18258 | (inferior_thread): Pass down current inferior. | |
18259 | (clear_thread_inferior_resources): Pass down thread pointer | |
18260 | instead of ptid_t. | |
18261 | (add_thread_silent, add_thread_with_info, add_thread): Add | |
18262 | process_stratum_target parameter. Use it for thread and inferior | |
18263 | searches. | |
18264 | (is_current_thread): New. | |
18265 | (thread_info::deletable): Use it. | |
18266 | (find_thread_ptid, thread_count, in_thread_list) | |
18267 | (thread_change_ptid, set_resumed, set_running): New | |
18268 | process_stratum_target parameter. Pass it down. | |
18269 | (set_executing): New process_stratum_target parameter. Pass it | |
18270 | down. Adjust reference to 'threads_executing'. | |
18271 | (threads_are_executing): New process_stratum_target parameter. | |
18272 | Adjust reference to 'threads_executing'. | |
18273 | (set_stop_requested, finish_thread_state): New | |
18274 | process_stratum_target parameter. Pass it down. | |
18275 | (switch_to_thread): Also match inferior. | |
18276 | (switch_to_thread): New process_stratum_target parameter. Pass it | |
18277 | down. | |
18278 | (update_threads_executing): Reimplement. | |
18279 | * top.c (quit_force): Pop targets from all inferior. | |
18280 | (gdb_init): Don't call initialize_targets. | |
18281 | * windows-nat.c (windows_nat_target) <get_windows_debug_event>: | |
18282 | Declare. | |
18283 | (windows_add_thread, windows_delete_thread): Adjust. | |
18284 | (get_windows_debug_event): Rename to ... | |
18285 | (windows_nat_target::get_windows_debug_event): ... this. Adjust. | |
18286 | * tracefile-tfile.c (tfile_target_open): Pass down target. | |
18287 | * gdbsupport/common-gdbthread.h (struct process_stratum_target): | |
18288 | Forward declare. | |
18289 | (switch_to_thread): Add process_stratum_target parameter. | |
18290 | * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target | |
18291 | parameter. Use it. | |
18292 | (mi_on_resume): Pass target down. | |
18293 | * nat/fork-inferior.c (startup_inferior): Add | |
18294 | process_stratum_target parameter. Pass it down. | |
18295 | * nat/fork-inferior.h (startup_inferior): Add | |
18296 | process_stratum_target parameter. | |
18297 | * python/py-threadevent.c (py_get_event_thread): Pass target down. | |
18298 | ||
18299 | 2020-01-10 Pedro Alves <palves@redhat.com> | |
18300 | ||
18301 | * remote.c (remote_target::start_remote): Don't set inferior_ptid | |
18302 | directly. Instead find the first thread in the thread list and | |
18303 | use switch_to_thread. | |
18304 | ||
18305 | 2020-01-10 Pedro Alves <palves@redhat.com> | |
18306 | ||
18307 | * remote.c (remote_target::remote_add_inferior): Don't bind a | |
18308 | process to the current inferior if the current inferior is already | |
18309 | bound to a process. | |
18310 | ||
18311 | 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
18312 | Pedro Alves <palves@redhat.com> | |
18313 | ||
18314 | * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>: | |
18315 | If no process is specified, return null_ptid instead of | |
18316 | inferior_ptid. | |
18317 | (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED / | |
18318 | TARGET_WAITKIND_SIGNALLED with no pid. | |
18319 | ||
18320 | 2020-01-10 Pedro Alves <palves@redhat.com> | |
18321 | ||
18322 | * remote.c (first_remote_resumed_thread): New. | |
18323 | (remote_target::wait_as): Use it as default event_ptid instead of | |
18324 | inferior_ptid. | |
18325 | ||
18326 | 2020-01-10 Pedro Alves <palves@redhat.com> | |
18327 | ||
18328 | * infrun.c (handle_no_resumed): Use all_non_exited_inferiors. | |
18329 | ||
18330 | 2020-01-10 Pedro Alves <palves@redhat.com> | |
18331 | ||
18332 | * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is | |
18333 | not -1. | |
18334 | ||
18335 | 2020-01-10 Pedro Alves <palves@redhat.com> | |
18336 | ||
18337 | * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a | |
18338 | ptid to get_last_target_status. | |
18339 | * break-catch-syscall.c (print_it_catch_syscall): Don't pass a | |
18340 | ptid to get_last_target_status. | |
18341 | * infcmd.c (continue_command): Don't pass a target_waitstatus to | |
18342 | get_last_target_status. | |
18343 | (info_program_command): Don't pass a target_waitstatus to | |
18344 | get_last_target_status. | |
18345 | * infrun.c (init_wait_for_inferior): Use | |
18346 | nullify_last_target_wait_ptid. | |
18347 | (get_last_target_status): Handle nullptr arguments. | |
18348 | (nullify_last_target_wait_ptid): Clear target_last_waitstatus. | |
18349 | (print_stop_event): Don't pass a ptid to get_last_target_status. | |
18350 | (normal_stop): Don't pass a ptid to get_last_target_status. | |
18351 | * infrun.h (get_last_target_status, set_last_target_status): Move | |
18352 | comments here and update. | |
18353 | (nullify_last_target_wait_ptid): Declare. | |
18354 | * linux-fork.c (fork_load_infrun_state): Remove local extern | |
18355 | declaration of nullify_last_target_wait_ptid. | |
18356 | * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus | |
18357 | to get_last_target_status. | |
18358 | ||
18359 | 2020-01-10 Pedro Alves <palves@redhat.com> | |
18360 | ||
18361 | * gdbthread.h (scoped_restore_current_thread) | |
18362 | <dont_restore, restore, m_dont_restore>: Declare. | |
18363 | * thread.c (thread_alive): Add assertion. Return bool. | |
18364 | (switch_to_thread_if_alive): New. | |
18365 | (prune_threads): Switch inferior/thread. | |
18366 | (print_thread_info_1): Switch thread before calling target methods. | |
18367 | (scoped_restore_current_thread::restore): New, factored out from | |
18368 | ... | |
18369 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
18370 | ... this. | |
18371 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
18372 | Add assertion. | |
18373 | (thread_apply_all_command, thread_select): Use | |
18374 | switch_to_thread_if_alive. | |
18375 | * infrun.c (proceed, restart_threads, handle_signal_stop) | |
18376 | (switch_back_to_stepped_thread): Switch current thread before | |
18377 | calling target methods. | |
18378 | ||
18379 | 2020-01-10 Pedro Alves <palves@redhat.com> | |
18380 | ||
18381 | * inferior.c (switch_to_inferior_no_thread): New function, | |
18382 | factored out from ... | |
18383 | (inferior_command): ... here. | |
18384 | * inferior.h (switch_to_inferior_no_thread): Declare. | |
18385 | * mi/mi-main.c (run_one_inferior): Use | |
18386 | switch_to_inferior_no_thread. | |
18387 | ||
18388 | 2020-01-10 Pedro Alves <palves@redhat.com> | |
18389 | ||
18390 | * infcmd.c (kill_command): Remove dead code. | |
18391 | ||
18392 | 2020-01-10 Pedro Alves <palves@redhat.com> | |
18393 | ||
18394 | * remote.c (remote_target::mourn_inferior): No longer check | |
18395 | whether the target is running. | |
18396 | ||
18397 | 2020-01-10 Pedro Alves <palves@redhat.com> | |
18398 | ||
18399 | * corelow.c (core_target::has_execution): Change parameter type to | |
18400 | inferior pointer. | |
18401 | * inferior.c (number_of_live_inferiors): Use | |
18402 | inferior::has_execution instead of target_has_execution_1. | |
18403 | * inferior.h (inferior::has_execution): New. | |
18404 | * linux-thread-db.c (thread_db_target::update_thread_list): Use | |
18405 | inferior::has_execution instead of target_has_execution_1. | |
18406 | * process-stratum-target.c | |
18407 | (process_stratum_target::has_execution): Change parameter type to | |
18408 | inferior pointer. Check the inferior's PID instead of | |
18409 | inferior_ptid. | |
18410 | * process-stratum-target.h | |
18411 | (process_stratum_target::has_execution): Change parameter type to | |
18412 | inferior pointer. | |
18413 | * record-full.c (record_full_core_target::has_execution): Change | |
18414 | parameter type to inferior pointer. | |
18415 | * target.c (target_has_execution_1): Change parameter type to | |
18416 | inferior pointer. | |
18417 | (target_has_execution_current): Adjust. | |
18418 | * target.h (target_ops::has_execution): Change parameter type to | |
18419 | inferior pointer. | |
18420 | (target_has_execution_1): Change parameter type to inferior | |
18421 | pointer. Change return type to bool. | |
18422 | * tracefile.h (tracefile_target::has_execution): Change parameter | |
18423 | type to inferior pointer. | |
18424 | ||
18425 | 2020-01-10 Pedro Alves <palves@redhat.com> | |
18426 | ||
18427 | * exceptions.c (print_flush): Remove current_top_target() check. | |
18428 | ||
18429 | 2020-01-10 Pedro Alves <palves@redhat.com> | |
18430 | ||
18431 | * remote.c (show_remote_exec_file): Show the current inferior's | |
18432 | exec-file instead of the command variable's value. | |
18433 | ||
18434 | 2020-01-10 Pedro Alves <palves@redhat.com> | |
18435 | ||
18436 | * record-full.c (record_full_resume_ptid): New global. | |
18437 | (record_full_target::resume): Set it. | |
18438 | (record_full_wait_1): Use record_full_resume_ptid instead of | |
18439 | inferior_ptid. | |
18440 | ||
18441 | 2020-01-10 Pedro Alves <palves@redhat.com> | |
18442 | ||
18443 | * gdbthread.h (scoped_restore_current_thread) | |
18444 | <dont_restore, restore, m_dont_restore>: Declare. | |
18445 | * thread.c (thread_alive): Add assertion. Return bool. | |
18446 | (switch_to_thread_if_alive): New. | |
18447 | (prune_threads): Switch inferior/thread. | |
18448 | (print_thread_info_1): Switch thread before calling target methods. | |
18449 | (scoped_restore_current_thread::restore): New, factored out from | |
18450 | ... | |
18451 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
18452 | ... this. | |
18453 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
18454 | Add assertion. | |
18455 | (thread_apply_all_command, thread_select): Use | |
18456 | switch_to_thread_if_alive. | |
18457 | ||
18458 | 2020-01-10 George Barrett <bob@bob131.so> | |
18459 | ||
18460 | * stap-probe.c (stap_modify_semaphore): Don't check for null | |
18461 | semaphores. | |
18462 | (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check | |
18463 | for null semaphores. | |
18464 | ||
18465 | 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com> | |
18466 | ||
18467 | * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update | |
18468 | all source windows, and maintain horizontal scroll status while | |
18469 | doing so. | |
18470 | ||
18471 | 2020-01-09 Tom Tromey <tom@tromey.com> | |
18472 | ||
18473 | PR tui/18932: | |
18474 | * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call | |
18475 | update_source_window, not print_source_lines. | |
18476 | ||
18477 | 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com> | |
18478 | ||
18479 | * tui/tui.c (tui_enable): Register tui hooks after calling | |
18480 | tui_display_main. | |
18481 | ||
18482 | 2020-01-09 Christian Biesinger <cbiesinger@google.com> | |
18483 | ||
18484 | * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW. | |
18485 | ||
18486 | 2020-01-08 Simon Marchi <simon.marchi@efficios.com> | |
18487 | ||
18488 | * thread.c (print_thread_info_1): Fix indentation. | |
18489 | ||
18490 | 2020-01-09 Christian Biesinger <cbiesinger@google.com> | |
18491 | ||
18492 | * symtab.c (general_symbol_info::compute_and_set_names): Move the | |
18493 | unique_xmalloc_ptr outside the if to always free the demangled name. | |
18494 | ||
18495 | 2020-01-08 Tom Tromey <tromey@adacore.com> | |
18496 | ||
18497 | * xcoffread.c (enter_line_range, read_xcoff_symtab) | |
18498 | (process_xcoff_symbol, xcoff_symfile_offsets): Update. | |
18499 | * symtab.h (MSYMBOL_VALUE_ADDRESS): Update. | |
18500 | (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS): | |
18501 | Remove. | |
18502 | (section_offsets): New typedef. | |
18503 | * symtab.c (fixup_section, get_msymbol_address): Update. | |
18504 | * symmisc.c (dump_msymbols): Update. | |
18505 | * symfile.h (relative_addr_info_to_section_offsets) | |
18506 | (symfile_map_offsets_to_segments): Update. | |
18507 | * symfile.c (build_section_addr_info_from_objfile) | |
18508 | (init_objfile_sect_indices): Update. | |
18509 | (struct place_section_arg): Change type of "offsets". | |
18510 | (place_section): Update. | |
18511 | (relative_addr_info_to_section_offsets): Change type of | |
18512 | "section_offsets". Remove "num_sections" parameter. | |
18513 | (default_symfile_offsets, syms_from_objfile_1) | |
18514 | (set_objfile_default_section_offset): Update. | |
18515 | (reread_symbols): No need to preserve section offsets by hand. | |
18516 | (symfile_map_offsets_to_segments): Change type of "offsets". | |
18517 | * stap-probe.c (relocate_address): Update. | |
18518 | * stabsread.h (process_one_symbol): Update. | |
18519 | * solib-target.c (struct lm_info_target) <offsets>: Change type. | |
18520 | (solib_target_relocate_section_addresses): Update. | |
18521 | * solib-svr4.c (enable_break, svr4_relocate_main_executable): | |
18522 | Update. | |
18523 | * solib-frv.c (frv_relocate_main_executable): Update. | |
18524 | * solib-dsbt.c (dsbt_relocate_main_executable): Update. | |
18525 | * solib-aix.c (solib_aix_get_section_offsets): Change return | |
18526 | type. | |
18527 | (solib_aix_solib_create_inferior_hook): Update. | |
18528 | * remote.c (remote_target::get_offsets): Update. | |
18529 | * psymtab.c (find_pc_sect_psymtab): Update. | |
18530 | * psympriv.h (struct partial_symbol) <address, text_low, | |
18531 | text_high>: Update. | |
18532 | * objfiles.h (obj_section_offset): Update. | |
18533 | (struct objfile) <section_offsets>: Change type. | |
18534 | <num_sections>: Remove. | |
18535 | (objfile_relocate): Update. | |
18536 | * objfiles.c (entry_point_address_query): Update | |
18537 | (relocate_one_symbol): Change type of "section_offsets". | |
18538 | (objfile_relocate1, objfile_relocate1): Change type of | |
18539 | "new_offsets". | |
18540 | (objfile_rebase1): Update. | |
18541 | * mipsread.c (mipscoff_symfile_read): Update. | |
18542 | (read_alphacoff_dynamic_symtab): Remove "section_offsets" | |
18543 | parameter. | |
18544 | * mdebugread.c (parse_symbol): Change type of "section_offsets". | |
18545 | (parse_external, psymtab_to_symtab_1): Update. | |
18546 | * machoread.c (macho_symfile_offsets): Update. | |
18547 | * ia64-tdep.c (ia64_find_unwind_table): Update. | |
18548 | * hppa-tdep.c (read_unwind_info): Update. | |
18549 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update. | |
18550 | * dwarf2read.c (create_addrmap_from_index) | |
18551 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) | |
18552 | (process_psymtab_comp_unit_reader, add_partial_symbol) | |
18553 | (add_partial_subprogram, process_full_comp_unit) | |
18554 | (read_file_scope, read_func_scope, read_lexical_block_scope) | |
18555 | (read_call_site_scope, dwarf2_rnglists_process) | |
18556 | (dwarf2_ranges_process, dwarf2_ranges_read) | |
18557 | (dwarf_decode_lines_1, var_decode_location, new_symbol) | |
18558 | (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset): | |
18559 | Update. | |
18560 | * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde): | |
18561 | Update. | |
18562 | * dtrace-probe.c (dtrace_probe::get_relocated_address): Update. | |
18563 | * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update. | |
18564 | (process_one_symbol): Change type of "section_offsets". | |
18565 | * ctfread.c (get_objfile_text_range): Update. | |
18566 | * coffread.c (coff_symtab_read, enter_linenos) | |
18567 | (process_coff_symbol): Update. | |
18568 | * coff-pe-read.c (add_pe_forwarded_sym): Update. | |
18569 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update. | |
18570 | ||
18571 | 2020-01-08 Tom Tromey <tromey@adacore.com> | |
18572 | ||
18573 | * dwarf2read.c (parse_macro_definition): Use std::string. | |
18574 | (parse_macro_definition): Likewise. | |
18575 | ||
18576 | 2020-01-08 Tom Tromey <tromey@adacore.com> | |
18577 | ||
18578 | * dwarf2read.c (abbrev_table_read_table): Use std::vector. | |
18579 | (ATTR_ALLOC_CHUNK): Remove. | |
18580 | ||
18581 | 2020-01-08 Tom Tromey <tromey@adacore.com> | |
18582 | ||
18583 | * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr. | |
18584 | ||
18585 | 2020-01-08 Tom Tromey <tromey@adacore.com> | |
18586 | ||
18587 | * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr. | |
18588 | (dwarf2_compute_name, open_dwo_file): Likewise. | |
18589 | (process_enumeration_scope): Use std::vector. | |
18590 | (guess_partial_die_structure_name): Use unique_xmalloc_ptr. | |
18591 | (partial_die_info::fixup, dwarf2_start_subfile) | |
18592 | (guess_full_die_structure_name, dwarf2_name): Likewise. | |
18593 | (determine_prefix): Update. | |
18594 | (guess_full_die_structure_name): Make return type const. | |
18595 | (partial_die_full_name): Return unique_xmalloc_ptr. | |
18596 | (DW_FIELD_ALLOC_CHUNK): Remove. | |
18597 | ||
18598 | 2020-01-07 Tom Tromey <tromey@adacore.com> | |
18599 | ||
18600 | PR build/24937: | |
18601 | * stap-probe.c (class stap_static_probe_ops): Add constructor. | |
18602 | ||
18603 | 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk> | |
18604 | ||
18605 | * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build. | |
18606 | ||
18607 | 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com> | |
18608 | ||
18609 | * stack.c (print_frame_info): Move disassemble_next_line code | |
18610 | inside source_print block. | |
18611 | ||
18612 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> | |
18613 | ||
18614 | * gdbsupport/gdb_wait.c: Include <signal.h> instead of | |
18615 | gdb/signals.h, as we are now using native signal symbols. | |
18616 | ||
18617 | 2020-01-06 Shahab Vahedi <shahab@synopsys.com> | |
18618 | ||
18619 | * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid | |
18620 | overflow by an early check of content vs threshold. | |
18621 | * tui/tui-source.c (tui_source_window::line_is_displayed): | |
18622 | Likewise. | |
18623 | ||
18624 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> | |
18625 | ||
18626 | * NEWS: Mention the recent fix of $_exitsignal on MS-Windows. | |
18627 | ||
18628 | 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk> | |
18629 | ||
18630 | * coff-pe-read.c (read_pe_exported_syms): Don't try to read the | |
18631 | export table if no section contains it's RVA. | |
18632 | ||
18633 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> | |
18634 | ||
18635 | * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT. | |
18636 | ||
18637 | 2020-01-06 Hannes Domani <ssbssa@yahoo.de> | |
18638 | ||
18639 | * source.c (print_source_lines_base): Set last_line_listed. | |
18640 | ||
18641 | 2020-01-06 Shahab Vahedi <shahab@synopsys.com> | |
18642 | ||
18643 | * tui/tui-disasm.c: Remove trailing spaces. | |
18644 | ||
18645 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> | |
18646 | Pedro Alves <palves@redhat.com> | |
18647 | ||
18648 | * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c. | |
18649 | * windows-tdep.c: New enumeration of WINDOWS_SIG* signals. | |
18650 | (windows_gdb_signal_to_target): New function, uses the above | |
18651 | enumeration to convert GDB internal signal codes to equivalent | |
18652 | Windows codes. | |
18653 | (windows_init_abi): Call set_gdbarch_gdb_signal_to_target. | |
18654 | * windows-nat.c: Include "gdb_wait.h". | |
18655 | (get_windows_debug_event): Extract the fatal exception from the | |
18656 | exit status and convert to the equivalent Posix signal number. | |
18657 | * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the | |
18658 | possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN. | |
18659 | * gdbsupport/gdb_wait.c: New file, implements | |
18660 | windows_status_to_termsig. | |
18661 | * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS) | |
18662 | (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW. | |
18663 | ||
18664 | 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com> | |
18665 | ||
18666 | * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not | |
18667 | show_layout. | |
18668 | ||
18669 | 2020-01-05 Luis Machado <luis.machado@linaro.org> | |
18670 | ||
18671 | * aarch64-linux-nat.c | |
18672 | (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64 | |
18673 | and bfd_mach_aarch64. | |
18674 | ||
18675 | 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
18676 | ||
18677 | * ui-file.c (stdio_file::can_emit_style_escape) | |
18678 | (tee_file::can_emit_style_escape): Ensure style is used also on | |
18679 | gdb_stderr when gdb_stderr is a tty supporting styling, similarly | |
18680 | to gdb_stdout. | |
18681 | * main.c (set_gdb_data_directory): Use file style to output the | |
18682 | warning that the given pathname is not a directory. | |
18683 | * top.c (show_history_filename, gdb_safe_append_history) | |
18684 | (show_gdb_datadir): Use file style. | |
18685 | ||
18686 | 2020-01-03 Hannes Domani <ssbssa@yahoo.de> | |
18687 | ||
18688 | * solib-target.c (struct lm_info_target): | |
18689 | Change offsets to be a unique_xmalloc_ptr. | |
18690 | (solib_target_relocate_section_addresses): Update. | |
18691 | ||
18692 | 2020-01-03 Hannes Domani <ssbssa@yahoo.de> | |
18693 | ||
18694 | * windows-nat.c (windows_clear_solib): Free so_list linked list. | |
18695 | ||
18696 | 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de> | |
18697 | ||
18698 | * MAINTAINERS (Write After Approval): Add myself. | |
18699 | ||
18700 | 2020-01-02 Luis Machado <luis.machado@linaro.org> | |
18701 | ||
18702 | * proc-service.c (get_ps_regcache): Remove reference to obsolete | |
18703 | Cell BE architecture. | |
18704 | * target.h (struct target_ops) <thread_architecture>: Likewise. | |
18705 | ||
18706 | 2020-01-01 Hannes Domani <ssbssa@yahoo.de> | |
18707 | ||
18708 | * Makefile.in: Use INSTALL_PROGRAM_ENV. | |
18709 | ||
18710 | 2020-01-01 Hannes Domani <ssbssa@yahoo.de> | |
18711 | ||
18712 | * MAINTAINERS (Write After Approval): Add myself. | |
18713 | ||
18714 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> | |
18715 | ||
18716 | * gdbarch.sh: Update copyright year range of generated files. | |
18717 | ||
18718 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> | |
18719 | ||
18720 | Update copyright year range in all GDB files. | |
18721 | ||
18722 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> | |
18723 | ||
18724 | * copyright.py: Convert to Python 3. | |
18725 | ||
18726 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> | |
18727 | ||
18728 | * copyright.py: Adapt after move of gnulib directory from gdb | |
18729 | directory to toplevel directory. | |
18730 | ||
18731 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> | |
18732 | ||
18733 | * copyright.py (main): Exit if run from the wrong directory. | |
18734 | ||
18735 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> | |
18736 | ||
18737 | * top.c (print_gdb_version): Change copyright year to 2020. | |
18738 | ||
18739 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> | |
18740 | ||
18741 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019. | |
18742 | ||
18743 | For older changes see ChangeLog-2019. | |
18744 | \f | |
18745 | Local Variables: | |
18746 | mode: change-log | |
18747 | left-margin: 8 | |
18748 | fill-column: 74 | |
18749 | version-control: never | |
18750 | coding: utf-8 | |
18751 | End: |