Commit | Line | Data |
---|---|---|
af30c400 TT |
1 | 2020-11-25 Tom Tromey <tom@tromey.com> |
2 | ||
3 | * d-lang.c: Include parser-defs.h. | |
4 | * rust-lang.c: Include parser-defs.h. | |
5 | * c-lang.h: Do not include parser-defs.h. | |
6 | ||
1c64f6cb SM |
7 | 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca> |
8 | ||
9 | * regcache.h (struct cached_reg): Remove typedef. | |
10 | ||
2c20a601 JB |
11 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> |
12 | ||
13 | * README: Fix the URL of the MPFR library. | |
14 | ||
c609df64 JB |
15 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> |
16 | ||
17 | * README: Document the --with-libgmp-prefix configure option. | |
18 | ||
fa123c32 JB |
19 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> |
20 | ||
21 | * NEWS: Add entry documenting support for DWARF-based fixed | |
22 | point types. | |
23 | ||
0fb8bb02 JB |
24 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> |
25 | ||
26 | * NEWS: Document that building GDB now requires GMP. | |
27 | ||
4afa9fd9 JB |
28 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> |
29 | ||
30 | * typeprint.c (print_type_scalar): Add handling of | |
31 | TYPE_CODE_FIXED_POINT. | |
32 | ||
af619ce9 JB |
33 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> |
34 | ||
35 | * valarith.c (fixed_point_binop): Replace the | |
36 | INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all | |
37 | users accordingly. | |
38 | ||
e6fcee3a JB |
39 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> |
40 | ||
41 | * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method, | |
42 | replacing fixed_point_scaling_factor. All callers updated | |
43 | throughout this project. | |
44 | (fixed_point_scaling_factor): Delete declaration. | |
45 | * gdbtypes.c (type::fixed_point_scaling_factor): Replaces | |
46 | fixed_point_scaling_factor. Adjust implementation accordingly. | |
47 | ||
d19937a7 JB |
48 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> |
49 | ||
50 | * gdbtypes.h (struct type) <fixed_point_type_base_type> New method, | |
51 | replacing the fixed_point_type_base_type function. All callers | |
52 | updated throughout this project. | |
53 | (fixed_point_type_base_type): Remove declaration. | |
54 | * gdbtypes.c (type::fixed_point_type_base_type): Replaces | |
55 | fixed_point_type_base_type. Adjust implementation accordingly. | |
56 | ||
2a12c336 JB |
57 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> |
58 | ||
59 | * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>: | |
60 | New methods. | |
61 | (INIT_FIXED_POINT_SPECIFIC): Adjust. | |
62 | (TYPE_FIXED_POINT_INFO): Delete macro. | |
63 | (allocate_fixed_point_type_info): Change return type to void. | |
64 | * gdbtypes.c (copy_type_recursive): Replace the use of | |
65 | TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method. | |
66 | (fixed_point_scaling_factor): Likewise. | |
67 | (allocate_fixed_point_type_info): Change return type to void. | |
68 | Adjust implementation accordingly. | |
69 | * dwarf2/read.c (finish_fixed_point_type): Replace the use of | |
70 | TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method. | |
71 | ||
c9f0b43f JB |
72 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> |
73 | ||
74 | * gmp-utils.h (gdb_mpz::read): Change buf and len parameters | |
75 | into one single gdb::array_view parameter. | |
76 | (gdb_mpz::write): Likewise. | |
77 | (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise. | |
78 | * gmp-utils.c (gdb_mpz::read): Change buf and len parameters | |
79 | into one single gdb::array_view parameter. | |
80 | Adjust implementation accordingly. | |
81 | (gdb_mpz::write): Likewise. | |
82 | (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise. | |
83 | * unittests/gmp-utils-selftests.c: Adapt following changes above. | |
84 | * valarith.c, valops.c, valprint.c, value.c: Likewise. | |
85 | ||
987b6703 JB |
86 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> |
87 | ||
88 | * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf. | |
89 | Change return type to std::string. Update all callers. | |
90 | * gmp-utils.c (gmp_string_printf): Likewise. | |
91 | ||
4fbb7cce JB |
92 | 2020-11-24 Joel Brobecker <brobecker@adacore.com> |
93 | ||
94 | * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si | |
95 | instead of mpq_set_ui to initialize our GMP rational. | |
96 | ||
d6ab69dd TV |
97 | 2020-11-23 Tom de Vries <tdevries@suse.de> |
98 | ||
99 | * debuginfod-support.c (debuginfod_source_query) | |
100 | (debuginfod_debuginfo_query): Only set DESTNAME if successful. | |
101 | ||
dab72643 TT |
102 | 2020-11-21 Tom Tromey <tom@tromey.com> |
103 | ||
104 | * breakpoint.c (watchpoint_exp_is_const): Return bool. | |
105 | ||
c0ad05d5 SM |
106 | 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca> |
107 | ||
108 | * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small): | |
109 | Pass 2.0 to pow. | |
110 | (gdb_mpz_write_all_from_small): Likewise. | |
111 | ||
a43b29c9 SM |
112 | 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca> |
113 | ||
114 | * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead | |
115 | of abs. | |
116 | ||
ae41200b NA |
117 | 2020-11-20 Nick Alcock <nick.alcock@oracle.com> |
118 | ||
119 | * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not | |
120 | ctf_arc_open_by_name. | |
121 | ||
139633c3 NA |
122 | 2020-11-20 Nick Alcock <nick.alcock@oracle.com> |
123 | ||
124 | * ctfread.c: Change uses of ctf_file_t to ctf_dict_t. | |
125 | (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close. | |
126 | ||
cbbcd7a7 PA |
127 | 2020-11-20 Pedro Alves <pedro@palves.net> |
128 | ||
129 | * language.c (language_arch_info::lookup_primitive_type): Use | |
130 | gdb::function_view instead of gdb::function. | |
131 | (template language_lookup_primitive_type): Rename to ... | |
132 | (language_lookup_primitive_type_1): ... this, and make static. | |
133 | (language_lookup_primitive_type(const struct language_defn *, | |
134 | struct gdbarch *, const char *): Make non-template. | |
135 | (language_lookup_primitive_type(const struct language_defn *, | |
136 | struct gdbarch *, std::function<bool (struct type *)>): Make | |
137 | non-template and use gdb::function_view. | |
138 | * language.h (language_arch_info::lookup_primitive_type): Use | |
139 | gdb::function_view instead of std::function. | |
140 | (language_lookup_primitive_type): No longer template. | |
141 | * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a | |
142 | lambda instead of a std::function. | |
143 | ||
d5ef21c3 AA |
144 | 2020-11-19 Andreas Arnez <arnez@linux.ibm.com> |
145 | ||
146 | PR tdep/26916 | |
147 | * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG, | |
148 | and STOCFH. | |
149 | ||
a5adb8f3 SM |
150 | 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca> |
151 | ||
152 | * f-lang.c (fortran_value_subarray): Use plongest/pulongest. | |
153 | ||
70125a45 SM |
154 | 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca> |
155 | ||
156 | * gdbarch.sh (read_core_file_mappings): Remove `other` parameter | |
157 | in `loop_cb` parameter. | |
158 | * gdbarch.c: Re-generate. | |
159 | * gdbarch.h: Re-generate. | |
160 | * arch-utils.c (default_read_core_file_mappings): Remove `other` | |
161 | parameter. | |
162 | * arch-utils.h (default_read_core_file_mappings): Likewise. | |
163 | * corelow.c (core_target::build_file_mappings): Likewise. | |
164 | * linux-tdep.c (linux_read_core_file_mappings): Likewise. | |
165 | (linux_core_info_proc_mappings): Likewise. | |
166 | ||
a5c641b5 AB |
167 | 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com> |
168 | ||
169 | * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h. | |
170 | * NEWS: Mention new options. | |
171 | * f-array-walker.h: New file. | |
172 | * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'. | |
173 | (repack_array_slices): New static global. | |
174 | (show_repack_array_slices): New function. | |
175 | (fortran_array_slicing_debug): New static global. | |
176 | (show_fortran_array_slicing_debug): New function. | |
177 | (value_f90_subarray): Delete. | |
178 | (skip_undetermined_arglist): Delete. | |
179 | (class fortran_array_repacker_base_impl): New class. | |
180 | (class fortran_lazy_array_repacker_impl): New class. | |
181 | (class fortran_array_repacker_impl): New class. | |
182 | (fortran_value_subarray): Complete rewrite. | |
183 | (set_fortran_list): New static global. | |
184 | (show_fortran_list): Likewise. | |
185 | (_initialize_f_language): Register new commands. | |
186 | (fortran_adjust_dynamic_array_base_address_hack): New function. | |
187 | * f-lang.h (fortran_adjust_dynamic_array_base_address_hack): | |
188 | Declare. | |
189 | * f-valprint.c: Include 'f-array-walker.h'. | |
190 | (class fortran_array_printer_impl): New class. | |
191 | (f77_print_array_1): Delete. | |
192 | (f77_print_array): Delete. | |
193 | (fortran_print_array): New. | |
194 | (f_value_print_inner): Update to call fortran_print_array. | |
195 | * gdbtypes.c: Include 'f-lang.h'. | |
196 | (resolve_dynamic_type_internal): Call | |
197 | fortran_adjust_dynamic_array_base_address_hack. | |
198 | ||
a15a5258 AB |
199 | 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com> |
200 | ||
201 | * breakpoint.c (struct watch_options): New struct. | |
202 | (watch_option_defs): New static global. | |
203 | (make_watch_options_def_group): New function. | |
204 | (watch_maybe_just_location): Convert option parsing. | |
205 | (watch_command_completer): New function. | |
206 | (_initialize_breakpoint): Build help text using options mechanism. | |
207 | ||
2e362716 AB |
208 | 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com> |
209 | ||
210 | * breakpoint.c (update_watchpoint): Pass 'false' not '0'. | |
211 | (watch_command_1): Update parameter types. Convert locals to | |
212 | bool. | |
213 | (watch_command_wrapper): Change parameter type. | |
214 | (watch_maybe_just_location): Change locals to bool. | |
215 | (rwatch_command_wrapper): Update parameter type. | |
216 | (awatch_command_wrapper): Update parameter type. | |
217 | * breakpoint.h (watch_command_wrapper): Change parameter type. | |
218 | (rwatch_command_wrapper): Update parameter type. | |
219 | (awatch_command_wrapper): Update parameter type. | |
220 | * eval.c (fetch_subexp_value): Change parameter type. | |
221 | * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass | |
222 | 'false' not '0'. | |
223 | * value.h (fetch_subexp_value): Change parameter type in | |
224 | declaration. | |
225 | ||
b3ff61f8 AB |
226 | 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com> |
227 | ||
228 | * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and | |
229 | skip_spaces. | |
230 | ||
5b7d45d3 KS |
231 | 2020-11-18 Keith Seitz <keiths@redhat.com> |
232 | ||
233 | * linux-tdep.c (dump_note_entry_p): Return true instead of | |
234 | checking `filename'. | |
235 | ||
c44191f8 TV |
236 | 2020-11-18 Tom de Vries <tdevries@suse.de> |
237 | ||
238 | * debuginfod-support.c (debuginfod_source_query) | |
239 | (debuginfod_debuginfo_query): Also do early exit if | |
240 | "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'". | |
241 | ||
5d8254e1 TV |
242 | 2020-11-18 Tom de Vries <tdevries@suse.de> |
243 | ||
244 | * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare | |
245 | warning. | |
246 | ||
584903d3 SM |
247 | 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca> |
248 | ||
249 | * gdbtypes.h (get_array_bounds): Return bool, adjust some | |
250 | callers. Move doc here. | |
251 | * gdbtypes.c (get_array_bounds): Return bool | |
252 | ||
6f2643db AB |
253 | 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com> |
254 | ||
255 | * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an | |
256 | assert. | |
257 | * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise. | |
258 | * disasm-selftests.c (print_one_insn_test): Fall throough from ARC | |
259 | case to the default. | |
260 | ||
037d7135 AB |
261 | 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com> |
262 | ||
263 | * printcmd.c: Include 'safe-ctype.c'. | |
264 | (skip_over_slash_fmt): New function. | |
265 | (print_command_completer): Call skip_over_slash_fmt. | |
266 | (display_and_x_command_completer): New function. | |
267 | (_initialize_printcmd): Add command completion for 'x' and | |
268 | 'display'. | |
269 | ||
2b3cb400 PA |
270 | 2020-11-16 Pedro Alves <pedro@palves.net> |
271 | ||
272 | * frame.c (get_prev_frame): Move get_frame_id call from here ... | |
273 | (get_prev_frame_always_1): ... to here. | |
274 | * inline-frame.c (inline_frame_this_id): Mention | |
275 | get_prev_frame_always_1 in comment. | |
276 | ||
b74dbc20 JB |
277 | 2020-11-15 Joel Brobecker <brobecker@adacore.com> |
278 | ||
279 | * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS | |
280 | handling. | |
281 | (value_less): Add fixed-point handling. | |
282 | ||
0a12719e JB |
283 | 2020-11-15 Joel Brobecker <brobecker@adacore.com> |
284 | ||
285 | * eval.c (binop_promote): Add fixed-point type handling. | |
286 | * valarith.c (fixed_point_binop): New function. | |
287 | (scalar_binop): Add fixed-point type handling. | |
288 | (value_neg): Add fixed-point type handling. | |
289 | * valops.c (value_cast_to_fixed_point): New function. | |
290 | (value_cast): Add fixed-point type handling. | |
291 | ||
0c9150e4 JB |
292 | 2020-11-15 Joel Brobecker <brobecker@adacore.com> |
293 | ||
294 | * ada-typeprint.c (ada_print_type): Add handing of fixed-point | |
295 | range types. | |
296 | * c-typeprint.c (c_type_print_varspec_prefix) | |
297 | (c_type_print_varspec_suffix, c_type_print_base_1): Add | |
298 | TYPE_CODE_FIXED_POINT handling. | |
299 | * p-typeprint.c (pascal_type_print_varspec_prefix) | |
300 | (pascal_type_print_varspec_suffix): Likewise. | |
301 | * typeprint.c (print_type_fixed_point): New function. | |
302 | * typeprint.h (print_type_fixed_point): Add declaration. | |
303 | ||
b26daff9 JB |
304 | 2020-11-15 Joel Brobecker <brobecker@adacore.com> |
305 | ||
306 | * printcmd.c (print_scalar_formatted): Add fixed-point type | |
307 | handling when options->format is set. | |
308 | ||
09584414 JB |
309 | 2020-11-15 Joel Brobecker <brobecker@adacore.com> |
310 | ||
311 | * ada-valprint.c (ada_value_print_1): Add fixed-point type handling. | |
312 | * dwarf2/read.c (get_dwarf2_rational_constant) | |
313 | (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type) | |
314 | (has_zero_over_zero_small_attribute): New functions. | |
315 | read_base_type, set_die_type): Add fixed-point type handling. | |
316 | * gdb-gdb.py.in: Add fixed-point type handling. | |
317 | * gdbtypes.c: #include "gmp-utils.h". | |
318 | (create_range_type, set_type_code): Add fixed-point type handling. | |
319 | (init_fixed_point_type): New function. | |
320 | (is_integral_type, is_scalar_type): Add fixed-point type handling. | |
321 | (print_fixed_point_type_info): New function. | |
322 | (recursive_dump_type, copy_type_recursive): Add fixed-point type | |
323 | handling. | |
324 | (fixed_point_type_storage): New typedef. | |
325 | (fixed_point_objfile_key): New static global. | |
326 | (allocate_fixed_point_type_info, is_fixed_point_type): New functions. | |
327 | (fixed_point_type_base_type, fixed_point_scaling_factor): New | |
328 | functions. | |
329 | * gdbtypes.h: #include "gmp-utils.h". | |
330 | (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum. | |
331 | (union type_specific) <fixed_point_info>: New field. | |
332 | (struct fixed_point_type_info): New struct. | |
333 | (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros. | |
334 | (init_fixed_point_type, is_fixed_point_type) | |
335 | (fixed_point_type_base_type, fixed_point_scaling_factor) | |
336 | (allocate_fixed_point_type_info): Add declarations. | |
337 | * valprint.c (generic_val_print_fixed_point): New function. | |
338 | (generic_value_print): Add fixed-point type handling. | |
339 | * value.c (value_as_address, unpack_long): Add fixed-point type | |
340 | handling. | |
341 | ||
e55c6530 JB |
342 | 2020-11-15 Joel Brobecker <brobecker@adacore.com> |
343 | ||
344 | * utils.h (uinteger_pow): Add declaration. | |
345 | * utils.c (uinteger_pow): Moved here (without changes)... | |
346 | * valarith.c (uinteger_pow): ... from here. | |
347 | ||
b34c74ab JB |
348 | 2020-11-15 Joel Brobecker <brobecker@adacore.com> |
349 | ||
40d9d2fd | 350 | * gmp-utils.h, gmp-utils.c: New file. |
b34c74ab JB |
351 | * unittests/gmp-utils-selftests.c: New file. |
352 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
353 | unittests/gmp-utils-selftests.c. | |
354 | (COMMON_SFILES) Add gmp-utils.c. | |
355 | (HFILES_NO_SRCDIR): Add gmp-utils.h. | |
356 | ||
1b4ac058 JB |
357 | 2020-11-15 Joel Brobecker <brobecker@adacore.com> |
358 | ||
359 | * configure.ac: Generate an error if a usable GMP library | |
360 | could not be found. | |
361 | * configure: Regenerate. | |
362 | ||
2c947d9b JB |
363 | 2020-11-15 Joel Brobecker <brobecker@adacore.com> |
364 | ||
365 | * configure.ac: Add support for --with-libgmp-prefix. | |
366 | * Makefile.in (LIBGMP): New variable. | |
367 | (CLIBS): Include $(LIBGMP). | |
368 | * configure, config.in: Regenerate | |
369 | ||
9dd02fc0 AB |
370 | 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com> |
371 | ||
372 | PR cli/26879 | |
373 | * f-exp.y (COMPLETE): New token. | |
374 | (exp): Two new rules for tab-completion. | |
375 | (saw_name_at_eof): New static global. | |
376 | (last_was_structop): Likewise. | |
377 | (yylex): Set new variables, and return COMPLETE token at the end | |
378 | of the input stream in some cases. | |
379 | ||
758cb810 TT |
380 | 2020-11-14 Tom Tromey <tom@tromey.com> |
381 | ||
382 | * infrun.c (fetch_inferior_event): Use "bool" for should_stop. | |
383 | ||
749065b7 TT |
384 | 2020-11-14 Tom Tromey <tom@tromey.com> |
385 | ||
386 | * opencl-lang.c (opencl_component_ref): Make "comps" const. | |
387 | ||
2c5b1849 SM |
388 | 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca> |
389 | ||
390 | * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment. | |
391 | ||
e8b2f0d9 TT |
392 | 2020-11-13 Tom Tromey <tom@tromey.com> |
393 | ||
394 | * c-lang.c (convert_ucn, convert_octal, convert_hex) | |
395 | (convert_escape, parse_one_string): Constify. | |
396 | ||
25f4c262 KS |
397 | 2020-11-13 Keith Seitz <keiths@redhat.com> |
398 | ||
399 | https://bugzilla.redhat.com/show_bug.cgi?id=1553086 | |
400 | * elfread.c (elf_symfile_segments): Omit "Loadable section ... | |
401 | outside of ELF segments" warning for debugin | |
402 | ||
9d3ab915 KS |
403 | 2020-11-13 Keith Seitz <keiths@redhat.com> |
404 | ||
405 | PR gdb/23034 | |
406 | * elfread.c (elf_symfile_segments): Output a BFD file name | |
407 | for the "Loadable section ... outside of ELF segments" warning. | |
408 | ||
9ecab40c SM |
409 | 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca> |
410 | ||
411 | PR gdb/26835 | |
412 | * arm-tdep.c (class arm_instruction_reader): New. | |
413 | (target_arm_instruction_reader): New. | |
414 | (arm_analyze_prologue): Add instruction reader parameter and use | |
415 | it. Use arm_expand_immediate. | |
416 | (class target_arm_instruction_reader): Adjust. | |
417 | (arm_skip_prologue): Adjust. | |
418 | (arm_expand_immediate): New. | |
419 | (arm_scan_prologue): Adjust. | |
420 | (arm_analyze_prologue_test): New. | |
421 | (class test_arm_instruction_reader): New. | |
422 | ||
5a7cf527 AB |
423 | 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com> |
424 | ||
425 | * f-lang.c (fortran_argument_convert): Add declaration. Add | |
426 | header comment, taken from f-lang.h. Make static. | |
427 | * f-lang.h (f77_get_dynamic_array_length): Delete declaration. | |
428 | (fortran_argument_convert): Delete declaration. | |
429 | ||
7bea47f0 AB |
430 | 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com> |
431 | ||
432 | * ada-exp.y (find_primitive_type): Make parameter const. | |
433 | * ada-lang.c (enum ada_primitive_types): Delete. | |
434 | (ada_language::language_arch_info): Update. | |
435 | * c-lang.c (enum c_primitive_types): Delete. | |
436 | (c_language_arch_info): Update. | |
437 | (enum cplus_primitive_types): Delete. | |
438 | (cplus_language::language_arch_info): Update. | |
439 | * d-lang.c (enum d_primitive_types): Delete. | |
440 | (d_language::language_arch_info): Update. | |
441 | * f-lang.c (enum f_primitive_types): Delete. | |
442 | (f_language::language_arch_info): Update. | |
443 | * go-lang.c (enum go_primitive_types): Delete. | |
444 | (go_language::language_arch_info): Update. | |
445 | * language.c (auto_or_unknown_language::language_arch_info): | |
446 | Update. | |
447 | (language_gdbarch_post_init): Use obstack_new, use array indexing. | |
448 | (language_string_char_type): Add header comment, call function in | |
449 | language_arch_info. | |
450 | (language_bool_type): Likewise | |
451 | (language_arch_info::bool_type): Define. | |
452 | (language_lookup_primitive_type_1): Delete. | |
453 | (language_lookup_primitive_type): Rewrite as a templated function | |
454 | to call function in language_arch_info, then instantiate twice. | |
455 | (language_arch_info::type_and_symbol::alloc_type_symbol): Define. | |
456 | (language_arch_info::lookup_primitive_type_and_symbol): Define. | |
457 | (language_arch_info::lookup_primitive_type): Define twice with | |
458 | different signatures. | |
459 | (language_arch_info::lookup_primitive_type_as_symbol): Define. | |
460 | (language_lookup_primitive_type_as_symbol): Rewrite to call a | |
461 | member function in language_arch_info. | |
462 | * language.h (language_arch_info): Complete rewrite. | |
463 | (language_lookup_primitive_type): Make templated. | |
464 | * m2-lang.c (enum m2_primitive_types): Delete. | |
465 | (m2_language::language_arch_info): Update. | |
466 | * opencl-lang.c (OCL_P_TYPE): Delete. | |
467 | (enum opencl_primitive_types): Delete. | |
468 | (opencl_type_data): Delete. | |
469 | (builtin_opencl_type): Delete. | |
470 | (lookup_opencl_vector_type): Update. | |
471 | (opencl_language::language_arch_info): Update, lots of content | |
472 | moved from... | |
473 | (build_opencl_types): ...here. This function is now deleted. | |
474 | (_initialize_opencl_language): Delete. | |
475 | * p-lang.c (enum pascal_primitive_types): Delete. | |
476 | (pascal_language::language_arch_info): Update. | |
477 | * rust-lang.c (enum rust_primitive_types): Delete. | |
478 | (rust_language::language_arch_info): Update. | |
479 | ||
bf6e5d01 SM |
480 | 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca> |
481 | ||
482 | * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to | |
483 | dwarf2_queue_guard. | |
484 | ||
1350c3b4 SM |
485 | 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca> |
486 | ||
487 | * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in | |
488 | comment. | |
489 | ||
6f738b01 SM |
490 | 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca> |
491 | ||
492 | * dwarf2/read.c (dwarf_read_debug_printf, | |
493 | dwarf_read_debug_printf_v): New macros, use throughout the file. | |
494 | ||
10c19fad SV |
495 | 2020-11-12 Shahab Vahedi <shahab@synopsys.com> |
496 | ||
497 | * arc-linux-tdep.c (collect_register): Populate "eret" by | |
498 | "pc" value from the regcache when asked for "pc" value. | |
499 | ||
1f2624a3 TT |
500 | 2020-11-12 Tom Tromey <tom@tromey.com> |
501 | ||
502 | PR rust/26799: | |
503 | * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs | |
504 | exist. | |
505 | ||
ab33b152 AB |
506 | 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com> |
507 | ||
508 | * features/Makefile (XMLTOC): Add rx.xml. | |
509 | (FEATURE_XMLFILES): Remove rx.xml. | |
510 | (FEATURE_CFILES rule): Pass '-single-feature' flag. | |
511 | * features/rx.c: Regenerate. | |
512 | * features/rx.xml: Wrap in `target` tags, and reindent. | |
513 | * target-descriptions.c (struct maint_print_c_tdesc_options): New | |
514 | structure. | |
515 | (maint_print_c_tdesc_opt_def): New typedef. | |
516 | (maint_print_c_tdesc_opt_defs): New static global. | |
517 | (make_maint_print_c_tdesc_options_def_group): New function. | |
518 | (maint_print_c_tdesc_cmd): Make use of command line flags, only | |
519 | print single feature C file for target descriptions containing a | |
520 | single feature. | |
521 | (maint_print_c_tdesc_cmd_completer): New function. | |
522 | (_initialize_target_descriptions): Update call to register command | |
523 | completer, and include command line flag in help text. | |
524 | ||
550820e1 AB |
525 | 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com> |
526 | ||
527 | * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR | |
528 | numbers. | |
529 | * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New | |
530 | enum values. | |
531 | ||
baf20f76 TT |
532 | 2020-11-10 Tom Tromey <tom@tromey.com> |
533 | ||
534 | * value.h (internalvar_name): Update. | |
535 | * value.c (internalvar_name): Make return type const. | |
536 | ||
caaece0e TT |
537 | 2020-11-10 Tom Tromey <tom@tromey.com> |
538 | ||
539 | * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt) | |
540 | (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use | |
541 | const. | |
542 | ||
8e20b4be TT |
543 | 2020-11-10 Tom Tromey <tom@tromey.com> |
544 | ||
545 | * objc-lang.h (value_nsstring): Update. | |
546 | * objc-lang.c (value_nsstring): Make "ptr" const. | |
547 | ||
86775fab AB |
548 | 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com> |
549 | ||
550 | * expprint.c (print_subexp_funcall): Increment expression position | |
551 | after reading argument count. | |
552 | * f-lang.c (print_subexp_f): Skip over opcode before calling | |
553 | common function. | |
554 | (dump_subexp_body_f): Likewise. | |
555 | ||
3fed4c0b RG |
556 | 2020-11-06 Romain Geissler <romain.geissler@amadeus.com> |
557 | ||
558 | PR python/26832 | |
559 | * configure: Regenerate. | |
560 | * configure.ac: Check for python modules ctypes instead of | |
561 | itertools. | |
562 | ||
ac3d4064 PA |
563 | 2020-11-06 Pedro Alves <pedro@palves.net> |
564 | ||
565 | * macroexp.c (struct macro_buffer): Split in two classes. Add | |
566 | uses adjusted. | |
567 | (struct shared_macro_buffer): New, factored out from struct | |
568 | macro_buffer. | |
569 | (struct growable_macro_buffer): New, factored out from struct | |
570 | macro_buffer. | |
571 | (set_token, get_comment, get_identifier, get_pp_number) | |
572 | (get_character_constant, get_string_literal, get_punctuator) | |
573 | (get_next_token_for_substitution): Constify parameters. | |
574 | (substitute_args): Constify locals. | |
575 | ||
606decb2 TT |
576 | 2020-11-05 Tom Tromey <tom@tromey.com> |
577 | ||
578 | * dwarf2/read.c (read_cutu_die_from_dwo) | |
579 | (cutu_reader::cutu_reader, cutu_reader::cutu_reader) | |
580 | (build_type_psymtabs_1): Update. | |
581 | * dwarf2/abbrev.h (struct abbrev_table): Remove objfile | |
582 | parameter. | |
583 | * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter. | |
584 | Don't read section. Add assert. | |
585 | ||
9c91c725 TT |
586 | 2020-11-04 Tom Tromey <tromey@adacore.com> |
587 | ||
588 | * ada-typeprint.c (ada_print_type): Handle __XVL fields. | |
589 | ||
8d9fd3a1 TT |
590 | 2020-11-04 Tom Tromey <tromey@adacore.com> |
591 | ||
592 | * ada-typeprint.c (ada_print_type): Handle __T types. | |
593 | ||
d8f62e84 TT |
594 | 2020-11-04 Tom Tromey <tromey@adacore.com> |
595 | ||
596 | * dwarf2/read.c (add_partial_symbol, process_die): | |
597 | Handle DW_TAG_array_type. | |
598 | (is_type_tag_for_partial): Add "lang" parameter. | |
599 | (load_partial_dies, new_symbol): Handle DW_TAG_array_type. | |
600 | ||
7ff5b937 TT |
601 | 2020-11-04 Tom Tromey <tromey@adacore.com> |
602 | ||
603 | * ada-lang.c (ada_value_slice_from_ptr): Use bit size. | |
604 | ||
10f6a3ad TT |
605 | 2020-11-04 Tom Tromey <tromey@adacore.com> |
606 | ||
607 | * dwarf2/read.c (read_array_type): Only apply stride to innermost | |
608 | array. | |
609 | ||
b72795a8 TT |
610 | 2020-11-04 Tom Tromey <tromey@adacore.com> |
611 | ||
612 | * gdbtypes.c (update_static_array_size): Handle bit stride. | |
613 | ||
24aa1b02 TT |
614 | 2020-11-04 Tom Tromey <tromey@adacore.com> |
615 | ||
616 | * ada-lang.c (ada_value_struct_elt): Resolve dynamic type. | |
617 | ||
c9a28cbe TT |
618 | 2020-11-04 Tom Tromey <tromey@adacore.com> |
619 | ||
620 | * ada-lang.c (ada_is_any_packed_array_type): New function. | |
621 | (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it. | |
622 | ||
57567375 TT |
623 | 2020-11-04 Tom Tromey <tromey@adacore.com> |
624 | ||
625 | * dwarf2/read.c (recognize_bound_expression) | |
626 | (quirk_ada_thick_pointer): New functions. | |
627 | (read_array_type): Call quirk_ada_thick_pointer. | |
628 | (set_die_type): Add "skip_data_location" parameter. | |
629 | (quirk_ada_thick_pointer): New function. | |
630 | (process_structure_scope): Call quirk_ada_thick_pointer. | |
631 | * ada-lang.c (ada_is_unconstrained_packed_array_type) | |
632 | (decode_packed_array_bitsize): Handle thick pointers without | |
633 | parallel types. | |
634 | (ada_is_gnat_encoded_packed_array_type): Rename from | |
635 | ada_is_packed_array_type. | |
636 | (ada_is_constrained_packed_array_type): Update. | |
637 | * ada-valprint.c (ada_val_print_gnat_array): Remove. | |
638 | (ada_value_print_1): Use ada_get_decoded_value. | |
639 | ||
a7400e44 TT |
640 | 2020-11-04 Tom Tromey <tromey@adacore.com> |
641 | ||
642 | * ada-lang.c (recursively_update_array_bitsize): New function. | |
643 | (decode_constrained_packed_array_type): Call it. | |
644 | ||
75fd6a26 TT |
645 | 2020-11-04 Tom Tromey <tromey@adacore.com> |
646 | ||
647 | * ada-lang.c (to_fixed_array_type): Error if | |
648 | decode_constrained_packed_array_type returns NULL. | |
649 | ||
93f9561e TT |
650 | 2020-11-04 Tom Tromey <tromey@adacore.com> |
651 | ||
652 | * dwarf2/leb.h (read_3_bytes): Use bfd_get_24. | |
653 | ||
257e02d8 TT |
654 | 2020-11-02 Tom Tromey <tromey@adacore.com> |
655 | ||
656 | * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o. | |
657 | (ALLDEPFILES): Add amd64-ravenscar-thread.c. | |
658 | (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h. | |
659 | * amd64-ravenscar-thread.c: New file. | |
660 | * amd64-ravenscar-thread.h: New file. | |
661 | * amd64-tdep.c (amd64_init_abi): Register ravenscar ops. | |
662 | * configure.tgt (amd64_tobjs): Add ravenscar objects. | |
663 | ||
74d877e5 AB |
664 | 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com> |
665 | ||
666 | * main.c (execute_cmdargs): New function. | |
667 | (captured_main_1): Make use of execute_cmdargs. | |
668 | ||
64aaad63 AB |
669 | 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com> |
670 | ||
671 | * NEWS: Mention changes to config file search path. | |
672 | * main.c | |
673 | ||
5b3d3560 TT |
674 | 2020-11-02 Tom Tromey <tromey@adacore.com> |
675 | ||
676 | * python/python.c: Consolidate two HAVE_PYTHON blocks. | |
677 | (python_GdbModuleDef): Move earlier. Now static. | |
678 | (do_start_initialization): Consolidate some IS_PY3K blocks. | |
679 | ||
dda83cd7 SM |
680 | 2020-11-02 Simon Marchi <simon.marchi@efficios.com> |
681 | ||
682 | * aarch64-linux-tdep.c: Fix indentation. | |
683 | * aarch64-ravenscar-thread.c: Fix indentation. | |
684 | * aarch64-tdep.c: Fix indentation. | |
685 | * aarch64-tdep.h: Fix indentation. | |
686 | * ada-lang.c: Fix indentation. | |
687 | * ada-lang.h: Fix indentation. | |
688 | * ada-tasks.c: Fix indentation. | |
689 | * ada-typeprint.c: Fix indentation. | |
690 | * ada-valprint.c: Fix indentation. | |
691 | * ada-varobj.c: Fix indentation. | |
692 | * addrmap.c: Fix indentation. | |
693 | * addrmap.h: Fix indentation. | |
694 | * agent.c: Fix indentation. | |
695 | * aix-thread.c: Fix indentation. | |
696 | * alpha-bsd-nat.c: Fix indentation. | |
697 | * alpha-linux-tdep.c: Fix indentation. | |
698 | * alpha-mdebug-tdep.c: Fix indentation. | |
699 | * alpha-nbsd-tdep.c: Fix indentation. | |
700 | * alpha-obsd-tdep.c: Fix indentation. | |
701 | * alpha-tdep.c: Fix indentation. | |
702 | * amd64-bsd-nat.c: Fix indentation. | |
703 | * amd64-darwin-tdep.c: Fix indentation. | |
704 | * amd64-linux-nat.c: Fix indentation. | |
705 | * amd64-linux-tdep.c: Fix indentation. | |
706 | * amd64-nat.c: Fix indentation. | |
707 | * amd64-obsd-tdep.c: Fix indentation. | |
708 | * amd64-tdep.c: Fix indentation. | |
709 | * amd64-windows-tdep.c: Fix indentation. | |
710 | * annotate.c: Fix indentation. | |
711 | * arc-tdep.c: Fix indentation. | |
712 | * arch-utils.c: Fix indentation. | |
713 | * arch/arm-get-next-pcs.c: Fix indentation. | |
714 | * arch/arm.c: Fix indentation. | |
715 | * arm-linux-nat.c: Fix indentation. | |
716 | * arm-linux-tdep.c: Fix indentation. | |
717 | * arm-nbsd-tdep.c: Fix indentation. | |
718 | * arm-pikeos-tdep.c: Fix indentation. | |
719 | * arm-tdep.c: Fix indentation. | |
720 | * arm-tdep.h: Fix indentation. | |
721 | * arm-wince-tdep.c: Fix indentation. | |
722 | * auto-load.c: Fix indentation. | |
723 | * auxv.c: Fix indentation. | |
724 | * avr-tdep.c: Fix indentation. | |
725 | * ax-gdb.c: Fix indentation. | |
726 | * ax-general.c: Fix indentation. | |
727 | * bfin-linux-tdep.c: Fix indentation. | |
728 | * block.c: Fix indentation. | |
729 | * block.h: Fix indentation. | |
730 | * blockframe.c: Fix indentation. | |
731 | * bpf-tdep.c: Fix indentation. | |
732 | * break-catch-sig.c: Fix indentation. | |
733 | * break-catch-syscall.c: Fix indentation. | |
734 | * break-catch-throw.c: Fix indentation. | |
735 | * breakpoint.c: Fix indentation. | |
736 | * breakpoint.h: Fix indentation. | |
737 | * bsd-uthread.c: Fix indentation. | |
738 | * btrace.c: Fix indentation. | |
739 | * build-id.c: Fix indentation. | |
740 | * buildsym-legacy.h: Fix indentation. | |
741 | * buildsym.c: Fix indentation. | |
742 | * c-typeprint.c: Fix indentation. | |
743 | * c-valprint.c: Fix indentation. | |
744 | * c-varobj.c: Fix indentation. | |
745 | * charset.c: Fix indentation. | |
746 | * cli/cli-cmds.c: Fix indentation. | |
747 | * cli/cli-decode.c: Fix indentation. | |
748 | * cli/cli-decode.h: Fix indentation. | |
749 | * cli/cli-script.c: Fix indentation. | |
750 | * cli/cli-setshow.c: Fix indentation. | |
751 | * coff-pe-read.c: Fix indentation. | |
752 | * coffread.c: Fix indentation. | |
753 | * compile/compile-cplus-types.c: Fix indentation. | |
754 | * compile/compile-object-load.c: Fix indentation. | |
755 | * compile/compile-object-run.c: Fix indentation. | |
756 | * completer.c: Fix indentation. | |
757 | * corefile.c: Fix indentation. | |
758 | * corelow.c: Fix indentation. | |
759 | * cp-abi.h: Fix indentation. | |
760 | * cp-namespace.c: Fix indentation. | |
761 | * cp-support.c: Fix indentation. | |
762 | * cp-valprint.c: Fix indentation. | |
763 | * cris-linux-tdep.c: Fix indentation. | |
764 | * cris-tdep.c: Fix indentation. | |
765 | * darwin-nat-info.c: Fix indentation. | |
766 | * darwin-nat.c: Fix indentation. | |
767 | * darwin-nat.h: Fix indentation. | |
768 | * dbxread.c: Fix indentation. | |
769 | * dcache.c: Fix indentation. | |
770 | * disasm.c: Fix indentation. | |
771 | * dtrace-probe.c: Fix indentation. | |
772 | * dwarf2/abbrev.c: Fix indentation. | |
773 | * dwarf2/attribute.c: Fix indentation. | |
774 | * dwarf2/expr.c: Fix indentation. | |
775 | * dwarf2/frame.c: Fix indentation. | |
776 | * dwarf2/index-cache.c: Fix indentation. | |
777 | * dwarf2/index-write.c: Fix indentation. | |
778 | * dwarf2/line-header.c: Fix indentation. | |
779 | * dwarf2/loc.c: Fix indentation. | |
780 | * dwarf2/macro.c: Fix indentation. | |
781 | * dwarf2/read.c: Fix indentation. | |
782 | * dwarf2/read.h: Fix indentation. | |
783 | * elfread.c: Fix indentation. | |
784 | * eval.c: Fix indentation. | |
785 | * event-top.c: Fix indentation. | |
786 | * exec.c: Fix indentation. | |
787 | * exec.h: Fix indentation. | |
788 | * expprint.c: Fix indentation. | |
789 | * f-lang.c: Fix indentation. | |
790 | * f-typeprint.c: Fix indentation. | |
791 | * f-valprint.c: Fix indentation. | |
792 | * fbsd-nat.c: Fix indentation. | |
793 | * fbsd-tdep.c: Fix indentation. | |
794 | * findvar.c: Fix indentation. | |
795 | * fork-child.c: Fix indentation. | |
796 | * frame-unwind.c: Fix indentation. | |
797 | * frame-unwind.h: Fix indentation. | |
798 | * frame.c: Fix indentation. | |
799 | * frv-linux-tdep.c: Fix indentation. | |
800 | * frv-tdep.c: Fix indentation. | |
801 | * frv-tdep.h: Fix indentation. | |
802 | * ft32-tdep.c: Fix indentation. | |
803 | * gcore.c: Fix indentation. | |
804 | * gdb_bfd.c: Fix indentation. | |
805 | * gdbarch.sh: Fix indentation. | |
806 | * gdbarch.c: Re-generate | |
807 | * gdbarch.h: Re-generate. | |
808 | * gdbcore.h: Fix indentation. | |
809 | * gdbthread.h: Fix indentation. | |
810 | * gdbtypes.c: Fix indentation. | |
811 | * gdbtypes.h: Fix indentation. | |
812 | * glibc-tdep.c: Fix indentation. | |
813 | * gnu-nat.c: Fix indentation. | |
814 | * gnu-nat.h: Fix indentation. | |
815 | * gnu-v2-abi.c: Fix indentation. | |
816 | * gnu-v3-abi.c: Fix indentation. | |
817 | * go32-nat.c: Fix indentation. | |
818 | * guile/guile-internal.h: Fix indentation. | |
819 | * guile/scm-cmd.c: Fix indentation. | |
820 | * guile/scm-frame.c: Fix indentation. | |
821 | * guile/scm-iterator.c: Fix indentation. | |
822 | * guile/scm-math.c: Fix indentation. | |
823 | * guile/scm-ports.c: Fix indentation. | |
824 | * guile/scm-pretty-print.c: Fix indentation. | |
825 | * guile/scm-value.c: Fix indentation. | |
826 | * h8300-tdep.c: Fix indentation. | |
827 | * hppa-linux-nat.c: Fix indentation. | |
828 | * hppa-linux-tdep.c: Fix indentation. | |
829 | * hppa-nbsd-nat.c: Fix indentation. | |
830 | * hppa-nbsd-tdep.c: Fix indentation. | |
831 | * hppa-obsd-nat.c: Fix indentation. | |
832 | * hppa-tdep.c: Fix indentation. | |
833 | * hppa-tdep.h: Fix indentation. | |
834 | * i386-bsd-nat.c: Fix indentation. | |
835 | * i386-darwin-nat.c: Fix indentation. | |
836 | * i386-darwin-tdep.c: Fix indentation. | |
837 | * i386-dicos-tdep.c: Fix indentation. | |
838 | * i386-gnu-nat.c: Fix indentation. | |
839 | * i386-linux-nat.c: Fix indentation. | |
840 | * i386-linux-tdep.c: Fix indentation. | |
841 | * i386-nto-tdep.c: Fix indentation. | |
842 | * i386-obsd-tdep.c: Fix indentation. | |
843 | * i386-sol2-nat.c: Fix indentation. | |
844 | * i386-tdep.c: Fix indentation. | |
845 | * i386-tdep.h: Fix indentation. | |
846 | * i386-windows-tdep.c: Fix indentation. | |
847 | * i387-tdep.c: Fix indentation. | |
848 | * i387-tdep.h: Fix indentation. | |
849 | * ia64-libunwind-tdep.c: Fix indentation. | |
850 | * ia64-libunwind-tdep.h: Fix indentation. | |
851 | * ia64-linux-nat.c: Fix indentation. | |
852 | * ia64-linux-tdep.c: Fix indentation. | |
853 | * ia64-tdep.c: Fix indentation. | |
854 | * ia64-tdep.h: Fix indentation. | |
855 | * ia64-vms-tdep.c: Fix indentation. | |
856 | * infcall.c: Fix indentation. | |
857 | * infcmd.c: Fix indentation. | |
858 | * inferior.c: Fix indentation. | |
859 | * infrun.c: Fix indentation. | |
860 | * iq2000-tdep.c: Fix indentation. | |
861 | * language.c: Fix indentation. | |
862 | * linespec.c: Fix indentation. | |
863 | * linux-fork.c: Fix indentation. | |
864 | * linux-nat.c: Fix indentation. | |
865 | * linux-tdep.c: Fix indentation. | |
866 | * linux-thread-db.c: Fix indentation. | |
867 | * lm32-tdep.c: Fix indentation. | |
868 | * m2-lang.c: Fix indentation. | |
869 | * m2-typeprint.c: Fix indentation. | |
870 | * m2-valprint.c: Fix indentation. | |
871 | * m32c-tdep.c: Fix indentation. | |
872 | * m32r-linux-tdep.c: Fix indentation. | |
873 | * m32r-tdep.c: Fix indentation. | |
874 | * m68hc11-tdep.c: Fix indentation. | |
875 | * m68k-bsd-nat.c: Fix indentation. | |
876 | * m68k-linux-nat.c: Fix indentation. | |
877 | * m68k-linux-tdep.c: Fix indentation. | |
878 | * m68k-tdep.c: Fix indentation. | |
879 | * machoread.c: Fix indentation. | |
880 | * macrocmd.c: Fix indentation. | |
881 | * macroexp.c: Fix indentation. | |
882 | * macroscope.c: Fix indentation. | |
883 | * macrotab.c: Fix indentation. | |
884 | * macrotab.h: Fix indentation. | |
885 | * main.c: Fix indentation. | |
886 | * mdebugread.c: Fix indentation. | |
887 | * mep-tdep.c: Fix indentation. | |
888 | * mi/mi-cmd-catch.c: Fix indentation. | |
889 | * mi/mi-cmd-disas.c: Fix indentation. | |
890 | * mi/mi-cmd-env.c: Fix indentation. | |
891 | * mi/mi-cmd-stack.c: Fix indentation. | |
892 | * mi/mi-cmd-var.c: Fix indentation. | |
893 | * mi/mi-cmds.c: Fix indentation. | |
894 | * mi/mi-main.c: Fix indentation. | |
895 | * mi/mi-parse.c: Fix indentation. | |
896 | * microblaze-tdep.c: Fix indentation. | |
897 | * minidebug.c: Fix indentation. | |
898 | * minsyms.c: Fix indentation. | |
899 | * mips-linux-nat.c: Fix indentation. | |
900 | * mips-linux-tdep.c: Fix indentation. | |
901 | * mips-nbsd-tdep.c: Fix indentation. | |
902 | * mips-tdep.c: Fix indentation. | |
903 | * mn10300-linux-tdep.c: Fix indentation. | |
904 | * mn10300-tdep.c: Fix indentation. | |
905 | * moxie-tdep.c: Fix indentation. | |
906 | * msp430-tdep.c: Fix indentation. | |
907 | * namespace.h: Fix indentation. | |
908 | * nat/fork-inferior.c: Fix indentation. | |
909 | * nat/gdb_ptrace.h: Fix indentation. | |
910 | * nat/linux-namespaces.c: Fix indentation. | |
911 | * nat/linux-osdata.c: Fix indentation. | |
912 | * nat/netbsd-nat.c: Fix indentation. | |
913 | * nat/x86-dregs.c: Fix indentation. | |
914 | * nbsd-nat.c: Fix indentation. | |
915 | * nbsd-tdep.c: Fix indentation. | |
916 | * nios2-linux-tdep.c: Fix indentation. | |
917 | * nios2-tdep.c: Fix indentation. | |
918 | * nto-procfs.c: Fix indentation. | |
919 | * nto-tdep.c: Fix indentation. | |
920 | * objfiles.c: Fix indentation. | |
921 | * objfiles.h: Fix indentation. | |
922 | * opencl-lang.c: Fix indentation. | |
923 | * or1k-tdep.c: Fix indentation. | |
924 | * osabi.c: Fix indentation. | |
925 | * osabi.h: Fix indentation. | |
926 | * osdata.c: Fix indentation. | |
927 | * p-lang.c: Fix indentation. | |
928 | * p-typeprint.c: Fix indentation. | |
929 | * p-valprint.c: Fix indentation. | |
930 | * parse.c: Fix indentation. | |
931 | * ppc-linux-nat.c: Fix indentation. | |
932 | * ppc-linux-tdep.c: Fix indentation. | |
933 | * ppc-nbsd-nat.c: Fix indentation. | |
934 | * ppc-nbsd-tdep.c: Fix indentation. | |
935 | * ppc-obsd-nat.c: Fix indentation. | |
936 | * ppc-ravenscar-thread.c: Fix indentation. | |
937 | * ppc-sysv-tdep.c: Fix indentation. | |
938 | * ppc64-tdep.c: Fix indentation. | |
939 | * printcmd.c: Fix indentation. | |
940 | * proc-api.c: Fix indentation. | |
941 | * producer.c: Fix indentation. | |
942 | * producer.h: Fix indentation. | |
943 | * prologue-value.c: Fix indentation. | |
944 | * prologue-value.h: Fix indentation. | |
945 | * psymtab.c: Fix indentation. | |
946 | * python/py-arch.c: Fix indentation. | |
947 | * python/py-bpevent.c: Fix indentation. | |
948 | * python/py-event.c: Fix indentation. | |
949 | * python/py-event.h: Fix indentation. | |
950 | * python/py-finishbreakpoint.c: Fix indentation. | |
951 | * python/py-frame.c: Fix indentation. | |
952 | * python/py-framefilter.c: Fix indentation. | |
953 | * python/py-inferior.c: Fix indentation. | |
954 | * python/py-infthread.c: Fix indentation. | |
955 | * python/py-objfile.c: Fix indentation. | |
956 | * python/py-prettyprint.c: Fix indentation. | |
957 | * python/py-registers.c: Fix indentation. | |
958 | * python/py-signalevent.c: Fix indentation. | |
959 | * python/py-stopevent.c: Fix indentation. | |
960 | * python/py-stopevent.h: Fix indentation. | |
961 | * python/py-threadevent.c: Fix indentation. | |
962 | * python/py-tui.c: Fix indentation. | |
963 | * python/py-unwind.c: Fix indentation. | |
964 | * python/py-value.c: Fix indentation. | |
965 | * python/py-xmethods.c: Fix indentation. | |
966 | * python/python-internal.h: Fix indentation. | |
967 | * python/python.c: Fix indentation. | |
968 | * ravenscar-thread.c: Fix indentation. | |
969 | * record-btrace.c: Fix indentation. | |
970 | * record-full.c: Fix indentation. | |
971 | * record.c: Fix indentation. | |
972 | * reggroups.c: Fix indentation. | |
973 | * regset.h: Fix indentation. | |
974 | * remote-fileio.c: Fix indentation. | |
975 | * remote.c: Fix indentation. | |
976 | * reverse.c: Fix indentation. | |
977 | * riscv-linux-tdep.c: Fix indentation. | |
978 | * riscv-ravenscar-thread.c: Fix indentation. | |
979 | * riscv-tdep.c: Fix indentation. | |
980 | * rl78-tdep.c: Fix indentation. | |
981 | * rs6000-aix-tdep.c: Fix indentation. | |
982 | * rs6000-lynx178-tdep.c: Fix indentation. | |
983 | * rs6000-nat.c: Fix indentation. | |
984 | * rs6000-tdep.c: Fix indentation. | |
985 | * rust-lang.c: Fix indentation. | |
986 | * rx-tdep.c: Fix indentation. | |
987 | * s12z-tdep.c: Fix indentation. | |
988 | * s390-linux-tdep.c: Fix indentation. | |
989 | * score-tdep.c: Fix indentation. | |
990 | * ser-base.c: Fix indentation. | |
991 | * ser-mingw.c: Fix indentation. | |
992 | * ser-uds.c: Fix indentation. | |
993 | * ser-unix.c: Fix indentation. | |
994 | * serial.c: Fix indentation. | |
995 | * sh-linux-tdep.c: Fix indentation. | |
996 | * sh-nbsd-tdep.c: Fix indentation. | |
997 | * sh-tdep.c: Fix indentation. | |
998 | * skip.c: Fix indentation. | |
999 | * sol-thread.c: Fix indentation. | |
1000 | * solib-aix.c: Fix indentation. | |
1001 | * solib-darwin.c: Fix indentation. | |
1002 | * solib-frv.c: Fix indentation. | |
1003 | * solib-svr4.c: Fix indentation. | |
1004 | * solib.c: Fix indentation. | |
1005 | * source.c: Fix indentation. | |
1006 | * sparc-linux-tdep.c: Fix indentation. | |
1007 | * sparc-nbsd-tdep.c: Fix indentation. | |
1008 | * sparc-obsd-tdep.c: Fix indentation. | |
1009 | * sparc-ravenscar-thread.c: Fix indentation. | |
1010 | * sparc-tdep.c: Fix indentation. | |
1011 | * sparc64-linux-tdep.c: Fix indentation. | |
1012 | * sparc64-nbsd-tdep.c: Fix indentation. | |
1013 | * sparc64-obsd-tdep.c: Fix indentation. | |
1014 | * sparc64-tdep.c: Fix indentation. | |
1015 | * stabsread.c: Fix indentation. | |
1016 | * stack.c: Fix indentation. | |
1017 | * stap-probe.c: Fix indentation. | |
1018 | * stubs/ia64vms-stub.c: Fix indentation. | |
1019 | * stubs/m32r-stub.c: Fix indentation. | |
1020 | * stubs/m68k-stub.c: Fix indentation. | |
1021 | * stubs/sh-stub.c: Fix indentation. | |
1022 | * stubs/sparc-stub.c: Fix indentation. | |
1023 | * symfile-mem.c: Fix indentation. | |
1024 | * symfile.c: Fix indentation. | |
1025 | * symfile.h: Fix indentation. | |
1026 | * symmisc.c: Fix indentation. | |
1027 | * symtab.c: Fix indentation. | |
1028 | * symtab.h: Fix indentation. | |
1029 | * target-float.c: Fix indentation. | |
1030 | * target.c: Fix indentation. | |
1031 | * target.h: Fix indentation. | |
1032 | * tic6x-tdep.c: Fix indentation. | |
1033 | * tilegx-linux-tdep.c: Fix indentation. | |
1034 | * tilegx-tdep.c: Fix indentation. | |
1035 | * top.c: Fix indentation. | |
1036 | * tracefile-tfile.c: Fix indentation. | |
1037 | * tracepoint.c: Fix indentation. | |
1038 | * tui/tui-disasm.c: Fix indentation. | |
1039 | * tui/tui-io.c: Fix indentation. | |
1040 | * tui/tui-regs.c: Fix indentation. | |
1041 | * tui/tui-stack.c: Fix indentation. | |
1042 | * tui/tui-win.c: Fix indentation. | |
1043 | * tui/tui-winsource.c: Fix indentation. | |
1044 | * tui/tui.c: Fix indentation. | |
1045 | * typeprint.c: Fix indentation. | |
1046 | * ui-out.h: Fix indentation. | |
1047 | * unittests/copy_bitwise-selftests.c: Fix indentation. | |
1048 | * unittests/memory-map-selftests.c: Fix indentation. | |
1049 | * utils.c: Fix indentation. | |
1050 | * v850-tdep.c: Fix indentation. | |
1051 | * valarith.c: Fix indentation. | |
1052 | * valops.c: Fix indentation. | |
1053 | * valprint.c: Fix indentation. | |
1054 | * valprint.h: Fix indentation. | |
1055 | * value.c: Fix indentation. | |
1056 | * value.h: Fix indentation. | |
1057 | * varobj.c: Fix indentation. | |
1058 | * vax-tdep.c: Fix indentation. | |
1059 | * windows-nat.c: Fix indentation. | |
1060 | * windows-tdep.c: Fix indentation. | |
1061 | * xcoffread.c: Fix indentation. | |
1062 | * xml-syscall.c: Fix indentation. | |
1063 | * xml-tdesc.c: Fix indentation. | |
1064 | * xstormy16-tdep.c: Fix indentation. | |
1065 | * xtensa-config.c: Fix indentation. | |
1066 | * xtensa-linux-nat.c: Fix indentation. | |
1067 | * xtensa-linux-tdep.c: Fix indentation. | |
1068 | * xtensa-tdep.c: Fix indentation. | |
1069 | ||
e1f57067 AB |
1070 | 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com> |
1071 | Craig Blackmore <craig.blackmore@embecosm.com> | |
1072 | ||
1073 | * riscv-tdep.c (riscv_frame_cache): Read the frame base register | |
1074 | as an unsigned value. | |
1075 | ||
ae7754b2 TT |
1076 | 2020-11-01 Tom Tromey <tom@tromey.com> |
1077 | ||
1078 | * dbxread.c (dbx_end_psymtab): Update. | |
1079 | * dwarf2/read.c (process_psymtab_comp_unit_reader) | |
1080 | (build_type_psymtabs_reader): Update. | |
1081 | * xcoffread.c (xcoff_end_psymtab): Update. | |
1082 | * ctfread.c (scan_partial_symbols): Update. | |
1083 | * psymtab.c (sort_pst_symbols): Remove. | |
1084 | (partial_symtab::end): Rename from end_psymtab_common. Inline | |
1085 | sort_pst_symbols. | |
1086 | * psympriv.h (struct partial_symtab) <end>: New method. | |
1087 | (end_psymtab_common): Don't declare. | |
1088 | ||
0684bb51 TT |
1089 | 2020-11-01 Tom Tromey <tom@tromey.com> |
1090 | ||
1091 | * symmisc.c (count_psyms): New function. | |
1092 | (print_objfile_statistics): Use it. | |
1093 | * psymtab.c (append_psymbol_to_list): Remove. | |
1094 | (partial_symtab::add_psymbol): Inline append_psymbol_to_list. | |
1095 | * objfiles.h (struct objstats) <n_psyms>: Remove. | |
1096 | ||
089002bb TT |
1097 | 2020-11-01 Tom Tromey <tom@tromey.com> |
1098 | ||
1099 | * dbxread.c (dbx_end_psymtab): Update. | |
1100 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Update. | |
1101 | (build_type_psymtabs_reader): Update. | |
1102 | * xcoffread.c (xcoff_end_psymtab): Update. | |
1103 | * ctfread.c (scan_partial_symbols): Update. | |
1104 | * psympriv.h (end_psymtab_common): Update. | |
1105 | * psymtab.c (end_psymtab_common): Remove objfile parameter. | |
1106 | (sort_pst_symbols): Likewise. | |
1107 | ||
525454d6 TT |
1108 | 2020-11-01 Tom Tromey <tom@tromey.com> |
1109 | ||
1110 | * dbxread.c (dbx_symfile_read): Update. | |
1111 | * dwarf2/read.c (dwarf2_build_psymtabs): Update. | |
1112 | * xcoffread.c (xcoff_initial_scan): Update. | |
1113 | * psympriv.h (init_psymbol_list): Don't declare. | |
1114 | * psymtab.c (init_psymbol_list): Remove. | |
1115 | ||
60bd1d53 JB |
1116 | 2020-11-01 Joel Brobecker <brobecker@adacore.com> |
1117 | ||
1118 | * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames | |
1119 | gnat_encoded_fixed_type_info. Update all callers. | |
1120 | ||
db99d0d0 JB |
1121 | 2020-11-01 Joel Brobecker <brobecker@adacore.com> |
1122 | ||
1123 | * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split | |
1124 | line too long. | |
1125 | ||
75f24e86 JB |
1126 | 2020-11-01 Joel Brobecker <brobecker@adacore.com> |
1127 | ||
1128 | * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames | |
1129 | cast_from_fixed. Update all callers. | |
1130 | (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed. | |
1131 | Update all callers. | |
1132 | (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor. | |
1133 | Update all callers. | |
1134 | * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames | |
1135 | ada_scaling_factor. | |
1136 | * ada-typeprint.c: Replace call to ada_scaling_factor by call | |
1137 | to print_gnat_encoded_fixed_point_type. | |
1138 | * ada-valprint.c: Likewise. | |
1139 | ||
4f0469cd AB |
1140 | 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com> |
1141 | ||
1142 | * infrun.h (infrun_debug_printf): Add check of debug_infrun flag. | |
1143 | (debug_prefixed_printf): Add check of debug_displaced flag. | |
1144 | * linux-nat.c (linux_nat_debug_printf): Add check of | |
1145 | debug_linux_nat flag. | |
1146 | ||
17417fb0 SM |
1147 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> |
1148 | ||
1149 | * infrun.c (infrun_debug_printf_1): Remove. | |
1150 | (displaced_debug_printf_1): Remove. | |
1151 | (stop_all_threads): Use debug_prefixed_printf. | |
1152 | * infrun.h (infrun_debug_printf_1): Remove. | |
1153 | (infrun_debug_printf): Use debug_prefixed_printf. | |
1154 | (displaced_debug_printf_1): Remove. | |
1155 | (displaced_debug_printf): Use debug_prefixed_printf. | |
1156 | * linux-nat.c (linux_nat_debug_printf_1): Remove. | |
1157 | (linux_nat_debug_printf): Use debug_prefixed_printf. | |
1158 | ||
ad6dba1c SM |
1159 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> |
1160 | ||
1161 | * configure: Re-generate. | |
1162 | * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE + | |
1163 | AC_LANG_PROGRAM. | |
1164 | ||
b6fb30ed SM |
1165 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> |
1166 | ||
1167 | * configure: Re-generate. | |
1168 | ||
5164c117 SM |
1169 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> |
1170 | ||
1171 | * configure: Re-generate. | |
1172 | ||
864ca435 SM |
1173 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> |
1174 | ||
1175 | * configure: Re-generate. | |
1176 | ||
b9442ec1 SM |
1177 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> |
1178 | ||
1179 | * configure: Re-generate. | |
1180 | ||
294f2697 SM |
1181 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> |
1182 | ||
1183 | * acinclude.m4: Modernize. | |
1184 | * configure: Re-generate. | |
1185 | ||
5593a99a SM |
1186 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> |
1187 | ||
1188 | * configure.ac: Modernize. | |
1189 | * configure: Re-generate. | |
1190 | ||
e41fda1d SM |
1191 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> |
1192 | ||
1193 | * acinclude.m4 (AM_PROG_CC_STDC): Remove. | |
1194 | * configure: Re-generate. | |
1195 | * configure.ac: Remove AM_PROG_CC_STDC. | |
1196 | ||
91e1a0ed SM |
1197 | 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> |
1198 | ||
1199 | * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of | |
1200 | AC_CANONICAL_SYSTEM. | |
1201 | * configure: Re-generate. | |
1202 | ||
136821d9 SM |
1203 | 2020-10-30 Simon Marchi <simon.marchi@efficios.com> |
1204 | ||
1205 | * infrun.h (displaced_debug_printf): New macro. Replace | |
1206 | displaced debug prints throughout to use it. | |
1207 | (displaced_debug_printf_1): New declaration. | |
1208 | (displaced_step_dump_bytes): Return string, remove ui_file | |
1209 | parameter, update all callers. | |
1210 | * infrun.c (displaced_debug_printf_1): New function. | |
1211 | (displaced_step_dump_bytes): Return string, remove ui_file | |
1212 | parameter | |
1213 | ||
aa2045e7 SM |
1214 | 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca> |
1215 | ||
1216 | * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for | |
1217 | ||
b1ec2735 TT |
1218 | 2020-10-30 Tom Tromey <tromey@adacore.com> |
1219 | ||
1220 | * Makefile.in (stamp-init): Depend on config.status. | |
1221 | ||
b78b3a29 TBA |
1222 | 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1223 | ||
1224 | * infrun.c (fetch_inferior_event): Temporarily disable pagination. | |
1225 | ||
d70bdd3c PA |
1226 | 2020-10-30 Pedro Alves <pedro@palves.net> |
1227 | ||
1228 | * thread.c (lookup_selected_frame): Move ... | |
1229 | * frame.c (lookup_selected_frame): ... here. | |
1230 | ||
79952e69 PA |
1231 | 2020-10-30 Pedro Alves <pedro@palves.net> |
1232 | ||
1233 | * blockframe.c (block_innermost_frame): Use get_selected_frame. | |
1234 | * frame.c | |
1235 | (scoped_restore_selected_frame::scoped_restore_selected_frame): | |
1236 | Use save_selected_frame. Save language as well. | |
1237 | (scoped_restore_selected_frame::~scoped_restore_selected_frame): | |
1238 | Use restore_selected_frame, and restore language as well. | |
1239 | (selected_frame_id, selected_frame_level): New. | |
1240 | (selected_frame): Update comments. | |
1241 | (save_selected_frame, restore_selected_frame): New. | |
1242 | (get_selected_frame): Use lookup_selected_frame. | |
1243 | (get_selected_frame_if_set): Delete. | |
1244 | (select_frame): Record selected_frame_level and selected_frame_id. | |
1245 | * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New | |
1246 | fields. | |
1247 | (get_selected_frame): Make 'message' parameter optional. | |
1248 | (get_selected_frame_if_set): Delete declaration. | |
1249 | (select_frame): Update comments. | |
1250 | (save_selected_frame, restore_selected_frame) | |
1251 | (lookup_selected_frame): Declare. | |
1252 | * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field. | |
1253 | * infrun.c (struct infcall_control_state) <selected_frame_level>: | |
1254 | New field. | |
1255 | (save_infcall_control_state): Use save_selected_frame. | |
1256 | (restore_selected_frame): Delete. | |
1257 | (restore_infcall_control_state): Use restore_selected_frame. | |
1258 | * stack.c (select_frame_command_core, frame_command_core): Use | |
1259 | get_selected_frame. | |
1260 | * thread.c (restore_selected_frame): Rename to ... | |
1261 | (lookup_selected_frame): ... this and make extern. Select the | |
1262 | current frame if the frame level is -1. | |
1263 | (scoped_restore_current_thread::restore): Also restore the | |
1264 | language. | |
1265 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
1266 | Don't try/catch. | |
1267 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
1268 | Save the language as well. Use save_selected_frame. | |
1269 | ||
58103c33 SM |
1270 | 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca> |
1271 | ||
1272 | * gdbarch.sh (displaced_step_hw_singlestep): Adjust | |
1273 | documentation. | |
1274 | * gdbarch.h: Re-generate. | |
1275 | ||
40a53766 SM |
1276 | 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca> |
1277 | ||
1278 | * gdbarch.sh (displaced_step_hw_singlestep): Remove closure | |
1279 | parameter. | |
1280 | * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): | |
1281 | Likewise. | |
1282 | * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep): | |
1283 | Likewise. | |
1284 | * arch-utils.c (default_displaced_step_hw_singlestep): | |
1285 | Likewise. | |
1286 | * arch-utils.h (default_displaced_step_hw_singlestep): | |
1287 | Likewise. | |
1288 | * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): | |
1289 | Likewise. | |
1290 | * s390-tdep.c (s390_displaced_step_hw_singlestep): | |
1291 | Likewise. | |
1292 | * gdbarch.c: Re-generate. | |
1293 | * gdbarch.h: Re-generate. | |
1294 | * infrun.c (resume_1): Adjust. | |
1295 | ||
8407f91b TT |
1296 | 2020-10-29 Tom Tromey <tom@tromey.com> |
1297 | ||
1298 | * progspace.c (program_space::~program_space): Don't call | |
1299 | exec_close. | |
1300 | ||
5008b3b2 TT |
1301 | 2020-10-29 Tom Tromey <tom@tromey.com> |
1302 | ||
1303 | * exec.c (exec_target::close): Don't change current program | |
1304 | space. | |
1305 | ||
d9eebde0 TT |
1306 | 2020-10-29 Tom Tromey <tom@tromey.com> |
1307 | ||
1308 | * symfile.c (add_symbol_file_command): Update. | |
1309 | * exec.c (program_space::add_target_sections): Rename. | |
1310 | * symfile-mem.c (symbol_file_add_from_memory): Update. | |
1311 | * progspace.h (struct program_space) <add_target_sections>: | |
1312 | Declare new overload. | |
1313 | * exec.h (add_target_sections_of_objfile): Don't declare. | |
1314 | ||
3769e227 TT |
1315 | 2020-10-29 Tom Tromey <tom@tromey.com> |
1316 | ||
1317 | * solib.c (solib_map_sections): Update. | |
1318 | * exec.c (program_space::add_target_sections): Now a method. | |
1319 | (exec_file_attach): Update. | |
1320 | * exec.h (add_target_sections): Don't declare. | |
1321 | * progspace.h (struct program_space) <add_target_sections>: | |
1322 | Declare. | |
1323 | ||
2a3f84af TT |
1324 | 2020-10-29 Tom Tromey <tom@tromey.com> |
1325 | ||
1326 | * progspace.h (struct program_space) <remove_target_sections>: | |
1327 | Declare. | |
1328 | * exec.c (program_space::remove_target_sections): Now a method. | |
1329 | * exec.h (remove_target_sections): Don't declare. | |
1330 | ||
004eecfd TT |
1331 | 2020-10-29 Tom Tromey <tom@tromey.com> |
1332 | ||
1333 | * inferior.c (delete_inferior): Update. | |
1334 | * progspace.c (program_space::empty): Rename from | |
1335 | program_space_empty_p. Return bool. | |
1336 | * progspace.h (struct program_space) <empty>: New method. | |
1337 | (program_space_empty_p): Don't declare. | |
1338 | ||
e39fb971 TT |
1339 | 2020-10-29 Tom Tromey <tom@tromey.com> |
1340 | ||
1341 | * progspace.c (program_space::~program_space): Don't call | |
1342 | clear_program_space_solib_cache. | |
1343 | (program_space::clear_solib_cache): Rename from | |
1344 | clear_solib_cache. | |
1345 | * solib.c (handle_solib_event): Update. | |
1346 | * progspace.h (struct program_space) <clear_solib_cache>: New | |
1347 | method. | |
1348 | (clear_program_space_solib_cache): Don't declare. | |
1349 | ||
a42d7dd8 TT |
1350 | 2020-10-29 Tom Tromey <tom@tromey.com> |
1351 | ||
1352 | * windows-tdep.c (windows_solib_create_inferior_hook): Update. | |
1353 | * target.c (info_target_command): Update. | |
1354 | * symfile.c (syms_from_objfile_1, finish_new_objfile) | |
1355 | (symbol_file_clear, reread_symbols): Update. | |
1356 | * symfile-mem.c (add_symbol_file_from_memory_command): Update. | |
1357 | * stabsread.c (scan_file_globals): Update. | |
1358 | * solib.c (update_solib_list): Update. | |
1359 | * solib-svr4.c (elf_locate_base, open_symbol_file_object) | |
1360 | (svr4_fetch_objfile_link_map, enable_break) | |
1361 | (svr4_relocate_main_executable) | |
1362 | (svr4_iterate_over_objfiles_in_search_order): Update. | |
1363 | * solib-frv.c (lm_base, enable_break) | |
1364 | (frv_relocate_main_executable): Update. | |
1365 | (main_got, frv_fdpic_find_canonical_descriptor): Update. | |
1366 | (frv_fetch_objfile_link_map): Update. | |
1367 | * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update. | |
1368 | * solib-darwin.c (darwin_solib_create_inferior_hook): Update. | |
1369 | * solib-aix.c (solib_aix_solib_create_inferior_hook): Update. | |
1370 | * remote.c (remote_target::get_offsets): Update. | |
1371 | (remote_target::start_remote) | |
1372 | (extended_remote_target::post_attach): Update. | |
1373 | * objfiles.c (entry_point_address_query): Update. | |
1374 | * nto-procfs.c (nto_procfs_target::create_inferior): Update. | |
1375 | * minsyms.c (get_symbol_leading_char): Update. | |
1376 | * frame.c (inside_main_func): Update. | |
1377 | * progspace.h (symfile_objfile): Remove macro. | |
1378 | ||
19f6550e TT |
1379 | 2020-10-29 Tom Tromey <tom@tromey.com> |
1380 | ||
1381 | * exec.c (exec_file_attach): Update. | |
1382 | * progspace.c (program_space::exec_close): Update. | |
1383 | * progspace.h (struct program_space) <ebfd>: Now a | |
1384 | gdb_bfd_ref_ptr. | |
1385 | <set_exec_bfd>: Change argument type. | |
1386 | <exec_bfd>: Update. | |
1387 | ||
7e10abd1 TT |
1388 | 2020-10-29 Tom Tromey <tom@tromey.com> |
1389 | ||
1390 | * windows-tdep.c (windows_solib_create_inferior_hook): Update. | |
1391 | * symfile.c (reread_symbols): Update. | |
1392 | * symfile-mem.c (add_symbol_file_from_memory_command) | |
1393 | (add_vsyscall_page): Update. | |
1394 | * source-cache.c (source_cache::get_plain_source_lines): Update. | |
1395 | * solib-svr4.c (find_program_interpreter, elf_locate_base) | |
1396 | (svr4_current_sos_direct, svr4_exec_displacement) | |
1397 | (svr4_relocate_main_executable): Update. | |
1398 | (svr4_iterate_over_objfiles_in_search_order): Update. | |
1399 | * solib-frv.c (enable_break2, enable_break): Update. | |
1400 | * solib-dsbt.c (lm_base, enable_break): Update. | |
1401 | * solib-darwin.c (find_program_interpreter) | |
1402 | (darwin_solib_create_inferior_hook): Update. | |
1403 | * sol-thread.c (rw_common, ps_pdmodel): Update. | |
1404 | * rs6000-nat.c (rs6000_nat_target::create_inferior): Update. | |
1405 | * remote.c (compare_sections_command) | |
1406 | (remote_target::trace_set_readonly_regions): Update. | |
1407 | * remote-sim.c (get_sim_inferior_data) | |
1408 | (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update. | |
1409 | (gdbsim_target_open, gdbsim_target::files_info): Update. | |
1410 | * exec.h (exec_bfd): Remove macro. | |
1411 | * progspace.c (initialize_progspace): Update. | |
1412 | * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): | |
1413 | Update. | |
1414 | * nto-procfs.c (nto_procfs_target::post_attach) | |
1415 | (nto_procfs_target::create_inferior): Update. | |
1416 | * maint.c (maintenance_info_sections): Update. | |
1417 | * linux-thread-db.c (thread_db_target::get_thread_local_address): | |
1418 | Update. | |
1419 | * infcmd.c (post_create_inferior): Update. | |
1420 | * gcore.c (default_gcore_arch, default_gcore_target): Update. | |
1421 | (objfile_find_memory_regions): Update. | |
1422 | * exec.c (validate_exec_file, exec_file_attach) | |
1423 | (exec_read_partial_read_only, print_section_info): Update. | |
1424 | * corelow.c (core_target_open): Update. | |
1425 | * corefile.c (reopen_exec_file, validate_files): Update. | |
1426 | * arm-tdep.c (gdb_print_insn_arm): Update. | |
1427 | * arch-utils.c (gdbarch_update_p, default_print_insn): Update. | |
1428 | * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New | |
1429 | methods. | |
1430 | ||
b55221ab TT |
1431 | 2020-10-29 Tom Tromey <tom@tromey.com> |
1432 | ||
1433 | * progspace.h (current_target_sections): Remove macro. | |
1434 | * solib-svr4.c (scan_dyntag): Update. | |
1435 | * solib-dsbt.c (scan_dyntag): Update. | |
1436 | * exec.c (exec_target::close): Update. | |
1437 | (add_target_sections, add_target_sections_of_objfile) | |
1438 | (remove_target_sections, exec_target::get_section_table) | |
1439 | (exec_target::files_info, set_section_command) | |
1440 | (exec_set_section_address, exec_target::has_memory) | |
1441 | (exec_target::has_memory): Update. | |
1442 | ||
5a36e715 TT |
1443 | 2020-10-29 Tom Tromey <tom@tromey.com> |
1444 | ||
1445 | * source-cache.c (source_cache::get_plain_source_lines): Use | |
1446 | current_program_space. | |
1447 | * corefile.c (reopen_exec_file): Use current_program_space. | |
1448 | * exec.c (exec_file_attach): Use current_program_space. | |
1449 | * exec.h (exec_bfd_mtime): Remove. | |
1450 | ||
784c8592 TT |
1451 | 2020-10-29 Tom Tromey <tom@tromey.com> |
1452 | ||
1453 | * gcore.c (default_gcore_mach): Remove. | |
1454 | (create_gcore_bfd): Update. | |
1455 | ||
8a4f1402 TT |
1456 | 2020-10-29 Tom Tromey <tom@tromey.com> |
1457 | ||
1458 | * progspace.c (program_space::exec_close): New method, from | |
1459 | exec_close in exec.c. | |
1460 | * exec.c (exec_close): Move to progspace.c. | |
1461 | (exec_target::close, exec_file_attach): Update. | |
1462 | * progspace.h (struct program_space) <exec_close>: Declare | |
1463 | method. | |
1464 | ||
c20cb686 TT |
1465 | 2020-10-29 Tom Tromey <tom@tromey.com> |
1466 | ||
1467 | * progspace.h (struct program_space) <exec_filename>: Rename from | |
1468 | pspace_exec_filename. Now a unique_xmalloc_ptr. | |
1469 | * inferior.c (print_selected_inferior): Update. | |
1470 | (print_inferior): Update. | |
1471 | * mi/mi-main.c (print_one_inferior): Update. | |
1472 | * exec.h (exec_filename): Remove macro. | |
1473 | * corefile.c (get_exec_file): Update. | |
1474 | * exec.c (exec_close): Update. | |
1475 | (exec_file_attach): Update. | |
1476 | * progspace.c (clone_program_space): Update. | |
1477 | (print_program_space): Update. | |
1478 | ||
6be2a9ab TT |
1479 | 2020-10-29 Tom Tromey <tom@tromey.com> |
1480 | ||
1481 | * target-section.h (struct target_section): Add constructor. | |
1482 | * exec.c (build_section_table, add_target_sections_of_objfile): | |
1483 | Update. | |
1484 | * corelow.c (core_target::build_file_mappings): Update. | |
1485 | ||
cfaa8f76 TBA |
1486 | 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1487 | ||
1488 | PR gdb/19318 | |
1489 | * inferior.c (detach_inferior_command): Restore the current thread. | |
1490 | (kill_inferior_command): Ditto. | |
1491 | ||
1b00ef06 TV |
1492 | 2020-10-28 Tom de Vries <tdevries@suse.de> |
1493 | ||
1494 | PR symtab/26772 | |
1495 | * symtab.c (find_pc_sect_compunit_symtab): In case there's an address | |
1496 | map, check it in the "best match" loop. | |
1497 | ||
7f40ce1a SM |
1498 | 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca> |
1499 | ||
1500 | * m32c-tdep.c: Remove unused includes. | |
1501 | ||
5eb9e3f5 SM |
1502 | 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca> |
1503 | ||
1504 | * xtensa-tdep.c: Remove includes. | |
1505 | ||
b1d4d8d1 TBA |
1506 | 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1507 | ||
1508 | * breakpoint.c (struct condition_command_opts): New struct. | |
1509 | (condition_command_option_defs): New static global. | |
1510 | (make_condition_command_options_def_group): New function. | |
1511 | (condition_completer): Update to consider the '-force' flag. | |
1512 | (condition_command): Use gdb::option for the '-force' flag. | |
1513 | ||
bd24c5d6 TV |
1514 | 2020-10-27 Tom de Vries <tdevries@suse.de> |
1515 | ||
1516 | * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK | |
1517 | symbols in section check. | |
1518 | ||
61eb46a4 TV |
1519 | 2020-10-27 Tom de Vries <tdevries@suse.de> |
1520 | ||
1521 | * symtab.c (find_pc_sect_compunit_symtab): Use early continue. | |
1522 | ||
733d554a TBA |
1523 | 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1524 | ||
1525 | * breakpoint.h (set_breakpoint_condition): Add a new bool parameter. | |
1526 | * breakpoint.c: Update the help text of the 'condition' and 'break' | |
1527 | commands. | |
1528 | (set_breakpoint_condition): Take a new bool parameter | |
1529 | to control whether condition definition should be forced even when | |
1530 | the condition expression is invalid in all of the current locations. | |
1531 | (condition_command): Update the call to 'set_breakpoint_condition'. | |
1532 | (find_condition_and_thread): Take the "-force-condition" flag into | |
1533 | account. | |
1534 | * linespec.c (linespec_keywords): Add "-force-condition" as an | |
1535 | element. | |
1536 | (FORCE_KEYWORD_INDEX): New #define. | |
1537 | (linespec_lexer_lex_keyword): Update to consider "-force-condition" | |
1538 | as a keyword. | |
1539 | * ada-lang.c (create_ada_exception_catchpoint): Ditto. | |
1540 | * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto. | |
1541 | * python/py-breakpoint.c (bppy_set_condition): Ditto. | |
1542 | * NEWS: Mention the changes to the 'break' and 'condition' commands. | |
1543 | ||
b5fa468f TBA |
1544 | 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1545 | ||
1546 | * breakpoint.h (class bp_location) <disabled_by_cond>: New field. | |
1547 | * breakpoint.c (set_breakpoint_location_condition): New function. | |
1548 | (set_breakpoint_condition): Disable a breakpoint location if parsing | |
1549 | the condition string gives an error. | |
1550 | (should_be_inserted): Update to consider the 'disabled_by_cond' field. | |
1551 | (build_target_condition_list): Ditto. | |
1552 | (build_target_command_list): Ditto. | |
1553 | (build_bpstat_chain): Ditto. | |
1554 | (print_one_breakpoint_location): Ditto. | |
1555 | (print_one_breakpoint): Ditto. | |
1556 | (breakpoint_1): Ditto. | |
1557 | (bp_location::bp_location): Ditto. | |
1558 | (locations_are_equal): Ditto. | |
1559 | (update_breakpoint_locations): Ditto. | |
1560 | (enable_disable_bp_num_loc): Ditto. | |
1561 | (init_breakpoint_sal): Use set_breakpoint_location_condition. | |
1562 | (find_condition_and_thread_for_sals): New static function. | |
1563 | (create_breakpoint): Call find_condition_and_thread_for_sals. | |
1564 | (location_to_sals): Call find_condition_and_thread_for_sals instead | |
1565 | of find_condition_and_thread. | |
1566 | ||
1c47ec3e TV |
1567 | 2020-10-26 Tom de Vries <tdevries@suse.de> |
1568 | ||
1569 | * dwarf2/read.c (process_full_comp_unit): Call | |
1570 | dwarf2_find_base_address. | |
1571 | ||
6390859c TT |
1572 | 2020-10-26 Tom Tromey <tromey@adacore.com> |
1573 | ||
1574 | * gdbtypes.c (create_range_type): Revert previous patch. Add | |
1575 | comment. | |
1576 | ||
d744f0f9 PA |
1577 | 2020-10-26 Pedro Alves <pedro@palves.net> |
1578 | ||
1579 | * nat/linux-waitpid.c: Include "gdbsupport/eintr.h". | |
1580 | (my_waitpid): Use gdb::handle_eintr. | |
1581 | ||
006811bc SM |
1582 | 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca> |
1583 | ||
1584 | * acinclude.m4: Update ptrace.m4 path. | |
1585 | * ptrace.m4: Moved to gdbsupport. | |
1586 | ||
c75e31a1 SM |
1587 | 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca> |
1588 | ||
1589 | * symfile-mem.c (add_vsyscall_page): Use inferior parameter | |
1590 | instead of target_gdbarch. | |
1591 | ||
32495661 SM |
1592 | 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca> |
1593 | ||
1594 | * jit.c (jit_reader_load_command): Pass current inferior. | |
1595 | (jit_inferior_init): Change parameter type to inferior, use it. | |
1596 | (jit_inferior_created): Remove. | |
1597 | (jit_inferior_created_hook): Pass inferior parameter down. | |
1598 | (_initialize_jit): Use jit_inferior_created_hook instead of | |
1599 | jit_inferior_created. | |
1600 | * jit.h (jit_inferior_created_hook): Add inferior parameter. | |
1601 | * infrun.c (follow_exec): Pass inferior to | |
1602 | jit_inferior_created_hook. | |
1603 | ||
3f66685e SM |
1604 | 2020-10-24 Simon Marchi <simon.marchi@efficios.com> |
1605 | ||
1606 | * linux-thread-db.c (check_pid_namespace_match): Add inferior | |
1607 | parameter and use it. | |
1608 | (thread_db_inferior_created): Pass inferior argument. | |
1609 | ||
a0ff652f SM |
1610 | 2020-10-24 Simon Marchi <simon.marchi@efficios.com> |
1611 | ||
1612 | * aix-thread.c (aix_thread_inferior_created): Add inferior | |
1613 | parameter. | |
1614 | * bsd-uthread.c (bsd_uthread_inferior_created): Likewise. | |
1615 | * dummy-frame.c (cleanup_dummy_frames): Likewise. | |
1616 | * jit.c (jit_inferior_created): Likewise. | |
1617 | * linux-thread-db.c (thread_db_inferior_created): Likewise. | |
1618 | * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise. | |
1619 | * observable.h (inferior_created): Likewise. | |
1620 | * ravenscar-thread.c (ravenscar_inferior_created): Likewise. | |
1621 | * symfile-mem.c (add_vsyscall_page): Likewise. | |
1622 | * infcmd.c (post_create_inferior): Pass inferior argument. | |
1623 | ||
3c67532c JB |
1624 | 2020-10-24 Joel Brobecker <brobecker@adacore.com> |
1625 | ||
1626 | GDB 10.1 released. | |
1627 | ||
8747316e JB |
1628 | 2020-10-23 Joel Brobecker <brobecker@adacore.com> |
1629 | ||
1630 | * ada-typeprint.c (ada_print_type): Remove superfluous second call | |
1631 | to ada_check_typedef. | |
1632 | ||
1a0ea399 AB |
1633 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1634 | ||
1635 | * f-exp.y (f_parse): Rename to... | |
1636 | (f_language::parser): ...this. | |
1637 | * f-lang.c (f_get_encoding): Rename to... | |
1638 | (f_language::get_encoding): ...this. | |
1639 | (f_op_print_tab): Rename to... | |
1640 | (f_language::op_print_tab): ...this. | |
1641 | (exp_descriptor_f): Rename to... | |
1642 | (f_language::exp_descriptor_tab): ...this. | |
1643 | (class f_language): Moved to f-lang.h. | |
1644 | (f_language::language_arch_info): New function, moved out of class | |
1645 | declaration. | |
1646 | (f_language::search_name_hash): Likewise. | |
1647 | (f_language::lookup_symbol_nonlocal): Likewise. | |
1648 | (f_language::get_symbol_name_matcher_inner): Likewise. | |
1649 | * f-lang.h: Add 'valprint.h' include. | |
1650 | (class f_language): Moved here from f-lang.c. | |
1651 | * f-typeprint.c (f_type_print_args): Delete commented out | |
1652 | declaration. | |
1653 | (f_print_typedef): Rename to... | |
1654 | (f_language::print_typedef): ...this. | |
1655 | (f_print_type): Rename to... | |
1656 | (f_language::print_type): ...this. | |
1657 | (f_type_print_varspec_prefix): Delete declaration and rename to... | |
1658 | (f_language::f_type_print_varspec_prefix): ...this. | |
1659 | (f_type_print_varspec_suffix): Delete declaration and rename to... | |
1660 | (f_language::f_type_print_varspec_suffix): ...this. | |
1661 | (f_type_print_base): Delete declaration and rename to... | |
1662 | (f_language::f_type_print_base): ...this. | |
1663 | * f-valprint.c (f_value_print_inner): Rename to... | |
1664 | (f_language::value_print_inner): ...this. | |
1665 | * parse.c: Delete 'f-lang.h' include. | |
1666 | ||
88cefd9b AB |
1667 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1668 | ||
1669 | * language.h (language_defn::print_type): Add variable names in | |
1670 | declaration, and update header comment. | |
1671 | ||
5399db93 AB |
1672 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1673 | ||
1674 | * ada-lang.c (ada_language::demangle): Rename to... | |
1675 | (ada_language::demangle_symbol): ...this. | |
1676 | * c-lang.c (cplus_language::demangle): Rename to... | |
1677 | (cplus_language::demangle_symbol): ...this. | |
1678 | * d-lang.c (d_language::demangle): Rename to... | |
1679 | (d_language::demangle_symbol): ...this. | |
1680 | * f-lang.c (f_language::demangle): Rename to... | |
1681 | (f_language::demangle_symbol): ...this. | |
1682 | * go-lang.c (go_language::demangle): Rename to... | |
1683 | (go_language::demangle_symbol): ...this. | |
1684 | * language.c (language_demangle): Update call to demangle_symbol. | |
1685 | (auto_or_unknown_language::demangle): Rename to... | |
1686 | (auto_or_unknown_language::demangle_symbol): ...this. | |
1687 | * language.h (language_defn::demangle): Rename to... | |
1688 | (language_defn::demangle_symbol): ...this. | |
1689 | * objc-lang.c (objc_language::demangle): Rename to... | |
1690 | (objc_language::demangle_symbol): ...this. | |
1691 | * rust-lang.c (rust_language::demangle): Rename to... | |
1692 | (rust_language::demangle_symbol): ...this. | |
1693 | ||
4b2f86ef AB |
1694 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1695 | ||
1696 | * language.h (LA_ITERATE_OVER_SYMBOLS): Delete. | |
1697 | (iterate_over_file_blocks): Replace use of macro with the macros | |
1698 | definition. | |
1699 | ||
e74b39de AB |
1700 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1701 | ||
1702 | * language.h (LA_PRINT_ARRAY_INDEX): Delete. | |
1703 | * valprint.c (maybe_print_array_index): Replace use of macro with | |
1704 | the macros definition. | |
1705 | ||
00c696a6 AB |
1706 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1707 | ||
1708 | * ada-lang.c (ada_language::print_array_index): Call value_print | |
1709 | directly. | |
1710 | * language.c (language_defn::print_array_index): Likewise. | |
1711 | * language.h (LA_VALUE_PRINT): Delete. | |
1712 | * valprint.c (value_print): Call value_print on the | |
1713 | current_language directly. | |
1714 | ||
d3b67c56 AB |
1715 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1716 | ||
1717 | * language.h (LA_PRINT_TYPEDEF): Delete. | |
1718 | * typeprint.c (typedef_print): Call print_typedef directly on the | |
1719 | current_language object. | |
1720 | ||
790e2a12 AB |
1721 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1722 | ||
1723 | * m2-exp.y (m2_parse): Rename to... | |
1724 | (m2_language::parser): ...this. Update function signature. | |
1725 | * m2-lang.c (m2_printchar): Renamed to m2_language::printchar. | |
1726 | (m2_op_print): Rename to... | |
1727 | (m2_language::op_print_tab): ...this, and make const. | |
1728 | (exp_descriptor_modula2): Rename to... | |
1729 | (m2_language::exp_descriptor_modula2): ...this. | |
1730 | (class m2_language): Move to m2-lang.h. | |
1731 | (m2_language::language_arch_info): New function, moved out of | |
1732 | class declaration. | |
1733 | (m2_language::printchar): New function, body from m2_printchar. | |
1734 | (m2_language::printstr): New function, moved out of class | |
1735 | declaration. | |
1736 | (m2_language::emitchar): Likewise. | |
1737 | * m2-lang.h (m2_parse): Delete declaration. | |
1738 | (m2_print_typedef): Delete declaration. | |
1739 | (m2_value_print_inner): Delete declaration. | |
1740 | (class m2_language): Class declaration moved from m2-lang.c, | |
1741 | larger functions are left in m2-lang.c. | |
1742 | * m2-typeprint.c (m2_print_typedef): Rename to... | |
1743 | (m2_language::print_typedef): ...this, and update function | |
1744 | signature. | |
1745 | * m2-valprint.c (m2_value_print_inner): Rename to... | |
1746 | (m2_language::value_print_inner): ...this, replace use of | |
1747 | LA_PRINT_STRING with a direct call to printstr member function, | |
1748 | and update recursive call. | |
1749 | ||
b01175fc AB |
1750 | 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1751 | ||
1752 | * language.c (default_is_string_type_p): Delete, implementation | |
1753 | moved into auto_or_unknown_language::is_string_type_p. | |
1754 | (unk_op_print_tab): Moved into | |
1755 | auto_or_unknown_language::opcode_print_table. | |
1756 | (unknown_language_arch_info): Delete, implementation moved into | |
1757 | auto_or_unknown_language::language_arch_info. | |
1758 | (class auto_or_unknown_language): New class, member functions | |
1759 | copied from unknown_language class, with some updates. | |
1760 | (class unknown_language): Most member functions moved into | |
1761 | auto_or_unknown_language class. Inherit from | |
1762 | auto_or_unknown_language class. | |
1763 | (class auto_language): Inherit from auto_or_unknown_language. | |
1764 | Delete most member functions. | |
1765 | ||
1a97fe8c HD |
1766 | 2020-10-22 Hannes Domani <ssbssa@yahoo.de> |
1767 | ||
1768 | * stabsread.c (read_member_functions): Remove gdb_assert. | |
1769 | ||
6b9d0dfd HD |
1770 | 2020-10-22 Hannes Domani <ssbssa@yahoo.de> |
1771 | ||
1772 | * gdbtypes.c (init_complex_type): Check target type name. | |
1773 | ||
4b4bb603 SM |
1774 | 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca> |
1775 | ||
1776 | * target-debug.h (target_debug_print_struct_target_ops_p): | |
1777 | Remove. | |
1778 | (target_debug_print_async_callback_ftype_p): Remove. | |
1779 | (target_debug_print_struct_trace_state_variable_p): Remove. | |
1780 | (target_debug_print_struct_traceframe_info_p): Remove. | |
1781 | (target_debug_print_VEC__btrace_block_s__pp): Remove. | |
1782 | (target_debug_print_enum_btrace_format): Remove. | |
1783 | (target_debug_print_enum_info_proc_what): Remove. | |
1784 | (target_debug_print_thread_info_pp): Remove. | |
1785 | ||
24f5300a SM |
1786 | 2020-10-22 Simon Marchi <simon.marchi@efficios.com> |
1787 | ||
1788 | * target.h (struct target_ops) <make_corefile_notes>: | |
1789 | Change return type to unique pointer. | |
1790 | * target.c (dummy_make_corefile_notes): Likewise. | |
1791 | * exec.c (struct exec_target) <make_corefile_notes>: | |
1792 | Likewise. | |
1793 | (exec_target::make_corefile_notes): Likewise. | |
1794 | * procfs.c (class procfs_target) <make_corefile_notes>: | |
1795 | Likewise. | |
1796 | (procfs_do_thread_registers): Adjust to unique pointer. | |
1797 | (struct procfs_corefile_thread_data): Add constructor. | |
1798 | <note_data>: Change type to unique pointer. | |
1799 | (procfs_corefile_thread_callback): Adjust to unique pointer. | |
1800 | (procfs_target::make_corefile_notes): Change return type to | |
1801 | unique pointer. | |
1802 | * target-delegates.c: Re-generate. | |
1803 | * gcore.c (write_gcore_file_1): Adjust. | |
1804 | * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char): | |
1805 | New. | |
1806 | ||
5fb4027f TV |
1807 | 2020-10-22 Tom de Vries <tdevries@suse.de> |
1808 | ||
1809 | * block.c (find_block_in_blockvector): Make sure the returned block | |
1810 | contains pc. | |
1811 | ||
4a636814 SM |
1812 | 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca> |
1813 | ||
1814 | PR gdb/26693 | |
1815 | * dwarf2/read.c (load_full_comp_unit): Add existing_cu | |
1816 | parameter. | |
1817 | (load_cu): Pass existing CU. | |
1818 | (process_imported_unit_die): Likewise. | |
1819 | (follow_die_offset): Likewise. | |
1820 | ||
1bd57575 LM |
1821 | 2020-10-22 Luis Machado <luis.machado@linaro.org> |
1822 | ||
1823 | * corelow.c (core_target::xfer_partial): Also check for an empty | |
1824 | m_core_unavailable_mappings vector. | |
1825 | ||
6b4c676c AB |
1826 | 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com> |
1827 | ||
1828 | * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE. | |
1829 | * expression.h (enum range_type): Add RANGE_HAS_STRIDE. | |
1830 | * f-exp.y (arglist): Allow for a series of subranges. | |
1831 | (subrange): Add cases for subranges with strides. | |
1832 | * f-lang.c (value_f90_subarray): Catch use of array strides and | |
1833 | throw an error. | |
1834 | * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE. | |
1835 | ||
f2d8e4c5 AB |
1836 | 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com> |
1837 | ||
1838 | * expprint.c (print_subexp_standard): Change enum range_type to | |
1839 | range_flag and rename variables to match. | |
1840 | (dump_subexp_body_standard): Likewise. | |
1841 | * expression.h (enum range_type): Rename to... | |
1842 | (enum range_flag): ...this. | |
1843 | (range_types): Rename to... | |
1844 | (range_flags): ...this. | |
1845 | * f-lang.c (value_f90_subarray): Change enum range_type to | |
1846 | range_flag and rename variables to match. | |
1847 | * parse.c (operator_length_standard): Likewise. | |
1848 | * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum | |
1849 | range_type to range_flag. | |
1850 | * rust-lang.c (rust_evaluate_funcall): Likewise. | |
1851 | (rust_range): Likewise. | |
1852 | (rust_compute_range): Likewise. | |
1853 | (rust_subscript): Likewise. | |
1854 | ||
2f1b18db AB |
1855 | 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com> |
1856 | ||
1857 | * expprint.c (print_subexp_standard): Update to reflect changes to | |
1858 | enum range_type. | |
1859 | (dump_subexp_body_standard): Likewise. | |
1860 | * expression.h (enum range_type): Convert to a bit field enum, and | |
1861 | make the enum unsigned. | |
1862 | * f-exp.y (subrange): Update to reflect changes to enum | |
1863 | range_type. | |
1864 | * f-lang.c (value_f90_subarray): Likewise. | |
1865 | * parse.c (operator_length_standard): Likewise. | |
1866 | * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise. | |
1867 | * rust-lang.c (rust_range): Likewise. | |
1868 | (rust_compute_range): Likewise. | |
1869 | (rust_subscript): Likewise. | |
1870 | ||
a46d1843 SM |
1871 | 2020-10-21 Simon Marchi <simon.marchi@efficios.com> |
1872 | ||
1873 | * infrun.c (displaced_step_in_progress_thread): Fix comment. | |
1874 | (displaced_step_in_progress): Fix comment. | |
1875 | ||
c21f37a8 SM |
1876 | 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca> |
1877 | ||
1878 | * gdbarch.sh (make_corefile_notes): Return unique pointer. | |
1879 | * gdbarch.c: Re-generate. | |
1880 | * gdbarch.h: Re-generate. | |
1881 | * gcore.c (write_gcore_file_1): Adjust. | |
1882 | * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add | |
1883 | constructor. | |
1884 | <note_data>: Change type to unique pointer. | |
1885 | <abort_iteration>: Change type to bool. | |
1886 | (fbsd_collect_regset_section_cb): Adjust to unique pointer. | |
1887 | (fbsd_collect_thread_registers): Return void, adjust. | |
1888 | (struct fbsd_corefile_thread_data): Add construtor. | |
1889 | <note_data>: Change type to unique pointer. | |
1890 | (fbsd_corefile_thread): Adjust. | |
1891 | (fbsd_make_corefile_notes): Return unique pointer, adjust. | |
1892 | * linux-tdep.c (linux_make_mappings_corefile_notes): Change type | |
1893 | to unique pointer, adjust. | |
1894 | (struct linux_collect_regset_section_cb_data): Add constructor. | |
1895 | <note_data>: Change type to unique pointer. | |
1896 | <abort_iteration>: Change type to bool. | |
1897 | (linux_collect_thread_registers): Return void, adjust. | |
1898 | (struct linux_corefile_thread_data): Add constructor. | |
1899 | <note_data>: Change type to unique pointer. | |
1900 | (linux_corefile_thread): Adjust. | |
1901 | (linux_make_corefile_notes): Return unique pointer, adjust. | |
1902 | ||
07fbbd01 SM |
1903 | 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca> |
1904 | ||
1905 | * gdbarch.sh (displaced_step_hw_singlestep): Return bool. | |
1906 | * gdbarch.c: Re-generate. | |
1907 | * gdbarch.h: Re-generate. | |
1908 | * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return | |
1909 | bool. | |
1910 | * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep): | |
1911 | Likewise. | |
1912 | * arch-utils.h (default_displaced_step_hw_singlestep): Likewise. | |
1913 | * arch-utils.c (default_displaced_step_hw_singlestep): Likewise. | |
1914 | * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise. | |
1915 | * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise. | |
1916 | ||
39535193 SM |
1917 | 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca> |
1918 | ||
1919 | * gdbarch.sh: Make generated predicates return bool. | |
1920 | * gdbarch.c: Re-generate. | |
1921 | * gdbarch.h: Re-generate. | |
1922 | ||
ad523d01 TT |
1923 | 2020-10-20 Tom Tromey <tom@tromey.com> |
1924 | ||
1925 | * varobj-iter.h (struct varobj_item): Remove typedef. | |
1926 | ||
c4464ade SM |
1927 | 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca> |
1928 | ||
1929 | * infrun.c (currently_stepping): Change int to bool | |
1930 | (maybe_software_singlestep): Likewise. | |
1931 | (show_stop_on_solib_events): Likewise. | |
1932 | (stepping_past_nonsteppable_watchpoint): Likewise. | |
1933 | (displaced_step_in_progress_any_inferior): Likewise. | |
1934 | (displaced_step_in_progress_thread): Likewise. | |
1935 | (keep_going_stepped_thread): Likewise. | |
1936 | (thread_still_needs_step_over): Likewise. | |
1937 | (start_step_over): Likewise. | |
1938 | (do_target_resume): Likewise. | |
1939 | (resume_1): Likewise. | |
1940 | (clear_proceed_status): Likewise. | |
1941 | (thread_still_needs_step_over_bp): Likewise. | |
1942 | (proceed): Likewise. | |
1943 | (switch_back_to_stepped_thread): Likewise. | |
1944 | (adjust_pc_after_break): Likewise. | |
1945 | (stepped_in_from): Likewise. | |
1946 | (handle_stop_requested): Likewise. | |
1947 | (handle_syscall_event): Likewise. | |
1948 | (handle_no_resumed): Likewise. | |
1949 | (handle_inferior_event): Likewise. | |
1950 | (finish_step_over): Likewise. | |
1951 | (handle_signal_stop): Likewise. | |
1952 | (process_event_stop_test): Likewise. | |
1953 | ||
2eb20436 SM |
1954 | 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca> |
1955 | ||
1956 | * infrun.c (get_displaced_stepping_state): Fix comment. | |
1957 | ||
e0c45ded AS |
1958 | 2020-10-20 Andreas Schwab <schwab@linux-m68k.org> |
1959 | ||
1960 | * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help. | |
1961 | ||
22cc388e TT |
1962 | 2020-10-19 Tom Tromey <tromey@adacore.com> |
1963 | ||
1964 | PR tui/26719 | |
1965 | * tui/tui-winsource.h (struct tui_source_window_base) | |
1966 | <refresh_window>: Rename from refresh_pad. | |
1967 | * tui/tui-winsource.c (tui_source_window_base::refresh_window): | |
1968 | Rename from refresh_pad. | |
1969 | (tui_source_window_base::show_source_content) | |
1970 | (tui_source_window_base::do_scroll_horizontal): Update. | |
1971 | ||
3c6eb4d4 TBA |
1972 | 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1973 | ||
1974 | * thread.c (_initialize_thread): Fine-tune the help text of | |
1975 | 'info threads'. | |
1976 | ||
26703721 TBA |
1977 | 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1978 | ||
1979 | * frame.c: Remove the unused 'uinteger_option_def' type alias. | |
1980 | ||
61c26be8 MS |
1981 | 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com> |
1982 | ||
1983 | * breakpoint.c (handle_jit_event): Add an argument, change how | |
1984 | `jit_event_handler` is called. | |
1985 | ||
932539d7 TT |
1986 | 2020-10-17 Tom Tromey <tom@tromey.com> |
1987 | ||
1988 | * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty. | |
1989 | (scan_xcoff_symtab): Update. | |
1990 | * psymtab.h (class psymtab_storage) <global_psymbols, | |
1991 | static_psymbols, current_global_psymbols, | |
1992 | current_static_psymbols>: Remove. | |
1993 | * psymtab.c (require_partial_symbols, find_pc_sect_psymbol) | |
1994 | (match_partial_symbol, lookup_partial_symbol): Update. | |
1995 | (print_partial_symbols): Change parameters. | |
1996 | (dump_psymtab, recursively_search_psymtabs) | |
1997 | (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address) | |
1998 | (sort_pst_symbols, partial_symtab::partial_symtab): Update. | |
1999 | (concat): Remove. | |
2000 | (end_psymtab_common): Simplify. | |
2001 | (append_psymbol_to_list): Change parameters. | |
2002 | (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list. | |
2003 | (init_psymbol_list): Simplify. | |
2004 | (maintenance_info_psymtabs, maintenance_check_psymtabs): Update. | |
2005 | * psympriv.h (struct partial_symtab) <empty>: New method. | |
2006 | <globals_offset, n_global_syms, statics_offset, n_static_syms>: | |
2007 | Remove. | |
2008 | <global_psymbols, static_psymbols>: New members. | |
2009 | <add_psymbol>: New methods. | |
2010 | (add_psymbol_to_list): Don't declare. | |
2011 | (psymbol_placement): Move earlier. | |
2012 | * mdebugread.c (parse_partial_symbols): Update. | |
2013 | (handle_psymbol_enumerators): Change parameters. | |
2014 | (mdebug_expand_psymtab): Update. | |
2015 | * dwarf2/read.c (process_psymtab_comp_unit_reader) | |
2016 | (add_partial_symbol): Update. | |
2017 | * dwarf2/index-write.c (write_psymbols): Change parameters. | |
2018 | (write_one_signatured_type): Update. | |
2019 | (recursively_count_psymbols): Update. | |
2020 | (recursively_write_psymbols): Update. | |
2021 | (class debug_names) <recursively_write_psymbols>: Update. | |
2022 | <write_psymbols>: Change parameters. | |
2023 | <write_one_signatured_type>: Update. | |
2024 | * dbxread.c (read_dbx_symtab): Update. | |
2025 | (dbx_end_psymtab): Use partial_symtab::empty. | |
2026 | * ctfread.c (struct ctf_context) <pst>: New member. | |
2027 | (create_partial_symtab): Set it. | |
2028 | (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update. | |
2029 | (scan_partial_symbols): Use the psymtab's context. Update. | |
2030 | ||
cfabbd35 TT |
2031 | 2020-10-17 Tom Tromey <tom@tromey.com> |
2032 | ||
2033 | * valprint.c (generic_value_print): Remove comment. | |
2034 | * m2-valprint.c (m2_value_print_inner): Remove comment. | |
2035 | * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base | |
2036 | type. | |
2037 | ||
520596f2 TV |
2038 | 2020-10-17 Tom de Vries <tdevries@suse.de> |
2039 | ||
2040 | PR symtab/26317 | |
2041 | * source.c (select_source_symtab): Handling sal.symtab == NULL for | |
2042 | symbol main. | |
2043 | ||
76547ab3 TV |
2044 | 2020-10-14 Tom de Vries <tdevries@suse.de> |
2045 | ||
2046 | PR gdb/26733 | |
2047 | * solib.c (solib_contains_address_p): Handle | |
2048 | 'solib->sections == nullptr'. | |
2049 | ||
d3a07122 SM |
2050 | 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca> |
2051 | ||
2052 | PR gdb/26642 | |
2053 | * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the | |
2054 | target can't do async. | |
2055 | * target.c (target_wait): Assert that we don't pass | |
2056 | TARGET_WNOHANG to a target that can't async. | |
2057 | ||
1b71cfcf KR |
2058 | 2020-10-13 Kamil Rytarowski <n54@gmx.com> |
2059 | ||
2060 | * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS) | |
2061 | HFILES_NO_SRCDIR, ALLDEPFILES): Rename files. | |
2062 | * alpha-bsd-nat.c: Adjust include. | |
2063 | * alpha-bsd-tdep.h: Adjust comment. | |
2064 | * alpha-nbsd-tdep.c: Rename to ... | |
2065 | * alpha-netbsd-tdep.c: ... this, adjust include. | |
2066 | * amd64-nbsd-nat.c: Rename to ... | |
2067 | * amd64-netbsd-nat.c: ... this, adjust include. | |
2068 | * amd64-nbsd-tdep.c: Rename to ... | |
2069 | * amd64-netbsd-tdep.c: ... this, adjust include. | |
2070 | * amd64-tdep.h: Adjust include. | |
2071 | * arm-nbsd-nat.c: Rename to ... | |
2072 | * arm-netbsd-nat.c: ... this, adjust include. | |
2073 | * arm-nbsd-tdep.c: Rename to ... | |
2074 | * arm-netbsd-tdep.c: ... this, adjust include. | |
2075 | * arm-nbsd-tdep.h: Rename to ... | |
2076 | * arm-netbsd-tdep.h: ... this, adjust include. | |
2077 | * configure.nat: Adjust file lists. | |
2078 | * configure.tgt: Likewise. | |
2079 | * hppa-nbsd-nat.c: Rename to ... | |
2080 | * hppa-netbsd-nat.c: ... this, adjust include. | |
2081 | * hppa-nbsd-tdep.c: Rename to ... | |
2082 | * hppa-netbsd-tdep.c: ... this, adjust include. | |
2083 | * i386-nbsd-nat.c: Rename to ... | |
2084 | * i386-netbsd-nat.c: ... this, adjust include. | |
2085 | * i386-nbsd-tdep.c: Rename to ... | |
2086 | * i386-netbsd-tdep.c: ... this, adjust include. | |
2087 | * m68k-bsd-nat.c: Adjust include. | |
2088 | * mips-nbsd-nat.c: Rename to ... | |
2089 | * mips-netbsd-nat.c: ... this, adjust include. | |
2090 | * mips-nbsd-tdep.c: Rename to ... | |
2091 | * mips-netbsd-tdep.c: ... this, adjust include. | |
2092 | * mips-nbsd-tdep.h: Rename to ... | |
2093 | * mips-netbsd-tdep.h: ... this. | |
2094 | * nbsd-nat.c: Rename to ... | |
2095 | * netbsd-nat.c: ... this, adjust include. | |
2096 | * nbsd-nat.h: Rename to ... | |
2097 | * netbsd-nat.h: ... this, adjust include. | |
2098 | * nbsd-tdep.c: Rename to ... | |
2099 | * netbsd-tdep.c: ... this, adjust include. | |
2100 | * nbsd-tdep.h: Rename to ... | |
2101 | * netbsd-tdep.h: ... this. | |
2102 | * ppc-nbsd-nat.c: Rename to ... | |
2103 | * ppc-netbsd-nat.c: ... this, adjust include. | |
2104 | * ppc-nbsd-tdep.c: Rename to ... | |
2105 | * ppc-netbsd-tdep.c: ... this, adjust include and comment. | |
2106 | * ppc-nbsd-tdep.h: Rename to ... | |
2107 | * ppc-netbsd-tdep.h: ... this. | |
2108 | * sh-nbsd-nat.c: Rename to ... | |
2109 | * sh-netbsd-nat.c: ... this, adjust include. | |
2110 | * sh-nbsd-tdep.c: Rename to ... | |
2111 | * sh-netbsd-tdep.c: ... this, adjust include. | |
2112 | * sparc-nbsd-nat.c: Rename to ... | |
2113 | * sparc-netbsd-nat.c: ... this. | |
2114 | * sparc-nbsd-tdep.c: Rename to ... | |
2115 | * sparc-netbsd-tdep.c: ... this, adjust include. | |
2116 | * sparc64-nbsd-nat.c: Rename to ... | |
2117 | * sparc64-netbsd-nat.c: ... this. | |
2118 | * sparc64-nbsd-tdep.c: Rename to ... | |
2119 | * sparc64-netbsd-tdep.c: ... this, adjust include. | |
2120 | * sparc64-tdep.h: Adjust comment. | |
2121 | * vax-bsd-nat.c: Adjust include. | |
2122 | * vax-nbsd-tdep.c: Rename to ... | |
2123 | * vax-netbsd-tdep.c: ... this, adjust include. | |
2124 | ||
d7a78e5c TT |
2125 | 2020-10-12 Tom Tromey <tom@tromey.com> |
2126 | ||
2127 | * target.h (struct target_ops) <get_section_table>: Update. | |
2128 | (target_get_section_table): Update. | |
2129 | * target.c (target_get_section_table, target_section_by_addr) | |
2130 | (memory_xfer_partial_1): Update. | |
2131 | * target-section.h (target_section_table): Now an alias. | |
2132 | * target-delegates.c: Rebuild. | |
2133 | * target-debug.h (target_debug_print_target_section_table_p): | |
2134 | Rename from target_debug_print_struct_target_section_table_p. | |
2135 | * symfile.c (build_section_addr_info_from_section_table): Update. | |
2136 | * solib.c (solib_map_sections, solib_contains_address_p): Update. | |
2137 | * solib-svr4.c (scan_dyntag): Update. | |
2138 | * solib-dsbt.c (scan_dyntag): Update. | |
2139 | * remote.c (remote_target::remote_xfer_live_readonly_partial): | |
2140 | Update. | |
2141 | * record-full.c (record_full_core_target::xfer_partial): Update. | |
2142 | * progspace.h (struct program_space) <target_sections>: Update. | |
2143 | * exec.h (print_section_info): Update. | |
2144 | * exec.c (exec_target::close, build_section_table) | |
2145 | (add_target_sections, add_target_sections_of_objfile) | |
2146 | (remove_target_sections, exec_on_vfork) | |
2147 | (section_table_available_memory) | |
2148 | (section_table_xfer_memory_partial) | |
2149 | (exec_target::get_section_table, exec_target::xfer_partial) | |
2150 | (print_section_info, set_section_command) | |
2151 | (exec_set_section_address, exec_target::has_memory): Update. | |
2152 | * corelow.c (core_target::build_file_mappings) | |
2153 | (core_target::xfer_partial, core_target::info_proc_mappings) | |
2154 | (core_target::info_proc_mappings): Update. | |
2155 | * bfd-target.c (class target_bfd): Update | |
2156 | ||
eda214ce TT |
2157 | 2020-10-12 Tom Tromey <tom@tromey.com> |
2158 | ||
2159 | * progspace.c (program_space::~program_space): Don't call | |
2160 | clear_section_table. | |
2161 | * exec.h (clear_section_table): Don't declare. | |
2162 | * exec.c (exec_target::close): Update. | |
2163 | (clear_section_table): Remove. | |
2164 | ||
91840ee3 TT |
2165 | 2020-10-12 Tom Tromey <tom@tromey.com> |
2166 | ||
2167 | * exec.c (add_target_sections_of_objfile): Simplify. | |
2168 | ||
2d128614 TT |
2169 | 2020-10-12 Tom Tromey <tom@tromey.com> |
2170 | ||
2171 | * solib.c (solib_map_sections): Update. | |
2172 | * record-full.c (record_full_core_open_1): Update. | |
2173 | * exec.h (build_section_table): Return a target_section_table. | |
2174 | * exec.c (exec_file_attach): Update. | |
2175 | (build_section_table): Return a target_section_table. | |
2176 | * corelow.c (core_target::core_target): Update. | |
2177 | * bfd-target.c (target_bfd::target_bfd): Update. | |
2178 | ||
bb2a6777 TT |
2179 | 2020-10-12 Tom Tromey <tom@tromey.com> |
2180 | ||
2181 | * target.c (target_section_by_addr, memory_xfer_partial_1): | |
2182 | Update. | |
2183 | * target-section.h (struct target_section_table): Use | |
2184 | std::vector. | |
2185 | * symfile.h (build_section_addr_info_from_section_table): Take a | |
2186 | target_section_table. | |
2187 | * symfile.c (build_section_addr_info_from_section_table): Take a | |
2188 | target_section_table. | |
2189 | * solist.h (struct so_list) <sections>: Change type. | |
2190 | <sections_end>: Remove. | |
2191 | * solib.c (solib_map_sections, clear_so, solib_read_symbols) | |
2192 | (solib_contains_address_p): Update. | |
2193 | * solib-svr4.c (scan_dyntag): Update. | |
2194 | * solib-dsbt.c (scan_dyntag): Update. | |
2195 | * remote.c (remote_target::remote_xfer_live_readonly_partial): | |
2196 | Update. | |
2197 | * record-full.c (record_full_core_start, record_full_core_end): | |
2198 | Remove. | |
2199 | (record_full_core_sections): New global. | |
2200 | (record_full_core_open_1, record_full_core_target::xfer_partial): | |
2201 | Update. | |
2202 | * exec.h (build_section_table, section_table_xfer_memory_partial) | |
2203 | (add_target_sections): Take a target_section_table. | |
2204 | * exec.c (exec_file_attach, clear_section_table): Update. | |
2205 | (resize_section_table): Remove. | |
2206 | (build_section_table, add_target_sections): Take a | |
2207 | target_section_table. | |
2208 | (add_target_sections_of_objfile, remove_target_sections) | |
2209 | (exec_on_vfork): Update. | |
2210 | (section_table_available_memory): Take a target_section_table. | |
2211 | (section_table_read_available_memory): Update. | |
2212 | (section_table_xfer_memory_partial): Take a target_section_table. | |
2213 | (print_section_info, set_section_command) | |
2214 | (exec_set_section_address, exec_target::has_memory): Update. | |
2215 | * corelow.c (class core_target) <m_core_section_table, | |
2216 | m_core_file_mappings>: Remove braces. | |
2217 | <~core_target>: Remove. | |
2218 | (core_target::core_target): Update. | |
2219 | (core_target::~core_target): Remove. | |
2220 | (core_target::build_file_mappings) | |
2221 | (core_target::xfer_memory_via_mappings) | |
2222 | (core_target::xfer_partial, core_target::info_proc_mappings): | |
2223 | Update. | |
2224 | * bfd-target.c (target_bfd::xfer_partial): Update. | |
2225 | (target_bfd::target_bfd): Update. | |
2226 | (target_bfd::~target_bfd): Remove. | |
2227 | ||
7b466b10 TT |
2228 | 2020-10-12 Tom Tromey <tom@tromey.com> |
2229 | ||
2230 | * target.h (struct target_section, struct target_section_table): | |
2231 | Move to target-section.h. | |
2232 | * target-section.h: New file. | |
2233 | ||
87a37e5e PA |
2234 | 2020-10-12 Pedro Alves <pedro@palves.net> |
2235 | ||
2236 | PR exp/26602 | |
2237 | * valops.c (struct struct_field_searcher): New. | |
2238 | (update_search_result): Rename to ... | |
2239 | (struct_field_searcher::update_result): ... this. Simplify | |
2240 | prototype. Record all found fields. | |
2241 | (do_search_struct_field): Rename to ... | |
2242 | (struct_field_searcher::search): ... this. Simplify prototype. | |
2243 | Maintain stack of visited baseclass path. Call update_result for | |
2244 | fields too. Keep searching fields in baseclasses instead of | |
2245 | stopping at the first found field. | |
2246 | (search_struct_field): Use struct_field_searcher. When looking | |
2247 | for fields, report ambiguous access attempts. | |
2248 | ||
9370fd51 AB |
2249 | 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com> |
2250 | ||
2251 | * frame.c (inside_main_func): Check full symbols as well as | |
2252 | minimal symbols. | |
2253 | ||
59c8a30b JB |
2254 | 2020-10-09 Joel Brobecker <brobecker@adacore.com> |
2255 | ||
2256 | * ada-lang.c (advance_wild_match): Rewrite the function's | |
2257 | description. Change the type of target0, t0 and t1 to char. | |
2258 | ||
7c184d33 TT |
2259 | 2020-10-09 Tom Tromey <tromey@adacore.com> |
2260 | ||
2261 | * dwarf2/read.c (dwarf2_add_field): Handle signed offsets. | |
2262 | ||
5c4258f4 TT |
2263 | 2020-10-09 Tom Tromey <tromey@adacore.com> |
2264 | ||
2265 | * ada-lang.h (ada_encode): Return std::string. | |
2266 | * ada-lang.c (ada_encode_1): Return std::string. | |
2267 | (ada_encode): Likewise. | |
2268 | (type_from_tag, ada_lookup_name_info::ada_lookup_name_info): | |
2269 | Update. | |
2270 | * ada-exp.y (block_lookup, write_var_or_type): Update. | |
2271 | ||
3d87245c HD |
2272 | 2020-10-09 Hannes Domani <ssbssa@yahoo.de> |
2273 | ||
2274 | PR exp/26714 | |
2275 | * printcmd.c (print_formatted): Handle void results as | |
2276 | unformatted prints. | |
2277 | ||
bbb826f5 AB |
2278 | 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com> |
2279 | ||
2280 | * arch/aarch32.c (aarch32_create_target_description): Release the | |
2281 | target_desc_up as late as possible. | |
2282 | * arch/aarch64.c (aarch64_create_target_description): Likewise. | |
2283 | * arch/amd64.c (amd64_create_target_description): Likewise. | |
2284 | * arch/arc.c (arc_create_target_description): Return a | |
2285 | target_desc_up, don't release it. | |
2286 | * arch/arc.h (arc_create_target_description): Update declaration. | |
2287 | (arc_lookup_target_description): Move target_desc_up into the | |
2288 | cache, and return a borrowed pointer. | |
2289 | * arch/arm.c (arm_create_target_description): Release the | |
2290 | target_desc_up as late as possible. | |
2291 | * arch/i386.c (i386_create_target_description): Likewise. | |
2292 | * arch/riscv.h (riscv_create_target_description): Update | |
2293 | declaration to match definition. | |
2294 | * arch/tic6x.c (tic6x_create_target_description): Release the | |
2295 | target_desc_up as late as possible. | |
2296 | ||
361cb219 AB |
2297 | 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com> |
2298 | ||
2299 | * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU | |
2300 | or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking. | |
2301 | ||
f5c4b229 JV |
2302 | 2020-10-09 Jan Vrany <jan.vrany@labware.com> |
2303 | ||
2304 | * source.c (directory_command): Notify observers that "directories" | |
2305 | parameter has changed. | |
2306 | ||
b2701685 TT |
2307 | 2020-10-08 Tom Tromey <tom@tromey.com> |
2308 | ||
2309 | * cli/cli-cmds.c (print_disassembly): Style function name and | |
2310 | addresses. Add _() wrappers. | |
2311 | ||
ada508b6 SV |
2312 | 2020-10-08 Shahab Vahedi <shahab@synopsys.com> |
2313 | ||
2314 | * NEWS: Mention ARC support in GDBserver. | |
2315 | ||
51a948fd AB |
2316 | 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com> |
2317 | ||
2318 | * arch/aarch32.c (aarch32_create_target_description): Release | |
2319 | unique_ptr returned from allocate_target_description. | |
2320 | * arch/aarch64.c (aarch64_create_target_description): Likewise. | |
2321 | * arch/amd64.c (amd64_create_target_description): Likewise. | |
2322 | * arch/arc.c (arc_create_target_description): Likewise. | |
2323 | * arch/arm.c (arm_create_target_description): Likewise. | |
2324 | * arch/i386.c (i386_create_target_description): Likewise. | |
2325 | * arch/riscv.c (riscv_create_target_description): Update return | |
2326 | type. Handle allocate_target_description returning a unique_ptr. | |
2327 | (riscv_lookup_target_description): Update to handle unique_ptr. | |
2328 | * arch/tic6x.c (tic6x_create_target_description): Release | |
2329 | unique_ptr returned from allocate_target_description. | |
2330 | * features/microblaze-with-stack-protect.c: Regenerate. | |
2331 | * features/microblaze.c: Regenerate. | |
2332 | * features/mips-dsp-linux.c: Regenerate. | |
2333 | * features/mips-linux.c: Regenerate. | |
2334 | * features/mips64-dsp-linux.c: Regenerate. | |
2335 | * features/mips64-linux.c: Regenerate. | |
2336 | * features/nds32.c: Regenerate. | |
2337 | * features/nios2.c: Regenerate. | |
2338 | * features/or1k.c: Regenerate. | |
2339 | * features/rs6000/powerpc-32.c: Regenerate. | |
2340 | * features/rs6000/powerpc-32l.c: Regenerate. | |
2341 | * features/rs6000/powerpc-403.c: Regenerate. | |
2342 | * features/rs6000/powerpc-403gc.c: Regenerate. | |
2343 | * features/rs6000/powerpc-405.c: Regenerate. | |
2344 | * features/rs6000/powerpc-505.c: Regenerate. | |
2345 | * features/rs6000/powerpc-601.c: Regenerate. | |
2346 | * features/rs6000/powerpc-602.c: Regenerate. | |
2347 | * features/rs6000/powerpc-603.c: Regenerate. | |
2348 | * features/rs6000/powerpc-604.c: Regenerate. | |
2349 | * features/rs6000/powerpc-64.c: Regenerate. | |
2350 | * features/rs6000/powerpc-64l.c: Regenerate. | |
2351 | * features/rs6000/powerpc-7400.c: Regenerate. | |
2352 | * features/rs6000/powerpc-750.c: Regenerate. | |
2353 | * features/rs6000/powerpc-860.c: Regenerate. | |
2354 | * features/rs6000/powerpc-altivec32.c: Regenerate. | |
2355 | * features/rs6000/powerpc-altivec32l.c: Regenerate. | |
2356 | * features/rs6000/powerpc-altivec64.c: Regenerate. | |
2357 | * features/rs6000/powerpc-altivec64l.c: Regenerate. | |
2358 | * features/rs6000/powerpc-e500.c: Regenerate. | |
2359 | * features/rs6000/powerpc-e500l.c: Regenerate. | |
2360 | * features/rs6000/powerpc-isa205-32l.c: Regenerate. | |
2361 | * features/rs6000/powerpc-isa205-64l.c: Regenerate. | |
2362 | * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate. | |
2363 | * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate. | |
2364 | * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate. | |
2365 | * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate. | |
2366 | * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate. | |
2367 | * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate. | |
2368 | * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate. | |
2369 | * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate. | |
2370 | * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate. | |
2371 | * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate. | |
2372 | * features/rs6000/powerpc-vsx32.c: Regenerate. | |
2373 | * features/rs6000/powerpc-vsx32l.c: Regenerate. | |
2374 | * features/rs6000/powerpc-vsx64.c: Regenerate. | |
2375 | * features/rs6000/powerpc-vsx64l.c: Regenerate. | |
2376 | * features/rs6000/rs6000.c: Regenerate. | |
2377 | * features/rx.c: Regenerate. | |
2378 | * features/s390-gs-linux64.c: Regenerate. | |
2379 | * features/s390-linux32.c: Regenerate. | |
2380 | * features/s390-linux32v1.c: Regenerate. | |
2381 | * features/s390-linux32v2.c: Regenerate. | |
2382 | * features/s390-linux64.c: Regenerate. | |
2383 | * features/s390-linux64v1.c: Regenerate. | |
2384 | * features/s390-linux64v2.c: Regenerate. | |
2385 | * features/s390-te-linux64.c: Regenerate. | |
2386 | * features/s390-tevx-linux64.c: Regenerate. | |
2387 | * features/s390-vx-linux64.c: Regenerate. | |
2388 | * features/s390x-gs-linux64.c: Regenerate. | |
2389 | * features/s390x-linux64.c: Regenerate. | |
2390 | * features/s390x-linux64v1.c: Regenerate. | |
2391 | * features/s390x-linux64v2.c: Regenerate. | |
2392 | * features/s390x-te-linux64.c: Regenerate. | |
2393 | * features/s390x-tevx-linux64.c: Regenerate. | |
2394 | * features/s390x-vx-linux64.c: Regenerate. | |
2395 | * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned | |
2396 | from allocate_target_description. | |
2397 | * target-descriptions.c (allocate_target_description): Update | |
2398 | return type. | |
2399 | (print_c_tdesc::visit_pre): Release unique_ptr returned from | |
2400 | allocate_target_description. | |
2401 | ||
485c47e5 TT |
2402 | 2020-10-07 Tom Tromey <tromey@adacore.com> |
2403 | ||
2404 | * unittests/search-memory-selftests.c: New file. | |
2405 | * Makefile.in (SELFTESTS_SRCS): Add | |
2406 | unittests/search-memory-selftests.c. | |
2407 | ||
3a135a91 TT |
2408 | 2020-10-07 Tom Tromey <tromey@adacore.com> |
2409 | ||
2410 | PR gdb/16930: | |
2411 | * findcmd.c (_initialize_mem_search): Mention that the range is | |
2412 | inclusive. | |
2413 | ||
4a72de73 TT |
2414 | 2020-10-07 Tom Tromey <tromey@adacore.com> |
2415 | ||
2416 | * target.h (simple_search_memory): Don't declare. | |
2417 | * target.c (simple_search_memory): Move to gdbsupport. | |
2418 | (default_search_memory): Update. | |
2419 | * remote.c (remote_target::search_memory): Update. | |
2420 | ||
a038ffd8 SM |
2421 | 2020-10-07 Simon Marchi <simon.marchi@efficios.com> |
2422 | ||
2423 | * Makefile.in (COMPILE): Add CXXFLAGS. | |
2424 | (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS. | |
2425 | (check-headers): Add CXXFLAGS. | |
2426 | ||
cc463201 AK |
2427 | 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com> |
2428 | ||
2429 | * arc-linux-tdep.h: New file. | |
2430 | * arc-linux-tdep.c (arc_linux_core_reg_offsets, | |
2431 | arc_linux_supply_gregset, arc_linux_supply_v2_regset, | |
2432 | arc_linux_collect_gregset, arc_linux_collect_v2_regset, | |
2433 | arc_linux_gregset, arc_linux_v2_regset, | |
2434 | arc_linux_iterate_over_regset_sections, | |
2435 | arc_linux_core_read_description): Implement. | |
2436 | (arc_linux_init_osabi): Set iterate_over_regset_sections. | |
2437 | * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare. | |
2438 | (arc_gdbarch_features_create): Add. | |
2439 | * arc-tdep.c (arc_gdbarch_features_create): Not static anymore. | |
2440 | ||
e4bd363f SV |
2441 | 2020-10-07 Shahab Vahedi <shahab@synopsys.com> |
2442 | ||
2443 | * arch/arc.h: Rename "arc_gdbarch_features" to | |
2444 | "arc_arch_features". | |
2445 | * arc-tdep.h: Likewise. | |
2446 | * arc-tdep.c: Likewise. | |
2447 | ||
b68bef99 TBA |
2448 | 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2449 | ||
2450 | * infcmd.c (attach_command): Remove the redundant call to | |
2451 | `clear_proceed_status`. | |
2452 | ||
4641551a KR |
2453 | 2020-10-07 Kamil Rytarowski <n54@gmx.com> |
2454 | ||
2455 | * nat/netbsd-nat.c (write_memory, read_memory): Update. | |
2456 | ||
91e5e8db KR |
2457 | 2020-10-07 Kamil Rytarowski <n54@gmx.com> |
2458 | ||
2459 | * nat/netbsd-nat.c (write_memory, read_memory): Add. | |
2460 | * nat/netbsd-nat.h (write_memory, read_memory): Likewise. | |
2461 | * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update. | |
2462 | ||
64c03bdb SM |
2463 | 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca> |
2464 | ||
2465 | * break-catch-sig.c (signal_catch_counts): Make a static arrray. | |
2466 | (_initialize_break_catch_sig): Don't allocate array. | |
2467 | ||
31a8f60f AB |
2468 | 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com> |
2469 | ||
2470 | * symtab.c (find_pc_line): Return unmapped addresses when the | |
2471 | requested address is also unmapped. | |
2472 | ||
9e6dbd8b SM |
2473 | 2020-10-05 Simon Marchi <simon.marchi@efficios.com> |
2474 | ||
2475 | * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add | |
2476 | tui/tui-out.h. | |
2477 | ||
a1d217e8 SM |
2478 | 2020-10-05 Simon Marchi <simon.marchi@efficios.com> |
2479 | ||
2480 | * amd64-windows-tdep.c (amd64_windows_return_value): Use | |
2481 | type::is_vector instead of TYPE_VECTOR. | |
2482 | ||
7d144117 SM |
2483 | 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca> |
2484 | ||
2485 | * auto-load.c (auto_load_objfile_script_1): Don't use | |
2486 | debugfile_holder as temporary variable when stripping drive | |
2487 | letter. | |
2488 | ||
cd096ec8 HD |
2489 | 2020-10-05 Hannes Domani <ssbssa@yahoo.de> |
2490 | ||
2491 | * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register): | |
2492 | Add TYPE_CODE_COMPLEX. | |
2493 | (amd64_windows_return_value): Fix types returned via XMM0. | |
2494 | ||
b58e7f72 AH |
2495 | 2020-10-05 Alan Hayward <alan.hayward@arm.com> |
2496 | ||
2497 | * MAINTAINERS (Responsible Maintainers): Add Luis Machado to | |
2498 | AArch64/ARM maintainers. | |
2499 | ||
8d378f27 SM |
2500 | 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca> |
2501 | ||
2502 | * NEWS: Mention set/show debug event-loop. | |
2503 | ||
d5519913 TT |
2504 | 2020-10-02 Tom Tromey <tromey@adacore.com> |
2505 | ||
2506 | * skip.c (skiplist_entry::skiplist_entry): Unconditionally use | |
2507 | REG_EXTENDED. | |
2508 | ||
18b67edc SM |
2509 | 2020-10-02 Simon Marchi <simon.marchi@efficios.com> |
2510 | ||
2511 | * aix-thread.c (aix_thread_inferior_created): Remove parameters. | |
2512 | * procfs.c (procfs_inferior_created): Remove. | |
2513 | (_initialize_procfs): Don't register procfs_inferior_created. | |
2514 | ||
6b01403b SM |
2515 | 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca> |
2516 | ||
2517 | * async-event.c (invoke_async_signal_handlers): Add debug | |
2518 | print. | |
2519 | (check_async_event_handlers): Likewise. | |
2520 | * event-top.c (show_debug_event_loop): New function. | |
2521 | (_initialize_event_top): Register "set debug event-loop" | |
2522 | setting. | |
2523 | ||
ba988419 SM |
2524 | 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca> |
2525 | ||
2526 | * debug.c (debug_prefixed_vprintf): Move to gdbsupport. | |
2527 | * debug.h: Remove. | |
2528 | * infrun.c: Include gdbsupport/common-debug.h. | |
2529 | * linux-nat.c: Likewise. | |
2530 | ||
db20ebdf SM |
2531 | 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca> |
2532 | ||
2533 | * async-event.h (create_async_signal_handler): Add name | |
2534 | parameter. | |
2535 | (create_async_event_handler): Likewise. | |
2536 | * async-event.c (struct async_signal_handler) <name>: New field. | |
2537 | (struct async_event_handler) <name>: New field. | |
2538 | (create_async_signal_handler): Assign name. | |
2539 | (create_async_event_handler): Assign name. | |
2540 | * event-top.c (async_init_signals): Pass name when creating | |
2541 | handler. | |
2542 | * infrun.c (_initialize_infrun): Likewise. | |
2543 | * record-btrace.c (record_btrace_push_target): Likewise. | |
2544 | * record-full.c (record_full_open): Likewise. | |
2545 | * remote-notif.c (remote_notif_state_allocate): Likewise. | |
2546 | * remote.c (remote_target::open_1): Likewise. | |
2547 | * tui/tui-win.c (tui_initialize_win): Likewise. | |
2548 | ||
2554f6f5 SM |
2549 | 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca> |
2550 | ||
2551 | * async-event.c (initialize_async_signal_handlers): Pass name to | |
2552 | add_file_handler | |
2553 | * event-top.c (ui_register_input_event_handler): Likewise. | |
2554 | * linux-nat.c (linux_nat_target::async): Likewise. | |
2555 | * run-on-main-thread.c (_initialize_run_on_main_thread): | |
2556 | Likewise | |
2557 | * ser-base.c (reschedule): Likewise. | |
2558 | (ser_base_async): Likewise. | |
2559 | * tui/tui-io.c: Likewise. | |
2560 | * top.h (struct ui) <num>: New field. | |
2561 | * top.c (highest_ui_num): New variable. | |
2562 | (ui::ui): Initialize num. | |
2563 | ||
a7aba266 SM |
2564 | 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca> |
2565 | ||
2566 | * observable.h <inferior_created>: Remove parameters. Update all | |
2567 | listeners. | |
2568 | * inferior.h (post_create_inferior): Remove target parameter. | |
2569 | Update all callers. | |
2570 | ||
048fde1e | 2571 | 2020-10-02 Nitika Achra <Nitika.Achra@amd.com> |
2572 | ||
2573 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx | |
2574 | and DW_MACRO_undef_strx. | |
2575 | (dwarf_decode_macros): Likewise | |
2576 | * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters | |
2577 | which is the value of DW_AT_str_offsets_base. | |
2578 | * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include | |
2579 | str_offsets_base. | |
2580 | ||
064280be KR |
2581 | 2020-10-01 Kamil Rytarowski <n54@gmx.com> |
2582 | ||
2583 | * i386-tdep.h (i386nbsd_sc_reg_offset): Remove. | |
2584 | ||
6ff33035 KR |
2585 | 2020-10-01 Kamil Rytarowski <n54@gmx.com> |
2586 | ||
2587 | * i386-bsd-nat.c (_initialize_i386bsd_nat): Update. | |
2588 | * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static. | |
2589 | ||
1eb6eb79 KR |
2590 | 2020-10-01 Kamil Rytarowski <n54@gmx.com> |
2591 | ||
2592 | * i386-bsd-nat.c: Include "x86-bsd-nat.h". | |
2593 | ||
95eb9e54 TV |
2594 | 2020-09-30 Tom de Vries <tdevries@suse.de> |
2595 | ||
2596 | PR symtab/26683 | |
2597 | * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated. | |
2598 | ||
cae21f8e TT |
2599 | 2020-09-30 Tom Tromey <tromey@adacore.com> |
2600 | ||
2601 | * dwarf2/read.c (handle_variant): Use constant_value. | |
2602 | ||
529908cb TT |
2603 | 2020-09-29 Tom Tromey <tom@tromey.com> |
2604 | ||
2605 | * dwarf2/read.c (lookup_dwo_id, get_type_unit_group) | |
2606 | (read_file_scope, dwarf2_get_pc_bounds) | |
2607 | (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment) | |
2608 | (read_structure_type, handle_struct_member_die) | |
2609 | (read_enumeration_type, read_array_type, read_set_type) | |
2610 | (read_tag_pointer_type, read_tag_reference_type) | |
2611 | (read_subroutine_type, read_base_type, read_subrange_type) | |
2612 | (read_full_die_1, partial_die_info::read) | |
2613 | (partial_die_info::read, by, new_symbol) | |
2614 | (dwarf2_const_value_data, dwarf2_const_value_attr) | |
2615 | (dump_die_shallow, dwarf2_fetch_constant_bytes) | |
2616 | (prepare_one_comp_unit): Update. | |
2617 | * dwarf2/attribute.h (DW_UNSND): Remove. | |
2618 | ||
c45bc3f8 TT |
2619 | 2020-09-29 Tom Tromey <tom@tromey.com> |
2620 | ||
2621 | * dwarf2/read.c (read_func_scope, prototyped_function_p) | |
2622 | (read_subroutine_type, partial_die_info::read) | |
2623 | (dwarf2_flag_true_p, new_symbol, dump_die_shallow) | |
2624 | (dwarf2_add_member_fn): Update. | |
2625 | * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare. | |
2626 | * dwarf2/attribute.c (attribute::as_boolean): New method. | |
2627 | ||
23dca5c3 TT |
2628 | 2020-09-29 Tom Tromey <tom@tromey.com> |
2629 | ||
2630 | * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update. | |
2631 | * dwarf2/attribute.h (struct attribute) <as_virtuality>: New | |
2632 | method. | |
2633 | * dwarf2/attribute.c (attribute::as_virtuality): New method. | |
2634 | ||
52c14d11 TT |
2635 | 2020-09-29 Tom Tromey <tom@tromey.com> |
2636 | ||
2637 | * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check | |
2638 | the attribute's form. | |
2639 | ||
e8e5c158 TT |
2640 | 2020-09-29 Tom Tromey <tom@tromey.com> |
2641 | ||
2642 | * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c. | |
2643 | (dwarf2_add_member_fn): Update. | |
2644 | * dwarf2/attribute.h (struct attribute) <defaulted>: Declare. | |
2645 | * dwarf2/attribute.c (attribute::defaulted): New method, from | |
2646 | is_valid_DW_AT_defaulted. | |
2647 | ||
d4df075e TT |
2648 | 2020-09-29 Tom Tromey <tom@tromey.com> |
2649 | ||
2650 | * dwarf2/read.c (dw2_get_file_names_reader) | |
2651 | (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list) | |
2652 | (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton) | |
2653 | (dwarf2_symbol_mark_computed): Use as_unsigned. | |
2654 | * dwarf2/attribute.h (struct attribute) <as_unsigned>: New | |
2655 | method. | |
2656 | <form_is_section_offset>: Update comment. | |
2657 | ||
bf23a268 TT |
2658 | 2020-09-29 Tom Tromey <tom@tromey.com> |
2659 | ||
2660 | * dwarf2/read.c (dwarf2_access_attribute): Rename from | |
2661 | dwarf2_default_access_attribute. Look up attribute. | |
2662 | (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn): | |
2663 | Update. | |
2664 | ||
7a5f294d TT |
2665 | 2020-09-29 Tom Tromey <tom@tromey.com> |
2666 | ||
2667 | * dwarf2/read.c (skip_one_die): Update. | |
2668 | (read_full_die_1): Change how reprocessing is done. | |
2669 | (partial_die_info::read): Update. | |
2670 | (read_attribute_value): Remove need_reprocess parameter. | |
2671 | (read_attribute): Likewise. | |
2672 | * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>: | |
2673 | New method. | |
2674 | ||
36d378cf TT |
2675 | 2020-09-29 Tom Tromey <tom@tromey.com> |
2676 | ||
2677 | * dwarf2/read.c (read_attribute_reprocess, read_attribute_value) | |
2678 | (dwarf2_const_value_attr, dump_die_shallow) | |
2679 | (dwarf2_fetch_constant_bytes): Update. | |
2680 | * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update | |
2681 | comment. | |
2682 | <set_address>: New method. | |
2683 | (DW_ADDR): Remove. | |
2684 | * dwarf2/attribute.c (attribute::form_is_ref): Update comment. | |
2685 | (attribute::as_string, attribute::as_address): Add assert. | |
2686 | ||
fe56917a TT |
2687 | 2020-09-29 Tom Tromey <tom@tromey.com> |
2688 | ||
2689 | * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC. | |
2690 | (read_attribute_reprocess, read_attribute_value): Update. | |
2691 | (read_attribute): Clear requires_reprocessing. | |
2692 | * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess, | |
2693 | form_requires_reprocessing>: New methods. | |
2694 | <string_init>: Clear requires_reprocessing. | |
2695 | <set_unsigned_reprocess>: New method. | |
2696 | <name>: Shrink by one bit. | |
2697 | <requires_reprocessing>: New member. | |
2698 | * dwarf2/attribute.c (attribute::form_requires_reprocessing): New | |
2699 | method. | |
2700 | ||
414ad644 TT |
2701 | 2020-09-29 Tom Tromey <tom@tromey.com> |
2702 | ||
2703 | * dwarf2/read.c (read_attribute_value): Update. | |
2704 | * dwarf2/attribute.h (struct attribute) <form_is_unsigned, | |
2705 | set_unsigned>: New methods. | |
2706 | * dwarf2/attribute.c (attribute::form_is_unsigned): New method. | |
2707 | ||
1bc397c5 TT |
2708 | 2020-09-29 Tom Tromey <tom@tromey.com> |
2709 | ||
2710 | * dwarf2/read.c (get_alignment, read_array_order) | |
2711 | (read_attribute_value, dwarf2_const_value_attr) | |
2712 | (dump_die_shallow, dwarf2_fetch_constant_bytes): Update. | |
2713 | * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>: | |
2714 | New methods. | |
2715 | (DW_SND): Remove. | |
2716 | ||
630ed6b9 TT |
2717 | 2020-09-29 Tom Tromey <tom@tromey.com> |
2718 | ||
2719 | * dwarf2/read.c (read_attribute_value, lookup_die_type) | |
2720 | (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type): | |
2721 | Update. | |
2722 | * dwarf2/attribute.h (struct attribute) <as_signature, | |
2723 | set_signature>: New methods. | |
2724 | (DW_SIGNATURE): Remove. | |
2725 | ||
9d2246fc TT |
2726 | 2020-09-29 Tom Tromey <tom@tromey.com> |
2727 | ||
2728 | * dwarf2/read.c (read_call_site_scope) | |
2729 | (handle_data_member_location, dwarf2_add_member_fn) | |
2730 | (mark_common_block_symbol_computed, attr_to_dynamic_prop) | |
2731 | (partial_die_info::read, read_attribute_value) | |
2732 | (var_decode_location, dwarf2_const_value_attr, dump_die_shallow) | |
2733 | (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes) | |
2734 | (dwarf2_symbol_mark_computed): Update. | |
2735 | * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New | |
2736 | methods. | |
2737 | (DW_BLOCK): Remove. | |
2738 | * dwarf2/attribute.c (attribute::form_is_block): Add | |
2739 | DW_FORM_data16. | |
2740 | ||
c6481205 TT |
2741 | 2020-09-29 Tom Tromey <tom@tromey.com> |
2742 | ||
2743 | * dwarf2/read.c (read_cutu_die_from_dwo) | |
2744 | (read_attribute_reprocess, read_attribute_value, read_attribute) | |
2745 | (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow) | |
2746 | (dwarf2_fetch_constant_bytes): Update. | |
2747 | * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare. | |
2748 | <set_string_noncanonical, set_string_canonical>: New methods. | |
2749 | <string_is_canonical>: Update comment. | |
2750 | <canonical_string_p>: Add assert. | |
2751 | (DW_STRING, DW_STRING_IS_CANONICAL): Remove. | |
2752 | * dwarf2/attribute.c (attribute::form_is_string): New method. | |
2753 | (attribute::string): Use it. | |
2754 | ||
3b64bf15 TT |
2755 | 2020-09-29 Tom Tromey <tom@tromey.com> |
2756 | ||
2757 | * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name) | |
2758 | (dump_die_shallow): Use canonical_string_p. | |
2759 | * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New | |
2760 | method. | |
2761 | ||
2c830f54 TT |
2762 | 2020-09-29 Tom Tromey <tom@tromey.com> |
2763 | ||
2764 | * dwarf2/read.c (partial_die_info::read) | |
2765 | (dwarf2_const_value_attr, anonymous_struct_prefix, ) | |
2766 | (dwarf2_name, dwarf2_fetch_constant_bytes): Use | |
2767 | attribute::as_string. | |
2768 | ||
6c412691 TT |
2769 | 2020-09-29 Tom Tromey <tom@tromey.com> |
2770 | ||
2771 | * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or | |
2772 | DW_ADDR. | |
2773 | (attribute::string): Don't use DW_STRING. | |
2774 | (attribute::get_ref_die_offset): Don't use DW_UNSND. | |
2775 | (attribute::constant_value): Don't use DW_UNSND or DW_SND. | |
2776 | ||
95f982e5 TT |
2777 | 2020-09-29 Tom Tromey <tom@tromey.com> |
2778 | ||
2779 | * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope) | |
2780 | (dwarf2_get_pc_bounds, dwarf2_record_block_ranges) | |
2781 | (partial_die_info::read, dwarf2_string_attr, new_symbol): Update. | |
2782 | * dwarf2/attribute.h (struct attribute): Rename methods. | |
2783 | * dwarf2/attribute.c (attribute::as_address): Rename from | |
2784 | value_as_address. | |
2785 | (attribute::as_string): Rename from value_as_string. | |
2786 | ||
f800b00e TT |
2787 | 2020-09-29 Tom Tromey <tom@tromey.com> |
2788 | ||
2789 | * dwarf2/read.c (partial_die_info::read) <case | |
2790 | DW_AT_linkage_name>: Use value_as_string. | |
2791 | (dwarf2_string_attr): Use value_as_string. | |
2792 | * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare | |
2793 | method. | |
2794 | * dwarf2/attribute.c (attribute::value_as_string): New method. | |
2795 | ||
de38d64a PA |
2796 | 2020-09-29 Pedro Alves <pedro@palves.net> |
2797 | ||
2798 | * unittests/enum-flags-selftests.c: Check whether __GNUC__ is | |
2799 | defined before using '#pragma GCC diagnostic' instead of checking | |
2800 | __clang__. | |
2801 | ||
9aed480c TT |
2802 | 2020-09-28 Tom Tromey <tom@tromey.com> |
2803 | ||
2804 | * infrun.c (displaced_step_fixup, thread_still_needs_step_over) | |
2805 | (handle_signal_stop): Update. | |
2806 | * procfs.c (procfs_target::insert_watchpoint): Update. | |
2807 | * target.h (target_have_steppable_watchpoint): Now a function. | |
2808 | ||
8a3ecb79 TT |
2809 | 2020-09-28 Tom Tromey <tom@tromey.com> |
2810 | ||
2811 | * infrun.c (set_schedlock_func): Update. | |
2812 | * target.h (target_can_lock_scheduler): Now a function. | |
2813 | ||
55f6301a TT |
2814 | 2020-09-28 Tom Tromey <tom@tromey.com> |
2815 | ||
2816 | * inferior.h (class inferior) <has_execution>: Update. | |
2817 | * windows-tdep.c (windows_solib_create_inferior_hook): Update. | |
2818 | * valops.c (find_function_in_inferior) | |
2819 | (value_allocate_space_in_inferior): Update. | |
2820 | * top.c (kill_or_detach): Update. | |
2821 | * target.c (target_preopen, set_target_permissions): Update. | |
2822 | (target_has_execution_current): Remove. | |
2823 | * sparc64-tdep.c (adi_examine_command, adi_assign_command): | |
2824 | Update. | |
2825 | * solib.c (update_solib_list, reload_shared_libraries): Update. | |
2826 | * solib-svr4.c (svr4_solib_create_inferior_hook): Update. | |
2827 | * solib-dsbt.c (enable_break): Update. | |
2828 | * score-tdep.c (score7_fetch_inst): Update. | |
2829 | * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries): | |
2830 | Update. | |
2831 | * remote.c (remote_target::start_remote) | |
2832 | (remote_target::remote_check_symbols, remote_target::open_1) | |
2833 | (remote_target::remote_detach_1, remote_target::verify_memory) | |
2834 | (remote_target::xfer_partial, remote_target::read_description) | |
2835 | (remote_target::get_min_fast_tracepoint_insn_len): Update. | |
2836 | * record-full.c (record_full_open_1): Update. | |
2837 | * record-btrace.c (record_btrace_target_open): Update. | |
2838 | * objc-lang.c (lookup_objc_class, lookup_child_selector) | |
2839 | (value_nsstring): Update. | |
2840 | * linux-thread-db.c (add_thread_db_info) | |
2841 | (thread_db_find_new_threads_silently, check_thread_db_callback) | |
2842 | (try_thread_db_load_1, record_thread): Update. | |
2843 | * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw): | |
2844 | Update. | |
2845 | * linux-fork.c (checkpoint_command): Update. | |
2846 | * infrun.c (set_non_stop, set_observer_mode) | |
2847 | (check_multi_target_resumption, for_each_just_stopped_thread) | |
2848 | (maybe_remove_breakpoints, normal_stop) | |
2849 | (class infcall_suspend_state): Update. | |
2850 | * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running) | |
2851 | (info_program_command, attach_command): Update. | |
2852 | * infcall.c (call_function_by_hand_dummy): Update. | |
2853 | * inf-loop.c (inferior_event_handler): Update. | |
2854 | * gcore.c (gcore_command, derive_heap_segment): Update. | |
2855 | * exec.c (exec_file_command): Update. | |
2856 | * eval.c (evaluate_subexp): Update. | |
2857 | * compile/compile.c (compile_to_object): Update. | |
2858 | * cli/cli-dump.c (restore_command): Update. | |
2859 | * breakpoint.c (update_watchpoint) | |
2860 | (update_inserted_breakpoint_locations) | |
2861 | (insert_breakpoint_locations, get_bpstat_thread): Update. | |
2862 | * target.h (target_has_execution): Remove macro. | |
2863 | (target_has_execution_current): Don't declare. | |
2864 | (target_has_execution): Rename from target_has_execution_1. Add | |
2865 | argument default. | |
2866 | ||
05374cfd TT |
2867 | 2020-09-28 Tom Tromey <tom@tromey.com> |
2868 | ||
2869 | * mi/mi-main.c (exec_reverse_continue) | |
2870 | (mi_cmd_list_target_features): Update. | |
2871 | * infrun.c (set_exec_direction_func): Update. | |
2872 | * target.c (default_execution_direction): Update. | |
2873 | * reverse.c (exec_reverse_once): Update. | |
2874 | * target.h (target_can_execute_reverse): Now a function. | |
2875 | ||
9dccd06e TT |
2876 | 2020-09-28 Tom Tromey <tom@tromey.com> |
2877 | ||
2878 | * tui/tui-regs.c (tui_get_register) | |
2879 | (tui_data_window::show_registers): Update. | |
2880 | * thread.c (scoped_restore_current_thread::restore) | |
2881 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
2882 | Update. | |
2883 | * regcache-dump.c (regcache_print): Update. | |
2884 | * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb): | |
2885 | Update. | |
2886 | * mi/mi-main.c (mi_cmd_data_write_register_values): Update. | |
2887 | * mep-tdep.c (current_me_module, current_options): Update. | |
2888 | * linux-thread-db.c (thread_db_load): Update. | |
2889 | * infcmd.c (registers_info, info_vector_command) | |
2890 | (info_float_command): Update. | |
2891 | * ia64-tdep.c (ia64_frame_prev_register) | |
2892 | (ia64_sigtramp_frame_prev_register): Update. | |
2893 | * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update. | |
2894 | * gcore.c (derive_stack_segment): Update. | |
2895 | * frame.c (get_current_frame, has_stack_frames): Update. | |
2896 | * findvar.c (language_defn::read_var_value): Update. | |
2897 | * arm-tdep.c (arm_pc_is_thumb): Update. | |
2898 | * target.c (target_has_registers): Rename from | |
2899 | target_has_registers_1. | |
2900 | * target.h (target_has_registers): Remove macro. | |
2901 | (target_has_registers): Rename from target_has_registers_1. | |
2902 | ||
841de120 TT |
2903 | 2020-09-28 Tom Tromey <tom@tromey.com> |
2904 | ||
2905 | * windows-tdep.c (tlb_make_value): Update. | |
2906 | * tui/tui-regs.c (tui_data_window::show_registers): Update. | |
2907 | * thread.c (scoped_restore_current_thread::restore) | |
2908 | (scoped_restore_current_thread::scoped_restore_current_thread) | |
2909 | (thread_command): Update. | |
2910 | * stack.c (backtrace_command_1, frame_apply_level_command) | |
2911 | (frame_apply_all_command, frame_apply_command): Update. | |
2912 | * infrun.c (siginfo_make_value, restore_infcall_control_state): | |
2913 | Update. | |
2914 | * gcore.c (derive_stack_segment): Update. | |
2915 | * frame.c (get_current_frame, has_stack_frames): Update. | |
2916 | * auxv.c (info_auxv_command): Update. | |
2917 | * ada-tasks.c (ada_build_task_list): Update. | |
2918 | * target.c (target_has_stack): Rename from target_has_stack_1. | |
2919 | * target.h (target_has_stack): Remove macro. | |
2920 | (target_has_stack): Rename from target_has_stack_1. | |
2921 | ||
a739972c TT |
2922 | 2020-09-28 Tom Tromey <tom@tromey.com> |
2923 | ||
2924 | * target.c (target_has_memory): Rename from target_has_memory_1. | |
2925 | * tui/tui-regs.c (tui_data_window::show_registers): Update. | |
2926 | * thread.c (scoped_restore_current_thread::restore) | |
2927 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
2928 | Update. | |
2929 | * frame.c (get_current_frame, has_stack_frames): Update. | |
2930 | * target.h (target_has_memory): Remove macro. | |
2931 | (target_has_memory): Rename from target_has_memory_1. | |
2932 | ||
5b8a4776 TT |
2933 | 2020-09-28 Tom Tromey <tom@tromey.com> |
2934 | ||
2935 | * target.c (target_has_all_memory_1): Remove. | |
2936 | * target.h (target_has_all_memory): Remove define. | |
2937 | (target_has_all_memory_1): Don't declare. | |
2938 | ||
bd356ec6 SM |
2939 | 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca> |
2940 | ||
2941 | * ser-base.c: Adjust comments formatting. | |
2942 | ||
2c72d5e5 TT |
2943 | 2020-09-27 Tom Tromey <tom@tromey.com> |
2944 | ||
2945 | PR tui/25342: | |
2946 | * tui/tui-io.c (tui_puts): Rewrite. Move earlier. | |
2947 | ||
35a98237 TT |
2948 | 2020-09-27 Tom Tromey <tom@tromey.com> |
2949 | ||
2950 | PR tui/25342: | |
2951 | * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL. | |
2952 | ||
9e820dec TT |
2953 | 2020-09-27 Tom Tromey <tom@tromey.com> |
2954 | ||
2955 | * unittests/tui-selftests.c: Update. | |
2956 | * tui/tui-winsource.h (struct tui_source_window_base) | |
2957 | <extra_margin, show_line_number, refresh_pad>: New methods. | |
2958 | <m_max_length, m_pad>: New members. | |
2959 | (tui_copy_source_line): Update. | |
2960 | * tui/tui-winsource.c (tui_copy_source_line): Remove line_no, | |
2961 | first_col, line_width, ndigits parameters. Add length. | |
2962 | (tui_source_window_base::show_source_line): Write to pad. Line | |
2963 | number now 0-based. | |
2964 | (tui_source_window_base::refresh_pad): New method. | |
2965 | (tui_source_window_base::show_source_content): Write to pad. Call | |
2966 | refresh_pad. | |
2967 | (tui_source_window_base::do_scroll_horizontal): Call refresh_pad, | |
2968 | not refill. | |
2969 | (tui_source_window_base::update_exec_info): Call | |
2970 | show_line_number. | |
2971 | * tui/tui-source.h (struct tui_source_window) <extra_margin>: New | |
2972 | method. | |
2973 | <m_digits>: New member. | |
2974 | * tui/tui-source.c (tui_source_window::set_contents): Set m_digits | |
2975 | and m_max_length. | |
2976 | (tui_source_window::show_line_number): New method. | |
2977 | * tui/tui-io.h (tui_puts): Fix comment. | |
2978 | * tui/tui-disasm.c (tui_disasm_window::set_contents): Set | |
2979 | m_max_length. | |
2980 | ||
c15c15c8 TT |
2981 | 2020-09-27 Tom Tromey <tom@tromey.com> |
2982 | ||
2983 | * tui/tui-winsource.c | |
2984 | (tui_source_window_base::set_is_exec_point_at): Don't call | |
2985 | show_source_line. | |
2986 | ||
149830c1 TT |
2987 | 2020-09-27 Tom Tromey <tom@tromey.com> |
2988 | ||
2989 | * python/py-tui.c (class tui_py_window) <refresh_window>: New | |
2990 | method. | |
2991 | <erase>: Update. | |
2992 | <cursor_x, cursor_y>: Remove. | |
2993 | <m_inner_window>: New member. | |
2994 | (tui_py_window::rerender): Create inner window. | |
2995 | (tui_py_window::output): Write to inner window. | |
2996 | ||
8f9929bb GR |
2997 | 2020-09-26 Gareth Rees <grees@undo.io> (tiny change) |
2998 | ||
2999 | PR python/26586 | |
3000 | * cli/cli-script.c (execute_control_commands): don't set | |
3001 | instream to nullptr here as this breaks the from_tty argument | |
3002 | to gdb.execute in Python. | |
3003 | (execute_user_command): set instream to nullptr here instead. | |
3004 | ||
956bdb59 SM |
3005 | 2020-09-25 Simon Marchi <simon.marchi@efficios.com> |
3006 | ||
3007 | * infrun.h (infrun_debug_printf): Fix formatting. | |
3008 | * linux-nat.c (linux_nat_debug_printf): Fix formatting. | |
3009 | ||
3b93626b SJ |
3010 | 2020-09-25 Saagar Jha <saagar@saagarjha.com> |
3011 | ||
3012 | * compile/compile-object-load.h (struct munmap_list): Add | |
3013 | explicitly-defined move constructor. | |
3014 | ||
b551a89f TT |
3015 | 2020-09-24 Tom Tromey <tromey@adacore.com> |
3016 | ||
3017 | PR tui/26638: | |
3018 | * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New | |
3019 | method. | |
3020 | * tui/tui-data.h (struct tui_win_info) <can_focus>: New method. | |
3021 | * tui/tui-data.c (tui_next_win): Exclude non-focusable windows. | |
3022 | (tui_prev_win): Rewrite. | |
3023 | ||
99bb393f HD |
3024 | 2020-09-23 Hannes Domani <ssbssa@yahoo.de> |
3025 | ||
3026 | * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints | |
3027 | in WOW64 processes as SIGINT. | |
3028 | * nat/windows-nat.h: Make wow64_process a shared variable. | |
3029 | * windows-nat.c: Remove static wow64_process variable. | |
3030 | ||
20a5fcbd TT |
3031 | 2020-09-23 Tom Tromey <tom@tromey.com> |
3032 | ||
3033 | PR symtab/25470: | |
3034 | * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit | |
3035 | offset and bit size. | |
3036 | * printcmd.c (print_scalar_formatted): Handle zero-length | |
3037 | integer. | |
3038 | (print_scalar_formatted): Use bit_size_differs_p. | |
3039 | * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New | |
3040 | constant. | |
3041 | (union type_specific): <int_stuff>: New member. | |
3042 | (struct type) <bit_size_differs_p, bit_size, bit_offset>: New | |
3043 | methods. | |
3044 | * gdbtypes.c (init_integer_type, init_boolean_type): Initialize | |
3045 | TYPE_SPECIFIC_FIELD. | |
3046 | (recursive_dump_type, copy_type_recursive): Update. | |
3047 | * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and | |
3048 | DW_AT_data_bit_offset. | |
3049 | ||
bac51ab7 TT |
3050 | 2020-09-23 Tom Tromey <tom@tromey.com> |
3051 | ||
3052 | * utils.h (class gdb_argv): Add move operators. | |
3053 | <append>: New methods. | |
3054 | * compile/compile.c (build_argc_argv): Remove. | |
3055 | (compile_args_argc): Remove. | |
3056 | (compile_args_argv): Change type. | |
3057 | (set_compile_args): Simplify. | |
3058 | (append_args): Remove. | |
3059 | (filter_args): Remove argcp parameter. | |
3060 | (get_args): Return gdb_argv. Simplify. | |
3061 | (compile_to_object): Update. | |
3062 | ||
92677124 TT |
3063 | 2020-09-23 Tom Tromey <tom@tromey.com> |
3064 | ||
3065 | * compile/compile-object-run.c (do_module_cleanup) | |
3066 | <~do_module_cleanup> :Remove. | |
3067 | (do_module_cleanup): Update. | |
3068 | * compile/compile-object-load.h (struct munmap_list): Add move | |
3069 | assignment operator. | |
3070 | <source_file>: Now a std::string. | |
3071 | <munmap_list>: Rename. No longer a pointer. | |
3072 | * compile/compile-object-load.c (struct setup_sections_data): Add | |
3073 | constructor. | |
3074 | <setup_one_section>: Declare. | |
3075 | <munmap_list>: Move earlier. | |
3076 | <m_bfd>: New member. | |
3077 | <m_last_size, m_last_section_first, m_last_prot, | |
3078 | m_last_max_alignment>: Rename, add initializers where needed. | |
3079 | (setup_sections_data::setup_one_section): Rename from | |
3080 | setup_sections. Update. | |
3081 | (compile_object_load): Update. Don't use bfd_map_over_sections. | |
3082 | ||
e616f60a TT |
3083 | 2020-09-23 Tom Tromey <tom@tromey.com> |
3084 | ||
3085 | * compile/compile-object-run.c (struct do_module_cleanup): Add | |
3086 | parameters to constructor. Update destructor. | |
3087 | <source_file, scope, scope_data, out_value_type, out_value_addr, | |
3088 | munmap_list_head, objfile_name_string>: Remove. | |
3089 | <module>: New member. | |
3090 | (do_module_cleanup): Update. | |
3091 | (compile_object_run): Update. | |
3092 | ||
e947a848 TT |
3093 | 2020-09-23 Tom Tromey <tom@tromey.com> |
3094 | ||
3095 | * compile/compile.c (eval_compile_command): Update. | |
3096 | * compile/compile-object-run.h (compile_object_run): Take a | |
3097 | compile_module_up. | |
3098 | * compile/compile-object-run.c (compile_object_run): Take a | |
3099 | compile_module_up. | |
3100 | * compile/compile-object-load.h (struct compile_module): Add | |
3101 | constructor, destructor. | |
3102 | (compile_module_up): New typedef. | |
3103 | (compile_object_load): Return compile_object_up. | |
3104 | * compile/compile-object-load.c (compile_object_load): Return | |
3105 | compile_module_up. | |
3106 | ||
0dbf6ee6 TT |
3107 | 2020-09-23 Tom Tromey <tom@tromey.com> |
3108 | ||
3109 | * compile/compile-object-run.c (struct do_module_cleanup): Add | |
3110 | constructor, destructor. | |
3111 | <objfile_name_string>: Don't use struct hack. | |
3112 | (do_module_cleanup): Use delete. | |
3113 | (compile_object_run): Use new. | |
3114 | ||
ebe824f5 TT |
3115 | 2020-09-23 Tom Tromey <tom@tromey.com> |
3116 | ||
3117 | * compile/compile-cplus-types.c | |
3118 | (compile_cplus_convert_struct_or_union): Use std::vector. | |
3119 | (compile_cplus_convert_func): Likewise. | |
3120 | * compile/compile-c-types.c (convert_func): Use std::vector. | |
3121 | ||
5dd918d9 TT |
3122 | 2020-09-21 Tom Tromey <tromey@adacore.com> |
3123 | ||
3124 | * sparc-tdep.c (sparc32_skip_prologue): Use | |
3125 | skip_prologue_using_sal. | |
3126 | ||
5486c517 TT |
3127 | 2020-09-19 Tom Tromey <tom@tromey.com> |
3128 | ||
3129 | * symfile.c (add_section_size_callback): Remove. | |
3130 | (load_one_section): Rename from load_section_callback. Change | |
3131 | parameters. | |
3132 | (generic_load): Use foreach. | |
3133 | ||
8a6bb1d1 TT |
3134 | 2020-09-19 Tom Tromey <tom@tromey.com> |
3135 | ||
3136 | * exec.c (add_to_section_table): Remove. | |
3137 | (build_section_table): Use foreach. | |
3138 | ||
08f93a1a TT |
3139 | 2020-09-19 Tom Tromey <tom@tromey.com> |
3140 | ||
3141 | * elfread.c (elf_locate_sections): Change parameters. | |
3142 | (elf_symfile_read): Use foreach. | |
3143 | ||
03cd72b8 TT |
3144 | 2020-09-19 Tom Tromey <tom@tromey.com> |
3145 | ||
3146 | * cli/cli-dump.c (struct callback_data): Remove. | |
3147 | (restore_one_section): Rename from restore_section_callback. | |
3148 | Change parameters. | |
3149 | (restore_binary_file): Change parameters. | |
3150 | (restore_command): Use foreach. | |
3151 | ||
f4f2b85f TT |
3152 | 2020-09-19 Tom Tromey <tom@tromey.com> |
3153 | ||
3154 | * gcore.c (make_output_phdrs): Remove 'ignored' parameter. | |
3155 | (gcore_copy_callback): Likewise. | |
3156 | (gcore_memory_sections): Use foreach. | |
3157 | ||
b35c1d1c TT |
3158 | 2020-09-19 Tom Tromey <tom@tromey.com> |
3159 | ||
3160 | * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update. | |
3161 | * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change | |
3162 | parameters. | |
3163 | (generic_elf_osabi_sniffer): Use foreach. | |
3164 | * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach. | |
3165 | * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach. | |
3166 | ||
5bb6e9dd TT |
3167 | 2020-09-19 Tom Tromey <tom@tromey.com> |
3168 | ||
3169 | * dwarf2/read.c (locate_dwz_sections): Change parameters. | |
3170 | (dwarf2_get_dwz_file): Use foreach. | |
3171 | (dwarf2_locate_dwo_sections): Change parameters. | |
3172 | (open_and_init_dwo_file): Use foreach. | |
3173 | (dwarf2_locate_common_dwp_sections): Change parameters. | |
3174 | (open_and_init_dwp_file): Use foreach. | |
3175 | ||
ad7277da TT |
3176 | 2020-09-19 Tom Tromey <tom@tromey.com> |
3177 | ||
3178 | * symfile.h: (find_lowest_section): Don't declare. | |
3179 | * symfile.c (find_lowest_section): Now static. Change | |
3180 | parameters. | |
3181 | (struct place_section_arg): Remove. | |
3182 | (place_section): Change parameters. | |
3183 | (addr_info_make_relative): Use foreach. | |
3184 | (symfile_dummy_outputs): Remove. | |
3185 | (default_symfile_relocate): Use foreach. | |
3186 | ||
cb814f2e TT |
3187 | 2020-09-19 Tom Tromey <tom@tromey.com> |
3188 | ||
3189 | * objfiles.c (add_to_objfile_sections): Rename from | |
3190 | add_to_objfile_sections_full. | |
3191 | (add_to_objfile_sections): Remove. | |
3192 | (build_objfile_section_table): Use foreach. | |
3193 | ||
3cabfd26 TT |
3194 | 2020-09-19 Tom Tromey <tom@tromey.com> |
3195 | ||
3196 | * stap-probe.c (get_stap_base_address_1): Remove. | |
3197 | (get_stap_base_address): Use foreach. | |
3198 | ||
1ce51eb5 TT |
3199 | 2020-09-19 Tom Tromey <tom@tromey.com> |
3200 | ||
3201 | * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore' | |
3202 | parameters. | |
3203 | (gdb_bfd_close_or_warn): Use foreach. | |
3204 | ||
a190fabb TT |
3205 | 2020-09-19 Tom Tromey <tom@tromey.com> |
3206 | ||
3207 | * corelow.c (add_to_thread_list): Change parameters. | |
3208 | (core_target_open): Use foreach. | |
3209 | ||
cafb0d81 TT |
3210 | 2020-09-19 Tom Tromey <tom@tromey.com> |
3211 | ||
3212 | * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of | |
3213 | existing function. | |
3214 | ||
c8d5abea AB |
3215 | 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com> |
3216 | ||
3217 | * f-valprint.c (f77_print_array_1): Adjust printing of whitespace | |
3218 | for arrays. | |
3219 | ||
6d816919 AB |
3220 | 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com> |
3221 | ||
3222 | * eval.c: Remove 'f-lang.h' include. | |
3223 | (value_f90_subarray): Moved to f-lang.c. | |
3224 | (eval_call): Renamed to... | |
3225 | (evaluate_subexp_do_call): ...this, is no longer static, header | |
3226 | comment moved into header file. | |
3227 | (evaluate_funcall): Update call to eval_call. | |
3228 | (skip_undetermined_arglist): Moved to f-lang.c. | |
3229 | (fortran_value_subarray): Likewise. | |
3230 | (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling | |
3231 | moved to evaluate_subexp_f. | |
3232 | (calc_f77_array_dims): Moved to f-lang.c | |
3233 | * expprint.c (print_subexp_funcall): New function. | |
3234 | (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling | |
3235 | moved to print_subexp_f, OP_FUNCALL uses new function. | |
3236 | (dump_subexp_body_funcall): New function. | |
3237 | (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling | |
3238 | moved to dump_subexp_f, OP_FUNCALL uses new function. | |
3239 | * expression.h (evaluate_subexp_do_call): Declare. | |
3240 | * f-lang.c (value_f90_subarray): Moved from eval.c. | |
3241 | (skip_undetermined_arglist): Likewise. | |
3242 | (calc_f77_array_dims): Likewise. | |
3243 | (fortran_value_subarray): Likewise. | |
3244 | (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support. | |
3245 | (operator_length_f): Likewise. | |
3246 | (print_subexp_f): Likewise. | |
3247 | (dump_subexp_body_f): Likewise. | |
3248 | * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move | |
3249 | declaration of this operation to here. | |
3250 | * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST | |
3251 | support moved to operator_length_f. | |
3252 | * parser-defs.h (dump_subexp_body_funcall): Declare. | |
3253 | (print_subexp_funcall): Declare. | |
3254 | * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to | |
3255 | fortran-operator.def. | |
3256 | ||
8c37706a AB |
3257 | 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com> |
3258 | ||
3259 | * eval.c (fortran_value_subarray): New function, content is taken | |
3260 | from... | |
3261 | (evaluate_subexp_standard): ...here, in two places. Now arrays | |
3262 | and strings both call the new function. | |
3263 | (calc_f77_array_dims): Add header comment, handle strings. | |
3264 | ||
14f9473c VC |
3265 | 2020-09-18 Victor Collod <vcollod@nvidia.com> |
3266 | ||
3267 | PR gdb/26635 | |
3268 | * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr. | |
3269 | (i386_analyze_prologue): Call i386_skip_endbr. | |
3270 | ||
b60cea74 TT |
3271 | 2020-09-18 Tom Tromey <tromey@adacore.com> |
3272 | ||
3273 | * windows-nat.c (struct windows_nat_target) <wait>: Update. | |
3274 | (windows_nat_target::wait): Update. | |
3275 | * target/wait.h (enum target_wait_flag): New. Use | |
3276 | DEF_ENUM_FLAGS_TYPE. | |
3277 | * target/target.h (target_wait): Change type of options. | |
3278 | * target.h (target_options_to_string, default_target_wait): | |
3279 | Update. | |
3280 | (struct target_ops) <wait>: Change type of options. | |
3281 | * target.c (target_wait, default_target_wait, do_option): Change | |
3282 | type of "options". | |
3283 | (target_options_to_string): Likewise. | |
3284 | * target-delegates.c: Rebuild. | |
3285 | * target-debug.h (target_debug_print_target_wait_flags): Rename | |
3286 | from target_debug_print_options. | |
3287 | * sol-thread.c (class sol_thread_target) <wait>: Update. | |
3288 | (sol_thread_target::wait): Update. | |
3289 | * rs6000-nat.c (class rs6000_nat_target) <wait>: Update. | |
3290 | (rs6000_nat_target::wait): Update. | |
3291 | * remote.c (class remote_target) <wait, wait_ns, wait_as>: | |
3292 | Update. | |
3293 | (remote_target::wait_ns, remote_target::wait_as): Change type of | |
3294 | "options". | |
3295 | (remote_target::wait): Update. | |
3296 | * remote-sim.c (struct gdbsim_target) <wait>: Update. | |
3297 | (gdbsim_target::wait): Update. | |
3298 | * record-full.c (class record_full_base_target) <wait>: Update. | |
3299 | (record_full_wait_1): Change type of "options". | |
3300 | (record_full_base_target::wait): Update. | |
3301 | * record-btrace.c (class record_btrace_target) <wait>: Update. | |
3302 | (record_btrace_target::wait): Update. | |
3303 | * ravenscar-thread.c (struct ravenscar_thread_target) <wait>: | |
3304 | Update. | |
3305 | (ravenscar_thread_target::wait): Update. | |
3306 | * procfs.c (class procfs_target) <wait>: Update. | |
3307 | (procfs_target::wait): Update. | |
3308 | * obsd-nat.h (class obsd_nat_target) <wait>: Update. | |
3309 | * obsd-nat.c (obsd_nat_target::wait): Update. | |
3310 | * nto-procfs.c (struct nto_procfs_target) <wait>: Update. | |
3311 | (nto_procfs_target::wait): Update. | |
3312 | * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update. | |
3313 | * nbsd-nat.c (nbsd_wait): Change type of "options". | |
3314 | (nbsd_nat_target::wait): Update. | |
3315 | * linux-thread-db.c (class thread_db_target) <wait>: Update. | |
3316 | (thread_db_target::wait): Update. | |
3317 | * linux-nat.h (class linux_nat_target) <wait>: Update. | |
3318 | * linux-nat.c (linux_nat_target::wait): Update. | |
3319 | (linux_nat_wait_1): Update. | |
3320 | * infrun.c (do_target_wait_1, do_target_wait): Change type of | |
3321 | "options". | |
3322 | * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update. | |
3323 | * inf-ptrace.c (inf_ptrace_target::wait): Update. | |
3324 | * go32-nat.c (struct go32_nat_target) <wait>: Update. | |
3325 | (go32_nat_target::wait): Update. | |
3326 | * gnu-nat.h (struct gnu_nat_target) <wait>: Update. | |
3327 | * gnu-nat.c (gnu_nat_target::wait): Update. | |
3328 | * fbsd-nat.h (class fbsd_nat_target) <wait>: Update. | |
3329 | * fbsd-nat.c (fbsd_nat_target::wait): Update. | |
3330 | * darwin-nat.h (class darwin_nat_target) <wait>: Update. | |
3331 | * darwin-nat.c (darwin_nat_target::wait): Update. | |
3332 | * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update. | |
3333 | (bsd_uthread_target::wait): Update. | |
3334 | * aix-thread.c (class aix_thread_target) <wait>: Update. | |
3335 | (aix_thread_target::wait): Update. | |
3336 | ||
0295dde6 AB |
3337 | 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com> |
3338 | ||
3339 | * compile/compile-object-run.c (create_copied_type_recursive): New | |
3340 | function. | |
3341 | (compile_object_run): Use new function. | |
3342 | ||
d3483b43 JT |
3343 | 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk> |
3344 | ||
3345 | * NEWS: Mention x86_64 Cygwin core file support. | |
3346 | ||
e7d612ad JT |
3347 | 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk> |
3348 | ||
3349 | * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define. | |
3350 | (core_process_module_section): Handle NOTE_INFO_MODULE64. | |
3351 | ||
aff9d387 JT |
3352 | 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk> |
3353 | ||
62a5151b JT |
3354 | * windows-tdep.h: Add prototypes. |
3355 | * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move. | |
3356 | (i386_windows_core_pid_to_str): Move and rename ... | |
3357 | * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here | |
3358 | (windows_core_pid_to_str): ... and here. | |
3359 | * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here. | |
3360 | ||
3361 | 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk> | |
aff9d387 JT |
3362 | * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add. |
3363 | (amd64_windows_init_abi_common): ... and register. | |
3364 | ||
7d155da3 JT |
3365 | 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk> |
3366 | ||
3367 | * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New. | |
3368 | (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer. | |
3369 | ||
e8ef12b9 PA |
3370 | 2020-09-18 Pedro Alves <pedro@palves.net> |
3371 | ||
3372 | PR gdb/26631 | |
3373 | * thread.c (thread_find_command): Switch inferior before calling | |
3374 | target methods. | |
3375 | ||
c1e1314d TT |
3376 | 2020-09-17 Tom Tromey <tromey@adacore.com> |
3377 | ||
3378 | * tic6x-tdep.c (tic6x_gdbarch_init): Update. | |
3379 | * target-descriptions.h (struct tdesc_arch_data_deleter): New. | |
3380 | (tdesc_arch_data_up): New typedef. | |
3381 | (tdesc_use_registers, tdesc_data_alloc): Update. | |
3382 | (tdesc_data_cleanup): Don't declare. | |
3383 | * target-descriptions.c (tdesc_data_alloc): Return a | |
3384 | tdesc_arch_data_up. | |
3385 | (tdesc_arch_data_deleter::operator()): Rename from | |
3386 | tdesc_data_cleanup. Change argument type. | |
3387 | (tdesc_use_registers): Change early_data to an rvalue reference. | |
3388 | (tdesc_use_registers): Don't use delete. | |
3389 | * sparc-tdep.c (sparc32_gdbarch_init): Update. | |
3390 | * s390-tdep.c (s390_gdbarch_init): Update. | |
3391 | * rx-tdep.c (rx_gdbarch_init): Update. | |
3392 | * rs6000-tdep.c (rs6000_gdbarch_init): Update. | |
3393 | * riscv-tdep.c (riscv_gdbarch_init): Update. | |
3394 | * or1k-tdep.c (or1k_gdbarch_init): Update. | |
3395 | * nios2-tdep.c (nios2_gdbarch_init): Update. | |
3396 | * nds32-tdep.c (nds32_gdbarch_init): Update. | |
3397 | * mips-tdep.c (mips_gdbarch_init): Update. | |
3398 | * microblaze-tdep.c (microblaze_gdbarch_init): Update. | |
3399 | * m68k-tdep.c (m68k_gdbarch_init): Update. | |
3400 | * i386-tdep.c (i386_gdbarch_init): Update. | |
3401 | * arm-tdep.c (arm_gdbarch_init): Update. | |
3402 | * arc-tdep.c (arc_tdesc_init): Update. | |
3403 | (arc_gdbarch_init): Update. | |
3404 | * aarch64-tdep.c (aarch64_gdbarch_init): Update. | |
3405 | ||
0363df3d HD |
3406 | 2020-09-17 Hannes Domani <ssbssa@yahoo.de> |
3407 | ||
3408 | * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin | |
3409 | for WOW64 processes. | |
3410 | ||
280a9412 TT |
3411 | 2020-09-17 Tom Tromey <tom@tromey.com> |
3412 | ||
3413 | * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up. | |
3414 | ||
6108fd18 TT |
3415 | 2020-09-17 Tom Tromey <tom@tromey.com> |
3416 | ||
3417 | * value.c (preserve_values): Update. | |
3418 | * python/py-type.c (save_objfile_types): Update. | |
3419 | * guile/scm-type.c (save_objfile_types): Update. | |
3420 | * gdbtypes.h (create_copied_types_hash): Return htab_up. | |
3421 | * gdbtypes.c (create_copied_types_hash): Return htab_up. | |
3422 | * compile/compile-object-run.c (compile_object_run): Update. | |
3423 | ||
fa9b1164 TT |
3424 | 2020-09-17 Tom Tromey <tom@tromey.com> |
3425 | ||
3426 | * typeprint.h (class typedef_hash_table) <~typedef_hash_table>: | |
3427 | Remove. | |
3428 | <m_table>: Now htab_up. | |
3429 | * typeprint.c (typedef_hash_table::recursively_update) | |
3430 | (typedef_hash_table::add_template_parameters) | |
3431 | (typedef_hash_table::typedef_hash_table): Update. | |
3432 | (typedef_hash_table::~typedef_hash_table): Remove. | |
3433 | (typedef_hash_table::typedef_hash_table) | |
3434 | (typedef_hash_table::find_global_typedef) | |
3435 | (typedef_hash_table::find_typedef): Update. | |
3436 | ||
eb53f105 TT |
3437 | 2020-09-17 Tom Tromey <tom@tromey.com> |
3438 | ||
3439 | * target-descriptions.c (tdesc_use_registers): Use htab_up. | |
3440 | ||
7a8a5d47 TT |
3441 | 2020-09-17 Tom Tromey <tom@tromey.com> |
3442 | ||
3443 | * linespec.c (class decode_compound_collector) | |
3444 | <~decode_compound_collector>: Remove. | |
3445 | <m_unique_syms>: Now htab_up. | |
3446 | (decode_compound_collector::operator ()): Update. | |
3447 | (class symtab_collector) <~symtab_collector>: Remove. | |
3448 | <m_symtab_table>: Now htab_up. | |
3449 | (symtab_collector::operator ()): Update. | |
3450 | ||
99032cfc TT |
3451 | 2020-09-17 Tom Tromey <tom@tromey.com> |
3452 | ||
3453 | * filename-seen-cache.c (filename_seen_cache::filename_seen_cache) | |
3454 | (filename_seen_cache::clear): Update. | |
3455 | (~filename_seen_cache): Remove. | |
3456 | (filename_seen_cache::seen): Update. | |
3457 | * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now | |
3458 | htab_up. | |
3459 | <~filename_seen_cache>: Remove. | |
3460 | <traverse>: Update. | |
3461 | ||
32580f6d TT |
3462 | 2020-09-17 Tom Tromey <tom@tromey.com> |
3463 | ||
3464 | * completer.c (completion_tracker::discard_completions) | |
3465 | (completion_tracker::~completion_tracker) | |
3466 | (completion_tracker::maybe_add_completion) | |
3467 | (completion_tracker::remove_completion) | |
3468 | (completion_tracker::recompute_lowest_common_denominator) | |
3469 | (completion_tracker::build_completion_result): Update. | |
3470 | * completer.h (class completion_tracker) <have_completions>: | |
3471 | Update. | |
3472 | <m_entries_hash>: Now htab_up. | |
3473 | ||
c1fb9836 TT |
3474 | 2020-09-17 Tom Tromey <tom@tromey.com> |
3475 | ||
3476 | * breakpoint.c (ambiguous_names_p): Use htab_up. | |
3477 | ||
88f07206 TT |
3478 | 2020-09-17 Tom Tromey <tom@tromey.com> |
3479 | ||
3480 | * auto-load.c (struct auto_load_pspace_info) | |
3481 | <~auto_load_pspace_info, auto_load_pspace_info>: Remove. | |
3482 | <loaded_script_files, loaded_script_texts>: Change type to | |
3483 | htab_up. | |
3484 | (~auto_load_pspace_info) Remove. | |
3485 | (init_loaded_scripts_info, maybe_add_script_file) | |
3486 | (maybe_add_script_text, auto_load_info_scripts): Update. | |
3487 | ||
9519b2ee TT |
3488 | 2020-09-17 Tom Tromey <tromey@adacore.com> |
3489 | ||
3490 | * c-exp.y (name_obstack): Now static. | |
3491 | ||
d2cd4113 CC |
3492 | 2020-09-17 Chungyi Chi <demonic@csie.io> |
3493 | ||
3494 | * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type. | |
3495 | ||
b650a282 SM |
3496 | 2020-09-16 Simon Marchi <simon.marchi@efficios.com> |
3497 | ||
3498 | * breakpoint.h (init_catchpoint): Change int parameter to bool. | |
3499 | (add_solib_catchpoint): Likewise. | |
3500 | * breakpoint.c (struct solib_catchpoint) <is_load>: Change type | |
3501 | to bool. | |
3502 | (add_solib_catchpoint): Change int parameter/variable to bool. | |
3503 | (catch_load_or_unload): Likewise. | |
3504 | (init_catchpoint): Likewise. | |
3505 | (create_fork_vfork_event_catchpoint): Likewise. | |
3506 | (catch_fork_command_1): Likewise. | |
3507 | (catch_exec_command_1): Likewise. | |
3508 | ||
4d0bcfcf SM |
3509 | 2020-09-16 Simon Marchi <simon.marchi@efficios.com> |
3510 | ||
3511 | * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>: | |
3512 | Change instance_flags to m_instance_flags. | |
3513 | ||
fe830662 TT |
3514 | 2020-09-16 Tom Tromey <tromey@adacore.com> |
3515 | ||
3516 | PR gdb/26598: | |
3517 | * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym. | |
3518 | ||
fe5ddfc3 JB |
3519 | 2020-09-16 John Baldwin <jhb@FreeBSD.org> |
3520 | ||
3521 | * fbsd-nat.c (fbsd_nat_target::wait): Always check for | |
3522 | PL_FLAG_EXEC. | |
3523 | (fbsd_nat_target::insert_exec_catchpoint) | |
3524 | (fbsd_nat_target::remove_exec_catchpoint): Always define. | |
3525 | * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint) | |
3526 | (fbsd_nat_target::remove_exec_catchpoint): Always declare. | |
3527 | ||
e911c666 JB |
3528 | 2020-09-16 John Baldwin <jhb@FreeBSD.org> |
3529 | ||
3530 | * configure.ac: Remove check for kinfo_getvmmap(). | |
3531 | * configure, config.in: Regenerate. | |
3532 | * fbsd-nat.c (fbsd_read_mapping): Remove | |
3533 | (fbsd_nat_target::find_memory_regions): Remove the procfs version. | |
3534 | (fbsd_nat_target::info_proc): Assume kinfo_getfile() and | |
3535 | kinfo_get_vmmap() are always present. | |
3536 | ||
1f17d372 JB |
3537 | 2020-09-16 John Baldwin <jhb@FreeBSD.org> |
3538 | ||
3539 | * fbsd-nat.c: Always include support for | |
3540 | TARGET_OBJECT_SIGNAL_INFO. | |
3541 | ||
bcb1da7f JB |
3542 | 2020-09-16 John Baldwin <jhb@FreeBSD.org> |
3543 | ||
3544 | * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use | |
3545 | sysctl and remove procfs fallback. | |
3546 | ||
5515f729 JB |
3547 | 2020-09-16 John Baldwin <jhb@FreeBSD.org> |
3548 | ||
3549 | * fbsd-nat.c: Assume PT_LWPINFO is always defined. | |
3550 | * fbsd-nat.h: Likewise. | |
3551 | ||
da1df1db TBA |
3552 | 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3553 | ||
3554 | * breakpoint.c (commands_command_1): Make a copy of the 'arg' | |
3555 | argument. | |
3556 | ||
0e25e767 AB |
3557 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
3558 | ||
3559 | * ada-lang.c (ada_language_data): Delete. | |
3560 | (ada_language): Remove references to ada_language_data. | |
3561 | * c-lang.c (c_language_data): Delete. | |
3562 | (c_language): Remove references to c_language_data. | |
3563 | (cplus_language_data): Delete. | |
3564 | (cplus_language): Remove references to cplus_language_data. | |
3565 | (asm_language_data): Delete. | |
3566 | (asm_language): Remove references to asm_language_data. | |
3567 | (minimal_language_data): Delete. | |
3568 | (minimal_language): Remove references to minimal_language_data. | |
3569 | * d-lang.c (d_language_data): Delete. | |
3570 | (d_language): Remove references to d_language_data. | |
3571 | * f-lang.c (f_language_data): Delete. | |
3572 | (f_language): Remove references to f_language_data. | |
3573 | * go-lang.c (go_language_data): Delete. | |
3574 | (go_language): Remove references to go_language_data. | |
3575 | * language.c (unknown_language_data): Delete. | |
3576 | (unknown_language): Remove references to unknown_language_data. | |
3577 | (auto_language_data): Delete. | |
3578 | (auto_language): Remove references to auto_language_data. | |
3579 | * language.h (language_data): Delete struct. | |
3580 | (language_defn): No longer inherit from language_data. | |
3581 | * m2-lang.c (m2_language_data): Delete. | |
3582 | (m2_language): Remove references to m2_language_data. | |
3583 | * objc-lang.c (objc_language_data): Delete. | |
3584 | (objc_language): Remove references to objc_language_data. | |
3585 | * opencl-lang.c (opencl_language_data): Delete. | |
3586 | (opencl_language): Remove references to opencl_language_data. | |
3587 | * p-lang.c (pascal_language_data): Delete. | |
3588 | (pascal_language): Remove references to pascal_language_data. | |
3589 | * rust-lang.c (rust_language_data): Delete. | |
3590 | (rust_language): Remove references to rust_language_data. | |
3591 | ||
b7c6e27d AB |
3592 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
3593 | ||
3594 | * ada-lang.c (ada_language_data): Remove la_op_print_tab | |
3595 | initializer. | |
3596 | (ada_language::opcode_print_table): New member function. | |
3597 | * c-lang.c (c_language_data): Remove la_op_print_tab initializer. | |
3598 | (c_language::opcode_print_table): New member function. | |
3599 | (cplus_language_data): Remove la_op_print_tab initializer. | |
3600 | (cplus_language::opcode_print_table): New member function. | |
3601 | (asm_language_data): Remove la_op_print_tab initializer. | |
3602 | (asm_language::opcode_print_table): New member function. | |
3603 | (minimal_language_data): Remove la_op_print_tab initializer. | |
3604 | (minimal_language::opcode_print_table): New member function. | |
3605 | * d-lang.c (d_language_data): Remove la_op_print_tab initializer. | |
3606 | (d_language::opcode_print_table): New member function. | |
3607 | * expprint.c (print_subexp_standard): Update call to | |
3608 | opcode_print_table. | |
3609 | (op_string): Likewise. | |
3610 | * f-lang.c (f_language_data): Remove la_op_print_tab initializer. | |
3611 | (f_language::opcode_print_table): New member function. | |
3612 | * go-lang.c (go_language_data): Remove la_op_print_tab | |
3613 | initializer. | |
3614 | (go_language::opcode_print_table): New member function. | |
3615 | * language.c (unknown_language_data): Remove la_op_print_tab | |
3616 | initializer. | |
3617 | (unknown_language::opcode_print_table): New member function. | |
3618 | (auto_language_data): Remove la_op_print_tab initializer. | |
3619 | (auto_language::opcode_print_table): New member function. | |
3620 | * language.h (language_data): Remove la_op_print_tab field. | |
3621 | (language_defn::opcode_print_table): Declare new member function. | |
3622 | * m2-lang.c (m2_language_data): Remove la_op_print_tab | |
3623 | initializer. | |
3624 | (m2_language::opcode_print_table): New member function. | |
3625 | * objc-lang.c (objc_language_data): Remove la_op_print_tab | |
3626 | initializer. | |
3627 | (objc_language::opcode_print_table): New member function. | |
3628 | * opencl-lang.c (opencl_language_data): Remove la_op_print_tab | |
3629 | initializer. | |
3630 | (opencl_language::opcode_print_table): New member function. | |
3631 | * p-lang.c (pascal_language_data): Remove la_op_print_tab | |
3632 | initializer. | |
3633 | (pascal_language::opcode_print_table): New member function. | |
3634 | * rust-lang.c (rust_language_data): Remove la_op_print_tab | |
3635 | initializer. | |
3636 | (rust_language::opcode_print_table): New member function. | |
3637 | ||
5aba6ebe AB |
3638 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
3639 | ||
3640 | * ada-lang.c (ada_language_data): Remove la_exp_desc initializer. | |
3641 | (ada_language::expression_ops): New member function. | |
3642 | * c-lang.c (c_language_data): Remove la_exp_desc initializer. | |
3643 | (c_language::expression_ops): New member function. | |
3644 | (cplus_language_data): Remove la_exp_desc initializer. | |
3645 | (cplus_language::expression_ops): New member function. | |
3646 | (asm_language_data): Remove la_exp_desc initializer. | |
3647 | (asm_language::expression_ops): New member function. | |
3648 | (minimal_language_data): Remove la_exp_desc initializer. | |
3649 | (minimal_language::expression_ops): New member function. | |
3650 | * d-lang.c (d_language_data): Remove la_exp_desc initializer. | |
3651 | (d_language::expression_ops): New member function. | |
3652 | * eval.c (evaluate_subexp): Update call to expression_ops. | |
3653 | * expprint.c (print_subexp): Likewise. | |
3654 | (op_name): Likewise. | |
3655 | (dump_subexp_body): Likewise. | |
3656 | * f-lang.c (f_language_data): Remove la_exp_desc initializer. | |
3657 | (f_language::expression_ops): New member function. | |
3658 | * go-lang.c (go_language_data): Remove la_exp_desc initializer. | |
3659 | (go_language::expression_ops): New member function. | |
3660 | * language.c (language_defn::expression_ops): New function. | |
3661 | (unknown_language_data): Remove la_exp_desc initializer. | |
3662 | (auto_language_data): Likewise. | |
3663 | * language.h (language_data): Remove la_exp_desc field. | |
3664 | (language_defn::expression_ops): Declare new member function. | |
3665 | * m2-lang.c (m2_language_data): Remove la_exp_desc initializer. | |
3666 | (m2_language::expression_ops): New member function. | |
3667 | * objc-lang.c (objc_language_data): Remove la_exp_desc | |
3668 | initializer. | |
3669 | * opencl-lang.c (opencl_language_data): Remove la_exp_desc | |
3670 | initializer. | |
3671 | (opencl_language::expression_ops): New member function. | |
3672 | * p-lang.c (pascal_language_data): Remove la_exp_desc initializer. | |
3673 | * parse.c (operator_length): Update call to expression_ops. | |
3674 | (exp_iterate): Likewise. | |
3675 | * rust-lang.c (rust_language_data): Remove la_exp_desc | |
3676 | initializer. | |
3677 | (ruse_language::expression_ops): New member function. | |
3678 | ||
b63a3f3f AB |
3679 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
3680 | ||
3681 | * ada-lang.c (ada_language_data): Remove la_varobj_ops | |
3682 | initializer. | |
3683 | (ada_language::varobj_ops): New member function. | |
3684 | * c-lang.c (c_language_data): Remove la_varobj_ops | |
3685 | initializer. | |
3686 | (cplus_language_data): Likewise. | |
3687 | (cplus_language::varobj_ops): New member function. | |
3688 | (asm_language_data): Remove la_varobj_ops initializer. | |
3689 | (minimal_language_data): Likewise. | |
3690 | * d-lang.c (d_language_data): Likewise. | |
3691 | * f-lang.c (f_language_data): Likewise. | |
3692 | * go-lang.c (go_language_data): Likewise. | |
3693 | * language.c (language_defn::varobj_ops): New function. | |
3694 | (unknown_language_data): Remove la_varobj_ops | |
3695 | initializer. | |
3696 | (auto_language_data): Likewise. | |
3697 | * language.h (language_data): Remove la_varobj_ops field. | |
3698 | (language_defn::varobj_ops): Declare new member function. | |
3699 | * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer. | |
3700 | * objc-lang.c (objc_language_data): Likewise. | |
3701 | * opencl-lang.c (opencl_language_data): Likewise. | |
3702 | * p-lang.c (pascal_language_data): Likewise. | |
3703 | * rust-lang.c (rust_language_data): Likewise. | |
3704 | * varobj.c (varobj_create): Update call to varobj_ops. | |
3705 | * varobj.h (default_varobj_ops): Delete define. | |
3706 | ||
1ac14a04 AB |
3707 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
3708 | ||
3709 | * ada-lang.c (ada_language_data): Remove la_macro_expansion | |
3710 | initializer. | |
3711 | * c-lang.c (c_language_data): Likewise. | |
3712 | (c_language::macro_expansion): New member function. | |
3713 | (cplus_language_data): Likewise. | |
3714 | (cplus_language::macro_expansion): New member function. | |
3715 | (asm_language_data): Likewise. | |
3716 | (asm_language::macro_expansion): New member function. | |
3717 | (minimal_language_data): Likewise. | |
3718 | (minimal_language::macro_expansion): New member function. | |
3719 | * d-lang.c (d_language_data): Remove la_macro_expansion | |
3720 | initializer. | |
3721 | * f-lang.c (f_language_data): Likewise. | |
3722 | * go-lang.c (go_language_data): Likewise. | |
3723 | * language.c (unknown_language_data): Likewise. | |
3724 | (auto_language_data): Likewise. | |
3725 | * language.h (language_data): Remove la_macro_expansion field. | |
3726 | (language_defn::macro_expansion): New member function. | |
3727 | * m2-lang.c (m2_language_data): Remove la_macro_expansion | |
3728 | initializer. | |
3729 | * objc-lang.c (objc_language_data): Likewise. | |
3730 | (objc_language::macro_expansion): New member function. | |
3731 | * opencl-lang.c (opencl_language_data): Likewise. | |
3732 | (opencl_language::macro_expansion): New member function. | |
3733 | * p-lang.c (pascal_language_data): Remove la_macro_expansion | |
3734 | initializer. | |
3735 | * rust-lang.c (rust_language_data): Likewise. | |
3736 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
3737 | Update call to macro_expansion. | |
3738 | ||
3a3440fb AB |
3739 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
3740 | ||
3741 | * ada-lang.c (ada_language_data): Remove la_array_ordering | |
3742 | initializer. | |
3743 | * c-lang.c (c_language_data): Likewise. | |
3744 | (cplus_language_data): Likewise. | |
3745 | (asm_language_data): Likewise. | |
3746 | (minimal_language_data): Likewise. | |
3747 | * d-lang.c (d_language_data): Likewise. | |
3748 | * dwarf2/read.c (read_array_order): Update for call to | |
3749 | array_ordering. | |
3750 | * f-lang.c (f_language_data): Remove la_array_ordering | |
3751 | initializer. | |
3752 | (f_language::array_ordering): New member function. | |
3753 | * go-lang.c (go_language_data): Remove la_array_ordering | |
3754 | initializer. | |
3755 | * language.c (unknown_language_data): Likewise. | |
3756 | (auto_language_data): Likewise. | |
3757 | * language.h (language_data): Delete la_array_ordering field. | |
3758 | (language_defn::array_ordering): New member function. | |
3759 | * m2-lang.c (m2_language_data): Remove la_array_ordering | |
3760 | initializer. | |
3761 | * objc-lang.c (objc_language_data): Likewise. | |
3762 | * opencl-lang.c (opencl_language_data): Likewise. | |
3763 | * p-lang.c (pascal_language_data): Likewise. | |
3764 | * rust-lang.c (rust_language_data): Likewise. | |
3765 | ||
0d201fa4 AB |
3766 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
3767 | ||
3768 | * ada-lang.c (ada_language_data): Remove la_case_sensitivity | |
3769 | initializer. | |
3770 | * c-lang.c (c_language_data): Likewise. | |
3771 | (cplus_language_data): Likewise. | |
3772 | (asm_language_data): Likewise. | |
3773 | (minimal_language_data): Likewise. | |
3774 | * d-lang.c (d_language_data): Likewise. | |
3775 | * f-lang.c (f_language_data): Likewise. | |
3776 | (f_language::case_sensitivity): New member function. | |
3777 | * go-lang.c (go_language_data): Remove la_case_sensitivity | |
3778 | initializer. | |
3779 | * language.c (enum case_mode): Moved here from language.h. | |
3780 | (case_mode): Make static. | |
3781 | (show_case_command): Update for case_sensitivity being a method. | |
3782 | (set_case_command): Likewise. | |
3783 | (set_range_case): Likewise. | |
3784 | (unknown_language_data): Remove la_case_sensitivity initializer. | |
3785 | (auto_language_data): Likewise. | |
3786 | * language.h (case_mode): Delete, move enum declaration to | |
3787 | language.c. | |
3788 | (language_data): Delete la_case_sensitivity field. | |
3789 | (language_defn::case_sensitivity): New member function. | |
3790 | * m2-lang.c (m2_language_data): Remove la_case_sensitivity | |
3791 | initializer. | |
3792 | * objc-lang.c (objc_language_data): Likewise. | |
3793 | * opencl-lang.c (opencl_language_data): Likewise. | |
3794 | * p-lang.c (pascal_language_data): Likewise. | |
3795 | * rust-lang.c (rust_language_data): Likewise. | |
3796 | ||
efdf6a73 AB |
3797 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
3798 | ||
3799 | * ada-lang.c (ada_language_data): Remove la_range_check | |
3800 | initializer. | |
3801 | * c-lang.c (c_language_data): Likewise. | |
3802 | (cplus_language_data): Likewise. | |
3803 | (asm_language_data): Likewise. | |
3804 | (minimal_language_data): Likewise. | |
3805 | * d-lang.c (d_language_data): Likewise. | |
3806 | * f-lang.c (f_language_data): Likewise. | |
3807 | (f_language::range_checking_on_by_default): New member function. | |
3808 | * go-lang.c (go_language_data): Remove la_range_check initializer. | |
3809 | * language.c (enum range_mode): Moved here from language.h. | |
3810 | (range_mode): Made static. | |
3811 | (show_range_command): Update to use | |
3812 | range_checking_on_by_default. | |
3813 | (set_range_command): Likewise. | |
3814 | (set_range_case): Likewise. | |
3815 | (unknown_language_data): Remove la_range_check initializer. | |
3816 | (auto_language_data): Likewise. | |
3817 | * language.h (range_mode): Delete. Enum definition moved to | |
3818 | language.c. | |
3819 | (language_data): Remove la_range_check field. | |
3820 | (language_defn::range_checking_on_by_default): New member | |
3821 | function. | |
3822 | * m2-lang.c (m2_language_data): Remove la_range_check initializer. | |
3823 | (m2_language::range_checking_on_by_default): New member function. | |
3824 | * objc-lang.c (objc_language_data): Remove la_range_check | |
3825 | initializer. | |
3826 | * opencl-lang.c (opencl_language_data): Likewise. | |
3827 | * p-lang.c (pascal_language_data): Likewise. | |
3828 | (pascal_language::range_checking_on_by_default): New member | |
3829 | function. | |
3830 | * rust-lang.c (rust_language_data): Remove la_range_check | |
3831 | initializer. | |
3832 | (rust_language::range_checking_on_by_default): New member | |
3833 | function. | |
3834 | ||
bf92aec5 AB |
3835 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
3836 | ||
3837 | * dwarf2/read.c (dwarf2_physname): Remove special case for | |
3838 | language_go. | |
3839 | * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New | |
3840 | member function. | |
3841 | ||
d3355e4d AB |
3842 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
3843 | ||
3844 | * ada-lang.c (ada_language_data): Remove | |
3845 | la_store_sym_names_in_linkage_form_p initializer. | |
3846 | (ada_language::store_sym_names_in_linkage_form_p): New member | |
3847 | function. | |
3848 | * c-lang.c (c_language_data): Remove | |
3849 | la_store_sym_names_in_linkage_form_p initializer. | |
3850 | (c_language::store_sym_names_in_linkage_form_p): New member | |
3851 | function. | |
3852 | (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p | |
3853 | initializer. | |
3854 | (asm_language_data): Likewise. | |
3855 | (asm_language::store_sym_names_in_linkage_form_p): New member | |
3856 | function. | |
3857 | (minimal_language_data): Remove | |
3858 | la_store_sym_names_in_linkage_form_p initializer. | |
3859 | (minimal_language::store_sym_names_in_linkage_form_p): New member | |
3860 | function. | |
3861 | * d-lang.c (d_language_data): Remove | |
3862 | la_store_sym_names_in_linkage_form_p initializer. | |
3863 | * dwarf2/read.c (dwarf2_physname): Update call to | |
3864 | store_sym_names_in_linkage_form_p. | |
3865 | * f-lang.c (f_language_data): Remove | |
3866 | la_store_sym_names_in_linkage_form_p initializer. | |
3867 | * go-lang.c (go_language_data): Remove | |
3868 | la_store_sym_names_in_linkage_form_p initializer. | |
3869 | * language.c (unknown_language_data): Remove | |
3870 | la_store_sym_names_in_linkage_form_p initializer. | |
3871 | (unknown_language::store_sym_names_in_linkage_form_p): New member | |
3872 | function. | |
3873 | (auto_language_data): Remove la_store_sym_names_in_linkage_form_p | |
3874 | initializer. | |
3875 | (auto_language::store_sym_names_in_linkage_form_p): New member | |
3876 | function. | |
3877 | * language.h (language_data): Remove | |
3878 | la_store_sym_names_in_linkage_form_p member variable. | |
3879 | (language_defn::store_sym_names_in_linkage_form_p): New member | |
3880 | function. | |
3881 | * m2-lang.c (m2_language_data): Remove | |
3882 | la_store_sym_names_in_linkage_form_p initializer. | |
3883 | * objc-lang.c (objc_language_data): Likewise. | |
3884 | * opencl-lang.c (opencl_language_data): Likewise. | |
3885 | * p-lang.c (pascal_language_data): Likewise. | |
3886 | * rust-lang.c (rust_language_data): Likewise. | |
3887 | ||
22c12a6c AB |
3888 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
3889 | ||
3890 | * ada-lang.c (ada_language_data): Remove string_lower_bound | |
3891 | initializer. | |
3892 | * c-lang.c (c_language_data): Likewise. | |
3893 | (cplus_language_data): Likewise. | |
3894 | (asm_language_data): Likewise. | |
3895 | (minimal_language_data): Likewise. | |
3896 | * d-lang.c (d_language_data): Likewise. | |
3897 | * f-lang.c (f_language_data): Likewise. | |
3898 | * go-lang.c (go_language_data): Likewise. | |
3899 | * language.c (unknown_language_data): Likewise. | |
3900 | (auto_language_data): Likewise. | |
3901 | * language.h (language_data): Remove string_lower_bound field. | |
3902 | (language_defn::string_lower_bound): New member function. | |
3903 | * m2-lang.c (m2_language_data): Remove string_lower_bound | |
3904 | initializer. | |
3905 | (m2_language::string_lower_bound): New member function. | |
3906 | * objc-lang.c (objc_language_data): Remove string_lower_bound | |
3907 | initializer. | |
3908 | * opencl-lang.c (opencl_language_data): Likewise. | |
3909 | * p-lang.c (pascal_language_data): Likewise. | |
3910 | * rust-lang.c (rust_language_data): Likewise. | |
3911 | * valops.c (value_cstring): Update call to string_lower_bound. | |
3912 | (value_string): Likewise. | |
3913 | * value.c (allocate_repeated_value): Likewise. | |
3914 | ||
1c236ddd AB |
3915 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
3916 | ||
3917 | * valops.c (value_repeat): Fix incorrect argument name in comment. | |
3918 | ||
67bd3fd5 AB |
3919 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
3920 | ||
3921 | * ada-lang.c (ada_language_data): Remove c_style_arrays | |
3922 | initializer. | |
3923 | (ada_language::c_style_arrays_p): New member fuction. | |
3924 | * c-lang.c (c_language_data): Remove c_style_arrays | |
3925 | initializer. | |
3926 | (cplus_language_data): Likewise. | |
3927 | (asm_language_data): Likewise. | |
3928 | (minimal_language_data): Likewise. | |
3929 | * d-lang.c (d_language_data): Likewise. | |
3930 | * eval.c (ptrmath_type_p): Update call to c_style_arrays_p. | |
3931 | * f-lang.c (f_language_data): Remove c_style_arrays initializer. | |
3932 | (f_language::c_style_arrays_p): New member function. | |
3933 | * go-lang.c (go_language_data): Remove c_style_arrays initializer. | |
3934 | * infcall.c (value_arg_coerce): Update call to c_style_arrays_p. | |
3935 | * language.c (unknown_language_data): Remove c_style_arrays | |
3936 | initializer. | |
3937 | (auto_language_data): Likewise. | |
3938 | * language.h (language_data): Remove c_style_arrays field. | |
3939 | (language_defn::c_style_arrays_p): New member function. | |
3940 | * m2-lang.c (m2_language_data): Remove c_style_arrays initializer. | |
3941 | (m2_language::c_style_arrays_p): New member function. | |
3942 | * objc-lang.c (objc_language_data): Remove c_style_arrays | |
3943 | initializer. | |
3944 | * opencl-lang.c (opencl_language_data): Likewise. | |
3945 | * p-lang.c (pascal_language_data): Likewise. | |
3946 | * rust-lang.c (rust_language_data): Likewise. | |
3947 | * valarith.c (value_subscript): Update call to c_style_arrays_p, | |
3948 | and update local variable to a bool. | |
3949 | * valops.c (value_cast): Update call to c_style_arrays_p. | |
3950 | (value_array): Likewise. | |
3951 | * value.c (coerce_array): Likewise. | |
3952 | ||
85967615 AB |
3953 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
3954 | ||
3955 | * ada-lang.c (ada_language_data): Remove la_language initializer. | |
3956 | * c-lang.c (c_language_data): Likewise. | |
3957 | (cplus_language_data): Likewise. | |
3958 | (asm_language_data): Likewise. | |
3959 | (minimal_language_data): Likewise. | |
3960 | * d-lang.c (d_language_data): Likewise. | |
3961 | * f-lang.c (f_language_data): Likewise. | |
3962 | * go-lang.c (go_language_data): Likewise. | |
3963 | * language.c (unknown_language_data): Likewise. | |
3964 | (auto_language_data): Likewise. | |
3965 | * language.h (language_data): Remove la_language field. | |
3966 | (language_defn::language_defn): Initialise la_language field. | |
3967 | (language_defn::la_language): New member variable. | |
3968 | * m2-lang.c (m2_language_data): Remove la_language field. | |
3969 | * objc-lang.c (objc_language_data): Likewise. | |
3970 | * opencl-lang.c (opencl_language_data): Likewise. | |
3971 | * p-lang.c (pascal_language_data): Likewise. | |
3972 | * rust-lang.c (rust_language_data): Likewise. | |
3973 | ||
e171d6f1 AB |
3974 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
3975 | ||
3976 | * ada-lang.c (ada_extensions): Delete, moved into | |
3977 | ada_language::filename_extensions. | |
3978 | (ada_language_data): Remove la_filename_extensions initializer. | |
3979 | (ada_language::filename_extensions): New member function. | |
3980 | * c-lang.c (c_extensions): Delete, moved into | |
3981 | c_language::filename_extensions. | |
3982 | (c_language_data): Remove la_filename_extensions initializer. | |
3983 | (c_language::filename_extensions): New member function. | |
3984 | (cplus_extensions): Delete, moved into | |
3985 | cplus_language::filename_extensions. | |
3986 | (cplus_language_data): Remove la_filename_extensions initializer. | |
3987 | (cplus_language::filename_extensions): New member function. | |
3988 | (asm_extensions): Delete, moved into | |
3989 | asm_language::filename_extensions. | |
3990 | (asm_language_data): Remove la_filename_extensions initializer. | |
3991 | (asm_language::filename_extensions): New member function. | |
3992 | (minimal_language_data): Remove la_filename_extensions | |
3993 | initializer. | |
3994 | * d-lang.c (d_extensions): Delete, moved into | |
3995 | d_language::filename_extensions. | |
3996 | (d_language_data): Remove la_filename_extensions initializer. | |
3997 | (d_language::filename_extensions): New member function. | |
3998 | * f-lang.c (f_extensions): Delete, moved into | |
3999 | f_language::filename_extensions. | |
4000 | (f_language_data): Remove la_filename_extensions initializer. | |
4001 | (f_language::filename_extensions): New member function. | |
4002 | * go-lang.c (go_language_data): Remove la_filename_extensions | |
4003 | initializer. | |
4004 | * language.c (add_set_language_command): Update now that | |
4005 | filename_extensions returns a vector. | |
4006 | (unknown_language_data): Remove la_filename_extensions | |
4007 | initializer. | |
4008 | (auto_language_data): Likewise. | |
4009 | * language.h (language_data): Remove la_filename_extensions field. | |
4010 | (language_defn::filename_extensions): New member function. | |
4011 | * m2-lang.c (m2_language_data): Remove la_filename_extensions | |
4012 | initializer. | |
4013 | * objc-lang.c (objc_extensions): Delete, moved into | |
4014 | objc_language::filename_extensions. | |
4015 | (objc_language_data): Remove la_filename_extensions initializer. | |
4016 | (objc_language::filename_extensions): New member function. | |
4017 | * opencl-lang.c (opencl_language_data): Remove | |
4018 | la_filename_extensions initializer. | |
4019 | * p-lang.c (pascal_extensions): Delete, moved into | |
4020 | pascal_language::filename_extensions. | |
4021 | (pascal_language_data): Remove la_filename_extensions initializer. | |
4022 | (pascal_language::filename_extensions): New member function. | |
4023 | * rust-lang.c (rust_extensions): Delete, moved into | |
4024 | rust_language::filename_extensions. | |
4025 | (rust_language_data): Remove la_filename_extensions initializer. | |
4026 | (rust_language::filename_extensions): New member function. | |
4027 | * symfile.c (add_filename_language): Add new assert. | |
4028 | ||
6f7664a9 AB |
4029 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
4030 | ||
4031 | * ada-lang.c (ada_language_data): Remove la_name and | |
4032 | la_natural_name initializers. | |
4033 | (ada_language::name): New member function. | |
4034 | (ada_language::natural_name): New member function. | |
4035 | * c-lang.c (c_language_data): Remove la_name and | |
4036 | la_natural_name initializers. | |
4037 | (c_language::name): New member function. | |
4038 | (c_language::natural_name): New member function. | |
4039 | (cplus_language_data): Remove la_name and | |
4040 | la_natural_name initializers. | |
4041 | (cplus_language::name): New member function. | |
4042 | (cplus_language::natural_name): New member function. | |
4043 | (asm_language_data): Remove la_name and | |
4044 | la_natural_name initializers. | |
4045 | (asm_language::name): New member function. | |
4046 | (asm_language::natural_name): New member function. | |
4047 | (minimal_language_data): Remove la_name and | |
4048 | la_natural_name initializers. | |
4049 | (minimal_language::name): New member function. | |
4050 | (minimal_language::natural_name): New member function. | |
4051 | * compile/compile.c (compile_to_object): Update call to | |
4052 | lanugage_defn::name. | |
4053 | * d-lang.c (d_language_data): Remove la_name and | |
4054 | la_natural_name initializers. | |
4055 | (d_language::name): New member function. | |
4056 | (d_language::natural_name): New member function. | |
4057 | * expprint.c (print_subexp_standard): Update call to | |
4058 | language_defn::name. | |
4059 | (dump_raw_expression): Likewise | |
4060 | (dump_prefix_expression): Likewise. | |
4061 | * f-lang.c (f_language_data): Remove la_name and | |
4062 | la_natural_name initializers. | |
4063 | (f_language::name): New member function. | |
4064 | (f_language::natural_name): New member function. | |
4065 | * go-lang.c (go_language_data): Remove la_name and | |
4066 | la_natural_name initializers. | |
4067 | (go_language::name): New member function. | |
4068 | (go_language::natural_name): New member function. | |
4069 | * language.c (show_language_command): Update call to | |
4070 | language_defn::name. | |
4071 | (set_language_command): Likewise. | |
4072 | (language_enum): Likewise. | |
4073 | (language_str): Likewise. | |
4074 | (add_set_language_command): Likewise, use | |
4075 | language_defn::natural_name in the doc string. | |
4076 | (unknown_language_data): Remove la_name and | |
4077 | la_natural_name initializers. | |
4078 | (unknown_language::name): New member function. | |
4079 | (unknown_language::natural_name): New member function. | |
4080 | (auto_language_data): Remove la_name and | |
4081 | la_natural_name initializers. | |
4082 | (auto_language::name): New member function. | |
4083 | (auto_language::natural_name): New member function. | |
4084 | (language_lookup_primitive_type_as_symbol): Update call to | |
4085 | language_defn::name. | |
4086 | * language.h (language_data): Remove la_name and la_natural_name | |
4087 | member variables. | |
4088 | (language_defn::name): New member function. | |
4089 | (language_defn::natural_name): New member function. | |
4090 | * m2-lang.c (m2_language_data): Remove la_name and | |
4091 | la_natural_name initializers. | |
4092 | (m2_language::name): New member function. | |
4093 | (m2_language::natural_name): New member function. | |
4094 | * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to | |
4095 | language_defn::natural_name. | |
4096 | * objc-lang.c (objc_language_data): Remove la_name and | |
4097 | la_natural_name initializers. | |
4098 | (objc_language::name): New member function. | |
4099 | (objc_language::natural_name): New member function. | |
4100 | * opencl-lang.c (opencl_language_data): Remove la_name and | |
4101 | la_natural_name initializers. | |
4102 | (opencl_language::name): New member function. | |
4103 | (opencl_language::natural_name): New member function. | |
4104 | * p-lang.c (pascal_language_data): Remove la_name and | |
4105 | la_natural_name initializers. | |
4106 | (pascal_language::name): New member function. | |
4107 | (pascal_language::natural_name): New member function. | |
4108 | * rust-lang.c (rust_language_data): Remove la_name and | |
4109 | la_natural_name initializers. | |
4110 | (rust_language::name): New member function. | |
4111 | (rust_language::natural_name): New member function. | |
4112 | * symtab.c (lookup_language_this): Update call to | |
4113 | language_defn::name. | |
4114 | ||
5bae7c4e AB |
4115 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
4116 | ||
4117 | * ada-lang.c (ada_language_data): Remove la_name_of_this | |
4118 | initializer. | |
4119 | * ax-gdb.c (gen_expr): Update call to name_of_this. | |
4120 | * c-exp.y (classify_name): Likewise. | |
4121 | * c-lang.c (c_language_data): Remove la_name_of_this initializer. | |
4122 | (cplus_language_data): Likewise. | |
4123 | (cplus_language::name_of_this): New member function. | |
4124 | (asm_language_data): Remove la_name_of_this initializer. | |
4125 | (minimal_language_data): Likewise. | |
4126 | * d-lang.c (d_language_data): Likewise. | |
4127 | (d_language::name_of_this): New member function. | |
4128 | * expprint.c (print_subexp_standard): Update call to name_of_this. | |
4129 | * f-lang.c (f_language_data): Remove la_name_of_this initializer. | |
4130 | * go-lang.c (go_language_data): Likewise. | |
4131 | * language.c (unknown_language_data): Likewise. | |
4132 | (unknown_language::name_of_this): New member function. | |
4133 | (auto_language_data): Remove la_name_of_this initializer. | |
4134 | (auto_language::name_of_this): New member function. | |
4135 | * language.h (language_data): Delete la_name_of_this member | |
4136 | variable. | |
4137 | (language_defn::name_of_this): New member function. | |
4138 | * m2-lang.c (m2_language_data): Remove la_name_of_this | |
4139 | initializer. | |
4140 | * objc-lang.c (objc_language_data): Likewise. | |
4141 | (objc_language::name_of_this): New member function. | |
4142 | * opencl-lang.c (opencl_language_data): Remove la_name_of_this | |
4143 | initializer. | |
4144 | * p-lang.c (pascal_language_data): Likewise. | |
4145 | (pascal_language::name_of_this): New member function. | |
4146 | * rust-lang.c (rust_language_data): Remove la_name_of_this | |
4147 | initializer. | |
4148 | * symtab.c (lookup_language_this): Update call to name_of_this. | |
4149 | (lookup_symbol_aux): Likewise. | |
4150 | * valops.c (value_of_this): Likewise. | |
4151 | ||
22e3f3ed AB |
4152 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
4153 | ||
4154 | * ada-lang.c (ada_language_data): Remove | |
4155 | la_struct_too_deep_ellipsis initializer. | |
4156 | (ada_language::struct_too_deep_ellipsis): New member function. | |
4157 | * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis | |
4158 | initializer. | |
4159 | (cplus_language_data): Likewise. | |
4160 | (asm_language_data): Likewise. | |
4161 | (minimal_language_data): Likewise. | |
4162 | * cp-valprint.c (cp_print_value): Update call to | |
4163 | struct_too_deep_ellipsis. | |
4164 | * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis | |
4165 | initializer. | |
4166 | * f-lang.c (f_language_data): Likewise. | |
4167 | (f_language::struct_too_deep_ellipsis): New member function. | |
4168 | * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis | |
4169 | initializer. | |
4170 | * language.c (unknown_language_data): Likewise. | |
4171 | (auto_language_data): Likewise. | |
4172 | * language.h (language_data): Delete la_struct_too_deep_ellipsis | |
4173 | member variable. | |
4174 | (language_defn::struct_too_deep_ellipsis): New member function. | |
4175 | * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis | |
4176 | initializer.Q | |
4177 | * objc-lang.c (objc_language_data): Likewise. | |
4178 | * opencl-lang.c (opencl_language_data): Likewise. | |
4179 | * p-lang.c (pascal_language_data): Likewise. | |
4180 | * rust-lang.c (rust_language_data): Likewise. | |
4181 | * valprint.c (val_print_check_max_depth): Update call to | |
4182 | struct_too_deep_ellipsis. | |
4183 | ||
ed29e1c7 FW |
4184 | 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com> |
4185 | ||
4186 | * MAINTAINERS (Write After Approval): Add myself. | |
4187 | ||
12d8f940 TT |
4188 | 2020-09-15 Tom Tromey <tom@tromey.com> |
4189 | ||
4190 | * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>: | |
4191 | Remove. | |
4192 | ||
6b5a7bc7 TT |
4193 | 2020-09-15 Tom Tromey <tom@tromey.com> |
4194 | ||
4195 | * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR | |
4196 | and TYPE_CODE_METHODPTR cases. | |
4197 | * c-valprint.c (c_value_print_memberptr): Move to valprint.c. | |
4198 | (c_value_print_inner): Update. | |
4199 | * valprint.c (generic_value_print_memberptr): New function, from | |
4200 | c_value_print_memberptr. | |
4201 | (generic_value_print): Use it. Call cplus_print_method_ptr. | |
4202 | ||
47f0e2ff TT |
4203 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
4204 | ||
4205 | * python/python-internal.h (PyInt_FromLong): Remove define. | |
4206 | * python/py-value.c (convert_value_from_python): Use | |
4207 | gdb_py_object_from_longest. | |
4208 | * python/py-type.c (typy_get_code): Use | |
4209 | gdb_py_object_from_longest. | |
4210 | * python/py-symtab.c (salpy_get_line): Use | |
4211 | gdb_py_object_from_longest. | |
4212 | * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use | |
4213 | gdb_py_object_from_longest. | |
4214 | * python/py-record.c (recpy_gap_reason_code): Use | |
4215 | gdb_py_object_from_longest. | |
4216 | * python/py-record-btrace.c (recpy_bt_insn_size) | |
4217 | (recpy_bt_func_level, btpy_list_count): Use | |
4218 | gdb_py_object_from_longest. | |
4219 | * python/py-infthread.c (gdbpy_create_ptid_object): Use | |
4220 | gdb_py_object_from_longest. Fix error handling. | |
4221 | * python/py-framefilter.c (bootstrap_python_frame_filters): Use | |
4222 | gdb_py_object_from_longest. | |
4223 | * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use | |
4224 | gdb_py_object_from_longest. | |
4225 | * python/py-breakpoint.c (bppy_get_type, bppy_get_number) | |
4226 | (bppy_get_thread, bppy_get_task, bppy_get_hit_count) | |
4227 | (bppy_get_ignore_count): Use gdb_py_object_from_longest. | |
4228 | ||
512116ce TT |
4229 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
4230 | ||
4231 | * python/python.c (gdbpy_parameter_value): Use | |
4232 | gdb_py_object_from_ulongest. | |
4233 | ||
4ab1029c TT |
4234 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
4235 | ||
4236 | * python/py-infevents.c (create_register_changed_event_object): | |
4237 | Use gdb_py_object_from_longest. | |
4238 | * python/py-exitedevent.c (create_exited_event_object): Use | |
4239 | gdb_py_object_from_longest. | |
4240 | ||
062534d4 TT |
4241 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
4242 | ||
4243 | * python/python.c (gdbpy_parameter_value): Use | |
4244 | gdb_py_object_from_longest. | |
4245 | * python/py-type.c (convert_field, typy_range): Use | |
4246 | gdb_py_object_from_longest. | |
4247 | * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use | |
4248 | gdb_py_object_from_longest. | |
4249 | * python/py-lazy-string.c (stpy_get_length): Use | |
4250 | gdb_py_object_from_longest. | |
4251 | * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use | |
4252 | gdb_py_object_from_longest. | |
4253 | * python/py-infevents.c (create_memory_changed_event_object): Use | |
4254 | gdb_py_object_from_longest. | |
4255 | * python/py-inferior.c (infpy_get_num): Use | |
4256 | gdb_py_object_from_longest. | |
4257 | (infpy_get_pid): Likewise. | |
4258 | ||
d1cab987 TT |
4259 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
4260 | ||
4261 | * python/python-internal.h (gdb_py_long_from_ulongest): Remove | |
4262 | defines. | |
4263 | * python/py-value.c (valpy_long): Use | |
4264 | gdb_py_object_from_ulongest. | |
4265 | * python/py-symtab.c (salpy_get_pc): Use | |
4266 | gdb_py_object_from_ulongest. | |
4267 | (salpy_get_last): Likewise. | |
4268 | * python/py-record-btrace.c (recpy_bt_insn_pc): Use | |
4269 | gdb_py_object_from_ulongest. | |
4270 | * python/py-lazy-string.c (stpy_get_address): Use | |
4271 | gdb_py_object_from_ulongest. | |
4272 | * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest. | |
4273 | * python/py-arch.c (archpy_disassemble): Use | |
4274 | gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix | |
4275 | error handling. | |
4276 | ||
4bde49dc TT |
4277 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
4278 | ||
4279 | * python/python-internal.h (gdb_py_long_from_longest): Remove | |
4280 | defines. | |
4281 | * python/py-value.c (valpy_long): Use gdb_py_object_from_longest. | |
4282 | * python/py-type.c (convert_field, typy_get_sizeof): Use | |
4283 | gdb_py_object_from_longest. | |
4284 | * python/py-record-btrace.c (btpy_list_index): Use | |
4285 | gdb_py_object_from_longest. | |
4286 | ||
37431074 TT |
4287 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
4288 | ||
4289 | * python/python-internal.h (PyInt_FromSsize_t): Remove define. | |
4290 | * python/py-record.c (recpy_element_number): Use | |
4291 | gdb_py_object_from_longest. | |
4292 | (recpy_gap_number): Likewise. | |
4293 | ||
cbe25684 TT |
4294 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
4295 | ||
4296 | * top.c (ui::ui): Update. | |
4297 | (highest_ui_num): Remove. | |
4298 | * top.h (struct ui) <num>: Remove. | |
4299 | ||
db92ac45 TT |
4300 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
4301 | ||
4302 | * unittests/memory-map-selftests.c (valid_mem_map): Now array. | |
4303 | * ui-style.c (ansi_regex_text): Now array. | |
4304 | * rust-exp.y (number_regex_text): Now array. | |
4305 | * linespec.c (linespec_quote_characters): Now array. | |
4306 | * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym): | |
4307 | Now arrays. | |
4308 | ||
d2b31b67 SM |
4309 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> |
4310 | ||
4311 | * debuginfod-support.c (debuginfod_client_deleter): New. | |
4312 | (debuginfod_client_up): New. | |
4313 | (debuginfod_init): Return debuginfod_client_up. | |
4314 | (debuginfod_source_query): Adjust. | |
4315 | (debuginfod_debuginfo_query): Adjust. | |
4316 | ||
3246bd8e SM |
4317 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> |
4318 | ||
4319 | * debuginfod-support.c (debuginfod_source_query): Use | |
4320 | make_unique_xstrdup. | |
4321 | ||
10242f36 SM |
4322 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
4323 | ||
4324 | * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses | |
4325 | with `type::instance_flags`. | |
4326 | ||
e1044e6a MM |
4327 | 2020-09-14 Michael Mullin <masmullin@gmail.com> |
4328 | ||
4329 | * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml): | |
4330 | Remove baton parameter. | |
4331 | ||
04902b09 PA |
4332 | 2020-09-14 Pedro Alves <pedro@palves.net> |
4333 | ||
4334 | * Makefile.in (SELFTESTS_SRCS): Add | |
4335 | unittests/enum-flags-selftests.c. | |
4336 | * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use | |
4337 | btrace_function_flags instead of enum btrace_function_flag. | |
4338 | * compile/compile-c-types.c (convert_qualified): Use | |
4339 | enum_flags::raw. | |
4340 | * compile/compile-cplus-symbols.c (convert_one_symbol) | |
4341 | (convert_symbol_bmsym): | |
4342 | * compile/compile-cplus-types.c (compile_cplus_convert_method) | |
4343 | (compile_cplus_convert_struct_or_union_methods) | |
4344 | (compile_cplus_instance::convert_qualified_base): | |
4345 | * go-exp.y (parse_string_or_char): Add cast to int. | |
4346 | * unittests/enum-flags-selftests.c: New file. | |
4347 | * record-btrace.c (btrace_thread_flag_to_str): Change parameter's | |
4348 | type to btrace_thread_flags from btrace_thread_flag. | |
4349 | (record_btrace_cancel_resume, record_btrace_step_thread): Change | |
4350 | local's type to btrace_thread_flags from btrace_thread_flag. Add | |
4351 | cast in DEBUG call. | |
4352 | ||
69896a2c PA |
4353 | 2020-09-14 Pedro Alves <pedro@palves.net> |
4354 | ||
4355 | * c-typeprint.c (c_type_print_modifier): Adjust to rename. | |
4356 | * gdbtypes.c (address_space_name_to_int): Rename to ... | |
4357 | (address_space_name_to_type_instance_flags): ... this. | |
4358 | (address_space_int_to_name): Rename to ... | |
4359 | (address_space_type_instance_flags_to_name): ... this. | |
4360 | * gdbtypes.h (address_space_name_to_int): Rename to ... | |
4361 | (address_space_name_to_type_instance_flags): ... this. | |
4362 | (address_space_int_to_name): Rename to ... | |
4363 | (address_space_type_instance_flags_to_name): ... this. | |
4364 | * type-stack.c (type_stack::insert): Adjust to rename. | |
4365 | * type-stack.h (type_stack::insert): Likewise. | |
4366 | ||
314ad88d PA |
4367 | 2020-09-14 Pedro Alves <pedro@palves.net> |
4368 | Andrew Burgess <andrew.burgess@embecosm.com> | |
4369 | ||
4370 | * avr-tdep.c (avr_address_class_type_flags): Return | |
4371 | type_instance_flags. | |
4372 | (avr_address_class_type_flags_to_name): Take a | |
4373 | type_instance_flags. | |
4374 | (avr_address_class_name_to_type_flags): Return bool and take a | |
4375 | type_instance_flags. | |
4376 | * d-lang.c (build_d_types): Use type::set_instance_flags. | |
4377 | * ft32-tdep.c (ft32_address_class_type_flags): Return | |
4378 | type_instance_flags. | |
4379 | (ft32_address_class_type_flags_to_name): Take a | |
4380 | type_instance_flags. | |
4381 | (ft32_address_class_name_to_type_flags): Return bool and take a | |
4382 | type_instance_flags. | |
4383 | (ft32_gdbarch_init): Use type::set_instance_flags. | |
4384 | * eval.c (fake_method::fake_method): Use type::set_instance_flags. | |
4385 | * gdbarch.h, gdbarch.c: Regenerate. | |
4386 | * gdbarch.sh (address_class_type_flags): Use type_instance_flags. | |
4387 | (address_class_name_to_type_flags): Use type_instance_flags and | |
4388 | bool. | |
4389 | * gdbtypes.c (address_space_name_to_int) | |
4390 | (address_space_int_to_name, make_qualified_type): Use | |
4391 | type_instance_flags. | |
4392 | (make_qualified_type): Use type_instance_flags and | |
4393 | type::set_instance_flags. | |
4394 | (make_type_with_address_space, make_cv_type, make_vector_type) | |
4395 | (check_typedef): Use type_instance_flags. | |
4396 | (recursive_dump_type): Cast type_instance_flags to unsigned for | |
4397 | printing. | |
4398 | (copy_type_recursive): Use type::set_instance_flags. | |
4399 | (gdbtypes_post_init): Use type::set_instance_flags. | |
4400 | * gdbtypes.h (struct type) <instance_flags>: Rename to ... | |
4401 | <m_instance_flags>: ... this. | |
4402 | <instance_flags, set_instance_flags>: New methods. | |
4403 | (TYPE_INSTANCE_FLAGS): Use the instance_flags method. | |
4404 | (SET_TYPE_INSTANCE_FLAGS): New. | |
4405 | (address_space_name_to_int, address_space_int_to_name) | |
4406 | (make_type_with_address_space): Pass flags using | |
4407 | type_instance_flags instead of int. | |
4408 | * stabsread.c (cleanup_undefined_types_noname): Use | |
4409 | type::set_instance_flags. | |
4410 | * s390-tdep.c (s390_address_class_type_flags): Return | |
4411 | type_instance_flags. | |
4412 | (s390_address_class_type_flags_to_name): Take a | |
4413 | type_instance_flags. | |
4414 | (s390_address_class_name_to_type_flags): Return bool and take a | |
4415 | type_instance_flags. | |
4416 | * type-stack.c (type_stack::follow_types): Use | |
4417 | type_instance_flags. | |
4418 | * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags. | |
4419 | ||
27087b7f TT |
4420 | 2020-09-14 Tom Tromey <tromey@adacore.com> |
4421 | ||
4422 | * x86-tdep.h (x86_in_indirect_branch_thunk): Update. | |
4423 | * x86-tdep.c (x86_is_thunk_register_name) | |
4424 | (x86_in_indirect_branch_thunk): Update. | |
4425 | * sparc64-tdep.c (sparc64_fpu_register_names) | |
4426 | (sparc64_cp0_register_names, sparc64_register_names) | |
4427 | (sparc64_pseudo_register_names): Now const. | |
4428 | * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names, | |
4429 | cp0_registers_num>: Now const. | |
4430 | * sparc-tdep.c (sparc_core_register_names) | |
4431 | (sparc32_fpu_register_names, sparc32_cp0_register_names) | |
4432 | (sparc32_pseudo_register_names): Now const. | |
4433 | (validate_tdesc_registers): Update. | |
4434 | * rust-lang.c (rust_extensions): Now const. | |
4435 | * p-lang.c (p_extensions): Now const. | |
4436 | * objc-lang.c (objc_extensions): Now const. | |
4437 | * nto-tdep.c (nto_thread_state_str): Now const. | |
4438 | * moxie-tdep.c (moxie_register_names): Now const. | |
4439 | * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>: | |
4440 | Now const. | |
4441 | * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names) | |
4442 | (mips_linux_reg_names): Now const. | |
4443 | (mips_gdbarch_init): Update. | |
4444 | * microblaze-tdep.c (microblaze_register_names): Now const. | |
4445 | * m68k-tdep.c (m68k_register_names): Now const. | |
4446 | * m32r-tdep.c (m32r_register_names): Now const. | |
4447 | * ia64-tdep.c (ia64_register_names): Now const. | |
4448 | * i386-tdep.h (struct gdbarch_tdep) <register_names, | |
4449 | ymmh_register_names, ymm16h_regnum, mpx_register_names, | |
4450 | k_register_names, zmmh_register_names, xmm_avx512_register_names, | |
4451 | ymm_avx512_register_names, pkeys_register_names>: Now const. | |
4452 | * i386-tdep.c (i386_register_names, i386_zmm_names) | |
4453 | (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names) | |
4454 | (i386_mpx_names, i386_pkeys_names, i386_bnd_names) | |
4455 | (i386_mmx_names, i386_byte_names, i386_word_names): Now const. | |
4456 | * f-lang.c (f_extensions): Now const. | |
4457 | * d-lang.c (d_extensions): Now const. | |
4458 | * csky-tdep.c (csky_register_names): Now const. | |
4459 | * charset.c (default_charset_names, charset_enum): Now const. | |
4460 | (_initialize_charset): Update. | |
4461 | * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now | |
4462 | const. | |
4463 | * bsd-uthread.c (bsd_uthread_solib_names): Now const. | |
4464 | (bsd_uthread_solib_loaded): Update. | |
4465 | (bsd_uthread_state): Now const. | |
4466 | * amd64-tdep.c (amd64_register_names, amd64_ymm_names) | |
4467 | (amd64_ymm_avx512_names, amd64_ymmh_names) | |
4468 | (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names) | |
4469 | (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names) | |
4470 | (amd64_pkeys_names, amd64_byte_names, amd64_word_names) | |
4471 | (amd64_dword_names): Now const. | |
4472 | * agent.c (can_use_agent_enum): Now const. | |
4473 | * ada-tasks.c (task_states, long_task_states): Now const. | |
4474 | * ada-lang.c (known_runtime_file_name_patterns) | |
4475 | (known_auxiliary_function_name_patterns, attribute_names) | |
4476 | (standard_exc, ada_extensions): Now const. | |
4477 | ||
89806626 SM |
4478 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> |
4479 | ||
4480 | * bcache.h (struct bcache) <bcache>: Remove constructor. | |
4481 | <m_hash_function, m_compare_function>: Remove. | |
4482 | <~bcache>: Make virtual. | |
4483 | <compare>: Remove static method, introduce virtual method. | |
4484 | <default_hash>: Remove. | |
4485 | <hash>: New virtual method. | |
4486 | * bcache.c (bcache::expand_hash_table): Update. | |
4487 | (bcache::insert): Update. | |
4488 | (bcache::hash): New. | |
4489 | (bcache::compare): Update comment and parameter names. | |
4490 | * gdbtypes.c (types_deeply_equal): Update. | |
4491 | * psymtab.h (struct psymbol_bcache): New struct. | |
4492 | (class psymtab_storage) <psymtab_storage>: Make default. | |
4493 | <psymbol_cache>: Change type to psymbol_bcache. | |
4494 | * psymtab.c (psymtab_storage::psymtab_storage): Remove. | |
4495 | (psymbol_hash): Change to... | |
4496 | (psymbol_bcache::hash): ... this. | |
4497 | (psymbol_compare): Change to... | |
4498 | (psymbol_bcache::compare): ... this. | |
4499 | ||
677c92fe SM |
4500 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> |
4501 | ||
4502 | * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when | |
4503 | checking for initial lwp. | |
4504 | ||
3eba3a01 TT |
4505 | 2020-09-14 Tom Tromey <tromey@adacore.com> |
4506 | ||
4507 | * m68k-tdep.c (m68k_extract_return_value): Use | |
4508 | pointer_result_regnum. | |
4509 | (m68k_store_return_value): Likewise. | |
4510 | (m68k_reg_struct_return_p): Handle vectors and arrays. | |
4511 | (m68k_return_value): Handle arrays. | |
4512 | (m68k_svr4_return_value): Fix single-element aggregate handling. | |
4513 | Handle long double. Adjust for embedded ABI. | |
4514 | (m68k_svr4_init_abi): Set pointer_result_regnum. | |
4515 | (m68k_embedded_init_abi): New function. | |
4516 | (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP. | |
4517 | (m68k_osabi_sniffer): New function. | |
4518 | (_initialize_m68k_tdep): Register osabi sniffer. | |
4519 | * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New | |
4520 | member. | |
4521 | ||
33f4dd48 SM |
4522 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> |
4523 | ||
4524 | * xml-support.c (xml_fetch_content_from_file): Replace xfree | |
4525 | with gdb::unique_xmalloc_ptr<char>. | |
4526 | ||
8400a90d SM |
4527 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> |
4528 | ||
4529 | * xml-support.h (xml_fetch_another): Change type to be a | |
4530 | function_view. | |
4531 | (xml_process_xincludes): Remove baton parameter. | |
4532 | (xml_fetch_content_from_file): Change baton parameter to | |
4533 | dirname. | |
4534 | * xml-support.c (struct xinclude_parsing_data) | |
4535 | <xinclude_parsing_data>: Remove baton parameter. | |
4536 | <fetcher_baton>: Remove. | |
4537 | (xinclude_start_include): Adjust. | |
4538 | (xml_process_xincludes): Adjust. | |
4539 | (xml_fetch_content_from_file): Replace baton parameter with | |
4540 | dirname. | |
4541 | * xml-syscall.c (syscall_parse_xml): Remove baton parameter. | |
4542 | (xml_init_syscalls_info): Use a lambda. | |
4543 | * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter. | |
4544 | (file_read_description_xml): Use a lambda. | |
4545 | (fetch_available_features_from_target): Change baton parameter | |
4546 | to target_ops. | |
4547 | (target_read_description_xml): Use a lambda. | |
4548 | (target_fetch_description_xml): Use a lambda. | |
4549 | (string_read_description_xml): Update. | |
4550 | ||
04f5bab2 SM |
4551 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> |
4552 | ||
4553 | * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all | |
4554 | uses with type::endianity_is_not_default. | |
4555 | ||
db558e34 SM |
4556 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
4557 | ||
4558 | * gdbtypes.h (struct type) <endianity_is_not_default, | |
4559 | set_endianity_is_not_default>: New methods. | |
4560 | (TYPE_ENDIANITY_NOT_DEFAULT): Use | |
4561 | type::endianity_is_not_default, change all write call sites to | |
4562 | use type::set_endianity_is_not_default. | |
4563 | ||
22c4c60c SM |
4564 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
4565 | ||
4566 | * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all | |
4567 | uses with type::is_fixed_instance. | |
4568 | ||
9cdd0d12 SM |
4569 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
4570 | ||
4571 | * gdbtypes.h (struct type) <is_fixed_instance, | |
4572 | set_is_fixed_instance>: New methods. | |
4573 | (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all | |
4574 | write call sites to use type::set_is_fixed_instance. | |
4575 | ||
0becda7a SM |
4576 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
4577 | ||
4578 | * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all | |
4579 | uses with type::is_gnu_ifunc. | |
4580 | ||
03cc7249 SM |
4581 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
4582 | ||
4583 | * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods. | |
4584 | (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to | |
4585 | use type::set_is_gnu_ifunc. | |
4586 | ||
3f46044c SM |
4587 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
4588 | ||
4589 | * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all | |
4590 | uses with type::stub_is_supported. | |
4591 | ||
9baccff6 SM |
4592 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
4593 | ||
4594 | * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods. | |
4595 | (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to | |
4596 | use type::set_stub_is_supported. | |
4597 | ||
bd63c870 SM |
4598 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
4599 | ||
4600 | * gdbtypes.h (TYPE_VECTOR): Remove, replace all | |
4601 | uses with type::is_vector. | |
4602 | ||
2062087b SM |
4603 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
4604 | ||
4605 | * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods. | |
4606 | (TYPE_VECTOR): Use type::is_vector, change all write call sites to | |
4607 | use type::set_is_vector. | |
4608 | ||
a409645d SM |
4609 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
4610 | ||
4611 | * gdbtypes.h (TYPE_VARARGS): Remove, replace all | |
4612 | uses with type::has_varargs. | |
4613 | ||
1d6286ed SM |
4614 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
4615 | ||
4616 | * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods. | |
4617 | (TYPE_VARARGS): Use type::has_varargs, change all write call sites to | |
4618 | use type::set_has_varargs. | |
4619 | ||
7f9f399b SM |
4620 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
4621 | ||
4622 | * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all | |
4623 | uses with type::is_prototyped. | |
4624 | ||
27e69b7a SM |
4625 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
4626 | ||
4627 | * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>: | |
4628 | New methods. | |
4629 | (TYPE_PROTOTYPED): Use type::is_prototyped, change all write | |
4630 | call sites to use type::set_is_prototyped. | |
4631 | ||
d2183968 SM |
4632 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
4633 | ||
4634 | * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all | |
4635 | uses with type::target_is_stub. | |
4636 | ||
8f53807e SM |
4637 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
4638 | ||
4639 | * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>: | |
4640 | New methods. | |
4641 | (TYPE_TARGET_STUB): Use type::is_stub, change all write call | |
4642 | sites to use type::set_target_is_stub. | |
4643 | ||
e46d3488 SM |
4644 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
4645 | ||
4646 | * gdbtypes.h (TYPE_STUB): Remove, replace all | |
4647 | uses with type::is_stub. | |
4648 | ||
b4b73759 SM |
4649 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
4650 | ||
4651 | * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods. | |
4652 | (TYPE_STUB): Use type::is_stub, change all write call sites to | |
4653 | use type::set_is_stub. | |
4654 | ||
20ce4123 SM |
4655 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
4656 | ||
4657 | * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with | |
4658 | type::has_no_signedness. | |
4659 | ||
15152a54 SM |
4660 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
4661 | ||
4662 | * gdbtypes.h (struct type) <has_no_signedness, | |
4663 | set_has_no_signedness>: New methods. | |
4664 | (TYPE_NOSIGN): Use type::has_no_signedness, change all write | |
4665 | call sites to use type::set_has_no_signedness. | |
4666 | ||
c6d940a9 SM |
4667 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
4668 | ||
4669 | * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with | |
4670 | type::is_unsigned. | |
4671 | ||
653223d3 SM |
4672 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
4673 | ||
4674 | * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New | |
4675 | methods. | |
4676 | (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call | |
4677 | sites to use type::set_is_unsigned. | |
4678 | ||
55ea94da | 4679 | 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com> |
e851246a | 4680 | Adam Renquinha <arenquinha@cimeq.qc.ca> |
55ea94da | 4681 | |
e851246a SM |
4682 | * arm-tdep.c (arm_m_exception_cache): Try use correct stack |
4683 | pointer and stack frame offset when unwinding. | |
55ea94da | 4684 | |
6791b117 PA |
4685 | 2020-09-13 Pedro Alves <pedro@palves.net> |
4686 | ||
4687 | * NEWS: Document "-break-insert --qualified". | |
4688 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified". | |
4689 | ||
77f2120b PA |
4690 | 2020-09-13 Pedro Alves <pedro@palves.net> |
4691 | ||
4692 | * linespec.c (classify_mtype, compare_msyms): Delete. | |
4693 | (search_minsyms_for_name): Remove classification logic. Instead | |
4694 | filter out trampoline symbols if we also found an external | |
4695 | function of the same name. | |
4696 | ||
ed6a896c JB |
4697 | 2020-09-13 Joel Brobecker <brobecker@adacore.com> |
4698 | ||
4699 | * NEWS: Create a new section for the next release branch. | |
4700 | Rename the section of the current branch, now that it has | |
4701 | been cut. | |
4702 | ||
32aea73e JB |
4703 | 2020-09-13 Joel Brobecker <brobecker@adacore.com> |
4704 | ||
4705 | GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59): | |
4706 | * version.in: Bump version to 11.0.50.DATE-git. | |
4707 | ||
8087c3fa JB |
4708 | 2020-09-12 Joel Brobecker <brobecker@adacore.com> |
4709 | ||
4710 | * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST. | |
4711 | ||
2a67f09d FW |
4712 | 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com> |
4713 | Felix Willgerodt <Felix.Willgerodt@intel.com> | |
4714 | ||
4715 | * gdbarch.sh: Added bfloat16 type. | |
4716 | * gdbarch.c: Regenerated. | |
4717 | * gdbarch.h: Regenerated. | |
4718 | * gdbtypes.c (floatformats_bfloat16): New struct. | |
4719 | (gdbtypes_post_init): Add builtin_bfloat16. | |
4720 | * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member. | |
4721 | (floatformats_bfloat16): New struct. | |
4722 | * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16" | |
4723 | (i386_ymm_type): Add field "v16_bfloat16" | |
4724 | (i386_gdbarch_init): Add set_gdbarch_bfloat16_format. | |
4725 | * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16. | |
4726 | * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16. | |
4727 | * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16. | |
4728 | * features/i386/64bit-avx512.xml: Add bfloat16 type. | |
4729 | * features/i386/64bit-avx512.c: Regenerated. | |
4730 | * features/i386/64bit-sse.xml: Add bfloat16 type. | |
4731 | * features/i386/64bit-sse.c: Regenerated. | |
4732 | ||
1347d111 FW |
4733 | 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com> |
4734 | ||
4735 | * i386-tdep.c (i386_zmm_type): Fix field names. | |
4736 | (i386_ymm_type): Fix field names. | |
4737 | ||
7a4e8e7d TBA |
4738 | 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
4739 | ||
4740 | * breakpoint.c: Fix typo in the help message of the | |
4741 | "set breakpoint condition-evaluation" command. | |
4742 | ||
cf4ac4be KR |
4743 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
4744 | ||
4745 | * nbsd-nat.c: Include "nat/netbsd-nat.h". | |
4746 | * (nbsd_nat_target::pid_to_exec_file) | |
4747 | (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name) | |
4748 | (nbsd_nat_target::post_startup_inferior) | |
4749 | (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial) | |
4750 | (nbsd_add_threads): Switch local code to common gdb/nat functions. | |
4751 | * (nbsd_pid_to_cmdline): Call sysctl from the global namespace. | |
4752 | * (nbsd_thread_lister): Remove. | |
4753 | ||
f404573e KR |
4754 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
4755 | ||
4756 | * fork-inferior.c (startup_inferior): Avoid double free. | |
4757 | ||
1ccb2c17 KR |
4758 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
4759 | ||
4760 | * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add. | |
4761 | * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise. | |
4762 | ||
feedfcc7 KR |
4763 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
4764 | ||
4765 | * netbsd-nat.h (netbsd_nat::enable_proc_events): Add. | |
4766 | * netbsd-nat.c: Include <sys/ptrace.h>. | |
4767 | * (netbsd_nat::enable_proc_events): Add. | |
4768 | ||
c489f8c6 KR |
4769 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
4770 | ||
4771 | * netbsd-nat.h: Include "gdbsupport/function-view.h". | |
4772 | * (netbsd_nat::thread_alive, netbsd_nat::thread_name) | |
4773 | (netbsd_nat::for_each_thread): Add. | |
4774 | * netbsd-nat.c: Include "gdbsupport/common-defs.h" and | |
4775 | "gdbsupport/common-debug.h". | |
4776 | * (netbsd_nat::netbsd_thread_lister) | |
4777 | (netbsd_nat::thread_alive, netbsd_nat::thread_name) | |
4778 | (netbsd_nat::for_each_thread): Add. | |
4779 | ||
330662f6 KR |
4780 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
4781 | ||
4782 | * netbsd-nat.h: Include <unistd.h>. | |
4783 | * (netbsd_nat::pid_to_exec_file): Add. | |
4784 | * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>. | |
4785 | * (netbsd_nat::pid_to_exec_file) Add. | |
4786 | ||
70b67307 KR |
4787 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
4788 | ||
4789 | * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed. | |
4790 | ||
99cf6da6 KR |
4791 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
4792 | ||
4793 | * netbsd-nat.h: New file. | |
4794 | * netbsd-nat.c: Likewise. | |
4795 | ||
1b788fb6 TT |
4796 | 2020-09-09 Tom Tromey <tromey@adacore.com> |
4797 | ||
4798 | * ada-lang.c (remove_extra_symbols): Do not increment when | |
4799 | removing an element | |
4800 | ||
03b0a45f TT |
4801 | 2020-09-08 Tom Tromey <tromey@adacore.com> |
4802 | ||
4803 | * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails. | |
4804 | ||
3cae4447 TT |
4805 | 2020-09-08 Tom Tromey <tromey@adacore.com> |
4806 | ||
4807 | PR win32/25302: | |
4808 | * gdb_bfd.c (gdb_bfd_data): Add "st" parameter. | |
4809 | (gdb_bfd_init_data): New function. | |
4810 | (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data. | |
4811 | ||
7f08fd51 TBA |
4812 | 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
4813 | ||
4814 | * infrun.c (fetch_inferior_event): Use | |
4815 | `switch_to_target_no_thread` to switch the target. | |
4816 | ||
3e6ff933 TT |
4817 | 2020-09-06 Tom Tromey <tom@tromey.com> |
4818 | ||
4819 | * symfile.h (dwarf2_free_objfile): Don't declare. | |
4820 | ||
e56798df AKS |
4821 | 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
4822 | ||
4823 | * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions | |
4824 | to match 16 byte real/complex type generated by Flang compiler. | |
4825 | ||
8f5c6526 TV |
4826 | 2020-09-03 Tom de Vries <tdevries@suse.de> |
4827 | ||
4828 | PR breakpoint/26546 | |
4829 | * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as | |
4830 | LOC_OPTIMIZED_OUT instead of LOC_LABEL. | |
4831 | ||
c5065df0 SM |
4832 | 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca> |
4833 | ||
4834 | * maint.c (index_digits): New function. | |
4835 | (struct maint_print_section_data): Remove. | |
4836 | (print_bfd_section_info): Remove print_data parameter, add arg | |
4837 | and index_digits. | |
4838 | (print_objfile_section_info): Likewise. | |
4839 | (print_bfd_section_info_maybe_relocated): Likewise (plus | |
4840 | objfile). | |
4841 | (maintenance_info_sections): Adjust calls. | |
4842 | ||
02c6f3f1 TT |
4843 | 2020-09-02 Tom Tromey <tromey@adacore.com> |
4844 | ||
4845 | * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0 | |
4846 | for null pointers. | |
4847 | (ada_varobj_adjust_for_child_access): Special-case null pointers. | |
4848 | ||
ef5e5b0b SM |
4849 | 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca> |
4850 | ||
4851 | * bcache.h (struct bcache) <insert>: Change type of `added` to | |
4852 | pointer to bool. | |
4853 | * bcache.c (bcache::insert): Likewise. | |
4854 | * gdbtypes.c (check_types_worklist): Adjust. | |
4855 | * psymtab.c (add_psymbol_to_bcache): Adjust. | |
4856 | ||
973695d6 KB |
4857 | 2020-08-31 Kevin Buettner <kevinb@redhat.com> |
4858 | ||
4859 | * corelow.c (unordered_set): Include. | |
4860 | (class core_target): Add field 'm_core_unavailable_mappings'. | |
4861 | (core_target::build_file_mappings): Print only one warning | |
4862 | per inaccessible file. Add unavailable/broken mappings | |
4863 | to m_core_unavailable_mappings. | |
4864 | (core_target::xfer_partial): Call... | |
4865 | (core_target::xfer_memory_via_mappings): New method. | |
4866 | ||
264fc0e2 SM |
4867 | 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca> |
4868 | ||
4869 | * dwarf2/read.c (struct field_info) <non_public_fields>: Change | |
4870 | type to bool. | |
4871 | ||
2de01bdb SM |
4872 | 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca> |
4873 | ||
4874 | * dwarf2/read.c (struct field_info): Fix indentation. | |
4875 | ||
f3bd50f1 SM |
4876 | 2020-08-31 Simon Marchi <simon.marchi@efficios.com> |
4877 | ||
4878 | * frame-unwind.h (frame_prev_register_ftype): Fix adjective | |
4879 | ordering in comment. | |
4880 | * frame.c (frame_id_eq): Fix indentation. | |
4881 | ||
22b9b4b0 SL |
4882 | 2020-08-31 Scott Linder <scott@scottlinder.com> |
4883 | Simon Marchi <simon.marchi@efficios.com> | |
4884 | ||
4885 | * inline-frame.c (inline_frame_this_id): Remove assert that prevents | |
4886 | inline frame ids in outer frame. | |
4887 | ||
84154d16 SM |
4888 | 2020-08-31 Simon Marchi <simon.marchi@efficios.com> |
4889 | ||
4890 | * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New. | |
4891 | * frame.c (fprint_frame_id): Handle FID_STACK_OUTER. | |
4892 | (outer_frame_id): Use FID_STACK_OUTER instead of | |
4893 | FID_STACK_INVALID. | |
4894 | (frame_id_p): Don't check for outer_frame_id. | |
4895 | ||
8efaf6b3 SM |
4896 | 2020-08-31 Simon Marchi <simon.marchi@efficios.com> |
4897 | ||
4898 | * frame-unwind.c (frame_unwind_got_optimized): Don't set | |
4899 | regnum/frame in value. Call allocate_value_lazy. | |
4900 | * frame.c (frame_unwind_register_value): Use | |
4901 | val_print_not_saved. | |
4902 | ||
fe1fe7ea SM |
4903 | 2020-08-31 Simon Marchi <simon.marchi@efficios.com> |
4904 | ||
4905 | * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr. | |
4906 | ||
f7c7700d PA |
4907 | 2020-08-29 Pedro Alves <pedro@palves.net> |
4908 | ||
4909 | * progspace.c (print_program_space): Use all_inferiors. Switch to | |
4910 | the inferior before calling target_pid_to_str. | |
4911 | ||
e0814aae TT |
4912 | 2020-08-28 Tom Tromey <tom@tromey.com> |
4913 | ||
4914 | * xcoffread.c (xcoff_end_psymtab): Update comment. | |
4915 | * dbxread.c (dbx_end_psymtab): Update comment. | |
4916 | ||
626d2320 TV |
4917 | 2020-08-28 Tom de Vries <tdevries@suse.de> |
4918 | ||
4919 | PR breakpoint/26544 | |
4920 | * breakpoint.c (parse_breakpoint_sals): Remove const from struct | |
4921 | event_location. | |
4922 | (create_breakpoint): Same. | |
4923 | (base_breakpoint_decode_location): Same. | |
4924 | (bkpt_create_sals_from_location): Same. | |
4925 | (bkpt_decode_location): Same. | |
4926 | (bkpt_probe_create_sals_from_location): Same. | |
4927 | (bkpt_probe_decode_location): Same. | |
4928 | (tracepoint_create_sals_from_location): Same. | |
4929 | (tracepoint_decode_location): Same. | |
4930 | (tracepoint_probe_decode_location): Same. | |
4931 | (strace_marker_create_sals_from_location): Same. | |
4932 | (strace_marker_decode_location): Same. | |
4933 | (create_sals_from_location_default): Same. | |
4934 | (decode_location_default): Same. | |
4935 | * breakpoint.h (struct breakpoint_ops): Same. | |
4936 | (create_breakpoint): Same. | |
4937 | * linespec.h (decode_line_full): Same. | |
4938 | * linespec.c (decode_line_full): Same. Throw error if | |
4939 | result.size () == 0. | |
4940 | ||
df631783 PA |
4941 | 2020-08-27 Pedro Alves <pedro@palves.net> |
4942 | ||
4943 | PR gdb/26524 | |
4944 | * breakpoint.c (until_break_fsm) <location_breakpoint, | |
4945 | caller_breakpoint>: Delete fields. | |
4946 | <breakpoints>: New field. | |
4947 | <until_break_fsm>: Adjust to save a breakpoint vector instead of | |
4948 | two individual breakpoints. | |
4949 | (until_break_fsm::should_stop): Loop over breakpoints in the | |
4950 | breakpoint vector. | |
4951 | (until_break_fsm::clean_up): Adjust to clear the breakpoints | |
4952 | vector. | |
4953 | (until_break_command): Handle location expanding into multiple | |
4954 | sals. | |
4955 | ||
b2b38aa4 PA |
4956 | 2020-08-27 Pedro Alves <pedro@palves.net> |
4957 | ||
4958 | PR gdb/26523 | |
4959 | * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider | |
4960 | bp_until breakpoints user-specified locations. Update intro | |
4961 | comment. | |
4962 | ||
b886559f SM |
4963 | 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca> |
4964 | ||
4965 | * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range, | |
4966 | gdb_bfd_sections): New. | |
4967 | * maint.c (print_bfd_section_info): Change param type to | |
4968 | maint_print_section_data. | |
4969 | (print_objfile_section_info): Likewise. | |
4970 | (print_bfd_section_info_maybe_relocated): Likewise. | |
4971 | (maintenance_info_sections): Use gdb_bfd_sections. | |
4972 | ||
4c6e63bf SV |
4973 | 2020-08-25 Shahab Vahedi <shahab@synopsys.com> |
4974 | ||
4975 | * MAINTAINERS: Add ARC target and maintainer. | |
4976 | ||
8d7f0635 AK |
4977 | 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com> |
4978 | ||
4979 | * configure.tgt: ARC support for GNU/Linux. | |
4980 | * Makefile.in (ALL_TARGET_OBJS): Likewise. | |
4981 | * arc-linux-tdep.c: New file. | |
4982 | * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare. | |
4983 | * arc-tdep.c (arc_write_pc): Use it. | |
4984 | ||
fdd8731b SV |
4985 | 2020-08-25 Shahab Vahedi <shahab@synopsys.com> |
4986 | ||
4987 | * arc-tdep.c (arc_check_for_hardware_loop): New. | |
4988 | * arc-tdep.h (gdbarch_tdep): New field has_hw_loops. | |
4989 | ||
22459524 SV |
4990 | 2020-08-25 Shahab Vahedi <shahab@synopsys.com> |
4991 | ||
4992 | * arc-tdep.h: Include "gdbarch.h". | |
4993 | ||
995d3a19 SV |
4994 | 2020-08-25 Shahab Vahedi <shahab@synopsys.com> |
4995 | ||
4996 | * arch/arc.h | |
4997 | (arc_gdbarch_features): New class to stir the selection of target XML. | |
4998 | (arc_create_target_description): Use FEATURES to choose XML target. | |
4999 | (arc_lookup_target_description): Use arc_create_target_description | |
5000 | to create _new_ target descriptions or return the already created | |
5001 | ones if the FEATURES is the same. | |
5002 | * arch/arc.c: Implementation of prototypes described above. | |
5003 | * gdb/arc-tdep.h (arc_regnum enum): Add more registers. | |
5004 | (arc_gdbarch_features_init): Initialize the FEATURES struct. | |
5005 | * arc-tdep.c (*_feature_name): Make feature names consistent. | |
5006 | (arc_register_feature): A new struct to hold information about | |
5007 | registers of a particular target/feature. | |
5008 | (arc_check_tdesc_feature): Check if XML provides registers in | |
5009 | compliance with ARC_REGISTER_FEATURE structs. | |
5010 | (arc_update_acc_reg_names): Add aliases for r58 and r59. | |
5011 | (determine_*_reg_feature_set): Which feature name to look for. | |
5012 | (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES. | |
5013 | (mach_type_to_arc_isa): Convert from a set of binutils machine types | |
5014 | to expected ISA enums to be used in arc_gdbarch_features structs. | |
5015 | * features/Makefile (FEATURE_XMLFILES): Add new files. | |
5016 | * gdb/features/arc/v1-aux.c: New file. | |
5017 | * gdb/features/arc/v1-aux.xml: Likewise. | |
5018 | * gdb/features/arc/v1-core.c: Likewise. | |
5019 | * gdb/features/arc/v1-core.xml: Likewise. | |
5020 | * gdb/features/arc/v2-aux.c: Likewise. | |
5021 | * gdb/features/arc/v2-aux.xml: Likewise. | |
5022 | * gdb/features/arc/v2-core.c: Likewise. | |
5023 | * gdb/features/arc/v2-core.xml: Likewise. | |
5024 | * NEWS (Changes since GDB 9): Announce obsolence of old feature names. | |
5025 | ||
3945d2d7 GM |
5026 | 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com> |
5027 | Andrew Burgess <andrew.burgess@embecosm.com> | |
5028 | ||
5029 | PR m2/26372 | |
fc5d6901 | 5030 | * m2-exp.y (exp): Improve comment for non_empty_arglist case, add |
3945d2d7 GM |
5031 | an assert. Remove single element array indexing pattern as the |
5032 | MULTI_SUBSCRIPT support will handle this case too. | |
5033 | ||
2677f2d3 SM |
5034 | 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca> |
5035 | ||
5036 | * value.h (valprint_check_validity): Move declaration from | |
5037 | here... | |
5038 | * valprint.h (valprint_check_validity): ... to here. | |
5039 | ||
c426fddb SM |
5040 | 2020-08-24 Simon Marchi <simon.marchi@efficios.com> |
5041 | ||
5042 | * debug.h: New file. | |
5043 | * debug.c (debug_prefixed_vprintf): New function. | |
5044 | * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf. | |
5045 | * linux-nat.c (linux_nat_debug_printf_1): Likewise. | |
5046 | ||
1eb8556f SM |
5047 | 2020-08-24 Simon Marchi <simon.marchi@efficios.com> |
5048 | ||
5049 | * infrun.h (infrun_debug_printf_1): New function declaration. | |
5050 | (infrun_debug_printf): New macro. | |
5051 | * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf | |
5052 | throughout. | |
5053 | (infrun_debug_printf): New function. | |
5054 | * breakpoint.c (should_be_inserted): Use infrun_debug_printf. | |
5055 | (handle_jit_event): Likewise. | |
5056 | ||
b8fff44e MW |
5057 | 2020-08-21 Mark Wielaard <mark@klomp.org> |
5058 | ||
5059 | * ada-lex.l: Extend register warnings diagnostics comment for g++. | |
5060 | ||
d19c3068 SM |
5061 | 2020-08-22 Simon Marchi <simon.marchi@efficios.com> |
5062 | ||
5063 | * frame.c (enum class frame_id_status): New. | |
5064 | (struct frame_info) <this_id::p>: Change type to frame_id_status. | |
5065 | (fprintf_frame): Update. | |
5066 | (compute_frame_id): Set frame id status to "computing" on entry. | |
5067 | Set it back to "not_computed" on failure and to "computed" on | |
5068 | success. | |
5069 | (get_frame_id): Assert the frame id is not being computed. | |
5070 | (create_sentinel_frame): Use frame_id_status::COMPUTED. | |
5071 | (create_new_frame): Likewise. | |
5072 | (frame_cleanup_after_sniffer): Update assert. | |
5073 | ||
b70e516e SM |
5074 | 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca> |
5075 | ||
5076 | * regcache.c (pid_ptid_regcache_map): New type. | |
5077 | (target_ptid_regcache_map): Remove. | |
5078 | (target_pid_ptid_regcache_map): New type. | |
5079 | (regcaches): Change type to target_pid_ptid_regcache_map. | |
5080 | (get_thread_arch_aspace_regcache): Update. | |
5081 | (regcache_thread_ptid_changed): Update, handle pid-like ptid | |
5082 | case. | |
5083 | (regcaches_size): Update. | |
5084 | (regcache_count): Update. | |
5085 | (registers_changed_ptid_target_pid_test): New. | |
5086 | (_initialize_regcache): Register new test. | |
5087 | ||
cdd9148a SM |
5088 | 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca> |
5089 | ||
5090 | * regcache.c (regcache_count): New. | |
5091 | (struct regcache_test_data): New. | |
5092 | (regcache_test_data_up): New. | |
5093 | (populate_regcaches_for_test): New. | |
5094 | (regcaches_test): Remove. | |
5095 | (get_thread_arch_aspace_regcache_test): New. | |
5096 | (registers_changed_ptid_all_test): New. | |
5097 | (registers_changed_ptid_target_test): New. | |
5098 | (registers_changed_ptid_target_ptid_test): New. | |
5099 | (regcache_thread_ptid_changed): Remove regcache_count lambda. | |
5100 | (_initialize_regcache): Register new tests. | |
5101 | ||
dd125343 SM |
5102 | 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca> |
5103 | ||
5104 | * regcache.c (test_get_thread_arch_aspace_regcache): Rename to... | |
5105 | (get_thread_arch_aspace_regcache_and_check): ... this. Remove | |
5106 | gdbarch and aspace parameter. Use current inferior's aspace. | |
5107 | Validate regcache's arch value. | |
5108 | (regcaches_test): Update. | |
5109 | ||
3ee93972 SM |
5110 | 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca> |
5111 | ||
5112 | * regcache.c (regcaches_test): Call registers_changed. | |
5113 | ||
33bf4c5c TBA |
5114 | 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
5115 | ||
5116 | * infrun.c (process_event_stop_test): Fix typo "breapoint". | |
5117 | ||
c2fd7fae AKS |
5118 | 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
5119 | ||
5120 | * amd64-tdep.c (amd64_skip_prologue): Using symbol table | |
5121 | to find the end of prologue for flang compiled binaries. | |
5122 | * arm-tdep.c (arm_skip_prologue): Likewise. | |
5123 | * i386-tdep.c (i386_skip_prologue): Likewise. | |
5124 | * producer.c (producer_is_llvm): New function. | |
5125 | (producer_parsing_tests): Added new tests for clang/flang. | |
5126 | * producer.h (producer_is_llvm): New declaration. | |
5127 | ||
9327494e SM |
5128 | 2020-08-18 Simon Marchi <simon.marchi@efficios.com> |
5129 | ||
5130 | * linux-nat.c (linux_nat_debug_printf): New function. | |
5131 | (linux_nat_debug_printf_1): New macro. Use throughout the file. | |
5132 | ||
d138725a AM |
5133 | 2020-08-18 Aaron Merey <amerey@redhat.com> |
5134 | ||
5135 | * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables. | |
5136 | (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS. | |
5137 | (CLIBS): Add DEBUGINFOD_LIBS. | |
5138 | ||
f9b11e6b ST |
5139 | 2020-08-17 Sergei Trofimovich <siarheit@google.com> |
5140 | ||
5141 | * ia64-linux-nat.c: Include "gdbarch.h" to declare used | |
5142 | 'gdbarch_num_regs'. | |
5143 | ||
3ae7ab99 TT |
5144 | 2020-08-17 Tom Tromey <tromey@adacore.com> |
5145 | ||
5146 | * ada-varobj.c (ada_varobj_decode_var): Handle case where | |
5147 | ada_get_decoded_value returns NULL. | |
5148 | ||
b017825f TT |
5149 | 2020-08-17 Tom Tromey <tromey@adacore.com> |
5150 | ||
5151 | * python/py-inferior.c (infpy_search_memory): Use | |
5152 | gdb_py_object_from_ulongest. | |
5153 | * python/py-infevents.c (create_inferior_call_event_object) | |
5154 | (create_memory_changed_event_object): Use | |
5155 | gdb_py_object_from_ulongest. | |
5156 | * python/py-linetable.c (ltpy_entry_get_pc): Use | |
5157 | gdb_py_object_from_ulongest. | |
5158 | ||
7635cf79 SM |
5159 | 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca> |
5160 | ||
5161 | * loc.c (class symbol_needs_eval_context): Fix indentation. | |
5162 | ||
f54be24b SM |
5163 | 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca> |
5164 | ||
5165 | * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use | |
5166 | bool. | |
5167 | ||
53d5a2a5 TV |
5168 | 2020-08-17 Tom de Vries <tdevries@suse.de> |
5169 | ||
5170 | PR gdb/26393 | |
5171 | * gdbtypes.c (dump_dynamic_prop): New function. | |
5172 | (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE. | |
5173 | ||
547ce8f0 TV |
5174 | 2020-08-15 Tom de Vries <tdevries@suse.de> |
5175 | ||
5176 | PR backtrace/26390 | |
5177 | * stack.c (print_frame_args): Temporarily set the selected | |
5178 | frame to FRAME while printing the frame's arguments. | |
5179 | ||
6ea815e7 PFC |
5180 | 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
5181 | ||
5182 | PR breakpoints/26385 | |
5183 | * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume): | |
5184 | Always clear watchpoint with PTRACE_SET_DEBUGREG. | |
5185 | ||
6e562fa3 PFC |
5186 | 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
5187 | ||
5188 | * ppc-linux-nat.c (ppc_linux_dreg_interface::detect) | |
5189 | (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0 | |
5190 | and >= to check return value instead of == -1 and != -1. | |
5191 | ||
d369b608 SM |
5192 | 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca> |
5193 | ||
5194 | * utils.h (class gdb_argv) <as_array_view>: New method. | |
5195 | * utils.c (gdb_argv_as_array_view_test): New. | |
5196 | (_initialize_utils): Register selftest. | |
5197 | * maint.c (maintenance_selftest): Use the new method. | |
5198 | ||
b31488a3 KR |
5199 | 2020-08-13 Kamil Rytarowski <n54@gmx.com> |
5200 | ||
5201 | * target.h (supports_dumpcore, dumpcore): New | |
5202 | function declarations. | |
5203 | * target.c (supports_dumpcore, dumpcore): New | |
5204 | functions. | |
5205 | * target-delegates.c: Rebuild. | |
5206 | * gcore.c (gcore_command): Use target_supports_dumpcore () | |
5207 | and target_dumpcore (). | |
5208 | ||
002a3166 AM |
5209 | 2020-08-13 Aaron Merey <amerey@redhat.com> |
5210 | ||
5211 | * debuginfod-support.c: Replace global variables with user_data. | |
5212 | ||
ece5bc8a SM |
5213 | 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca> |
5214 | ||
5215 | * maint.c (maintenance_selftest): Split args and pass array_view | |
5216 | to run_tests. | |
5217 | ||
6d8a0a5e LM |
5218 | 2020-08-12 Luis Machado <luis.machado@linaro.org> |
5219 | ||
5220 | * value.c (check_type_length_before_alloc): Use ULONGEST to store a | |
5221 | type's length. | |
5222 | Use %s and pulongest to print the length. | |
5223 | ||
7cf663a9 PA |
5224 | 2020-08-12 Pedro Alves <palves@redhat.com> |
5225 | ||
5226 | * NEWS: Move "Multi-target debugging support" item to the | |
5227 | "Changes since GDB 9" section. | |
5228 | ||
27c7b875 PA |
5229 | 2020-08-12 Pedro Alves <palves@redhat.com> |
5230 | ||
5231 | PR gdb/26336 | |
5232 | * progspace.c (program_space::remove_objfile): Invalidate the | |
5233 | frame cache. | |
5234 | ||
1796a2a1 TV |
5235 | 2020-08-11 Tom de Vries <tdevries@suse.de> |
5236 | ||
5237 | * MAINTAINERS: Mark ms1 as deleted. | |
5238 | ||
f8e3fe0d LM |
5239 | 2020-08-10 Luis Machado <luis.machado@linaro.org> |
5240 | ||
5241 | PR gdb/26310 | |
5242 | ||
5243 | * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and | |
5244 | act accordingly. | |
5245 | (aarch64_analyze_prologue_test): Add more unit tests to exercise | |
5246 | movz/str/stur/stp skipping behavior. | |
5247 | ||
cc308722 LM |
5248 | 2020-08-10 Luis Machado <luis.machado@linaro.org> |
5249 | ||
5250 | * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use | |
5251 | struct user_sve_header instead of struct sve_context. | |
5252 | ||
041d9819 SM |
5253 | 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca> |
5254 | ||
5255 | * read.h (dwarf2_fetch_die_loc_sect_off, | |
5256 | dwarf2_fetch_die_loc_cu_off): Replace function pointer + | |
5257 | `void *` parameter with function_view. | |
5258 | * read.c (dwarf2_fetch_die_loc_sect_off, | |
5259 | dwarf2_fetch_die_loc_cu_off): Likewise. | |
5260 | * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove. | |
5261 | (per_cu_dwarf_call): Adjust. | |
5262 | (get_frame_address_in_block_wrapper): Remove. | |
5263 | (indirect_synthetic_pointer): Adjust. | |
5264 | (get_ax_pc): Remove. | |
5265 | (dwarf2_compile_expr_to_ax): Adjust. | |
5266 | ||
38f8aa06 TV |
5267 | 2020-08-08 Tom de Vries <tdevries@suse.de> |
5268 | ||
5269 | PR build/26344 | |
5270 | * arch/riscv.c (riscv_lookup_target_description): Use an explicit | |
5271 | constructor. | |
5272 | * regcache.c (get_thread_arch_aspace_regcache): Same. | |
5273 | ||
a52b3ae2 TT |
5274 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
5275 | ||
5276 | * ravenscar-thread.c | |
5277 | (ravenscar_thread_target::set_base_thread_from_ravenscar_task): | |
5278 | New method. | |
5279 | (ravenscar_thread_target::wait): Check | |
5280 | runtime_initialized. | |
5281 | (ravenscar_thread_target::prepare_to_store) | |
5282 | (ravenscar_thread_target::stopped_by_sw_breakpoint) | |
5283 | (ravenscar_thread_target::stopped_by_hw_breakpoint) | |
5284 | (ravenscar_thread_target::stopped_by_watchpoint) | |
5285 | (ravenscar_thread_target::stopped_data_address) | |
5286 | (ravenscar_thread_target::core_of_thread): Use | |
5287 | scoped_restore_current_thread and | |
5288 | set_base_thread_from_ravenscar_task. | |
5289 | ||
0e29517d TT |
5290 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
5291 | ||
5292 | * ravenscar-thread.c (update_thread_list): Set inferior_ptid. | |
5293 | ||
592f9bd7 TT |
5294 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
5295 | ||
5296 | * ravenscar-thread.c (ravenscar_thread_target::wait): Call | |
5297 | update_inferior_ptid before update_thread_list. | |
5298 | (temporarily_change_regcache_ptid): New class. | |
5299 | (ravenscar_thread_target::fetch_registers) | |
5300 | (ravenscar_thread_target::store_registers) | |
5301 | (ravenscar_thread_target::prepare_to_store): Use base thread when | |
5302 | forwarding operation. | |
5303 | ||
39e2018a TT |
5304 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
5305 | ||
5306 | * ravenscar-thread.c (ravenscar_thread_target::resume): Handle | |
5307 | "is_pid" case. | |
5308 | ||
2080266b TT |
5309 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
5310 | ||
5311 | * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread): | |
5312 | New methods. | |
5313 | (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map | |
5314 | first. | |
5315 | (ravenscar_thread_target::add_thread): Rename from | |
5316 | ravenscar_add_thread. | |
5317 | (ravenscar_thread_target::update_thread_list): Use a lambda. | |
5318 | (ravenscar_thread_target::xfer_partial): New method. | |
5319 | ||
78c02f21 TT |
5320 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
5321 | ||
5322 | * ada-lang.h (ada_task_list_iterator_ftype): Now a | |
5323 | gdb::function_view. | |
5324 | (iterate_over_live_ada_tasks): Change type of argument. | |
5325 | * ada-tasks.c (iterate_over_live_ada_tasks): Change type | |
5326 | of argument. | |
5327 | ||
d5d833af TT |
5328 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
5329 | ||
5330 | * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>: | |
5331 | Remove. | |
5332 | (ravenscar_thread_target::extra_thread_info): Remove. | |
5333 | (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result; | |
5334 | defer to target beneath for non-Ravenscar threads. | |
5335 | ||
a8ac85bb TT |
5336 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
5337 | ||
5338 | * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu, | |
5339 | get_base_thread_from_ravenscar_task>: Now methods. | |
5340 | <m_cpu_map>: New member. | |
5341 | (ravenscar_thread_target::get_thread_base_cpu): Rename from | |
5342 | ravenscar_get_thread_base_cpu. Check m_cpu_map. | |
5343 | (ravenscar_thread_target::task_is_currently_active): Update. | |
5344 | (ravenscar_thread_target::get_base_thread_from_ravenscar_task): | |
5345 | Now a method. | |
5346 | (ravenscar_thread_target::add_active_thread): Put initial thread | |
5347 | into the m_cpu_map. | |
5348 | ||
550ab58d TT |
5349 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
5350 | ||
5351 | * ravenscar-thread.c (ravenscar_thread_target::wait): Return | |
5352 | event_ptid. | |
5353 | ||
e9546579 TT |
5354 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
5355 | ||
5356 | * ravenscar-thread.c (ravenscar_thread_target::wait): Check | |
5357 | runtime_initialized. | |
5358 | ||
3d4470e5 TT |
5359 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
5360 | ||
5361 | * ravenscar-thread.c (ravenscar_thread_target): Don't call | |
5362 | add_active_thread. | |
5363 | (ravenscar_thread_target::add_active_thread): Now public. | |
5364 | (ravenscar_inferior_created): Call add_active_thread after pushing | |
5365 | the target. | |
5366 | ||
888bdb2b SM |
5367 | 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca> |
5368 | ||
5369 | * regcache.c (ptid_regcache_map): New type. | |
5370 | (target_ptid_regcache_map): New type. | |
5371 | (regcaches): Change type to target_ptid_regcache_map. | |
5372 | (get_thread_arch_aspace_regcache): Update to regcaches' new | |
5373 | type. | |
5374 | (regcache_thread_ptid_changed): Likewise. | |
5375 | (registers_changed_ptid): Likewise. | |
5376 | (regcaches_size): Likewise. | |
5377 | (regcaches_test): Update. | |
5378 | (regcache_thread_ptid_changed): Update. | |
5379 | * regcache.h (regcache_up): New type. | |
5380 | * gdbsupport/ptid.h (hash_ptid): New struct. | |
5381 | ||
b161a60d SM |
5382 | 2020-08-07 Simon Marchi <simon.marchi@efficios.com> |
5383 | ||
5384 | * observable.h (thread_ptid_changed): Add parameter | |
5385 | `process_stratum_target *`. | |
5386 | * infrun.c (infrun_thread_ptid_changed): Add parameter | |
5387 | `process_stratum_target *` and use it. | |
5388 | (selftests): New namespace. | |
5389 | (infrun_thread_ptid_changed): New function. | |
5390 | (_initialize_infrun): Register selftest. | |
5391 | * regcache.c (regcache_thread_ptid_changed): Add parameter | |
5392 | `process_stratum_target *` and use it. | |
5393 | (regcache_thread_ptid_changed): New function. | |
5394 | (_initialize_regcache): Register selftest. | |
5395 | * thread.c (thread_change_ptid): Pass target to | |
5396 | thread_ptid_changed observable. | |
5397 | ||
d2854d8d CT |
5398 | 2020-08-06 Caroline Tice <cmtice@google.com> |
5399 | ||
fe4c3d43 SM |
5400 | * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field. |
5401 | (struct dwp_sections): Update field comments. Add loclists and | |
5402 | rnglists fields. | |
5403 | (struct virtual_v2_dwo_sections): Rename struct to | |
5404 | 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add | |
5405 | size & offset fields for loclists and rnglists. | |
5406 | (struct dwp_hash_table): Add a 'v5' struct field to the union section. | |
5407 | (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for | |
5408 | skipping dummy type units. | |
5409 | (create_dwp_hash_table): Update the large comment above the function to | |
5410 | discuss Version 5 DWP files as well, with references. Update all the | |
5411 | version checks in the function to check for version 5 as well. Add new | |
5412 | section at the end to create dwp hash table for version 5. | |
5413 | (create_dwp_v2_section): Rename function to | |
5414 | 'create_dwp_v2_or_v5_section'. Update function comment appropriately. | |
5415 | Add V5 to error message text. | |
5416 | (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section | |
5417 | into calls to create_dwp_v2_or_v5_section. | |
5418 | (create_dwo_unit_in_dwp_v5): New function. | |
5419 | (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly | |
5420 | check for version2; add else clause to handle version 5. | |
5421 | (open_and_init_dwo_file): Add code to check dwarf version & only call | |
5422 | create_debug_types_hash_table (with sections.types) if version is not 5; | |
5423 | else call create_debug_type_hash_table, with sections.info. | |
5424 | (dwarf2_locate_v2_dwp_sections): Update function comment to mention | |
5425 | version 5. | |
5426 | (dwarf2_locate_v5_dwp_sections): New function. | |
5427 | (open_and_init_dwp_file): Add else-if clause for version 5 to call | |
5428 | bfd_map_over_sections with dwarf2_locate_v5_dwp_sections. | |
d2854d8d | 5429 | |
159ed7d9 SM |
5430 | 2020-08-06 Simon Marchi <simon.marchi@efficios.com> |
5431 | ||
5432 | * regcache.h (class regcache): Remove friend | |
5433 | registers_changed_ptid. | |
5434 | <regcache_thread_ptid_changed>: Remove. | |
5435 | <regcaches>: Remove. | |
5436 | * regcache.c (regcache::regcaches): Rename to... | |
5437 | (regcaches): ... this. Make static. | |
5438 | (get_thread_arch_aspace_regcache): Update. | |
5439 | (regcache::regcache_thread_ptid_changed): Rename to... | |
5440 | (regcache_thread_ptid_changed): ... this. Update. | |
5441 | (class regcache_access): Remove. | |
5442 | (regcaches_test): Update. | |
5443 | (_initialize_regcache): Update. | |
5444 | * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include | |
5445 | <forward_list>. | |
5446 | ||
174981ae SM |
5447 | 2020-08-06 Simon Marchi <simon.marchi@efficios.com> |
5448 | ||
5449 | * regcache.h (class regcache) <current_regcache>: Rename to... | |
5450 | <regcaches>: ... this. Move doc here. | |
5451 | * regcache.c (regcache::current_regcache) Rename to... | |
5452 | (regcache::regcaches): ... this. Move doc to header. | |
5453 | (get_thread_arch_aspace_regcache): Update. | |
5454 | (regcache::regcache_thread_ptid_changed): Update. | |
5455 | (registers_changed_ptid): Update. | |
5456 | (class regcache_access) <current_regcache_size>: Rename to... | |
5457 | <regcaches_size>: ... this. | |
5458 | (current_regcache_test): Rename to... | |
5459 | (regcaches_test): ... this. | |
5460 | (_initialize_regcache): Update. | |
5461 | ||
ed908db6 VC |
5462 | 2020-08-06 Victor Collod <vcollod@nvidia.com> |
5463 | ||
5464 | * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment. | |
5465 | ||
b5582ab7 KB |
5466 | 2020-08-05 Kevin Buettner <kevinb@redhat.com> |
5467 | ||
5468 | * corelow.c (core_target::build_file_mappings): Don't output | |
5469 | null pathname in warning. | |
5470 | ||
ea946b86 SM |
5471 | 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca> |
5472 | ||
5473 | * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp, | |
5474 | gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp, | |
5475 | gdb.dwarf2/dw2-single-line-discriminators.exp, | |
5476 | dw2-undefined-ret-addr.exp: Pass nopie to compilation options. | |
5477 | ||
57d02173 TT |
5478 | 2020-08-05 Tom Tromey <tromey@adacore.com> |
5479 | ||
5480 | PR rust/26197: | |
5481 | * dwarf2/read.c (alloc_rust_variant): Handle univariant case. | |
5482 | (quirk_rust_enum): Call alloc_rust_variant for univariant case. | |
5483 | Fix off-by-one and type size errors in ordinary case. | |
5484 | ||
5555c86d TV |
5485 | 2020-08-05 Tom de Vries <tdevries@suse.de> |
5486 | ||
5487 | * gdbtypes.c (type_not_allocated, type_not_associated): Use | |
5488 | "prop->const_val () == 0" instead of "prop->const_val () != 0". | |
5489 | ||
97916bfe SM |
5490 | 2020-08-04 Simon Marchi <simon.marchi@efficios.com> |
5491 | ||
5492 | * frame.h (frame_id_p): Return bool. | |
5493 | (frame_id_artificial_p): Return bool. | |
5494 | (frame_id_eq): Return bool. | |
5495 | (has_stack_frames): Return bool. | |
5496 | (get_selected_frame): Fix typo in comment. | |
5497 | (get_frame_pc_if_available): Return bool. | |
5498 | (get_frame_address_in_block_if_available): Return bool. | |
5499 | (get_frame_func_if_available): Return bool. | |
5500 | (read_frame_register_unsigned): Return bool. | |
5501 | (get_frame_register_bytes): Return bool. | |
5502 | (safe_frame_unwind_memory): Return bool. | |
5503 | (deprecated_frame_register_read): Return bool. | |
5504 | (frame_unwinder_is): Return bool. | |
5505 | * frame.c (struct frame_info) <prev_arch::p>: Change type to | |
5506 | bool. | |
5507 | <this_id::p>: Likewise. | |
5508 | <prev_p>: Likewise. | |
5509 | (frame_stash_add): Return bool. | |
5510 | (get_frame_id): Use bool. | |
5511 | (frame_id_build_special) Use bool. | |
5512 | (frame_id_build_unavailable_stack): Use bool. | |
5513 | (frame_id_build): Use bool. | |
5514 | (frame_id_p): Return bool, use true/false instead of 1/0. | |
5515 | (frame_id_artificial_p): Likewise. | |
5516 | (frame_id_eq): Likewise. | |
5517 | (frame_id_inner): Likewise. | |
5518 | (get_frame_func_if_available): Likewise. | |
5519 | (read_frame_register_unsigned): Likewise. | |
5520 | (deprecated_frame_register_read): Likewise. | |
5521 | (get_frame_register_bytes): Likewise. | |
5522 | (has_stack_frames): Likewise. | |
5523 | (inside_main_func): Likewise. | |
5524 | (inside_entry_func): Likewise. | |
5525 | (get_frame_pc_if_available): Likewise. | |
5526 | (get_frame_address_in_block_if_available): Likewise. | |
5527 | (frame_unwinder_is): Likewise. | |
5528 | (safe_frame_unwind_memory): Likewise. | |
5529 | (frame_unwind_arch): Likewise. | |
5530 | ||
fedfee88 SM |
5531 | 2020-08-04 Simon Marchi <simon.marchi@efficios.com> |
5532 | ||
5533 | * frame.c (frame_info) <prev_func> <p>: Rename to status, change | |
5534 | type to cached_copy_status. | |
5535 | (fprintf_frame): Adjust. | |
5536 | (get_frame_func_if_available): Adjust. | |
5537 | (frame_cleanup_after_sniffer): Adjust. | |
5538 | ||
6cfa9b59 MW |
5539 | 2020-08-04 Mark Wielaard <mark@klomp.org> |
5540 | ||
5541 | * MAINTAINERS (Write After Approval): Update email address. | |
5542 | ||
66d6346b SM |
5543 | 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca> |
5544 | ||
5545 | * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with | |
5546 | dynamic_prop::const_val. | |
5547 | ||
8a6d5e35 SM |
5548 | 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca> |
5549 | ||
5550 | * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with | |
5551 | dynamic_prop::kind. | |
5552 | ||
51d6067d SM |
5553 | 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca> |
5554 | ||
5555 | * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove. | |
5556 | ||
b26e2ae7 JM |
5557 | 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com> |
5558 | ||
5559 | * configure.tgt: Set gdb_sim for bpf-*-* targets. | |
5560 | ||
39791af2 JM |
5561 | 2020-08-04 Weimin Pan <weimin.pan@oracle.com> |
5562 | Jose E. Marchesi <jose.marchesi@oracle.com> | |
5563 | ||
5564 | * configure.tgt: Add entry for bpf-*-*. | |
5565 | * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o | |
5566 | (ALLDEPFILES): Add bpf-tdep.c. | |
5567 | * bpf-tdep.c: New file. | |
5568 | * MAINTAINERS: Add bpf target and maintainer. | |
5569 | * NEWS: Mention the support for the new target. | |
5570 | ||
521894aa TV |
5571 | 2020-08-04 Tom de Vries <tdevries@suse.de> |
5572 | ||
5573 | PR symtab/23270 | |
5574 | * dwarf2/read.c (find_partial_die): Change internal error into Dwarf | |
5575 | Error. | |
5576 | ||
5d6356e9 JB |
5577 | 2020-08-03 John Baldwin <jhb@FreeBSD.org> |
5578 | ||
5579 | * syscalls/freebsd.xml: Regenerate. | |
5580 | ||
0cf82b81 JB |
5581 | 2020-08-03 John Baldwin <jhb@FreeBSD.org> |
5582 | ||
5583 | * syscalls/update-freebsd.sh: Fix usage and year range. | |
5584 | ||
8f34b746 TV |
5585 | 2020-08-03 Tom de Vries <tdevries@suse.de> |
5586 | ||
5587 | PR symtab/26333 | |
5588 | * dwarf2/read.c (dwarf_decode_lines_1): Ignore | |
5589 | DW_LNE_lo_user/DW_LNE_hi_user range. | |
5590 | ||
5e500d33 SM |
5591 | 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca> |
5592 | ||
5593 | PR ada/26318 | |
5594 | * ada-lang.c (ada_modulus): Return 0 if property is not of const | |
5595 | kind. | |
5596 | ||
78319c15 TBA |
5597 | 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
5598 | ||
5599 | * breakpoint.c (set_breakpoint_condition): Do minor refactoring. | |
5600 | ||
4c55e970 TBA |
5601 | 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
5602 | ||
5603 | * breakpoint.c (set_breakpoint_condition): Update the condition | |
5604 | expressions after checking that the input condition string parses | |
5605 | successfully and does not contain junk at the end. | |
5606 | ||
1e620590 TBA |
5607 | 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
5608 | ||
5609 | * breakpoint.c (set_breakpoint_condition): Update the | |
5610 | condition string after parsing the new condition successfully. | |
5611 | ||
c8693053 RO |
5612 | 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
5613 | ||
5614 | * proc-api.c (_STRUCTURED_PROC): Don't define. | |
5615 | * proc-events.c: Likewise. | |
5616 | * proc-flags.c: Likewise. | |
5617 | * proc-why.c: Likewise. | |
5618 | * procfs.c: Likewise. | |
5619 | ||
5620 | * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS. | |
5621 | * configure, config.in: Regenerate. | |
5622 | ||
5a99adb8 TV |
5623 | 2020-07-30 Tom de Vries <tdevries@suse.de> |
5624 | ||
5625 | PR build/26320 | |
5626 | * ui-style.h (struct ui_file_style::color): Wrap m_value and | |
5627 | m_red/m_green/m_blue in a union. | |
5628 | ||
8ba83e91 TV |
5629 | 2020-07-29 Tom de Vries <tdevries@suse.de> |
5630 | ||
5631 | PR tdep/26280 | |
5632 | * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized. | |
5633 | ||
f75a0693 AB |
5634 | 2020-07-28 Tom Tromey <tromey@adacore.com> |
5635 | ||
5636 | PR symtab/26270: | |
5637 | * symtab.h (find_pc_partial_function_sym): Declare. | |
5638 | * cli/cli-cmds.c (disassemble_command): Use | |
5639 | find_pc_partial_function_sym. Check asm_demangle. | |
5640 | * blockframe.c (cache_pc_function_sym): New global. | |
5641 | (cache_pc_function_name): Remove. | |
5642 | (clear_pc_function_cache): Update. | |
5643 | (find_pc_partial_function_sym): New function, from | |
5644 | find_pc_partial_function. | |
5645 | (find_pc_partial_function): Rewrite using | |
5646 | find_pc_partial_function_sym. | |
5647 | ||
16f3242c TT |
5648 | 2020-07-28 Tom Tromey <tromey@adacore.com> |
5649 | ||
5650 | * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble" | |
5651 | help. Add usage. | |
5652 | ||
4888741a TT |
5653 | 2020-07-28 Tom Tromey <tromey@adacore.com> |
5654 | ||
5655 | * dwarf2/expr.c (dwarf_expr_context::execute_stack_op) | |
5656 | <DW_OP_GNU_variable_value>: Cast to address type. | |
5657 | ||
4d46f402 KR |
5658 | 2020-07-28 Kamil Rytarowski <n54@gmx.com> |
5659 | ||
5660 | * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration. | |
5661 | * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function. | |
5662 | * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data) | |
5663 | (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data) | |
5664 | (nbsd_get_siginfo_type): New. | |
5665 | (nbsd_init_abi): Install gdbarch "get_siginfo_type" method. | |
5666 | (_initialize_nbsd_tdep): New. | |
5667 | ||
d70f978b L |
5668 | 2020-07-28 H.J. Lu <hongjiu.lu@intel.com> |
5669 | ||
5670 | PR binutils/26301 | |
5671 | * configure: Regenerated. | |
5672 | ||
377170fa L |
5673 | 2020-07-28 H.J. Lu <hongjiu.lu@intel.com> |
5674 | ||
5675 | PR binutils/26301 | |
5676 | * configure: Regenerated. | |
5677 | ||
43d5901d AB |
5678 | 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com> |
5679 | ||
5680 | * python/py-frame.c: Remove 'user-regs.h' include. | |
5681 | (frapy_read_register): Rewrite to make use of | |
5682 | gdbpy_parse_register_id. | |
5683 | * python/py-registers.c (gdbpy_parse_register_id): New function, | |
5684 | moved here from python/py-unwind.c. Updated the return type, and | |
5685 | also accepts register descriptor objects. | |
5686 | * python/py-unwind.c: Remove 'user-regs.h' include. | |
5687 | (pyuw_parse_register_id): Moved to python/py-registers.c. | |
5688 | (unwind_infopy_add_saved_register): Update to use | |
5689 | gdbpy_parse_register_id. | |
5690 | (pending_framepy_read_register): Likewise. | |
5691 | * python/python-internal.h (gdbpy_parse_register_id): Declare. | |
5692 | ||
14fa8fb3 AB |
5693 | 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com> |
5694 | ||
5695 | * python/py-registers.c: Add 'user-regs.h' include. | |
5696 | (register_descriptor_iter_find): New function. | |
5697 | (register_descriptor_iterator_object_methods): New static global | |
5698 | methods array. | |
5699 | (register_descriptor_iterator_object_type): Add pointer to methods | |
5700 | array. | |
5701 | ||
ddce1758 JB |
5702 | 2020-07-27 John Baldwin <jhb@FreeBSD.org> |
5703 | ||
5704 | * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO | |
5705 | for all architectures on FreeBSD 11.3 and later. | |
5706 | ||
a4089f52 TT |
5707 | 2020-07-27 Tom Tromey <tromey@adacore.com> |
5708 | ||
5709 | * gcore.h (load_corefile): Don't declare. | |
5710 | ||
95420d30 TV |
5711 | 2020-07-27 Tom de Vries <tdevries@suse.de> |
5712 | ||
5713 | * configure.ac: Fix sys/sockets.h -> sys/socket.h typo. | |
5714 | * config.in: Regenerate. | |
5715 | * configure: Regenerate. | |
5716 | ||
05a6b8c2 EZ |
5717 | 2020-07-26 Eli Zaretskii <eliz@gnu.org> |
5718 | ||
5719 | * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and | |
5720 | ws2tcpip.h. When checking whether socklen_t type is defined, use | |
5721 | ws2tcpip.h if it is available and sys/socket.h isn't. | |
5722 | * configure: Regenerate. | |
5723 | * config.in: Regenerate. | |
5724 | ||
e79eb02f AB |
5725 | 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com> |
5726 | ||
5727 | PR fortran/23051 | |
5728 | PR fortran/26139 | |
5729 | * valops.c (value_ind): Pass address to | |
5730 | readjust_indirect_value_type. | |
5731 | * value.c (readjust_indirect_value_type): Make parameter | |
5732 | non-const, and add extra address parameter. Resolve original type | |
5733 | before using it. | |
5734 | * value.h (readjust_indirect_value_type): Update function | |
5735 | signature and comment. | |
5736 | ||
876518dd TV |
5737 | 2020-07-25 Tom de Vries <tdevries@suse.de> |
5738 | ||
5739 | PR symtab/26243 | |
5740 | * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line | |
5741 | entries. | |
5742 | ||
f6720b1c AM |
5743 | 2020-07-24 Aaron Merey <amerey@redhat.com> |
5744 | ||
5745 | * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS. | |
5746 | * configure: Rebuild. | |
5747 | ||
513487e1 KB |
5748 | 2020-07-23 Kevin Buettner <kevinb@redhat.com> |
5749 | ||
5750 | PR corefiles/26294 | |
5751 | * corelow.c (_initialize_corelow): Add period to help text | |
5752 | for "maintenance print core-file-backed-mappings". | |
5753 | ||
e7bc9db8 PA |
5754 | 2020-07-23 Pedro Alves <pedro@palves.net> |
5755 | ||
5756 | * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't | |
5757 | touch THIS_CACHE/THIS_FRAME if the frame cache was cleared | |
5758 | meanwhile. | |
5759 | * frame.c (frame_cache_generation, get_frame_cache_generation): | |
5760 | New. | |
5761 | (reinit_frame_cache): Increment FRAME_CACHE_GENERATION. | |
5762 | (get_prev_frame_if_no_cycle): On exception, don't touch | |
5763 | PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile. | |
5764 | * frame.h (get_frame_cache_generation): Declare. | |
5765 | ||
90fcc466 TV |
5766 | 2020-07-23 Tom de Vries <tdevries@suse.de> |
5767 | ||
5768 | PR tui/26282 | |
5769 | * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows): | |
5770 | New default constructor. | |
5771 | ||
78344df7 AB |
5772 | 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com> |
5773 | ||
5774 | * disasm.c (do_mixed_source_and_assembly_deprecated): Don't | |
5775 | exclude non-statement entries. | |
5776 | ||
b089853a KB |
5777 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
5778 | ||
5779 | * NEWS (New commands): Mention new command | |
5780 | "maintenance print core-file-backed-mappings". | |
5781 | ||
09c2f5d4 KB |
5782 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
5783 | ||
5784 | * corelow.c (gdbcmd.h): Include. | |
5785 | (core_target::info_proc_mappings): New method. | |
5786 | (get_current_core_target): New function. | |
5787 | (maintenance_print_core_file_backed_mappings): New function. | |
5788 | (_initialize_corelow): Add core-file-backed-mappings to | |
5789 | "maint print" commands. | |
5790 | ||
9c5ec5c2 | 5791 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
fe4c3d43 | 5792 | |
9c5ec5c2 KB |
5793 | * linux-tdep.c (dump_note_entry_p): New function. |
5794 | (linux_dump_mapping_p_ftype): New typedef. | |
5795 | (linux_find_memory_regions_full): Add new parameter, | |
5796 | should_dump_mapping_p. | |
5797 | (linux_find_memory_regions): Adjust call to | |
5798 | linux_find_memory_regions_full. | |
5799 | (linux_make_mappings_core_file_notes): Use dump_note_entry_p in | |
5800 | call to linux_find_memory_regions_full. | |
5801 | ||
db082f59 KB |
5802 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
5803 | ||
5804 | * corelow.c (solist.h, unordered_map): Include. | |
5805 | (class core_target): Add field m_core_file_mappings and | |
5806 | method build_file_mappings. | |
5807 | (core_target::core_target): Call build_file_mappings. | |
5808 | (core_target::~core_target): Free memory associated with | |
5809 | m_core_file_mappings. | |
5810 | (core_target::build_file_mappings): New method. | |
5811 | (core_target::xfer_partial): Use m_core_file_mappings | |
5812 | for memory transfers. | |
5813 | * linux-tdep.c (linux_read_core_file_mappings): New | |
5814 | function. | |
5815 | (linux_core_info_proc_mappings): Rewrite to use | |
5816 | linux_read_core_file_mappings. | |
5817 | (linux_init_abi): Register linux_read_core_file_mappings. | |
5818 | ||
7e183d27 KB |
5819 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
5820 | ||
5821 | * arch-utils.c (default_read_core_file_mappings): New function. | |
5822 | * arch-utils.c (default_read_core_file_mappings): Declare. | |
5823 | * gdbarch.sh (read_core_file_mappings): New gdbarch method. | |
5824 | * gdbarch.h, gdbarch.c: Regenerate. | |
5825 | ||
2735d421 KB |
5826 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
5827 | ||
5828 | PR corefiles/25631 | |
5829 | * corelow.c (core_target:xfer_partial): Revise | |
5830 | TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS | |
5831 | case after first checking the stratum beneath the core | |
5832 | target. | |
5833 | (has_all_memory): Return true. | |
5834 | * target.c (raw_memory_xfer_partial): Revise comment | |
5835 | regarding use of has_all_memory. | |
5836 | ||
e56cb451 KB |
5837 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
5838 | ||
5839 | * exec.h (section_table_xfer_memory): Revise declaration, | |
5840 | replacing section name parameter with an optional callback | |
5841 | predicate. | |
5842 | * exec.c (section_table_xfer_memory): Likewise. | |
5843 | * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers | |
5844 | of section_table_xfer_memory. | |
5845 | ||
32fa152e TT |
5846 | 2020-07-22 Tom Tromey <tromey@adacore.com> |
5847 | ||
5848 | * mi/mi-cmd-stack.c (list_args_or_locals): Use | |
5849 | lookup_symbol_search_name. | |
5850 | ||
a67a1c41 AB |
5851 | 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com> |
5852 | ||
5853 | * python/py-registers.c (gdbpy_register_object_data_init): Remove | |
5854 | redundant local variable. | |
5855 | (gdbpy_get_register_descriptor): Extract descriptor vector as a | |
5856 | reference, not pointer, update code accordingly. | |
5857 | ||
a7b4ff4f SM |
5858 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
5859 | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
5860 | ||
5861 | * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field. | |
5862 | * jit.c (jit_breakpoint_re_set_internal): Use the | |
5863 | `skip_jit_symbol_lookup` field. | |
5864 | ||
2340e834 SM |
5865 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
5866 | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
5867 | ||
5868 | * jit.c (jit_read_descriptor): Define the descriptor address once, | |
5869 | use twice. | |
5870 | (jit_breakpoint_deleted): Move the declaration of the loop variable | |
5871 | `iter` into the loop header. | |
5872 | (jit_breakpoint_re_set_internal): Move the declaration of the local | |
5873 | variable `objf_data` to the first point of definition. | |
5874 | (jit_event_handler): Move the declaration of local variables | |
5875 | `code_entry`, `entry_addr`, and `objf` to their first point of use. | |
5876 | Rename `objf` to `jited`. | |
5877 | ||
c1072906 SM |
5878 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
5879 | ||
5880 | * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>: | |
5881 | Remove. | |
5882 | * jit.c (get_jiter_objfile_data): Update. | |
5883 | ||
c8474dc3 TBA |
5884 | 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
5885 | Simon Marchi <simon.marchi@polymtl.ca> | |
5886 | ||
5887 | * jit.c (struct jit_program_space_data): Remove. | |
5888 | (jit_program_space_key): Remove. | |
5889 | (jiter_objfile_data::~jiter_objfile_data): Remove program space | |
5890 | stuff. | |
5891 | (get_jit_program_space_data): Remove. | |
5892 | (jit_breakpoint_deleted): Iterate on all of the program space's | |
5893 | objfiles. | |
5894 | (jit_inferior_init): Likewise. | |
5895 | (jit_breakpoint_re_set_internal): Likewise. Also change return | |
5896 | type to void. | |
5897 | (jit_breakpoint_re_set): Pass current_program_space to | |
5898 | jit_breakpoint_re_set_internal. | |
5899 | ||
77208eb7 SM |
5900 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
5901 | ||
5902 | * jit.h (struct jiter_objfile_data) <cached_code_address, | |
5903 | jit_breakpoint>: Move to here from ... | |
5904 | * jit.c (jit_program_space_data): ... here. | |
5905 | (jiter_objfile_data::~jiter_objfile_data): Update. | |
5906 | (jit_breakpoint_deleted): Update. | |
5907 | (jit_breakpoint_re_set_internal): Update. | |
5908 | ||
8c1c720f SM |
5909 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
5910 | ||
5911 | * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some | |
5912 | checks. | |
5913 | (jit_read_descriptor): Remove NULL check. | |
5914 | (jit_event_handler): Add an assertion. | |
5915 | ||
0e74a041 SM |
5916 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
5917 | ||
5918 | * jit.h (struct jit_objfile_data): Split into... | |
5919 | (struct jiter_objfile_data): ... this ... | |
5920 | (struct jited_objfile_data): ... and this. | |
5921 | * objfiles.h (struct objfile) <jit_data>: Remove. | |
5922 | <jiter_data, jited_data>: New fields. | |
5923 | * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ... | |
5924 | (jiter_objfile_data::~jiter_objfile_data): ... this. | |
5925 | (get_jit_objfile_data): Rename to ... | |
5926 | (get_jiter_objfile_data): ... this. | |
5927 | (add_objfile_entry): Update. | |
5928 | (jit_read_descriptor): Use get_jiter_objfile_data. | |
5929 | (jit_find_objf_with_entry_addr): Use objfile's jited_data field. | |
5930 | (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data. | |
5931 | (jit_inferior_exit_hook): Use objfile's jited_data field. | |
5932 | ||
238b5c9f SM |
5933 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
5934 | ||
5935 | * jit.h: Forward-declare `struct minimal_symbol`. | |
5936 | (struct jit_objfile_data): Migrate to here from jit.c; also add a | |
5937 | constructor, destructor, and an objfile* field. | |
5938 | * jit.c (jit_objfile_data): Remove. | |
5939 | (struct jit_objfile_data): Migrate from here to jit.h. | |
5940 | (jit_objfile_data::~jit_objfile_data): New destructor | |
5941 | implementation with code moved from free_objfile_data. | |
5942 | (free_objfile_data): Delete. | |
5943 | (get_jit_objfile_data): Update to use the jit_data field of objfile. | |
5944 | (jit_find_objf_with_entry_addr): Ditto. | |
5945 | (jit_inferior_exit_hook): Ditto. | |
5946 | (_initialize_jit): Remove the call to | |
5947 | register_objfile_data_with_cleanup. | |
5948 | * objfiles.h (struct objfile) <jit_data>: New field. | |
5949 | ||
fe053b9e TBA |
5950 | 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
5951 | ||
5952 | * jit.h: Forward-declare `struct objfile`. | |
5953 | (jit_event_handler): Add a second parameter, the JITer objfile. | |
5954 | * jit.c (jit_read_descriptor): Change the signature to take the | |
5955 | JITer objfile as an argument instead of the jit_program_space_data. | |
5956 | (jit_inferior_init): Update the call to jit_read_descriptor. | |
5957 | (jit_event_handler): Use the new JITer objfile argument when calling | |
5958 | jit_read_descriptor. | |
5959 | * breakpoint.c (handle_jit_event): Update the call to | |
5960 | jit_event_handler to pass the JITer objfile. | |
5961 | ||
4cec0c66 JB |
5962 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
5963 | ||
5964 | * gdbarch.c: Regenerate. | |
5965 | * gdbarch.h: Regenerate. | |
5966 | * gdbarch.sh (handle_segmentation_fault): Remove method. | |
5967 | * infrun.c (handle_segmentation_fault): Remove. | |
5968 | (print_signal_received_reason): Remove call to | |
5969 | handle_segmentation_fault. | |
5970 | ||
0e42f66a JB |
5971 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
5972 | ||
5973 | * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault): | |
5974 | Rename to sparc64_linux_report_signal_info and add siggnal | |
5975 | argument. | |
5976 | (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info | |
5977 | instead of sparc64_linux_handle_segmentation_fault. | |
5978 | ||
77bdfeb2 JB |
5979 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
5980 | ||
5981 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use | |
5982 | i386_linux_report_signal_info instead of | |
5983 | i386_linux_handle_segmentation_fault. | |
5984 | * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename | |
5985 | to i386_linux_report_signal_info and add siggnal argument. | |
5986 | (i386_linux_init_abi): Use i386_linux_report_signal_info instead | |
5987 | of i386_linux_handle_segmentation_fault. | |
5988 | * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename | |
5989 | to i386_linux_report_signal_info and add siggnal argument. | |
5990 | ||
ad97bfc5 JB |
5991 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
5992 | ||
5993 | * corelow.c (core_target_open): Invoke gdbarch report_signal_info | |
5994 | hook if present. | |
5995 | ||
272bb05c JB |
5996 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
5997 | ||
5998 | * gdbarch.c: Regenerate. | |
5999 | * gdbarch.h: Regenerate. | |
6000 | * gdbarch.sh (report_signal_info): New method. | |
6001 | * infrun.c (print_signal_received_reason): Invoke gdbarch | |
6002 | report_signal_info hook if present. | |
6003 | ||
baf8791e AB |
6004 | 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com> |
6005 | ||
6006 | * python/py-registers.c : Add 'unordered_map' include. | |
6007 | (gdbpy_new_reggroup): Renamed to... | |
6008 | (gdbpy_get_reggroup): ...this. Update to only create register | |
6009 | group descriptors when needed. | |
6010 | (gdbpy_reggroup_iter_next): Update. | |
6011 | ||
f7306dac AB |
6012 | 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com> |
6013 | ||
6014 | * python/py-registers.c (gdbpy_register_object_data): New static | |
6015 | global. | |
6016 | (gdbpy_register_object_data_init): New function. | |
6017 | (gdbpy_new_register_descriptor): Renamed to... | |
6018 | (gdbpy_get_register_descriptor): ...this, and update to reuse | |
6019 | existing register descriptors where possible. | |
6020 | (gdbpy_register_descriptor_iter_next): Update. | |
6021 | (gdbpy_initialize_registers): Register new gdbarch data. | |
6022 | ||
05c309a8 SM |
6023 | 2020-07-21 Simon Marchi <simon.marchi@efficios.com> |
6024 | ||
6025 | * linux-nat.c (stopped_pids): Make static. | |
6026 | ||
d1fd641e SM |
6027 | 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca> |
6028 | ||
6029 | PR ada/26235 | |
6030 | * gdbtypes.c (ada_discrete_type_low_bound, | |
6031 | ada_discrete_type_high_bound): Handle undefined bounds. | |
6032 | ||
1de14d77 KR |
6033 | 2020-07-21 Kamil Rytarowski <n54@gmx.com> |
6034 | ||
6035 | * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New | |
6036 | declaration. | |
6037 | * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New | |
6038 | function. | |
6039 | ||
ed810cc7 JB |
6040 | 2020-07-20 John Baldwin <jhb@FreeBSD.org> |
6041 | ||
6042 | * fbsd-tdep.c (fbsd_skip_solib_resolver): New function. | |
6043 | (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method. | |
6044 | * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype. | |
6045 | * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function. | |
6046 | (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver" | |
6047 | method. | |
6048 | ||
ae5369e7 LC |
6049 | 2020-07-20 Ludovic Courtès <ludo@gnu.org> |
6050 | ||
6051 | * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t' | |
6052 | and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax', | |
6053 | which are deprecated in Guile 3.0. | |
6054 | * configure.ac (try_guile_versions): Add "guile-3.0". | |
6055 | * configure (try_guile_versions): Regenerate. | |
6056 | * NEWS: Update entry. | |
6057 | ||
68cf161c LC |
6058 | 2020-07-20 Ludovic Courtès <ludo@gnu.org> |
6059 | Doug Evans <dje@google.com> | |
6060 | ||
6061 | PR gdb/21104 | |
6062 | * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro. | |
6063 | (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if | |
6064 | USING_GUILE_BEFORE_2_2. | |
6065 | (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]: | |
6066 | Change type to 'scm_t_port_type *'. | |
6067 | (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable. | |
6068 | (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream' | |
6069 | parameter and honor it. Update callers. | |
6070 | (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function. | |
6071 | (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New | |
6072 | functions. | |
6073 | (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if | |
6074 | USING_GUILE_BEFORE_2_2. | |
6075 | (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use | |
6076 | 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'. | |
6077 | (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function. | |
6078 | (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP' | |
6079 | and 'SCM_PORT_TYPE'. | |
6080 | (gdbscm_memory_port_end_input, gdbscm_memory_port_seek) | |
6081 | (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2. | |
6082 | (gdbscm_memory_port_read, gdbscm_memory_port_write) | |
6083 | (gdbscm_memory_port_seek, gdbscm_memory_port_close) | |
6084 | [!USING_GUILE_BEFORE_2_2]: New functions. | |
6085 | (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'. | |
6086 | (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use | |
6087 | 'gdbscm_memory_port_read'. | |
6088 | Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and | |
6089 | 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2. | |
6090 | (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New | |
6091 | function. | |
6092 | (ioscm_init_memory_port): Remove. | |
6093 | (ioscm_init_memory_port_stream): New function | |
6094 | (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New | |
6095 | function. | |
6096 | (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]: | |
6097 | Return scm_from_uint (0). | |
6098 | (gdbscm_set_memory_port_read_buffer_size_x) | |
6099 | [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'. | |
6100 | (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]: | |
6101 | Return scm_from_uint (0). | |
6102 | (gdbscm_set_memory_port_write_buffer_size_x) | |
6103 | [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'. | |
6104 | * configure.ac (try_guile_versions): Add "guile-2.2". | |
6105 | * configure: Regenerate. | |
6106 | * NEWS: Add entry. | |
6107 | ||
aee91db3 TT |
6108 | 2020-07-18 Tom Tromey <tom@tromey.com> |
6109 | ||
6110 | * linux-nat.c (linux_multi_process): Remove. | |
6111 | (linux_nat_target::supports_multi_process): Return true. | |
6112 | ||
0e267416 AB |
6113 | 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com> |
6114 | ||
6115 | * arch/riscv.c (riscv_tdesc_cache): Change map type. | |
6116 | (riscv_lookup_target_description): Return pointer out of | |
6117 | unique_ptr. | |
6118 | * target-descriptions.c (allocate_target_description): Add | |
6119 | comment. | |
6120 | (target_desc_deleter::operator()): Likewise. | |
6121 | * target-descriptions.h (struct target_desc_deleter): Moved to | |
6122 | gdbsupport/tdesc.h. | |
6123 | (target_desc_up): Likewise. | |
6124 | ||
f80c8ec4 TT |
6125 | 2020-07-17 Tom Tromey <tromey@adacore.com> |
6126 | ||
6127 | * linux-nat.c (linux_nat_target::supports_non_stop) | |
6128 | (linux_nat_target::always_non_stop_p): Use "true". | |
6129 | (linux_nat_target::supports_disable_randomization): Use "true" and | |
6130 | "false". | |
6131 | ||
d0ce17d8 CT |
6132 | 2020-07-16 Caroline Tice <cmtice@google.com> |
6133 | ||
6134 | * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition. | |
6135 | (RNGLIST_HEADER_SIZE64): New constant definition. | |
6136 | (struct dwop_section_names): Add rnglists_dwo. | |
6137 | (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo. | |
6138 | (struct loclist_header): Rename to 'loclists_rnglists_header'. | |
6139 | (struct dwo_sections): Add rnglists field. | |
6140 | (read_attribut_reprocess): Add tag parameter. | |
6141 | (dwarf2_ranges_read): Add tag parameter & remove forward function decl. | |
6142 | (cu_debug_rnglists_section): New function (decl & definition). | |
6143 | (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section. | |
6144 | (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of | |
6145 | die whose range is being checked; get rnglist section from | |
6146 | cu_debug_rnglists_section, to get from either objfile or dwo file as | |
6147 | appropriate. Add cases for DW_RLE_base_addressx, | |
6148 | DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add | |
6149 | the base address to DW_RLE_offset_pairs (not to all ranges), moving | |
6150 | test inside if-condition and updating complaint message. | |
6151 | (dwarf2_ranges_process): Add dwarf tag parameter and pass it to | |
6152 | dwarf2_rnglists_process. | |
6153 | (dwarf2_ranges_read): Add dwarf tag parameter and pass it to | |
6154 | dwarf2_ranges_process. | |
6155 | (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting | |
6156 | need_ranges_base and update comment appropriately. Also pass die tag | |
6157 | to dwarf2_ranges_read. | |
6158 | (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting | |
6159 | need_ranges_base and update comment appropriately. Also pass die tag | |
6160 | to dwarf2_ranges_process. | |
6161 | (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to | |
6162 | cu->ranges_base. Also pass die tag to read_attribute_reprocess. | |
6163 | (partial_die_info::read): Check for DW_FORM_rnglistx when setting | |
6164 | need_ranges_base and update comment appropriately. Also pass die tag | |
6165 | to read_attribute_reprocess and dwarf2_ranges_read. | |
6166 | (read_loclist_header): Rename function to read_loclists_rnglists_header, | |
6167 | and update function comment appropriately. | |
6168 | (read_loclist_index): Call read_loclists_rnglists_header instead of | |
6169 | read_loclist_header. | |
6170 | (read_rnglist_index): New function. | |
6171 | (read_attribute_reprocess): Add tag parameter. Add code for | |
6172 | DW_FORM_rnglistx, passing tag to read_rnglist_index. | |
6173 | (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess. | |
6174 | ||
3dcc261c AB |
6175 | 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com> |
6176 | ||
6177 | * f-typeprint.c (f_type_print_base): Allow for dynamic types not | |
6178 | being resolved. | |
6179 | ||
ccb9eba6 AB |
6180 | 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com> |
6181 | ||
6182 | * arch-utils.c (show_architecture): Update formatting of messages. | |
6183 | ||
cf88be68 SM |
6184 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
6185 | ||
6186 | * gdbtypes.h (struct type) <bounds>: Handle array and string | |
6187 | types. | |
6188 | * ada-lang.c (assign_aggregate): Use type::bounds on | |
6189 | array/string type. | |
6190 | * c-typeprint.c (c_type_print_varspec_suffix): Likewise. | |
6191 | * c-varobj.c (c_number_of_children): Likewise. | |
6192 | (c_describe_child): Likewise. | |
6193 | * eval.c (evaluate_subexp_for_sizeof): Likewise. | |
6194 | * f-typeprint.c (f_type_print_varspec_suffix): Likewise. | |
6195 | (f_type_print_base): Likewise. | |
6196 | * f-valprint.c (f77_array_offset_tbl): Likewise. | |
6197 | (f77_get_upperbound): Likewise. | |
6198 | (f77_print_array_1): Likewise. | |
6199 | * guile/scm-type.c (gdbscm_type_range): Likewise. | |
6200 | * m2-typeprint.c (m2_array): Likewise. | |
6201 | (m2_is_long_set_of_type): Likewise. | |
6202 | * m2-valprint.c (get_long_set_bounds): Likewise. | |
6203 | * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise. | |
6204 | * python/py-type.c (typy_range): Likewise. | |
6205 | * rust-lang.c (rust_internal_print_type): Likewise. | |
6206 | * type-stack.c (type_stack::follow_types): Likewise. | |
6207 | * valarith.c (value_subscripted_rvalue): Likewise. | |
6208 | * valops.c (value_cast): Likewise. | |
6209 | ||
509971ae SM |
6210 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
6211 | ||
6212 | * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all | |
6213 | callers to use the equivalent accessor methods. | |
6214 | ||
107406b7 SM |
6215 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
6216 | ||
6217 | * gdbtypes.h (struct range_bounds) <bit_stride>: New method. | |
6218 | (struct type) <bit_stride>: New method. | |
6219 | (TYPE_BIT_STRIDE): Remove. | |
6220 | * gdbtypes.c (update_static_array_size): Use type::bit_stride. | |
6221 | ||
bb789949 SM |
6222 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
6223 | ||
6224 | * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE, | |
6225 | TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all | |
6226 | callers to use the equivalent accessor methods instead. | |
6227 | ||
39498edb SM |
6228 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
6229 | ||
6230 | * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED, | |
6231 | TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all | |
6232 | callers to use the equivalent accessor methods instead. | |
6233 | ||
3b606f38 SM |
6234 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
6235 | ||
6236 | * gdbtypes.h (TYPE_LOW_BOUND_KIND, | |
6237 | TYPE_HIGH_BOUND_KIND): Remove. Update all callers | |
6238 | to use dynamic_prop::kind. | |
6239 | ||
064d9cb9 SM |
6240 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
6241 | ||
6242 | * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED, | |
6243 | TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers | |
6244 | to get the bound property's kind and check against | |
6245 | PROP_UNDEFINED. | |
6246 | ||
5537ddd0 SM |
6247 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
6248 | ||
6249 | * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update | |
6250 | all callers to use type::range_bounds followed by | |
6251 | dynamic_prop::{low,high}. | |
6252 | ||
8c2e4e06 SM |
6253 | 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca> |
6254 | ||
6255 | * gdbtypes.h (struct dynamic_prop) <kind, set_undefined, | |
6256 | const_val, set_const_val, baton, set_locexpr, set_loclist, | |
6257 | set_addr_offset, variant_parts, set_variant_parts, | |
6258 | original_type, set_original_type>: New methods. | |
6259 | <kind>: Rename to... | |
6260 | <m_kind>: ... this. Update all users to use the new methods | |
6261 | instead. | |
6262 | <data>: Rename to... | |
6263 | <m_data>: ... this. Update all users to use the new methods | |
6264 | instead. | |
6265 | ||
7c6f2712 SM |
6266 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
6267 | ||
6268 | * gdbtypes.c (get_discrete_bounds): Return failure if | |
6269 | the range type's bounds are not both defined and constant | |
6270 | values. | |
6271 | (get_array_bounds): Update comment. Remove undefined bound check. | |
6272 | ||
599088e3 SM |
6273 | 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca> |
6274 | ||
6275 | * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use | |
6276 | the type::bounds method directly. | |
6277 | ||
c4dfcb36 SM |
6278 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
6279 | ||
6280 | * gdbtypes.h (struct type) <bounds, set_bounds>: New methods. | |
6281 | (TYPE_RANGE_DATA): Use type::bounds. Change all uses that | |
6282 | are used to set the range type's bounds to use set_bounds. | |
6283 | ||
0a278aa7 PW |
6284 | 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6285 | ||
6286 | * exec.c (_initialize_exec): Update exec-file-mismatch help. | |
6287 | ||
cce20f10 PA |
6288 | 2020-07-10 Pedro Alves <pedro@palves.net> |
6289 | ||
6290 | * gdbthread.h (inferior_ref): Define. | |
6291 | (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref. | |
6292 | (scoped_restore_current_thread) <m_inf>: Now an inferior_ref. | |
6293 | * thread.c | |
6294 | (scoped_restore_current_thread::restore): | |
6295 | Adjust to gdb::ref_ptr. | |
6296 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
6297 | Remove manual decref handling. | |
6298 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
6299 | Adjust to use | |
6300 | inferior_ref::new_reference/thread_info_ref::new_reference. | |
6301 | Incref the thread before calling get_frame_id instead of after. | |
6302 | Let TARGET_CLOSE_ERROR propagate. | |
6303 | ||
6d7aa592 PA |
6304 | 2020-07-10 Pedro Alves <pedro@palves.net> |
6305 | ||
6306 | * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow | |
6307 | NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR / | |
6308 | NOT_AVAILABLE_ERROR. | |
6309 | * value.c (value_optimized_out): Only swallow MEMORY_ERROR / | |
6310 | OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR. | |
6311 | ||
b3e3a4c1 SM |
6312 | 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca> |
6313 | Pedro Alves <pedro@palves.net> | |
6314 | ||
6315 | PR gdb/26199 | |
6316 | * infrun.c (threads_are_resumed_pending_p): Delete. | |
6317 | (do_target_wait): Remove threads_are_executing and | |
6318 | threads_are_resumed_pending_p checks from the inferior_matches | |
6319 | lambda. Update comments. | |
6320 | ||
d6cc5d98 PA |
6321 | 2020-07-10 Pedro Alves <pedro@palves.net> |
6322 | ||
6323 | PR gdb/26199 | |
6324 | * infrun.c (handle_no_resumed): Transfer terminal to inferior with | |
6325 | executing threads. | |
6326 | ||
7d3badc6 PA |
6327 | 2020-07-10 Pedro Alves <pedro@palves.net> |
6328 | ||
6329 | PR gdb/26199 | |
6330 | * infrun.c (handle_no_resumed): Handle multiple targets. | |
6331 | ||
42bd97a6 PA |
6332 | 2020-07-10 Pedro Alves <pedro@palves.net> |
6333 | ||
6334 | PR gdb/26199 | |
6335 | * infrun.c (prepare_to_wait): Check target_can_async_p instead of | |
6336 | target_is_async_p. | |
6337 | ||
43667cc6 PA |
6338 | 2020-07-10 Pedro Alves <pedro@palves.net> |
6339 | ||
6340 | PR gdb/26199 | |
6341 | * target.c (target_pass_ctrlc): Look at the inferior's non-exited | |
6342 | threads, not all threads. | |
6343 | ||
96118d11 PA |
6344 | 2020-07-10 Pedro Alves <pedro@palves.net> |
6345 | ||
6346 | PR gdb/26199 | |
6347 | * remote.c (remote_target::open_1): Pass remote target pointer as | |
6348 | data to create_async_event_handler. | |
6349 | (remote_async_inferior_event_handler): Mark async event handler | |
6350 | before returning if the remote target still has either pending | |
6351 | events or unacknowledged notifications. | |
6352 | ||
54904d81 JB |
6353 | 2020-07-10 John Baldwin <jhb@FreeBSD.org> |
6354 | ||
6355 | * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New | |
6356 | declaration. | |
6357 | * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New | |
6358 | function. | |
6359 | ||
f37e5866 JB |
6360 | 2020-07-09 John Baldwin <jhb@FreeBSD.org> |
6361 | ||
6362 | * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against | |
6363 | inferior_ptid. | |
6364 | ||
fc238d4a JB |
6365 | 2020-07-09 John Baldwin <jhb@FreeBSD.org> |
6366 | ||
6367 | * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC, | |
6368 | AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV, | |
6369 | AT_FREEBSD_PS_STRINGS. | |
6370 | ||
6e2469ff HD |
6371 | 2020-07-08 Hannes Domani <ssbssa@yahoo.de> |
6372 | ||
6373 | * auto-load.c (auto_load_objfile_script_1): Convert drive part | |
6374 | of debugfile path on Windows. | |
6375 | ||
d1076c41 JB |
6376 | 2020-07-08 John Baldwin <jhb@FreeBSD.org> |
6377 | ||
6378 | * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd' | |
6379 | argument to 'data'. | |
6380 | ||
15f3b077 TT |
6381 | 2020-07-08 Tom Tromey <tromey@adacore.com> |
6382 | ||
6383 | * ada-lang.c (ada_exception_message_1): Use read_memory. | |
6384 | ||
9fc501fd AB |
6385 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
6386 | ||
6387 | PR python/22748 | |
6388 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove | |
6389 | special handling for inline frames. | |
6390 | * findvar.c (value_of_register_lazy): Skip inline frames when | |
6391 | creating lazy register values. | |
6392 | * frame.c (frame_id_computed_p): Delete definition. | |
6393 | * frame.h (frame_id_computed_p): Delete declaration. | |
6394 | ||
64cb3757 AB |
6395 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
6396 | ||
6397 | * NEWS: Mention additions to Python API. | |
6398 | * python/py-arch.c (archpy_register_groups): New function. | |
6399 | (arch_object_methods): Add 'register_groups' method. | |
6400 | * python/py-registers.c (reggroup_iterator_object): New struct. | |
6401 | (reggroup_object): New struct. | |
6402 | (gdbpy_new_reggroup): New function. | |
6403 | (gdbpy_reggroup_to_string): New function. | |
6404 | (gdbpy_reggroup_name): New function. | |
6405 | (gdbpy_reggroup_iter): New function. | |
6406 | (gdbpy_reggroup_iter_next): New function. | |
6407 | (gdbpy_new_reggroup_iterator): New function | |
6408 | (gdbpy_initialize_registers): Register new types. | |
6409 | (reggroup_iterator_object_type): Define new Python type. | |
6410 | (gdbpy_reggroup_getset): New static global. | |
6411 | (reggroup_object_type): Define new Python type. | |
6412 | * python/python-internal.h | |
6413 | ||
0f767f94 AB |
6414 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
6415 | ||
6416 | * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c | |
6417 | * python/py-arch.c (archpy_registers): New function. | |
6418 | (arch_object_methods): Add 'registers' method. | |
6419 | * python/py-registers.c: New file. | |
6420 | * python/python-internal.h | |
6421 | (gdbpy_new_register_descriptor_iterator): Declare. | |
6422 | (gdbpy_initialize_registers): Declare. | |
6423 | * python/python.c (do_start_initialization): Call | |
6424 | gdbpy_initialize_registers. | |
6425 | * NEWS: Mention additions to the Python API. | |
6426 | ||
87dbc774 AB |
6427 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
6428 | ||
6429 | * NEWS: Mention new Python API method. | |
6430 | * python/py-unwind.c (pending_framepy_architecture): New function. | |
6431 | (pending_frame_object_methods): Add architecture method. | |
6432 | ||
3bc98c0c AB |
6433 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
6434 | ||
6435 | * gdbarch.c: Regenerate. | |
6436 | * gdbarch.h: Regenerate. | |
6437 | * gdbarch.sh (deprecated_set_gdbarch_data): Delete. | |
6438 | (gdbarch_data): Use internal_error for the case where | |
6439 | deprecated_set_gdbarch_data was originally needed. | |
6440 | * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters, | |
6441 | and use passed in obstack. | |
6442 | (libunwind_frame_set_descr): Should no longer get back NULL from | |
6443 | gdbarch_data. | |
6444 | (_initialize_libunwind_frame): Register as a pre-init gdbarch data | |
6445 | type. | |
6446 | * user-regs.c (user_regs_init): Update parameters, and use passed | |
6447 | in obstack. | |
6448 | (user_reg_add): Should no longer get back NULL from gdbarch_data. | |
6449 | (_initialize_user_regs): Register as a pre-init gdbarch data type. | |
6450 | ||
d8cc8af6 TV |
6451 | 2020-07-06 Tom de Vries <tdevries@suse.de> |
6452 | ||
6453 | * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle | |
6454 | End-Of-Sequence in lte_is_less_than. | |
6455 | * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313 | |
6456 | "gdb: Don't reorder line table entries too much when sorting". | |
6457 | ||
947f7597 TV |
6458 | 2020-07-06 Tom de Vries <tdevries@suse.de> |
6459 | ||
6460 | PR tui/26205 | |
6461 | * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name. | |
6462 | ||
1e7c1b22 TV |
6463 | 2020-07-05 Tom de Vries <tdevries@suse.de> |
6464 | ||
6465 | PR build/26187 | |
6466 | * inferior.h (struct infcall_suspend_state_deleter): If available, use | |
6467 | std::uncaught_exceptions instead of deprecated | |
6468 | std::uncaught_exception. | |
6469 | ||
a36158ec SM |
6470 | 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca> |
6471 | ||
6472 | * macroexp.h (macro_stringify): Return | |
6473 | gdb::unique_xmalloc_ptr<char>. | |
6474 | * macroexp.c (macro_stringify): Likewise. | |
6475 | * macrotab.c (fixup_definition): Update. | |
6476 | ||
14d960c8 SM |
6477 | 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca> |
6478 | ||
6479 | * c-exp.y (scan_macro_expansion): Don't free `expansion`. | |
6480 | (lex_one_token): Update. | |
6481 | * macroexp.c (struct macro_buffer) <release>: Return | |
6482 | gdb::unique_xmalloc_ptr<char>. | |
6483 | (macro_stringify): Update. | |
6484 | (macro_expand): Update. | |
6485 | (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>. | |
6486 | * macroexp.h (macro_expand_next): Likewise. | |
6487 | ||
211d5b1c SM |
6488 | 2020-07-02 Simon Marchi <simon.marchi@efficios.com> |
6489 | ||
6490 | * macroexp.h (macro_lookup_ftype): Remove. | |
6491 | (macro_expand, macro_expand_once, macro_expand_next): Remove | |
6492 | lookup function parameters, add scope parameter. | |
6493 | * macroexp.c (scan, substitute_args, expand, maybe_expand, | |
6494 | macro_expand, macro_expand_once, macro_expand_next): Likewise. | |
6495 | * macroscope.h (standard_macro_lookup): Change parameter type | |
6496 | to macro_scope. | |
6497 | * macroscope.c (standard_macro_lookup): Likewise. | |
6498 | * c-exp.y (lex_one_token): Update. | |
6499 | * macrocmd.c (macro_expand_command): Likewise. | |
6500 | (macro_expand_once_command): Likewise. | |
6501 | ||
b1a35af2 SM |
6502 | 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca> |
6503 | ||
6504 | * inf-loop.c (inferior_event_handler): Remove client_data param. | |
6505 | * inf-loop.h (inferior_event_handler): Likewise. | |
6506 | * infcmd.c (step_1): Adjust. | |
6507 | * infrun.c (proceed): Adjust. | |
6508 | (fetch_inferior_event): Remove client_data param. | |
6509 | (infrun_async_inferior_event_handler): Adjust. | |
6510 | * infrun.h (fetch_inferior_event): Remove `void *` param. | |
6511 | * linux-nat.c (handle_target_event): Adjust. | |
6512 | * record-btrace.c (record_btrace_handle_async_inferior_event): | |
6513 | Adjust. | |
6514 | * record-full.c (record_full_async_inferior_event_handler): | |
6515 | Adjust. | |
6516 | * remote.c (remote_async_inferior_event_handler): Adjust. | |
6517 | ||
1cdf9e33 TT |
6518 | 2020-07-01 Tom Tromey <tom@tromey.com> |
6519 | ||
6520 | * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual. | |
6521 | * tui/tui-stack.h (struct tui_locator_window) <name>: New method. | |
6522 | ||
32c1e210 TT |
6523 | 2020-07-01 Tom Tromey <tom@tromey.com> |
6524 | ||
6525 | * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from | |
6526 | tui_gen_win_info. | |
6527 | (tui_win_info::make_window): Merge with | |
6528 | tui_gen_win_info::make_window. | |
6529 | (tui_win_info::make_visible): Move from tui_gen_win_info. | |
6530 | * tui/tui-win.c (tui_win_info::max_width): Move from | |
6531 | tui_gen_win_info. | |
6532 | * tui/tui-layout.h (class tui_layout_window) <m_window>: Change | |
6533 | type. | |
6534 | <window_factory>: Likewise. | |
6535 | * tui/tui-layout.c (tui_win_info::resize): Move from | |
6536 | tui_gen_win_info. | |
6537 | (make_standard_window): Change return type. | |
6538 | (get_locator_window, tui_get_window_by_name): Likewise. | |
6539 | (tui_layout_window::apply): Remove a cast. | |
6540 | * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier. | |
6541 | (struct tui_win_info): Merge with tui_gen_win_info. | |
6542 | (struct tui_gen_win_info): Remove. | |
6543 | ||
a30cb6da TT |
6544 | 2020-07-01 Tom Tromey <tom@tromey.com> |
6545 | ||
6546 | * tui/tui-stack.h (struct tui_locator_window): Derive from | |
6547 | tui_win_info. | |
6548 | <do_scroll_horizontal, do_scroll_vertical>: New methods. | |
6549 | <can_box>: New method. | |
6550 | ||
1eb2161f TT |
6551 | 2020-07-01 Tom Tromey <tom@tromey.com> |
6552 | ||
6553 | * tui/tui-stack.h (struct tui_locator_window): Remove body. | |
6554 | ||
7134f2eb TT |
6555 | 2020-07-01 Tom Tromey <tom@tromey.com> |
6556 | ||
6557 | * tui/tui-regs.c (tui_data_window::display_registers_from) | |
6558 | (tui_data_window::display_registers_from) | |
6559 | (tui_data_window::first_data_item_displayed) | |
6560 | (tui_data_window::delete_data_content_windows): Update. | |
6561 | (tui_data_window::refresh_window, tui_data_window::no_refresh): | |
6562 | Remove. | |
6563 | (tui_data_window::check_register_values): Update. | |
6564 | (tui_data_item_window::rerender): Add parameters. Update. | |
6565 | (tui_data_item_window::refresh_window): Remove. | |
6566 | * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer | |
6567 | virtual. | |
6568 | * tui/tui-regs.h (struct tui_data_item_window): Don't derive from | |
6569 | tui_gen_win_info. | |
6570 | <refresh_window, max_height, min_height>: Remove. | |
6571 | <rerender>: Add parameters. | |
6572 | <x, y, visible>: New members. | |
6573 | (struct tui_data_window) <refresh_window, no_refresh>: Remove. | |
6574 | <m_item_width>: New member. | |
6575 | ||
22b7b041 TT |
6576 | 2020-07-01 Tom Tromey <tom@tromey.com> |
6577 | ||
6578 | * tui/tui-regs.c (tui_data_window::show_register_group) | |
6579 | (tui_data_window::check_register_values): Update. | |
6580 | * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename | |
6581 | from item_no. | |
6582 | ||
c9753adb TT |
6583 | 2020-07-01 Tom Tromey <tom@tromey.com> |
6584 | ||
6585 | * tui/tui-regs.c (tui_data_window::show_register_group): Remove | |
6586 | useless "if". | |
6587 | ||
9ab26b4a TT |
6588 | 2020-07-01 Tom Tromey <tom@tromey.com> |
6589 | ||
6590 | * tui/tui-regs.c (tui_data_window::show_register_group): Update. | |
6591 | * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove. | |
6592 | ||
e555083f TT |
6593 | 2020-07-01 Tom Tromey <tom@tromey.com> |
6594 | ||
6595 | * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h | |
6596 | * tui/tui-winsource.h (enum tui_line_or_address_kind) | |
6597 | (struct tui_line_or_address): Move from tui-data.h. | |
6598 | * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h. | |
6599 | * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c. | |
6600 | (tui_cmd_window, tui_source_window_base, tui_source_window) | |
6601 | (tui_disasm_window): Don't declare. | |
6602 | (enum tui_line_or_address_kind, struct tui_line_or_address): Move | |
6603 | to tui-winsource.h. | |
6604 | (SINGLE_KEY): Move to tui-stack.c. | |
6605 | ||
7a02bab7 TT |
6606 | 2020-07-01 Tom Tromey <tom@tromey.com> |
6607 | ||
6608 | * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a | |
6609 | std::string. | |
6610 | * tui/tui-regs.c (class tab_expansion_file): New. | |
6611 | (tab_expansion_file::write): New method. | |
6612 | (tui_register_format): Change return type. Use | |
6613 | tab_expansion_file. | |
6614 | (tui_get_register, tui_data_window::display_registers_from) | |
6615 | (tui_data_item_window::rerender): Update. | |
6616 | * tui/tui-io.h (tui_expand_tabs): Don't declare. | |
6617 | * tui/tui-io.c (tui_expand_tabs): Remove. | |
6618 | ||
ea68593b TT |
6619 | 2020-07-01 Tom Tromey <tom@tromey.com> |
6620 | ||
6621 | * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum. | |
6622 | ||
a8caed5d FS |
6623 | 2020-07-01 Fangrui Song <maskray@google.com> |
6624 | ||
6625 | * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1. | |
6626 | ||
9cdf9820 AKS |
6627 | 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
6628 | ||
6629 | * dwarf2/read.c (set_die_type): Removed conditions to restrict | |
6630 | forms for DW_AT_associated and DW_AT_allocated attributes, | |
6631 | which is already checked in function attr_to_dynamic_prop. | |
6632 | ||
a1520ad8 TT |
6633 | 2020-06-30 Tom Tromey <tromey@adacore.com> |
6634 | ||
6635 | * dwarf2/read.c (quirk_rust_enum): Correctly call | |
6636 | alloc_rust_variant for default-less enum. | |
6637 | ||
5ac58899 TT |
6638 | 2020-06-30 Tom Tromey <tromey@adacore.com> |
6639 | ||
6640 | PR build/26183: | |
6641 | * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use | |
6642 | gdb::to_string. | |
6643 | ||
19b187a9 SM |
6644 | 2020-06-29 Simon Marchi <simon.marchi@efficios.com> |
6645 | ||
6646 | * gdbarch.sh (displaced_step_copy_insn): Update doc. | |
6647 | * gdbarch.h: Re-generate. | |
6648 | ||
cd4c4c07 TT |
6649 | 2020-06-28 Tom Tromey <tom@tromey.com> |
6650 | ||
6651 | * command.h (cmd_types): Remove. | |
6652 | (cmd_type): Don't declare. | |
6653 | * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a | |
6654 | typedef. | |
6655 | * cli/cli-cmds.c (setting_cmd): Use cmd->type directly. | |
6656 | * cli/cli-decode.c (cmd_type): Remove. | |
6657 | ||
05779d57 PA |
6658 | 2020-06-27 Pedro Alves <palves@redhat.com> |
6659 | ||
6660 | * fork-child.c (prefork_hook): Adjust. | |
6661 | * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal): | |
6662 | Delete. | |
6663 | (set_inferior_tty_command, show_inferior_tty_command): Adjust. | |
6664 | * inferior.c (inferior::set_tty, inferior::tty): New methods. | |
6665 | * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal): | |
6666 | Remove declarations. | |
6667 | (struct inferior) <set_tty, tty>: New methods. | |
6668 | (struct inferior) <terminal>: Rename to ... | |
6669 | (struct inferior) <m_terminal>: ... this and make private. | |
6670 | * main.c (captured_main_1): Adjust. | |
6671 | * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust. | |
6672 | (mi_cmd_inferior_tty_show): Adjust. | |
6673 | * nto-procfs.c (nto_procfs_target::create_inferior): Adjust. | |
6674 | * windows-nat.c (windows_nat_target::create_inferior): Adjust. | |
6675 | ||
1776e3e5 NA |
6676 | 2020-06-26 Nick Alcock <nick.alcock@oracle.com> |
6677 | ||
6678 | * configure.ac: Add --enable-libctf: handle --disable-static | |
6679 | properly. | |
6680 | * acinclude.m4: sinclude ../config/enable.m4. | |
6681 | * Makefile.in (aclocal_m4_deps): Adjust accordingly. | |
6682 | (LIBCTF): Substitute in. | |
6683 | (CTF_DEPS): New, likewise. | |
6684 | (CLIBS): libctf needs symbols from libbfd: move earlier. | |
6685 | (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath | |
6686 | flags. | |
6687 | * ctfread.c: Surround in ENABLE_LIBCTF. | |
6688 | (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub. | |
6689 | * configure: Regenerate. | |
6690 | * config.in: Likewise. | |
6691 | ||
58373b80 SM |
6692 | 2020-06-25 Simon Marchi <simon.marchi@efficios.com> |
6693 | ||
6694 | * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup. | |
6695 | ||
277474ee SM |
6696 | 2020-06-25 Simon Marchi <simon.marchi@efficios.com> |
6697 | ||
6698 | * inferior.h (struct inferior) <terminal>: Change type to | |
6699 | gdb::unique_xmalloc_ptr<char>. | |
6700 | * inferior.c (inferior::~inferior): Don't free inf->terminal. | |
6701 | * infcmd.c (set_inferior_io_terminal): Don't free terminal | |
6702 | field, adjust to unique pointer. | |
6703 | (get_inferior_io_terminal): Adjust to unique pointer. | |
6704 | ||
6d74da72 AB |
6705 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
6706 | ||
6707 | * riscv-tdep.c (riscv_print_registers_info): Loop over all | |
6708 | registers, not just the known core set of registers. | |
6709 | ||
2e52d038 AB |
6710 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
6711 | ||
6712 | * riscv-tdep.c (riscv_register_name): Return NULL for duplicate | |
6713 | fflags, frm, and fcsr registers. | |
6714 | (riscv_register_reggroup_p): Remove unknown CSRs from save and | |
6715 | restore groups. | |
6716 | (riscv_tdesc_unknown_reg): New function. | |
6717 | (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to | |
6718 | tdesc_use_registers. | |
6719 | * riscv-tdep.h (struct gdbarch_tdep): Add | |
6720 | unknown_csrs_first_regnum, unknown_csrs_count, | |
6721 | duplicate_fflags_regnum, duplicate_frm_regnum, and | |
6722 | duplicate_fcsr_regnum fields. | |
6723 | ||
be64fd07 AB |
6724 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
6725 | ||
6726 | * target-descriptions.c (tdesc_use_registers): Add new parameter a | |
6727 | callback, use the callback (when not null) to help number unknown | |
6728 | registers. | |
6729 | * target-descriptions.h (tdesc_unknown_register_ftype): New typedef. | |
6730 | (tdesc_use_registers): Add extra parameter to declaration. | |
6731 | ||
3b9fce96 AB |
6732 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
6733 | ||
6734 | * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later | |
6735 | in the file. | |
6736 | (class riscv_pending_register_alias): Likewise. | |
6737 | (riscv_register_feature::register_info): Change 'required_p' field | |
6738 | to 'required', and change its type. Add 'check' member function. | |
6739 | (riscv_register_feature::register_info::check): Define new member | |
6740 | function. | |
6741 | (riscv_xreg_feature): Change initialisation of 'required' field. | |
6742 | (riscv_freg_feature): Likewise. | |
6743 | (riscv_virtual_feature): Likewise. | |
6744 | (riscv_csr_feature): Likewise. | |
6745 | (riscv_check_tdesc_feature): Take extra parameter, the csr | |
6746 | tdesc_feature, rewrite the function to use the new | |
6747 | riscv_register_feature::register_info::check function. | |
6748 | (riscv_gdbarch_init): Pass the csr tdesc_feature where needed. | |
6749 | ||
865bad26 AB |
6750 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
6751 | ||
6752 | * features/Makefile: Remove all references to the deleted files | |
6753 | below. | |
6754 | * features/riscv/32bit-csr.c: Deleted. | |
6755 | * features/riscv/32bit-csr.xml: Deleted. | |
6756 | * features/riscv/64bit-csr.c: Deleted. | |
6757 | * features/riscv/64bit-csr.xml: Deleted. | |
6758 | * features/riscv/rebuild-csr-xml.sh: Deleted. | |
6759 | ||
ed69cbc8 AB |
6760 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
6761 | ||
6762 | * riscv-tdep.c (struct riscv_register_feature::register_info): Fix | |
6763 | whitespace error for declaration of names member variable. | |
6764 | (struct riscv_register_feature): Add new prefer_first_name member | |
6765 | variable, and fix whitespace error in declaration of registers. | |
6766 | (riscv_xreg_feature): Initialize prefer_first_name field. | |
6767 | (riscv_freg_feature): Likewise. | |
6768 | (riscv_virtual_feature): Likewise. | |
6769 | (riscv_csr_feature): Likewise. | |
6770 | (riscv_register_name): Expand on comments. Remove register name | |
6771 | modifications for CSR and virtual registers. | |
6772 | ||
4445e8f5 AB |
6773 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
6774 | ||
6775 | * riscv-tdep.c (struct riscv_register_feature): Fix whitespace | |
6776 | errors. | |
6777 | ||
767a879e AB |
6778 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
6779 | ||
6780 | * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from | |
6781 | riscv-opc.h. | |
6782 | (class riscv_pending_register_alias): New class. | |
6783 | (riscv_check_tdesc_feature): Take vector of pending aliases and | |
6784 | populate it as appropriate. | |
6785 | (riscv_setup_register_aliases): Delete. | |
6786 | (riscv_gdbarch_init): Create vector of pending aliases and pass it | |
6787 | to riscv_check_tdesc_feature in all cases. Use the vector to | |
6788 | create the register aliases. | |
6789 | ||
bb6e55f3 RO |
6790 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
6791 | ||
6792 | * sol2-tdep.c (sol2_static_transform_name): Remove. | |
6793 | (sol2_init_abi): Don't register it. | |
6794 | * gdbarch.sh (static_transform_name): Remove. | |
6795 | * gdbarch.c, gdbarch.h: Regenerate. | |
6796 | ||
6797 | * dbxread.c (read_dbx_symtab) <'S'>: Remove call to | |
6798 | gdbarch_static_transform_name. | |
6799 | * mdebugread.c (parse_partial_symbols) <'S'>: Likewise. | |
6800 | * stabsread.c (define_symbol) <'X'>: Remove. | |
6801 | (define_symbol) <'S'>: Remove gdbarch_static_transform_name | |
6802 | handling. | |
6803 | <'V'>: Likewise. | |
6804 | * xcoffread.c (scan_xcoff_symtab): Remove gdbarch. | |
6805 | <'S'>: Remove call to gdbarch_static_transform_name. | |
6806 | ||
c6d36836 RO |
6807 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
6808 | ||
6809 | * procfs.c (procfs_pre_trace): New function. | |
6810 | (procfs_target::create_inferior): Pass it to fork_inferior. | |
6811 | ||
a7e6196b RO |
6812 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
6813 | ||
6814 | * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove | |
6815 | sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o. | |
6816 | <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o, | |
6817 | sol2-tdep.o, sparc-sol2-tdep.o. | |
6818 | * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static. | |
6819 | * sparc-tdep.h (sparc32_sol2_init_abi): Remove. | |
6820 | * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static. | |
6821 | * sparc64-tdep.h (sparc64_sol2_init_abi): Remove. | |
6822 | ||
d412e696 RO |
6823 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
6824 | ||
6825 | * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove. | |
6826 | (amd64_sol2_init_abi): Use sol2_sigtramp_p. | |
6827 | Call sol2_init_abi. | |
6828 | Remove calls to set_gdbarch_skip_solib_resolver, | |
6829 | set_gdbarch_core_pid_to_str. | |
6830 | * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove. | |
6831 | (i386_sol2_static_transform_name): Remove. | |
6832 | (i386_sol2_init_abi): Call sol2_init_abi. | |
6833 | Remove calls to set_gdbarch_sofun_address_maybe_missing, | |
6834 | set_gdbarch_static_transform_name, | |
6835 | set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str. | |
6836 | Use sol2_sigtramp_p. | |
6837 | * sol2-tdep.c (sol2_pc_in_sigtramp): New function. | |
6838 | (sol2_sigtramp_p): New function. | |
6839 | (sol2_static_transform_name): New function. | |
6840 | (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static. | |
6841 | (sol2_init_abi): New function. | |
6842 | * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare. | |
6843 | (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove. | |
6844 | * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove. | |
6845 | (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p. | |
6846 | (sparc_sol2_static_transform_name): Remove. | |
6847 | (sparc32_sol2_init_abi): Call sol2_init_abi. | |
6848 | Remove calls to set_gdbarch_sofun_address_maybe_missing, | |
6849 | set_gdbarch_static_transform_name, | |
6850 | set_gdbarch_skip_solib_resolver, | |
6851 | set_gdbarch_core_pid_to_str. | |
6852 | * sparc-tdep.h (sparc_sol2_pc_in_sigtramp) | |
6853 | (sparc_sol2_static_transform_name): Remove | |
6854 | * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just | |
6855 | call sol2_sigtramp_p. | |
6856 | (sparc64_sol2_init_abi): Call sol2_init_abi. | |
6857 | Remove calls to set_gdbarch_sofun_address_maybe_missing, | |
6858 | set_gdbarch_static_transform_name, | |
6859 | set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str. | |
6860 | ||
a8654e7d PW |
6861 | 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6862 | ||
6863 | * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM. | |
6864 | * exec.c (validate_exec_file): If from_tty, set both | |
6865 | SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM. | |
6866 | * symfile.c (symbol_file_add_with_addrs): if always_confirm | |
6867 | and from_tty, unconditionally ask a confirmation. | |
6868 | ||
caa7fd04 AB |
6869 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
6870 | ||
6871 | * target-descriptions.c (tdesc_architecture_name): Protect against | |
6872 | NULL pointer dereference. | |
6873 | (maint_print_xml_tdesc_cmd): New function. | |
6874 | (_initialize_target_descriptions): Register new 'maint print | |
6875 | xml-tdesc' command and give it the filename completer. | |
6876 | * NEWS: Mention new 'maint print xml-tdesc' command. | |
6877 | ||
fbf42f4e AB |
6878 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
6879 | ||
6880 | * target-descriptions.c (class tdesc_compatible_info): New class. | |
6881 | (struct target_desc): Change type of compatible vector. | |
6882 | (tdesc_compatible_p): Update for change in type of | |
6883 | target_desc::compatible. | |
6884 | (tdesc_compatible_info_list): New function. | |
6885 | (tdesc_compatible_info_arch_name): New function. | |
6886 | (tdesc_add_compatible): Update for change in type of | |
6887 | target_desc::compatible. | |
6888 | (print_c_tdesc::visit_pre): Likewise. | |
6889 | ||
20821f4e AB |
6890 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
6891 | ||
6892 | * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change | |
6893 | whitespace to underscore. | |
6894 | (maint_print_c_tdesc_cmd): Use fake filename for target | |
6895 | descriptions that came from the target. | |
6896 | (_initialize_target_descriptions): Add filename command completion | |
6897 | for 'maint print c-tdesc'. | |
6898 | ||
1fb5ee62 SM |
6899 | 2020-06-23 Simon Marchi <simon.marchi@efficios.com> |
6900 | ||
6901 | * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty | |
6902 | lines. | |
6903 | ||
fc3ecb3e SM |
6904 | 2020-06-23 Simon Marchi <simon.marchi@efficios.com> |
6905 | ||
6906 | * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty | |
6907 | lines. | |
6908 | (dwarf2_find_location_expression): Likewise. | |
6909 | (call_site_parameter_matches): Likewise. | |
6910 | (dwarf2_compile_expr_to_ax): Likewise. | |
6911 | (disassemble_dwarf_expression): Likewise. | |
6912 | (loclist_describe_location): Likewise. | |
6913 | ||
236ef034 PA |
6914 | 2020-06-23 Pedro Alves <palves@redhat.com> |
6915 | ||
6916 | * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or | |
6917 | progspace-and-thread.h. Include scoped-mock-context.h instead. | |
6918 | (register_to_value_test): Use scoped_mock_context. | |
6919 | * regcache.c: Include "scoped-mock-context.h". | |
6920 | (cooked_read_test): Don't error out if a target is already pushed. | |
6921 | Use scoped_mock_context. Adjust. | |
6922 | * scoped-mock-context.h: New file. | |
6923 | ||
39e7ecca AB |
6924 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
6925 | ||
6926 | * ada-lang.c (ada_language_data): Delete la_is_string_type_p | |
6927 | initializer. | |
6928 | (ada_language::is_string_type_p): New member function. | |
6929 | * c-lang.c (c_language_data): Delete la_is_string_type_p | |
6930 | initializer. | |
6931 | (cplus_language_data): Likewise. | |
6932 | (asm_language_data): Likewise. | |
6933 | (minimal_language_data): Likewise. | |
6934 | * d-lang.c (d_language_data): Likewise. | |
6935 | * f-lang.c (f_is_string_type_p): Delete function, implementation | |
6936 | moved to f_language::is_string_type_p. | |
6937 | (f_language_data): Delete la_is_string_type_p initializer. | |
6938 | (f_language::is_string_type_p): New member function, | |
6939 | implementation from f_is_string_type_p. | |
6940 | * go-lang.c (go_is_string_type_p): Delete function, implementation | |
6941 | moved to go_language::is_string_type_p. | |
6942 | (go_language_data): Delete la_is_string_type_p initializer. | |
6943 | (go_language::is_string_type_p): New member function, | |
6944 | implementation from go_is_string_type_p. | |
6945 | * language.c (language_defn::is_string_type_p): Define new member | |
6946 | function. | |
6947 | (default_is_string_type_p): Make static, add comment copied from | |
6948 | header file. | |
6949 | (unknown_language_data): Delete la_is_string_type_p initializer. | |
6950 | (unknown_language::is_string_type_p): New member function. | |
6951 | (auto_language_data): Delete la_is_string_type_p initializer. | |
6952 | (auto_language::is_string_type_p): New member function. | |
6953 | * language.h (language_data): Delete la_is_string_type_p field. | |
6954 | (language_defn::is_string_type_p): Declare new function. | |
6955 | (default_is_string_type_p): Delete desclaration, move comment to | |
6956 | definition. | |
6957 | * m2-lang.c (m2_is_string_type_p): Delete function, implementation | |
6958 | moved to m2_language::is_string_type_p. | |
6959 | (m2_language_data): Delete la_is_string_type_p initializer. | |
6960 | (m2_language::is_string_type_p): New member function, | |
6961 | implementation from m2_is_string_type_p. | |
6962 | * objc-lang.c (objc_language_data): Delete la_is_string_type_p | |
6963 | initializer. | |
6964 | * opencl-lang.c (opencl_language_data): Likewise. | |
6965 | * p-lang.c (pascal_is_string_type_p): Delete function, | |
6966 | implementation moved to pascal_language::is_string_type_p. | |
6967 | (pascal_language_data): Delete la_is_string_type_p initializer. | |
6968 | (pascal_language::is_string_type_p): New member function, | |
6969 | implementation from pascal_is_string_type_p. | |
6970 | * rust-lang.c (rust_is_string_type_p): Delete function, | |
6971 | implementation moved to rust_language::is_string_type_p. | |
6972 | (rust_language_data): Delete la_is_string_type_p initializer. | |
6973 | (rust_language::is_string_type_p): New member function, | |
6974 | implementation from rust_is_string_type_p. | |
6975 | * valprint.c (val_print_scalar_or_string_type_p): Update call to | |
6976 | is_string_type_p. | |
6977 | ||
4ffc13fb AB |
6978 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
6979 | ||
6980 | * ada-lang.c (ada_language_data): Delete la_print_typedef | |
6981 | initializer. | |
6982 | (ada_language::print_typedef): New member function. | |
6983 | * c-lang.c (c_language_data): Delete la_print_typedef initializer. | |
6984 | (cplus_language_data): Likewise. | |
6985 | (asm_language_data): Likewise. | |
6986 | (minimal_language_data): Likewise. | |
6987 | * d-lang.c (d_language_data): Likewise. | |
6988 | * f-lang.c (f_language_data): Likewise. | |
6989 | (f_language::print_typedef): New member function. | |
6990 | * go-lang.c (go_language_data): Delete la_print_typedef | |
6991 | initializer. | |
6992 | * language.c (language_defn::print_typedef): Define member | |
6993 | function. | |
6994 | (unknown_language_data): Delete la_print_typedef initializer. | |
6995 | (unknown_language::print_typedef): New member function. | |
6996 | (auto_language_data): Delete la_print_typedef initializer. | |
6997 | (auto_language::print_typedef): New member function. | |
6998 | * language.h (language_data): Delete la_print_typedef field. | |
6999 | (language_defn::print_typedef): Declare new member function. | |
7000 | (LA_PRINT_TYPEDEF): Update call to print_typedef. | |
7001 | (default_print_typedef): Delete declaration. | |
7002 | * m2-lang.c (m2_language_data): Delete la_print_typedef | |
7003 | initializer. | |
7004 | (m2_language::print_typedef): New member function. | |
7005 | * objc-lang.c (objc_language_data): Delete la_print_typedef | |
7006 | initializer. | |
7007 | * opencl-lang.c (opencl_language_data): Likewise. | |
7008 | * p-lang.c (pascal_language_data): Likewise. | |
7009 | (pascal_language::print_typedef): New member function. | |
7010 | * rust-lang.c (rust_print_typedef): Delete function, | |
7011 | implementation moved to rust_language::print_typedef. | |
7012 | (rust_language): Delete la_print_typedef initializer. | |
7013 | (rust_language::print_typedef): New member function, | |
7014 | implementation from rust_print_typedef. | |
7015 | * typeprint.c (default_print_typedef): Delete. | |
7016 | ||
d711ee67 AB |
7017 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
7018 | ||
7019 | * ada-lang.c (ada_language_data): Delete la_printstr initializer. | |
7020 | (ada_language::printstr): New member function. | |
7021 | * c-lang.c (c_language_data): Delete la_printstr initializer. | |
7022 | (cplus_language_data): Likewise. | |
7023 | (asm_language_data): Likewise. | |
7024 | (minimal_language_data): Likewise. | |
7025 | * d-lang.c (d_language_data): Likewise. | |
7026 | * f-lang.c (f_printstr): Rename to f_language::printstr. | |
7027 | (f_language_data): Delete la_printstr initializer. | |
7028 | (f_language::printstr): New member function, implementation from | |
7029 | f_printstr. | |
7030 | * go-lang.c (go_language_data): Delete la_printstr initializer. | |
7031 | * language.c (language_defn::printstr): Define new member | |
7032 | function. | |
7033 | (unk_lang_printstr): Delete. | |
7034 | (unknown_language_data): Delete la_printstr initializer. | |
7035 | (unknown_language::printstr): New member function. | |
7036 | (auto_language_data): Delete la_printstr initializer. | |
7037 | (auto_language::printstr): New member function. | |
7038 | * language.h (language_data): Delete la_printstr field. | |
7039 | (language_defn::printstr): Declare new member function. | |
7040 | (LA_PRINT_STRING): Update call to printstr. | |
7041 | * m2-lang.c (m2_printstr): Rename to m2_language::printstr. | |
7042 | (m2_language_data): Delete la_printstr initializer. | |
7043 | (m2_language::printstr): New member function, implementation from | |
7044 | m2_printstr. | |
7045 | * objc-lang.c (objc_language_data): Delete la_printstr | |
7046 | initializer. | |
7047 | * opencl-lang.c (opencl_language_data): Likewise. | |
7048 | * p-lang.c (pascal_printstr): Rename to pascal_language::printstr. | |
7049 | (pascal_language_data): Delete la_printstr initializer. | |
7050 | (pascal_language::printstr): New member function, implementation | |
7051 | from pascal_printstr. | |
7052 | * p-lang.h (pascal_printstr): Delete declaration. | |
7053 | * rust-lang.c (rust_printstr): Update header comment. | |
7054 | (rust_language_data): Delete la_printstr initializer. | |
7055 | (rust_language::printstr): New member function. | |
7056 | ||
52b50f2c AB |
7057 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
7058 | ||
7059 | * ada-lang.c (ada_language_data): Delete la_printchar initializer. | |
7060 | (ada_language::printchar): New member function. | |
7061 | * c-lang.c (c_language_data): Delete la_printchar initializer. | |
7062 | (cplus_language_data): Likewise. | |
7063 | (asm_language_data): Likewise. | |
7064 | (minimal_language_data): Likewise. | |
7065 | * d-lang.c (d_language_data): Likewise. | |
7066 | * f-lang.c (f_printchar): Rename to f_language::printchar. | |
7067 | (f_language_data): Delete la_printchar initializer. | |
7068 | (f_language::printchar): New member function, implementation from | |
7069 | f_printchar. | |
7070 | * go-lang.c (go_language_data): Delete la_printchar initializer. | |
7071 | * language.c (unk_lang_printchar): Delete. | |
7072 | (language_defn::printchar): Define new member function. | |
7073 | (unknown_language_data): Delete la_printchar initializer. | |
7074 | (unknown_language::printchar): New member function. | |
7075 | (auto_language_data): Delete la_printchar initializer. | |
7076 | (auto_language::printchar): New member function. | |
7077 | * language.h (language_data): Delete la_printchar field. | |
7078 | (language_defn::printchar): Declare new member function. | |
7079 | (LA_PRINT_CHAR): Update call to printchar. | |
7080 | * m2-lang.c (m2_language_data): Delete la_printchar initializer. | |
7081 | (m2_language::printchar): New member function. | |
7082 | * objc-lang.c (objc_language_data): Delete la_printchar | |
7083 | initializer. | |
7084 | * opencl-lang.c (opencl_language_data): Likewise. | |
7085 | * p-lang.c (pascal_language_data): Delete la_printchar | |
7086 | initializer. | |
7087 | (pascal_language::printchar): New member function. | |
7088 | * rust-lang.c (rust_printchar): Rename to | |
7089 | rust_language::printchar. | |
7090 | (rust_language_data): Delete la_printchar initializer. | |
7091 | (rust_language::printchar): New member function, implementation | |
7092 | from rust_printchar. | |
7093 | ||
ec8cec5b AB |
7094 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
7095 | ||
7096 | * ada-lang.c (emit_char): Renamed to ada_language::emitchar. | |
7097 | (ada_language_data): Delete la_emitchar initializer. | |
7098 | (ada_language::emitchar): New member function, implementation from | |
7099 | emit_char. | |
7100 | * c-lang.c (c_language_data): Delete la_emitchar initializer. | |
7101 | (cplus_language_data): Likewise. | |
7102 | (asm_language_data): Likewise. | |
7103 | (minimal_language_data): Likewise. | |
7104 | * d-lang.c (d_language_data): Likewise. | |
7105 | * f-lang.c (f_emit_char): Rename to f_language::emitchar. | |
7106 | (f_language_data): Delete la_emitchar initializer. | |
7107 | (f_language::emitchar): New member function, implementation from | |
7108 | f_emit_char. | |
7109 | * go-lang.c (go_language_data): Delete la_emitchar initializer. | |
7110 | * language.c (unk_lang_emit_char): Delete. | |
7111 | (language_defn::emitchar): New member function definition. | |
7112 | (unknown_language_data): Delete la_emitchar initializer. | |
7113 | (unknown_language::emitchar): New member function. | |
7114 | (auto_language_data): Delete la_emitchar initializer. | |
7115 | (auto_language::emitchar): New member function. | |
7116 | * language.h (language_data): Delete la_emitchar field. | |
7117 | (language_defn::emitchar): New member field declaration. | |
7118 | (LA_EMIT_CHAR): Update call to emitchar. | |
7119 | * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar. | |
7120 | (m2_language_data): Delete la_emitchar initializer. | |
7121 | (m2_language::emitchar): New member function, implementation from | |
7122 | m2_emit_char. | |
7123 | * objc-lang.c (objc_language_data): Delete la_emitchar | |
7124 | initializer. | |
7125 | * opencl-lang.c (opencl_language_data): Likewise. | |
7126 | * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar. | |
7127 | (pascal_language_data): Delete la_emitchar initializer. | |
7128 | (pascal_language::emitchar): New member function, implementation | |
7129 | from pascal_emit_char. | |
7130 | * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar. | |
7131 | (rust_language_data): Delete la_emitchar initializer. | |
7132 | (rust_language::emitchar): New member function, implementation | |
7133 | from rust_emitchar. | |
7134 | ||
1bf9c363 AB |
7135 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
7136 | ||
7137 | * ada-lang.c (resolve): Rename to ada_language::post_parser. | |
7138 | (ada_language_data): Delete la_post_parser initializer. | |
7139 | (ada_language::post_parser): New member function. | |
7140 | * c-lang.c (c_language_data): Delete la_post_parser initializer. | |
7141 | (cplus_language_data): Likewise. | |
7142 | (asm_language_data): Likewise. | |
7143 | (minimal_language_data): Likewise. | |
7144 | * d-lang.c (d_language_data): Likewise. | |
7145 | * f-lang.c (f_language_data): Likewise. | |
7146 | * go-lang.c (go_language_data): Likewise. | |
7147 | * language.c (unknown_language_data): Likewise. | |
7148 | (auto_language_data): Likewise. | |
7149 | * language.h (language_data): Delete la_post_parser field. | |
7150 | (language_defn::post_parser): New member function. | |
7151 | * m2-lang.c (m2_language_data): Delete la_post_parser initializer. | |
7152 | * objc-lang.c (objc_language_data): Likewise. | |
7153 | * opencl-lang.c (opencl_language_data): Likewise. | |
7154 | * p-lang.c (pascal_language_data): Likewise. | |
7155 | * parse.c (parse_exp_in_context): Update call to post_parser. | |
7156 | (null_post_parser): Delete definition. | |
7157 | * parser-defs.h (null_post_parser): Delete declaration. | |
7158 | * rust-lang.c (rust_language_data): Delete la_post_parser | |
7159 | initializer. | |
7160 | ||
87afa652 AB |
7161 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
7162 | ||
7163 | * ada-lang.c (parse): Rename to ada_language::parser. | |
7164 | (ada_language_data): Delete la_parser initializer. | |
7165 | (ada_language::parser): New member function, implementation from | |
7166 | parse. | |
7167 | * c-lang.c (c_language_data): Delete la_parser initializer. | |
7168 | (cplus_language_data): Likewise. | |
7169 | (asm_language_data): Likewise. | |
7170 | (minimal_language_data): Likewise. | |
7171 | * d-lang.c (d_language_data): Likewise. | |
7172 | (d_language::parser): New member function. | |
7173 | * f-lang.c (f_language_data): Delete la_parser initializer. | |
7174 | (f_language::parser): New member function. | |
7175 | * go-lang.c (go_language_data): Delete la_parser initializer. | |
7176 | (go_language::parser): New member function. | |
7177 | * language.c (unk_lang_parser): Delete. | |
7178 | (language_defn::parser): Define new member function. | |
7179 | (unknown_language_data): Delete la_parser initializer. | |
7180 | (unknown_language::parser): New member function. | |
7181 | (auto_language_data): Delete la_parser initializer. | |
7182 | (auto_language::parser): New member function. | |
7183 | * language.h (language_data): Delete la_parser field. | |
7184 | (language_defn::parser): Declare new member function. | |
7185 | * m2-lang.c (m2_language_data): Delete la_parser initializer. | |
7186 | (m2_language::parser): New member function. | |
7187 | * objc-lang.c (objc_language_data): Delete la_parser initializer. | |
7188 | * opencl-lang.c (opencl_language_data): Likewise. | |
7189 | * p-lang.c (pascal_language_data): Likewise. | |
7190 | (pascal_language::parser): New member function. | |
7191 | * parse.c (parse_exp_in_context): Update call to parser. | |
7192 | * rust-lang.c (rust_language_data): Delete la_parser initializer. | |
7193 | (rust_language::parser): New member function. | |
7194 | ||
37825800 AB |
7195 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
7196 | ||
7197 | * top.c (print_gdb_configuration): Print --with-python-libdir | |
7198 | configuration value. | |
7199 | ||
5b860c93 PW |
7200 | 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
7201 | ||
7202 | * NEWS: Mention change to the alias command. | |
7203 | ||
cf00cd6f PW |
7204 | 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
7205 | ||
7206 | * cli/cli-cmds.c (lookup_cmd_for_default_args) | |
7207 | (alias_command_completer) | |
7208 | (make_alias_options_def_group): New functions. | |
7209 | (alias_opts, alias_option_defs): New struct and array. | |
7210 | (alias_usage_error): Update usage. | |
7211 | (alias_command): Handles optional DEFAULT-ARGS... arguments. | |
7212 | Use option framework. | |
7213 | (_initialize_cli_cmds): Update alias command help. | |
7214 | Update aliases command help. | |
7215 | (show_user): | |
7216 | Add NULL for new default_args lookup_cmd argument. | |
7217 | (valid_command_p): Rename to validate_aliased_command. | |
7218 | Add NULL for new default_args lookup_cmd argument. Verify that the | |
7219 | aliased_command has no default args. | |
7220 | * cli/cli-decode.c (help_cmd): Show aliases definitions. | |
7221 | (lookup_cmd_1, lookup_cmd): New argument default_args. | |
7222 | (add_alias_cmd): | |
7223 | Add NULL for new default_args lookup_cmd argument. | |
7224 | (print_help_for_command): Show default args under the layout | |
7225 | alias some_alias = some_aliased_cmd some_alias_default_arg. | |
7226 | * cli/cli-decode.h (struct cmd_list_element): New member default_args. | |
7227 | xfree default_args in destructor. | |
7228 | * cli/cli-script.c (process_next_line, do_define_command): | |
7229 | Add NULL for new default_args lookup_cmd argument. | |
7230 | * command.h: Declare new default_args argument in lookup_cmd | |
7231 | and lookup_cmd_1. | |
7232 | * completer.c (complete_line_internal_1): | |
7233 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. | |
7234 | * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise. | |
7235 | * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p): | |
7236 | Likewise. | |
7237 | * infcmd.c (_initialize_infcmd): Likewise. | |
7238 | * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise. | |
7239 | * python/py-cmd.c (gdbpy_parse_command_name): Likewise. | |
7240 | * python/py-param.c (add_setshow_generic): Likewise. | |
7241 | * remote.c (_initialize_remote): Likewise. | |
7242 | * top.c (execute_command): Prepend default_args if command has some. | |
7243 | (set_verbose): | |
7244 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. | |
7245 | * tracepoint.c (validate_actionline, encode_actions_1): | |
7246 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. | |
7247 | ||
bd920864 TBA |
7248 | 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
7249 | ||
7250 | * jit.c (jit_read_descriptor): Use bool as the return type. | |
7251 | (jit_breakpoint_re_set_internal): Use bool as the return type. | |
7252 | Invert the return value logic; return true if the jit breakpoint | |
7253 | has been successfully initialized. | |
7254 | (jit_inferior_init): Update the call to | |
7255 | jit_breakpoint_re_set_internal. | |
7256 | ||
f8098322 PA |
7257 | 2020-06-22 Pedro Alves <palves@redhat.com> |
7258 | ||
7259 | PR gdb/25939 | |
7260 | * procfs.c (procfs_target::wait): Don't reference inferior_ptid. | |
7261 | Use the current inferior instead. Don't return | |
7262 | TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and | |
7263 | wait again. | |
7264 | * sol-thread.c (sol_thread_target::wait): Don't reference | |
7265 | inferior_ptid. | |
7266 | (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs) | |
7267 | (sol_update_thread_list_callback): Use the current inferior's pid | |
7268 | instead of inferior_ptid. | |
7269 | ||
196535a6 RO |
7270 | 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
7271 | ||
7272 | * procfs.c: Cleanup many comments. | |
7273 | ||
7274 | (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG) | |
7275 | (AFTER_WATCHFLAG): Replace by value. | |
7276 | ||
7277 | (MAIN_PROC_NAME_FORMAT): Inline ... | |
7278 | (create_procinfo): ... here. | |
7279 | ||
7280 | (procfs_debug_inferior): Remove SYS_exec handling. | |
7281 | (syscall_is_exec): Likewise. | |
7282 | (procfs_set_exec_trap): Likewise. | |
7283 | ||
7284 | (syscall_is_lwp_exit): Inline in callers. | |
7285 | (syscall_is_exit): Likewise. | |
7286 | (syscall_is_exec): Likewise. | |
7287 | (syscall_is_lwp_create): Likewise. | |
7288 | ||
7289 | (invalidate_cache): Remove #if 0 code. | |
7290 | ||
7291 | (make_signal_thread_runnable): Remove. | |
7292 | (procfs_target::resume): Remove #if 0 code. | |
7293 | ||
cf6f3e86 RO |
7294 | 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
7295 | ||
7296 | PR gdb/25939 | |
7297 | * procfs.c (procfs_target::procfs_init_inferior): Move push_target | |
7298 | call ... | |
7299 | (procfs_target::create_inferior): ... here. | |
7300 | ||
48e9cc84 PW |
7301 | 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
7302 | ||
7303 | * exec.c (validate_exec_file): Ensure the build-id is up to | |
7304 | date by calling reopen_exec_file (that checks file timestamp | |
7305 | to decide to re-read the file). | |
7306 | ||
3922b302 PA |
7307 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7308 | ||
7309 | PR gdb/25412 | |
7310 | * gdbthread.h (delete_thread, delete_thread_silent) | |
7311 | (find_thread_ptid): Update comments. | |
7312 | * thread.c (current_thread_): New global. | |
7313 | (is_current_thread): Move higher, and reimplement. | |
7314 | (inferior_thread): Reimplement. | |
7315 | (set_thread_exited): Use bool. Add assertions. | |
7316 | (add_thread_silent): Simplify thread-reuse handling by always | |
7317 | calling delete_thread. | |
7318 | (delete_thread): Remove intro comment. | |
7319 | (find_thread_ptid): Skip exited threads. | |
7320 | (switch_to_thread_no_regs): Write to current_thread_. | |
7321 | (switch_to_no_thread): Check CURRENT_THREAD_ instead of | |
7322 | INFERIOR_PTID. Clear current_thread_. | |
7323 | ||
6dbdab44 PA |
7324 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7325 | ||
7326 | * aix-thread.c (pd_update): Use switch_to_thread. | |
7327 | ||
2da4b788 PA |
7328 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7329 | ||
7330 | * ravenscar-thread.c (ravenscar_thread_target): Update. | |
7331 | (ravenscar_thread_target::update_inferior_ptid): Rename to ... | |
7332 | (ravenscar_thread_target::add_active_thread): ... this. Don't | |
7333 | set m_base_ptid here. Update to avoid referencing inferior_ptid. | |
7334 | (ravenscar_thread_target::wait): Don't write to inferior_ptid. | |
7335 | ||
50838d1b PA |
7336 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7337 | ||
7338 | * nat/windows-nat.c (current_windows_thread): Remove. | |
7339 | * nat/windows-nat.h (current_windows_thread): Remove. | |
7340 | * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint): | |
7341 | Adjust. | |
7342 | (display_selectors): Adjust to fetch the current | |
7343 | windows_thread_info based on inferior_ptid. | |
7344 | (fake_create_process): No longer write to current_windows_thread. | |
7345 | (windows_nat_target::get_windows_debug_event): | |
7346 | Don't set inferior_ptid or current_windows_thread. | |
7347 | (windows_nat_target::wait): Adjust to not rely on | |
7348 | current_windows_thread. | |
7349 | (do_initial_windows_stuff): Now a method of windows_nat_target. | |
7350 | Switch to the last_ptid thread. | |
7351 | (windows_nat_target::attach): Adjust. | |
7352 | (windows_nat_target::detach): Use switch_to_no_thread instead of | |
7353 | writing to inferior_ptid directly. | |
7354 | (windows_nat_target::create_inferior): Adjust. | |
7355 | ||
31ce04e9 PA |
7356 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7357 | ||
7358 | * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid. | |
7359 | ||
1ee1a363 PA |
7360 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7361 | ||
7362 | * go32-nat.c (go32_nat_target::create_inferior): Switch to thread | |
7363 | after creating it, instead of writing to inferior_ptid. Don't | |
7364 | write to inferior_ptid. | |
7365 | ||
6d350754 PA |
7366 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7367 | ||
7368 | * fork-child.c (postfork_hook): Don't write to inferior_ptid. | |
7369 | ||
5d971d48 PA |
7370 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7371 | ||
7372 | * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding | |
7373 | it, instead of writing to inferior_ptid. | |
7374 | ||
86e57d1b PA |
7375 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7376 | ||
7377 | * btrace.c (btrace_fetch): Use switch_to_thread instead of writing | |
7378 | to inferior_ptid. | |
7379 | ||
f2e1c129 PA |
7380 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7381 | ||
7382 | * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread | |
7383 | instead of writing to inferior_ptid directly. | |
7384 | ||
60db1b85 PA |
7385 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7386 | ||
7387 | * corelow.c (core_target::close): Use switch_to_no_thread instead | |
7388 | of writing to inferior_ptid directly. | |
7389 | (add_to_thread_list, core_target_open): Use switch_to_thread | |
7390 | instead of writing to inferior_ptid directly. | |
7391 | ||
fe7d6a8d PA |
7392 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7393 | ||
7394 | * darwin-nat.c (darwin_nat_target::decode_message): Don't write to | |
7395 | inferior_ptid. | |
7396 | (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid | |
7397 | inferior_ptid. | |
7398 | (darwin_attach_pid): Use switch_to_no_thread instead of writing to | |
7399 | inferior_ptid directly. | |
7400 | (darwin_nat_target::init_thread_list): Switch to thread, instead | |
7401 | of writing to inferior_ptid. | |
7402 | (darwin_nat_target::attach): Don't write to inferior_ptid. | |
7403 | (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid. | |
7404 | ||
975f8708 PA |
7405 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7406 | ||
7407 | * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added | |
7408 | thread. | |
7409 | (gnu_nat_target::attach): Don't write to inferior_ptid directly. | |
7410 | Instead use switch_to_thread. | |
7411 | (gnu_nat_target::detach): Use switch_to_no_thread | |
7412 | instead of writing to inferior_ptid directly. Used passed-in | |
7413 | inferior instead of looking up the inferior by pid. | |
7414 | ||
1a204730 PA |
7415 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7416 | ||
7417 | * go32-nat.c (go32_nat_target::create_inferior): Don't write to | |
7418 | inferior_ptid. | |
7419 | ||
ebe84f23 PA |
7420 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7421 | ||
7422 | * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid | |
7423 | inferior_ptid. | |
7424 | (nto_procfs_target::attach): Avoid inferior_ptid. Switch to | |
7425 | thread. | |
7426 | (nto_procfs_target::detach): Avoid referencing | |
7427 | inferior_ptid. Use switch_to_no_thread instead of writing to | |
7428 | inferior_ptid directly. | |
7429 | (nto_procfs_target::mourn_inferior): Use switch_to_no_thread | |
7430 | instead of writing to inferior_ptid directly. | |
7431 | (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch | |
7432 | to thread. | |
7433 | ||
191f02e5 PA |
7434 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7435 | ||
7436 | * remote-sim.c (gdbsim_target::create_inferior): Switch to thread | |
7437 | after creating it, instead of writing to inferior_ptid. | |
7438 | (gdbsim_target_open): Use switch_to_no_thread instead of writing | |
7439 | to inferior_ptid directly. | |
7440 | (gdbsim_target::wait): Don't write to inferior_ptid. | |
7441 | ||
0ac55310 PA |
7442 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7443 | ||
7444 | * remote.c (remote_target::remote_notice_new_inferior): Use | |
7445 | switch_to_thread instead of writing to inferior_ptid directly. | |
7446 | (remote_target::add_current_inferior_and_thread): Use | |
7447 | switch_to_no_thread instead of writing to inferior_ptid directly. | |
7448 | (extended_remote_target::attach): Use switch_to_inferior_no_thread | |
7449 | and switch_to_thread instead of using set_current_inferior or | |
7450 | writing to inferior_ptid directly. | |
7451 | ||
5233f39b PA |
7452 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7453 | ||
7454 | * tracectf.c (ctf_target_open): Switch to added thread instead of | |
7455 | writing to inferior_ptid directly. | |
7456 | (ctf_target::close): Use switch_to_no_thread instead of writing to | |
7457 | inferior_ptid directly. | |
7458 | ||
087e161b PA |
7459 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7460 | ||
7461 | * tracefile-tfile.c (tfile_target_open): Don't write to | |
7462 | inferior_ptid directly, instead switch to added thread. | |
7463 | (tfile_target::close): Use switch_to_no_thread instead of writing | |
7464 | to inferior_ptid directly. | |
7465 | ||
7fb43e53 PA |
7466 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7467 | ||
7468 | * procfs.c (procfs_target::attach): Don't write to inferior_ptid. | |
7469 | (procfs_target::detach): Use switch_to_no_thread | |
7470 | instead of writing to inferior_ptid directly. | |
7471 | (do_attach): Change return type to void. Switch to the added | |
7472 | thread. | |
7473 | (procfs_target::create_inferior): Switch to the added thread. | |
7474 | (procfs_do_thread_registers): Don't write to inferior_ptid. | |
7475 | ||
18493a00 PA |
7476 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7477 | ||
7478 | * infrun.c (generic_mourn_inferior): Use switch_to_thread instead | |
7479 | of writing to inferior_ptid. | |
7480 | (scoped_restore_exited_inferior): Delete. | |
7481 | (handle_vfork_child_exec_or_exit): Simplify using | |
7482 | scoped_restore_current_pspace_and_thread. Use switch_to_thread | |
7483 | instead of writing to inferior_ptid. | |
7484 | (THREAD_STOPPED_BY): Delete. | |
7485 | (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint) | |
7486 | (thread_stopped_by_hw_breakpoint): Delete. | |
7487 | (save_waitstatus): Use | |
7488 | scoped_restore_current_thread+switch_to_thread, and call | |
7489 | target_stopped_by_watchpoint instead of | |
7490 | thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint | |
7491 | instead of thread_stopped_by_sw_breakpoint, and | |
7492 | target_stopped_by_hw_breakpoint instead of | |
7493 | thread_stopped_by_hw_breakpoint. | |
7494 | (handle_inferior_event) | |
7495 | <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to | |
7496 | inferior_ptid directly, nor | |
7497 | set_current_inferior/set_current_program_space. Use | |
7498 | switch_to_thread / switch_to_inferior_no_thread instead. | |
7499 | ||
a0776b13 PA |
7500 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7501 | ||
7502 | * target.c (generic_mourn_inferior): Use switch_to_no_thread | |
7503 | instead of writing to inferior_ptid. | |
7504 | ||
6155c136 PA |
7505 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7506 | ||
7507 | * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the | |
7508 | added thread. | |
7509 | (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch | |
7510 | to the added thread. | |
7511 | (inf_ptrace_target::detach_success): Use switch_to_no_thread | |
7512 | instead of writing to inferior_ptid. | |
7513 | ||
c5316fc6 PA |
7514 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7515 | ||
7516 | * gdbarch-selftests.c: Include "progspace-and-thread.h". | |
7517 | (register_to_value_test): Mock a program_space too. Heap-allocate | |
7518 | the address space. Don't write to inferior_ptid. Use | |
7519 | switch_to_thread instead. | |
7520 | ||
8df01799 PA |
7521 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7522 | ||
7523 | * linux-tdep.c (find_signalled_thread(thread_info *,void *)): | |
7524 | Delete. | |
7525 | (find_signalled_thread()): New, factored out from | |
7526 | linux_make_corefile_notes and adjusted to handle exited threads. | |
7527 | (linux_make_corefile_notes): Adjust to use the new | |
7528 | find_signalled_thread. | |
7529 | ||
41792d68 PA |
7530 | 2020-06-18 Pedro Alves <palves@redhat.com> |
7531 | ||
7532 | * linux-tdep.c (btrace_fetch): Save/restore current thread instead | |
7533 | of saving/restoring inferior_ptid. | |
7534 | ||
612f258a TT |
7535 | 2020-06-17 Tom Tromey <tom@tromey.com> |
7536 | ||
7537 | * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward) | |
7538 | (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't | |
7539 | declare. | |
7540 | * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove. | |
7541 | ||
efb763a5 SM |
7542 | 2020-06-15 Simon Marchi <simon.marchi@efficios.com> |
7543 | ||
7544 | * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence | |
7545 | of partial symtabs. | |
7546 | ||
2951f6c0 SM |
7547 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
7548 | ||
7549 | * regformats/reg-arm.dat: Remove. | |
7550 | * regformats/reg-bfin.dat: Remove. | |
7551 | * regformats/reg-cris.dat: Remove. | |
7552 | * regformats/reg-crisv32.dat: Remove. | |
7553 | * regformats/reg-m32r.dat: Remove. | |
7554 | * regformats/reg-tilegx.dat: Remove. | |
7555 | * regformats/reg-tilegx32.dat: Remove. | |
7556 | ||
7d458ea5 SM |
7557 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
7558 | ||
7559 | * features/Makefile (WHICH): Remove arm files. | |
7560 | * regformats/arm/arm-with-iwmmxt.dat: Remove. | |
7561 | * regformats/arm/arm-with-neon.dat: Remove. | |
7562 | * regformats/arm/arm-with-vfpv2.dat: Remove. | |
7563 | * regformats/arm/arm-with-vfpv3.dat: Remove. | |
7564 | ||
3af96c0d SM |
7565 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
7566 | ||
7567 | * features/Makefile (XMLTOC): Remove rx.xml. | |
7568 | ||
b25e22fd PA |
7569 | 2020-06-17 Pedro Alves <palves@redhat.com> |
7570 | ||
7571 | * gdbthread.h (thread_control_state) <trap_expected> Update | |
7572 | comments. | |
7573 | ||
a78a19b1 AB |
7574 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
7575 | ||
7576 | * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to | |
7577 | ada_language::lookup_symbol_nonlocal. | |
7578 | (ada_language_data): Delete la_lookup_symbol_nonlocal initializer. | |
7579 | (ada_language::lookup_symbol_nonlocal): New member function, | |
7580 | implementation from ada_lookup_symbol_nonlocal. | |
7581 | * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal | |
7582 | initializer. | |
7583 | (cplus_language_data): Delete la_lookup_symbol_nonlocal | |
7584 | initializer. | |
7585 | (cplus_language::lookup_symbol_nonlocal): New member function. | |
7586 | (asm_language_data): Delete la_lookup_symbol_nonlocal initializer. | |
7587 | (minimal_language_data) Likewise. | |
7588 | * cp-namespace.c (cp_lookup_nested_symbol): Update comment. | |
7589 | * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal | |
7590 | initializer. | |
7591 | (d_language::lookup_symbol_nonlocal): New member function. | |
7592 | * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal | |
7593 | initializer. | |
7594 | (f_language::lookup_symbol_nonlocal): New member function. | |
7595 | * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal | |
7596 | initializer. | |
7597 | * language.c (unknown_language_data): Likewise. | |
7598 | (auto_language_data): Likewise. | |
7599 | * language.h (language_data): Delete la_lookup_symbol_nonlocal | |
7600 | field. | |
7601 | (language_defn::lookup_symbol_nonlocal): New member function. | |
7602 | * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal | |
7603 | initializer. | |
7604 | * objc-lang.c (objc_language_data): Likewise. | |
7605 | * opencl-lang.c (opencl_language_data): Likewise. | |
7606 | * p-lang.c (pascal_language_data): Likewise. | |
7607 | * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to | |
7608 | rust_language::lookup_symbol_nonlocal. | |
7609 | (rust_language_data): Delete la_lookup_symbol_nonlocal | |
7610 | initializer. | |
7611 | (rust_language::lookup_symbol_nonlocal): New member function, | |
7612 | implementation from rust_lookup_symbol_nonlocal. | |
7613 | * symtab.c (lookup_symbol_aux): Update call to | |
7614 | lookup_symbol_nonlocal. | |
7615 | (basic_lookup_symbol_nonlocal): Rename to... | |
7616 | (language_defn::lookup_symbol_nonlocal): ...this, and update | |
7617 | header comment. Remove language_defn parameter, and replace with | |
7618 | uses of `this'. | |
7619 | * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration. | |
7620 | ||
ebe2334e AB |
7621 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
7622 | ||
7623 | * ada-lang.c (ada_language_data): Delete la_value_print_inner | |
7624 | initializer. | |
7625 | (ada_language::value_print_inner): New member function. | |
7626 | * c-lang.c (c_language_data): Delete la_value_print_inner | |
7627 | initializer. | |
7628 | (cplus_language_data): Likewise. | |
7629 | (asm_language_data): Likewise. | |
7630 | (minimal_language_data): Likewise. | |
7631 | * d-lang.c (d_language_data): Likewise. | |
7632 | (d_language::value_print_inner): New member function. | |
7633 | * f-lang.c (f_language_data): Delete la_value_print_inner | |
7634 | initializer. | |
7635 | (f_language::value_print_inner): New member function. | |
7636 | * f-lang.h (f_value_print_innner): Rename to... | |
7637 | (f_value_print_inner): ...this (note spelling of 'inner'). | |
7638 | * f-valprint.c (f_value_print_innner): Rename to... | |
7639 | (f_value_print_inner): ...this (note spelling of 'inner'). | |
7640 | * go-lang.c (go_language_data): Delete la_value_print_inner | |
7641 | initializer. | |
7642 | (go_language::value_print_inner): New member function. | |
7643 | * language.c (language_defn::value_print_inner): Define new member | |
7644 | function. | |
7645 | (unk_lang_value_print_inner): Delete. | |
7646 | (unknown_language_data): Delete la_value_print_inner initializer. | |
7647 | (unknown_language::value_print_inner): New member function. | |
7648 | (auto_language_data): Delete la_value_print_inner initializer. | |
7649 | (auto_language::value_print_inner): New member function. | |
7650 | * language.h (language_data): Delete la_value_print_inner field. | |
7651 | (language_defn::value_print_inner): Delcare new member function. | |
7652 | * m2-lang.c (m2_language_data): Delete la_value_print_inner | |
7653 | initializer. | |
7654 | (m2_language::value_print_inner): New member function. | |
7655 | * objc-lang.c (objc_language_data): Delete la_value_print_inner | |
7656 | initializer. | |
7657 | * opencl-lang.c (opencl_language_data): Likewise. | |
7658 | * p-lang.c (pascal_language_data): Likewise. | |
7659 | (pascal_language::value_print_inner): New member function. | |
7660 | * rust-lang.c (rust_language_data): Delete la_value_print_inner | |
7661 | initializer. | |
7662 | (rust_language::value_print_inner): New member function. | |
7663 | * valprint.c (do_val_print): Update call to value_print_inner. | |
7664 | ||
a1d1fa3e AB |
7665 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
7666 | ||
7667 | * ada-lang.c (ada_language_data): Delete la_value_print | |
7668 | initializer. | |
7669 | (ada_language::value_print): New member function. | |
7670 | * c-lang.c (c_language_data): Delete la_value_print initializer. | |
7671 | (cplus_language_data): Likewise. | |
7672 | (asm_language_data): Likewise. | |
7673 | (minimal_language_data): Likewise. | |
7674 | * d-lang.c (d_language_data): Likewise. | |
7675 | * f-lang.c (f_language_data): Likewise. | |
7676 | * go-lang.c (go_language_data): Likewise. | |
7677 | * language.c (unk_lang_value_print): Delete. | |
7678 | (language_defn::value_print): Define new member function. | |
7679 | (unknown_language_data): Delete la_value_print initializer. | |
7680 | (unknown_language::value_print): New member function. | |
7681 | (auto_language_data): Delete la_value_print initializer. | |
7682 | (auto_language::value_print): New member function. | |
7683 | * language.h (language_data): Delete la_value_print field. | |
7684 | (language_defn::value_print): Declare new member function. | |
7685 | (LA_VALUE_PRINT): Update call to value_print. | |
7686 | * m2-lang.c (m2_language_data): Delete la_value_print initializer. | |
7687 | * objc-lang.c (objc_language_data): Likewise. | |
7688 | * opencl-lang.c (opencl_language_data): Likewise. | |
7689 | * p-lang.c (pascal_language_data): Likewise. | |
7690 | (pascal_language::value_print): New member function. | |
7691 | * rust-lang.c (rust_language_data): Delete la_value_print | |
7692 | initializer. | |
7693 | ||
f16a9f57 AB |
7694 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
7695 | ||
7696 | * ada-lang.c (ada_watch_location_expression): Rename to | |
7697 | ada_language::watch_location_expression. | |
7698 | (ada_language_data): Delete la_watch_location_expression | |
7699 | initializer. | |
7700 | (ada_language::watch_location_expression): New member function, | |
7701 | implementation from ada_watch_location_expression. | |
7702 | * breakpoint.c (watch_command_1): Update call to | |
7703 | watch_location_expression. | |
7704 | * c-lang.c (c_watch_location_expression): Rename to | |
7705 | language_defn::watch_location_expression. | |
7706 | (c_language_data): Delete la_watch_location_expression | |
7707 | initializer. | |
7708 | (cplus_language_data): Likewise. | |
7709 | (asm_language_data): Likewise. | |
7710 | (minimal_language_data): Likewise. | |
7711 | * c-lang.h (c_watch_location_expression): Delete declaration. | |
7712 | * d-lang.c (d_language_data): Delete la_watch_location_expression | |
7713 | initializer. | |
7714 | * f-lang.c (f_language_data): Likewise. | |
7715 | * go-lang.c (go_language_data): Likewise. | |
7716 | * language.c (language_defn::watch_location_expression): Member | |
7717 | function implementation from c_watch_location_expression. | |
7718 | (unknown_language_data): Delete la_watch_location_expression | |
7719 | initializer. | |
7720 | (auto_language_data): Likewise. | |
7721 | * language.h (language_data): Delete la_watch_location_expression | |
7722 | field. | |
7723 | (language_defn::watch_location_expression): Declare new member | |
7724 | function. | |
7725 | * m2-lang.c (m2_language_data): Delete | |
7726 | la_watch_location_expression initializer. | |
7727 | * objc-lang.c (objc_language_data): Likewise. | |
7728 | * opencl-lang.c (opencl_language_data): Likewise. | |
7729 | * p-lang.c (pascal_language_data): Likewise. | |
7730 | * rust-lang.c (rust_watch_location_expression): Rename to | |
7731 | rust_language::watch_location_expression. | |
7732 | (rust_language_data): Delete la_watch_location_expression | |
7733 | initializer. | |
7734 | (rust_language::watch_location_expression): New member function, | |
7735 | implementation from rust_watch_location_expression. | |
7736 | ||
7e56227d AB |
7737 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
7738 | ||
7739 | * ada-lang.c (ada_collect_symbol_completion_matches): Rename to | |
7740 | ada_language::collect_symbol_completion_matches. | |
7741 | (ada_language_data): Delete la_collect_symbol_completion_matches | |
7742 | initializer. | |
7743 | (ada_language::collect_symbol_completion_matches): New member | |
7744 | function, implementation from | |
7745 | ada_collect_symbol_completion_matches. | |
7746 | * c-lang.c (c_language_data): Delete | |
7747 | la_collect_symbol_completion_matches initializer. | |
7748 | (cplus_language_data): Likewise. | |
7749 | (asm_language_data): Likewise. | |
7750 | (minimal_language_data): Likewise. | |
7751 | * d-lang.c (d_language_data): Likewise. | |
7752 | * f-lang.c (f_collect_symbol_completion_matches): Rename to | |
7753 | f_language::collect_symbol_completion_matches. | |
7754 | (f_language_data): Delete la_collect_symbol_completion_matches | |
7755 | initializer. | |
7756 | (f_language::collect_symbol_completion_matches) New member | |
7757 | function, implementation from f_collect_symbol_completion_matches. | |
7758 | * go-lang.c (go_language_data): Delete | |
7759 | la_collect_symbol_completion_matches initializer. | |
7760 | * language.c (unknown_language_data): Likewise. | |
7761 | (auto_language_data): Likewise. | |
7762 | * language.h (language_data): Delete | |
7763 | la_collect_symbol_completion_matches field. | |
7764 | (language_defn::collect_symbol_completion_matches): New member | |
7765 | function. | |
7766 | * m2-lang.c (m2_language_data): Delete | |
7767 | la_collect_symbol_completion_matches initializer. | |
7768 | * objc-lang.c (objc_language_data): Likewise. | |
7769 | * opencl-lang.c (opencl_language_data): Likewise. | |
7770 | * p-lang.c (pascal_language_data): Likewise. | |
7771 | * rust-lang.c (rust_language_data): Likewise. | |
7772 | * symtab.c (default_collect_symbol_completion_matches): Delete. | |
7773 | (collect_symbol_completion_matches): Update call to | |
7774 | collect_symbol_completion_matches. | |
7775 | (collect_symbol_completion_matches_type): Likewise. | |
7776 | * symtab.h (default_collect_symbol_completion_matches): Delete | |
7777 | declaration. | |
7778 | ||
53fc67f8 AB |
7779 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
7780 | ||
7781 | * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete. | |
7782 | (ada_language_data): Delete la_word_break_characters initializer. | |
7783 | (ada_language::word_break_characters): New member function. | |
7784 | * c-lang.c (c_language_data): Delete la_word_break_characters | |
7785 | initializer. | |
7786 | (cplus_language_data): Likewise. | |
7787 | (asm_language_data): Likewise. | |
7788 | (minimal_language_data): Likewise. | |
7789 | * completer.c: Update global comment. | |
7790 | (advance_to_expression_complete_word_point): Update call to | |
7791 | word_break_characters. | |
7792 | (complete_files_symbols): Likewise. | |
7793 | (complete_line_internal_1): Likewise. | |
7794 | (default_completer_handle_brkchars): Likewise. | |
7795 | (skip_quoted_chars): Likewise. | |
7796 | * d-lang.c (d_language_data): Delete la_word_break_characters | |
7797 | initializer. | |
7798 | * f-lang.c (f_word_break_characters): Delete. | |
7799 | (f_language_data): Delete la_word_break_characters initializer. | |
7800 | (f_language::word_break_characters): New member function. | |
7801 | * go-lang.c (go_language_data): Delete la_word_break_characters | |
7802 | initializer. | |
7803 | * language.c (unknown_language_data): Likewise. | |
7804 | (auto_language_data): Likewise. | |
7805 | * language.h (default_word_break_characters): Move declaration to | |
7806 | earlier in the file. | |
7807 | (language_data): Delete la_word_break_characters field. | |
7808 | (language_defn::word_break_characters): New member function. | |
7809 | * m2-lang.c (m2_language_data): Delete la_word_break_characters | |
7810 | initializer. | |
7811 | * objc-lang.c (objc_language_data): Likewise. | |
7812 | * opencl-lang.c (opencl_language_data): Likewise. | |
7813 | * p-lang.c (pascal_language_data): Likewise. | |
7814 | * rust-lang.c (rust_language_data): Likewise. | |
7815 | ||
c9debfb9 AB |
7816 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
7817 | ||
7818 | * ada-lang.c (ada_get_symbol_name_matcher): Update header comment. | |
7819 | (ada_language_data): Delete la_get_symbol_name_matcher | |
7820 | initializer. | |
7821 | (language_defn::get_symbol_name_matcher_inner): New member | |
7822 | function. | |
7823 | * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher | |
7824 | initializer. | |
7825 | (cplus_language_data): Likewise. | |
7826 | (cplus_language::get_symbol_name_matcher_inner): New member | |
7827 | function. | |
7828 | (asm_language_data): Delete la_get_symbol_name_matcher initializer. | |
7829 | (minimal_language_data): Likewise. | |
7830 | * cp-support.h (cp_get_symbol_name_matcher): Update header comment. | |
7831 | * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher | |
7832 | initializer. | |
7833 | * dictionary.c (iter_match_first_hashed): Update call to | |
7834 | get_symbol_name_matcher. | |
7835 | (iter_match_next_hashed): Likewise. | |
7836 | (iter_match_next_linear): Likewise. | |
7837 | * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise. | |
7838 | * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher | |
7839 | initializer. | |
7840 | (f_language::get_symbol_name_matcher_inner): New member function. | |
7841 | * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher | |
7842 | initializer. | |
7843 | * language.c (default_symbol_name_matcher): Update header comment, | |
7844 | make static. | |
7845 | (language_defn::get_symbol_name_matcher): New definition. | |
7846 | (language_defn::get_symbol_name_matcher_inner): Likewise. | |
7847 | (get_symbol_name_matcher): Delete. | |
7848 | (unknown_language_data): Delete la_get_symbol_name_matcher | |
7849 | initializer. | |
7850 | (auto_language_data): Likewise. | |
7851 | * language.h (language_data): Delete la_get_symbol_name_matcher | |
7852 | field. | |
7853 | (language_defn::get_symbol_name_matcher): New member function. | |
7854 | (language_defn::get_symbol_name_matcher_inner): Likewise. | |
7855 | (default_symbol_name_matcher): Delete declaration. | |
7856 | * linespec.c (find_methods): Update call to | |
7857 | get_symbol_name_matcher. | |
7858 | * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher | |
7859 | initializer. | |
7860 | * minsyms.c (lookup_minimal_symbol): Update call to | |
7861 | get_symbol_name_matcher. | |
7862 | (iterate_over_minimal_symbols): Likewise. | |
7863 | * objc-lang.c (objc_language_data): Delete | |
7864 | la_get_symbol_name_matcher initializer. | |
7865 | * opencl-lang.c (opencl_language_data): Likewise. | |
7866 | * p-lang.c (pascal_language_data): Likewise. | |
7867 | * psymtab.c (psymbol_name_matches): Update call to | |
7868 | get_symbol_name_matcher. | |
7869 | * rust-lang.c (rust_language_data): Delete | |
7870 | la_get_symbol_name_matcher initializer. | |
7871 | * symtab.c (symbol_matches_search_name): Update call to | |
7872 | get_symbol_name_matcher. | |
7873 | (compare_symbol_name): Likewise. | |
7874 | ||
9a49ad8c AB |
7875 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
7876 | ||
7877 | * ada-lang.c (ada_language_data): Delete la_compute_program | |
7878 | initializer. | |
7879 | * c-lang.c (c_language_data): Likewise. | |
7880 | (c_language::compute_program): New member function. | |
7881 | (cplus_language_data): Delete la_compute_program initializer. | |
7882 | (cplus_language::compute_program): New member function. | |
7883 | (asm_language_data): Delete la_compute_program initializer. | |
7884 | (minimal_language_data): Likewise. | |
7885 | * c-lang.h (c_compute_program): Update comment. | |
7886 | (cplus_compute_program): Likewise. | |
7887 | * compile/compile-c-support.c (c_compute_program): Likewise. | |
7888 | (cplus_compute_program): Likewise. | |
7889 | * compile/compile.c (compile_to_object): Update call to | |
7890 | la_compute_program. | |
7891 | * d-lang.c (d_language_data): Delete la_compute_program | |
7892 | initializer. | |
7893 | * f-lang.c (f_language_data): Likewise. | |
7894 | * go-lang.c (go_language_data): Likewise. | |
7895 | * language.c (unknown_language_data): Likewise. | |
7896 | (auto_language_data): Likewise. | |
7897 | * language.h (language_data): Delete la_compute_program field. | |
7898 | (language_defn::compute_program): New member function. | |
7899 | * m2-lang.c (m2_language_data): Delete la_compute_program | |
7900 | initializer. | |
7901 | * objc-lang.c (objc_language_data): Likewise. | |
7902 | * opencl-lang.c (opencl_language_data): Likewise. | |
7903 | * p-lang.c (pascal_language_data): Likewise. | |
7904 | * rust-lang.c (rust_language_data): Likewise. | |
7905 | ||
eff93b4d AB |
7906 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
7907 | ||
7908 | * ada-lang.c (ada_language_data) Delete | |
7909 | la_class_name_from_physname initializer. | |
7910 | * c-lang.c (c_language_data): Likewise. | |
7911 | (cplus_language_data): Likewise. | |
7912 | (cplus_language::class_name_from_physname): New member function. | |
7913 | (asm_language_data): Delete la_class_name_from_physname | |
7914 | initializer. | |
7915 | (minimal_language_data): Likewise. | |
7916 | * d-lang.c (d_language_data): Likewise. | |
7917 | * dwarf2/read.c (guess_partial_die_structure_name): Update to call | |
7918 | method on language_defn class. | |
7919 | (guess_full_die_structure_name): Likewise. | |
7920 | * f-lang.c (f_language_data): Delete la_class_name_from_physname | |
7921 | initializer. | |
7922 | * go-lang.c (go_language_data): Likewise. | |
7923 | * language.c (language_class_name_from_physname): Delete. | |
7924 | (unk_lang_class_name): Delete. | |
7925 | (unknown_language_data): Delete la_class_name_from_physname | |
7926 | initializer. | |
7927 | (auto_language_data): Likewise. | |
7928 | * language.h (language_data): Delete la_class_name_from_physname | |
7929 | field. | |
7930 | (language_defn::class_name_from_physname): New function. | |
7931 | (language_class_name_from_physname): Delete declaration. | |
7932 | * m2-lang.c (m2_language_data): Delete la_class_name_from_physname | |
7933 | initializer. | |
7934 | * objc-lang.c (objc_language_data): Likewise. | |
7935 | * opencl-lang.c (opencl_language_data): Likewise. | |
7936 | * p-lang.c (pascal_language_data): Likewise. | |
7937 | * rust-lang.c (rust_language_data): Likewise. | |
7938 | ||
de543742 TT |
7939 | 2020-06-16 Tom Tromey <tom@tromey.com> |
7940 | ||
7941 | * tui/tui-data.h (STATUS_NAME): New macro. | |
7942 | * tui/tui-layout.c (tui_remove_some_windows) | |
7943 | (initialize_known_windows, tui_register_window) | |
7944 | (tui_layout_split::remove_windows, initialize_layouts) | |
7945 | (tui_new_layout_command): Don't use hard-coded window names. | |
7946 | ||
a350efd4 TT |
7947 | 2020-06-16 Tom Tromey <tom@tromey.com> |
7948 | ||
7949 | PR tui/25348: | |
7950 | * tui/tui.c (tui_ensure_readline_initialized): Rename from | |
7951 | tui_initialize_readline. Only run once. Call rl_initialize. | |
7952 | * tui/tui.h (tui_ensure_readline_initialized): Rename from | |
7953 | tui_initialize_readline. | |
7954 | * tui/tui-io.c (tui_setup_io): Call | |
7955 | tui_ensure_readline_initialized. | |
7956 | * tui/tui-interp.c (tui_interp::init): Update. | |
7957 | ||
39ec0490 TT |
7958 | 2020-06-16 Tom Tromey <tom@tromey.com> |
7959 | ||
7960 | * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic. | |
7961 | Also preserve the status window. | |
7962 | ||
d2d1ea20 TT |
7963 | 2020-06-16 Tom Tromey <tom@tromey.com> |
7964 | ||
7965 | * python/py-tui.c (tui_py_window::~tui_py_window): Handle case | |
7966 | where m_window==nullptr. | |
7967 | ||
66920317 TT |
7968 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
7969 | ||
7970 | * windows-nat.c (windows_nat::handle_output_debug_string): | |
7971 | Update. | |
7972 | (windows_nat::handle_ms_vc_exception): Update. | |
7973 | * target.h (target_read_string): Change API. | |
7974 | * target.c (target_read_string): Change API. | |
7975 | * solib-svr4.c (open_symbol_file_object, svr4_read_so_list): | |
7976 | Update. | |
7977 | * solib-frv.c (frv_current_sos): Update. | |
7978 | * solib-dsbt.c (dsbt_current_sos): Update. | |
7979 | * solib-darwin.c (darwin_current_sos): Update. | |
7980 | * linux-thread-db.c (inferior_has_bug): Update. | |
7981 | * expprint.c (print_subexp_standard): Update. | |
7982 | * ada-lang.c (ada_main_name, ada_tag_name_from_tsd) | |
7983 | (ada_exception_message_1): Update. | |
7984 | ||
a5d871dd TT |
7985 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
7986 | ||
7987 | * linux-tdep.c (dump_mapping_p): Use target_read_memory. | |
7988 | ||
670e35fa TT |
7989 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
7990 | ||
7991 | * valprint.c (read_string): Update comment. | |
7992 | * target.c (MIN): Remove. | |
7993 | (target_read_string): Rewrite. | |
7994 | ||
f5272a3b TT |
7995 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
7996 | ||
7997 | * corefile.c (read_memory_string): Remove. | |
7998 | * ada-valprint.c (ada_value_print_ptr): Update. | |
7999 | * ada-lang.h (ada_tag_name): Change return type. | |
8000 | * ada-lang.c (type_from_tag): Update. | |
8001 | (ada_tag_name_from_tsd): Change return type. Use | |
8002 | target_read_string. | |
8003 | (ada_tag_name): Likewise. | |
8004 | * gdbcore.h (read_memory_string): Don't declare. | |
8005 | ||
2c074f49 HD |
8006 | 2020-06-14 Hannes Domani <ssbssa@yahoo.de> |
8007 | ||
8008 | * symtab.c (rbreak_command): Ignore Windows drive colon. | |
8009 | ||
6a17d503 SM |
8010 | 2020-06-12 Simon Marchi <simon.marchi@efficios.com> |
8011 | ||
8012 | * NEWS: Mention removed GDBserver host support. | |
8013 | ||
453c733f NC |
8014 | 2020-06-12 Nelson Chu <nelson.chu@sifive.com> |
8015 | ||
8016 | * features/riscv/rebuild-csr-xml.sh: Updated. | |
8017 | ||
2b4e6a3f TT |
8018 | 2020-06-11 Tom Tromey <tom@tromey.com> |
8019 | ||
8020 | PR gdb/18318: | |
8021 | * c-exp.y (lex_one_token): Handle 'p' like 'e'. | |
8022 | ||
4412332f JG |
8023 | 2020-06-09 Jonny Grant <jg@jguk.org> |
8024 | 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca> | |
8025 | ||
8026 | * main.c (captured_main_1): Don't print new line after help. | |
8027 | (print_gdb_help): add mailing list and IRC channel information | |
8028 | to --help. Add new lines between items in the footer. Remove | |
8029 | quotes around bug url. | |
8030 | ||
2f33032a KS |
8031 | 2020-06-11 Keith Seitz <keiths@redhat.com> |
8032 | ||
8033 | PR gdb/21356 | |
8034 | * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct): | |
8035 | Resolve typedefs for type length calculations. | |
8036 | ||
7ab96794 TV |
8037 | 2020-06-10 Tom de Vries <tdevries@suse.de> |
8038 | ||
8039 | PR ada/24713 | |
8040 | * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack. | |
8041 | (write_psymbols): Enable .gdb_index for ada. | |
8042 | * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for | |
8043 | ada. | |
8044 | ||
e5f3ece2 TV |
8045 | 2020-06-10 Tom de Vries <tdevries@suse.de> |
8046 | ||
8047 | * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ... | |
8048 | (dw2_symtab_iter_init): ... here. Add variant with "offset_type | |
8049 | namei" instead of "const char *name" argument. | |
8050 | (dw2_map_matching_symbols): Use "offset_type namei" variant of | |
8051 | dw2_symtab_iter_init. | |
8052 | ||
940da03e SM |
8053 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
8054 | ||
8055 | * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites | |
8056 | to use type::field and field::type instead. | |
8057 | ||
b6cdac4b SM |
8058 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
8059 | ||
8060 | * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites | |
8061 | to use field::type instead. | |
8062 | ||
5d14b6e5 SM |
8063 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
8064 | ||
8065 | * gdbtypes.h (struct field) <type, set_type>: New methods. | |
8066 | Rename `type` field to... | |
8067 | <m_type>: ... this. Change references throughout to use type or | |
8068 | set_type methods. | |
8069 | (FIELD_TYPE): Use field::type. Change call sites that modify | |
8070 | the field's type to use field::set_type instead. | |
8071 | ||
3d967001 SM |
8072 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
8073 | ||
8074 | * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites | |
8075 | to use type::index_type instead. | |
8076 | ||
262abc0d SM |
8077 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
8078 | ||
8079 | * gdbtypes.h (struct type) <index_type, set_index_type>: New | |
8080 | methods. | |
8081 | (TYPE_INDEX_TYPE): Use type::index_type. | |
8082 | * gdbtypes.c (create_array_type_with_stride): Likewise. | |
8083 | ||
82836c92 TT |
8084 | 2020-06-07 Tom Tromey <tom@tromey.com> |
8085 | ||
8086 | * valprint.c (generic_val_print_float): Remove "embedded_offset" | |
8087 | parameter. | |
8088 | (generic_value_print): Update. | |
8089 | ||
940dace9 AB |
8090 | 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com> |
8091 | ||
8092 | Revert commit 982a38f60b0. | |
8093 | * python/py-tui.c (gdbpy_tui_set_title): Restore use of get. | |
8094 | ||
982a38f6 AB |
8095 | 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com> |
8096 | ||
8097 | * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to | |
8098 | avoid use after free. | |
8099 | ||
82f06518 TV |
8100 | 2020-06-05 Tom de Vries <tdevries@suse.de> |
8101 | ||
8102 | * NEWS: Fix typos. | |
8103 | ||
f8c41851 SM |
8104 | 2020-06-04 Simon Marchi <simon.marchi@efficios.com> |
8105 | ||
8106 | * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in | |
8107 | the per_bfd object. | |
8108 | (dwarf2_read_debug_names): Likewise. | |
8109 | (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd | |
8110 | object when re-using a per_bfd object with an index. | |
8111 | ||
f9b5d5ea TV |
8112 | 2020-06-03 Tom de Vries <tdevries@suse.de> |
8113 | ||
8114 | PR symtab/26046 | |
8115 | * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram | |
8116 | children for C++. | |
8117 | (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of | |
8118 | DW_TAG_subprogram. | |
8119 | ||
f6eee2d0 AB |
8120 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
8121 | ||
8122 | * ada-lang.c (ada_language_data): Delete skip_trampoline | |
8123 | initializer. | |
8124 | * c-lang.c (c_language_data): Likewise. | |
8125 | (cplus_language_data): Likewise. | |
8126 | (cplus_language::skip_trampoline): New member function. | |
8127 | (asm_language_data): Delete skip_trampoline initializer. | |
8128 | (minimal_language_data): Likewise. | |
8129 | * d-lang.c (d_language_data): Likewise. | |
8130 | * f-lang.c (f_language_data): Likewise. | |
8131 | * go-lang.c (go_language_data): Likewise. | |
8132 | * language.c (unk_lang_trampoline): Delete function. | |
8133 | (skip_language_trampoline): Update. | |
8134 | (unknown_language_data): Delete skip_trampoline initializer. | |
8135 | (auto_language_data): Likewise. | |
8136 | * language.h (language_data): Delete skip_trampoline field. | |
8137 | (language_defn::skip_trampoline): New function. | |
8138 | * m2-lang.c (m2_language_data): Delete skip_trampoline | |
8139 | initializer. | |
8140 | * objc-lang.c (objc_skip_trampoline): Delete function, move | |
8141 | implementation to objc_language::skip_trampoline. | |
8142 | (objc_language_data): Delete skip_trampoline initializer. | |
8143 | (objc_language::skip_trampoline): New member function with | |
8144 | implementation from objc_skip_trampoline. | |
8145 | * opencl-lang.c (opencl_language_data): Delete skip_trampoline | |
8146 | initializer. | |
8147 | * p-lang.c (pascal_language_data): Likewise. | |
8148 | * rust-lang.c (rust_language_data): Likewise. | |
8149 | ||
0a50df5d AB |
8150 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
8151 | ||
8152 | * ada-lang.c (ada_language_data): Delete la_demangle initializer. | |
8153 | (ada_language::demangle): New member function. | |
8154 | * c-lang.c (c_language_data): Delete la_demangle initializer. | |
8155 | (cplus_language_data): Delete la_demangle initializer. | |
8156 | (cplus_language::demangle): New member function. | |
8157 | (asm_language_data): Delete la_demangle initializer. | |
8158 | (minimal_language_data): Delete la_demangle initializer. | |
8159 | * d-lang.c (d_language_data): Delete la_demangle initializer. | |
8160 | (d_language::demangle): New member function. | |
8161 | * f-lang.c (f_language_data): Delete la_demangle initializer. | |
8162 | (f_language::demangle): New member function. | |
8163 | * go-lang.c (go_language_data): Delete la_demangle initializer. | |
8164 | (go_language::demangle): New member function. | |
8165 | * language.c (language_demangle): Update. | |
8166 | (unk_lang_demangle): Delete. | |
8167 | (unknown_language_data): Delete la_demangle initializer. | |
8168 | (unknown_language::demangle): New member function. | |
8169 | (auto_language_data): Delete la_demangle initializer. | |
8170 | (auto_language::demangle): New member function. | |
8171 | * language.h (language_data): Delete la_demangle field. | |
8172 | (language_defn::demangle): New function. | |
8173 | * m2-lang.c (m2_language_data): Delete la_demangle initializer. | |
8174 | * objc-lang.c (objc_language_data): Delete la_demangle | |
8175 | initializer. | |
8176 | (objc_language::demangle): New member function. | |
8177 | * opencl-lang.c (opencl_language_data): Delete la_demangle | |
8178 | initializer. | |
8179 | * p-lang.c (pascal_language_data): Likewise. | |
8180 | * rust-lang.c (rust_language_data): Likewise. | |
8181 | (rust_language::demangle): New member function. | |
8182 | ||
fbfb0a46 AB |
8183 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
8184 | ||
8185 | * ada-lang.c (ada_language_data): Delete la_print_type | |
8186 | initializer. | |
8187 | (ada_language::print_type): New member function. | |
8188 | * c-lang.c (c_language_data): Delete la_print_type initializer. | |
8189 | (c_language::print_type): New member function. | |
8190 | (cplus_language_data): Delete la_print_type initializer. | |
8191 | (cplus_language::print_type): New member function. | |
8192 | (asm_language_data): Delete la_print_type initializer. | |
8193 | (asm_language::print_type): New member function. | |
8194 | (minimal_language_data): Delete la_print_type initializer. | |
8195 | (minimal_language::print_type): New member function. | |
8196 | * d-lang.c (d_language_data): Delete la_print_type initializer. | |
8197 | (d_language::print_type): New member function. | |
8198 | * f-lang.c (f_language_data): Delete la_print_type initializer. | |
8199 | (f_language::print_type): New member function. | |
8200 | * go-lang.c (go_language_data): Delete la_print_type initializer. | |
8201 | (go_language::print_type): New member function. | |
8202 | * language.c (unk_lang_print_type): Delete. | |
8203 | (unknown_language_data): Delete la_print_type initializer. | |
8204 | (unknown_language::print_type): New member function. | |
8205 | (auto_language_data): Delete la_print_type initializer. | |
8206 | (auto_language::print_type): New member function. | |
8207 | * language.h (language_data): Delete la_print_type field. | |
8208 | (language_defn::print_type): New function. | |
8209 | (LA_PRINT_TYPE): Update. | |
8210 | * m2-lang.c (m2_language_data): Delete la_print_type initializer. | |
8211 | (m2_language::print_type): New member function. | |
8212 | * objc-lang.c (objc_language_data): Delete la_print_type | |
8213 | initializer. | |
8214 | (objc_language::print_type): New member function. | |
8215 | * opencl-lang.c (opencl_print_type): Delete, implementation moved | |
8216 | to opencl_language::print_type. | |
8217 | (opencl_language_data): Delete la_print_type initializer. | |
8218 | (opencl_language::print_type): New member function, implementation | |
8219 | from opencl_print_type. | |
8220 | * p-lang.c (pascal_language_data): Delete la_print_type | |
8221 | initializer. | |
8222 | (pascal_language::print_type): New member function. | |
8223 | * rust-lang.c (rust_print_type): Delete, implementation moved to | |
8224 | rust_language::print_type. | |
8225 | (rust_language_data): Delete la_print_type initializer. | |
8226 | (rust_language::print_type): New member function, implementation | |
8227 | from rust_print_type. | |
8228 | ||
6f827019 AB |
8229 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
8230 | ||
8231 | * ada-lang.c (ada_sniff_from_mangled_name): Delete function, | |
8232 | implementation moves to... | |
8233 | (ada_language::sniff_from_mangled_name): ...here. Update return | |
8234 | type. | |
8235 | (ada_language_data): Delete la_sniff_from_mangled_name | |
8236 | initializer. | |
8237 | * c-lang.c (c_language_data): Likewise. | |
8238 | (cplus_language_data): Likewise. | |
8239 | (cplus_language::sniff_from_mangled_name): New member function, | |
8240 | implementation taken from gdb_sniff_from_mangled_name. | |
8241 | (asm_language_data): Delete la_sniff_from_mangled_name | |
8242 | initializer. | |
8243 | (minimal_language_data): Likewise. | |
8244 | * cp-support.c (gdb_sniff_from_mangled_name): Delete, | |
8245 | implementation moves to cplus_language::sniff_from_mangled_name. | |
8246 | * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration. | |
8247 | * d-lang.c (d_sniff_from_mangled_name): Delete, implementation | |
8248 | moves to... | |
8249 | (d_language::sniff_from_mangled_name): ...here. | |
8250 | (d_language_data): Delete la_sniff_from_mangled_name initializer. | |
8251 | * f-lang.c (f_language_data): Likewise. | |
8252 | * go-lang.c (go_sniff_from_mangled_name): Delete, implementation | |
8253 | moves to... | |
8254 | (go_language::sniff_from_mangled_name): ...here. | |
8255 | (go_language_data): Delete la_sniff_from_mangled_name initializer. | |
8256 | * language.c (language_sniff_from_mangled_name): Delete. | |
8257 | (unknown_language_data): Delete la_sniff_from_mangled_name | |
8258 | initializer. | |
8259 | (auto_language_data): Likewise. | |
8260 | * language.h (language_data): Delete la_sniff_from_mangled_name | |
8261 | field. | |
8262 | (language_defn::sniff_from_mangled_name): New function. | |
8263 | (language_sniff_from_mangled_name): Delete declaration. | |
8264 | * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name | |
8265 | field. | |
8266 | * objc-lang.c (objc_sniff_from_mangled_name): Delete, | |
8267 | implementation moves to... | |
8268 | (objc_language::sniff_from_mangled_name): ...here. | |
8269 | (objc_language_data): Delete la_sniff_from_mangled_name initializer. | |
8270 | * opencl-lang.c (opencl_language_data): Likewise. | |
8271 | * p-lang.c (pascal_language_data): Likewise. | |
8272 | * rust-lang.c (rust_sniff_from_mangled_name): Delete, | |
8273 | implementation moves to... | |
8274 | (rust_language::sniff_from_mangled_name): ...here. | |
8275 | (rust_language_data): Delete la_sniff_from_mangled_name | |
8276 | initializer. | |
8277 | * symtab.c (symbol_find_demangled_name): Call | |
8278 | sniff_from_mangled_name member function. | |
8279 | ||
fb8006fd AB |
8280 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
8281 | ||
8282 | * ada-lang.c (ada_language_data): Delete la_search_name_hash | |
8283 | initializer. | |
8284 | * c-lang.c (c_language_data): Likewise. | |
8285 | (cplus_language_data): Likewise. | |
8286 | (cplus_language::search_name_hash): New member function. | |
8287 | (asm_language_data): Delete la_search_name_hash initializer. | |
8288 | (minimal_language_data): Likewise. | |
8289 | * d-lang.c (d_language_data): Likewise. | |
8290 | * dictionary.c (default_search_name_hash): Rename to... | |
8291 | (language_defn::search_name_hash): ...this. | |
8292 | * f-lang.c (f_language_data): Likewise. | |
8293 | (f_language::search_name_hash): New member function. | |
8294 | * go-lang.c (go_language_data): Delete la_search_name_hash | |
8295 | initializer. | |
8296 | * language.c (unknown_language_data): Likewise. | |
8297 | (auto_language_data): Likewise. | |
8298 | * language.h (struct language_data): Delete la_search_name_hash | |
8299 | field. | |
8300 | (language_defn::search_name_hash): Declare new member function. | |
8301 | (default_search_name_hash): Delete declaration. | |
8302 | * m2-lang.c (m2_language_data): Delete la_search_name_hash | |
8303 | initializer. | |
8304 | * objc-lang.c (objc_language_data): Likewise. | |
8305 | * opencl-lang.c (opencl_language_data): Likewise. | |
8306 | * p-lang.c (pascal_language_data): Likewise. | |
8307 | * rust-lang.c (rust_language_data): Likewise. | |
8308 | * symtab.c (search_name_hash): Update call. | |
8309 | ||
8e25bafe AB |
8310 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
8311 | ||
8312 | * ada-lang.c (ada_language_data): Delete la_get_compile_instance | |
8313 | initializer. | |
8314 | * c-lang.c (class compile_instance): Declare. | |
8315 | (c_language_data): Delete la_get_compile_instance initializer. | |
8316 | (c_language::get_compile_instance): New member function. | |
8317 | (cplus_language_data): Delete la_get_compile_instance initializer. | |
8318 | (cplus_language::get_compile_instance): New member function. | |
8319 | (asm_language_data): Delete la_get_compile_instance initializer. | |
8320 | (minimal_language_data): Likewise. | |
8321 | * c-lang.h (c_get_compile_context): Update comment. | |
8322 | (cplus_get_compile_context): Update comment. | |
8323 | * compile/compile.c (compile_to_object): Update calls, don't rely | |
8324 | on function pointer being NULL. | |
8325 | * d-lang.c (d_language_data): Delete la_get_compile_instance | |
8326 | initializer. | |
8327 | * f-lang.c (f_language_data): Likewise. | |
8328 | * go-lang.c (go_language_data): Likewise. | |
8329 | * language.c (unknown_language_data): Likewise. | |
8330 | (auto_language_data): Likewise. | |
8331 | * language.h (language_data): Delete la_get_compile_instance field. | |
8332 | (language_defn::get_compile_instance): New member function. | |
8333 | * m2-lang.c (m2_language_data): Delete la_get_compile_instance | |
8334 | initializer. | |
8335 | * objc-lang.c (objc_language_data): Likewise. | |
8336 | * opencl-lang.c (opencl_language_data): Likewise. | |
8337 | * p-lang.c (pascal_language_data): Likewise. | |
8338 | * rust-lang.c (rust_language_data): Likewise. | |
8339 | ||
4009ee92 AB |
8340 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
8341 | ||
8342 | * ada-lang.c (ada_add_all_symbols): Update comment. | |
8343 | (ada_iterate_over_symbols): Delete, move implementation to... | |
8344 | (ada_language::iterate_over_symbols): ...here, a new member | |
8345 | function, rewrite to use range based for loop. | |
8346 | (ada_language_data): Delete la_iterate_over_symbols initializer. | |
8347 | * c-lang.c (c_language_data): Likewise. | |
8348 | (cplus_language_data): Likewise. | |
8349 | (asm_language_data): Likewise. | |
8350 | (minimal_language_data): Likewise. | |
8351 | * d-lang.c (d_language_data): Likewise. | |
8352 | * f-lang.c (f_language_data): Likewise. | |
8353 | * go-lang.c (go_language_data): Likewise. | |
8354 | * language.c (unknown_language_data): Likewise. | |
8355 | (auto_language_data): Likewise. | |
8356 | * language.h (language_data): Delete la_iterate_over_symbols field. | |
8357 | (language_defn::iterate_over_symbols): New member function. | |
8358 | (LA_ITERATE_OVER_SYMBOLS): Update. | |
8359 | * linespec.c (iterate_over_all_matching_symtabs): Update. | |
8360 | * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols | |
8361 | initializer. | |
8362 | * objc-lang.c (objc_language_data): Likewise. | |
8363 | * opencl-lang.c (opencl_language_data): Likewise. | |
8364 | * p-lang.c (pascal_language_data): Likewise. | |
8365 | * rust-lang.c (rust_language_data): Likewise. | |
8366 | ||
54f4ca46 AB |
8367 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
8368 | ||
8369 | * ada-lang.c (ada_language_data): Delete | |
8370 | la_lookup_transparent_type initializer. | |
8371 | * c-lang.c (c_language_data): Likewise. | |
8372 | (cplus_language_data): Likewise. | |
8373 | (cplus_language::lookup_transparent_type): New member function. | |
8374 | (asm_language_data): Delete la_lookup_transparent_type | |
8375 | initializer. | |
8376 | (minimal_language_data): Likewise. | |
8377 | * d-lang.c (d_language_data): Likewise. | |
8378 | * f-lang.c (f_language_data): Likewise. | |
8379 | * go-lang.c (go_language_data): Likewise. | |
8380 | * language.c (unknown_language_data): Likewise. | |
8381 | (auto_language_data): Likewise. | |
8382 | * language.h (struct language_data): Delete | |
8383 | la_lookup_transparent_type field. | |
8384 | (language_defn::lookup_transparent_type): New member function. | |
8385 | * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type | |
8386 | initializer. | |
8387 | * objc-lang.c (objc_language_data): Likewise. | |
8388 | * opencl-lang.c (opencl_language_data): Likewise. | |
8389 | * p-lang.c (pascal_language_data): Likewise. | |
8390 | * rust-lang.c (rust_language_data): Likewise. | |
8391 | * symtab.c (symbol_matches_domain): Update call. | |
8392 | ||
1fb314aa AB |
8393 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
8394 | ||
8395 | * ada-lang.c (ada_language_arch_info): Delete function, move | |
8396 | implementation to... | |
8397 | (ada_language::language_arch_info): ...here, a new member | |
8398 | function. | |
8399 | (ada_language_data): Delete la_language_arch_info. | |
8400 | * c-lang.c (c_language_data): Likewise. | |
8401 | (c_language::language_arch_info): New member function. | |
8402 | (cplus_language_arch_info): Delete function, move | |
8403 | implementation to... | |
8404 | (cplus_language::language_arch_info): ...here, a new member | |
8405 | function. | |
8406 | (cplus_language_data): Delete la_language_arch_info. | |
8407 | (asm_language_data): Likewise. | |
8408 | (asm_language::language_arch_info): New member function. | |
8409 | (minimal_language_data): Delete la_language_arch_info. | |
8410 | (minimal_language::language_arch_info): New member function. | |
8411 | * d-lang.c (d_language_arch_info): Delete function, move | |
8412 | implementation to... | |
8413 | (d_language::language_arch_info): ...here, a new member | |
8414 | function. | |
8415 | (d_language_data): Delete la_language_arch_info. | |
8416 | * f-lang.c (f_language_arch_info): Delete function, move | |
8417 | implementation to... | |
8418 | (f_language::language_arch_info): ...here, a new member | |
8419 | function. | |
8420 | (f_language_data): Delete la_language_arch_info. | |
8421 | * go-lang.c (go_language_arch_info): Delete function, move | |
8422 | implementation to... | |
8423 | (go_language::language_arch_info): ...here, a new member | |
8424 | function. | |
8425 | (go_language_data): Delete la_language_arch_info. | |
8426 | * language.c (unknown_language_data): Likewise. | |
8427 | (unknown_language::language_arch_info): New member function. | |
8428 | (auto_language_data): Delete la_language_arch_info. | |
8429 | (auto_language::language_arch_info): New member function. | |
8430 | (language_gdbarch_post_init): Update call to | |
8431 | la_language_arch_info. | |
8432 | * language.h (language_data): Delete la_language_arch_info | |
8433 | function pointer. | |
8434 | (language_defn::language_arch_info): New function. | |
8435 | * m2-lang.c (m2_language_arch_info): Delete function, move | |
8436 | implementation to... | |
8437 | (m2_language::language_arch_info): ...here, a new member | |
8438 | function. | |
8439 | (m2_language_data): Delete la_language_arch_info. | |
8440 | * objc-lang.c (objc_language_arch_info): Delete function, move | |
8441 | implementation to... | |
8442 | (objc_language::language_arch_info): ...here, a new member | |
8443 | function. | |
8444 | (objc_language_data): Delete la_language_arch_info. | |
8445 | * opencl-lang.c (opencl_language_arch_info): Delete function, move | |
8446 | implementation to... | |
8447 | (opencl_language::language_arch_info): ...here, a new member | |
8448 | function. | |
8449 | (opencl_language_data): Delete la_language_arch_info. | |
8450 | * p-lang.c (pascal_language_arch_info): Delete function, move | |
8451 | implementation to... | |
8452 | (pascal_language::language_arch_info): ...here, a new member | |
8453 | function. | |
8454 | (pascal_language_data): Delete la_language_arch_info. | |
8455 | * rust-lang.c (rust_language_arch_info): Delete function, move | |
8456 | implementation to... | |
8457 | (rust_language::language_arch_info): ...here, a new member | |
8458 | function. | |
8459 | (rust_language_data): Delete la_language_arch_info. | |
8460 | ||
48448202 AB |
8461 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
8462 | ||
8463 | * ada-lang.c (ada_language_data): Delete la_pass_by_reference | |
8464 | initializer. | |
8465 | * c-lang.c (c_language_data): Likewise. | |
8466 | (cplus_language_data): Likewise. | |
8467 | (cplus_language::pass_by_reference_info): New method. | |
8468 | (asm_language_data): Delete la_pass_by_reference initializer. | |
8469 | (minimal_language_data): Likewise. | |
8470 | * cp-abi.c (cp_pass_by_reference): Remove use of | |
8471 | default_pass_by_reference. | |
8472 | * d-lang.c (d_language_data): Likewise. | |
8473 | * f-lang.c (f_language_data): Likewise. | |
8474 | * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of | |
8475 | default_pass_by_reference. | |
8476 | * go-lang.c (go_language_data): Likewise. | |
8477 | * language.c (language_pass_by_reference): Update. | |
8478 | (default_pass_by_reference): Delete. | |
8479 | (unknown_language_data): Delete la_pass_by_reference | |
8480 | initializer. | |
8481 | (auto_language_data): Likewise. | |
8482 | * language.h (struct language_data): Delete la_pass_by_reference | |
8483 | field. | |
8484 | (language_defn::pass_by_reference_info): New member function. | |
8485 | (default_pass_by_reference): Delete declaration. | |
8486 | * m2-lang.c (m2_language_data): Delete la_pass_by_reference | |
8487 | initializer. | |
8488 | * objc-lang.c (objc_language_data): Likewise. | |
8489 | * opencl-lang.c (opencl_language_data): Likewise. | |
8490 | * p-lang.c (pascal_language_data): Likewise. | |
8491 | * rust-lang.c (rust_language_data): Likewise. | |
8492 | ||
15e5fd35 AB |
8493 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
8494 | ||
8495 | * ada-lang.c (ada_read_var_value): Delete function, move | |
8496 | implementation to... | |
8497 | (ada_language::read_var_value): ...here. | |
8498 | (ada_language_data): Delete la_read_var_value initializer. | |
8499 | * c-lang.c (c_language_data): Likewise. | |
8500 | (cplus_language_data): Likewise. | |
8501 | (minimal_language_data): Likewise. | |
8502 | * d-lang.c (d_language_data): Likewise. | |
8503 | * f-lang.c (f_language_data): Likewise. | |
8504 | * findvar.c (default_read_var_value): Rename to... | |
8505 | (language_defn::read_var_value): ...this. | |
8506 | * findvar.c (read_var_value): Update header comment, and change to | |
8507 | call member function instead of function pointer. | |
8508 | * go-lang.c (go_language_data): Likewise. | |
8509 | * language.c (unknown_language_data): Delete la_read_var_value | |
8510 | initializer. | |
8511 | (auto_language_data): Likewise. | |
8512 | * language.h (struct language_data): Delete la_read_var_value | |
8513 | field. | |
8514 | (language_defn::read_var_value): New member function. | |
8515 | (default_read_var_value): Delete declaration. | |
8516 | * m2-lang.c (m2_language_data): Delete la_read_var_value | |
8517 | initializer. | |
8518 | * objc-lang.c (objc_language_data): Likewise. | |
8519 | * opencl-lang.c (opencl_language_data): Likewise. | |
8520 | * p-lang.c (pascal_language_data): Likewise. | |
8521 | * rust-lang.c (rust_language_data): Likewise. | |
8522 | * value.h (default_read_var_value): Delete declaration. | |
8523 | ||
5bd40f2a AB |
8524 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
8525 | ||
8526 | * ada-lang.c (ada_print_array_index): Delete function, move | |
8527 | implementation to... | |
8528 | (ada_language::print_array_index): ...here. | |
8529 | (ada_language_data): Delete la_print_array_index initializer. | |
8530 | * c-lang.c (c_language_data): Likewise. | |
8531 | (cplus_language_data): Likewise. | |
8532 | (minimal_language_data): Likewise. | |
8533 | * d-lang.c (d_language_data): Likewise. | |
8534 | * f-lang.c (f_language_data): Likewise. | |
8535 | * go-lang.c (go_language_data): Likewise. | |
8536 | * language.c (default_print_array_index): Delete function, move | |
8537 | implementation to... | |
8538 | (language_defn::print_array_index): ...here. | |
8539 | (unknown_language_data): Delete la_print_array_index initializer. | |
8540 | (auto_language_data): Likewise. | |
8541 | * language.h (struct language_data): Delete la_print_array_index | |
8542 | field. | |
8543 | (language_defn::print_array_index): New member function. | |
8544 | (LA_PRINT_ARRAY_INDEX): Update. | |
8545 | (default_print_array_index): Delete declaration. | |
8546 | * m2-lang.c (m2_language_data): Delete la_print_array_index | |
8547 | initializer. | |
8548 | * objc-lang.c (objc_language_data): Likewise. | |
8549 | * opencl-lang.c (opencl_language_data): Likewise. | |
8550 | * p-lang.c (pascal_language_data): Likewise. | |
8551 | * rust-lang.c (rust_language_data): Likewise. | |
8552 | ||
0874fd07 AB |
8553 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
8554 | ||
8555 | * gdb/ada-lang.c (ada_language_defn): Convert to... | |
8556 | (ada_language_data): ...this. | |
8557 | (class ada_language): New class. | |
8558 | (ada_language_defn): New static global. | |
8559 | * gdb/c-lang.c (c_language_defn): Convert to... | |
8560 | (c_language_data): ...this. | |
8561 | (class c_language): New class. | |
8562 | (c_language_defn): New static global. | |
8563 | (cplus_language_defn): Convert to... | |
8564 | (cplus_language_data): ...this. | |
8565 | (class cplus_language): New class. | |
8566 | (cplus_language_defn): New static global. | |
8567 | (asm_language_defn): Convert to... | |
8568 | (asm_language_data): ...this. | |
8569 | (class asm_language): New class. | |
8570 | (asm_language_defn): New static global. | |
8571 | (minimal_language_defn): Convert to... | |
8572 | (minimal_language_data): ...this. | |
8573 | (class minimal_language): New class. | |
8574 | (minimal_language_defn): New static global. | |
8575 | * gdb/d-lang.c (d_language_defn): Convert to... | |
8576 | (d_language_data): ...this. | |
8577 | (class d_language): New class. | |
8578 | (d_language_defn): New static global. | |
8579 | * gdb/f-lang.c (f_language_defn): Convert to... | |
8580 | (f_language_data): ...this. | |
8581 | (class f_language): New class. | |
8582 | (f_language_defn): New static global. | |
8583 | * gdb/go-lang.c (go_language_defn): Convert to... | |
8584 | (go_language_data): ...this. | |
8585 | (class go_language): New class. | |
8586 | (go_language_defn): New static global. | |
8587 | * gdb/language.c (unknown_language_defn): Remove declaration. | |
8588 | (current_language): Initialize to nullptr, real initialization is | |
8589 | moved to _initialize_language. | |
8590 | (languages): Delete global. | |
8591 | (language_defn::languages): Define. | |
8592 | (set_language_command): Use language_defn::languages. | |
8593 | (set_language): Likewise. | |
8594 | (range_error): Likewise. | |
8595 | (language_enum): Likewise. | |
8596 | (language_def): Likewise. | |
8597 | (add_set_language_command): Use language_def::languages for the | |
8598 | language list, and language_def to lookup language pointers. | |
8599 | (skip_language_trampoline): Use language_defn::languages. | |
8600 | (unknown_language_defn): Convert to... | |
8601 | (unknown_language_data): ...this. | |
8602 | (class unknown_language): New class. | |
8603 | (unknown_language_defn): New static global. | |
8604 | (auto_language_defn): Convert to... | |
8605 | (auto_language_data): ...this. | |
8606 | (class auto_language): New class. | |
8607 | (auto_language_defn): New static global. | |
8608 | (language_gdbarch_post_init): Use language_defn::languages. | |
8609 | (_initialize_language): Initialize current_language. | |
8610 | * gdb/language.h (struct language_defn): Rename to... | |
8611 | (struct language_data): ...this. | |
8612 | (struct language_defn): New. | |
8613 | (auto_language_defn): Delete. | |
8614 | (unknown_language_defn): Delete. | |
8615 | (minimal_language_defn): Delete. | |
8616 | (ada_language_defn): Delete. | |
8617 | (asm_language_defn): Delete. | |
8618 | (c_language_defn): Delete. | |
8619 | (cplus_language_defn): Delete. | |
8620 | (d_language_defn): Delete. | |
8621 | (f_language_defn): Delete. | |
8622 | (go_language_defn): Delete. | |
8623 | (m2_language_defn): Delete. | |
8624 | (objc_language_defn): Delete. | |
8625 | (opencl_language_defn): Delete. | |
8626 | (pascal_language_defn): Delete. | |
8627 | (rust_language_defn): Delete. | |
8628 | * gdb/m2-lang.c (m2_language_defn): Convert to... | |
8629 | (m2_language_data): ...this. | |
8630 | (class m2_language): New class. | |
8631 | (m2_language_defn): New static global. | |
8632 | * gdb/objc-lang.c (objc_language_defn): Convert to... | |
8633 | (objc_language_data): ...this. | |
8634 | (class objc_language): New class. | |
8635 | (objc_language_defn): New static global. | |
8636 | * gdb/opencl-lang.c (opencl_language_defn): Convert to... | |
8637 | (opencl_language_data): ...this. | |
8638 | (class opencl_language): New class. | |
8639 | (opencl_language_defn): New static global. | |
8640 | * gdb/p-lang.c (pascal_language_defn): Convert to... | |
8641 | (pascal_language_data): ...this. | |
8642 | (class pascal_language): New class. | |
8643 | (pascal_language_defn): New static global. | |
8644 | * gdb/rust-exp.y (rust_lex_tests): Use language_def to find | |
8645 | language pointer, update comment format. | |
8646 | * gdb/rust-lang.c (rust_language_defn): Convert to... | |
8647 | (rust_language_data): ...this. | |
8648 | (class rust_language): New class. | |
8649 | (rust_language_defn): New static global. | |
8650 | ||
1313c56e AB |
8651 | 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com> |
8652 | ||
8653 | * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New | |
8654 | member variable. | |
8655 | <m_stmt_at_address>: New member variable. | |
8656 | (lnp_state_machine::record_line): Don't record some lines, update | |
8657 | tracking of is_stmt at the same address. | |
8658 | (lnp_state_machine::lnp_state_machine): Initialise new member | |
8659 | variables. | |
8660 | ||
b7ed9f3d ST |
8661 | 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org> |
8662 | ||
8663 | * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add | |
8664 | "-include gnu-nat-mig.h". | |
8665 | * gnu-nat-mig.h: New file. | |
8666 | * gnu-nat.c: Include "gnu-nat-mig.h". | |
8667 | (exc_server, msg_reply_server, notify_server, | |
8668 | process_reply_server): Remove declarations. | |
8669 | ||
14a8ad62 ST |
8670 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
8671 | ||
8672 | * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced, | |
8673 | steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup, | |
8674 | inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports, | |
8675 | inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports, | |
8676 | inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread, | |
8677 | inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal, | |
8678 | inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc, | |
8679 | proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port, | |
8680 | proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions | |
8681 | to gnu_nat_target class. | |
8682 | * gnu-nat.c: Likewise. | |
8683 | (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd, | |
8684 | set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd, | |
8685 | set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target | |
8686 | object. | |
8687 | (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this' | |
8688 | instead of `gnu_target'. | |
8689 | ||
0af5e106 ST |
8690 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
8691 | ||
8692 | * i386-gnu-tdep.c: Include "gdbcore.h" | |
8693 | (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays. | |
8694 | (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL, | |
8695 | I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros | |
8696 | (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p, | |
8697 | i386_gnu_sigcontext_addr): New functions | |
8698 | (i386gnu_init_abi): Register i386_gnu_sigtramp_p, | |
8699 | i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch | |
8700 | tdep. | |
8701 | ||
078f2fc9 ST |
8702 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
8703 | ||
8704 | * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call | |
8705 | before fork_inferior call. Avoid calling it if target_is_pushed returns | |
8706 | true. | |
8707 | ||
53dff92c ST |
8708 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
8709 | ||
8710 | * gnu-nat.h (gnu_target): New variable declaration. | |
8711 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize | |
8712 | gnu_target. | |
8713 | * gnu-nat.c (gnu_target): New variable. | |
8714 | (inf_validate_procs): Pass gnu_target to thread_change_ptid, | |
8715 | add_thread_silent, and add_thread calls. | |
8716 | (gnu_nat_target::create_inferior): Pass gnu_target to | |
8717 | add_thread_silent, thread_change_ptid call. | |
8718 | (gnu_nat_target::detach): Pass gnu_target to detach_inferior | |
8719 | call. | |
8720 | ||
5a8b8627 ST |
8721 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
8722 | ||
8723 | * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable. | |
8724 | (gnu_nat_target::find_memory_regions): Remove unused | |
8725 | `old_address' variable. | |
8726 | ||
366f550a ST |
8727 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
8728 | ||
8729 | * gnu-nat.c: Include "gdbarch.h". | |
8730 | ||
f14871bf ST |
8731 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
8732 | ||
8733 | * reply_mig_hack.awk (Error return): Cast function through | |
8734 | void *, to bypass compiler function call check. | |
8735 | ||
c6887cfb ST |
8736 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
8737 | ||
8738 | * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on | |
8739 | $(srcdir)/reply_mig_hack.awk. | |
8740 | ||
6930bffe ST |
8741 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
8742 | ||
8743 | * gnu-nat.h (gnu_debug_flag): Set type to bool. | |
8744 | ||
112c22ed JG |
8745 | 2020-05-30 Jonny Grant <jg@jguk.org> |
8746 | ||
8747 | * configure.ac (ACX_BUGURL): change bug URL to https. | |
8748 | ||
f68f85b5 PA |
8749 | 2020-05-30 Pedro Alves <palves@redhat.com> |
8750 | ||
8751 | * cp-support.c (replace_typedefs_template): New. | |
8752 | (replace_typedefs_qualified_name): Handle | |
8753 | DEMANGLE_COMPONENT_TEMPLATE. | |
8754 | ||
976ca316 SM |
8755 | 2020-05-29 Simon Marchi <simon.marchi@efficios.com> |
8756 | ||
8757 | * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c, | |
8758 | dwarf2/index-cache.h, dwarf2/index-write.c, | |
8759 | dwarf2/index-write.h, dwarf2/line-header.c, | |
8760 | dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h, | |
8761 | dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile | |
8762 | variables and fields from `dwarf2_per_objfile` to just | |
8763 | `per_objfile` throughout. | |
8764 | ||
989ade05 SM |
8765 | 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca> |
8766 | ||
8767 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
8768 | <push_dwarf_reg_entry_value>: Add comment. | |
8769 | ||
c47bae85 KB |
8770 | 2020-05-28 Kevin Buettner <kevinb@redhat.com> |
8771 | Keith Seitz <keiths@redhat.com> | |
8772 | ||
8773 | * python/python.c (do_start_initialization): Call PyEval_SaveThread | |
8774 | instead of PyEval_ReleaseLock. | |
8775 | (class gdbpy_gil): Move to earlier in file. | |
8776 | (finalize_python): Set gdb_python_initialized. | |
8777 | (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early | |
8778 | when not initialized. | |
8779 | ||
44486dcf SM |
8780 | 2020-05-28 Simon Marchi <simon.marchi@efficios.com> |
8781 | ||
8782 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
8783 | <push_dwarf_reg_entry_value>: Remove assert. Override | |
8784 | per_objfile with caller_per_objfile. | |
8785 | ||
f030440d TV |
8786 | 2020-05-28 Tom de Vries <tdevries@suse.de> |
8787 | ||
8788 | * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit | |
8789 | PR gold/15646 workaround to symbol kind "type". | |
8790 | ||
f0fbb768 TT |
8791 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
8792 | ||
8793 | * dwarf2/read.c (load_partial_dies): Use add_partial_symbol. | |
8794 | ||
af0b2a3e TT |
8795 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
8796 | ||
8797 | * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline. | |
8798 | Use htab_find_with_hash. | |
8799 | <add_abbrev>: Remove "abbrev_number" parameter. | |
8800 | * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove | |
8801 | "abbrev_number" parameter. Use htab_find_slot_with_hash. | |
8802 | (hash_abbrev): Add comment. | |
8803 | (abbrev_table::lookup_abbrev): Move to header file. | |
8804 | (abbrev_table::read): Update. | |
8805 | ||
7d00ffec TT |
8806 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
8807 | ||
8808 | * dwarf2/read.c (struct partial_die_info) <name>: Declare new | |
8809 | method. | |
8810 | <canonical_name>: New member. | |
8811 | <raw_name>: Rename from "name". | |
8812 | (partial_die_info): Initialize canonical_name. | |
8813 | (scan_partial_symbols): Check raw_name. | |
8814 | (partial_die_parent_scope, partial_die_full_name) | |
8815 | (add_partial_symbol, add_partial_subprogram) | |
8816 | (add_partial_enumeration, load_partial_dies): Use "name" method. | |
8817 | (partial_die_info::name): New method. | |
8818 | (partial_die_info::read, guess_partial_die_structure_name) | |
8819 | (partial_die_info::fixup): Update. | |
8820 | ||
697bba18 TT |
8821 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
8822 | ||
8823 | * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline. | |
8824 | <get_ref_die_offset>: Inline. | |
8825 | <get_ref_die_offset_complaint>: New method. | |
8826 | * dwarf2/attribute.c (attribute::form_is_ref): Move to header. | |
8827 | (attribute::get_ref_die_offset_complaint): Rename from | |
8828 | get_ref_die_offset. Just issue complaint. | |
8829 | ||
c17ace43 HD |
8830 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
8831 | ||
8832 | * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars. | |
8833 | ||
96445f0b HD |
8834 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
8835 | ||
8836 | * exec.c (exec_file_attach): Use errno value of first openp failure. | |
8837 | ||
ac637ec3 HD |
8838 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
8839 | ||
8840 | * nat/windows-nat.c (windows_thread_info::~windows_thread_info): | |
8841 | Don't close thread handle. | |
8842 | ||
17ee85fc TT |
8843 | 2020-05-27 Tom Tromey <tom@tromey.com> |
8844 | Simon Marchi <simon.marchi@efficios.com> | |
8845 | ||
8846 | * objfiles.h (struct objfile) <partial_symtabs>: Now a | |
8847 | shared_ptr. | |
8848 | * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New | |
8849 | member. | |
8850 | * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key, | |
8851 | dwarf2_per_bfd_objfile_data_key>: New globals. | |
8852 | (dwarf2_has_info): Use shared dwarf2_per_bfd if possible. | |
8853 | (dwarf2_get_section_info): Use get_dwarf2_per_objfile. | |
8854 | (dwarf2_initialize_objfile): Consider cases where per_bfd can be | |
8855 | shared. | |
8856 | (dwarf2_build_psymtabs): Set objfile::partial_symtabs and | |
8857 | short-circuit when sharing. | |
8858 | (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs. | |
8859 | (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units. | |
8860 | ||
39b16f87 SM |
8861 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
8862 | ||
8863 | * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move | |
8864 | to... | |
8865 | (struct dwarf2_per_objfile) <line_header_hash>: ... here. | |
8866 | * dwarf2/read.c (handle_DW_AT_stmt_list): Update. | |
8867 | ||
fcf23d5b SM |
8868 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
8869 | ||
8870 | * dwarf2/read.c (struct mapped_index_base) <symbol_name_at, | |
8871 | build_name_components, find_name_components_bounds>: | |
8872 | Add per_objfile parameter. | |
8873 | (struct mapped_index) <symbol_name_at>: Likewise. | |
8874 | (struct mapped_debug_names): Remove constructor. | |
8875 | <dwarf2_per_objfile>: Remove field. | |
8876 | <namei_to_name, symbol_name_at>: Add per_objfile parameter. | |
8877 | (mapped_index_base::find_name_components_bounds, | |
8878 | mapped_index_base::build_name_components, | |
8879 | dw2_expand_symtabs_matching_symbol): Likewise. | |
8880 | (class mock_mapped_index) <symbol_name_at>: Likewise. | |
8881 | (check_match): Likewise. | |
8882 | (check_find_bounds_finds): Likewise. | |
8883 | (test_mapped_index_find_name_component_bounds): Update. | |
8884 | (CHECK_MATCH): Update. | |
8885 | (dw2_expand_symtabs_matching): Update. | |
8886 | (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add | |
8887 | per_objfile parameter. | |
8888 | <find_vec_in_debug_names>: Likewise. | |
8889 | <m_per_objfile>: New field. | |
8890 | (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile | |
8891 | parameter. | |
8892 | (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise. | |
8893 | (dw2_debug_names_iterator::next): Update. | |
8894 | (dw2_debug_names_lookup_symbol): Update. | |
8895 | (dw2_debug_names_expand_symtabs_for_function): Update. | |
8896 | (dw2_debug_names_map_matching_symbols): Update. | |
8897 | (dw2_debug_names_expand_symtabs_matching): Update. | |
8898 | (dwarf2_read_debug_names): Update. | |
8899 | ||
7188ed02 SM |
8900 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
8901 | ||
8902 | * dwarf2/read.h (struct dwarf2_cu): Forward-declare. | |
8903 | (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove, | |
8904 | move to dwarf2_per_objfile. | |
8905 | <read_in_chain>: Remove. | |
8906 | (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu, | |
8907 | remove_all_cus, age_comp_units>: New methods. | |
8908 | <m_dwarf2_cus>: New member. | |
8909 | (struct dwarf2_per_cu_data) <cu>: Remove. | |
8910 | * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove. | |
8911 | (age_cached_comp_units, free_one_cached_comp_unit): Remove, | |
8912 | moved to methods of dwarf2_per_objfile. | |
8913 | (dwarf2_clear_marks): Remove. | |
8914 | (dwarf2_queue_item::~dwarf2_queue_item): Update. | |
8915 | (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus. | |
8916 | (dwarf2_per_bfd::free_cached_comp_units): Remove. | |
8917 | (dwarf2_per_objfile::remove_all_cus): New. | |
8918 | (class free_cached_comp_units) <~free_cached_comp_units>: | |
8919 | Update. | |
8920 | (load_cu): Update. | |
8921 | (dw2_do_instantiate_symtab): Adjust. | |
8922 | (fill_in_sig_entry_from_dwo_entry): Adjust. | |
8923 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
8924 | (cutu_reader::cutu_reader): Likewise. | |
8925 | (cutu_reader::keep): Use dwarf2_per_objfile::set_cu. | |
8926 | (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu. | |
8927 | (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu | |
8928 | and dwarf2_per_objfile::age_comp_units. | |
8929 | (load_partial_comp_unit): Update. | |
8930 | (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu. | |
8931 | (process_queue): Likewise. | |
8932 | (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu | |
8933 | backlink. | |
8934 | (dwarf2_read_addr_index): Likewise. | |
8935 | (follow_die_offset): Likewise. | |
8936 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
8937 | (dwarf2_fetch_constant_bytes): Likewise. | |
8938 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
8939 | (follow_die_sig_1): Likewise. | |
8940 | (load_full_type_unit): Likewise. | |
8941 | (read_signatured_type): Likewise. | |
8942 | (dwarf2_cu::dwarf2_cu): Don't set cu field. | |
8943 | (dwarf2_cu::~dwarf2_cu): Remove. | |
8944 | (dwarf2_per_objfile::get_cu): New. | |
8945 | (dwarf2_per_objfile::set_cu): New. | |
8946 | (age_cached_comp_units): Rename to... | |
8947 | (dwarf2_per_objfile::age_comp_units): ... this. Adjust | |
8948 | to std::unordered_map. | |
8949 | (free_one_cached_comp_unit): Rename to... | |
8950 | (dwarf2_per_objfile::remove_cu): ... this. Adjust | |
8951 | to std::unordered_map. | |
8952 | (dwarf2_per_objfile::~dwarf2_per_objfile): New. | |
8953 | (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect | |
8954 | a dwarf2_per_objfile in data. | |
8955 | (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse. | |
8956 | (dwarf2_clear_marks): Remove. | |
8957 | ||
2e671100 SM |
8958 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
8959 | ||
8960 | * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace | |
8961 | `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`. | |
8962 | (init_tu_and_read_dwo_dies): Likewise. | |
8963 | (cutu_reader::init_tu_and_read_dwo_dies): Likewise. | |
8964 | (cutu_reader::cutu_reader): Likewise. | |
8965 | (load_partial_comp_unit): Likewise. | |
8966 | (process_psymtab_comp_unit): Update. | |
8967 | (build_type_psymtabs_1): Update. | |
8968 | (process_skeletonless_type_unit): Update. | |
8969 | (load_full_comp_unit): Update. | |
8970 | (find_partial_die): Update. | |
8971 | (dwarf2_read_addr_index): Update. | |
8972 | (read_signatured_type): Update. | |
8973 | ||
2e6a9f79 SM |
8974 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
8975 | ||
8976 | * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header, | |
8977 | m_header_read_in>: New fields. | |
8978 | <get_header>: New method. | |
8979 | * dwarf2/read.c (per_cu_header_read_in): Remove. | |
8980 | (dwarf2_per_cu_data::get_header): New. | |
8981 | (dwarf2_per_cu_data::addr_size): Update. | |
8982 | (dwarf2_per_cu_data::offset_size): Update. | |
8983 | (dwarf2_per_cu_data::ref_addr_size): Update. | |
8984 | ||
1b555f17 SM |
8985 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
8986 | ||
8987 | * dwarf2/read.c (load_cu): Return dwarf2_cu. | |
8988 | (dw2_do_instantiate_symtab): Update. | |
8989 | (queue_and_load_all_dwo_tus): Change parameter from | |
8990 | dwarf2_per_cu_data to dwarf2_cu. | |
8991 | (dwarf2_fetch_die_loc_sect_off): Update. | |
8992 | (dwarf2_fetch_constant_bytes): Update. | |
8993 | (dwarf2_fetch_die_type_sect_off): Update. | |
8994 | ||
8fc0b21d SM |
8995 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
8996 | ||
8997 | * dwarf2/read.c (process_full_comp_unit, | |
8998 | process_full_type_unit): Remove per_cu, per_objfile paramters. | |
8999 | Add dwarf2_cu parameter. | |
9000 | (process_queue): Update. | |
9001 | ||
168c9250 SM |
9002 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
9003 | ||
9004 | * dwarf2/read.c (create_cu_from_index_list): Replace | |
9005 | dwarf2_per_objfile parameter with dwarf2_per_bfd. | |
9006 | (create_cus_from_index_list): Likewise. | |
9007 | (create_cus_from_index): Likewise. | |
9008 | (create_signatured_type_table_from_index): Likewise. | |
9009 | (create_cus_from_debug_names_list): Likewise. | |
9010 | (create_cus_from_debug_names): Likewise. | |
9011 | (dwarf2_read_gdb_index): Update. | |
9012 | (dwarf2_read_debug_names): Update. | |
9013 | ||
e286671b TT |
9014 | 2020-05-27 Tom Tromey <tom@tromey.com> |
9015 | Simon Marchi <simon.marchi@efficios.com> | |
9016 | ||
9017 | * dwarf2/read.h (struct dwarf2_per_objfile) | |
9018 | <get_type_for_signatured_type, set_type_for_signatured_type>: | |
9019 | New methods. | |
9020 | <m_type_map>: New member. | |
9021 | (struct signatured_type) <type>: Remove. | |
9022 | * dwarf2/read.c | |
9023 | (dwarf2_per_objfile::get_type_for_signatured_type, | |
9024 | dwarf2_per_objfile::set_type_for_signatured_type): New. | |
9025 | (get_signatured_type): Use new methods. | |
9026 | ||
8adb8487 TT |
9027 | 2020-05-27 Tom Tromey <tom@tromey.com> |
9028 | Simon Marchi <simon.marchi@efficios.com> | |
9029 | ||
9030 | * dwarf2/read.h (struct type_unit_group_unshareable): New. | |
9031 | (struct dwarf2_per_objfile) <type_units>: New member. | |
9032 | <get_type_unit_group_unshareable>: New method. | |
9033 | * dwarf2/read.c (struct type_unit_group) <compunit_symtab, | |
9034 | num_symtabs, symtabs>: Remove; move to | |
9035 | type_unit_group_unshareable. | |
9036 | (dwarf2_per_objfile::get_type_unit_group_unshareable): New. | |
9037 | (process_full_type_unit, dwarf2_cu::setup_type_unit_groups) | |
9038 | (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable. | |
9039 | ||
127bbf4b SM |
9040 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
9041 | ||
9042 | * dwarf2/read.h (struct dwarf2_per_cu_data): | |
9043 | <dwarf2_per_objfile>: Remove. | |
9044 | * dwarf2/read.c (create_cu_from_index_list): Don't assign | |
9045 | dwarf2_per_objfile. | |
9046 | (create_signatured_type_table_from_index): Likewise. | |
9047 | (create_signatured_type_table_from_debug_names): Likewise. | |
9048 | (create_debug_type_hash_table): Likewise. | |
9049 | (fill_in_sig_entry_from_dwo_entry): Likewise. | |
9050 | (create_type_unit_group): Likewise. | |
9051 | (read_comp_units_from_section): Likewise. | |
9052 | (create_cus_hash_table): Likewise. | |
9053 | ||
f6e649dd SM |
9054 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
9055 | ||
9056 | * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to | |
9057 | dwarf2_per_cu_data::dwarf2_per_objfile. | |
9058 | (compute_compunit_symtab_includes): Likewise. | |
9059 | (dwarf2_cu::start_symtab): Likewise. | |
9060 | ||
aa66c379 SM |
9061 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
9062 | ||
9063 | * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile | |
9064 | parameter. | |
9065 | * dwarf2/read.c (get_die_type_at_offset): Likewise. | |
9066 | (read_namespace_alias): Update. | |
9067 | (lookup_die_type): Update. | |
9068 | (dwarf2_get_die_type): Add dwarf2_per_objfile parameter. | |
9069 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>: | |
9070 | Update. | |
9071 | (disassemble_dwarf_expression): Update. | |
9072 | ||
120ce1b5 SM |
9073 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
9074 | ||
9075 | * dwarf2/read.h (struct dwarf2_queue_item): Add | |
9076 | dwarf2_per_objfile parameter, assign new parameter. | |
9077 | <per_objfile>: New field. | |
9078 | * dwarf2/read.c (free_one_cached_comp_unit): Add | |
9079 | dwarf2_per_objfile parameter. | |
9080 | (queue_comp_unit): Likewise. | |
9081 | (dw2_do_instantiate_symtab): Update. | |
9082 | (process_psymtab_comp_unit): Update. | |
9083 | (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter. | |
9084 | (process_imported_unit_die): Update. | |
9085 | (queue_and_load_dwo_tu): Update. | |
9086 | (follow_die_offset): Update. | |
9087 | (follow_die_sig_1): Update. | |
9088 | ||
9f47c707 SM |
9089 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
9090 | ||
9091 | * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove. | |
9092 | * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down. | |
9093 | (read_call_site_scope): Assign per_objfile. | |
9094 | (dwarf2_per_cu_data::objfile): Remove. | |
9095 | * gdbtypes.h (struct call_site) <per_objfile>: New member. | |
9096 | * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add | |
9097 | dwarf2_per_objfile parameter. | |
9098 | * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add | |
9099 | dwarf2_per_objfile parameter. | |
9100 | (dwarf_expr_reg_to_entry_parameter): Add output | |
9101 | dwarf2_per_objfile parameter. | |
9102 | (locexpr_get_frame_base): Update. | |
9103 | (class dwarf_evaluate_loc_desc) <get_tls_address>: Update. | |
9104 | <push_dwarf_reg_entry_value>: Update. | |
9105 | <call_site_to_target_addr>: Update. | |
9106 | (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile | |
9107 | parameter. | |
9108 | (value_of_dwarf_reg_entry): Update. | |
9109 | (rw_pieced_value): Update. | |
9110 | (indirect_synthetic_pointer): Update. | |
9111 | (dwarf2_evaluate_property): Update. | |
9112 | (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile | |
9113 | parameter. | |
9114 | (locexpr_read_variable): Update. | |
9115 | (locexpr_get_symbol_read_needs): Update. | |
9116 | (loclist_read_variable): Update. | |
9117 | ||
14095eb3 SM |
9118 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
9119 | ||
9120 | * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off, | |
9121 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
9122 | dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile | |
9123 | parameter. | |
9124 | * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off, | |
9125 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
9126 | dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile | |
9127 | parameter. | |
9128 | * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call, | |
9129 | sect_variable_value): Add dwarf2_per_objfile parameter. | |
9130 | (class dwarf_evaluate_loc_desc) <dwarf_call, | |
9131 | dwarf_variable_value>: Update. | |
9132 | (fetch_const_value_from_synthetic_pointer): Add | |
9133 | dwarf2_per_objfile parameter. | |
9134 | (fetch_const_value_from_synthetic_pointer): Update. | |
9135 | (coerced_pieced_ref): Update. | |
9136 | (class symbol_needs_eval_context) <dwarf_call, | |
9137 | dwarf_variable_value>: Update. | |
9138 | (dwarf2_compile_expr_to_ax): Update. | |
9139 | ||
3c3cd3d4 SM |
9140 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
9141 | ||
9142 | * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile | |
9143 | parameter. | |
9144 | (dwarf2_evaluate_loc_desc_full): Update. | |
9145 | ||
82ca3f51 SM |
9146 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
9147 | ||
9148 | * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile | |
9149 | parameter. | |
9150 | * dwarf2/read.c (dwarf2_read_addr_index): Likewise. | |
9151 | * dwarf2/loc.c (decode_debug_loclists_addresses): Add | |
9152 | dwarf2_per_objfile parameter. | |
9153 | (decode_debug_loc_dwo_addresses): Likewise. | |
9154 | (dwarf2_find_location_expression): Update. | |
9155 | (class dwarf_evaluate_loc_desc) <get_addr_index>: Update. | |
9156 | (locexpr_describe_location_piece): Add dwarf2_per_objfile | |
9157 | parameter. | |
9158 | (disassemble_dwarf_expression): Add dwarf2_per_objfile | |
9159 | parameter. | |
9160 | (locexpr_describe_location_1): Likewise. | |
9161 | (locexpr_describe_location): Update. | |
9162 | ||
4b167ea1 SM |
9163 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
9164 | ||
9165 | * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>: | |
9166 | Remove. | |
9167 | * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove. | |
9168 | * dwarf2/loc.c (dwarf2_find_location_expression): Update. | |
9169 | (dwarf2_compile_property_to_c): Update. | |
9170 | (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter, | |
9171 | use text offset from objfile. | |
9172 | (locexpr_tracepoint_var_ref): Update. | |
9173 | (locexpr_generate_c_location): Update. | |
9174 | (loclist_describe_location): Update. | |
9175 | (loclist_tracepoint_var_ref): Update. | |
9176 | * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add | |
9177 | dwarf2_per_objfile parameter. | |
9178 | * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise, | |
9179 | use text offset from objfile. | |
9180 | (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter. | |
9181 | ||
89b07335 SM |
9182 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
9183 | ||
9184 | * dwarf2/expr.h (struct dwarf_expr_context) | |
9185 | <dwarf_expr_context>: Add dwarf2_per_objfile parameter. | |
9186 | <offset>: Remove. | |
9187 | <per_objfile>: New member. | |
9188 | * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add | |
9189 | dwarf2_per_objfile parameter. Don't set offset, set | |
9190 | per_objfile. | |
9191 | (dwarf_expr_context::execute_stack_op): Use offset from objfile. | |
9192 | * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter) | |
9193 | a dwarf2_per_objfile object instead of an offset. | |
9194 | (class dwarf_expr_executor) <dwarf_expr_executor>: Add | |
9195 | constructor. | |
9196 | (execute_stack_op): Add dwarf2_per_objfile parameter, pass it | |
9197 | to dwarf2_expr_executor constructor. Don't set offset. | |
9198 | (dwarf2_fetch_cfa_info): Update. | |
9199 | (struct dwarf2_frame_cache) <text_offset>: Remove. | |
9200 | <per_objfile>: New field. | |
9201 | (dwarf2_frame_cache): Update. | |
9202 | (dwarf2_frame_prev_register): Update. | |
9203 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
9204 | <dwarf_evaluate_loc_desc>: Add constructor. | |
9205 | (dwarf2_evaluate_loc_desc_full): Update. | |
9206 | (dwarf2_locexpr_baton_eval): Update. | |
9207 | (class symbol_needs_eval_context) <symbol_needs_eval_context>: | |
9208 | Add constructor. | |
9209 | (dwarf2_loc_desc_get_symbol_read_needs): Update. | |
9210 | ||
293e7e51 SM |
9211 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
9212 | ||
9213 | * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type, | |
9214 | addr_sized_int_type>: Move to dwarf2_cu. | |
9215 | <int_type>: Move to dwarf2_per_objfile. | |
9216 | (struct dwarf2_per_objfile) <int_type>: Move here. | |
9217 | * dwarf2/read.c (struct dwarf2_cu) <addr_type, | |
9218 | addr_sized_int_type>: Move here. | |
9219 | (read_func_scope): Update. | |
9220 | (read_array_type): Update. | |
9221 | (read_tag_string_type): Update. | |
9222 | (attr_to_dynamic_prop): Update. | |
9223 | (dwarf2_per_cu_data::int_type): Rename to... | |
9224 | (dwarf2_per_objfile::int_type): ... this. | |
9225 | (dwarf2_per_cu_data::addr_sized_int_type): Rename to... | |
9226 | (dwarf2_cu::addr_sized_int_type): ... this. | |
9227 | (read_subrange_type): Update. | |
9228 | (dwarf2_per_cu_data::addr_type): Rename to... | |
9229 | (dwarf2_cu::addr_type): ... this. | |
9230 | (set_die_type): Update. | |
9231 | ||
64874a40 SM |
9232 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
9233 | ||
9234 | * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile | |
9235 | data through per_cu->cu. | |
9236 | ||
4ab09049 SM |
9237 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
9238 | ||
9239 | * dwarf2/read.c (lookup_dwo_comp_unit): Change | |
9240 | dwarf2_per_cu_data parameter fo dwarf2_cu. | |
9241 | (lookup_dwo_type_unit): Likewise. | |
9242 | (read_cutu_die_from_dwo): Likewise. | |
9243 | (lookup_dwo_unit): Likewise. | |
9244 | (open_and_init_dwo_file): Likewise. | |
9245 | (lookup_dwo_cutu): Likewise. | |
9246 | (lookup_dwo_comp_unit): Likewise. | |
9247 | (lookup_dwo_type_unit): Likewise. | |
9248 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
9249 | (cutu_reader::cutu_reader): Update. | |
9250 | ||
47b14e86 SM |
9251 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
9252 | ||
9253 | * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile | |
9254 | parameter. | |
9255 | (process_full_type_unit): Likewise. | |
9256 | (process_queue): Update. | |
9257 | ||
43182c09 SM |
9258 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
9259 | ||
9260 | * dwarf2/read.c (recursively_compute_inclusions): Add | |
9261 | dwarf2_per_objfile parameter. | |
9262 | (compute_compunit_symtab_includes): Likewise. | |
9263 | (process_cu_includes): Update. | |
9264 | ||
7aa104c4 SM |
9265 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
9266 | ||
9267 | * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile | |
9268 | parameter. | |
9269 | (create_type_unit_group): Update. | |
9270 | (process_psymtab_comp_unit_reader): Update. | |
9271 | (build_type_psymtabs_reader): Update. | |
9272 | ||
e3beb21d SM |
9273 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
9274 | ||
9275 | * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile | |
9276 | object through m_this_cu->cu. | |
9277 | ||
d460f660 SM |
9278 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
9279 | ||
9280 | * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as | |
9281 | the info parameter. | |
9282 | (queue_and_load_all_dwo_tus): Pass per_cu->cu. | |
9283 | ||
ab432490 SM |
9284 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
9285 | ||
9286 | * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add | |
9287 | per_objfile parameter. | |
9288 | (load_full_type_unit): Add per_objfile parameter. | |
9289 | (read_signatured_type): Likewise. | |
9290 | (load_full_comp_unit): Likewise. | |
9291 | (load_cu): Likewise. | |
9292 | (dw2_do_instantiate_symtab): Likewise. | |
9293 | (dw2_get_file_names): Likewise. | |
9294 | (dw2_map_symtabs_matching_filename): Update. | |
9295 | (dw_expand_symtabs_matching_file_matcher): Update. | |
9296 | (dw2_map_symbol_filenames): Update. | |
9297 | (process_psymtab_comp_unit): Add per_objfile parameter. | |
9298 | (build_type_psymtabs_1): Update. | |
9299 | (process_skeletonless_type_unit): Update. | |
9300 | (dwarf2_build_psymtabs_hard): Update. | |
9301 | (load_partial_comp_unit): Add per_objfile parameter. | |
9302 | (scan_partial_symbols): Update. | |
9303 | (load_full_comp_unit): Add per_objfile parameter. | |
9304 | (process_imported_unit_die): Update. | |
9305 | (create_cus_hash_table): Update. | |
9306 | (find_partial_die): Update. | |
9307 | (dwarf2_read_addr_index): Update. | |
9308 | (follow_die_offset): Update. | |
9309 | (dwarf2_fetch_die_loc_sect_off): Update. | |
9310 | (dwarf2_fetch_constant_bytes): Update. | |
9311 | (dwarf2_fetch_die_type_sect_off): Update. | |
9312 | (follow_die_sig_1): Update. | |
9313 | (load_full_type_unit): Add per_objfile parameter. | |
9314 | (read_signatured_type): Likewise. | |
9315 | ||
313bad1b SM |
9316 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
9317 | ||
9318 | * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead | |
9319 | of objfile_name. | |
9320 | ||
c3699833 SM |
9321 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
9322 | ||
9323 | * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member. | |
9324 | (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd. | |
9325 | * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd | |
9326 | field. | |
9327 | (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd. | |
9328 | (create_cus_from_index): Update. | |
9329 | (dwarf2_read_gdb_index): Update. | |
9330 | (create_cus_from_debug_names): Update. | |
9331 | (dwarf2_read_debug_names): Update. | |
9332 | (get_abbrev_section_for_cu): Update. | |
9333 | (create_all_comp_units): Update. | |
9334 | (read_attribute_value): Update. | |
9335 | (get_debug_line_section): Update. | |
9336 | * dwarf2/index-cache.c (index_cache::store): Update. | |
9337 | * dwarf2/index-write.c (save_gdb_index_command): Update. | |
9338 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Update. | |
9339 | ||
1859c670 SM |
9340 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
9341 | ||
9342 | * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New | |
9343 | member. | |
9344 | * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize | |
9345 | dwarf2_per_cu_data::per_bfd. | |
9346 | (dwarf2_per_bfd::allocate_signatured_type): Likewise. | |
9347 | (create_type_unit_group): Likewise. | |
9348 | (queue_comp_unit): Remove reference to | |
9349 | per_cu->dwarf2_per_objfile. | |
9350 | (maybe_queue_comp_unit): Likewise. | |
9351 | (fill_in_sig_entry_from_dwo_entry): Assign new field. | |
9352 | (create_cus_hash_table): Assign new field. | |
9353 | ||
5e22e966 SM |
9354 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
9355 | ||
9356 | * dwarf2/read.c: Replace | |
9357 | dwarf2_cu->per_cu->dwarf2_per_objfile references with | |
9358 | dwarf2_cu->per_objfile throughout. | |
9359 | ||
97a1449a SM |
9360 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
9361 | ||
9362 | * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile | |
9363 | parameter, don't use per_cu->dwarf2_per_objfile. | |
9364 | (dw2_instantiate_symtab): Likewise. | |
9365 | (dw2_find_last_source_symtab): Update. | |
9366 | (dw2_map_expand_apply): Update. | |
9367 | (dw2_lookup_symbol): Update. | |
9368 | (dw2_expand_symtabs_for_function): Update. | |
9369 | (dw2_expand_all_symtabs): Update. | |
9370 | (dw2_expand_symtabs_with_fullname): Update. | |
9371 | (dw2_expand_symtabs_matching_one): Add per_objfile parameter, | |
9372 | don't use per_cu->dwarf2_per_objfile. | |
9373 | (dw2_expand_marked_cus): Update. | |
9374 | (dw2_find_pc_sect_compunit_symtab): Update. | |
9375 | (dw2_debug_names_lookup_symbol): Update. | |
9376 | (dw2_debug_names_expand_symtabs_for_function): Update. | |
9377 | (dw2_debug_names_map_matching_symbols): Update. | |
9378 | (dwarf2_psymtab::expand_psymtab): Update. | |
9379 | ||
9e021579 SM |
9380 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
9381 | ||
9382 | * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter. | |
9383 | <per_objfile>: New member. | |
9384 | (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter. | |
9385 | (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update | |
9386 | call to dwarf2_cu. | |
9387 | (cutu_reader::cutu_reader): Update. | |
9388 | (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile. | |
9389 | ||
ae090bdb SM |
9390 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
9391 | ||
9392 | * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to | |
9393 | struct dwarf2_per_objfile. | |
9394 | (struct dwarf2_per_objfile) <die_type_hash>: Move from struct | |
9395 | dwarf2_per_bfd. | |
9396 | * dwarf2/read.c (set_die_type): Update. | |
9397 | (get_die_type_at_offset): Update. | |
9398 | ||
af758d11 SM |
9399 | 2020-05-27 Tom Tromey <tom@tromey.com> |
9400 | Simon Marchi <simon.marchi@efficios.com> | |
9401 | ||
9402 | * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New | |
9403 | method. | |
9404 | (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p, | |
9405 | get_symtab, set_symtab>: New methods. | |
9406 | <m_symtabs>: New field. | |
9407 | (struct dwarf2_psymtab): Derive from partial_symtab. | |
9408 | <readin_p, get_compunit_symtab>: Declare methods. | |
9409 | * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p, | |
9410 | dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab): | |
9411 | New methods. | |
9412 | (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove. | |
9413 | (dw2_do_instantiate_symtab, dw2_instantiate_symtab) | |
9414 | (dw2_map_expand_apply, dw2_map_symtabs_matching_filename) | |
9415 | (dw2_symtab_iter_next, dw2_print_stats) | |
9416 | (dw2_expand_symtabs_with_fullname) | |
9417 | (dw2_expand_symtabs_matching_one) | |
9418 | (dw_expand_symtabs_matching_file_matcher) | |
9419 | (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames) | |
9420 | (dw2_debug_names_iterator::next) | |
9421 | (dw2_debug_names_map_matching_symbols) | |
9422 | (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab) | |
9423 | (process_queue, dwarf2_psymtab::expand_psymtab): Update. | |
9424 | (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab): | |
9425 | New methods. | |
9426 | (get_compunit_symtab, process_full_comp_unit) | |
9427 | (process_full_type_unit): Update. | |
9428 | (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call | |
9429 | ||
5989a64e SM |
9430 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
9431 | ||
9432 | * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd, | |
9433 | then introduce a new dwarf2_per_objfile type. | |
9434 | <read_line_string>: Move to the new dwarf2_per_objfile type. | |
9435 | <objfile>: Likewise. | |
9436 | (dwarf2_per_bfd): Rename dwarf2_per_objfile to this. | |
9437 | * dwarf2/read.c: Replace references to dwarf2_per_objfile with | |
9438 | dwarf2_per_objfile->per_bfd. | |
9439 | (dwarf2_per_objfile::dwarf2_per_objfile): Rename to... | |
9440 | (dwarf2_per_bfd::dwarf2_per_bfd): ... this. | |
9441 | (dwarf2_per_objfile::free_cached_comp_units): Rename to... | |
9442 | (dwarf2_per_bfd::free_cached_comp_units): ... this. | |
9443 | (dwarf2_has_info): Allocate dwarf2_per_bfd. | |
9444 | (dwarf2_per_objfile::locate_sections): Rename to... | |
9445 | (dwarf2_per_bfd::locate_sections): ... this. | |
9446 | (dwarf2_per_objfile::get_cutu): Rename to... | |
9447 | (dwarf2_per_bfd::get_cutu): ... this. | |
9448 | (dwarf2_per_objfile::get_cu): Rename to... | |
9449 | (dwarf2_per_bfd::get_cu): ... this. | |
9450 | (dwarf2_per_objfile::get_tu): Rename to... | |
9451 | (dwarf2_per_bfd::get_tu): ... this. | |
9452 | (dwarf2_per_objfile::allocate_per_cu): Rename to... | |
9453 | (dwarf2_per_bfd::allocate_per_cu): ... this. | |
9454 | (dwarf2_per_objfile::allocate_signatured_type): Rename to... | |
9455 | (dwarf2_per_bfd::allocate_signatured_type): ... this. | |
9456 | (get_gdb_index_contents_ftype): Change parameter from | |
9457 | dwarf2_per_objfile to dwarf2_per_bfd. | |
9458 | * dwarf2/macro.c, dwarf2/index-write.c: Replace references to | |
9459 | dwarf2_per_objfile with dwarf2_per_objfile->per_bfd. | |
9460 | ||
a50264ba TT |
9461 | 2020-05-27 Tom Tromey <tom@tromey.com> |
9462 | Simon Marchi <simon.marchi@efficios.com> | |
9463 | ||
9464 | * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member. | |
9465 | (allocate_piece_closure): Set "per_objfile" member. | |
9466 | (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval) | |
9467 | (locexpr_describe_location, loclist_describe_location): Use new | |
9468 | member. | |
9469 | * dwarf2/read.c (read_call_site_scope) | |
9470 | (mark_common_block_symbol_computed, attr_to_dynamic_prop) | |
9471 | (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off) | |
9472 | (fill_in_loclist_baton, dwarf2_symbol_mark_computed, | |
9473 | handle_data_member_location): Set per_objfile member. | |
9474 | * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New | |
9475 | member. | |
9476 | (struct dwarf2_loclist_baton) <per_objfile>: New member. | |
9477 | ||
d3473f0c TT |
9478 | 2020-05-27 Tom Tromey <tom@tromey.com> |
9479 | ||
9480 | * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu, | |
9481 | allocate_signatured_type>: Declare new methods. | |
9482 | <m_num_psymtabs>: New member. | |
9483 | (struct dwarf2_per_cu_data) <index>: New member. | |
9484 | * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu) | |
9485 | (dwarf2_per_objfile::allocate_signatured_type): New methods. | |
9486 | (create_cu_from_index_list): Use allocate_per_cu. | |
9487 | (create_signatured_type_table_from_index) | |
9488 | (create_signatured_type_table_from_debug_names) | |
9489 | (create_debug_type_hash_table, add_type_unit) | |
9490 | (read_comp_units_from_section): Use allocate_signatured_type. | |
9491 | ||
5717c425 TT |
9492 | 2020-05-27 Tom Tromey <tom@tromey.com> |
9493 | ||
9494 | * psymtab.c (partial_map_expand_apply) | |
9495 | (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol) | |
9496 | (psym_lookup_global_symbol_language) | |
9497 | (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab) | |
9498 | (psym_print_stats, psym_expand_symtabs_for_function) | |
9499 | (psym_map_symbol_filenames, psym_map_matching_symbols) | |
9500 | (psym_expand_symtabs_matching) | |
9501 | (partial_symtab::read_dependencies, maintenance_info_psymtabs) | |
9502 | (maintenance_check_psymtabs): Update. | |
9503 | * psympriv.h (struct partial_symtab) <readin_p, | |
9504 | get_compunit_symtab>: Add objfile parameter. | |
9505 | (struct standard_psymtab) <readin_p, get_compunit_symtab>: | |
9506 | Likewise. | |
9507 | * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p, | |
9508 | get_compunit_symtab>: Likewise. | |
9509 | (dwarf2_psymtab::expand_psymtab): Pass objfile argument. | |
9510 | ||
45940949 TT |
9511 | 2020-05-27 Tom Tromey <tom@tromey.com> |
9512 | ||
9513 | * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New | |
9514 | member. | |
9515 | * dwarf2/read.c (delete_file_name_entry): Fix comment. | |
9516 | (create_cu_from_index_list) | |
9517 | (create_signatured_type_table_from_index) | |
9518 | (create_signatured_type_table_from_debug_names) | |
9519 | (dw2_get_file_names_reader, dwarf2_initialize_objfile) | |
9520 | (dwarf2_create_include_psymtab) | |
9521 | (create_debug_type_hash_table, add_type_unit) | |
9522 | (create_type_unit_group, read_comp_units_from_section) | |
9523 | (dwarf2_compute_name, create_cus_hash_table) | |
9524 | (create_dwp_hash_table, create_dwo_unit_in_dwp_v1) | |
9525 | (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new | |
9526 | obstack. | |
9527 | (dw2_get_real_path): Likewise. Change argument to | |
9528 | dwarf2_per_objfile. | |
9529 | ||
f8c6d152 LM |
9530 | 2020-05-27 Luis Machado <luis.machado@linaro.org> |
9531 | ||
9532 | PR tdep/26000 | |
9533 | * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching | |
9534 | for ldrd (immediate). | |
9535 | ||
e98d2e6d PW |
9536 | 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
9537 | ||
9538 | * command.h: Add comment giving the name of class_tui. | |
9539 | * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined, | |
9540 | create the fake command for the help for class_tui. | |
9541 | ||
53a47a3e TT |
9542 | 2020-05-26 Tom Tromey <tromey@adacore.com> |
9543 | ||
9544 | * ada-lang.c (ada_print_array_index): Change type. Call val_atr. | |
9545 | (ada_value_ptr_subscript): Don't call pos_atr on the lower bound. | |
9546 | (val_atr): New function. | |
9547 | (value_val_atr): Use it. | |
9548 | * ada-valprint.c (print_optional_low_bound): Change low bound | |
9549 | handling for enums. | |
9550 | (val_print_packed_array_elements): Don't call discrete_position. | |
9551 | * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call | |
9552 | discrete_position for enum types. | |
9553 | * language.c (default_print_array_index): Change type. | |
9554 | * language.h (struct language_defn) <la_print_array_index>: Add | |
9555 | index_type parameter, change type of index_value. | |
9556 | (LA_PRINT_ARRAY_INDEX): Add index_type parameter. | |
9557 | (default_print_array_index): Update. | |
9558 | * valprint.c (maybe_print_array_index): Don't call | |
9559 | value_from_longest. Update. | |
9560 | (value_print_array_elements): Don't call discrete_position. | |
9561 | ||
0bc2354b TT |
9562 | 2020-05-26 Tom Tromey <tromey@adacore.com> |
9563 | ||
9564 | * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE. | |
9565 | * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE. | |
9566 | ||
1218a4bf CDA |
9567 | 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com> |
9568 | ||
9569 | PR gdb/13519 | |
9570 | * avr-tdep.c (avr_integer_to_address): Return data or code | |
9571 | address accordingly to the second 'type' argument of the | |
9572 | function. | |
9573 | ||
92651b1d MW |
9574 | 2020-05-25 Michael Weghorn <m.weghorn@posteo.de> |
9575 | ||
9576 | * infcmd.c, inferior.h: (construct_inferior_arguments): | |
9577 | Moved function from here to gdbsupport/common-inferior.{h,cc} | |
9578 | ||
0a4f5f8c TT |
9579 | 2020-05-23 Tom Tromey <tom@tromey.com> |
9580 | ||
9581 | Revert commit eca1f90c: | |
9582 | * NEWS: Remove entry for completion styling. | |
9583 | * completer.c (_rl_completion_prefix_display_length): Move | |
9584 | declaration later. | |
9585 | (gdb_fnprint): Revert. | |
9586 | (gdb_display_match_list_1): Likewise. | |
9587 | * cli/cli-style.c (completion_prefix_style) | |
9588 | (completion_difference_style, completion_suffix_style): Remove. | |
9589 | (_initialize_cli_style): Revert. | |
9590 | * cli/cli-style.h (completion_prefix_style) | |
9591 | (completion_difference_style, completion_suffix_style): Don't | |
9592 | declare. | |
9593 | ||
e08bd6c5 PA |
9594 | 2020-05-24 Pedro Alves <palves@redhat.com> |
9595 | ||
9596 | * symtab.c (completion_list_add_name): Return boolean indication | |
9597 | of whether the symbol matched. | |
9598 | (completion_list_add_symbol): Don't try to remove C++ aliases if | |
9599 | the symbol didn't match in the first place. | |
9600 | * symtab.h (completion_list_add_name): Return bool. | |
9601 | ||
ceacbf6e SM |
9602 | 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca> |
9603 | ||
9604 | * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with | |
9605 | type::field. | |
9606 | ||
26f16254 JB |
9607 | 2020-05-23 Joel Brobecker <brobecker@adacore.com> |
9608 | ||
9609 | GDB 9.2 released. | |
9610 | ||
eca1f90c TT |
9611 | 2020-05-23 Tom Tromey <tom@tromey.com> |
9612 | ||
9613 | * NEWS: Add entry for completion styling. | |
9614 | * completer.c (_rl_completion_prefix_display_length): Move | |
9615 | declaration earlier. | |
9616 | (gdb_fnprint): Use completion_style. | |
9617 | (gdb_display_match_list_1): Likewise. | |
9618 | * cli/cli-style.c (completion_prefix_style) | |
9619 | (completion_difference_style, completion_suffix_style): New | |
9620 | globals. | |
9621 | (_initialize_cli_style): Register new globals. | |
9622 | * cli/cli-style.h (completion_prefix_style) | |
9623 | (completion_difference_style, completion_suffix_style): Declare. | |
9624 | ||
51e2cfa2 PA |
9625 | 2020-05-23 Pedro Alves <palves@redhat.com> |
9626 | ||
9627 | * utils.c: Include "gdbsupport/gdb-safe-ctype.h". | |
9628 | (parse_escape): Use ISDIGIT instead of isdigit. | |
9629 | (puts_debug): Use gdb_isprint instead of isprint. | |
9630 | (fprintf_symbol_filtered): Use ISALNUM instead of isalnum. | |
9631 | (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use | |
9632 | ISSPACE instead of isspace. | |
9633 | (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE | |
9634 | instead of isspace. | |
9635 | (strcmp_iw_ordered): Use ISSPACE instead of isspace. | |
9636 | (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT | |
9637 | instead of isxdigit and ISDIGIT instead of isdigit. | |
9638 | ||
80fc5e77 SM |
9639 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
9640 | ||
9641 | * gdbtypes.h (struct type) <field>: New method. | |
9642 | (TYPE_FIELDS): Remove, replace all uses with either type::fields | |
9643 | or type::field. | |
9644 | ||
3cabb6b0 SM |
9645 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
9646 | ||
9647 | * gdbtypes.h (struct type) <fields, set_fields>: New methods. | |
9648 | (TYPE_FIELDS): Use type::fields. Change all call sites that | |
9649 | modify the propery to use type::set_fields instead. | |
9650 | ||
1f704f76 SM |
9651 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
9652 | ||
9653 | * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use | |
9654 | type::num_fields instead. | |
9655 | ||
5e33d5f4 SM |
9656 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
9657 | ||
9658 | * gdbtypes.h (struct type) <num_fields, set_num_fields>: New | |
9659 | methods. | |
9660 | (TYPE_NFIELDS): Use type::num_fields. Change all call sites | |
9661 | that modify the number of fields to use type::set_num_fields | |
9662 | instead. | |
9663 | ||
9392ebb3 TT |
9664 | 2020-05-22 Tom Tromey <tromey@adacore.com> |
9665 | ||
9666 | * compile/compile-object-load.h (munmap_list_free): Don't | |
9667 | declare. | |
9668 | ||
7c13f4e8 AB |
9669 | 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com> |
9670 | ||
9671 | * annotate.c (annotate_source_line): Update return type, add call | |
9672 | to update current symtab and line. | |
9673 | * annotate.h (annotate_source_line): Update return type, and | |
9674 | extend header comment. | |
9675 | * source.c (info_line_command): Check annotation_level before | |
9676 | calling annotate_source_line. | |
9677 | * stack.c (print_frame_info): If calling annotate_source_line | |
9678 | returns true, then don't print any other source line information. | |
9679 | ||
aa370940 SM |
9680 | 2020-05-21 Simon Marchi <simon.marchi@efficios.com> |
9681 | ||
9682 | * lm32-tdep.c (lm32_register_reggroup_p): Fix condition. | |
9683 | ||
84d53fa9 SM |
9684 | 2020-05-21 Simon Marchi <simon.marchi@efficios.com> |
9685 | ||
9686 | * coffread.c (patch_type): Remove NULL check before xfree. | |
9687 | * corefile.c (set_gnutarget): Likewise. | |
9688 | * cp-abi.c (set_cp_abi_as_auto_default): Likewise. | |
9689 | * exec.c (build_section_table): Likewise. | |
9690 | * remote.c (remote_target::pass_signals): Likewise. | |
9691 | * utils.c (n_spaces): Likewise. | |
9692 | * cli/cli-script.c (document_command): Likewise. | |
9693 | * i386-windows-tdep.c (core_process_module_section): Likewise. | |
9694 | * linux-fork.c (struct fork_info) <~fork_info>: Likewise. | |
9695 | ||
9d428aae SM |
9696 | 2020-05-20 Simon Marchi <simon.marchi@efficios.com> |
9697 | ||
9698 | * symfile.c (reread_symbols): Clear objfile's section_offsets | |
9699 | vector and section indices, re-compute them by calling | |
9700 | sym_offsets. | |
9701 | ||
250106a7 TT |
9702 | 2020-05-20 Tom Tromey <tromey@adacore.com> |
9703 | ||
9704 | * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove. | |
ec16513e | 9705 | (desc_one_bound, desc_index_type): Compute field name. |
250106a7 | 9706 | |
9a0bacfb TV |
9707 | 2020-05-20 Tom de Vries <tdevries@suse.de> |
9708 | ||
9709 | PR symtab/25833 | |
9710 | * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index. | |
9711 | ||
7b958a48 AM |
9712 | 2020-05-20 Alan Modra <amodra@gmail.com> |
9713 | ||
9714 | PR 25993 | |
9715 | * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for | |
9716 | bfd_set_filename. | |
9717 | * solib-aix.c (solib_aix_bfd_open): Use std::string for name | |
9718 | passed to bfd_set_filename. | |
9719 | * symfile-mem.c (add_vsyscall_page): Likewise for string | |
9720 | passed to symbol_file_add_from_memory. | |
9721 | (symbol_file_add_from_memory): Make name param a const char* and | |
9722 | don't strdup. | |
9723 | ||
c7e97679 AM |
9724 | 2020-05-20 Alan Modra <amodra@gmail.com> |
9725 | ||
9726 | * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename | |
9727 | rather than accessing bfd->filename directly. | |
9728 | * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise, | |
9729 | and use bfd_section_name. | |
9730 | * dwarf2/frame.c (decode_frame_entry): Likewise. | |
9731 | * exec.c (exec_set_section_address): Likewise. | |
9732 | * solib-aix.c (solib_aix_bfd_open): Likewise. | |
9733 | * stap-probe.c (get_stap_base_address): Likewise. | |
9734 | * symfile.c (reread_symbols): Likewise. | |
9735 | ||
563c591b TT |
9736 | 2020-05-19 Tom Tromey <tromey@adacore.com> |
9737 | ||
9738 | * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open. | |
9739 | ||
f408d82c SM |
9740 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
9741 | ||
9742 | * dwarf2/read.c (quirk_rust_enum): Allocate enough fields. | |
9743 | ||
98c59b52 PA |
9744 | 2020-05-19 Pedro Alves <palves@redhat.com> |
9745 | ||
9746 | * NEWS (set exec-file-mismatch): Adjust entry. | |
9747 | * exec.c: Include "build-id.h". | |
9748 | (validate_exec_file): Try to match build IDs instead of filenames. | |
9749 | * gdb_bfd.c (struct gdb_bfd_open_closure): New. | |
9750 | (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure | |
9751 | and pass down 'warn_if_slow'. | |
9752 | (gdb_bfd_open): Add 'warn_if_slow' parameter. Use | |
9753 | gdb_bfd_open_closure to pass it down. | |
9754 | * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter. | |
9755 | ||
4111f652 PA |
9756 | 2020-05-19 Pedro Alves <palves@redhat.com> |
9757 | ||
9758 | * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust. | |
9759 | * target.c (target_fileio_open_1): Rename to target_fileio_open | |
9760 | and make extern. Use bool. | |
9761 | (target_fileio_open, target_fileio_open_warn_if_slow): Delete. | |
9762 | (target_fileio_read_alloc_1): Adjust. | |
9763 | * target.h (target_fileio_open): Add 'warn_if_slow' parameter. | |
9764 | (target_fileio_open_warn_if_slow): Delete declaration. | |
9765 | ||
ad80db5b PA |
9766 | 2020-05-19 Pedro Alves <palves@redhat.com> |
9767 | ||
9768 | * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1. | |
9769 | Adjust all callers. | |
9770 | ||
1d6ce4d3 YS |
9771 | 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp> |
9772 | ||
9773 | * h8300-tdep.c (h8300_is_argument_spill): Change how we check | |
9774 | whether disp is negative. | |
9775 | ||
9005fbbb SM |
9776 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
9777 | ||
9778 | * symfile.h (struct symfile_segment_data) | |
9779 | <~symfile_segment_data>: Remove. | |
9780 | <segment_info>: Change to std::vector. | |
9781 | * symfile.c (default_symfile_segments): Update. | |
9782 | * elfread.c (elf_symfile_segments): Update. | |
9783 | ||
68b888ff SM |
9784 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
9785 | ||
9786 | * symfile.h (struct symfile_segment_data) <struct segment>: New. | |
9787 | <segments>: New. | |
9788 | <segment_bases, segment_sizes>: Remove. | |
9789 | * symfile.c (default_symfile_segments): Update. | |
9790 | * elfread.c (elf_symfile_segments): Update. | |
9791 | * remote.c (remote_target::get_offsets): Update. | |
9792 | * solib-target.c (solib_target_relocate_section_addresses): | |
9793 | Update. | |
9794 | ||
62982abd SM |
9795 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
9796 | ||
9797 | * symfile.h (struct symfile_segment_data): Initialize fields. | |
9798 | <~symfile_segment_data>: Add. | |
9799 | (symfile_segment_data_up): New. | |
9800 | (struct sym_fns) <sym_segments>: Return a | |
9801 | symfile_segment_data_up. | |
9802 | (default_symfile_segments): Return a symfile_segment_data_up. | |
9803 | (free_symfile_segment_data): Remove. | |
9804 | (get_symfile_segment_data): Return a symfile_segment_data_up. | |
9805 | * symfile.c (default_symfile_segments): Likewise. | |
9806 | (get_symfile_segment_data): Likewise. | |
9807 | (free_symfile_segment_data): Remove. | |
9808 | (symfile_find_segment_sections): Update. | |
9809 | * elfread.c (elf_symfile_segments): Return a | |
9810 | symfile_segment_data_up. | |
9811 | * remote.c (remote_target::get_offsets): Update. | |
9812 | * solib-target.c (solib_target_relocate_section_addresses): | |
9813 | Update. | |
9814 | * symfile-debug.c (debug_sym_segments): Return a | |
9815 | symfile_segment_data_up. | |
9816 | ||
7f204339 RO |
9817 | 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
9818 | ||
e52a0f1b RO |
9819 | PR build/25981 |
9820 | * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap): | |
9821 | Hardcode register numbers. | |
9822 | ||
7f204339 RO |
9823 | PR build/25981 |
9824 | * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry, | |
9825 | procfs_find_LDT_entry): Remove. | |
9826 | * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd, | |
9827 | procfs_find_LDT_entry): Remove. | |
9828 | * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT): | |
9829 | Remove. | |
9830 | ||
7f32a4d5 PA |
9831 | 2020-05-17 Pedro Alves <palves@redhat.com> |
9832 | Andrew Burgess <andrew.burgess@embecosm.com> | |
9833 | Keno Fischer <keno@juliacomputing.com> | |
9834 | ||
9835 | PR gdb/25741 | |
9836 | * breakpoint.c (build_target_condition_list): Update comments. | |
9837 | (build_target_command_list): Update comments and skip matching | |
9838 | locations. | |
9839 | (insert_bp_location): Move "set breakpoint auto-hw on" handling to | |
9840 | a separate function. Simplify "set breakpoint auto-hw off" | |
9841 | handling. | |
9842 | (insert_breakpoints): Update comment. | |
9843 | (tracepoint_locations_match): New parameter. For breakpoints, | |
9844 | compare location types too, if the caller wants to. | |
9845 | (handle_automatic_hardware_breakpoints): New functions. | |
9846 | (bp_location_is_less_than): Also sort by location type and | |
9847 | hardware breakpoint length. | |
9848 | (update_global_location_list): Handle "set breakpoint auto-hw on" | |
9849 | here. | |
9850 | (update_breakpoint_locations): Ask breakpoint_locations_match to | |
9851 | ignore location types. | |
9852 | ||
7d93a1e0 SM |
9853 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
9854 | ||
9855 | * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use | |
9856 | type::name instead. | |
9857 | ||
d0e39ea2 SM |
9858 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
9859 | ||
9860 | * gdbtypes.h (struct type) <name, set_name>: New methods. | |
9861 | (TYPE_CODE): Use type::name. Change all call sites used to set | |
9862 | the name to use type::set_name instead. | |
9863 | ||
2dab0c7b TT |
9864 | 2020-05-16 Tom Tromey <tom@tromey.com> |
9865 | ||
9866 | * top.c (quit_force): Update. | |
9867 | * infrun.c (handle_no_resumed): Update. | |
9868 | * top.h (all_uis): New function. | |
9869 | (ALL_UIS): Remove. | |
9870 | ||
59f7bd8d SM |
9871 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
9872 | ||
9873 | * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition. | |
9874 | ||
9bf058f0 PA |
9875 | 2020-05-16 Pedro Alves <palves@redhat.com> |
9876 | ||
9877 | * ia64-linux-nat.c | |
9878 | (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>: | |
9879 | Declare method. | |
9880 | (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target. | |
9881 | ||
8f86ae1a SM |
9882 | 2020-05-15 Simon Marchi <simon.marchi@efficios.com> |
9883 | ||
9884 | * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct). | |
9885 | (sparc64_adi_info): Likewise. | |
9886 | ||
d6bc0792 TT |
9887 | 2020-05-15 Tom Tromey <tom@tromey.com> |
9888 | ||
9889 | * symtab.c (lookup_language_this, lookup_symbol_aux): Use | |
9890 | block_objfile. | |
9891 | (lookup_objfile_from_block): Remove. | |
9892 | (lookup_symbol_in_block, lookup_symbol_in_static_block) | |
9893 | (lookup_global_symbol): Use block_objfile. | |
9894 | * symtab.h (lookup_objfile_from_block): Don't declare. | |
9895 | * printcmd.c (clear_dangling_display_expressions): Use | |
9896 | block_objfile. | |
9897 | * parse.c (operator_check_standard): Use block_objfile. | |
9898 | ||
8c14c3a3 TT |
9899 | 2020-05-15 Tom Tromey <tom@tromey.com> |
9900 | ||
9901 | * language.c (language_alloc_type_symbol): Set | |
9902 | SYMBOL_SECTION. | |
9903 | * symtab.c (initialize_objfile_symbol): Remove. | |
9904 | (allocate_symbol): Remove. | |
9905 | (allocate_template_symbol): Remove. | |
9906 | * dwarf2/read.c (fixup_go_packaging): Use "new". | |
9907 | (new_symbol): Use "new". | |
9908 | (read_variable): Don't call initialize_objfile_symbol. Use | |
9909 | "new". | |
9910 | (read_func_scope): Use "new". | |
9911 | * xcoffread.c (process_xcoff_symbol): Don't call | |
9912 | initialize_objfile_symbol. | |
9913 | (SYMBOL_DUP): Remove. | |
9914 | * coffread.c (process_coff_symbol, coff_read_enum_type): Use | |
9915 | "new". | |
9916 | * symtab.h (allocate_symbol, initialize_objfile_symbol) | |
9917 | (allocate_template_symbol): Don't declare. | |
9918 | (struct symbol): Add copy constructor. Change defaults. | |
9919 | * jit.c (finalize_symtab): Use "new". | |
9920 | * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb): | |
9921 | Use "new". | |
9922 | * stabsread.c (patch_block_stabs, define_symbol, read_enum_type) | |
9923 | (common_block_end): Use "new". | |
9924 | * mdebugread.c (parse_symbol): Use "new". | |
9925 | (new_symbol): Likewise. | |
9926 | ||
5b4a1a8d PW |
9927 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
9928 | ||
9929 | * NEWS: Mention changes to help and apropos. | |
9930 | ||
57b4f16e PW |
9931 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
9932 | ||
9933 | * command.h (enum command_class): Improve comments, document | |
9934 | that class_alias is for user-defined aliases, give the class | |
9935 | name for each class, remove unused class_xdb. | |
9936 | * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage. | |
9937 | * breakpoint.c (_initialize_breakpoint): Replace class_alias | |
9938 | by a precise class. | |
9939 | * infcmd.c (_initialize_infcmd): Likewise. | |
9940 | * reverse.c (_initialize_reverse): Likewise. | |
9941 | * stack.c (_initialize_stack): Likewise. | |
9942 | * symfile.c (_initialize_symfile): Likewise. | |
9943 | * tracepoint.c (_initialize_tracepoint): Likewise. | |
9944 | ||
7c05caf7 PW |
9945 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
9946 | ||
9947 | * cli/cli-decode.c (apropos_cmd): Produce output for aliases | |
9948 | when their aliased command is traversed. | |
9949 | (help_cmd): Add fput_command_names_styled call to | |
9950 | output command name and aliases when command has an alias. | |
9951 | ||
3b3aaacb PW |
9952 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
9953 | ||
9954 | * cli/cli-decode.h (help_cmd_list): Remove declaration. | |
9955 | * cli/cli-decode.c (help_cmd_list): Declare as static, | |
9956 | remove prefix argument, use bool for recurse arg, rework to show the aliases of | |
9957 | a command together with the command. | |
9958 | (fput_command_name_styled, fput_command_names_styled): New functions. | |
9959 | (print_help_for_command): Remove prefix arg, use bool for recurse arg, use | |
9960 | fput_command_name_styled. | |
9961 | (help_list, help_all): Update callers to remove prefix arg and use bool recurse. | |
9962 | * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc. | |
9963 | ||
7aa1b46f PW |
9964 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
9965 | ||
9966 | * cli/cli-setshow.h (cmd_show_list): Remove prefix argument. | |
9967 | * cli/cli-decode.c (do_show_prefix_cmd): Likewise. | |
9968 | * command.h (cmd_show_list): Likewise. | |
9969 | * dwarf2/index-cache.c (show_index_cache_command): Likewise. | |
9970 | * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases. | |
9971 | ||
89bcba74 PW |
9972 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
9973 | ||
9974 | * unittests/command-def-selftests.c (traverse_command_structure): | |
9975 | Verify all commands of a list have the same prefix command and | |
9976 | that only the top cmdlist commands have a null prefix. | |
9977 | ||
3f4d92eb PW |
9978 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
9979 | ||
9980 | * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command | |
9981 | as prefix, not one of its aliases. | |
9982 | (set_cmd_prefix): Remove. | |
9983 | (do_add_cmd): Centralize the setting of the prefix of a command, when | |
9984 | command is defined after its full chain of prefix commands. | |
9985 | (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it. | |
9986 | (add_setshow_cmd_full): Likewise. | |
9987 | (update_prefix_field_of_prefixed_commands): New function. | |
9988 | (add_prefix_cmd): Replace non working call to set_cmd_prefix by | |
9989 | update_prefix_field_of_prefixed_commands. | |
9990 | * gdb/remote-fileio.c (initialize_remote_fileio): Use the real | |
9991 | addresses of remote_set_cmdlist and remote_show_cmdlist given | |
9992 | as argument, not the address of an argument. | |
9993 | * gdb/remote-fileio.h (initialize_remote_fileio): Likewise. | |
9994 | * gdb/remote.c (_initialize_remote): Likewise. | |
9995 | ||
0605465f PW |
9996 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
9997 | ||
9998 | * cli/cli-cmds.c (alias_command): Check for an existing alias | |
9999 | using lookup_cmd_composition, as valid_command_p is too strict | |
10000 | and forbids aliases that are the prefix of an existing alias | |
10001 | or command. | |
10002 | * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix | |
10003 | command is properly recognised as a valid command. | |
10004 | ||
58e6ac70 PW |
10005 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
10006 | ||
10007 | * unittests/help-doc-selftests.c: Rename to | |
10008 | unittests/command-def-selftests.c | |
10009 | * unittests/command-def-selftests.c (help_doc_tests): Update some | |
10010 | comments. | |
10011 | (command_structure_tests, traverse_command_structure): New namespace | |
10012 | and function. | |
10013 | (command_structure_invariants_tests): New function. | |
10014 | (_initialize_command_def_selftests) Renamed from | |
10015 | _initialize_help_doc_selftests, register command_structure_invariants | |
10016 | selftest. | |
10017 | ||
a7b9ceb8 PW |
10018 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
10019 | ||
10020 | * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as | |
10021 | an alias of 'show'. | |
10022 | ||
b2188a06 JB |
10023 | 2020-05-15 Joel Brobecker <brobecker@adacore.com> |
10024 | ||
10025 | * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames | |
10026 | ada_is_fixed_point_type. Update all callers. | |
10027 | (gnat_encoded_fixed_point_delta): Renames ada_delta. Update | |
10028 | all callers. | |
10029 | * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info. | |
10030 | Update all callers. | |
10031 | * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames | |
10032 | print_fixed_point_type. Update all callers. | |
10033 | * ada-valprint.c (ada_value_print_num): Replace call to | |
10034 | ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type. | |
10035 | ||
a51951c2 KB |
10036 | 2020-05-14 Kevin Buettner <kevinb@redhat.com> |
10037 | ||
10038 | * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD | |
10039 | processors. | |
10040 | (cpu_supports_bts): Add CV_AMD case. | |
10041 | ||
29d6859f LM |
10042 | 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com> |
10043 | Simon Marchi <simon.marchi@efficios.com> | |
10044 | ||
10045 | * infrun.c (stop_all_threads): Collect multiple wait events at | |
10046 | each pass. | |
10047 | ||
78134374 SM |
10048 | 2020-05-14 Simon Marchi <simon.marchi@efficios.com> |
10049 | ||
10050 | * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use | |
10051 | type::code instead. | |
10052 | ||
67607e24 SM |
10053 | 2020-05-14 Simon Marchi <simon.marchi@efficios.com> |
10054 | ||
10055 | * gdbtypes.h (struct type) <code, set_code>: New methods. | |
10056 | (TYPE_CODE): Use type::code. Change all call sites used to set | |
10057 | the code to use type::set_code instead. | |
10058 | ||
a05575d3 TBA |
10059 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
10060 | Tom de Vries <tdevries@suse.de> | |
10061 | Pedro Alves <palves@redhat.com> | |
10062 | ||
10063 | PR threads/25478 | |
10064 | * infrun.c (stop_all_threads): Do NOT ignore | |
10065 | TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED, | |
10066 | TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses | |
10067 | received. | |
10068 | (handle_no_resumed): Remove code handling a live inferior with no | |
10069 | threads. | |
10070 | * remote.c (has_single_non_exited_thread): New. | |
10071 | (remote_target::update_thread_list): Do not delete a thread if is | |
10072 | the last thread of the process. | |
10073 | * thread.c (thread_select): Call delete_exited_threads instead of | |
10074 | prune_threads. | |
10075 | ||
6ad82919 TBA |
10076 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
10077 | ||
10078 | * infrun.c (stop_all_threads): Enable/disable thread events of all | |
10079 | targets. Move a debug message denoting the end of the function | |
10080 | into the SCOPED_EXIT block. | |
10081 | ||
d890404b TBA |
10082 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
10083 | ||
10084 | * process-stratum-target.h: Include <set>. | |
10085 | (all_non_exited_process_targets, switch_to_target_no_thread): New | |
10086 | function declarations. | |
10087 | * process-stratum-target.c (all_non_exited_process_targets) | |
10088 | (switch_to_target_no_thread): New function implementations. | |
10089 | ||
293b3ebc TBA |
10090 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
10091 | ||
10092 | * infrun.c (handle_inferior_event): Extract out a piece of code | |
10093 | into... | |
10094 | (mark_non_executing_threads): ...this new function. | |
10095 | ||
7ca9b62a TBA |
10096 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
10097 | ||
10098 | * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first | |
10099 | use. | |
10100 | ||
fc75c28b TBA |
10101 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
10102 | ||
10103 | * regcache.c (regcache_read_pc_protected): New function | |
10104 | implementation that returns 0 if the PC cannot read via | |
10105 | 'regcache_read_pc'. | |
10106 | * infrun.c (proceed): Call 'regcache_read_pc_protected' | |
10107 | instead of 'regcache_read_pc'. | |
10108 | (keep_going_pass_signal): Ditto. | |
10109 | ||
a89febbd TT |
10110 | 2020-05-13 Tom Tromey <tromey@adacore.com> |
10111 | ||
10112 | * ada-lang.c (align_value): Remove. | |
10113 | (ada_template_to_fixed_record_type_1): Use align_up. | |
10114 | ||
f7e23710 TBA |
10115 | 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
10116 | ||
10117 | * async-event.c: Update the copyright year. | |
10118 | * async-event.h: Update the copyright year. | |
10119 | ||
02ff80c2 SM |
10120 | 2020-05-12 Simon Marchi <simon.marchi@efficios.com> |
10121 | ||
10122 | * objfiles.h (is_addr_in_objfile, | |
10123 | shared_objfile_contains_address_p): Return bool. | |
10124 | * objfile.c (is_addr_in_objfile, | |
10125 | shared_objfile_contains_address_p): Return bool. | |
10126 | ||
4fd6c7e8 TT |
10127 | 2020-05-11 Tom Tromey <tromey@adacore.com> |
10128 | ||
10129 | * cli/cli-cmds.c (info_command): Restore. | |
10130 | (_initialize_cli_cmds): Use add_prefix_command for "info". | |
10131 | * gdb-gdb.gdb.in: Restore breakpoint on info_command. | |
10132 | ||
5eb68a39 TT |
10133 | 2020-05-11 Tom Tromey <tromey@adacore.com> |
10134 | ||
10135 | * ada-lang.c (ada_value_primitive_field): Now public. | |
10136 | * ada-lang.h (ada_value_primitive_field): Declare. | |
10137 | * ada-valprint.c (print_field_values): Use | |
10138 | ada_value_primitive_field for wrapper fields. | |
10139 | ||
7666722f TV |
10140 | 2020-05-11 Tom de Vries <tdevries@suse.de> |
10141 | ||
10142 | * dwarf2/index-write.c (debug_names::psymbol_tag): Handle | |
10143 | MODULE_DOMAIN. | |
10144 | ||
3ee6bb11 TV |
10145 | 2020-05-11 Tom de Vries <tdevries@suse.de> |
10146 | ||
10147 | PR symtab/25941 | |
10148 | * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs | |
10149 | with length 0, if not gdb-produced. | |
10150 | (cutu_reader::cutu_reader): Set CU length to actual length if 0. | |
10151 | ||
43434996 TV |
10152 | 2020-05-09 Tom de Vries <tdevries@suse.de> |
10153 | ||
10154 | PR gdb/25955 | |
10155 | * break-catch-throw.c (check_status_exception_catchpoint): Fix name | |
10156 | calculation. | |
10157 | ||
2f78cffc TT |
10158 | 2020-05-09 Tom Tromey <tom@tromey.com> |
10159 | ||
10160 | * top.c (server_command): Now bool. | |
10161 | * top.h (server_command): Now bool. | |
10162 | ||
4f7bc5ed TT |
10163 | 2020-05-08 Tom Tromey <tromey@adacore.com> |
10164 | ||
10165 | * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE | |
10166 | already being processed. | |
10167 | ||
8be4b118 TT |
10168 | 2020-05-08 Tom Tromey <tom@tromey.com> |
10169 | ||
10170 | * printcmd.c (struct display) <next>: Remove. | |
10171 | <display>: New constructor. | |
10172 | <exp_string>: Now a std::string. | |
10173 | <enabled_p>: Now a bool. | |
10174 | (display_number): Move definition earlier. | |
10175 | (displays): Rename from display_chain. Now a std::vector. | |
10176 | (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove. | |
10177 | (display_command): Update. | |
10178 | (do_one_display, disable_display) | |
10179 | (enable_disable_display_command, do_enable_disable_display): | |
10180 | Update. | |
10181 | (free_display): Remove. | |
10182 | (clear_displays): Rewrite. | |
10183 | (delete_display): Update. | |
10184 | (map_display_numbers): Use function_view. Remove "data" | |
10185 | parameter. Update. | |
10186 | (do_delete_display): Remove. | |
10187 | (undisplay_command): Update. | |
10188 | (do_one_display, do_displays, disable_display) | |
10189 | (info_display_command): Update. | |
10190 | (do_enable_disable_display): Remove. | |
10191 | (enable_disable_display_command) | |
10192 | (clear_dangling_display_expressions): Update. | |
10193 | ||
94c93c35 TT |
10194 | 2020-05-08 Tom Tromey <tom@tromey.com> |
10195 | ||
10196 | * symtab.c (set_symbol_cache_size) | |
10197 | (maintenance_print_symbol_cache, maintenance_flush_symbol_cache) | |
10198 | (maintenance_print_symbol_cache_statistics): Update. | |
10199 | * symmisc.c (print_symbol_bcache_statistics) | |
10200 | (print_objfile_statistics, maintenance_print_objfiles) | |
10201 | (maintenance_info_symtabs, maintenance_check_symtabs) | |
10202 | (maintenance_expand_symtabs, maintenance_info_line_tables): | |
10203 | Update. | |
10204 | * symfile-debug.c (set_debug_symfile): Update. | |
10205 | * source.c (forget_cached_source_info): Update. | |
10206 | * python/python.c (gdbpy_progspaces): Update. | |
10207 | * psymtab.c (maintenance_info_psymtabs): Update. | |
10208 | * probe.c (parse_probes): Update. | |
10209 | * linespec.c (iterate_over_all_matching_symtabs) | |
10210 | (collect_symtabs_from_filename, search_minsyms_for_name): Update. | |
10211 | * guile/scm-progspace.c (gdbscm_progspaces): Update. | |
10212 | * exec.c (exec_target::close): Update. | |
10213 | * ada-tasks.c (ada_tasks_new_objfile_observer): Update. | |
10214 | * breakpoint.c (print_one_breakpoint_location) | |
10215 | (create_longjmp_master_breakpoint) | |
10216 | (create_std_terminate_master_breakpoint): Update. | |
10217 | * progspace.c (program_spaces): Now a std::vector. | |
10218 | (maybe_new_address_space): Update. | |
10219 | (add_program_space): Remove. | |
10220 | (program_space::program_space): Update. | |
10221 | (remove_program_space): Update. | |
10222 | (number_of_program_spaces): Remove. | |
10223 | (print_program_space, update_address_spaces): Update. | |
10224 | * progspace.h (program_spaces): Change type. | |
10225 | (ALL_PSPACES): Remove. | |
10226 | (number_of_program_spaces): Don't declare. | |
10227 | (struct program_space) <next>: Remove. | |
10228 | ||
a1fd1ac9 TT |
10229 | 2020-05-08 Tom Tromey <tom@tromey.com> |
10230 | ||
10231 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update. | |
10232 | * solib-svr4.c (svr4_fetch_objfile_link_map): Update. | |
10233 | (enable_break): Update. | |
10234 | * solib-frv.c (frv_fdpic_find_global_pointer): Update. | |
10235 | (frv_fdpic_find_canonical_descriptor): Update. | |
10236 | (frv_fetch_objfile_link_map): Update. | |
10237 | * progspace.c (program_space::free_all_objfiles): Update. | |
10238 | (program_space::solibs): New method. | |
10239 | * progspace.h (struct program_space) <solibs>: New method. | |
10240 | * solist.h (master_so_list): Don't declare. | |
10241 | (ALL_SO_LIBS): Remove. | |
10242 | * solib.h (so_list_head): Remove. | |
10243 | (update_solib_list): Update comment. | |
10244 | * solib.c (master_so_list): Remove. | |
10245 | (solib_used, update_solib_list, solib_add) | |
10246 | (info_sharedlibrary_command, clear_solib) | |
10247 | (reload_shared_libraries_1, remove_user_added_objfile): Update. | |
10248 | ||
38eae084 TT |
10249 | 2020-05-08 Tom Tromey <tom@tromey.com> |
10250 | ||
10251 | * extension.c (extension_languages): Now a std::array. | |
10252 | (ALL_EXTENSION_LANGUAGES): Remove. | |
10253 | (get_ext_lang_defn, get_ext_lang_of_file) | |
10254 | (eval_ext_lang_from_control_command): Update. | |
10255 | (finish_ext_lang_initialization) | |
10256 | (auto_load_ext_lang_scripts_for_objfile) | |
10257 | (ext_lang_type_printers::ext_lang_type_printers) | |
10258 | (apply_ext_lang_type_printers) | |
10259 | (ext_lang_type_printers::~ext_lang_type_printers) | |
10260 | (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter) | |
10261 | (preserve_ext_lang_values, get_breakpoint_cond_ext_lang) | |
10262 | (breakpoint_ext_lang_cond_says_stop, check_quit_flag) | |
10263 | (get_matching_xmethod_workers, ext_lang_colorize) | |
10264 | (ext_lang_before_prompt): Update. | |
10265 | (ALL_ENABLED_EXTENSION_LANGUAGES): Remove. | |
10266 | ||
596dc4ad TT |
10267 | 2020-05-08 Tom Tromey <tom@tromey.com> |
10268 | ||
10269 | * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New | |
10270 | overload. | |
10271 | <swap_string, m_string>: Remove. | |
10272 | * symtab.c (demangle_for_lookup, completion_list_add_symbol): | |
10273 | Update. | |
10274 | * stabsread.c (define_symbol, read_type): Update. | |
10275 | * linespec.c (find_linespec_symbols): Update. | |
10276 | * gnu-v3-abi.c (gnuv3_get_typeid): Update. | |
10277 | * dwarf2/read.c (dwarf2_canonicalize_name): Update. | |
10278 | * dbxread.c (read_dbx_symtab): Update. | |
10279 | * cp-support.h (cp_canonicalize_string_full) | |
10280 | (cp_canonicalize_string, cp_canonicalize_string_no_typedefs): | |
10281 | Return unique_xmalloc_ptr. | |
10282 | * cp-support.c (inspect_type): Update. | |
10283 | (cp_canonicalize_string_full): Return unique_xmalloc_ptr. | |
10284 | (cp_canonicalize_string_no_typedefs, cp_canonicalize_string): | |
10285 | Likewise. | |
10286 | * c-typeprint.c (print_name_maybe_canonical): Update. | |
10287 | * break-catch-throw.c (check_status_exception_catchpoint): | |
10288 | Update. | |
10289 | ||
bf4cb9be TV |
10290 | 2020-05-08 Tom de Vries <tdevries@suse.de> |
10291 | ||
10292 | * infrun.c (follow_fork): Copy current_line and current_symtab to | |
10293 | child thread. | |
10294 | ||
a1b68f28 SM |
10295 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
10296 | ||
10297 | * async-event.c (struct async_signal_handler, struct | |
10298 | async_event_handler): Reformat, remove typedef. | |
10299 | ||
98d48915 SM |
10300 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
10301 | ||
10302 | * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users | |
10303 | access thistype->main_type->dyn_prop_list directly. | |
10304 | ||
7aa91313 SM |
10305 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
10306 | ||
10307 | * gdbtypes.h (struct type) <remove_dyn_prop>: New method. | |
10308 | (remove_dyn_prop): Remove. Update all users to use | |
10309 | type::remove_dyn_prop. | |
10310 | * gdbtypes.c (remove_dyn_prop): Rename to... | |
10311 | (type::remove_dyn_prop): ... this. | |
10312 | ||
5c54719c SM |
10313 | 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> |
10314 | ||
10315 | * gdbtypes.h (struct type) <add_dyn_prop>: New method. | |
10316 | (add_dyn_prop): Remove. Update all users to use | |
10317 | type::add_dyn_prop. | |
10318 | * gdbtypes.c (add_dyn_prop): Rename to... | |
10319 | (type::add_dyn_prop): ... this. | |
10320 | ||
24e99c6c SM |
10321 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
10322 | ||
10323 | * gdbtypes.h (struct type) <get_dyn_prop>: New method. | |
10324 | (get_dyn_prop): Remove. Update all users to use | |
10325 | type::dyn_prop. | |
10326 | * gdbtypes.c (get_dyn_prop): Rename to... | |
10327 | (type::dyn_prop): ... this. | |
10328 | ||
0d4bf016 SM |
10329 | 2020-05-06 Simon Marchi <simon.marchi@efficios.com> |
10330 | ||
10331 | * gdbtypes.h (struct main_type) <flag_static>: Remove. | |
10332 | ||
ac4a4f1c SM |
10333 | 2020-05-06 Simon Marchi <simon.marchi@efficios.com> |
10334 | ||
10335 | * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64` | |
10336 | instruction, skip it if it's there. | |
10337 | ||
a3bbacc1 SM |
10338 | 2020-05-05 Simon Marchi <simon.marchi@efficios.com> |
10339 | ||
10340 | * gdbtypes.h (struct main_type) <flag_incomplete>: Remove. | |
10341 | ||
c3236f84 SM |
10342 | 2020-05-04 Simon Marchi <simon.marchi@efficios.com> |
10343 | ||
10344 | * gdbtypes.h (TYPE_INCOMPLETE): Remove. | |
10345 | * gdbtypes.c (recursive_dump_type): Remove use of | |
10346 | TYPE_INCOMPLETE. | |
10347 | ||
3b6acaee TT |
10348 | 2020-05-03 Tom Tromey <tom@tromey.com> |
10349 | ||
10350 | * breakpoint.c (catch_command, tcatch_command): Remove. | |
10351 | (_initialize_breakpoint): Use add_basic_prefix_cmd, | |
10352 | add_show_prefix_cmd. | |
10353 | (set_breakpoint_cmd, show_breakpoint_cmd): Remove | |
10354 | * utils.c (set_internal_problem_cmd, show_internal_problem_cmd): | |
10355 | Remove. | |
10356 | (add_internal_problem_command): Use add_basic_prefix_cmd, | |
10357 | add_show_prefix_cmd. | |
10358 | * mips-tdep.c (set_mipsfpu_command): Remove. | |
10359 | (_initialize_mips_tdep): Use add_basic_prefix_cmd. | |
10360 | * dwarf2/index-cache.c (set_index_cache_command): Remove. | |
10361 | (_initialize_index_cache): Use add_basic_prefix_cmd. | |
10362 | * memattr.c (dummy_cmd): Remove. | |
10363 | (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd. | |
10364 | * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove. | |
10365 | (_initialize_tui_win): Use add_basic_prefix_cmd, | |
10366 | add_show_prefix_cmd. | |
10367 | * cli/cli-logging.c (set_logging_command): Remove. | |
10368 | (_initialize_cli_logging): Use add_basic_prefix_cmd, | |
10369 | add_show_prefix_cmd. | |
10370 | (show_logging_command): Remove. | |
10371 | * target.c (target_command): Remove. | |
10372 | (add_target): Use add_basic_prefix_cmd. | |
10373 | ||
a51119cd HD |
10374 | 2020-05-02 Hannes Domani <ssbssa@yahoo.de> |
10375 | ||
10376 | * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo. | |
10377 | ||
652fc23a | 10378 | 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6a6ea76a | 10379 | |
652fc23a PW |
10380 | * gdb-gdb.gdb-in: Remove breakpoint on disappeared function |
10381 | info_command. | |
10382 | ||
117539e6 KR |
10383 | 2020-04-30 Kamil Rytarowski <n54@gmx.com> |
10384 | ||
10385 | * nbsd-nat.c (nbsd_enable_proc_events) | |
10386 | (nbsd_nat_target::post_startup_inferior): Add. | |
10387 | (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'. | |
10388 | (nbsd_nat_target::update_thread_list): Rewrite. | |
10389 | (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and | |
10390 | "PTRACE_LWP_CREATE". | |
10391 | * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add. | |
10392 | ||
102e38eb | 10393 | 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6a6ea76a | 10394 | |
102e38eb PW |
10395 | * stack.c (_initialize_stack): Remove duplicated creation |
10396 | of "frame" command and "f" alias. | |
10397 | ||
ee9d1e5f HD |
10398 | 2020-04-30 Hannes Domani <ssbssa@yahoo.de> |
10399 | ||
10400 | PR gdb/18706 | |
10401 | * gdbtypes.c (check_typedef): Calculate size of array of | |
10402 | stubbed type. | |
10403 | ||
627c7fb8 HD |
10404 | 2020-04-30 Hannes Domani <ssbssa@yahoo.de> |
10405 | ||
10406 | PR gdb/15559 | |
10407 | * i386-tdep.c (i386_push_dummy_call): Call | |
10408 | i386_thiscall_push_dummy_call. | |
10409 | (i386_thiscall_push_dummy_call): New function. | |
10410 | * i386-tdep.h (i386_thiscall_push_dummy_call): Declare. | |
10411 | * i386-windows-tdep.c (i386_windows_push_dummy_call): New function. | |
10412 | (i386_windows_init_abi): Call set_gdbarch_push_dummy_call. | |
10413 | ||
ffc2844e SM |
10414 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
10415 | ||
10416 | * gdbarch.sh (do_read): Add shellcheck disable directive for | |
10417 | warning SC2162. | |
10418 | ||
1207375d SM |
10419 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
10420 | ||
10421 | * gdbarch.sh: Use ${foo:-} where shellcheck would report a | |
10422 | "referenced but not assigned" warning. | |
10423 | ||
9fdb2916 SM |
10424 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
10425 | ||
10426 | * gdbarch.sh: Remove code that sets fallbackdefault. | |
10427 | ||
759cea5e SM |
10428 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
10429 | ||
10430 | * gdbarch.sh: Use shell operators && and || instead of | |
10431 | -a and -o. | |
10432 | ||
cb02ab24 SM |
10433 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
10434 | ||
10435 | * gdbarch.sh: Use $(...) instead of `...`. | |
10436 | ||
a6fc5ffc SM |
10437 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
10438 | ||
10439 | * gdbarch.sh: Use double quotes around variables. | |
10440 | ||
8d113d13 SM |
10441 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
10442 | ||
10443 | * gdbarch.sh: Use %s with printf, instead of variables in the | |
10444 | format string. | |
10445 | ||
ed6acedd TT |
10446 | 2020-04-29 Tom Tromey <tromey@adacore.com> |
10447 | ||
10448 | PR ada/25875: | |
10449 | * dwarf2/read.c (update_enumeration_type_from_children): Compute | |
10450 | type fields here. | |
10451 | (read_enumeration_type): Call | |
10452 | update_enumeration_type_from_children later. Update comments. | |
10453 | (process_enumeration_scope): Don't create type fields. | |
10454 | ||
b68b1b58 KR |
10455 | 2020-04-29 Kamil Rytarowski <n54@gmx.com> |
10456 | ||
10457 | * nbsd-tdep.c: Include "xml-syscall.h". | |
10458 | (nbsd_init_abi): Call `set_xml_syscall_file_name'. | |
10459 | ||
f94b2e03 KR |
10460 | 2020-04-29 Kamil Rytarowski <n54@gmx.com> |
10461 | ||
10462 | * nbsd-nat.c: Include "sys/wait.h". | |
10463 | (nbsd_resume, nbsd_nat_target::resume, nbsd_wait) | |
10464 | (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint) | |
10465 | (nbsd_nat_target::remove_exec_catchpoint) | |
10466 | (nbsd_nat_target::set_syscall_catchpoint): Add. | |
10467 | * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait) | |
10468 | (nbsd_nat_target::insert_exec_catchpoint) | |
10469 | (nbsd_nat_target::remove_exec_catchpoint) | |
10470 | (nbsd_nat_target::set_syscall_catchpoint): Add. | |
10471 | * nbsd-tdep.c (nbsd_get_syscall_number): Add. | |
10472 | (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass | |
10473 | `nbsd_get_syscall_number'. | |
10474 | ||
fc49bc72 TT |
10475 | 2020-04-29 Tom Tromey <tom@tromey.com> |
10476 | ||
10477 | * stack.c (print_block_frame_labels): Remove. | |
10478 | ||
d642b692 HD |
10479 | 2020-04-29 Hannes Domani <ssbssa@yahoo.de> |
10480 | ||
10481 | PR gdb/17320 | |
10482 | * ada-valprint.c (val_print_packed_array_elements): Move array | |
10483 | end bracket to new line. | |
10484 | (ada_val_print_string): Remove extra spaces before first array | |
10485 | element. | |
10486 | * c-valprint.c (c_value_print_array): Likewise. | |
10487 | * m2-valprint.c (m2_print_array_contents): Likewise. | |
10488 | (m2_value_print_inner): Likewise. | |
10489 | * p-valprint.c (pascal_value_print_inner): Likewise. | |
10490 | * valprint.c (generic_val_print_array): Likewise. | |
10491 | (value_print_array_elements): Move first array element and array | |
10492 | end bracket to new line. | |
10493 | ||
ea90f227 TV |
10494 | 2020-04-29 Tom de Vries <tdevries@suse.de> |
10495 | ||
10496 | PR symtab/25889 | |
10497 | * linespec.c (find_method): Fix ix calculation. | |
10498 | ||
4498ef4f KR |
10499 | 2020-04-28 Kamil Rytarowski <n54@gmx.com> |
10500 | ||
10501 | * syscalls/update-netbsd.sh: New file. | |
10502 | * syscalls/netbsd.xml: Regenerate. | |
10503 | * data-directory/Makefile.in: Register `netbsd.xml' in | |
10504 | `SYSCALLS_FILES'. | |
10505 | ||
a55e30b5 SM |
10506 | 2020-04-28 Simon Marchi <simon.marchi@efficios.com> |
10507 | ||
10508 | * syscalls/update-freebsd.sh: Add double quotes. | |
10509 | ||
2b2fbab8 TT |
10510 | 2020-04-28 Tom Tromey <tom@tromey.com> |
10511 | ||
10512 | * NEWS: Update. | |
10513 | * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI. | |
10514 | (cmdpy_init): Allow class_tui. | |
10515 | ||
a65189c9 TV |
10516 | 2020-04-28 Mark Williams <mark@myosotissp.com> |
10517 | ||
10518 | PR gdb/24480 | |
10519 | * dwarf2read.c: Add missing assingments to list_in_scope when | |
10520 | start_symtab was already called. | |
10521 | ||
1b95cdb7 SM |
10522 | 2020-04-28 Simon Marchi <simon.marchi@efficios.com> |
10523 | ||
10524 | PR gdb/25881 | |
10525 | * dwarf2/read.c (offset_map_type): Use | |
10526 | gdb:hash_enum<sect_offset> as hash function. | |
10527 | ||
15cd93d0 TV |
10528 | 2020-04-28 Tom de Vries <tdevries@suse.de> |
10529 | ||
10530 | * dwarf2/read.c (process_structure_scope): Add symbol for struct decl | |
10531 | with DW_AT_signature. | |
10532 | ||
1eb39914 SM |
10533 | 2020-04-27 Simon Marchi <simon.marchi@efficios.com> |
10534 | ||
10535 | * configure.ac: Remove check for fs_base/gs_base in | |
10536 | user_regs_struct. | |
10537 | * configure: Re-generate. | |
10538 | * config.in: Re-generate. | |
10539 | * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust. | |
10540 | * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers, | |
10541 | amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust. | |
10542 | ||
991a3e2e LM |
10543 | 2020-04-27 Luis Machado <luis.machado@linaro.org> |
10544 | ||
10545 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle | |
10546 | problematic inline frame unwinding situation. | |
10547 | * frame.c (frame_id_computed_p): New function. | |
10548 | * frame.h (frame_id_computed_p): New prototype. | |
10549 | ||
361ba0e8 TT |
10550 | 2020-04-26 Tom Tromey <tom@tromey.com> |
10551 | ||
10552 | * command.h (enum command_class) <class_pseudo>: Remove. | |
10553 | ||
bc3609fd PW |
10554 | 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
10555 | ||
10556 | * cli/cli-decode.c (lookup_cmd_composition): Fix comments | |
10557 | and whitespace. | |
10558 | ||
b9771db7 KR |
10559 | 2020-04-25 Kamil Rytarowski <n54@gmx.com> |
10560 | ||
ec16513e SM |
10561 | * inf-ptrace.c (inf_ptrace_target::wait): Remove |
10562 | `PT_GET_PROCESS_STATE' block. | |
b9771db7 | 10563 | |
7151c1af TT |
10564 | 2020-04-24 Tom Tromey <tom@tromey.com> |
10565 | ||
10566 | * symtab.h (symbol_get_demangled_name): Don't declare. | |
10567 | * symtab.c (symbol_get_demangled_name): Remove. | |
10568 | (general_symbol_info::natural_name) | |
10569 | (general_symbol_info::demangled_name): Update. | |
10570 | ||
906bb4c5 TT |
10571 | 2020-04-24 Tom Tromey <tom@tromey.com> |
10572 | ||
10573 | PR rust/25025: | |
10574 | * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust. | |
10575 | ||
bcfe6157 TT |
10576 | 2020-04-24 Tom Tromey <tom@tromey.com> |
10577 | ||
10578 | PR symtab/12707: | |
10579 | * dwarf2/read.c (add_partial_symbol): Use the linkage name if it | |
10580 | exists. | |
10581 | (new_symbol): Likewise. | |
10582 | * compile/compile-object-load.c (get_out_value_type): Use | |
10583 | symbol_matches_search_name. | |
10584 | ||
f049a313 TT |
10585 | 2020-04-24 Tom Tromey <tom@tromey.com> |
10586 | ||
10587 | * dwarf2/read.c (add_partial_symbol): Do not call | |
10588 | compute_and_set_names. | |
10589 | ||
76e288d1 TT |
10590 | 2020-04-24 Tom Tromey <tom@tromey.com> |
10591 | ||
10592 | * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list | |
10593 | overload. | |
10594 | ||
2467f4f6 TT |
10595 | 2020-04-24 Tom Tromey <tom@tromey.com> |
10596 | ||
10597 | * psymtab.c (add_psymbol_to_bcache): Simplify calling convention. | |
10598 | (add_psymbol_to_list): New overload. Make old overload call new | |
10599 | one. | |
10600 | * psympriv.h (add_psymbol_to_list): New overload. | |
10601 | ||
e61108c9 TT |
10602 | 2020-04-24 Tom Tromey <tom@tromey.com> |
10603 | ||
10604 | * dwarf2/read.c (partial_die_info::read) <case | |
10605 | DW_AT_linkage_name>: Use value_as_string. | |
10606 | (dwarf2_string_attr): Use value_as_string. | |
10607 | * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare | |
10608 | method. | |
10609 | * dwarf2/attribute.c (attribute::value_as_string): New method. | |
10610 | ||
8c87a452 TT |
10611 | 2020-04-24 Tom Tromey <tom@tromey.com> |
10612 | ||
10613 | * symtab.c (general_symbol_info::natural_name) | |
10614 | (general_symbol_info::demangled_name): Check for language_rust. | |
10615 | ||
787de330 TT |
10616 | 2020-04-24 Tom Tromey <tom@tromey.com> |
10617 | ||
10618 | * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here... | |
10619 | (dwarf2_physname): ... from here. | |
10620 | (partial_die_info::read): Add Rust "{" hack. | |
10621 | ||
ff985671 TT |
10622 | 2020-04-24 Tom Tromey <tom@tromey.com> |
10623 | ||
10624 | * symtab.h (struct general_symbol_info) <set_demangled_name>: New | |
10625 | method. | |
10626 | (symbol_set_demangled_name): Don't declare. | |
10627 | * symtab.c (general_symbol_info::set_demangled_name): Rename from | |
10628 | symbol_set_demangled_name. | |
10629 | (general_symbol_info::set_language) | |
10630 | (general_symbol_info::compute_and_set_names): Update. | |
10631 | * minsyms.c (minimal_symbol_reader::install): Update. | |
10632 | * dwarf2/read.c (new_symbol): Update. | |
10633 | ||
1acda803 TT |
10634 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
10635 | ||
10636 | PR python/23662: | |
10637 | * python/py-type.c (convert_field): Handle | |
10638 | FIELD_LOC_KIND_DWARF_BLOCK. | |
10639 | (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH. | |
10640 | (typy_get_dynamic): Nw function. | |
10641 | (type_object_getset): Add "dynamic". | |
10642 | * NEWS: Add entry. | |
10643 | ||
d656f129 TT |
10644 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
10645 | ||
10646 | * ada-typeprint.c (print_choices, print_variant_part) | |
10647 | (print_record_field_types_dynamic): New functions. | |
10648 | (print_record_field_types): Use print_record_field_types_dynamic. | |
10649 | ||
7d79de9a TT |
10650 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
10651 | ||
10652 | * dwarf2/read.c (handle_data_member_location): New overload. | |
10653 | (dwarf2_add_field): Use it. | |
10654 | (decode_locdesc): Add "computed" parameter. Update comment. | |
10655 | * gdbtypes.c (is_dynamic_type_internal): Also look for | |
10656 | FIELD_LOC_KIND_DWARF_BLOCK. | |
10657 | (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK. | |
10658 | * gdbtypes.c (is_dynamic_type_internal): Add special case for C++ | |
10659 | virtual base classes. | |
10660 | * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle | |
10661 | FIELD_LOC_KIND_DWARF_BLOCK. | |
10662 | ||
f8e89861 TT |
10663 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
10664 | ||
10665 | * dwarf2/read.c (read_structure_type): Handle dynamic length. | |
10666 | * gdbtypes.c (is_dynamic_type_internal): Check | |
10667 | TYPE_HAS_DYNAMIC_LENGTH. | |
10668 | (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH. | |
10669 | * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH): | |
10670 | New macros. | |
10671 | (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New | |
10672 | constant. | |
10673 | ||
9c6a1327 TT |
10674 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
10675 | ||
10676 | * dwarf2/read.c (struct variant_field): Rewrite. | |
10677 | (struct variant_part_builder): New. | |
10678 | (struct nextfield): Remove "variant" field. Add "offset". | |
10679 | (struct field_info): Add "current_variant_part" and | |
10680 | "variant_parts". | |
10681 | (alloc_discriminant_info): Remove. | |
10682 | (alloc_rust_variant): New function. | |
10683 | (quirk_rust_enum): Update. | |
10684 | (dwarf2_add_field): Set "offset" member. Don't handle | |
10685 | DW_TAG_variant_part. | |
10686 | (offset_map_type): New typedef. | |
10687 | (convert_variant_range, create_one_variant) | |
10688 | (create_one_variant_part, create_variant_parts) | |
10689 | (add_variant_property): New functions. | |
10690 | (dwarf2_attach_fields_to_type): Call add_variant_property. | |
10691 | (read_structure_type): Don't handle DW_TAG_variant_part. | |
10692 | (handle_variant_part, handle_variant): New functions. | |
10693 | (handle_struct_member_die): Use them. | |
10694 | (process_structure_scope): Don't handle variant parts. | |
10695 | * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove. | |
10696 | (struct discriminant_info): Remove. | |
10697 | (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove. | |
10698 | (struct main_type) <flag_discriminated_union>: Remove. | |
10699 | * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite. | |
10700 | (rust_enum_variant): Return int. Remove "contents". Rewrite. | |
10701 | (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp): | |
10702 | Update. | |
10703 | * valops.c (value_union_variant): Remove. | |
10704 | * value.h (value_union_variant): Don't declare. | |
10705 | ||
b249d2c2 TT |
10706 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
10707 | ||
10708 | * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low) | |
10709 | (ada_value_primitive_packed_val): Update. | |
10710 | * ada-valprint.c (ada_value_print_1): Update. | |
10711 | * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct. | |
10712 | (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than | |
10713 | just an address. Use evaluate_for_locexpr_baton. | |
10714 | (dwarf2_evaluate_property): Update. | |
10715 | * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an | |
10716 | array_view. | |
10717 | * findvar.c (default_read_var_value): Update. | |
10718 | * gdbtypes.c (compute_variant_fields_inner) | |
10719 | (resolve_dynamic_type_internal): Update. | |
10720 | (resolve_dynamic_type): Change type of valaddr parameter. | |
10721 | * gdbtypes.h (resolve_dynamic_type): Update. | |
10722 | * valarith.c (value_subscripted_rvalue): Update. | |
10723 | * value.c (value_from_contents_and_address): Update. | |
10724 | ||
61122aa9 TT |
10725 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
10726 | ||
10727 | * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add | |
10728 | "push_initial_value" parameter. | |
10729 | (dwarf2_evaluate_property): Likewise. | |
10730 | * dwarf2/loc.h (dwarf2_evaluate_property): Update. | |
10731 | ||
ef83a141 TT |
10732 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
10733 | ||
10734 | * gdbtypes.c (is_dynamic_type_internal): Check for variant parts. | |
10735 | (variant::matches, compute_variant_fields_recurse) | |
10736 | (compute_variant_fields_inner, compute_variant_fields): New | |
10737 | functions. | |
10738 | (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS. | |
10739 | Use resolved_type after type is made. | |
10740 | (operator==): Add new cases. | |
10741 | * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro. | |
10742 | (struct discriminant_range, struct variant, struct variant_part): | |
10743 | New. | |
10744 | (union dynamic_prop_data) <variant_parts, original_type>: New | |
10745 | members. | |
10746 | (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant. | |
10747 | (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New | |
10748 | constants. | |
10749 | * value.c (unpack_bits_as_long): Now public. | |
10750 | * value.h (unpack_bits_as_long): Declare. | |
10751 | ||
675127ec TT |
10752 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
10753 | ||
10754 | * rs6000-tdep.c (struct ppc_variant): Rename from "variant". | |
10755 | (variants, find_variant_by_arch, rs6000_gdbarch_init): Update. | |
10756 | ||
9852ceef HD |
10757 | 2020-04-24 Hannes Domani <ssbssa@yahoo.de> |
10758 | ||
10759 | * windows-tdep.c (exception_values): Add WOW64 exception numbers. | |
10760 | ||
7632c6ce KR |
10761 | 2020-04-24 Kamil Rytarowski <n54@gmx.com> |
10762 | ||
10763 | * inf-ptrace.h (follow_fork, insert_fork_catchpoint) | |
10764 | (remove_fork_catchpoint, post_startup_inferior) | |
10765 | (post_attach): Move... | |
10766 | * obsd-nat.h (follow_fork, insert_fork_catchpoint) | |
10767 | (remove_fork_catchpoint, post_startup_inferior) | |
10768 | (post_attach): ...here. | |
10769 | * inf-ptrace.c (follow_fork, insert_fork_catchpoint) | |
10770 | (remove_fork_catchpoint, post_startup_inferior) | |
10771 | (post_attach): Move... | |
10772 | * obsd-nat.c (follow_fork, insert_fork_catchpoint) | |
10773 | (remove_fork_catchpoint, post_startup_inferior) | |
10774 | (post_attach): ...here. | |
10775 | ||
7be2bb4f TT |
10776 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
10777 | ||
10778 | * nat/windows-nat.h (struct windows_thread_info) | |
10779 | <pc_adjusted>: New member. | |
10780 | * windows-nat.c (windows_fetch_one_register): Check | |
10781 | pc_adjusted. | |
10782 | (windows_nat_target::get_windows_debug_event) | |
10783 | (windows_nat_target::wait): Set pc_adjusted. | |
10784 | ||
f80cb3b4 TV |
10785 | 2020-04-24 Tom de Vries <tdevries@suse.de> |
10786 | ||
10787 | * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling. | |
10788 | Run gdb-add-index inside temp dir. | |
10789 | ||
29514b87 TT |
10790 | 2020-04-23 Tom Tromey <tromey@adacore.com> |
10791 | ||
10792 | * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter" | |
10793 | in loop. | |
10794 | ||
5939967b LM |
10795 | 2020-04-23 Luis Machado <luis.machado@linaro.org> |
10796 | ||
10797 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use | |
10798 | get_frame_register instead of gdbarch_unwind_pc. | |
10799 | ||
70bc38f5 TV |
10800 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
10801 | ||
10802 | * symtab.c (lookup_global_symbol): Prefer def over decl. | |
10803 | ||
de82891c TV |
10804 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
10805 | ||
10806 | PR symtab/25807 | |
10807 | * block.c (best_symbol, better_symbol): Promote to external. | |
10808 | * block.h (best_symbol, better_symbol): Declare. | |
10809 | * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over | |
10810 | decl. | |
10811 | ||
ecc6c606 TT |
10812 | 2020-04-23 Tom Tromey <tromey@adacore.com> |
10813 | ||
10814 | PR ada/25837: | |
10815 | * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a | |
10816 | "const char *", not a "const std::string &". | |
10817 | <name_and_matcher::operator==>: Update. | |
10818 | * unittests/lookup_name_info-selftests.c: Change type of | |
10819 | "result". | |
10820 | ||
740480b8 TT |
10821 | 2020-04-23 Tom Tromey <tom@tromey.com> |
10822 | ||
10823 | * inferior.h (iterate_over_inferiors): Don't declare. | |
10824 | * inferior.c (iterate_over_inferiors): Remove. | |
10825 | * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it): | |
10826 | Remove. | |
10827 | (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't | |
10828 | use iterate_over_inferiors. | |
10829 | (darwin_resume_inferior_it) | |
10830 | (struct resume_inferior_threads_param) | |
10831 | (darwin_resume_inferior_threads_it): Remove. | |
10832 | (darwin_nat_target::resume): Don't use iterate_over_inferiors. | |
10833 | ||
ae3ab1f0 TV |
10834 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
10835 | ||
10836 | * blockframe.c (find_pc_partial_function): Use | |
10837 | find_pc_sect_compunit_symtab rather than | |
10838 | objfile->sf->qf->find_pc_sect_compunit_symtab. | |
10839 | ||
317d2668 TV |
10840 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
10841 | ||
10842 | PR symtab/25764 | |
10843 | * dwarf2/read.c (scan_partial_symbols): Allow external variable decls | |
10844 | in psymtabs. | |
10845 | ||
eea9e357 TV |
10846 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
10847 | ||
10848 | PR symtab/25801 | |
10849 | * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared | |
10850 | symtabs. | |
10851 | ||
3d5afab3 TV |
10852 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
10853 | ||
10854 | PR symtab/25700 | |
10855 | * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for | |
10856 | CU if already created. | |
10857 | ||
d43b7a2d TBA |
10858 | 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
10859 | ||
10860 | * infrun.c (displaced_step_fixup): Switch to the event_thread | |
10861 | before calling displaced_step_restore, not after. | |
10862 | ||
d89edf9b MM |
10863 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
10864 | ||
10865 | * record-btrace.c (record_btrace_enable_warn): Ignore thread if | |
10866 | its inferior is not recorded by us. | |
10867 | (record_btrace_target_open): Replace call to | |
10868 | all_non_exited_threads () with call to current_inferior | |
10869 | ()->non_exited_threads (). | |
10870 | (record_btrace_target::stop_recording): Likewise. | |
10871 | (record_btrace_target::close): Likewise. | |
10872 | (record_btrace_target::wait): Likewise. | |
10873 | (record_btrace_target::record_stop_replaying): Likewise. | |
10874 | ||
5897fd49 MM |
10875 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
10876 | ||
10877 | * btrace.c (btrace_enable): Throw an error on double enables and | |
10878 | when enabling recording fails. | |
10879 | (btrace_disable): Throw an error if the thread is not recorded. | |
10880 | ||
1a476b6d MM |
10881 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
10882 | ||
10883 | * record-btrace.c (record_btrace_target::fetch_registers): Forward | |
10884 | request if we do not have a thread_info. | |
10885 | ||
4778a5f8 TV |
10886 | 2020-04-21 Tom de Vries <tdevries@suse.de> |
10887 | ||
10888 | PR gdb/25471 | |
10889 | * thread.c | |
10890 | (scoped_restore_current_thread::scoped_restore_current_thread): Catch | |
10891 | exception in get_frame_id. | |
10892 | ||
0fa7617d TT |
10893 | 2020-04-20 Tom Tromey <tromey@adacore.com> |
10894 | ||
10895 | * python/python.c (struct gdbpy_event): Mark move constructor as | |
10896 | noexcept. | |
10897 | * python/py-tui.c (class gdbpy_tui_window_maker): Mark move | |
10898 | constructor as noexcept. | |
10899 | * completer.h (struct completion_result): Mark move constructor as | |
10900 | noexcept. | |
10901 | * completer.c (completion_result::completion_result): Use | |
10902 | initialization style. Don't call reset_match_list. | |
10903 | ||
ad23bda0 MS |
10904 | 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com> |
10905 | ||
10906 | * MAINTAINERS (Write After Approval): Add myself. | |
10907 | ||
45e1f031 TT |
10908 | 2020-04-18 Tom Tromey <tom@tromey.com> |
10909 | ||
10910 | * windows-tdep.c (init_w32_command_list) | |
10911 | (w32_prefix_command_valid): Restore. | |
10912 | (_initialize_windows_tdep): Call init_w32_command_list. | |
10913 | ||
08feed99 TT |
10914 | 2020-04-18 Tom Tromey <tom@tromey.com> |
10915 | ||
10916 | * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update. | |
10917 | * value.c (value_fn_field): Update. | |
10918 | * valops.c (find_function_in_inferior) | |
10919 | (value_allocate_space_in_inferior): Update. | |
10920 | * tui/tui-winsource.c (tui_update_source_windows_with_line): | |
10921 | Update. | |
10922 | * tui/tui-source.c (tui_source_window::set_contents): Update. | |
10923 | * symtab.c (lookup_global_or_static_symbol) | |
10924 | (find_function_start_sal_1, skip_prologue_sal) | |
10925 | (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update. | |
10926 | * symmisc.c (dump_msymbols, dump_symtab_1) | |
10927 | (maintenance_print_one_line_table): Update. | |
10928 | * symfile.c (init_entry_point_info, section_is_mapped) | |
10929 | (list_overlays_command, simple_read_overlay_table) | |
10930 | (simple_overlay_update_1): Update. | |
10931 | * stap-probe.c (handle_stap_probe): Update. | |
10932 | * stabsread.c (dbx_init_float_type, define_symbol) | |
10933 | (read_one_struct_field, read_enum_type, read_range_type): Update. | |
10934 | * source.c (info_line_command): Update. | |
10935 | * python/python.c (gdbpy_source_objfile_script) | |
10936 | (gdbpy_execute_objfile_script): Update. | |
10937 | * python/py-type.c (save_objfile_types): Update. | |
10938 | * python/py-objfile.c (py_free_objfile): Update. | |
10939 | * python/py-inferior.c (python_new_objfile): Update. | |
10940 | * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab) | |
10941 | (dump_psymtab_addrmap_1, maintenance_info_psymtabs) | |
10942 | (maintenance_check_psymtabs): Update. | |
10943 | * printcmd.c (info_address_command): Update. | |
10944 | * objfiles.h (struct objfile) <arch>: New method, from | |
10945 | get_objfile_arch. | |
10946 | (get_objfile_arch): Don't declare. | |
10947 | * objfiles.c (get_objfile_arch): Remove. | |
10948 | (filter_overlapping_sections): Update. | |
10949 | * minsyms.c (msymbol_is_function): Update. | |
10950 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines) | |
10951 | (output_nondebug_symbol): Update. | |
10952 | * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols) | |
10953 | (mdebug_expand_psymtab): Update. | |
10954 | * machoread.c (macho_add_oso_symfile): Update. | |
10955 | * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): | |
10956 | Update. | |
10957 | * linux-fork.c (checkpoint_command): Update. | |
10958 | * linespec.c (convert_linespec_to_sals): Update. | |
10959 | * jit.c (finalize_symtab): Update. | |
10960 | * infrun.c (insert_exception_resume_from_probe): Update. | |
10961 | * ia64-tdep.c (ia64_find_unwind_table): Update. | |
10962 | * hppa-tdep.c (internalize_unwinds): Update. | |
10963 | * gdbtypes.c (get_type_arch, init_float_type, objfile_type): | |
10964 | Update. | |
10965 | * gcore.c (call_target_sbrk): Update. | |
10966 | * elfread.c (record_minimal_symbol, elf_symtab_read) | |
10967 | (elf_rel_plt_read, elf_gnu_ifunc_record_cache) | |
10968 | (elf_gnu_ifunc_resolve_by_got): Update. | |
10969 | * dwarf2/read.c (create_addrmap_from_index) | |
10970 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) | |
10971 | (read_debug_names_from_section) | |
10972 | (process_psymtab_comp_unit_reader, add_partial_symbol) | |
10973 | (add_partial_subprogram, process_full_comp_unit) | |
10974 | (read_file_scope, read_func_scope, read_lexical_block_scope) | |
10975 | (read_call_site_scope, dwarf2_ranges_read) | |
10976 | (dwarf2_record_block_ranges, dwarf2_add_field) | |
10977 | (mark_common_block_symbol_computed, read_tag_pointer_type) | |
10978 | (read_tag_string_type, dwarf2_init_float_type) | |
10979 | (dwarf2_init_complex_target_type, read_base_type) | |
10980 | (partial_die_info::read, partial_die_info::read) | |
10981 | (read_attribute_value, dwarf_decode_lines_1, new_symbol) | |
10982 | (dwarf2_fetch_die_loc_sect_off): Update. | |
10983 | * dwarf2/loc.c (dwarf2_find_location_expression) | |
10984 | (class dwarf_evaluate_loc_desc, rw_pieced_value) | |
10985 | (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval) | |
10986 | (dwarf2_loc_desc_get_symbol_read_needs) | |
10987 | (locexpr_describe_location_piece, locexpr_describe_location_1) | |
10988 | (loclist_describe_location): Update. | |
10989 | * dwarf2/index-write.c (write_debug_names): Update. | |
10990 | * dwarf2/frame.c (dwarf2_build_frame_info): Update. | |
10991 | * dtrace-probe.c (dtrace_process_dof): Update. | |
10992 | * dbxread.c (read_dbx_symtab, dbx_end_psymtab) | |
10993 | (process_one_symbol): Update. | |
10994 | * ctfread.c (ctf_init_float_type, read_base_type): Update. | |
10995 | * coffread.c (coff_symtab_read, enter_linenos, decode_base_type) | |
10996 | (coff_read_enum_type): Update. | |
10997 | * cli/cli-cmds.c (edit_command, list_command): Update. | |
10998 | * buildsym.c (buildsym_compunit::finish_block_internal): Update. | |
10999 | * breakpoint.c (create_overlay_event_breakpoint) | |
11000 | (create_longjmp_master_breakpoint) | |
11001 | (create_std_terminate_master_breakpoint) | |
11002 | (create_exception_master_breakpoint, get_sal_arch): Update. | |
11003 | * block.c (block_gdbarch): Update. | |
11004 | * annotate.c (annotate_source_line): Update. | |
11005 | ||
0743fc83 TT |
11006 | 2020-04-17 Tom Tromey <tromey@adacore.com> |
11007 | ||
11008 | * auto-load.c (show_auto_load_cmd): Remove. | |
11009 | (auto_load_show_cmdlist_get): Use add_show_prefix_cmd. | |
11010 | * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd. | |
11011 | (maintenance_print_arc_command): Remove. | |
11012 | * tui/tui-win.c (tui_command): Remove. | |
11013 | (tui_get_cmd_list): Use add_basic_prefix_cmd. | |
11014 | * tui/tui-layout.c (tui_layout_command): Remove. | |
11015 | (_initialize_tui_layout): Use add_basic_prefix_cmd. | |
11016 | * python/python.c (user_set_python, user_show_python): Remove. | |
11017 | (_initialize_python): Use add_basic_prefix_cmd, | |
11018 | add_show_prefix_cmd. | |
11019 | * guile/guile.c (set_guile_command, show_guile_command): Remove. | |
11020 | (install_gdb_commands): Use add_basic_prefix_cmd, | |
11021 | add_show_prefix_cmd. | |
11022 | (info_guile_command): Remove. | |
11023 | * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove. | |
11024 | (_initialize_dwarf2_read): Use add_basic_prefix_cmd, | |
11025 | add_show_prefix_cmd. | |
11026 | * cli/cli-style.h (class cli_style_option) <add_setshow_commands>: | |
11027 | Remove do_set and do_show parameters. | |
11028 | * cli/cli-style.c (set_style, show_style): Remove. | |
11029 | (_initialize_cli_style): Use add_basic_prefix_cmd, | |
11030 | add_show_prefix_cmd. | |
11031 | (cli_style_option::add_setshow_commands): Remove do_set and | |
11032 | do_show parameters. | |
11033 | (cli_style_option::add_setshow_commands): Use | |
11034 | add_basic_prefix_cmd, add_show_prefix_cmd. | |
11035 | (STYLE_ADD_SETSHOW_COMMANDS): Remove macro. | |
11036 | (set_style_name): Remove. | |
11037 | * cli/cli-dump.c (dump_command, append_command): Remove. | |
11038 | (srec_dump_command, ihex_dump_command, verilog_dump_command) | |
11039 | (tekhex_dump_command, binary_dump_command) | |
11040 | (binary_append_command): Remove. | |
11041 | (_initialize_cli_dump): Use add_basic_prefix_cmd. | |
11042 | * windows-tdep.c (w32_prefix_command_valid): Remove global. | |
11043 | (init_w32_command_list): Remove; move into ... | |
11044 | (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd. | |
11045 | * valprint.c (set_print, show_print, set_print_raw) | |
11046 | (show_print_raw): Remove. | |
11047 | (_initialize_valprint): Use add_basic_prefix_cmd, | |
11048 | add_show_prefix_cmd. | |
11049 | * typeprint.c (set_print_type, show_print_type): Remove. | |
11050 | (_initialize_typeprint): Use add_basic_prefix_cmd, | |
11051 | add_show_prefix_cmd. | |
11052 | * record.c (set_record_command, show_record_command): Remove. | |
11053 | (_initialize_record): Use add_basic_prefix_cmd, | |
11054 | add_show_prefix_cmd. | |
11055 | * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd, | |
11056 | add_show_prefix_cmd. | |
11057 | (info_command, show_command, set_debug, show_debug): Remove. | |
11058 | * top.h (set_history, show_history): Don't declare. | |
11059 | * top.c (set_history, show_history): Remove. | |
11060 | * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd) | |
11061 | (unset_tdesc_cmd): Remove. | |
11062 | (_initialize_target_descriptions): Use add_basic_prefix_cmd, | |
11063 | add_show_prefix_cmd. | |
11064 | * symtab.c (info_module_command): Remove. | |
11065 | (_initialize_symtab): Use add_basic_prefix_cmd. | |
11066 | * symfile.c (overlay_command): Remove. | |
11067 | (_initialize_symfile): Use add_basic_prefix_cmd. | |
11068 | * sparc64-tdep.c (info_adi_command): Remove. | |
11069 | (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd. | |
11070 | * sh-tdep.c (show_sh_command, set_sh_command): Remove. | |
11071 | (_initialize_sh_tdep): Use add_basic_prefix_cmd, | |
11072 | add_show_prefix_cmd. | |
11073 | * serial.c (serial_set_cmd, serial_show_cmd): Remove. | |
11074 | (_initialize_serial): Use add_basic_prefix_cmd, | |
11075 | add_show_prefix_cmd. | |
11076 | * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove. | |
11077 | (_initialize_ser_tcp): Use add_basic_prefix_cmd, | |
11078 | add_show_prefix_cmd. | |
11079 | * rs6000-tdep.c (set_powerpc_command, show_powerpc_command) | |
11080 | (_initialize_rs6000_tdep): Use add_basic_prefix_cmd, | |
11081 | add_show_prefix_cmd. | |
11082 | * riscv-tdep.c (show_riscv_command, set_riscv_command) | |
11083 | (show_debug_riscv_command, set_debug_riscv_command): Remove. | |
11084 | (_initialize_riscv_tdep): Use add_basic_prefix_cmd, | |
11085 | add_show_prefix_cmd. | |
11086 | * remote.c (remote_command, set_remote_cmd): Remove. | |
11087 | (_initialize_remote): Use add_basic_prefix_cmd. | |
11088 | * record-full.c (set_record_full_command) | |
11089 | (show_record_full_command): Remove. | |
11090 | (_initialize_record_full): Use add_basic_prefix_cmd, | |
11091 | add_show_prefix_cmd. | |
11092 | * record-btrace.c (cmd_set_record_btrace) | |
11093 | (cmd_show_record_btrace, cmd_set_record_btrace_bts) | |
11094 | (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt) | |
11095 | (cmd_show_record_btrace_pt): Remove. | |
11096 | (_initialize_record_btrace): Use add_basic_prefix_cmd, | |
11097 | add_show_prefix_cmd. | |
11098 | * ravenscar-thread.c (set_ravenscar_command) | |
11099 | (show_ravenscar_command): Remove. | |
11100 | (_initialize_ravenscar): Use add_basic_prefix_cmd, | |
11101 | add_show_prefix_cmd. | |
11102 | * mips-tdep.c (show_mips_command, set_mips_command) | |
11103 | (_initialize_mips_tdep): Use add_basic_prefix_cmd, | |
11104 | add_show_prefix_cmd. | |
11105 | * maint.c (maintenance_command, maintenance_info_command) | |
11106 | (maintenance_check_command, maintenance_print_command) | |
11107 | (maintenance_set_cmd, maintenance_show_cmd): Remove. | |
11108 | (_initialize_maint_cmds): Use add_basic_prefix_cmd, | |
11109 | add_show_prefix_cmd. | |
11110 | (show_per_command_cmd): Remove. | |
11111 | * maint-test-settings.c (maintenance_set_test_settings_cmd): | |
11112 | Remove. | |
11113 | (maintenance_show_test_settings_cmd): Remove. | |
11114 | (_initialize_maint_test_settings): Use add_basic_prefix_cmd, | |
11115 | add_show_prefix_cmd. | |
11116 | * maint-test-options.c (maintenance_test_options_command): | |
11117 | Remove. | |
11118 | (_initialize_maint_test_options): Use add_basic_prefix_cmd. | |
11119 | * macrocmd.c (macro_command): Remove | |
11120 | (_initialize_macrocmd): Use add_basic_prefix_cmd. | |
11121 | * language.c (set_check, show_check): Remove. | |
11122 | (_initialize_language): Use add_basic_prefix_cmd, | |
11123 | add_show_prefix_cmd. | |
11124 | * infcmd.c (unset_command): Remove. | |
11125 | (_initialize_infcmd): Use add_basic_prefix_cmd. | |
11126 | * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove. | |
11127 | (_initialize_i386_tdep): Use add_basic_prefix_cmd, | |
11128 | add_show_prefix_cmd. | |
11129 | * go32-nat.c (go32_info_dos_command): Remove. | |
11130 | (_initialize_go32_nat): Use add_basic_prefix_cmd. | |
11131 | * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd) | |
11132 | (do_show_prefix_cmd, add_show_prefix_cmd): New functions. | |
11133 | * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove. | |
11134 | (_initialize_frame): Use add_basic_prefix_cmd, | |
11135 | add_show_prefix_cmd. | |
11136 | * dcache.c (set_dcache_command, show_dcache_command): Remove. | |
11137 | (_initialize_dcache): Use add_basic_prefix_cmd, | |
11138 | add_show_prefix_cmd. | |
11139 | * cp-support.c (maint_cplus_command): Remove. | |
11140 | (_initialize_cp_support): Use add_basic_prefix_cmd. | |
11141 | * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd) | |
11142 | (maint_btrace_show_cmd, maint_btrace_pt_set_cmd) | |
11143 | (maint_btrace_pt_show_cmd, _initialize_btrace): Use | |
11144 | add_basic_prefix_cmd, add_show_prefix_cmd. | |
11145 | * breakpoint.c (save_command): Remove. | |
11146 | (_initialize_breakpoint): Use add_basic_prefix_cmd. | |
11147 | * arm-tdep.c (set_arm_command, show_arm_command): Remove. | |
11148 | (_initialize_arm_tdep): Use add_basic_prefix_cmd, | |
11149 | add_show_prefix_cmd. | |
11150 | * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd) | |
11151 | (set_ada_command, show_ada_command): Remove. | |
11152 | (_initialize_ada_language): Use add_basic_prefix_cmd, | |
11153 | add_show_prefix_cmd. | |
11154 | * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare. | |
11155 | ||
3557f442 KR |
11156 | 2020-04-16 Kamil Rytarowski <n54@gmx.com> |
11157 | ||
11158 | * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove. | |
11159 | * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise. | |
11160 | ||
16197208 SM |
11161 | 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca> |
11162 | ||
11163 | * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to | |
11164 | warning messages. | |
11165 | ||
00ac85d3 SM |
11166 | 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca> |
11167 | ||
11168 | * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where | |
11169 | import table is not at beginning of .idata section. | |
11170 | ||
381ce63f PA |
11171 | 2020-04-16 Pedro Alves <palves@redhat.com> |
11172 | ||
11173 | * inferior.c (delete_inferior): Use delete operator directly | |
11174 | instead of delete_program_space. | |
11175 | * progspace.c (add_program_space): New, factored out from | |
11176 | program_space::program_space. | |
11177 | (remove_program_space): New, factored out from | |
11178 | delete_program_space. | |
11179 | (program_space::program_space): Remove intro comment. Rewrite. | |
11180 | (program_space::~program_space): Remove intro comment. Call | |
11181 | remove_program_space. | |
11182 | (delete_program_space): Delete. | |
11183 | * progspace.h (program_space::program_space): Make explicit. Move | |
11184 | intro comment here, adjusted. | |
11185 | (program_space::~program_space): Move intro comment here, | |
11186 | adjusted. | |
11187 | (delete_program_space): Remove. | |
11188 | ||
a010605f TT |
11189 | 2020-04-16 Tom Tromey <tromey@adacore.com> |
11190 | ||
11191 | * windows-nat.c (windows_nat::handle_access_violation): New | |
11192 | function. | |
11193 | * nat/windows-nat.h (handle_access_violation): Declare. | |
11194 | * nat/windows-nat.c (handle_exception): Move Cygwin code to | |
11195 | windows-nat.c. Call handle_access_violation. | |
11196 | ||
efba5c23 TV |
11197 | 2020-04-16 Tom de Vries <tdevries@suse.de> |
11198 | ||
11199 | PR symtab/25791 | |
11200 | * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for | |
11201 | CUs without psymtab. | |
11202 | ||
97ed802d KB |
11203 | 2020-04-16 Kevin Buettner <kevinb@redhat.com> |
11204 | ||
11205 | * python/python.c (do_start_initialization): Don't call | |
11206 | PyEval_InitThreads for Python 3.9 and beyond. | |
11207 | ||
c7d64809 KR |
11208 | 2020-04-15 Kamil Rytarowski <n54@gmx.com> |
11209 | ||
11210 | * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to | |
11211 | thread functions. | |
11212 | (obsd_nat_target::wait): Likewise. | |
11213 | ||
ce127a96 TT |
11214 | 2020-04-15 Tom Tromey <tromey@adacore.com> |
11215 | ||
11216 | * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM) | |
11217 | (DEBUG_EXCEPT): Use debug_printf. | |
11218 | ||
99f1bc6a AB |
11219 | 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com> |
11220 | ||
11221 | * completer.c (class completion_tracker::completion_hash_entry) | |
11222 | <hash_name>: New member function. | |
11223 | (completion_tracker::discard_completions): New callback to hash a | |
11224 | completion_hash_entry, pass this to htab_create_alloc. | |
11225 | ||
a0e9b532 JT |
11226 | 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk> |
11227 | ||
11228 | * windows-nat.c (windows_make_so): Warn rather than stopping with | |
11229 | an error if realpath() fails. | |
11230 | ||
06ca5dd4 KR |
11231 | 2020-04-14 Kamil Rytarowski <n54@gmx.com> |
11232 | ||
11233 | * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New. | |
11234 | (nbsd_nat_target::info_proc): Add do_status. | |
11235 | ||
194d088f TV |
11236 | 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca> |
11237 | Tom de Vries <tdevries@suse.de> | |
11238 | ||
11239 | PR symtab/25718 | |
11240 | * psympriv.h (struct partial_symtab::read_symtab) | |
11241 | (struct partial_symtab::expand_psymtab) | |
11242 | (struct partial_symtab::read_dependencies): Update comments. | |
11243 | * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call | |
11244 | read_symtab for includer. | |
11245 | (struct dwarf2_include_psymtab::expand_psymtab): Assert false. | |
11246 | (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer. | |
11247 | (struct dwarf2_include_psymtab::m_readin): Remove. | |
11248 | (struct dwarf2_include_psymtab::includer): New member function. | |
11249 | (dwarf2_psymtab::expand_psymtab): Assert !readin. | |
11250 | ||
c1a66c06 TV |
11251 | 2020-04-14 Tom de Vries <tdevries@suse.de> |
11252 | ||
11253 | PR symtab/25720 | |
11254 | * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching | |
11255 | with NULL symbol_matcher and lookup_name. | |
11256 | * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher | |
11257 | and lookup_name. | |
11258 | * dwarf2/read.c (dw2_expand_symtabs_matching) | |
11259 | (dw2_debug_names_expand_symtabs_matching): Same. | |
11260 | * symfile.h (struct quick_symbol_functions::expand_symtabs_matching): | |
11261 | Make lookup_name a pointer. Update comment. | |
11262 | * symtab.c (global_symbol_searcher::expand_symtabs): Handle | |
11263 | lookup_name being a pointer. | |
11264 | * symfile.c (expand_symtabs_matching): Same. | |
11265 | * symfile-debug.c (debug_qf_expand_symtabs_matching): Same. | |
11266 | * linespec.c (iterate_over_all_matching_symtabs): Same. | |
11267 | ||
400b5eca TT |
11268 | 2020-04-13 Tom Tromey <tom@tromey.com> |
11269 | ||
11270 | * run-on-main-thread.c: Update include. | |
11271 | * unittests/main-thread-selftests.c: Update include. | |
11272 | * tui/tui-win.c: Update include. | |
11273 | * tui/tui-io.c: Update include. | |
11274 | * tui/tui-interp.c: Update include. | |
11275 | * tui/tui-hooks.c: Update include. | |
11276 | * top.h: Update include. | |
11277 | * top.c: Update include. | |
11278 | * ser-base.c: Update include. | |
11279 | * remote.c: Update include. | |
11280 | * remote-notif.c: Update include. | |
11281 | * remote-fileio.c: Update include. | |
11282 | * record-full.c: Update include. | |
11283 | * record-btrace.c: Update include. | |
11284 | * python/python.c: Update include. | |
11285 | * posix-hdep.c: Update include. | |
11286 | * mingw-hdep.c: Update include. | |
11287 | * mi/mi-main.c: Update include. | |
11288 | * mi/mi-interp.c: Update include. | |
11289 | * main.c: Update include. | |
11290 | * linux-nat.c: Update include. | |
11291 | * interps.c: Update include. | |
11292 | * infrun.c: Update include. | |
11293 | * inf-loop.c: Update include. | |
11294 | * event-top.c: Update include. | |
11295 | * event-loop.c: Move to ../gdbsupport/. | |
11296 | * event-loop.h: Move to ../gdbsupport/. | |
11297 | * async-event.h: Update include. | |
11298 | * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update. | |
11299 | ||
93b54c8e TT |
11300 | 2020-04-13 Tom Tromey <tom@tromey.com> |
11301 | ||
11302 | * tui/tui-win.c: Include async-event.h. | |
11303 | * remote.c: Include async-event.h. | |
11304 | * remote-notif.c: Include async-event.h. | |
11305 | * record-full.c: Include async-event.h. | |
11306 | * record-btrace.c: Include async-event.h. | |
11307 | * infrun.c: Include async-event.h. | |
11308 | * event-top.c: Include async-event.h. | |
11309 | * event-loop.h: Move some declarations to async-event.h. | |
11310 | * event-loop.c: Don't include ser-event.h or top.h. Move some | |
11311 | code to async-event.c. | |
11312 | * async-event.h: New file. | |
11313 | * async-event.c: New file. | |
11314 | * Makefile.in (COMMON_SFILES): Add async-event.c. | |
11315 | (HFILES_NO_SRCDIR): Add async-event.h. | |
11316 | ||
c1cd3163 TT |
11317 | 2020-04-13 Tom Tromey <tom@tromey.com> |
11318 | ||
11319 | * utils.c (flush_streams): New function. | |
11320 | * event-loop.c (gdb_wait_for_event): Call flush_streams. | |
11321 | ||
29f2bf4f TT |
11322 | 2020-04-13 Tom Tromey <tom@tromey.com> |
11323 | ||
11324 | * event-loop.c (handle_file_event): Use warning, not | |
11325 | printf_unfiltered. | |
11326 | ||
98029d02 TT |
11327 | 2020-04-13 Tom Tromey <tom@tromey.com> |
11328 | ||
11329 | * event-loop.c: Include <chrono>. | |
11330 | ||
06cc9596 TT |
11331 | 2020-04-13 Tom Tromey <tom@tromey.com> |
11332 | ||
11333 | * gdb_select.h: Move to ../gdbsupport/. | |
11334 | * event-loop.c: Update include path. | |
11335 | * top.c: Update include path. | |
11336 | * ser-base.c: Update include path. | |
11337 | * ui-file.c: Update include path. | |
11338 | * ser-tcp.c: Update include path. | |
11339 | * guile/scm-ports.c: Update include path. | |
11340 | * posix-hdep.c: Update include path. | |
11341 | * ser-unix.c: Update include path. | |
11342 | * gdb_usleep.c: Update include path. | |
11343 | * mingw-hdep.c: Update include path. | |
11344 | * inflow.c: Update include path. | |
11345 | * infrun.c: Update include path. | |
11346 | * event-top.c: Update include path. | |
11347 | ||
8ae8e197 TT |
11348 | 2020-04-13 Tom Tromey <tom@tromey.com> |
11349 | ||
11350 | * configure: Rebuild. | |
11351 | * configure.ac: Remove checks that are now in GDB_AC_COMMON. | |
11352 | ||
58cf28e8 TT |
11353 | 2020-04-13 Tom Tromey <tom@tromey.com> |
11354 | ||
11355 | * event-loop.h (start_event_loop): Don't declare. | |
11356 | * event-loop.c (start_event_loop): Move... | |
11357 | * main.c (start_event_loop): ...here. Now static. | |
11358 | ||
b7f999ae SDJ |
11359 | 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net> |
11360 | ||
11361 | * MAINTAINERS: Update my email address. | |
11362 | ||
1085dfd4 KR |
11363 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
11364 | ||
11365 | * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and | |
11366 | IP_ALL. | |
11367 | ||
49d1d1f5 KR |
11368 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
11369 | ||
11370 | * nbsd-nat.c (nbsd_pid_to_cmdline): Add. | |
aac66a4c | 11371 | (nbsd_nat_target::info_proc): Add do_cmdline. |
49d1d1f5 | 11372 | |
b4848d2a KR |
11373 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
11374 | ||
11375 | * nbsd-nat.c (nbsd_pid_to_cwd): Add. | |
aac66a4c | 11376 | (nbsd_nat_target::info_proc): Add do_cwd. |
b4848d2a | 11377 | |
51c133d5 KR |
11378 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
11379 | ||
11380 | * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe. | |
11381 | ||
54b8cbd0 KR |
11382 | 2020-04-11 Kamil Rytarowski <n54@gmx.com> |
11383 | ||
11384 | * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h". | |
11385 | * nbsd-nat.c (nbsd_nat_target::find_memory_regions) | |
11386 | (nbsd_nat_target::info_proc): New functions. | |
11387 | * nbsd-nat.c (kinfo_get_vmmap): New function. | |
11388 | * nbsd-nat.c (nbsd_nat_target::info_proc) Use | |
11389 | nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry. | |
11390 | * nbsd-tdep.c (nbsd_info_proc_mappings_header) | |
11391 | (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New | |
11392 | functions. | |
11393 | * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE) | |
11394 | (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW) | |
11395 | (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP) | |
11396 | (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP) | |
11397 | (KINFO_VME_FLAG_GROWS_DOWN): New. | |
11398 | ||
cf83625d AS |
11399 | 2020-04-10 Artur Shepilko <nomadbyte@gmail.com> |
11400 | ||
11401 | * utils.c (copy_bitwise): Use unsigned 0 constant as operand of | |
11402 | bit shift. | |
11403 | ||
0c4311ab TT |
11404 | 2020-04-10 Tom Tromey <tromey@adacore.com> |
11405 | ||
11406 | * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE. | |
11407 | ||
3e65b3e9 TT |
11408 | 2020-04-10 Tom Tromey <tromey@adacore.com> |
11409 | ||
11410 | * symtab.c (get_symbol_address, get_msymbol_address): Skip | |
11411 | separate debug files. | |
11412 | ||
13302e95 HD |
11413 | 2020-04-10 Hannes Domani <ssbssa@yahoo.de> |
11414 | ||
11415 | * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): | |
11416 | Move to... | |
11417 | * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): | |
11418 | ... here. | |
11419 | * windows-nat.c (windows_nat_target::get_windows_debug_event): | |
11420 | Check for STATUS_WX86_BREAKPOINT. | |
11421 | (windows_nat_target::wait): Same. | |
11422 | ||
bdfc1e8a TV |
11423 | 2020-04-10 Tom de Vries <tdevries@suse.de> |
11424 | ||
11425 | PR cli/25808 | |
11426 | * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False. | |
11427 | ||
f4460aec SM |
11428 | 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
11429 | ||
11430 | * MAINTAINERS (Global Maintainers): Add Tom de Vries. | |
11431 | (Write After Approval): Remove Tom de Vries. | |
11432 | ||
a25198bb BE |
11433 | 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de> |
11434 | ||
11435 | revert partially: | |
11436 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> | |
11437 | ||
aac66a4c SM |
11438 | * buildsym.c (record_line): Fix undefined behavior and preserve |
11439 | lines at eof. | |
a25198bb | 11440 | |
206c98a6 KR |
11441 | 2020-04-09 Kamil Rytarowski <n54@gmx.com> |
11442 | ||
11443 | * auxv.h (svr4_auxv_parse): New. | |
11444 | * auxv.c (default_auxv_parse): Split into default_auxv_parse | |
11445 | and generic_auxv_parse. | |
11446 | (svr4_auxv_parse): Add. | |
11447 | * obsd-tdep.c: Include "auxv.h". | |
11448 | (obsd_auxv_parse): Remove. | |
11449 | (obsd_init_abi): Remove comment. | |
11450 | (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument | |
11451 | from `obsd_auxv_parse' to `svr4_auxv_parse'. | |
11452 | * nbsd-tdep.c: Include "auxv.h". | |
11453 | (nbsd_init_abi): Call set_gdbarch_auxv_parse. | |
11454 | ||
71fbdbaf TT |
11455 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11456 | ||
11457 | * nat/windows-nat.h (last_wait_event): Don't declare. | |
11458 | (wait_for_debug_event): Update comment. | |
11459 | * nat/windows-nat.c (last_wait_event): Now static. | |
11460 | ||
2c1d95e8 TT |
11461 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11462 | ||
11463 | * windows-nat.c (wait_for_debug_event): Move to | |
11464 | nat/windows-nat.c. | |
11465 | * nat/windows-nat.h (wait_for_debug_event): Declare. | |
11466 | * nat/windows-nat.c (wait_for_debug_event): Move from | |
11467 | windows-nat.c. No longer static. | |
11468 | ||
d2977bc4 TT |
11469 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11470 | ||
11471 | * windows-nat.c (get_windows_debug_event): Use | |
11472 | fetch_pending_stop. | |
11473 | * nat/windows-nat.h (fetch_pending_stop): Declare. | |
11474 | * nat/windows-nat.c (fetch_pending_stop): New function. | |
11475 | ||
e758e19c TT |
11476 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11477 | ||
11478 | * windows-nat.c (windows_continue): Use matching_pending_stop and | |
11479 | continue_last_debug_event. | |
11480 | * nat/windows-nat.h (matching_pending_stop) | |
11481 | (continue_last_debug_event): Declare. | |
11482 | * nat/windows-nat.c (DEBUG_EVENTS): New define. | |
11483 | (matching_pending_stop, continue_last_debug_event): New | |
11484 | functions. | |
11485 | ||
8d30e395 TT |
11486 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11487 | ||
11488 | * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c. | |
11489 | (handle_exception_result): Move to nat/windows-nat.h. | |
11490 | (DEBUG_EXCEPTION_SIMPLE): Remove. | |
11491 | (windows_nat::handle_ms_vc_exception): New function. | |
11492 | (handle_exception): Move to nat/windows-nat.c. | |
11493 | (get_windows_debug_event): Update. | |
11494 | (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to | |
11495 | nat/windows-nat.c. | |
11496 | * nat/windows-nat.h (handle_ms_vc_exception): Declare. | |
11497 | (handle_exception_result): Move from windows-nat.c. | |
11498 | (handle_exception): Declare. | |
11499 | * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception) | |
11500 | (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from | |
11501 | windows-nat.c. | |
11502 | ||
29de418d TT |
11503 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11504 | ||
11505 | * windows-nat.c (exception_count, event_count): Remove. | |
11506 | (handle_exception, get_windows_debug_event) | |
11507 | (do_initial_windows_stuff): Update. | |
11508 | ||
a816ba18 TT |
11509 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11510 | ||
11511 | * windows-nat.c (windows_nat::handle_load_dll) | |
11512 | (windows_nat::handle_unload_dll): Rename. No longer static. | |
11513 | * nat/windows-nat.h (handle_load_dll, handle_unload_dll): | |
11514 | Declare. | |
11515 | ||
a00caa12 TT |
11516 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11517 | ||
11518 | * complaints.h (stop_whining): Declare at top-level. | |
11519 | (complaint): Don't declare stop_whining. | |
11520 | ||
d41b524f TT |
11521 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11522 | ||
11523 | * windows-nat.c (windows_nat::handle_output_debug_string): | |
11524 | Rename. No longer static. | |
11525 | * nat/windows-nat.h (handle_output_debug_string): Declare. | |
11526 | ||
3c76026d TT |
11527 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11528 | ||
11529 | * windows-nat.c (current_process_handle, current_process_id) | |
11530 | (main_thread_id, last_sig, current_event, last_wait_event) | |
11531 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
11532 | (struct pending_stop, siginfo_er): Move to nat/windows-nat.c. | |
11533 | (display_selectors, fake_create_process) | |
11534 | (get_windows_debug_event): Update. | |
11535 | * nat/windows-nat.h (current_process_handle, current_process_id) | |
11536 | (main_thread_id, last_sig, current_event, last_wait_event) | |
11537 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
11538 | (struct pending_stop, siginfo_er): Move from windows-nat.c. | |
11539 | * nat/windows-nat.c (current_process_handle, current_process_id) | |
11540 | (main_thread_id, last_sig, current_event, last_wait_event) | |
11541 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
11542 | (siginfo_er): New globals. Move from windows-nat.c. | |
11543 | ||
9d8679cc TT |
11544 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11545 | ||
11546 | * windows-nat.c (get_image_name): Move to nat/windows-nat.c. | |
11547 | (handle_load_dll): Update. | |
11548 | * nat/windows-nat.c (get_image_name): Move from windows-nat.c. | |
11549 | ||
28688adf TT |
11550 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11551 | ||
11552 | * windows-nat.c (enum thread_disposition_type): Move to | |
11553 | nat/windows-nat.h. | |
11554 | (windows_nat::thread_rec): Rename from thread_rec. No longer | |
11555 | static. | |
11556 | (windows_add_thread, windows_nat_target::fetch_registers) | |
11557 | (windows_nat_target::store_registers, handle_exception) | |
11558 | (windows_nat_target::resume, get_windows_debug_event) | |
11559 | (windows_nat_target::get_tib_address) | |
11560 | (windows_nat_target::thread_name) | |
11561 | (windows_nat_target::thread_alive): Update. | |
11562 | * nat/windows-nat.h (enum thread_disposition_type): Move from | |
11563 | windows-nat.c. | |
11564 | (thread_rec): Declare. | |
11565 | ||
4834dad0 TT |
11566 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11567 | ||
11568 | * windows-nat.c: Add "using namespace". | |
11569 | * nat/windows-nat.h: Wrap contents in windows_nat namespace. | |
11570 | * nat/windows-nat.c: Wrap contents in windows_nat namespace. | |
11571 | ||
65bafd5b TT |
11572 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11573 | ||
11574 | * nat/windows-nat.h (struct windows_thread_info): Declare | |
11575 | destructor. | |
11576 | * nat/windows-nat.c (~windows_thread_info): New. | |
11577 | ||
0a4afda3 TT |
11578 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11579 | ||
11580 | PR gdb/22992 | |
11581 | * windows-nat.c (current_event): Update comment. | |
11582 | (last_wait_event, desired_stop_thread_id): New globals. | |
11583 | (struct pending_stop): New. | |
11584 | (pending_stops): New global. | |
11585 | (windows_nat_target) <stopped_by_sw_breakpoint> | |
11586 | <supports_stopped_by_sw_breakpoint>: New methods. | |
11587 | (windows_fetch_one_register): Add assertions. Adjust PC. | |
11588 | (windows_continue): Handle pending stops. Suspend other threads | |
11589 | when stepping. Use last_wait_event | |
11590 | (wait_for_debug_event): New function. | |
11591 | (get_windows_debug_event): Use wait_for_debug_event. Handle | |
11592 | pending stops. Queue spurious stops. | |
11593 | (windows_nat_target::wait): Set stopped_at_software_breakpoint. | |
11594 | (windows_nat_target::kill): Use wait_for_debug_event. | |
11595 | * nat/windows-nat.h (struct windows_thread_info) | |
11596 | <stopped_at_software_breakpoint>: New field. | |
11597 | * nat/windows-nat.c (windows_thread_info::resume): Clear | |
11598 | stopped_at_software_breakpoint. | |
11599 | ||
8e61ebec TT |
11600 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11601 | ||
11602 | * windows-nat.c (enum thread_disposition_type): New. | |
11603 | (thread_rec): Replace "get_context" parameter with "disposition"; | |
11604 | change type. | |
11605 | (windows_add_thread, windows_nat_target::fetch_registers) | |
11606 | (windows_nat_target::store_registers, handle_exception) | |
11607 | (windows_nat_target::resume, get_windows_debug_event) | |
11608 | (windows_nat_target::get_tib_address) | |
11609 | (windows_nat_target::thread_name) | |
11610 | (windows_nat_target::thread_alive): Update. | |
11611 | ||
98a03287 TT |
11612 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11613 | ||
11614 | * windows-nat.c (thread_rec): Use windows_thread_info::suspend. | |
11615 | (windows_continue): Use windows_continue::resume. | |
11616 | * nat/windows-nat.h (struct windows_thread_info) <suspend, | |
11617 | resume>: Declare new methods. | |
11618 | * nat/windows-nat.c: New file. | |
11619 | * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed. | |
11620 | ||
7c7411bc TT |
11621 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11622 | ||
11623 | * windows-nat.c (windows_add_thread, windows_delete_thread) | |
11624 | (windows_nat_target::fetch_registers) | |
11625 | (windows_nat_target::store_registers, fake_create_process) | |
11626 | (windows_nat_target::resume, windows_nat_target::resume) | |
11627 | (get_windows_debug_event, windows_nat_target::wait) | |
11628 | (windows_nat_target::pid_to_str) | |
11629 | (windows_nat_target::get_tib_address) | |
11630 | (windows_nat_target::get_ada_task_ptid) | |
11631 | (windows_nat_target::thread_name) | |
11632 | (windows_nat_target::thread_alive): Use lwp, not tid. | |
11633 | ||
2950fdf7 TT |
11634 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11635 | ||
11636 | * windows-nat.c (handle_exception) | |
11637 | (windows_nat_target::thread_name): Update. | |
11638 | * nat/windows-nat.h (windows_thread_info): Remove destructor. | |
11639 | <name>: Now unique_xmalloc_ptr. | |
11640 | ||
62fe396b TT |
11641 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11642 | ||
11643 | * windows-nat.c (thread_rec) | |
11644 | (windows_nat_target::fetch_registers): Update. | |
11645 | * nat/windows-nat.h (struct windows_thread_info) <suspended>: | |
11646 | Update comment. | |
11647 | <debug_registers_changed, reload_context>: Now bool. | |
11648 | ||
e9534bd2 TT |
11649 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11650 | ||
11651 | * windows-nat.c (windows_add_thread): Use new. | |
11652 | (windows_init_thread_list, windows_delete_thread): Use delete. | |
11653 | (get_windows_debug_event): Update. | |
11654 | * nat/windows-nat.h (struct windows_thread_info): Add constructor, | |
11655 | destructor, and initializers. | |
11656 | ||
ae1f8880 TT |
11657 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11658 | ||
11659 | * windows-nat.c (struct windows_thread_info): Remove. | |
11660 | * nat/windows-nat.h: New file. | |
11661 | ||
55a1e039 TT |
11662 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11663 | ||
11664 | * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id". | |
11665 | (thread_rec, windows_add_thread, windows_delete_thread) | |
11666 | (windows_continue): Update. | |
11667 | ||
93366324 TT |
11668 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
11669 | ||
11670 | * windows-nat.c (struct windows_thread_info): Remove typedef. | |
11671 | (thread_head): Remove. | |
11672 | (thread_list): New global. | |
11673 | (thread_rec, windows_add_thread, windows_init_thread_list) | |
11674 | (windows_delete_thread, windows_continue): Update. | |
11675 | ||
0f2265e2 SM |
11676 | 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca> |
11677 | ||
11678 | * windows-tdep.h (windows_init_abi): Add comment. | |
11679 | (cygwin_init_abi): New declaration. | |
11680 | * windows-tdep.c: Split signal enumeration in two, one for | |
11681 | Windows and one for Cygwin. | |
11682 | (windows_gdb_signal_to_target): Only deal with signal of the | |
11683 | Windows OS ABI. | |
11684 | (cygwin_gdb_signal_to_target): New function. | |
11685 | (windows_init_abi): Rename to windows_init_abi_common, don't set | |
11686 | gdb_signal_to_target gdbarch method. Add new new function with | |
11687 | this name. | |
11688 | (cygwin_init_abi): New function. | |
11689 | * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add | |
11690 | comment. Don't call windows_init_abi. | |
11691 | (amd64_windows_init_abi): Add comment, call windows_init_abi. | |
11692 | (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi. | |
11693 | * i386-windows-tdep.c (i386_windows_init_abi): Rename to | |
11694 | i386_windows_init_abi_common, don't call windows_init_abi. Add | |
11695 | a new function of this name. | |
11696 | (i386_cygwin_init_abi): New function. | |
11697 | (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to | |
11698 | OS ABI Cygwin. | |
11699 | ||
3810f182 SM |
11700 | 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca> |
11701 | ||
11702 | * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile | |
11703 | parameter.c. | |
11704 | (dwarf2_read_gdb_index): Update. | |
11705 | ||
063f8e80 KR |
11706 | 2020-04-07 Kamil Rytarowski <n54@gmx.com> |
11707 | ||
11708 | * nbsd-tdep.c: Include "objfiles.h". | |
11709 | (nbsd_skip_solib_resolver): New. | |
11710 | (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver(). | |
11711 | ||
85a9510c | 11712 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
11713 | ||
11714 | * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_ | |
11715 | addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair | |
11716 | with DW_LLE_base_addressx are being emitted in DWARFv5. | |
11717 | Add the newly added kind DW_LOC_OFFSET_PAIR also. | |
11718 | The length of location description is an unsigned ULEB integer in DWARFv5 instead of | |
11719 | unsigned integer. | |
11720 | ||
9fc3eaae | 11721 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
11722 | ||
11723 | * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR. | |
11724 | (dwarf2_find_location_expression): Call the function decode_debug_loclists_ | |
11725 | addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair | |
11726 | with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*. | |
11727 | Add applicable base address if the entry is DW_LLE_offset_pair from DWO. | |
11728 | (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of | |
11729 | DEBUG_LOC_START_END in case of DW_LLE_offset_pair. | |
11730 | ||
11731 | ||
41144253 | 11732 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
11733 | ||
11734 | * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function. | |
11735 | (read_loclist_index): New function definition. | |
11736 | (lookup_loclist_base): New function definition. | |
11737 | (read_loclist_header): New function definition. | |
11738 | (dwarf2_cu): Add loclist_base and loclist_header field. | |
11739 | (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section. | |
11740 | (read_full_die_1): Read the value of DW_AT_loclists_base. | |
11741 | (read_attribute_reprocess): Handle DW_FORM_loclistx. | |
11742 | (read_attribute_value): Handle DW_FORM_loclistx. | |
11743 | (skip_one_die): Handle DW_FORM_loclistx. | |
11744 | (loclist_header): New structure declaration. | |
11745 | * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx. | |
11746 | ||
9f4e76a4 SM |
11747 | 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
11748 | ||
11749 | * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters | |
11750 | constructor. Remove `addr` parameter from other constructor and | |
11751 | add `per_cu` parameter. | |
11752 | * dwarf2/read.c (create_partial_symtab): Update. | |
11753 | ||
25c11aca TV |
11754 | 2020-04-07 Tom de Vries <tdevries@suse.de> |
11755 | ||
11756 | PR symtab/25796 | |
11757 | * dwarf2/read.c (can_have_DW_AT_const_value_p): New function. | |
11758 | (partial_die_info::fixup): Inherit has_const_value. | |
11759 | ||
5707e24b TV |
11760 | 2020-04-07 Tom de Vries <tdevries@suse.de> |
11761 | ||
11762 | * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK | |
11763 | symbols without address. | |
11764 | ||
05f00e22 KR |
11765 | 2020-04-06 Kamil Rytarowski <n54@gmx.com> |
11766 | ||
11767 | * nbsd-nat.h (struct thread_info): Add forward declaration. | |
11768 | (nbsd_nat_target::thread_alive): Add. | |
11769 | (nbsd_nat_target::thread_name): Likewise. | |
11770 | (nbsd_nat_target::update_thread_list): Likewise. | |
11771 | (update_thread_list::post_attach): Likewise. | |
11772 | (post_attach::pid_to_str): Likewise. | |
11773 | * nbsd-nat.c: Include "gdbthread.h" and "inferior.h". | |
11774 | (nbsd_thread_lister): Add. | |
11775 | (nbsd_nat_target::thread_alive): Likewise. | |
11776 | (nbsd_nat_target::thread_name): Likewise. | |
11777 | (nbsd_add_threads): Likewise. | |
11778 | (update_thread_list::post_attach): Likewise. | |
11779 | (nbsd_nat_target::update_thread_list): Likewise. | |
11780 | (post_attach::pid_to_str): Likewise. | |
11781 | ||
6ee448cc TT |
11782 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
11783 | ||
11784 | * ada-valprint.c (print_variant_part): Extract the variant field. | |
11785 | (print_field_values): Use the field as the outer value when | |
11786 | recursing. | |
11787 | ||
dea34e8c TT |
11788 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
11789 | ||
11790 | * sh-nbsd-tdep.c: Include nbsd-tdep.h. | |
11791 | * ppc-nbsd-tdep.c: Include nbsd-tdep.h. | |
11792 | * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";". | |
11793 | * arm-nbsd-tdep.c: Include nbsd-tdep.h. | |
11794 | * hppa-nbsd-tdep.c: Include nbsd-tdep.h. | |
11795 | ||
93689ce9 TT |
11796 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
11797 | ||
11798 | * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle | |
11799 | TYPE_CODE_ERROR. | |
11800 | ||
79743962 KR |
11801 | 2020-04-06 Kamil Rytarowski <n54@gmx.com> |
11802 | ||
11803 | * nbsd-tdep.c: Include "gdbarch.h". | |
11804 | Define enum with NetBSD signal numbers. | |
11805 | (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New. | |
11806 | * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi(). | |
11807 | * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise. | |
11808 | * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise. | |
11809 | * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise. | |
11810 | * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise. | |
11811 | * mips-nbsd-tdep.c (nbsd_init_abi): Likewise. | |
11812 | * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise. | |
11813 | * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise. | |
11814 | * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise. | |
11815 | * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise. | |
11816 | * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise. | |
11817 | ||
9e7c9a03 HD |
11818 | 2020-04-03 Hannes Domani <ssbssa@yahoo.de> |
11819 | ||
11820 | PR gdb/25325 | |
11821 | * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes. | |
11822 | ||
d9e49b61 TT |
11823 | 2020-04-03 Tom Tromey <tromey@adacore.com> |
11824 | ||
11825 | * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>: | |
11826 | Read constant block. | |
11827 | ||
e0fc5c3f SM |
11828 | 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
11829 | ||
11830 | * gdb_bfd.h: Include gdbsupport/byte-vector.h. | |
11831 | (gdb_bfd_get_full_section_contents): New declaration. | |
11832 | * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function. | |
11833 | * windows-tdep.c (is_linked_with_cygwin_dll): Use | |
11834 | gdb_bfd_get_full_section_contents. | |
11835 | ||
e2ff18a0 SM |
11836 | 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
11837 | ||
11838 | * exec.c (build_section_table): Replace internal_error with | |
11839 | gdb_assert. | |
11840 | (section_table_xfer_memory_partial): Likewise. | |
11841 | * mdebugread.c (parse_partial_symbols): Likewise. | |
11842 | * psymtab.c (lookup_partial_symbol): Likewise. | |
11843 | * utils.c (wrap_here): Likewise. | |
11844 | ||
0830d301 TT |
11845 | 2020-04-02 Tom Tromey <tromey@adacore.com> |
11846 | ||
11847 | * f-lang.c (build_fortran_types): Use arch_type to initialize | |
11848 | builtin_complex_s32 in the TYPE_CODE_ERROR case. | |
11849 | ||
e7da7f8f TT |
11850 | 2020-04-02 Tom Tromey <tromey@adacore.com> |
11851 | ||
11852 | * dwarf2/read.c (partial_die_info::read): Do not create a vector | |
11853 | of attributes. | |
11854 | ||
c90d28ac AB |
11855 | 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com> |
11856 | Bernd Edlinger <bernd.edlinger@hotmail.de> | |
11857 | Tom Tromey <tromey@adacore.com> | |
11858 | ||
11859 | * buildsym.c (buildsym_compunit::record_line): Remove | |
11860 | deduplication code. | |
11861 | ||
1aa98955 TV |
11862 | 2020-04-02 Tom de Vries <tdevries@suse.de> |
11863 | ||
11864 | PR ada/24671 | |
11865 | * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow. | |
11866 | ||
d3214198 TV |
11867 | 2020-04-02 Tom de Vries <tdevries@suse.de> |
11868 | ||
11869 | * dwarf2/read.c (dwarf2_gdb_index_functions, | |
11870 | dwarf2_debug_names_functions): Init lookup_global_symbol_language with | |
11871 | NULL. | |
11872 | * psymtab.c (psym_lookup_global_symbol_language): New function. | |
11873 | (psym_functions): Init psym_lookup_global_symbol_language with | |
11874 | psym_lookup_global_symbol_language. | |
11875 | * symfile-debug.c (debug_sym_quick_functions): Init | |
11876 | lookup_global_symbol_language with NULL. | |
11877 | * symfile.c (set_initial_language): Remove fixme comment. | |
11878 | * symfile.h (struct quick_symbol_functions): Add | |
11879 | lookup_global_symbol_language. | |
11880 | * symtab.c (find_quick_global_symbol_language): New function. | |
11881 | (find_main_name): Use find_quick_global_symbol_language. | |
11882 | ||
2836752f SM |
11883 | 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca> |
11884 | ||
11885 | * windows-tdep.c (is_linked_with_cygwin_dll): Fix style. | |
11886 | ||
64dc2d4b BE |
11887 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> |
11888 | ||
11889 | * buildsym.c (record_line): Fix undefined behavior and preserve | |
11890 | lines at eof. | |
11891 | ||
bbe3dc41 BE |
11892 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> |
11893 | ||
11894 | * buildsym.c (record_line): Fix the resizing condition. | |
11895 | ||
6b4a335b TT |
11896 | 2020-04-01 Tom Tromey <tom@tromey.com> |
11897 | ||
11898 | * value.h (value_literal_complex): Add comment. | |
11899 | * valops.c (value_literal_complex): Refer to value.h. | |
11900 | ||
3638a098 TT |
11901 | 2020-04-01 Tom Tromey <tom@tromey.com> |
11902 | ||
11903 | * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens. | |
11904 | (scalar_type): New rule, from typebase. | |
11905 | (typebase): Use scalar_type. Recognize complex types. | |
11906 | (field_name): Handle FLOAT_KEYWORD. | |
11907 | (ident_tokens): Add _Complex and __complex__. | |
11908 | ||
c34e8714 TT |
11909 | 2020-04-01 Tom Tromey <tom@tromey.com> |
11910 | ||
11911 | PR exp/25299: | |
11912 | * valarith.c (promotion_type, complex_binop): New functions. | |
11913 | (scalar_binop): Handle complex numbers. Use promotion_type. | |
11914 | (value_pos, value_neg, value_complement): Handle complex numbers. | |
11915 | ||
fa649bb7 TT |
11916 | 2020-04-01 Tom Tromey <tom@tromey.com> |
11917 | ||
11918 | * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens. | |
11919 | (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules. | |
11920 | (parse_number): Handle complex numbers. | |
11921 | ||
981c08ce TT |
11922 | 2020-04-01 Tom Tromey <tom@tromey.com> |
11923 | ||
11924 | * c-valprint.c (c_decorations): Change complex suffix to "i". | |
11925 | ||
4c99290d TT |
11926 | 2020-04-01 Tom Tromey <tom@tromey.com> |
11927 | ||
11928 | * valprint.c (generic_value_print_complex): Use accessors. | |
11929 | * value.h (value_real_part, value_imaginary_part): Declare. | |
11930 | * valops.c (value_real_part, value_imaginary_part): New | |
11931 | functions. | |
11932 | * value.c (creal_internal_fn, cimag_internal_fn): Use accessors. | |
11933 | ||
5b930b45 TT |
11934 | 2020-04-01 Tom Tromey <tom@tromey.com> |
11935 | ||
11936 | * stabsread.c (rs6000_builtin_type, read_sun_floating_type) | |
11937 | (read_range_type): Update. | |
11938 | * mdebugread.c (basic_type): Update. | |
11939 | * go-lang.c (build_go_types): Use init_complex_type. | |
11940 | * gdbtypes.h (struct main_type) <complex_type>: New member. | |
11941 | (init_complex_type): Update. | |
11942 | (arch_complex_type): Don't declare. | |
11943 | * gdbtypes.c (init_complex_type): Remove "objfile" parameter. | |
11944 | Make name if none given. Use alloc_type_copy. Look for cached | |
11945 | complex type. | |
11946 | (arch_complex_type): Remove. | |
11947 | (gdbtypes_post_init): Use init_complex_type. | |
11948 | * f-lang.c (build_fortran_types): Use init_complex_type. | |
11949 | * dwarf2/read.c (read_base_type): Update. | |
11950 | * d-lang.c (build_d_types): Use init_complex_type. | |
11951 | * ctfread.c (read_base_type): Update. | |
11952 | ||
53cccef1 TBA |
11953 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
11954 | ||
11955 | * infrun.c (stop_all_threads): Update assertion, plus when | |
11956 | stopping threads, take into account that we might be trying | |
11957 | to stop an all-stop target. | |
11958 | (stop_waiting): Call 'stop_all_threads' if there exists a | |
11959 | non-stop target. | |
11960 | ||
a0714d30 TBA |
11961 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
11962 | ||
11963 | * target.h (exists_non_stop_target): New function declaration. | |
11964 | * target.c (exists_non_stop_target): New function. | |
11965 | ||
60e22c1e HD |
11966 | 2020-04-01 Hannes Domani <ssbssa@yahoo.de> |
11967 | ||
11968 | PR gdb/24789 | |
11969 | * eval.c (is_integral_or_integral_reference): New function. | |
11970 | (evaluate_subexp_standard): Allow integer references in | |
11971 | pointer arithmetic. | |
11972 | ||
e139a727 TBA |
11973 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
11974 | ||
11975 | * remote.c (remote_target::remote_parse_stop_reply): Remove the | |
11976 | check for no ptid in the stop reply when the target is non-stop. | |
11977 | ||
e0802d59 TT |
11978 | 2020-04-01 Tom Tromey <tromey@adacore.com> |
11979 | ||
11980 | * symtab.h (class lookup_name_info) <lookup_name_info>: Change | |
11981 | "name" parameter to rvalue reference. Initialize m_name_holder. | |
11982 | <lookup_name_info>: New overloads. | |
11983 | <name>: Return gdb::string_view. | |
11984 | <c_str>: New method. | |
11985 | <make_ignore_params>: Update. | |
11986 | <search_name_hash>: Update. | |
11987 | <language_lookup_name>: Return const char *. | |
11988 | <m_name>: Change type. | |
11989 | * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info) | |
11990 | (demangle_for_lookup_info::demangle_for_lookup_info): Update. | |
11991 | (lookup_name_info::match_any): Update. | |
11992 | * psymtab.c (match_partial_symbol, lookup_partial_symbol): | |
11993 | Update. | |
11994 | * minsyms.c (linkage_name_str): Update. | |
11995 | * language.c (default_symbol_name_matcher): Update. | |
11996 | * dwarf2/read.c (mapped_index_base::find_name_components_bounds): | |
11997 | Update. | |
11998 | * ada-lang.c (ada_fold_name): Change parameter to string_view. | |
11999 | (ada_lookup_name_info::ada_lookup_name_info): Update. | |
12000 | (literal_symbol_name_matcher): Update. | |
12001 | ||
8c072cb6 TT |
12002 | 2020-04-01 Tom Tromey <tromey@adacore.com> |
12003 | ||
12004 | * psymtab.c (psymtab_search_name): Remove function. | |
12005 | (psym_lookup_symbol): Create search name and lookup name here. | |
12006 | (lookup_partial_symbol): Remove "name" parameter; add | |
12007 | lookup_name. | |
12008 | (psym_expand_symtabs_for_function): Update. | |
12009 | ||
6f29a534 TT |
12010 | 2020-03-31 Joel Jones <joelkevinjones@gmail.com> |
12011 | ||
12012 | PR tui/25597: | |
12013 | * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI. | |
12014 | ||
af62665e TT |
12015 | 2020-03-31 Tom Tromey <tromey@adacore.com> |
12016 | ||
12017 | * dwarf2/abbrev.c (abbrev_table::read): Conditionally call | |
12018 | memcpy. | |
12019 | ||
d1a89da5 NC |
12020 | 2020-03-30 Nelson Chu <nelson.chu@sifive.com> |
12021 | ||
12022 | * features/riscv/32bit-csr.xml: Regenerated. | |
12023 | * features/riscv/64bit-csr.xml: Regenerated. | |
12024 | ||
d8af9068 TT |
12025 | 2020-03-30 Tom Tromey <tromey@adacore.com> |
12026 | ||
12027 | * ada-valprint.c (print_variant_part): Update. | |
12028 | * ada-lang.h (ada_which_variant_applies): Update. | |
12029 | * ada-lang.c (ada_which_variant_applies): Remove outer_type and | |
12030 | outer_valaddr parameters; replace with "outer" value parameter. | |
12031 | (to_fixed_variant_branch_type): Update. | |
12032 | ||
227c0bf4 PFC |
12033 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
12034 | ||
12035 | * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and | |
12036 | <list>. Remove inclusion of observable.h. | |
12037 | (PPC_DEBUG_CURRENT_VERSION): Move up define. | |
12038 | (struct arch_lwp_info): New struct. | |
12039 | (class ppc_linux_dreg_interface): New class. | |
12040 | (struct ppc_linux_process_info): New struct. | |
12041 | (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork> | |
12042 | <low_new_clone, low_forget_process, low_prepare_to_resume> | |
12043 | <copy_thread_dreg_state, mark_thread_stale> | |
12044 | <mark_debug_registers_changed, register_hw_breakpoint> | |
12045 | <clear_hw_breakpoint, register_wp, clear_wp> | |
12046 | <can_use_watchpoint_cond_accel, calculate_dvc, check_condition> | |
12047 | <num_memory_accesses, get_trigger_type> | |
12048 | <create_watchpoint_request, hwdebug_point_cmp> | |
12049 | <init_arch_lwp_info, get_arch_lwp_info> | |
12050 | <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as | |
12051 | methods. | |
12052 | <struct ptid_hash>: New inner struct. | |
12053 | <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare | |
12054 | members. | |
12055 | (saved_dabr_value, hwdebug_info, max_slots_number) | |
12056 | (struct hw_break_tuple, struct thread_points, ppc_threads) | |
12057 | (have_ptrace_hwdebug_interface) | |
12058 | (hwdebug_find_thread_points_by_tid) | |
12059 | (hwdebug_insert_point, hwdebug_remove_point): Remove. | |
12060 | (ppc_linux_nat_target::can_use_hw_breakpoint): Use | |
12061 | m_dreg_interface, remove call to PTRACE_SET_DEBUGREG. | |
12062 | (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment, | |
12063 | use m_dreg_interface. | |
12064 | (hwdebug_point_cmp): Change to... | |
12065 | (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use | |
12066 | reference arguments instead of pointers. | |
12067 | (ppc_linux_nat_target::ranged_break_num_registers): Use | |
12068 | m_dreg_interface. | |
12069 | (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use | |
12070 | m_dreg_interface. Call register_hw_breakpoint. | |
12071 | (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use | |
12072 | m_dreg_interface. Call clear_hw_breakpoint. | |
12073 | (get_trigger_type): Change to... | |
12074 | (ppc_linux_nat_target::get_trigger_type): ...this method. Add | |
12075 | comment. | |
12076 | (ppc_linux_nat_target::insert_mask_watchpoint): Update comment, | |
12077 | use m_dreg_interface. Call register_hw_breakpoint. | |
12078 | (ppc_linux_nat_target::remove_mask_watchpoint): Update comment, | |
12079 | use m_dreg_interface. Call clear_hw_breakpoint. | |
12080 | (can_use_watchpoint_cond_accel): Change to... | |
12081 | (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this | |
12082 | method. Update comment, use m_dreg_interface and | |
12083 | m_process_info. | |
12084 | (calculate_dvc): Change to... | |
12085 | (ppc_linux_nat_target::calculate_dvc): ...this method. Use | |
12086 | m_dreg_interface. | |
12087 | (num_memory_accesses): Change to... | |
12088 | (ppc_linux_nat_target::num_memory_accesses): ...this method. | |
12089 | (check_condition): Change to... | |
12090 | (ppc_linux_nat_target::check_condition): ...this method. | |
12091 | (ppc_linux_nat_target::can_accel_watchpoint_condition): Update | |
12092 | comment, use m_dreg_interface. | |
12093 | (create_watchpoint_request): Change to... | |
12094 | (ppc_linux_nat_target::create_watchpoint_request): ...this | |
12095 | method. Use m_dreg_interface. | |
12096 | (ppc_linux_nat_target::insert_watchpoint): Add comment, use | |
12097 | m_dreg_interface. Call register_hw_breakpoint or register_wp. | |
12098 | (ppc_linux_nat_target::remove_watchpoint): Add comment, use | |
12099 | m_dreg_interface. Call clear_hw_breakpoint or clear_wp. | |
12100 | (ppc_linux_nat_target::low_forget_process) | |
12101 | (ppc_linux_nat_target::low_new_fork) | |
12102 | (ppc_linux_nat_target::low_new_clone) | |
12103 | (ppc_linux_nat_target::low_delete_thread) | |
12104 | (ppc_linux_nat_target::low_prepare_to_resume): New methods. | |
12105 | (ppc_linux_nat_target::low_new_thread): Remove previous logic, | |
12106 | only call mark_thread_stale. | |
12107 | (ppc_linux_thread_exit): Remove. | |
12108 | (ppc_linux_nat_target::stopped_data_address): Change to... | |
12109 | (ppc_linux_nat_target::low_stopped_data_address): This. Add | |
12110 | comment, use m_dreg_interface and m_thread_hw_breakpoints. | |
12111 | (ppc_linux_nat_target::stopped_by_watchpoint): Change to... | |
12112 | (ppc_linux_nat_target::stopped_by_watchpoint): This. Add | |
12113 | comment. Call low_stopped_data_address. | |
12114 | (ppc_linux_nat_target::watchpoint_addr_within_range): Use | |
12115 | m_dreg_interface. | |
12116 | (ppc_linux_nat_target::masked_watch_num_registers): Use | |
12117 | m_dreg_interface. | |
12118 | (ppc_linux_nat_target::copy_thread_dreg_state) | |
12119 | (ppc_linux_nat_target::mark_thread_stale) | |
12120 | (ppc_linux_nat_target::mark_debug_registers_changed) | |
12121 | (ppc_linux_nat_target::register_hw_breakpoint) | |
12122 | (ppc_linux_nat_target::clear_hw_breakpoint) | |
12123 | (ppc_linux_nat_target::register_wp) | |
12124 | (ppc_linux_nat_target::clear_wp) | |
12125 | (ppc_linux_nat_target::init_arch_lwp_info) | |
12126 | (ppc_linux_nat_target::get_arch_lwp_info): New methods. | |
12127 | (_initialize_ppc_linux_nat): Remove observer callback. | |
12128 | ||
4db10d8f PFC |
12129 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
12130 | ||
12131 | * ppc-linux-nat.c (ppc_linux_nat_target::store_registers) | |
12132 | (ppc_linux_nat_target::auxv_parse) | |
12133 | (ppc_linux_nat_target::read_description) | |
12134 | (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): | |
12135 | Move up. | |
12136 | ||
1310c1b0 PFC |
12137 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
12138 | ||
12139 | * linux-nat.h (low_new_clone): New method. | |
12140 | * linux-nat.c (linux_handle_extended_wait): Call low_new_clone. | |
12141 | ||
69b037c3 SM |
12142 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
12143 | ||
12144 | * dbxread.c (dbx_psymtab_to_symtab_1): Rename to... | |
12145 | (dbx_expand_psymtab): ... this. | |
12146 | (start_psymtab): Update. | |
12147 | * mdebugread.c (psymtab_to_symtab_1): Rename to... | |
12148 | (mdebug_expand_psymtab): ... this. | |
12149 | (parse_partial_symbols): Update. | |
12150 | (new_psymtab): Update. | |
12151 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to... | |
12152 | (xcoff_expand_psymtab): ... this. | |
12153 | (xcoff_start_psymtab): Update. | |
12154 | ||
48993951 SM |
12155 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
12156 | ||
12157 | * psympriv.h (partial_symtab) <read_dependencies>: Rename to... | |
12158 | <expand_dependencies>: ... this. | |
12159 | * psymtab.c (partial_symtab::read_dependencies): Rename to... | |
12160 | (partial_symtab::expand_dependencies): ... this. | |
12161 | * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>: | |
12162 | Update. | |
12163 | (dwarf2_psymtab::expand_psymtab): Update. | |
12164 | * dbxread.c (dbx_psymtab_to_symtab_1): Update. | |
12165 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
12166 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. | |
12167 | ||
3ad83046 SM |
12168 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
12169 | ||
12170 | * psympriv.h (discard_psymtab): Remove. | |
12171 | * dbxread.c (dbx_end_psymtab): Update. | |
12172 | * xcoffread.c (xcoff_end_psymtab): Update. | |
12173 | ||
4d1b9ab6 TT |
12174 | 2020-03-28 Tom Tromey <tom@tromey.com> |
12175 | ||
12176 | * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update | |
12177 | comment. | |
12178 | ||
f1749218 TT |
12179 | 2020-03-28 Tom Tromey <tom@tromey.com> |
12180 | ||
12181 | * dwarf2/read.c (read_attribute_reprocess): Fix formatting. | |
12182 | ||
ebea7626 HD |
12183 | 2020-03-27 Hannes Domani <ssbssa@yahoo.de> |
12184 | ||
12185 | * windows-nat.c (windows_add_all_dlls): Fix system dll paths. | |
12186 | ||
a879b4d5 JB |
12187 | 2020-03-26 John Baldwin <jhb@FreeBSD.org> |
12188 | ||
12189 | * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS. | |
12190 | ||
0826b30a TT |
12191 | 2020-03-26 Tom Tromey <tom@tromey.com> |
12192 | ||
12193 | * dwarf2/read.c (handle_data_member_location, dwarf2_add_field) | |
12194 | (mark_common_block_symbol_computed, read_tag_string_type) | |
12195 | (attr_to_dynamic_prop, read_subrange_type): Update. | |
12196 | (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move | |
12197 | to be methods on struct attribute. | |
12198 | (skip_one_die, process_imported_unit_die, read_namespace_alias) | |
12199 | (read_call_site_scope, partial_die_info::read) | |
12200 | (partial_die_info::read, lookup_die_type, follow_die_ref): | |
12201 | Update. | |
12202 | * dwarf2/attribute.c (attribute::get_ref_die_offset): New method, | |
12203 | from dwarf2_get_ref_die_offset. | |
12204 | (attribute::constant_value): New method, from | |
12205 | dwarf2_get_attr_constant_value. | |
12206 | * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>: | |
12207 | Declare method. | |
12208 | <constant_value>: New method. | |
12209 | ||
2b2558bf TT |
12210 | 2020-03-26 Tom Tromey <tom@tromey.com> |
12211 | ||
12212 | * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name) | |
12213 | (dwarf_attr_name, dwarf_form_name, dwarf_bool_name) | |
12214 | (dwarf_type_encoding_name): Move to stringify.c. | |
12215 | * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c. | |
12216 | * dwarf2/stringify.c: New file. | |
12217 | * dwarf2/stringify.h: New file. | |
12218 | ||
eeb64781 TT |
12219 | 2020-03-26 Tom Tromey <tom@tromey.com> |
12220 | ||
12221 | * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: | |
12222 | Rewrite. | |
12223 | ||
a39fdb41 TT |
12224 | 2020-03-26 Tom Tromey <tom@tromey.com> |
12225 | ||
12226 | * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New | |
12227 | methods. | |
12228 | * dwarf2/read.c (lookup_addr_base): Move to die.h. | |
12229 | (lookup_ranges_base): Likewise. | |
12230 | (read_cutu_die_from_dwo, read_full_die_1): Update. | |
12231 | ||
436c571c TT |
12232 | 2020-03-26 Tom Tromey <tom@tromey.com> |
12233 | ||
12234 | * dwarf2/read.c (read_import_statement, read_file_scope) | |
12235 | (read_type_unit_scope, inherit_abstract_dies, read_func_scope) | |
12236 | (read_lexical_block_scope, read_call_site_scope) | |
12237 | (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds) | |
12238 | (handle_struct_member_die, process_structure_scope) | |
12239 | (update_enumeration_type_from_children) | |
12240 | (process_enumeration_scope, read_array_type, read_common_block) | |
12241 | (read_namespace, read_module, read_subroutine_type): Update. | |
12242 | (sibling_die): Remove. | |
12243 | ||
052c8bb8 TT |
12244 | 2020-03-26 Tom Tromey <tom@tromey.com> |
12245 | ||
12246 | * dwarf2/read.c (lookup_addr_base, lookup_ranges_base) | |
12247 | (build_type_psymtabs_reader, read_structure_type) | |
12248 | (read_enumeration_type, read_full_die_1): Update. | |
12249 | (dwarf2_attr_no_follow): Move to die.h. | |
12250 | * dwarf2/die.h (struct die_info) <attr>: New method. | |
12251 | ||
2b24b6e4 TT |
12252 | 2020-03-26 Tom Tromey <tom@tromey.com> |
12253 | ||
12254 | * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove. | |
12255 | <base_address>: Now an optional. | |
12256 | (dwarf2_find_base_address, dwarf2_rnglists_process) | |
12257 | (dwarf2_ranges_process, fill_in_loclist_baton) | |
12258 | (dwarf2_symbol_mark_computed): Update. | |
12259 | ||
c2d50fd0 TT |
12260 | 2020-03-26 Tom Tromey <tom@tromey.com> |
12261 | ||
12262 | * dwarf2/read.c (struct die_info): Move to die.h. | |
12263 | * dwarf2/die.h: New file. | |
12264 | ||
0df7ad3a TT |
12265 | 2020-03-26 Tom Tromey <tom@tromey.com> |
12266 | ||
12267 | * dwarf2/line-header.h (dwarf_decode_line_header): Declare. | |
12268 | * dwarf2/read.c | |
12269 | (dwarf2_statement_list_fits_in_line_number_section_complaint): | |
12270 | Move to line-header.c. | |
12271 | (read_checked_initial_length_and_offset, read_formatted_entries): | |
12272 | Likewise. | |
12273 | (dwarf_decode_line_header): Split into two. | |
12274 | * dwarf2/line-header.c | |
12275 | (dwarf2_statement_list_fits_in_line_number_section_complaint): | |
12276 | Move from read.c. | |
12277 | (read_checked_initial_length_and_offset, read_formatted_entries): | |
12278 | Likewise. | |
12279 | (dwarf_decode_line_header): New function, split from read.c. | |
12280 | ||
86c0bb4c TT |
12281 | 2020-03-26 Tom Tromey <tom@tromey.com> |
12282 | ||
12283 | * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>: | |
12284 | Declare method. | |
12285 | * dwarf2/read.c (read_attribute_value): Update. | |
12286 | (dwarf2_per_objfile::read_line_string): Rename from | |
12287 | read_indirect_line_string. | |
12288 | (read_formatted_entries): Update. | |
12289 | ||
2ef46c2f TT |
12290 | 2020-03-26 Tom Tromey <tom@tromey.com> |
12291 | ||
12292 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local | |
12293 | variable. | |
12294 | ||
4f9c1eda TT |
12295 | 2020-03-26 Tom Tromey <tom@tromey.com> |
12296 | ||
12297 | * dwarf2/macro.h (dwarf_decode_macros): Make section parameter | |
12298 | const. | |
12299 | * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode) | |
12300 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section | |
12301 | parameter const. | |
12302 | ||
5a0e026f TT |
12303 | 2020-03-26 Tom Tromey <tom@tromey.com> |
12304 | ||
12305 | * dwarf2/read.c (dwarf_decode_macros): Make "lh" const. | |
12306 | * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter. | |
12307 | * dwarf2/macro.c (macro_start_file): Constify "lh" parameter. | |
12308 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise. | |
12309 | ||
8844c11b TT |
12310 | 2020-03-26 Tom Tromey <tom@tromey.com> |
12311 | ||
12312 | * dwarf2/line-header.h (struct line_header) <is_valid_file_index, | |
12313 | file_names_size, file_full_name, file_file_name>: Use const. | |
12314 | <file_name_at, file_names>: Add const overload. | |
12315 | * dwarf2/line-header.c (line_header::file_file_name) | |
12316 | (line_header::file_full_name): Update. | |
12317 | ||
c90ec28a TT |
12318 | 2020-03-26 Tom Tromey <tom@tromey.com> |
12319 | ||
12320 | * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint) | |
12321 | (macro_start_file, consume_improper_spaces) | |
12322 | (parse_macro_definition, skip_form_bytes, skip_unknown_opcode) | |
12323 | (dwarf_parse_macro_header, dwarf_decode_macro_bytes) | |
12324 | (dwarf_decode_macros): Move to macro.c. | |
12325 | * dwarf2/macro.c: New file. | |
12326 | * dwarf2/macro.h: New file. | |
12327 | * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c. | |
12328 | ||
4f44ae6c TT |
12329 | 2020-03-26 Tom Tromey <tom@tromey.com> |
12330 | ||
12331 | * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New | |
12332 | method. | |
12333 | * dwarf2/section.c: New method. From | |
12334 | read_indirect_string_at_offset_from. | |
12335 | * dwarf2/read.c (mapped_debug_names::namei_to_name): Update. | |
12336 | (read_indirect_string_at_offset_from): Move to section.c. | |
12337 | (read_indirect_string_at_offset): Rewrite. | |
12338 | (read_indirect_line_string_at_offset): Remove. | |
12339 | (read_indirect_string, read_indirect_line_string) | |
12340 | (dwarf_decode_macro_bytes): Update. | |
12341 | ||
a0194fa8 TT |
12342 | 2020-03-26 Tom Tromey <tom@tromey.com> |
12343 | ||
12344 | * dwarf2/section.h (struct dwarf2_section_info) | |
12345 | <overload_complaint>: Declare. | |
12346 | (dwarf2_section_buffer_overflow_complaint): Don't declare. | |
12347 | * dwarf2/section.c (dwarf2_section_info::overflow_complaint): | |
12348 | Rename from dwarf2_section_buffer_overflow_complaint. | |
12349 | * dwarf2/read.c (skip_one_die, partial_die_info::read) | |
12350 | (skip_form_bytes, dwarf_decode_macro_bytes): Update. | |
12351 | ||
3d27bbdb TT |
12352 | 2020-03-26 Tom Tromey <tom@tromey.com> |
12353 | ||
12354 | * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint): | |
12355 | Declare. | |
12356 | * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint): | |
12357 | Move from read.c. | |
12358 | * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move | |
12359 | to section.c. | |
12360 | ||
9eac9650 TT |
12361 | 2020-03-26 Tom Tromey <tom@tromey.com> |
12362 | ||
12363 | * dwarf2/read.c (dwarf_decode_macros): Split into two overloads. | |
12364 | ||
bf80d710 TT |
12365 | 2020-03-26 Tom Tromey <tom@tromey.com> |
12366 | ||
12367 | * dwarf2/read.c (macro_start_file): Change "cu" parameter to | |
12368 | "builder". | |
12369 | (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile | |
12370 | parameter. | |
12371 | (dwarf_decode_macros): Update. | |
12372 | ||
0314b390 TT |
12373 | 2020-03-26 Tom Tromey <tom@tromey.com> |
12374 | ||
12375 | * dwarf2/read.c (read_attribute_value): Update. | |
12376 | (read_indirect_string_from_dwz): Move to dwz.c; change into | |
12377 | method. | |
12378 | (dwarf_decode_macro_bytes): Update. | |
12379 | * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method. | |
12380 | * dwarf2/dwz.c: New file. | |
12381 | * Makefile.in (COMMON_SFILES): Add dwz.c. | |
12382 | ||
9fda78b6 TT |
12383 | 2020-03-26 Tom Tromey <tom@tromey.com> |
12384 | ||
12385 | * dwarf2/read.h (struct dwz_file): Move to dwz.h. | |
12386 | * dwarf2/read.c: Add include. | |
12387 | * dwarf2/index-write.c: Add include. | |
12388 | * dwarf2/index-cache.c: Add include. | |
12389 | * dwarf2/dwz.h: New file. | |
12390 | ||
33aa3c10 TT |
12391 | 2020-03-25 Tom Tromey <tom@tromey.com> |
12392 | ||
12393 | * compile/compile-object-load.c (get_out_value_type): Mention | |
12394 | correct symbol name in error message. | |
12395 | ||
d503b685 HD |
12396 | 2020-03-25 Hannes Domani <ssbssa@yahoo.de> |
12397 | ||
12398 | * windows-nat.c (windows_add_all_dlls): Fix system dll paths. | |
12399 | ||
7b1eff95 TV |
12400 | 2020-03-25 Tom de Vries <tdevries@suse.de> |
12401 | ||
12402 | * symtab.h (is_main_symtab_of_compunit_symtab): New function. | |
12403 | * symmisc.c (dump_symtab_1): Print user and includes fields. | |
12404 | (maintenance_info_symtabs): Same. | |
12405 | ||
dd895392 AB |
12406 | 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com> |
12407 | ||
12408 | PR gdb/25534 | |
12409 | * riscv-tdep.c (riscv_arg_info::c_offset): Update comment. | |
12410 | (riscv_regcache_cooked_write): New function. | |
12411 | (riscv_push_dummy_call): Use new function. | |
12412 | (riscv_return_value): Likewise. | |
12413 | ||
5ab2fbf1 SM |
12414 | 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca> |
12415 | ||
12416 | * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int. | |
12417 | * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise. | |
12418 | * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise. | |
12419 | * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise. | |
12420 | * infrun.c (follow_fork): Likewise. | |
12421 | (follow_fork_inferior): Likewise. | |
12422 | * linux-nat.c (linux_nat_target::follow_fork): Likewise. | |
12423 | * linux-nat.h (class linux_nat_target): Likewise. | |
12424 | * remote.c (class remote_target) <follow_fork>: Likewise. | |
12425 | (remote_target::follow_fork): Likewise. | |
12426 | * target-delegates.c: Re-generate. | |
12427 | * target.c (default_follow_fork): Likewise. | |
12428 | (target_follow_fork): Likewise. | |
12429 | * target.h (struct target_ops) <follow_fork>: Likewise. | |
12430 | (target_follow_fork): Likewise. | |
12431 | ||
a64fafb5 TV |
12432 | 2020-03-24 Tom de Vries <tdevries@suse.de> |
12433 | ||
12434 | * psymtab.c (maintenance_info_psymtabs): Print user field. | |
12435 | ||
fe26d3a3 TT |
12436 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
12437 | ||
12438 | * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack" | |
12439 | const. | |
12440 | * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack" | |
12441 | const. | |
12442 | ||
c884cc46 SM |
12443 | 2020-03-20 Simon Marchi <simon.marchi@efficios.com> |
12444 | ||
12445 | * ptrace.m4: Don't check for ptrace declaration. | |
12446 | * config.in: Re-generate. | |
12447 | * configure: Re-generate. | |
12448 | * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is | |
12449 | not defined. | |
12450 | ||
1ff700c2 KR |
12451 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
12452 | ||
12453 | * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to | |
12454 | `PTRACE_TYPE_RET'. | |
12455 | * i386-bsd-nat.c (gdb_ptrace): Likewise. | |
12456 | * sparc-nat.c (gdb_ptrace): Likewise. | |
12457 | * x86-bsd-nat.c (gdb_ptrace): Likewise. | |
12458 | ||
f7d4f0b1 TT |
12459 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
12460 | ||
12461 | * c-exp.y (lex_one_token): Fix assert. | |
12462 | ||
f67210ff TT |
12463 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
12464 | ||
12465 | * ada-tasks.c (read_atcb): Use smaller length in strncpy call. | |
12466 | * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in | |
12467 | strncpy call. | |
12468 | ||
1773be9e TT |
12469 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
12470 | ||
12471 | * symmisc.c (maintenance_print_one_line_table): Use ui_out. | |
12472 | ||
70304be9 TT |
12473 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
12474 | ||
12475 | * ada-valprint.c (print_variant_part): Remove parameters; switch | |
12476 | to value-based API. | |
12477 | (print_field_values): Likewise. | |
12478 | (ada_val_print_struct_union): Likewise. | |
12479 | (ada_value_print_1): Update. | |
12480 | ||
9faa006d KR |
12481 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
12482 | ||
12483 | * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from | |
12484 | nbsd_nat_target instead of inf_ptrace_target. | |
12485 | * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
12486 | nbsd_nat_target. | |
12487 | ||
4a90f062 KR |
12488 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
12489 | ||
12490 | * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
12491 | it to the ptrace call. | |
12492 | * (store_registers): Likewise. | |
12493 | ||
12494 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> | |
c7da12c7 KR |
12495 | |
12496 | * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
12497 | it to the ptrace call. | |
12498 | * (store_registers): Likewise. | |
12499 | ||
2d07da27 LM |
12500 | 2020-03-19 Luis Machado <luis.machado@linaro.org> |
12501 | ||
12502 | * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not | |
12503 | valid, fetch vg value from ptrace. | |
12504 | ||
f09db380 KR |
12505 | 2020-03-19 Kamil Rytarowski <n54@gmx.com> |
12506 | * inf-ptrace.h: Disable get_ptrace_pid on NetBSD. | |
12507 | * inf-ptrace.c: Likewise. | |
12508 | * (gdb_ptrace): Add. | |
12509 | * (inf_ptrace_target::resume): Update. | |
12510 | * (inf_ptrace_target::xfer_partial): Likewise. | |
12511 | * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'. | |
12512 | * (inf_ptrace_peek_poke): Update. | |
12513 | ||
fcc7376e KR |
12514 | 2020-03-19 Kamil Rytarowski <n54@gmx.com> |
12515 | ||
12516 | * x86-bsd-nat.c (gdb_ptrace): New. | |
12517 | * (x86bsd_dr_set): Add new argument `ptid'. | |
12518 | * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control, | |
12519 | x86bsd_dr_set_addr): Update. | |
12520 | ||
cada5fc9 AB |
12521 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
12522 | ||
12523 | * remote.c (remote_target::process_stop_reply): Handle events for | |
12524 | all threads differently. | |
12525 | ||
19a2740f AB |
12526 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
12527 | ||
12528 | * completer.c (completion_tracker::remove_completion): Define new | |
12529 | function. | |
12530 | * completer.h (completion_tracker::remove_completion): Declare new | |
12531 | function. | |
12532 | * symtab.c (completion_list_add_symbol): Remove aliasing msymbols | |
12533 | when adding a C++ function symbol. | |
12534 | ||
724fd9ba AB |
12535 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
12536 | ||
12537 | * completer.c (completion_tracker::completion_hash_entry): Define | |
12538 | new class. | |
12539 | (advance_to_filename_complete_word_point): Call | |
12540 | recompute_lowest_common_denominator. | |
12541 | (completion_tracker::completion_tracker): Call discard_completions | |
12542 | to setup the hash table. | |
12543 | (completion_tracker::discard_completions): Allow for being called | |
12544 | from the constructor, pass new equal function, and element deleter | |
12545 | when constructing the hash table. Initialise new class member | |
12546 | variables. | |
12547 | (completion_tracker::maybe_add_completion): Remove use of | |
12548 | m_entries_vec, and store more information into m_entries_hash. | |
12549 | (completion_tracker::recompute_lcd_visitor): New function, most | |
12550 | content taken from... | |
12551 | (completion_tracker::recompute_lowest_common_denominator): | |
12552 | ...here, this now just visits each item in the hash calling the | |
12553 | above visitor. | |
12554 | (completion_tracker::build_completion_result): Remove use of | |
12555 | m_entries_vec, call recompute_lowest_common_denominator. | |
12556 | * completer.h (completion_tracker::have_completions): Remove use | |
12557 | of m_entries_vec. | |
12558 | (completion_tracker::completion_hash_entry): Declare new class. | |
12559 | (completion_tracker::recompute_lowest_common_denominator): Change | |
12560 | function signature. | |
12561 | (completion_tracker::recompute_lcd_visitor): Declare new function. | |
12562 | (completion_tracker::m_entries_vec): Delete. | |
12563 | (completion_tracker::m_entries_hash): Initialize to NULL. | |
12564 | (completion_tracker::m_lowest_common_denominator_valid): New | |
12565 | member variable. | |
12566 | (completion_tracker::m_lowest_common_denominator_max_length): New | |
12567 | member variable. | |
12568 | ||
5a82b8a1 KR |
12569 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
12570 | ||
12571 | * regformats/regdef.h: Put reg in gdb namespace. | |
12572 | ||
fb516a69 KR |
12573 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
12574 | ||
12575 | * i386-bsd-nat.c (gdb_ptrace): New. | |
12576 | * (i386bsd_fetch_inferior_registers, | |
12577 | i386bsd_store_inferior_registers) Switch from pid_t to ptid_t. | |
12578 | * (i386bsd_fetch_inferior_registers, | |
12579 | i386bsd_store_inferior_registers) Use gdb_ptrace. | |
12580 | ||
1c0aa1fb KR |
12581 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
12582 | ||
12583 | * amd64-bsd-nat.c (gdb_ptrace): New. | |
12584 | * (amd64bsd_fetch_inferior_registers, | |
12585 | amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t. | |
12586 | * (amd64bsd_fetch_inferior_registers, | |
12587 | amd64bsd_store_inferior_registers) Use gdb_ptrace. | |
12588 | ||
5ccd2fb7 KR |
12589 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
12590 | ||
12591 | * user-regs.c (user_reg::read): Rename to... | |
12592 | (user_reg::xread): ...this. | |
12593 | * (append_user_reg): Rename argument `read' to `xread'. | |
12594 | * (user_reg_add_builtin): Likewise. | |
12595 | * (user_reg_add): Likewise. | |
12596 | * (value_of_user_reg): Likewise. | |
12597 | ||
2108a63a KR |
12598 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
12599 | ||
12600 | * sparc-nat.c (gdb_ptrace): New. | |
12601 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
12602 | (sparc_store_inferior_registers) Remove obsolete comment. | |
12603 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
12604 | (sparc_store_inferior_registers) Switch from pid_t to ptid_t. | |
12605 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
12606 | (sparc_store_inferior_registers) Use gdb_ptrace. | |
12607 | ||
a225c9a8 KR |
12608 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
12609 | ||
12610 | * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
12611 | it to the ptrace call. | |
12612 | * sh-nbsd-nat.c (store_registers): Likewise. | |
12613 | ||
98097623 KR |
12614 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
12615 | ||
12616 | * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from | |
12617 | nbsd_nat_target instead of inf_ptrace_target. | |
12618 | * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
12619 | nbsd_nat_target. | |
12620 | ||
9e38d619 KR |
12621 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
12622 | ||
12623 | * amd64-bsd-nat.c: Include amd64-bsd-nat.h". | |
12624 | ||
a2ecbe9f KR |
12625 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
12626 | ||
12627 | * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and | |
12628 | <sys/sysctl.h>. | |
12629 | * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite. | |
12630 | ||
58990295 TV |
12631 | 2020-03-17 Tom de Vries <tdevries@suse.de> |
12632 | ||
12633 | PR gdb/23710 | |
12634 | * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang | |
12635 | fields. | |
12636 | * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang | |
12637 | fields. | |
12638 | (process_imported_unit_die): Skip import of c++ CUs. | |
12639 | ||
771dd3a8 TT |
12640 | 2020-03-16 Tom Tromey <tom@tromey.com> |
12641 | ||
12642 | * p-valprint.c (pascal_object_print_value): Initialize | |
12643 | base_value. | |
12644 | ||
817a7585 AK |
12645 | 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com> |
12646 | Shahab Vahedi <shahab@synopsys.com> | |
12647 | ||
12648 | * Makefile.in: Add arch/arc.o | |
12649 | * configure.tgt: Likewise. | |
12650 | * arc-tdep.c (arc_tdesc_init): Use arc_read_description. | |
12651 | (_initialize_arc_tdep): Don't initialize old target descriptions. | |
aac66a4c | 12652 | (arc_read_description): New function to cache target descriptions. |
817a7585 AK |
12653 | * arc-tdep.h (arc_read_description): Add proto type. |
12654 | * arch/arc.c: New file. | |
12655 | * arch/arc.h: Likewise. | |
12656 | * features/Makefile: Replace old target descriptions with new. | |
12657 | * features/arc-arcompact.c: Remove. | |
12658 | * features/arc-arcompact.xml: Likewise. | |
12659 | * features/arc-v2.c: Likewise | |
12660 | * features/arc-v2.xml: Likewise | |
12661 | * features/arc/aux-arcompact.xml: New file. | |
12662 | * features/arc/aux-v2.xml: Likewise. | |
12663 | * features/arc/core-arcompact.xml: Likewise. | |
12664 | * features/arc/core-v2.xml: Likewise. | |
12665 | * features/arc/aux-arcompact.c: Generate. | |
12666 | * features/arc/aux-v2.c: Likewise. | |
12667 | * features/arc/core-arcompact.c: Likewise. | |
12668 | * features/arc/core-v2.c: Likewise. | |
12669 | * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features. | |
12670 | ||
67430cd0 TT |
12671 | 2020-03-16 Tom Tromey <tromey@adacore.com> |
12672 | ||
12673 | PR gdb/25663: | |
12674 | * dwarf2/read.c (dwarf2_name): Strip leading namespaces after | |
12675 | putting value into bcache. | |
12676 | ||
30efb6c7 SM |
12677 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
12678 | ||
12679 | PR gdb/21500 | |
12680 | * amd64-windows-tdep.c (amd64_windows_init_abi): Rename | |
12681 | to... | |
12682 | (amd64_windows_init_abi_common): ... this. Don't set size of | |
12683 | long type. | |
12684 | (amd64_windows_init_abi): New function. | |
12685 | (amd64_cygwin_init_abi): New function. | |
12686 | (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for | |
12687 | the Cygwin OS ABI. | |
12688 | * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify | |
12689 | comment. | |
12690 | ||
8db52437 SM |
12691 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
12692 | ||
12693 | * windows-tdep.h (is_linked_with_cygwin_dll): New declaration. | |
12694 | * windows-tdep.c (CYGWIN_DLL_NAME): New. | |
12695 | (pe_import_directory_entry): New struct type. | |
12696 | (is_linked_with_cygwin_dll): New function. | |
12697 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select | |
12698 | GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL. | |
12699 | * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise. | |
12700 | ||
5982a56a SM |
12701 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
12702 | ||
12703 | * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except | |
12704 | i386_cygwin_core_osabi_sniffer. | |
12705 | ||
7a1998df SM |
12706 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
12707 | ||
12708 | * i386-cygwin-tdep.c: Rename to... | |
12709 | * i386-windows-tdep.c: ... this. | |
12710 | * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to | |
12711 | i386-windows-tdep.c. | |
12712 | * configure.tgt: Likewise. | |
12713 | ||
053205cc SM |
12714 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
12715 | ||
12716 | * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS. | |
12717 | * osabi.c (gdb_osabi_names): Add "Windows". | |
12718 | * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return | |
12719 | GDB_OSABI_WINDOWS when the binary's target is "pei-i386". | |
12720 | (i386_cygwin_core_osabi_sniffer): New function, extracted from | |
12721 | i386_cygwin_osabi_sniffer. | |
12722 | (_initialize_i386_cygwin_tdep): Register OS ABI | |
12723 | GDB_OSABI_WINDOWS for i386. | |
12724 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return | |
12725 | GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64". | |
12726 | (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS | |
12727 | for x86-64. | |
12728 | * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI | |
12729 | when the target matches '*-*-mingw*'. | |
12730 | ||
fe4b2ee6 SM |
12731 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
12732 | ||
12733 | * defs.h (enum gdb_osabi): Move to... | |
12734 | * osabi.h (enum gdb_osabi): ... here. | |
12735 | * gdbarch.sh: Include osabi.h in gdbarch.h. | |
12736 | * gdbarch.h: Re-generate. | |
12737 | ||
cb9b645d SM |
12738 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
12739 | ||
12740 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New | |
12741 | function. | |
12742 | (_initialize_amd64_windows_tdep): Register osabi sniffer. | |
12743 | ||
3293bbaf TT |
12744 | 2020-03-14 Tom Tromey <tom@tromey.com> |
12745 | ||
12746 | * c-typeprint.c (cp_type_print_method_args): Print "__restrict__" | |
12747 | for C++. | |
12748 | (c_type_print_modifier): Likewise. Add "language" parameter. | |
12749 | (c_type_print_varspec_prefix, c_type_print_base_struct_union) | |
12750 | (c_type_print_base_1): Update. | |
12751 | * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New | |
12752 | constants. | |
12753 | * type-stack.c (type_stack::insert): Handle tp_atomic and | |
12754 | tp_restrict. | |
12755 | (type_stack::follow_type_instance_flags): Likewise. | |
12756 | (type_stack::follow_types): Likewise. Merge type-following code. | |
12757 | * c-exp.y (RESTRICT, ATOMIC): New tokens. | |
12758 | (space_identifier, cv_with_space_id) | |
12759 | (const_or_volatile_or_space_identifier_noopt) | |
12760 | (const_or_volatile_or_space_identifier): Remove. | |
12761 | (single_qualifier, qualifier_seq_noopt, qualifier_seq): New | |
12762 | rules. | |
12763 | (ptr_operator, typebase): Update. | |
12764 | (enum token_flag) <FLAG_C>: New constant. | |
12765 | (ident_tokens): Add "restrict", "__restrict__", "__restrict", and | |
12766 | "_Atomic". | |
12767 | (lex_one_token): Handle FLAG_C. | |
12768 | ||
154151a6 KR |
12769 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
12770 | ||
12771 | * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass | |
12772 | it to the ptrace call. | |
12773 | * m68k-bsd-nat.c (store_registers): Likewise. | |
12774 | ||
bc107784 KR |
12775 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
12776 | ||
12777 | * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to | |
12778 | gdb_byte *. | |
12779 | * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise. | |
12780 | * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise. | |
12781 | * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *. | |
12782 | ||
01a80117 KR |
12783 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
12784 | ||
12785 | * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from | |
12786 | nbsd_nat_target instead of inf_ptrace_target. | |
12787 | * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
12788 | nbsd_nat_target. | |
12789 | ||
f90280ca KR |
12790 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
12791 | ||
12792 | * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
12793 | register_t. | |
12794 | ||
6def66f1 KR |
12795 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
12796 | ||
12797 | * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass | |
12798 | it to the ptrace call. | |
12799 | * alpha-bsd-nat.c (store_registers): Likewise. | |
12800 | ||
66eaca97 KR |
12801 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
12802 | ||
12803 | * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from | |
12804 | includes. | |
12805 | * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove. | |
12806 | * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset, | |
12807 | fill_fpregset): Likewise. | |
12808 | ||
4fed520b KR |
12809 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
12810 | ||
12811 | * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from | |
12812 | nbsd_nat_target instead of inf_ptrace_target. | |
12813 | * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
12814 | nbsd_nat_target. | |
12815 | ||
2190cf06 KR |
12816 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
12817 | ||
12818 | * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
12819 | register_t. | |
12820 | ||
75c56d3d KR |
12821 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
12822 | ||
12823 | * arm-nbsd-nat.c (fetch_register): New variable lwp and pass | |
12824 | it to the ptrace call. | |
12825 | * arm-nbsd-nat.c (fetch_fp_register): Likewise. | |
12826 | * arm-nbsd-nat.c (fetch_fp_regs): Likewise. | |
12827 | * arm-nbsd-nat.c (store_register): Likewise. | |
12828 | * arm-nbsd-nat.c (store_regs): Likewise. | |
12829 | * arm-nbsd-nat.c (store_fp_register): Likewise. | |
12830 | * arm-nbsd-nat.c (store_fp_regs): Likewise. | |
12831 | ||
6018d381 KR |
12832 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
12833 | ||
12834 | * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from | |
12835 | nbsd_nat_target instead of inf_ptrace_target. | |
12836 | * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
12837 | nbsd_nat_target. | |
12838 | ||
013f99f0 KR |
12839 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
12840 | ||
12841 | * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass | |
12842 | it to the ptrace call. | |
12843 | * x86-bsd-nat.c (x86bsd_dr_set): Likewise. | |
12844 | ||
12753073 KR |
12845 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
12846 | ||
6227b330 KR |
12847 | * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass |
12848 | it to the ptrace call. | |
12849 | * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise. | |
12850 | ||
12851 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
12852 | ||
12853 | * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const | |
12854 | gdb_byte *. | |
12753073 KR |
12855 | * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *. |
12856 | ||
d5be5fa4 KR |
12857 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
12858 | ||
12859 | * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target | |
12860 | instead of inf_ptrace_target. | |
12861 | * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
12862 | nbsd_nat_target. | |
12863 | ||
8110f842 KR |
12864 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
12865 | ||
12866 | * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
12867 | register_t. | |
12868 | ||
52feded7 KR |
12869 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
12870 | ||
12871 | * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
12872 | register_t. | |
12873 | ||
25567eee KR |
12874 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
12875 | ||
12876 | * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
12877 | register_t. | |
12878 | ||
426a9c18 TT |
12879 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12880 | ||
12881 | * value.h (val_print): Don't declare. | |
12882 | * valprint.h (val_print_array_elements) | |
12883 | (val_print_scalar_formatted, generic_val_print): Don't declare. | |
12884 | * valprint.c (generic_val_print_array): Take a struct value. | |
12885 | (generic_val_print_ptr, generic_val_print_memberptr) | |
12886 | (generic_val_print_bool, generic_val_print_int) | |
12887 | (generic_val_print_char, generic_val_print_complex) | |
12888 | (generic_val_print): Remove. | |
12889 | (generic_value_print): Update. | |
12890 | (do_val_print): Remove unused parameters. Don't call | |
12891 | la_val_print. | |
12892 | (val_print): Remove. | |
12893 | (common_val_print): Update. Don't call value_check_printable. | |
12894 | (val_print_scalar_formatted, val_print_array_elements): Remove. | |
12895 | * rust-lang.c (rust_val_print): Remove. | |
12896 | (rust_language_defn): Update. | |
12897 | * p-valprint.c (pascal_val_print): Remove. | |
12898 | (pascal_value_print_inner): Update. | |
12899 | (pascal_object_print_val_fields, pascal_object_print_val): | |
12900 | Remove. | |
12901 | (pascal_object_print_static_field): Update. | |
12902 | * p-lang.h (pascal_val_print): Don't declare. | |
12903 | * p-lang.c (pascal_language_defn): Update. | |
12904 | * opencl-lang.c (opencl_language_defn): Update. | |
12905 | * objc-lang.c (objc_language_defn): Update. | |
12906 | * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove. | |
12907 | * m2-lang.h (m2_val_print): Don't declare. | |
12908 | * m2-lang.c (m2_language_defn): Update. | |
12909 | * language.h (struct language_defn) <la_val_print>: Remove. | |
12910 | * language.c (unk_lang_value_print_inner): Rename. Change | |
12911 | argument types. | |
12912 | (unknown_language_defn, auto_language_defn): Update. | |
12913 | * go-valprint.c (go_val_print): Remove. | |
12914 | * go-lang.h (go_val_print): Don't declare. | |
12915 | * go-lang.c (go_language_defn): Update. | |
12916 | * f-valprint.c (f_val_print): Remove. | |
12917 | * f-lang.h (f_value_print): Don't declare. | |
12918 | * f-lang.c (f_language_defn): Update. | |
12919 | * d-valprint.c (d_val_print): Remove. | |
12920 | * d-lang.h (d_value_print): Don't declare. | |
12921 | * d-lang.c (d_language_defn): Update. | |
12922 | * cp-valprint.c (cp_print_value_fields) | |
12923 | (cp_print_value_fields_rtti, cp_print_value): Remove. | |
12924 | (cp_print_static_field): Update. | |
12925 | * c-valprint.c (c_val_print_array, c_val_print_ptr) | |
12926 | (c_val_print_struct, c_val_print_union, c_val_print_int) | |
12927 | (c_val_print_memberptr, c_val_print): Remove. | |
12928 | * c-lang.h (c_val_print_array, cp_print_value_fields) | |
12929 | (cp_print_value_fields_rtti): Don't declare. | |
12930 | * c-lang.c (c_language_defn, cplus_language_defn) | |
12931 | (asm_language_defn, minimal_language_defn): Update. | |
12932 | * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove. | |
12933 | (ada_val_print_enum): Take a struct value. | |
12934 | (ada_val_print_flt, ada_val_print_array, ada_val_print_1) | |
12935 | (ada_val_print): Remove. | |
12936 | (ada_value_print_1): Update. | |
12937 | (printable_val_type): Remove. | |
12938 | * ada-lang.h (ada_val_print): Don't declare. | |
12939 | * ada-lang.c (ada_language_defn): Update. | |
12940 | ||
42331a1e TT |
12941 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12942 | ||
12943 | * valprint.c (do_val_print): Update. | |
12944 | * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take | |
12945 | a struct value. | |
12946 | (value_to_value_object_no_release): Declare. | |
12947 | * python/py-value.c (value_to_value_object_no_release): New | |
12948 | function. | |
12949 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a | |
12950 | struct value. | |
12951 | * guile/scm-value.c (vlscm_scm_from_value_no_release): New | |
12952 | function. | |
12953 | * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take | |
12954 | a struct value. | |
12955 | * guile/guile-internal.h (vlscm_scm_from_value_no_release): | |
12956 | Declare. | |
12957 | (gdbscm_apply_val_pretty_printer): Take a struct value. | |
12958 | * extension.h (apply_ext_lang_val_pretty_printer): Take a struct | |
12959 | value. | |
12960 | * extension.c (apply_ext_lang_val_pretty_printer): Take a struct | |
12961 | value. | |
12962 | * extension-priv.h (struct extension_language_ops) | |
12963 | <apply_val_pretty_printer>: Take a struct value. | |
12964 | * cp-valprint.c (cp_print_value): Create a struct value. | |
12965 | (cp_print_value): Update. | |
12966 | ||
3a916a97 TT |
12967 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12968 | ||
12969 | * ada-valprint.c (print_field_values): Call common_val_print. | |
12970 | ||
b59eac37 TT |
12971 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12972 | ||
12973 | * ada-valprint.c (val_print_packed_array_elements): Remove | |
12974 | bitoffset and val parameters. Call common_val_print. | |
12975 | (ada_val_print_string): Remove offset, address, and original_value | |
12976 | parameters. | |
12977 | (ada_val_print_array): Update. | |
12978 | (ada_value_print_array): New function. | |
12979 | (ada_value_print_1): Call it. | |
12980 | ||
03371129 TT |
12981 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12982 | ||
12983 | * ada-valprint.c (ada_value_print): Use common_val_print. | |
12984 | ||
2e088f8b TT |
12985 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12986 | ||
12987 | * ada-valprint.c (ada_val_print_ref): Use common_val_print. | |
12988 | ||
39ef85a8 TT |
12989 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12990 | ||
12991 | * ada-valprint.c (ada_value_print_num): New function. | |
12992 | (ada_value_print_1): Use it. | |
12993 | ||
b9fa6e07 TT |
12994 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12995 | ||
12996 | * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite. | |
12997 | ||
416595d6 TT |
12998 | 2020-03-13 Tom Tromey <tom@tromey.com> |
12999 | ||
13000 | * ada-valprint.c (ada_value_print_ptr): New function. | |
13001 | (ada_value_print_1): Use it. | |
13002 | ||
5b5e15ec TT |
13003 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13004 | ||
13005 | * ada-valprint.c (ada_val_print_gnat_array): Take a struct value; | |
13006 | call common_val_print. | |
13007 | (ada_val_print_1): Update. | |
13008 | (ada_value_print_1): New function. | |
13009 | (ada_value_print_inner): Rewrite. | |
13010 | ||
fbf54e75 TT |
13011 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13012 | ||
13013 | * cp-valprint.c (cp_print_value_fields): Update. | |
13014 | (cp_print_value): New function. | |
13015 | ||
64b653ca TT |
13016 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13017 | ||
13018 | * m2-valprint.c (m2_value_print_inner): Use | |
13019 | cp_print_value_fields. | |
13020 | * cp-valprint.c (cp_print_value_fields): New function. | |
13021 | * c-valprint.c (c_value_print_struct): New function. | |
13022 | (c_value_print_inner): Use c_value_print_struct. | |
13023 | * c-lang.h (cp_print_value_fields): Declare. | |
13024 | ||
6999f067 TT |
13025 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13026 | ||
13027 | * c-valprint.c (c_value_print_array): New function. | |
13028 | (c_value_print_inner): Use it. | |
13029 | ||
ce80b8bd TT |
13030 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13031 | ||
13032 | * c-valprint.c (c_value_print_memberptr): New function. | |
13033 | (c_value_print_inner): Use it. | |
13034 | ||
2faac269 TT |
13035 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13036 | ||
13037 | * c-valprint.c (c_value_print_int): New function. | |
13038 | (c_value_print_inner): Use it. | |
13039 | ||
da3e2c29 TT |
13040 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13041 | ||
13042 | * c-valprint.c (c_value_print_ptr): New function. | |
13043 | (c_value_print_inner): Use it. | |
13044 | ||
50836231 TT |
13045 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13046 | ||
13047 | * c-valprint.c (c_value_print_inner): Rewrite. | |
13048 | ||
4f412b6e TT |
13049 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13050 | ||
13051 | * valprint.c (generic_value_print_complex): New function. | |
13052 | (generic_value_print): Use it. | |
13053 | ||
f5354008 TT |
13054 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13055 | ||
13056 | * valprint.c (generic_val_print_float): Don't call | |
13057 | val_print_scalar_formatted. | |
13058 | (generic_val_print, generic_value_print): Update. | |
13059 | ||
3eec3b05 TT |
13060 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13061 | ||
13062 | * valprint.c (generic_value_print_char): New function | |
13063 | (generic_value_print): Use it. | |
13064 | ||
fdddfccb TT |
13065 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13066 | ||
13067 | * valprint.c (generic_value_print_int): New function. | |
13068 | (generic_value_print): Use it. | |
13069 | ||
6dde7521 TT |
13070 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13071 | ||
13072 | * valprint.c (generic_value_print_bool): New function. | |
13073 | (generic_value_print): Use it. | |
13074 | ||
4112d2e6 TT |
13075 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13076 | ||
13077 | * valprint.c (generic_val_print_func): Simplify. | |
13078 | (generic_val_print, generic_value_print): Update. | |
13079 | ||
65786af6 TT |
13080 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13081 | ||
13082 | * valprint.c (generic_val_print_flags): Remove. | |
13083 | (generic_val_print, generic_value_print): Update. | |
13084 | (val_print_type_code_flags): Add original_value parameter. | |
13085 | ||
40f3ce18 TT |
13086 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13087 | ||
13088 | * valprint.c (generic_val_print): Update. | |
13089 | (generic_value_print): Update. | |
13090 | * valprint.c (generic_val_print_enum): Don't call | |
13091 | val_print_scalar_formatted. | |
13092 | ||
2a5b130b TT |
13093 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13094 | ||
13095 | * valprint.c (generic_value_print): Call generic_value_print_ptr. | |
13096 | * valprint.c (generic_value_print_ptr): New function. | |
13097 | ||
abc66ce9 TT |
13098 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13099 | ||
13100 | * valprint.c (generic_value_print): Rewrite. | |
13101 | ||
07a32858 TT |
13102 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13103 | ||
13104 | * p-valprint.c (pascal_object_print_value_fields) | |
13105 | (pascal_object_print_value): New functions. | |
13106 | ||
64d64d3a TT |
13107 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13108 | ||
13109 | * p-valprint.c (pascal_value_print_inner): Rewrite. | |
13110 | ||
6a95a1f5 TT |
13111 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13112 | ||
13113 | * f-valprint.c (f_value_print_innner): Rewrite. | |
13114 | ||
59fcdac6 TT |
13115 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13116 | ||
13117 | * m2-valprint.c (m2_print_unbounded_array): New overload. | |
13118 | (m2_print_unbounded_array): Update. | |
13119 | (m2_print_array_contents): Take a struct value. | |
13120 | (m2_value_print_inner): Rewrite. | |
13121 | ||
d133c3e1 TT |
13122 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13123 | ||
13124 | * d-valprint.c (dynamic_array_type): Call d_value_print_inner. | |
13125 | (d_value_print_inner): New function. | |
13126 | * d-lang.h (d_value_print_inner): Declare. | |
13127 | * d-lang.c (d_language_defn): Use d_value_print_inner. | |
13128 | ||
23b0f06b TT |
13129 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13130 | ||
13131 | * go-valprint.c (go_value_print_inner): New function. | |
13132 | * go-lang.h (go_value_print_inner): Declare. | |
13133 | * go-lang.c (go_language_defn): Use go_value_print_inner. | |
13134 | ||
5f56f7cb TT |
13135 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13136 | ||
13137 | * rust-lang.c (val_print_struct, rust_print_enum): Use the value | |
13138 | API. | |
13139 | (rust_val_print): Rewrite. | |
13140 | (rust_value_print_inner): New function, from rust_val_print. | |
13141 | (rust_language_defn): Use rust_value_print_inner. | |
13142 | ||
26792ee0 TT |
13143 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13144 | ||
13145 | * ada-valprint.c (ada_value_print_inner): New function. | |
13146 | * ada-lang.h (ada_value_print_inner): Declare. | |
13147 | * ada-lang.c (ada_language_defn): Use ada_value_print_inner. | |
13148 | ||
24051bbe TT |
13149 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13150 | ||
13151 | * f-valprint.c (f_value_print_innner): New function. | |
13152 | * f-lang.h (f_value_print_innner): Declare. | |
13153 | * f-lang.c (f_language_defn): Use f_value_print_innner. | |
13154 | ||
c0941be6 TT |
13155 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13156 | ||
13157 | * p-valprint.c (pascal_value_print_inner): New function. | |
13158 | * p-lang.h (pascal_value_print_inner): Declare. | |
13159 | * p-lang.c (pascal_language_defn): Use pascal_value_print_inner. | |
13160 | ||
62c4663d TT |
13161 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13162 | ||
13163 | * m2-valprint.c (m2_value_print_inner): New function. | |
13164 | * m2-lang.h (m2_value_print_inner): Declare. | |
13165 | * m2-lang.c (m2_language_defn): Use m2_value_print_inner. | |
13166 | ||
62182190 TT |
13167 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13168 | ||
13169 | * opencl-lang.c (opencl_language_defn): Use c_value_print_inner. | |
13170 | * objc-lang.c (objc_language_defn): Use c_value_print_inner. | |
13171 | * c-valprint.c (c_value_print_inner): New function. | |
13172 | * c-lang.h (c_value_print_inner): Declare. | |
13173 | * c-lang.c (c_language_defn, cplus_language_defn) | |
13174 | (asm_language_defn, minimal_language_defn): Use | |
13175 | c_value_print_inner. | |
13176 | ||
1e592a8a TT |
13177 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13178 | ||
13179 | * p-valprint.c (pascal_object_print_value_fields): Now static. | |
13180 | * p-lang.h (pascal_object_print_value_fields): Don't declare. | |
13181 | ||
7fe471e9 TT |
13182 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13183 | ||
13184 | * c-valprint.c (c_val_print_array): Simplify. | |
13185 | ||
d121c6ce TT |
13186 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13187 | ||
13188 | * valprint.c (value_print_array_elements): New function. | |
13189 | * valprint.h (value_print_array_elements): Declare. | |
13190 | ||
4dba70ee TT |
13191 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13192 | ||
13193 | * printcmd.c (print_formatted): Use value_print_scalar_formatted. | |
13194 | * mips-tdep.c (mips_print_register): Use | |
13195 | value_print_scalar_formatted. | |
13196 | ||
4f9ae810 TT |
13197 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13198 | ||
13199 | * valprint.h (value_print_scalar_formatted): Declare. | |
13200 | * valprint.c (value_print_scalar_formatted): New function. | |
13201 | ||
156bfec9 TT |
13202 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13203 | ||
13204 | * valprint.h (generic_value_print): Declare. | |
13205 | * valprint.c (generic_value_print): New function. | |
13206 | ||
2b4e573d TT |
13207 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13208 | ||
13209 | * valprint.c (do_val_print): Call la_value_print_inner, if | |
13210 | available. | |
13211 | * rust-lang.c (rust_language_defn): Update. | |
13212 | * p-lang.c (pascal_language_defn): Update. | |
13213 | * opencl-lang.c (opencl_language_defn): Update. | |
13214 | * objc-lang.c (objc_language_defn): Update. | |
13215 | * m2-lang.c (m2_language_defn): Update. | |
13216 | * language.h (struct language_defn) <la_value_print_inner>: New | |
13217 | member. | |
13218 | * language.c (unknown_language_defn, auto_language_defn): Update. | |
13219 | * go-lang.c (go_language_defn): Update. | |
13220 | * f-lang.c (f_language_defn): Update. | |
13221 | * d-lang.c (d_language_defn): Update. | |
13222 | * c-lang.c (c_language_defn, cplus_language_defn) | |
13223 | (asm_language_defn, minimal_language_defn): Update. | |
13224 | * ada-lang.c (ada_language_defn): Update. | |
13225 | ||
a1f6a07c TT |
13226 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13227 | ||
13228 | * c-valprint.c (c_value_print): Use common_val_print. | |
13229 | ||
410cf315 TT |
13230 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13231 | ||
13232 | * cp-valprint.c (cp_print_static_field): Use common_val_print. | |
13233 | ||
72a45c93 TT |
13234 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13235 | ||
13236 | * f-valprint.c (f77_print_array_1, f_val_print): Use | |
13237 | common_val_print. | |
13238 | ||
040f66bd TT |
13239 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13240 | ||
13241 | * riscv-tdep.c (riscv_print_one_register_info): Use | |
13242 | common_val_print. | |
13243 | ||
a6e05a6c TT |
13244 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13245 | ||
13246 | * mi/mi-main.c (output_register): Use common_val_print. | |
13247 | ||
3444c526 TT |
13248 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13249 | ||
13250 | * infcmd.c (default_print_one_register_info): Use | |
13251 | common_val_print. | |
13252 | ||
c2a44efe TT |
13253 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13254 | ||
13255 | * valprint.h (common_val_print_checked): Declare. | |
13256 | * valprint.c (common_val_print_checked): New function. | |
13257 | * stack.c (print_frame_arg): Use common_val_print_checked. | |
13258 | ||
b0c26e99 TT |
13259 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13260 | ||
13261 | * valprint.c (do_val_print): New function, from val_print. | |
13262 | (val_print): Use do_val_print. | |
13263 | (common_val_print): Use do_val_print. | |
13264 | ||
ce3acbe9 TT |
13265 | 2020-03-13 Tom Tromey <tom@tromey.com> |
13266 | ||
13267 | * valprint.c (value_print): Use scoped_value_mark. | |
13268 | ||
96c7f873 TV |
13269 | 2020-03-13 Tom de Vries <tdevries@suse.de> |
13270 | ||
13271 | PR symtab/25646 | |
13272 | * psymtab.c (partial_symtab::partial_symtab): Don't set | |
13273 | globals_offset and statics_offset. Push element onto | |
13274 | current_global_psymbols and current_static_psymbols stacks. | |
13275 | (concat): New function. | |
13276 | (end_psymtab_common): Set globals_offset and statics_offset. Pop | |
13277 | element from current_global_psymbols and current_static_psymbols | |
13278 | stacks. Concat popped elements to global_psymbols and | |
13279 | static_symbols. | |
13280 | (add_psymbol_to_list): Use current_global_psymbols and | |
13281 | current_static_psymbols stacks. | |
13282 | * psymtab.h (class psymtab_storage): Add current_global_psymbols and | |
13283 | current_static_psymbols fields. | |
13284 | ||
6ba0a321 CB |
13285 | 2020-03-12 Christian Biesinger <cbiesinger@google.com> |
13286 | ||
13287 | * corelow.c (sniff_core_bfd): Remove. | |
13288 | (class core_target) <m_core_vec>: Remove. | |
13289 | (core_target::core_target): Update. | |
13290 | (core_file_fns): Remove. | |
13291 | (deprecated_add_core_fns): Remove. | |
13292 | (default_core_sniffer): Remove. | |
13293 | (sniff_core_bfd): Remove. | |
13294 | (default_check_format): Remove. | |
13295 | (gdb_check_format): Remove. | |
13296 | (core_target_open): Update. | |
13297 | (core_target::get_core_register_section): Update. | |
13298 | (get_core_registers_cb): Update. | |
13299 | (core_target::fetch_registers): Update. | |
13300 | * gdbcore.h (struct core_fns): Remove. | |
13301 | (deprecated_add_core_fns): Remove. | |
13302 | (default_core_sniffer): Remove. | |
13303 | (default_check_format): Remove. | |
13304 | ||
227031b2 TT |
13305 | 2020-03-12 Tom Tromey <tom@tromey.com> |
13306 | ||
13307 | * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a | |
13308 | CORE_ADDR. | |
13309 | (struct arm_exidx_entry) <addr>: Now a CORE_ADDR. | |
13310 | ||
53807e9f TT |
13311 | 2020-03-12 Tom Tromey <tom@tromey.com> |
13312 | ||
13313 | * remote.c (remote_target::download_tracepoint) | |
13314 | (remote_target::enable_tracepoint) | |
13315 | (remote_target::disable_tracepoint): Use phex, not sprintf_vma. | |
13316 | * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not | |
13317 | sprintf_vma. | |
13318 | ||
64f25102 TT |
13319 | 2020-03-12 Tom Tromey <tom@tromey.com> |
13320 | ||
13321 | * symfile-mem.c: Update CORE_ADDR size assert. | |
13322 | ||
272cd5a3 SM |
13323 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
13324 | ||
13325 | * selftest.m4: Move to gdbsupport/. | |
13326 | * acinclude.m4: Update path to selftest.m4. | |
13327 | ||
74cd3f9d SM |
13328 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
13329 | ||
13330 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to... | |
13331 | (SELFTESTS_SRCS): ... this. Add disasm-selftests.c, | |
13332 | gdbarch-selfselftests.c and selftest-arch.c. | |
13333 | (SUBDIR_UNITTESTS_OBS): Rename to... | |
13334 | (SELFTESTS_OBS): ... this. | |
13335 | (COMMON_SFILES): Remove disasm-selftests.c and | |
13336 | gdbarch-selftests.c. | |
13337 | * configure.ac: Don't add selftest-arch.{c,o} to | |
13338 | CONFIG_{SRCS,OBS}. | |
13339 | * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST | |
13340 | preprocessor conditions. | |
13341 | ||
db6878ac SM |
13342 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
13343 | ||
13344 | * configure.ac: Don't source bfd/development.sh. | |
13345 | * selftest.m4: Modify comment. | |
13346 | * configure: Re-generate. | |
13347 | ||
4d696a5c SM |
13348 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
13349 | ||
13350 | * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is | |
13351 | not "true" or "false". | |
13352 | * configure: Re-generate. | |
13353 | ||
8dd8e1c7 CB |
13354 | 2020-03-12 Christian Biesinger <cbiesinger@google.com> |
13355 | ||
13356 | * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file. | |
13357 | * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and | |
13358 | renamed to arm_nbsd_supply_gregset. | |
13359 | (fetch_register): Update to call arm_nbsd_supply_gregset. | |
13360 | (fetch_regs): Remove in favor of fetch_register with a -1 regno. | |
13361 | (arm_netbsd_nat_target::fetch_registers): Update. | |
13362 | (fetch_elfcore_registers): Removed. | |
13363 | (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns. | |
13364 | * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct. | |
13365 | (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to | |
13366 | not require NetBSD system headers. | |
13367 | (arm_nbsd_regset): New struct. | |
13368 | (arm_nbsd_iterate_over_regset_sections): New function. | |
13369 | (arm_netbsd_init_abi_common): Updated to call | |
13370 | set_gdbarch_iterate_over_regset_sections. | |
13371 | * arm-nbsd-tdep.h: New file. | |
13372 | ||
dd69bf7a KB |
13373 | 2020-03-11 Kevin Buettner <kevinb@redhat.com> |
13374 | ||
13375 | * symtab.c (find_pc_sect_line): Add check which prevents infinite | |
13376 | recursion. | |
13377 | ||
a0761e34 SM |
13378 | 2020-03-11 Simon Marchi <simon.marchi@efficios.com> |
13379 | ||
13380 | * configure: Re-generate. | |
13381 | ||
e7a82140 TT |
13382 | 2020-03-11 Tom Tromey <tromey@adacore.com> |
13383 | ||
13384 | * ada-typeprint.c (print_choices): Fix comment. | |
13385 | ||
dcc050c8 AB |
13386 | 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com> |
13387 | ||
13388 | * buildsyms.c (buildsym_compunit::record_line): Avoid accessing | |
13389 | previous item in the list, when the list has no items. | |
13390 | ||
1c33af77 TV |
13391 | 2020-03-11 Tom de Vries <tdevries@suse.de> |
13392 | ||
13393 | * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in | |
13394 | PROP_LOCLIST handling code. | |
13395 | ||
8c95582d AB |
13396 | 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com> |
13397 | ||
13398 | * buildsym-legacy.c (record_line): Pass extra parameter to | |
13399 | record_line. | |
13400 | * buildsym.c (buildsym_compunit::record_line): Take an extra | |
13401 | parameter, reduce duplication in the line table, and record the | |
13402 | is_stmt flag in the line table. | |
13403 | * buildsym.h (buildsym_compunit::record_line): Add extra | |
13404 | parameter. | |
13405 | * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore | |
13406 | non-statement lines. | |
13407 | * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass | |
13408 | this to the symtab builder. | |
13409 | (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1. | |
13410 | (lnp_state_machine::record_line): Pass a suitable is_stmt flag | |
13411 | through to dwarf_record_line_1. | |
13412 | * infrun.c (process_event_stop_test): When stepping, don't stop at | |
13413 | a non-statement instruction, and only refresh the step info when | |
13414 | we land in the middle of a line's range. Also add an extra | |
13415 | comment. | |
13416 | * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt | |
13417 | field. | |
13418 | * record-btrace.c (btrace_find_line_range): Only record lines | |
13419 | marked as is-statement. | |
13420 | * stack.c (frame_show_address): Show the frame address if we are | |
13421 | in a non-statement sal. | |
13422 | * symmisc.c (dump_symtab_1): Print the is_stmt flag. | |
13423 | (maintenance_print_one_line_table): Print a header for the is_stmt | |
13424 | column, and include is_stmt information in the output. | |
13425 | * symtab.c (find_pc_sect_line): Find lines marked as statements in | |
13426 | preference to non-statements. | |
13427 | (find_pcs_for_symtab_line): Prefer is-statement entries. | |
13428 | (find_line_common): Likewise. | |
13429 | * symtab.h (struct linetable_entry): Add is_stmt field. | |
13430 | (struct symtab_and_line): Likewise. | |
13431 | * xcoffread.c (arrange_linetable): Initialise is_stmt field when | |
13432 | arranging the line table. | |
13433 | ||
e4003a34 TV |
13434 | 2020-03-07 Tom de Vries <tdevries@suse.de> |
13435 | ||
13436 | * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder | |
13437 | DIE. | |
13438 | ||
e8932576 TT |
13439 | 2020-03-07 Tom Tromey <tom@tromey.com> |
13440 | ||
13441 | * valops.c (value_literal_complex): Remove obsolete comment. | |
13442 | * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete | |
13443 | comment. | |
13444 | ||
29734269 SM |
13445 | 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
13446 | ||
13447 | * infrun.h: Forward-declare thread_info. | |
13448 | (set_step_info): Add thread_info parameter, add doc. | |
13449 | * infrun.c (set_step_info): Add thread_info parameter, move doc | |
13450 | to header. | |
13451 | * infrun.c (process_event_stop_test): Pass thread to | |
13452 | set_step_info call. | |
13453 | * infcmd.c (set_step_frame): Add thread_info pointer, pass it to | |
13454 | set_step_info. | |
13455 | (prepare_one_step): Add thread_info parameter, pass it to | |
13456 | set_step_frame and prepare_one_step (recursive) call. | |
13457 | (step_1): Pass thread to prepare_one_step call. | |
13458 | (step_command_fsm::should_stop): Pass thread to | |
13459 | prepare_one_step. | |
13460 | (until_next_fsm): Pass thread to set_step_frame call. | |
13461 | (finish_command): Pass thread to set_step_info call. | |
13462 | ||
b7d64b29 HD |
13463 | 2020-03-06 Hannes Domani <ssbssa@yahoo.de> |
13464 | ||
13465 | * windows-tdep.c (windows_solib_create_inferior_hook): | |
13466 | Check if inferior is running. | |
13467 | ||
09f2921c TV |
13468 | 2020-03-06 Tom de Vries <tdevries@suse.de> |
13469 | ||
13470 | * NEWS: Fix "the the". | |
13471 | * ctfread.c: Same. | |
13472 | ||
fd760e79 TV |
13473 | 2020-03-06 Tom de Vries <tdevries@suse.de> |
13474 | ||
13475 | * psymtab.c (psymtab_to_symtab): Don't print "done.". | |
13476 | ||
20ea4a60 AB |
13477 | 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
13478 | ||
13479 | * .dir-locals.el: Add a comment referencing the other copies of | |
13480 | this file. | |
13481 | ||
0afbabf0 JB |
13482 | 2020-03-05 John Baldwin <jhb@FreeBSD.org> |
13483 | ||
13484 | * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for | |
13485 | psargs. | |
13486 | ||
842806cb TBA |
13487 | 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
13488 | ||
13489 | * .gitattributes: New file. | |
13490 | ||
be1e3d3e TT |
13491 | 2020-03-04 Tom Tromey <tom@tromey.com> |
13492 | ||
13493 | * symmisc.c (print_symbol_bcache_statistics) | |
13494 | (print_objfile_statistics): Update. | |
13495 | * symfile.c (allocate_symtab): Use intern. | |
13496 | * psymtab.c (partial_symtab::partial_symtab): Use intern. | |
13497 | * objfiles.h (struct objfile_per_bfd_storage) <filename_cache, | |
13498 | macro_cache>: Remove. | |
13499 | <string_cache>: New member. | |
13500 | (struct objfile) <intern>: New methods. | |
13501 | * elfread.c (elf_symtab_read): Use intern. | |
13502 | * dwarf2/read.c (fixup_go_packaging): Intern package name. | |
13503 | (dwarf2_compute_name, dwarf2_physname) | |
13504 | (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern | |
13505 | names. | |
13506 | (guess_partial_die_structure_name): Update. | |
13507 | (partial_die_info::fixup): Intern name. | |
13508 | (dwarf2_canonicalize_name): Change parameter to objfile. Intern | |
13509 | name. | |
13510 | (dwarf2_name): Intern name. Update. | |
13511 | * buildsym.c (buildsym_compunit::get_macro_table): Use | |
13512 | string_cache. | |
13513 | ||
4e7625fd TT |
13514 | 2020-03-04 Tom Tromey <tom@tromey.com> |
13515 | ||
13516 | * jit.c (bfd_open_from_target_memory): Make "target" const. | |
13517 | * corefile.c (gnutarget): Now const. | |
13518 | * gdbcore.h (gnutarget): Now const. | |
13519 | ||
46f9f931 HD |
13520 | 2020-03-04 Hannes Domani <ssbssa@yahoo.de> |
13521 | ||
13522 | * NEWS: Mention support for WOW64 processes. | |
13523 | * amd64-windows-nat.c (amd64_mappings): Rename and remove static. | |
13524 | (amd64_windows_segment_register_p): Remove static. | |
13525 | (_initialize_amd64_windows_nat): Update. | |
13526 | * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o. | |
13527 | * i386-windows-nat.c (context_offset): Update. | |
13528 | (i386_mappings): Rename and remove static. | |
13529 | (i386_windows_segment_register_p): Remove static. | |
13530 | (_initialize_i386_windows_nat): Update. | |
13531 | * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro. | |
13532 | (STATUS_WX86_SINGLE_STEP): New macro. | |
13533 | (EnumProcessModulesEx): New macro. | |
13534 | (Wow64SuspendThread): New macro. | |
13535 | (Wow64GetThreadContext): New macro. | |
13536 | (Wow64SetThreadContext): New macro. | |
13537 | (Wow64GetThreadSelectorEntry): New macro. | |
13538 | (windows_set_context_register_offsets): Add static. | |
13539 | (windows_set_segment_register_p): Likewise. | |
13540 | (windows_add_thread): Adapt for WOW64 processes. | |
13541 | (windows_fetch_one_register): Likewise. | |
13542 | (windows_nat_target::fetch_registers): Likewise. | |
13543 | (windows_store_one_register): Likewise. | |
13544 | (display_selector): Likewise. | |
13545 | (display_selectors): Likewise. | |
13546 | (handle_exception): Likewise. | |
13547 | (windows_continue): Likewise. | |
13548 | (windows_nat_target::resume): Likewise. | |
13549 | (windows_add_all_dlls): Likewise. | |
13550 | (do_initial_windows_stuff): Likewise. | |
13551 | (windows_nat_target::attach): Likewise. | |
13552 | (windows_get_exec_module_filename): Likewise. | |
13553 | (windows_nat_target::create_inferior): Likewise. | |
13554 | (windows_xfer_siginfo): Likewise. | |
13555 | (_initialize_loadable): Initialize Wow64SuspendThread, | |
13556 | Wow64GetThreadContext, Wow64SetThreadContext, | |
13557 | Wow64GetThreadSelectorEntry and EnumProcessModulesEx. | |
13558 | * windows-nat.h (windows_set_context_register_offsets): | |
13559 | Remove declaration. | |
13560 | (windows_set_segment_register_p): Likewise. | |
13561 | (i386_windows_segment_register_p): Add declaration. | |
13562 | (amd64_windows_segment_register_p): Likewise. | |
13563 | ||
440cf44e LM |
13564 | 2020-03-04 Luis Machado <luis.machado@linaro.org> |
13565 | ||
13566 | Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions | |
13567 | in "info registers" for AArch64/ARM. | |
13568 | ||
13569 | The change caused "info registers" to not print GPR's. | |
13570 | ||
13571 | gdb/ChangeLog: | |
13572 | ||
13573 | 2020-02-01 Shahab Vahedi <shahab@synopsys.com> | |
13574 | ||
13575 | * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0 | |
13576 | when reg->group is empty and reggroup is not. | |
13577 | ||
1009d92f TT |
13578 | 2020-03-03 Tom Tromey <tromey@adacore.com> |
13579 | ||
13580 | * dwarf2/frame.c (struct dwarf2_frame_cache) | |
13581 | <checked_tailcall_bottom, entry_cfa_sp_offset, | |
13582 | entry_cfa_sp_offset_p>: Remove members. | |
13583 | (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first. | |
13584 | (dwarf2_frame_prev_register): Don't call | |
13585 | dwarf2_tailcall_sniffer_first. | |
13586 | (dwarf2_append_unwinders): Don't append tailcall unwinder. | |
13587 | * frame-unwind.c (add_unwinder): New fuction. | |
13588 | (frame_unwind_init): Use it. Add tailcall unwinder. | |
13589 | ||
5e5d66b6 AB |
13590 | 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com> |
13591 | Alok Kumar Sharma <AlokKumar.Sharma@amd.com> | |
13592 | ||
13593 | * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero | |
13594 | value should be printed as true. | |
13595 | ||
584cf46d HD |
13596 | 2020-03-03 Hannes Domani <ssbssa@yahoo.de> |
13597 | ||
13598 | * windows-tdep.c (windows_solib_create_inferior_hook): New function. | |
13599 | (windows_init_abi): Set and use windows_so_ops. | |
13600 | ||
7b973adc SDJ |
13601 | 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com> |
13602 | ||
13603 | * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR | |
13604 | when verifying if dealing with a convenience variable. | |
13605 | ||
bb7b70ab LM |
13606 | 2020-03-03 Luis Machado <luis.machado@linaro.org> |
13607 | ||
13608 | * auxv.c (default_print_auxv_entry): Add new AUXV entries. | |
13609 | ||
9822cb57 SM |
13610 | 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
13611 | ||
13612 | * infrun.c (gdbarch_supports_displaced_stepping): New. | |
13613 | (use_displaced_stepping): Break up conditions in smaller pieces. | |
13614 | Use gdbarch_supports_displaced_stepping. | |
13615 | (displaced_step_prepare_throw): Use | |
13616 | gdbarch_supports_displaced_stepping. | |
13617 | ||
63e163f2 AB |
13618 | 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> |
13619 | ||
13620 | * NEWS: Mention new behaviour of the history filename. | |
13621 | * top.c (write_history_p): Add comment. | |
13622 | (show_write_history_p): Add header comment, give a different | |
13623 | message when history writing is on, but the history filename is | |
13624 | empty. | |
13625 | (history_filename): Add comment. | |
13626 | (history_filename_empty): New function. | |
13627 | (show_history_filename): Add header comment, give a different | |
13628 | message when the filename is empty. | |
13629 | (init_history): Compare history_filename against nullptr, and only | |
13630 | read history if the filename is not empty. | |
13631 | (set_history_filename): Add header comment, and only make | |
13632 | non-empty filenames absolute. | |
13633 | (init_main): Make the filename argument to 'set history filename' | |
13634 | optional. | |
13635 | ||
81b86b97 CB |
13636 | 2020-03-02 Christian Biesinger <cbiesinger@google.com> |
13637 | ||
13638 | * arm-nbsd-nat.c (arm_supply_fparegset): Rename to... | |
13639 | (arm_supply_vfpregset): ...this, and update to use VFP registers. | |
13640 | (fetch_fp_register): Update. | |
13641 | (fetch_fp_regs): Update. | |
13642 | (store_fp_register): Update. | |
13643 | (store_fp_regs): Update. | |
13644 | (arm_netbsd_nat_target::read_description): New function. | |
13645 | (fetch_elfcore_registers): Update. | |
13646 | ||
24ed6739 AB |
13647 | 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> |
13648 | ||
13649 | * remote.c (remote_target::remote_parse_stop_reply): Don't use the | |
13650 | general_thread if the stop reply is missing a thread-id. | |
13651 | (remote_target::process_stop_reply): Use the first non-exited | |
13652 | thread if the target didn't pass a thread-id. | |
13653 | * infrun.c (do_target_wait): Move call to | |
13654 | switch_to_inferior_no_thread to .... | |
13655 | (do_target_wait_1): ... here. | |
13656 | ||
a84bb2a0 JT |
13657 | 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk> |
13658 | ||
13659 | * debuginfod-support.c: Include defs.h first. | |
13660 | ||
658dadf0 TV |
13661 | 2020-02-28 Tom de Vries <tdevries@suse.de> |
13662 | ||
13663 | * symfile.c (set_initial_language): Use default language for lookup. | |
13664 | ||
4ebe4877 SM |
13665 | 2020-02-28 Simon Marchi <simon.marchi@efficios.com> |
13666 | ||
13667 | * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove | |
13668 | reader variable, pass `this` to read_cutu_die_from_dwo. | |
13669 | ||
e5da1139 AM |
13670 | 2020-02-27 Aaron Merey <amerey@redhat.com> |
13671 | ||
13672 | * source.c (open_source_file): Check for nullptr when computing | |
13673 | srcpath. | |
13674 | ||
317f7127 TT |
13675 | 2020-02-27 Tom Tromey <tromey@adacore.com> |
13676 | ||
13677 | * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a | |
13678 | member. | |
13679 | (dwarf2_add_field): Don't update nfields. | |
13680 | (dwarf2_attach_fields_to_type, process_structure_scope): Update. | |
13681 | ||
3104d9ee AB |
13682 | 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
13683 | ||
13684 | * gdbtypes.c (create_array_type_with_stride): Use std::abs not | |
13685 | abs. | |
13686 | ||
b83470bf TT |
13687 | 2020-02-26 Tom Tromey <tom@tromey.com> |
13688 | ||
13689 | * dwarf2/read.c (struct dwarf2_include_psymtab): New. | |
13690 | (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab. | |
13691 | (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p) | |
13692 | (dwarf2_psymtab::get_compunit_symtab): Remove null checks for | |
13693 | per_cu_data. | |
13694 | ||
edfe0a0c TT |
13695 | 2020-02-26 Tom Tromey <tom@tromey.com> |
13696 | ||
13697 | * dwarf2/index-write.c (psym_index_map): Change type. | |
13698 | (add_address_entry_worker, write_one_signatured_type) | |
13699 | (recursively_count_psymbols, recursively_write_psymbols) | |
13700 | (class debug_names, psyms_seen_size, write_gdbindex) | |
13701 | (write_debug_names): Use partial_symtab, not dwarf2_psymtab. | |
13702 | ||
0d79cdc4 AM |
13703 | 2020-02-26 Aaron Merey <amerey@redhat.com> |
13704 | ||
13705 | * Makefile.in: Handle optional debuginfod support. | |
13706 | * NEWS: Update. | |
13707 | * README: Add --with-debuginfod summary. | |
13708 | * config.in: Regenerate. | |
13709 | * configure: Regenerate. | |
13710 | * configure.ac: Handle optional debuginfod support. | |
13711 | * debuginfod-support.c: debuginfod helper functions. | |
13712 | * debuginfod-support.h: Ditto. | |
13713 | * doc/gdb.texinfo: Add --with-debuginfod to configure options | |
13714 | summary. | |
13715 | * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers | |
13716 | when a dwz file cannot be found. | |
13717 | * elfread.c (elf_symfile_read): Query debuginfod servers when a | |
13718 | debuginfo file cannot be found. | |
13719 | * source.c (open_source_file): Query debuginfod servers when a | |
13720 | source file cannot be found. | |
13721 | * top.c (print_gdb_configuration): Include | |
13722 | --{with,without}-debuginfod in the output. | |
13723 | ||
b65ce565 JG |
13724 | 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com> |
13725 | ||
13726 | * thread.c (thr_try_catch_cmd): Print thread name. | |
13727 | ||
d4c9a4f8 SM |
13728 | 2020-02-26 Simon Marchi <simon.marchi@efficios.com> |
13729 | ||
13730 | * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off, | |
13731 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
13732 | dwarf2_fetch_die_type_sect_off): Move to... | |
13733 | * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off, | |
13734 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
13735 | dwarf2_fetch_die_type_sect_off): ... here. | |
13736 | * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off, | |
13737 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
13738 | dwarf2_fetch_die_type_sect_off): Move doc to header file. | |
13739 | ||
0dce4280 TV |
13740 | 2020-02-26 Tom de Vries <tdevries@suse.de> |
13741 | ||
13742 | PR gdb/25603 | |
13743 | * symfile.c (set_initial_language): Exit-early if | |
13744 | language_mode == language_mode_manual. | |
13745 | ||
450a1bfc SM |
13746 | 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca> |
13747 | ||
13748 | * dwarf2/loc.h (dwarf2_read_addr_index): Move... | |
13749 | * dwarf2/read.h (dwarf2_read_addr_index): ... here. | |
13750 | * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header. | |
13751 | ||
9e80cfa1 AB |
13752 | 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
13753 | ||
13754 | * gdbtypes.c (create_array_type_with_stride): Handle negative | |
13755 | array strides. | |
13756 | * valarith.c (value_subscripted_rvalue): Likewise. | |
13757 | ||
09624f1f LM |
13758 | 2020-02-25 Luis Machado <luis.machado@linaro.org> |
13759 | ||
13760 | * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo. | |
13761 | ||
8cb5117c SM |
13762 | 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca> |
13763 | ||
13764 | * loc.h (dwarf2_get_die_type): Move to... | |
13765 | * read.h (dwarf2_get_die_type): ... here. | |
13766 | * read.c (dwarf2_get_die_type): Move doc to header. | |
13767 | ||
c325c44e JB |
13768 | 2020-02-25 Joel Brobecker <brobecker@adacore.com> |
13769 | ||
13770 | * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and | |
13771 | 'gnulib/Makefile.in' to the list. | |
13772 | ||
4ac93832 TT |
13773 | 2020-02-24 Tom Tromey <tom@tromey.com> |
13774 | ||
13775 | * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>: | |
13776 | Remove. | |
13777 | * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use | |
13778 | XOBNEWVEC. | |
13779 | ||
197400e8 TT |
13780 | 2020-02-24 Tom Tromey <tom@tromey.com> |
13781 | ||
13782 | * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>: | |
13783 | New method. | |
13784 | * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove. | |
13785 | (dw2_do_instantiate_symtab, dw2_get_file_names) | |
13786 | (build_type_psymtab_dependencies, load_full_type_unit): Update. | |
13787 | ||
76935768 TT |
13788 | 2020-02-24 Tom Tromey <tom@tromey.com> |
13789 | ||
13790 | * dwarf2read.c (dwarf2_build_psymtabs_hard): Use | |
13791 | make_scoped_restore. | |
13792 | (dwarf2_psymtab::read_symtab): Don't clear | |
13793 | reading_partial_symbols. | |
13794 | ||
a88ef40d TV |
13795 | 2020-02-24 Tom de Vries <tdevries@suse.de> |
13796 | ||
13797 | PR gdb/25592 | |
13798 | * stack.c (iterate_over_block_locals): Handle LOC_CONST. | |
13799 | ||
c9af6521 TV |
13800 | 2020-02-24 Tom de Vries <tdevries@suse.de> |
13801 | ||
13802 | * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for | |
13803 | commands layout next/prev/regs. | |
13804 | ||
5707a07a TT |
13805 | 2020-02-22 Tom Tromey <tom@tromey.com> |
13806 | ||
13807 | * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare. | |
13808 | * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static. | |
13809 | ||
3b0fb49e TT |
13810 | 2020-02-22 Tom Tromey <tom@tromey.com> |
13811 | ||
13812 | * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window. | |
13813 | ||
283be8bf TT |
13814 | 2020-02-22 Tom Tromey <tom@tromey.com> |
13815 | ||
13816 | * tui/tui-win.c (_initialize_tui_win): Add usage text. | |
13817 | * tui/tui-stack.c (_initialize_tui_stack): Add usage text. | |
13818 | * tui/tui-regs.c (_initialize_tui_regs): Add usage text. | |
13819 | * tui/tui.c (_initialize_tui): Add usage text. | |
13820 | ||
ca793b96 TT |
13821 | 2020-02-22 Tom Tromey <tom@tromey.com> |
13822 | ||
13823 | * tui/tui-win.c (tui_set_focus_command) | |
13824 | (tui_set_win_height_command): Use error_no_arg. | |
13825 | (_initialize_tui_win): Update help text. | |
13826 | (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define. | |
13827 | ||
432b5c40 TT |
13828 | 2020-02-22 Tom Tromey <tom@tromey.com> |
13829 | ||
13830 | * tui/tui-layout.c (extract_display_start_addr): Rewrite. | |
13831 | * tui/tui-disasm.h (struct tui_disasm_window) | |
13832 | <display_start_addr>: Declare. | |
13833 | * tui/tui-source.h (struct tui_source_window) | |
13834 | <display_start_addr>: Declare. | |
13835 | * tui/tui-winsource.h (struct tui_source_window_base) | |
13836 | <show_source_line, display_start_addr>: New methods. | |
13837 | <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>: | |
13838 | Rename and move to protected section. | |
13839 | * tui/tui-winsource.c (tui_source_window_base::update_source_window) | |
13840 | (tui_source_window_base::do_erase_source_content): Update. | |
13841 | (tui_source_window_base::show_source_line): Now a method. | |
13842 | (tui_source_window_base::show_source_content) | |
13843 | (tui_source_window_base::tui_source_window_base) | |
13844 | (tui_source_window_base::rerender) | |
13845 | (tui_source_window_base::refill) | |
13846 | (tui_source_window_base::do_scroll_horizontal) | |
13847 | (tui_source_window_base::set_is_exec_point_at) | |
13848 | (tui_source_window_base::update_breakpoint_info) | |
13849 | (tui_source_window_base::update_exec_info): Update. | |
13850 | * tui/tui-source.c (tui_source_window::set_contents) | |
13851 | (tui_source_window::showing_source_p) | |
13852 | (tui_source_window::do_scroll_vertical) | |
13853 | (tui_source_window::location_matches_p) | |
13854 | (tui_source_window::line_is_displayed): Update. | |
13855 | (tui_source_window::display_start_addr): New method. | |
13856 | * tui/tui-disasm.c (tui_disasm_window::set_contents) | |
13857 | (tui_disasm_window::do_scroll_vertical) | |
13858 | (tui_disasm_window::location_matches_p): Update. | |
13859 | (tui_disasm_window::display_start_addr): New method. | |
13860 | ||
01b1af32 TT |
13861 | 2020-02-22 Tom Tromey <tom@tromey.com> |
13862 | ||
13863 | * NEWS: Add entry for gdb.register_window_type. | |
13864 | * tui/tui-layout.h (window_factory): New typedef. | |
13865 | (tui_register_window): Declare. | |
13866 | * tui/tui-layout.c (saved_tui_windows): New global. | |
13867 | (tui_apply_current_layout): Use it. | |
13868 | (tui_register_window): New function. | |
13869 | * python/python.c (do_start_initialization): Call | |
13870 | gdbpy_initialize_tui. | |
13871 | (python_GdbMethods): Add "register_window_type" function. | |
13872 | * python/python-internal.h (gdbpy_register_tui_window) | |
13873 | (gdbpy_initialize_tui): Declare. | |
13874 | * python/py-tui.c: New file. | |
13875 | * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c. | |
13876 | ||
fc96d20b TT |
13877 | 2020-02-22 Tom Tromey <tom@tromey.com> |
13878 | ||
13879 | * tui/tui-io.c (do_tui_putc): Don't omit annotations. | |
13880 | ||
935c78c0 TT |
13881 | 2020-02-22 Tom Tromey <tom@tromey.com> |
13882 | ||
13883 | * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c. | |
13884 | * tui/tui-data.h (tui_set_win_with_focus): Don't declare. | |
13885 | * tui/tui-data.c (tui_set_win_with_focus): Remove. | |
13886 | (tui_set_win_focus_to): Move from tui-win.c. | |
13887 | ||
0240c8f1 TT |
13888 | 2020-02-22 Tom Tromey <tom@tromey.com> |
13889 | ||
13890 | * tui/tui-layout.c (make_standard_window, get_locator_window): New | |
13891 | functions. | |
13892 | (known_window_types): New global. | |
13893 | (tui_get_window_by_name): Reimplement. | |
13894 | (initialize_known_windows): New function. | |
13895 | (validate_window_name): Rewrite. | |
13896 | (_initialize_tui_layout): Call initialize_known_windows. | |
13897 | ||
fdb01f0c TT |
13898 | 2020-02-22 Tom Tromey <tom@tromey.com> |
13899 | ||
13900 | * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>: | |
13901 | Remove constants. | |
13902 | * tui/tui-winsource.h (struct tui_source_window_base) | |
13903 | <tui_source_window_base>: Remove parameter. | |
13904 | * tui/tui-winsource.c | |
13905 | (tui_source_window_base::tui_source_window_base): Remove | |
13906 | parameter. | |
13907 | (tui_source_window_base::refill): Update. | |
13908 | * tui/tui-stack.h (struct tui_locator_window) | |
13909 | <tui_locator_window>: Update. | |
13910 | * tui/tui-source.h (struct tui_source_window) <tui_source_window>: | |
13911 | Default the constructor. | |
13912 | * tui/tui-regs.h (struct tui_data_item_window) | |
13913 | <tui_data_item_window>: Default the constructor. | |
13914 | (struct tui_data_window) <tui_data_window>: Likewise. | |
13915 | * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>: | |
13916 | Default the constructor. | |
13917 | * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>: | |
13918 | Default the constructor. | |
13919 | <type>: Remove. | |
13920 | (struct tui_win_info) <tui_win_info>: Default the constructor. | |
13921 | * tui/tui-data.c (tui_win_info::tui_win_info): Remove. | |
13922 | * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>: | |
13923 | Default the constructor. | |
13924 | ||
865a5aec TT |
13925 | 2020-02-22 Tom Tromey <tom@tromey.com> |
13926 | ||
13927 | * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare. | |
13928 | * tui/tui-wingeneral.c (tui_make_all_invisible): Remove. | |
13929 | * tui/tui-win.c (tui_resize_all): Don't call | |
13930 | tui_delete_invisible_windows. | |
13931 | * tui/tui-layout.c (tui_apply_current_layout): Delete windows when | |
13932 | done. | |
13933 | (tui_set_layout): Update. | |
13934 | (tui_add_win_to_layout): Don't call tui_delete_invisible_windows. | |
13935 | * tui/tui-data.h (tui_delete_invisible_windows): Don't declare. | |
13936 | * tui/tui-data.c (tui_delete_invisible_windows): Remove. | |
13937 | ||
e098d18c TT |
13938 | 2020-02-22 Tom Tromey <tom@tromey.com> |
13939 | ||
13940 | * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity | |
13941 | correctly. | |
13942 | ||
eb9c8874 TT |
13943 | 2020-02-22 Tom Tromey <tom@tromey.com> |
13944 | ||
13945 | * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement. | |
13946 | ||
7eed1a8e TT |
13947 | 2020-02-22 Tom Tromey <tom@tromey.com> |
13948 | ||
13949 | * tui/tui-winsource.h (struct tui_source_window_iterator) | |
13950 | <inner_iterator>: New etytypedef. | |
13951 | <tui_source_window_iterator>: Take "end" parameter. | |
13952 | <tui_source_window_iterator>: Take iterator. | |
13953 | <operator*, advance>: Update. | |
13954 | <m_iter>: Change type. | |
13955 | <m_end>: New field. | |
13956 | (struct tui_source_windows) <begin, end>: Update. | |
13957 | * tui/tui-layout.c (tui_windows): New global. | |
13958 | (tui_apply_current_layout): Clear tui_windows. | |
13959 | (tui_layout_window::apply): Update tui_windows. | |
13960 | * tui/tui-data.h (tui_windows): Declare. | |
13961 | (all_tui_windows): Now inline function. | |
13962 | (class tui_window_iterator, struct all_tui_windows): Remove. | |
13963 | ||
7c043ba6 TT |
13964 | 2020-02-22 Tom Tromey <tom@tromey.com> |
13965 | ||
13966 | PR tui/17850: | |
13967 | * tui/tui-win.c (tui_gen_win_info::max_width): New method. | |
13968 | * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add | |
13969 | "height" argument. | |
13970 | (class tui_layout_window) <get_sizes>: Likewise. | |
13971 | (class tui_layout_split) <tui_layout_split>: Add "vertical" | |
13972 | argument. | |
13973 | <get_sizes>: Add "height" argument. | |
13974 | <m_vertical>: New field. | |
13975 | * tui/tui-layout.c (tui_layout_split::clone): Update. | |
13976 | (tui_layout_split::get_sizes): Add "height" argument. | |
13977 | (tui_layout_split::adjust_size, tui_layout_split::apply): Update. | |
13978 | (tui_new_layout_command): Parse "-horizontal". | |
13979 | (_initialize_tui_layout): Update help string. | |
13980 | (tui_layout_split::specification): Add "-horizontal" when needed. | |
13981 | * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height" | |
13982 | argument. | |
13983 | * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>: | |
13984 | New methods. | |
13985 | ||
6bc56648 TT |
13986 | 2020-02-22 Tom Tromey <tom@tromey.com> |
13987 | ||
13988 | * tui/tui-layout.h (enum tui_adjust_result): New. | |
13989 | (class tui_layout_base) <adjust_size>: Return tui_adjust_result. | |
13990 | (class tui_layout_window) <adjust_size>: Return | |
13991 | tui_adjust_result. Rewrite. | |
13992 | (class tui_layout_split) <adjust_size>: Return tui_adjust_result. | |
13993 | * tui/tui-layout.c (tui_layout_split::adjust_size): Update. | |
13994 | ||
c22fef7e TT |
13995 | 2020-02-22 Tom Tromey <tom@tromey.com> |
13996 | ||
13997 | * tui/tui-layout.h (class tui_layout_split) <add_split>: Change | |
13998 | parameter and return types. | |
13999 | (class tui_layout_base) <specification>: Add "depth". | |
14000 | (class tui_layout_window) <specification>: Add "depth". | |
14001 | (class tui_layout_split) <specification>: Add "depth". | |
14002 | * tui/tui-layout.c (tui_layout_split::add_split): Change parameter | |
14003 | and return types. | |
14004 | (tui_new_layout_command): Parse sub-layouts. | |
14005 | (_initialize_tui_layout): Update help string. | |
14006 | (tui_layout_window::specification): Add "depth". | |
14007 | (add_layout_command): Update. | |
14008 | ||
ee325b61 TT |
14009 | 2020-02-22 Tom Tromey <tom@tromey.com> |
14010 | ||
14011 | * NEWS: Add "tui new-layout" item. | |
14012 | * tui/tui-layout.c (add_layout_command): Return cmd_list_element. | |
14013 | Add new-layout command to help text. | |
14014 | (validate_window_name): New function. | |
14015 | (tui_new_layout_command): New function. | |
14016 | (_initialize_tui_layout): Register "new-layout". | |
14017 | (tui_layout_window::specification): New method. | |
14018 | (tui_layout_window::specification): New method. | |
14019 | * tui/tui-layout.h (class tui_layout_base) <specification>: New | |
14020 | method. | |
14021 | (class tui_layout_window) <specification>: New method. | |
14022 | (class tui_layout_split) <specification>: New method. | |
14023 | ||
416eb92d TT |
14024 | 2020-02-22 Tom Tromey <tom@tromey.com> |
14025 | ||
14026 | * tui/tui.c (tui_enable): Call tui_set_initial_layout. | |
14027 | * tui/tui-win.c (window_name_completer): Update comment. | |
14028 | * tui/tui-layout.h (class tui_layout_base) <replace_window>: | |
14029 | Declare method. | |
14030 | (class tui_layout_window) <replace_window>: Likewise. | |
14031 | (class tui_layout_split) <replace_window>: Likewise. | |
14032 | (tui_set_layout): Don't declare. | |
14033 | (tui_set_initial_layout): Declare function. | |
14034 | * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout) | |
14035 | (asm_regs_layout): New globals. | |
14036 | (tui_current_layout, show_layout): Remove. | |
14037 | (tui_set_layout, tui_add_win_to_layout): Rewrite. | |
14038 | (find_layout, tui_apply_layout): New function. | |
14039 | (layout_completer): Remove. | |
14040 | (tui_next_layout): Reimplement. | |
14041 | (tui_next_layout_command): New function. | |
14042 | (tui_set_initial_layout, tui_prev_layout_command): New functions. | |
14043 | (tui_regs_layout): Reimplement. | |
14044 | (tui_regs_layout_command): New function. | |
14045 | (extract_display_start_addr): Rewrite. | |
14046 | (next_layout, prev_layout): Remove. | |
14047 | (tui_layout_window::replace_window): New method. | |
14048 | (tui_layout_split::replace_window): New method. | |
14049 | (destroy_layout): New function. | |
14050 | (layout_list): New global. | |
14051 | (add_layout_command): New function. | |
14052 | (initialize_layouts): Update. | |
14053 | (tui_layout_command): New function. | |
14054 | (_initialize_tui_layout): Install "layout" commands. | |
14055 | * tui/tui-data.h (enum tui_layout_type): Remove. | |
14056 | (tui_current_layout): Don't declare. | |
14057 | ||
0dbc2fc7 TT |
14058 | 2020-02-22 Tom Tromey <tom@tromey.com> |
14059 | ||
14060 | * tui/tui-regs.c (tui_reg_layout): Remove. | |
14061 | (tui_reg_command): Use tui_regs_layout. | |
14062 | * tui/tui-layout.h (tui_reg_command): Declare. | |
14063 | * tui/tui-layout.c (tui_reg_command): New function. | |
14064 | ||
5afe342e TT |
14065 | 2020-02-22 Tom Tromey <tom@tromey.com> |
14066 | ||
14067 | * tui/tui.c (tui_rl_delete_other_windows): Call | |
14068 | tui_remove_some_windows. | |
14069 | * tui/tui-layout.h (class tui_layout_base) <remove_windows>: | |
14070 | Declare method. | |
14071 | (class tui_layout_window) <remove_windows>: New method. | |
14072 | (class tui_layout_split) <remove_windows>: Declare. | |
14073 | (tui_remove_some_windows): Declare. | |
14074 | * tui/tui-layout.c (tui_remove_some_windows): New function. | |
14075 | (tui_layout_split::remove_windows): New method. | |
14076 | ||
427326a8 TT |
14077 | 2020-02-22 Tom Tromey <tom@tromey.com> |
14078 | ||
14079 | * tui/tui.c (tui_rl_change_windows): Call tui_next_layout. | |
14080 | * tui/tui-layout.h (tui_next_layout): Declare. | |
14081 | * tui/tui-layout.c (tui_next_layout): New function. | |
14082 | ||
3fe12b6d TT |
14083 | 2020-02-22 Tom Tromey <tom@tromey.com> |
14084 | ||
14085 | * tui/tui-regs.c (tui_data_window::display_registers_from): Use | |
14086 | correct coordinates. | |
14087 | ||
59b8b5d2 TT |
14088 | 2020-02-22 Tom Tromey <tom@tromey.com> |
14089 | ||
14090 | * tui/tui-layout.h (tui_add_win_to_layout): Add comment. | |
14091 | * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove | |
14092 | DATA_WIN case. | |
14093 | ||
2a3d458b TT |
14094 | 2020-02-22 Tom Tromey <tom@tromey.com> |
14095 | ||
14096 | * tui/tui-disasm.c (tui_get_low_disassembly_address): Use | |
14097 | TUI_DISASM_WIN, not tui_win_list. | |
14098 | ||
3f0cbb04 TT |
14099 | 2020-02-22 Tom Tromey <tom@tromey.com> |
14100 | ||
14101 | * valprint.c (generic_val_print_enum_1) | |
14102 | (val_print_type_code_flags): Style member names. | |
14103 | * rust-lang.c (val_print_struct, rust_print_enum) | |
14104 | (rust_print_struct_def, rust_internal_print_type): Style member | |
14105 | names. | |
14106 | * p-valprint.c (pascal_object_print_value_fields): Style member | |
14107 | names. Only call fprintf_symbol_filtered for static members. | |
14108 | * m2-typeprint.c (m2_record_fields, m2_enum): Style member names. | |
14109 | * f-valprint.c (f_val_print): Style member names. | |
14110 | * f-typeprint.c (f_type_print_base): Style member names. | |
14111 | * cp-valprint.c (cp_print_value_fields): Style member names. Only | |
14112 | call fprintf_symbol_filtered for static members. | |
14113 | (cp_print_class_member): Style member names. | |
14114 | * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style | |
14115 | member names. | |
14116 | * ada-valprint.c (ada_print_scalar): Style enum names. | |
14117 | (ada_val_print_enum): Likewise. | |
14118 | * ada-typeprint.c (print_enum_type): Style enum names. | |
14119 | ||
d4d947ae TT |
14120 | 2020-02-21 Tom Tromey <tom@tromey.com> |
14121 | ||
14122 | * psympriv.h (struct partial_symtab): Update comment. | |
14123 | ||
e94e944b TT |
14124 | 2020-02-21 Tom Tromey <tromey@adacore.com> |
14125 | ||
14126 | * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter | |
14127 | type is CORE_ADDR. | |
14128 | ||
1eb73179 TV |
14129 | 2020-02-21 Tom de Vries <tdevries@suse.de> |
14130 | ||
14131 | PR gdb/25534 | |
14132 | * psymtab.c (partial_symtab::read_dependencies): Don't read dependency | |
14133 | if dependencies[i]->user != NULL. | |
14134 | ||
4f180d53 AT |
14135 | 2020-02-21 Ali Tamur <tamur@google.com> |
14136 | ||
14137 | * dwarf2/read.c (dwarf2_name): Add null check. | |
14138 | ||
22b6cd70 TT |
14139 | 2020-02-20 Tom Tromey <tom@tromey.com> |
14140 | ||
14141 | * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not | |
14142 | ">=", in binary search. | |
14143 | (dwarf2_find_containing_comp_unit): New overload. | |
14144 | (run_test): New self-test. | |
14145 | (_initialize_dwarf2_read): Register new test. | |
14146 | ||
bd0cf5a6 NC |
14147 | 2020-02-20 Nelson Chu <nelson.chu@sifive.com> |
14148 | ||
14149 | * riscv-tdep.c: Updated since the DECLARE_CSR is changed. | |
14150 | * riscv-tdep.h: Likewise. | |
14151 | * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without | |
14152 | rv32-only CSR. | |
14153 | * features/riscv/64bit-csr.xml: Regenerated. | |
14154 | ||
3f702acd SDJ |
14155 | 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
14156 | Tom Tromey <tom@tromey.com> | |
14157 | ||
14158 | * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead | |
14159 | of 'fputc_unfiltered'. | |
14160 | (putchar_unfiltered): Call 'fputc_unfiltered'. | |
14161 | (fputc_unfiltered): Call 'fputs_unfiltered'. | |
14162 | ||
d13c7322 AB |
14163 | 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com> |
14164 | ||
14165 | * config.in: Regenerate. | |
14166 | * configure: Regenerate. | |
14167 | * configure.ac: Add --with-python-libdir option. | |
14168 | * main.c: Use WITH_PYTHON_LIBDIR. | |
14169 | ||
869d8950 TT |
14170 | 2020-02-19 Tom Tromey <tom@tromey.com> |
14171 | ||
14172 | * symtab.c (general_symbol_info::compute_and_set_names): Use | |
14173 | obstack_strndup. Simplify call to symbol_set_demangled_name. | |
14174 | ||
298e9637 SM |
14175 | 2020-02-19 Simon Marchi <simon.marchi@efficios.com> |
14176 | ||
14177 | * dwarf2/read.c (allocate_signatured_type_table, | |
14178 | allocate_dwo_unit_table, allocate_type_unit_groups_table, | |
14179 | allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table): | |
14180 | Remove objfile parameter, update all callers. | |
14181 | ||
08410482 DE |
14182 | 2020-02-19 Doug Evans <dje@google.com> |
14183 | ||
14184 | PR rust/25535 | |
14185 | * rust-lang.c (rust_print_enum): Apply embedded_offset to | |
14186 | rust_enum_variant calculation. | |
14187 | ||
dfdeeca1 TT |
14188 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
14189 | ||
14190 | * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR. | |
14191 | ||
2ef5453b TT |
14192 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
14193 | ||
14194 | * ada-lang.c (cache_symbol): Use obstack_strdup. | |
14195 | ||
9f1528a1 AB |
14196 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> |
14197 | ||
14198 | * configure: Regenerate. | |
14199 | ||
d3c22fa8 TT |
14200 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
14201 | ||
14202 | * python/python.c (do_start_initialization): Use XNEWVEC. Remove | |
14203 | NULL check. | |
14204 | ||
bf84f706 MR |
14205 | 2020-02-19 Maciej W. Rozycki <macro@wdc.com> |
14206 | ||
14207 | * NEWS: Mention RISC-V GNU/Linux GDBserver support. | |
14208 | ||
d1c9b20f AB |
14209 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> |
14210 | ||
14211 | * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define | |
14212 | if GDBSERVER is not defined. | |
14213 | (riscv_tdesc_cache): Likewise, also store const target_desc. | |
14214 | (STATIC_IN_GDB): Define. | |
14215 | (riscv_create_target_description): Update declaration with | |
14216 | STATIC_IN_GDB. | |
14217 | (riscv_lookup_target_description): New function, only define if | |
14218 | GDBSERVER is not defined. | |
14219 | * arch/riscv.h (riscv_create_target_description): Declare only | |
14220 | when GDBSERVER is defined. | |
14221 | (riscv_lookup_target_description): New declaration when GDBSERVER | |
14222 | is not defined. | |
14223 | * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to... | |
14224 | (riscv_linux_read_features): ...this, and return | |
14225 | riscv_gdbarch_features instead of target_desc. | |
14226 | * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'. | |
14227 | (riscv_linux_read_description): Rename to... | |
14228 | (riscv_linux_read_features): ...this. | |
14229 | * riscv-linux-nat.c (riscv_linux_nat_target::read_description): | |
14230 | Update to use riscv_gdbarch_features and | |
14231 | riscv_lookup_target_description. | |
14232 | * riscv-tdep.c (riscv_find_default_target_description): Use | |
14233 | riscv_lookup_target_description instead of | |
14234 | riscv_create_target_description. | |
14235 | ||
373d7ac0 SM |
14236 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
14237 | ||
14238 | * valprint.c (generic_val_print_enum_1): When printing a flag | |
14239 | enum with value 0 and there is no enumerator with value 0, print | |
14240 | just "0" instead of "(unknown: 0x0)". | |
14241 | ||
b29a2df0 SM |
14242 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
14243 | ||
14244 | * valprint.c (generic_val_print_enum_1): Print unknown part of | |
14245 | flag enum in hex. | |
14246 | ||
6740f0cc SM |
14247 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
14248 | ||
14249 | * dwarf2/read.c (update_enumeration_type_from_children): Allow | |
14250 | flag enums to contain duplicate enumerators. | |
14251 | * valprint.c (generic_val_print_enum_1): Update comment. | |
14252 | ||
edd45eb0 SM |
14253 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
14254 | ||
14255 | * dwarf2/read.c: Include "count-one-bits.h". | |
14256 | (update_enumeration_type_from_children): If an enumerator has | |
14257 | multiple bits set, don't treat the enumeration as a "flag enum". | |
14258 | * valprint.c (generic_val_print_enum_1): Assert that enumerators | |
14259 | of flag enums have 0 or 1 bit set. | |
14260 | ||
6d0cf446 BE |
14261 | 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de> |
14262 | ||
14263 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit | |
14264 | conversion. | |
14265 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
14266 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise. | |
14267 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
14268 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise. | |
14269 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
14270 | ||
7001c1b7 SM |
14271 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
14272 | ||
14273 | * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com. | |
14274 | ||
fdb61c6c SM |
14275 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
14276 | ||
14277 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use | |
14278 | displaced_step_closure_up. | |
14279 | * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise. | |
14280 | (struct displaced_step_closure_up): | |
14281 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
14282 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise. | |
14283 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): | |
14284 | Likewise. | |
14285 | * gdbarch.sh (displaced_step_copy_insn): Likewise. | |
14286 | * gdbarch.c, gdbarch.h: Re-generate. | |
14287 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use | |
14288 | displaced_step_closure_up. | |
14289 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
14290 | * i386-tdep.h (i386_displaced_step_copy_insn): Likewise. | |
14291 | * infrun.h (displaced_step_closure_up): New type alias. | |
14292 | (struct displaced_step_inferior_state) <step_closure>: Change | |
14293 | type to displaced_step_closure_up. | |
14294 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use | |
14295 | displaced_step_closure_up. | |
14296 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
14297 | ||
a4a38eb4 TT |
14298 | 2020-02-14 Tom Tromey <tom@tromey.com> |
14299 | ||
14300 | * minidebug.c (gnu_debug_key): New global. | |
14301 | (find_separate_debug_file_in_section): Use it. | |
14302 | ||
e8217e61 SM |
14303 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
14304 | ||
14305 | * gdbarch.sh (displaced_step_copy_insn): Change return type to an | |
14306 | std::unique_ptr. | |
14307 | * gdbarch.c: Re-generate. | |
14308 | * gdbarch.h: Re-generate. | |
14309 | * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr | |
14310 | change. | |
14311 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return | |
14312 | type to std::unique_ptr. | |
14313 | * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise. | |
14314 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
14315 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise. | |
14316 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise. | |
14317 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise. | |
14318 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
14319 | * i386-tdep.h (i386_displaced_step_copy_insn): Likewise. | |
14320 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise. | |
14321 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
14322 | ||
d8d83535 SM |
14323 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
14324 | ||
14325 | * infrun.c (get_displaced_step_closure_by_addr): Adjust to | |
14326 | std::unique_ptr. | |
14327 | (displaced_step_clear): Rename to... | |
14328 | (displaced_step_reset): ... this. Just call displaced->reset (). | |
14329 | (displaced_step_clear_cleanup): Rename to... | |
14330 | (displaced_step_reset_cleanup): ... this. | |
14331 | (displaced_step_prepare_throw): Adjust to std::unique_ptr. | |
14332 | (displaced_step_fixup): Likewise. | |
14333 | (resume_1): Likewise. | |
14334 | (handle_inferior_event): Restore child's memory before calling | |
14335 | displaced_step_fixup on the parent. | |
14336 | * infrun.h (displaced_step_inferior_state) <reset>: Adjust | |
14337 | to std::unique_ptr. | |
14338 | <step_closure>: Change type to std::unique_ptr. | |
14339 | ||
5f661e03 SM |
14340 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
14341 | ||
14342 | * arm-tdep.c: Include count-one-bits.h. | |
14343 | (cleanup_block_store_pc): Use count_one_bits. | |
14344 | (cleanup_block_load_pc): Use count_one_bits. | |
14345 | (arm_copy_block_xfer): Use count_one_bits. | |
14346 | (thumb2_copy_block_xfer): Use count_one_bits. | |
14347 | (thumb_copy_pop_pc_16bit): Use count_one_bits. | |
14348 | * arch/arm-get-next-pcs.c: Include count-one-bits.h. | |
14349 | (thumb_get_next_pcs_raw): Use count_one_bits. | |
14350 | (arm_get_next_pcs_raw): Use count_one_bits_l. | |
14351 | * arch/arm.c (bitcount): Remove. | |
14352 | * arch/arm.h (bitcount): Remove. | |
14353 | ||
8084e579 TT |
14354 | 2020-02-14 Tom Tromey <tromey@adacore.com> |
14355 | ||
14356 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): | |
14357 | Update. | |
14358 | * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr. | |
14359 | * dwarf2/loc.c (call_site_find_chain_1): Return | |
14360 | unique_xmalloc_ptr. | |
14361 | (call_site_find_chain): Likewise. | |
14362 | ||
258bf0ee RB |
14363 | 2020-02-14 Richard Biener <rguenther@suse.de> |
14364 | ||
14365 | * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE | |
14366 | on expression with division operators. | |
14367 | ||
f98a8458 AKS |
14368 | 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
14369 | ||
14370 | * MAINTAINERS (Write After Approval): Adding myself. | |
14371 | ||
d1437c0e TT |
14372 | 2020-02-12 Tom Tromey <tom@tromey.com> |
14373 | ||
14374 | * event-loop.c (event_data, gdb_event, event_handler_func): | |
14375 | Remove. | |
14376 | ||
3d4560f7 TT |
14377 | 2020-02-12 Tom Tromey <tom@tromey.com> |
14378 | ||
14379 | * dwarf2/frame.c (dwarf2_frame_bfd_data): New global. | |
14380 | (dwarf2_frame_objfile_data): Add comment. | |
14381 | (find_comp_unit, set_comp_unit): New functions. | |
14382 | (dwarf2_frame_find_fde): Use find_comp_unit. | |
14383 | (dwarf2_build_frame_info): Use set_comp_unit. | |
14384 | ||
21982304 TT |
14385 | 2020-02-12 Tom Tromey <tom@tromey.com> |
14386 | ||
14387 | * dwarf2/frame.c (struct comp_unit) <objfile>: Remove. | |
14388 | (comp_unit): Don't initialize objfile. | |
14389 | (execute_cfa_program): Add text_offset parameter. | |
14390 | (execute_cfa_program_test, dwarf2_fetch_cfa_info) | |
14391 | (dwarf2_frame_cache): Update. | |
14392 | (dwarf2_build_frame_info): Don't set "objfile" member. | |
14393 | ||
4debb237 TT |
14394 | 2020-02-12 Tom Tromey <tom@tromey.com> |
14395 | ||
14396 | * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter. | |
14397 | (decode_frame_entry): Likewise. | |
14398 | (dwarf2_build_frame_info): Update. | |
14399 | ||
0d404d44 TT |
14400 | 2020-02-12 Tom Tromey <tom@tromey.com> |
14401 | ||
14402 | * dwarf2/frame.c (struct comp_unit) <obstack>: New member. | |
14403 | (decode_frame_entry_1): Use the comp_unit obstack. | |
14404 | ||
a7a3ae5c TT |
14405 | 2020-02-12 Tom Tromey <tom@tromey.com> |
14406 | ||
14407 | * dwarf2/frame.c (struct comp_unit): Add initializers and | |
14408 | constructor. | |
14409 | (dwarf2_frame_objfile_data): Store a comp_unit. | |
14410 | (dwarf2_frame_find_fde): Update. | |
14411 | (dwarf2_build_frame_info): Use "new". | |
14412 | ||
a9d65418 TT |
14413 | 2020-02-12 Tom Tromey <tom@tromey.com> |
14414 | ||
14415 | * dwarf2/frame.c (struct dwarf2_fde_table): Remove. | |
14416 | (dwarf2_fde_table): Typedef for std::vector. | |
14417 | (dwarf2_frame_objfile_data): Remove the deleter. Now static. | |
14418 | (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1) | |
14419 | (decode_frame_entry): Update. | |
14420 | (dwarf2_build_frame_info): Use "new". | |
14421 | ||
7559c217 CB |
14422 | 2020-02-12 Christian Biesinger <cbiesinger@google.com> |
14423 | ||
14424 | * arm-tdep.c (arm_gdbarch_init): Update. | |
14425 | * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers, | |
14426 | have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos, | |
14427 | have_neon, is_m>: Change to bool. | |
14428 | ||
aeefc73c CB |
14429 | 2020-02-12 Christian Biesinger <cbiesinger@google.com> |
14430 | ||
14431 | * arm-tdep.c (arm_dump_tdep): Print more fields of tdep. | |
14432 | ||
d27b8e5f TT |
14433 | 2020-02-12 Tom Tromey <tom@tromey.com> |
14434 | ||
14435 | * dwarf2/loc.c (struct dwarf_expr_baton): Remove. | |
14436 | ||
cd5900f3 HD |
14437 | 2020-02-12 Hannes Domani <ssbssa@yahoo.de> |
14438 | ||
14439 | * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type. | |
14440 | (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type. | |
14441 | ||
f056b22b TT |
14442 | 2020-02-11 Tom Tromey <tom@tromey.com> |
14443 | ||
14444 | * psymtab.h: Update comment. | |
14445 | ||
f92ff6b5 TT |
14446 | 2020-02-11 Tom Tromey <tom@tromey.com> |
14447 | ||
14448 | * gdb_obstack.h (struct auto_obstack): Use | |
14449 | DISABLE_COPY_AND_ASSIGN. | |
14450 | ||
3fd6912b TT |
14451 | 2020-02-11 Tom Tromey <tom@tromey.com> |
14452 | ||
14453 | * dwarf2/frame.h (struct objfile): Don't forward declare. | |
14454 | ||
69ed9b74 CB |
14455 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
14456 | ||
14457 | * cris-tdep.c (cris_supply_gregset): Change signature to match | |
14458 | what struct regset expects. | |
14459 | (cris_regset): New struct. | |
14460 | (fetch_core_registers): Remove. | |
14461 | (cris_iterate_over_regset_sections): New function. | |
14462 | (_initialize_cris_tdep): Don't call deprecated_add_core_fns. | |
14463 | (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections. | |
14464 | ||
bda874f6 CB |
14465 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
14466 | ||
14467 | * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7 | |
14468 | registers. | |
14469 | ||
754e1564 CB |
14470 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
14471 | ||
14472 | * arm-tdep.c (arm_dump_tdep): Add \n in fprintf. | |
14473 | ||
8ddd8e0e SM |
14474 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
14475 | ||
14476 | * configure: Re-generate. | |
14477 | ||
898e7f60 SM |
14478 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
14479 | ||
14480 | * configure: Re-generate. | |
14481 | ||
58df732b SM |
14482 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
14483 | ||
14484 | * acinclude: Update warning.m4 path. | |
14485 | * warning.m4: Move to gdbsupport. | |
14486 | ||
da5bd37e TT |
14487 | 2020-02-11 Tom Tromey <tromey@adacore.com> |
14488 | ||
14489 | * remote.c (remote_console_output): Update. | |
14490 | * printcmd.c (printf_command): Update. | |
14491 | * event-loop.c (gdb_wait_for_event): Update. | |
14492 | * linux-nat.c (sigchld_handler): Update. | |
14493 | * remote-sim.c (gdb_os_write_stdout): Update. | |
14494 | (gdb_os_flush_stdout): Update. | |
14495 | (gdb_os_flush_stderr): Update. | |
14496 | (gdb_os_write_stderr): Update. | |
14497 | * exceptions.c (print_exception): Update. | |
14498 | * remote-fileio.c (remote_fileio_func_read): Update. | |
14499 | (remote_fileio_func_write): Update. | |
14500 | * tui/tui.c (tui_enable): Update. | |
14501 | * tui/tui-interp.c (tui_interp::init): Update. | |
14502 | * utils.c (init_page_info): Update. | |
14503 | (putchar_unfiltered, fputc_unfiltered): Update. | |
14504 | (gdb_flush): Update. | |
14505 | (emit_style_escape): Update. | |
14506 | (flush_wrap_buffer, fputs_maybe_filtered): Update. | |
14507 | * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write) | |
14508 | (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove. | |
14509 | (stderr_file::write): Update. | |
14510 | (stderr_file::puts): Update. | |
14511 | * ui-file.h (ui_file_isatty, ui_file_write) | |
14512 | (ui_file_write_async_safe, ui_file_read, ui_file_flush) | |
14513 | (ui_file_puts): Don't declare. | |
14514 | ||
85f0dd3c TV |
14515 | 2020-02-10 Tom de Vries <tdevries@suse.de> |
14516 | ||
14517 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL | |
14518 | sentinel to char *. | |
14519 | ||
2e927613 TV |
14520 | 2020-02-09 Tom de Vries <tdevries@suse.de> |
14521 | ||
14522 | * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to | |
14523 | filename if it matches "<artificial>". | |
14524 | ||
6bafc845 HD |
14525 | 2020-02-09 Hannes Domani <ssbssa@yahoo.de> |
14526 | ||
14527 | * windows-tdep.c (struct enum_value_name): New struct. | |
14528 | (create_enum): New function. | |
14529 | (windows_get_siginfo_type): Create and use enum types. | |
14530 | ||
7928d571 HD |
14531 | 2020-02-09 Hannes Domani <ssbssa@yahoo.de> |
14532 | ||
14533 | * NEWS: Mention $_siginfo support for Windows. | |
14534 | * windows-nat.c (handle_exception): Set siginfo_er. | |
14535 | (windows_nat_target::mourn_inferior): Reset siginfo_er. | |
14536 | (windows_xfer_siginfo): New function. | |
14537 | (windows_nat_target::xfer_partial): Call windows_xfer_siginfo. | |
14538 | * windows-tdep.c (struct windows_gdbarch_data): New struct. | |
14539 | (init_windows_gdbarch_data): New function. | |
14540 | (get_windows_gdbarch_data): New function. | |
14541 | (windows_get_siginfo_type): New function. | |
14542 | (windows_init_abi): Register windows_get_siginfo_type. | |
14543 | (_initialize_windows_tdep): Register init_windows_gdbarch_data. | |
14544 | ||
6751ebae TT |
14545 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14546 | ||
14547 | * dwarf2/read.c (class cutu_reader) <cutu_reader, | |
14548 | init_tu_and_read_dwo_dies>: Remove "keep" parameter. | |
14549 | <keep>: Declare method. | |
14550 | <m_keep>: Remove member. | |
14551 | <~cutu_reader>: Remove. | |
14552 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
14553 | (cutu_reader::cutu_reader): Update. | |
14554 | (cutu_reader::keep): Rename from ~cutu_reader. | |
14555 | (process_psymtab_comp_unit, build_type_psymtabs_1) | |
14556 | (process_skeletonless_type_unit, load_partial_comp_unit) | |
14557 | (load_full_comp_unit, dwarf2_read_addr_index) | |
14558 | (read_signatured_type): Update. | |
14559 | ||
135f5437 TT |
14560 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14561 | ||
14562 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove | |
14563 | "want_partial_unit" parameter. | |
14564 | (process_psymtab_comp_unit): Change want_partial_unit to bool. | |
14565 | Inline check for DW_TAG_partial_unit. | |
14566 | (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update. | |
14567 | ||
9f66ff1c TT |
14568 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14569 | ||
14570 | * dwarf2/read.c (read_n_bytes, read_direct_string): Move to | |
14571 | read.c. | |
14572 | * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from | |
14573 | read.c. | |
14574 | ||
c8a7a66f TT |
14575 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14576 | ||
14577 | * dwarf2/read.c (read_address): Move to comp-unit.c. | |
14578 | (dwarf2_rnglists_process, dwarf2_ranges_process) | |
14579 | (read_attribute_value, dwarf_decode_lines_1) | |
14580 | (var_decode_location, decode_locdesc): Update. | |
14581 | * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from | |
14582 | read.c. Remove "cu" parameter. | |
14583 | * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New | |
14584 | method. | |
14585 | ||
8266302d TT |
14586 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14587 | ||
14588 | * dwarf2/read.c (read_attribute_value, read_indirect_string) | |
14589 | (read_indirect_line_string): Update. | |
14590 | * dwarf2/comp-unit.c (read_offset): Remove. | |
14591 | (read_comp_unit_head): Update. | |
14592 | * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New | |
14593 | method. | |
14594 | (read_offset): Don't declare. | |
14595 | ||
4057dfde TT |
14596 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14597 | ||
14598 | * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c. | |
14599 | * dwarf2/read.c (struct comp_unit_head): Move to | |
14600 | dwarf2/comp-unit.h. | |
14601 | (enum class rcuh_kind): Move to comp-unit.h. | |
14602 | (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head. | |
14603 | (read_comp_unit_head, error_check_comp_unit_head) | |
14604 | (read_and_check_comp_unit_head): Move to comp-unit.c. | |
14605 | (read_offset, dwarf_unit_type_name): Likewise. | |
14606 | (create_debug_type_hash_table, read_cutu_die_from_dwo) | |
14607 | (cutu_reader::cutu_reader, read_call_site_scope) | |
14608 | (find_partial_die, follow_die_offset): Update. | |
14609 | * dwarf2/comp-unit.h: New file, from dwarf2read.c. | |
14610 | ||
24aa364d TT |
14611 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14612 | ||
14613 | * dwarf2/read.c (read_offset_1): Move to leb.c. | |
14614 | (read_abbrev_offset, read_offset, dwarf_decode_line_header) | |
14615 | (dwarf_decode_macro_bytes): Update. | |
14616 | * dwarf2/leb.c (read_offset): Rename; move from read.c. | |
14617 | * dwarf2/leb.h (read_offset): Declare. | |
14618 | ||
2c7d5afc TT |
14619 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14620 | ||
14621 | * dwarf2/read.c (dwarf2_section_size): Remove. | |
14622 | (error_check_comp_unit_head, dwarf2_symbol_mark_computed): | |
14623 | Update. | |
14624 | * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method. | |
14625 | ||
4075cb26 TT |
14626 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14627 | ||
14628 | * dwarf2/read.c (read_initial_length): Move to leb.c. | |
14629 | * dwarf2/leb.h (read_initial_length): Declare. | |
14630 | * dwarf2/leb.c (read_initial_length): Move from read.c. Add | |
14631 | handle_nonstd parameter. | |
14632 | * dwarf2/frame.c (read_initial_length): Remove. | |
14633 | (decode_frame_entry_1): Update. | |
14634 | ||
09ba997f TT |
14635 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14636 | ||
14637 | * dwarf2/loc.c (dwarf2_find_location_expression) | |
14638 | (dwarf_evaluate_loc_desc::get_tls_address) | |
14639 | (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value) | |
14640 | (rw_pieced_value, dwarf2_evaluate_loc_desc_full) | |
14641 | (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property) | |
14642 | (dwarf2_compile_property_to_c) | |
14643 | (dwarf2_loc_desc_get_symbol_read_needs) | |
14644 | (dwarf2_compile_expr_to_ax, locexpr_describe_location) | |
14645 | (locexpr_tracepoint_var_ref, locexpr_generate_c_location) | |
14646 | (loclist_describe_location, loclist_tracepoint_var_ref) | |
14647 | (loclist_generate_c_location): Update. | |
14648 | * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update. | |
14649 | * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size) | |
14650 | (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size) | |
14651 | (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare. | |
14652 | * dwarf2/read.c (dwarf2_per_cu_data::objfile) | |
14653 | (dwarf2_per_cu_data::addr_size) | |
14654 | (dwarf2_per_cu_data::ref_addr_size) | |
14655 | (dwarf2_per_cu_data::text_offset) | |
14656 | (dwarf2_per_cu_data::addr_type): Now methods. | |
14657 | (per_cu_header_read_in): Make per_cu "const". | |
14658 | (dwarf2_version): Remove. | |
14659 | (dwarf2_per_cu_data::int_type): Now a method. | |
14660 | (dwarf2_per_cu_data::_addr_sized_int_type): Likewise. | |
14661 | (set_die_type, read_array_type, read_subrange_index_type) | |
14662 | (read_tag_string_type, read_subrange_type): Update. | |
14663 | * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size, | |
14664 | offset_size, ref_addr_size, text_offset, addr_type, version, | |
14665 | objfile, int_type, addr_sized_int_type>: Declare methods. | |
14666 | ||
96c738c0 TT |
14667 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14668 | ||
14669 | * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>: | |
14670 | Move earlier. | |
14671 | ||
8fdd972c TT |
14672 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14673 | ||
14674 | * dwarf2/read.h (dwarf_line_debug): Declare. | |
14675 | * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c. | |
14676 | * dwarf2/read.c: Move line_header code to new files. | |
14677 | (dwarf_line_debug): No longer static. | |
14678 | * dwarf2/line-header.c: New file. | |
14679 | * dwarf2/line-header.h: New file. | |
14680 | ||
03075812 TT |
14681 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14682 | ||
14683 | * dwarf2/read.c (struct line_header) <file_full_name, | |
14684 | file_file_name>: Return unique_xmalloc_ptr. | |
14685 | (line_header::file_file_name): Update. | |
14686 | (line_header::file_full_name): Update. | |
14687 | (dw2_get_file_names_reader): Update. | |
14688 | (macro_start_file): Update. | |
14689 | ||
bb822404 TT |
14690 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14691 | ||
14692 | * dwarf2/read.c (struct line_header) <file_full_name, | |
14693 | file_file_name>: Declare methods. | |
14694 | (dw2_get_file_names_reader): Update. | |
14695 | (file_file_name): Now a method. | |
14696 | (file_full_name): Likewise. | |
14697 | (macro_start_file): Update. | |
14698 | ||
009b64fc TT |
14699 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14700 | ||
14701 | * dwarf2/read.c (dwarf_always_disassemble) | |
14702 | (show_dwarf_always_disassemble): Move to loc.c. | |
14703 | (_initialize_dwarf2_read): Move "always-disassemble" registration | |
14704 | to loc.c. | |
14705 | * dwarf2/read.h (dwarf_always_disassemble): Don't declare. | |
14706 | * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now | |
14707 | static. | |
14708 | (show_dwarf_always_disassemble): Move from read.c. | |
14709 | (_initialize_dwarf2loc): Move always-disassemble from read.c. | |
14710 | ||
5895093f TT |
14711 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14712 | ||
14713 | * dwarf2/read.c (~dwarf2_per_objfile): Update. | |
14714 | (create_quick_file_names_table): Return htab_up. | |
14715 | (dw2_get_file_names_reader, dw2_forget_cached_source_info): | |
14716 | Update. | |
14717 | * dwarf2/read.h (struct dwarf2_per_objfile) | |
14718 | <quick_file_names_table>: Now htab_up. | |
14719 | ||
b3b32279 TT |
14720 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14721 | ||
14722 | * dwarf2/abbrev.c (abbrev_table::read): Simplify. | |
14723 | ||
1d33d811 TT |
14724 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14725 | ||
14726 | * dwarf2/abbrev.c (abbrev_table): Move constructor from header. | |
14727 | Rewrite. | |
14728 | (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite. | |
14729 | * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove. | |
14730 | (abbrev_table::abbrev_table): No longer inline. | |
14731 | (ABBREV_HASH_SIZE): Remove. | |
14732 | (abbrev_table::m_abbrevs): Now an htab_up. | |
14733 | ||
86de1d91 TT |
14734 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14735 | ||
14736 | * dwarf2/read.c (read_cutu_die_from_dwo): Update. | |
14737 | (cutu_reader): Update. | |
14738 | (build_type_psymtabs_1): Update. | |
14739 | * dwarf2/abbrev.c (abbrev_table::read): Rename. | |
14740 | (abbrev_table::alloc_abbrev): Update. | |
14741 | * dwarf2/abbrev.h (abbrev_table_up): Move earlier. | |
14742 | (abbrev_table::read): New static method, renamed from | |
14743 | abbrev_table_read_table. | |
14744 | (abbrev_table::alloc_abbrev) | |
14745 | (abbrev_table::add_abbrev): Now private. | |
14746 | (abbrev_table::abbrev_table): Now private. | |
14747 | (abbrev_table::m_abbrev_obstack): Now private. Rename. | |
14748 | ||
0335378b TT |
14749 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14750 | ||
14751 | * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update. | |
14752 | * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now | |
14753 | htab_up. | |
14754 | ||
48b490f2 TT |
14755 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14756 | ||
14757 | * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now | |
14758 | htab_up. | |
14759 | (lookup_dwo_unit_in_dwp): Update. | |
14760 | (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate | |
14761 | on obstack. | |
14762 | ||
bc68fb19 TT |
14763 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14764 | ||
14765 | * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on | |
14766 | obstack. | |
14767 | ||
d15acc42 TT |
14768 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14769 | ||
14770 | * dwarf2/read.c (~dwarf2_per_objfile): Don't delete | |
14771 | line_header_hash. | |
14772 | (handle_DW_AT_stmt_list): Update. Don't allocate on obstack. | |
14773 | * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>: | |
14774 | Change type to htab_up. | |
14775 | ||
eaa5fa8b TT |
14776 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14777 | ||
14778 | * dwarf2/read.c (allocate_type_unit_groups_table): Return | |
14779 | htab_up. Don't allocate on obstack. | |
14780 | (get_type_unit_group, dwarf2_build_psymtabs_hard): Update. | |
14781 | * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>: | |
14782 | Change type to htab_up. | |
14783 | ||
b0b6a987 TT |
14784 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14785 | ||
14786 | * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>: | |
14787 | Change type to htab_up. | |
14788 | * dwarf2/read.c (create_signatured_type_table_from_index) | |
14789 | (create_signatured_type_table_from_debug_names) | |
14790 | (create_all_type_units, add_type_unit) | |
14791 | (lookup_dwo_signatured_type, lookup_signatured_type) | |
14792 | (process_skeletonless_type_unit): Update. | |
14793 | (create_debug_type_hash_table, create_debug_types_hash_table): | |
14794 | Change type of types_htab. | |
14795 | (allocate_signatured_type_table, allocate_dwo_unit_table): Return | |
14796 | htab_up. Don't allocate on obstack. | |
14797 | (create_cus_hash_table): Change type of cus_htab parameter. | |
14798 | (struct dwo_file) <cus, tus>: Now htab_up. | |
14799 | (lookup_dwo_signatured_type, lookup_dwo_cutu) | |
14800 | (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu) | |
14801 | (queue_and_load_all_dwo_tus): Update. | |
14802 | * dwarf2/index-write.c (write_gdbindex): Update. | |
14803 | (write_debug_names): Update. | |
14804 | ||
39856def TT |
14805 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14806 | ||
14807 | * dwarf2/read.h (struct dwarf2_queue_item): Move from | |
14808 | dwarf2/read.c. Remove "next" member. Add constructor ntad | |
14809 | destructor. | |
14810 | (struct dwarf2_per_objfile) <queue>: New member. | |
14811 | * dwarf2/read.c (struct dwarf2_queue_item): Move to | |
14812 | dwarf2/read.h. | |
14813 | (dwarf2_queue, dwarf2_queue_tail): Remove. | |
14814 | (class dwarf2_queue_guard): Add parameter to constructor. Use | |
14815 | DISABLE_COPY_AND_ASSIGN. | |
14816 | <m_per_objfile>: New member. | |
14817 | <~dwarf2_queue_guard>: Rewrite. | |
14818 | (dw2_do_instantiate_symtab, queue_comp_unit, process_queue): | |
14819 | Update. | |
14820 | (~dwarf2_queue_item): New. | |
14821 | ||
3e225074 TT |
14822 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14823 | ||
14824 | * dwarf2/read.c (struct die_info) <has_children>: New member. | |
14825 | (dw2_get_file_names_reader): Remove has_children. | |
14826 | (dw2_get_file_names): Update. | |
14827 | (read_cutu_die_from_dwo): Remove has_children. | |
14828 | (cutu_reader::init_tu_and_read_dwo_dies) | |
14829 | (cutu_reader::cutu_reader): Update. | |
14830 | (process_psymtab_comp_unit_reader, build_type_psymtabs_reader): | |
14831 | Remove has_children. | |
14832 | (build_type_psymtabs_1, process_skeletonless_type_unit) | |
14833 | (load_partial_comp_unit, load_full_comp_unit): Update. | |
14834 | (create_dwo_cu_reader): Remove has_children. | |
14835 | (create_cus_hash_table, read_die_and_children): Update. | |
14836 | (read_full_die_1,read_full_die): Remove has_children. | |
14837 | (read_signatured_type): Update. | |
14838 | (class cutu_reader) <has_children>: Remove. | |
14839 | ||
82ca8957 TT |
14840 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14841 | ||
14842 | * dwarf2/expr.c: Rename from dwarf2expr.c. | |
14843 | * dwarf2/expr.h: Rename from dwarf2expr.h. | |
14844 | * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c. | |
14845 | * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h. | |
14846 | * dwarf2/frame.c: Rename from dwarf2-frame.c. | |
14847 | * dwarf2/frame.h: Rename from dwarf2-frame.h. | |
14848 | * dwarf2/index-cache.c: Rename from dwarf-index-cache.c. | |
14849 | * dwarf2/index-cache.h: Rename from dwarf-index-cache.h. | |
14850 | * dwarf2/index-common.c: Rename from dwarf-index-common.c. | |
14851 | * dwarf2/index-common.h: Rename from dwarf-index-common.h. | |
14852 | * dwarf2/index-write.c: Rename from dwarf-index-write.c. | |
14853 | * dwarf2/index-write.h: Rename from dwarf-index-write.h. | |
14854 | * dwarf2/loc.c: Rename from dwarf2loc.c. | |
14855 | * dwarf2/loc.h: Rename from dwarf2loc.h. | |
14856 | * dwarf2/read.c: Rename from dwarf2read.c. | |
14857 | * dwarf2/read.h: Rename from dwarf2read.h. | |
14858 | * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c, | |
14859 | amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c, | |
14860 | compile/compile-c-symbols.c, compile/compile-cplus-symbols.c, | |
14861 | compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c, | |
14862 | gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c, | |
14863 | hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c, | |
14864 | i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c, | |
14865 | m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c, | |
14866 | msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c, | |
14867 | riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c, | |
14868 | s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c, | |
14869 | sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c, | |
14870 | tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c: | |
14871 | Update. | |
14872 | * Makefile.in (COMMON_SFILES): Update. | |
14873 | (HFILES_NO_SRCDIR): Update. | |
14874 | ||
9e35d499 TT |
14875 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14876 | ||
14877 | * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove. | |
14878 | (init_cu_die_reader, read_cutu_die_from_dwo): Update. | |
14879 | ||
1eba2311 TT |
14880 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14881 | ||
14882 | * dwarf2read.h (struct die_info): Don't declare. | |
14883 | ||
e41c2da2 TT |
14884 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14885 | ||
14886 | * dwarf2read.h (die_info_ptr): Remove typedef. | |
14887 | ||
4fc6c0d5 TT |
14888 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14889 | ||
14890 | * dwarf2read.c (read_call_site_scope) | |
14891 | (handle_data_member_location, dwarf2_add_member_fn) | |
14892 | (mark_common_block_symbol_computed, read_common_block) | |
14893 | (attr_to_dynamic_prop, partial_die_info::read) | |
14894 | (var_decode_location, dwarf2_fetch_die_loc_sect_off) | |
14895 | (dwarf2_symbol_mark_computed, set_die_type): Update. | |
14896 | * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare | |
14897 | method. | |
14898 | (attr_form_is_block): Don't declare. | |
14899 | * dwarf2/attribute.c (attribute::form_is_block): Now a method. | |
14900 | ||
cd6c91b4 TT |
14901 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14902 | ||
14903 | * dwarf2read.c (dwarf2_find_base_address, ) | |
14904 | (read_call_site_scope, rust_containing_type) | |
14905 | (dwarf2_get_pc_bounds, dwarf2_record_block_ranges) | |
14906 | (handle_data_member_location, dwarf2_add_member_fn) | |
14907 | (get_alignment, read_structure_type, process_structure_scope) | |
14908 | (mark_common_block_symbol_computed, read_common_block) | |
14909 | (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type) | |
14910 | (partial_die_info::read, read_attribute_value, new_symbol) | |
14911 | (lookup_die_type, dwarf2_get_ref_die_offset) | |
14912 | (dwarf2_get_attr_constant_value, follow_die_ref_or_sig) | |
14913 | (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type) | |
14914 | (dwarf2_symbol_mark_computed): Update. | |
14915 | * dwarf2/attribute.h (struct attribute) <value_as_address, | |
14916 | form_is_section_offset, form_is_constant, form_is_ref>: Declare | |
14917 | methods. | |
14918 | (value_as_address, attr_form_is_section_offset) | |
14919 | (attr_form_is_constant, attr_form_is_ref): Don't declare. | |
14920 | * dwarf2/attribute.c (attribute::value_as_address) | |
14921 | (attribute::form_is_section_offset, attribute::form_is_constant) | |
14922 | (attribute::form_is_ref): Now methods. | |
14923 | ||
162dce55 TT |
14924 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14925 | ||
14926 | * dwarf2read.c (struct attribute, DW_STRING) | |
14927 | (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR) | |
14928 | (DW_SIGNATURE, struct dwarf_block, attr_value_as_address) | |
14929 | (attr_form_is_block, attr_form_is_section_offset) | |
14930 | (attr_form_is_constant, attr_form_is_ref): Move. | |
14931 | * dwarf2/attribute.h: New file. | |
14932 | * dwarf2/attribute.c: New file, from dwarf2read.c. | |
14933 | * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c. | |
14934 | ||
3054dd54 TT |
14935 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14936 | ||
14937 | * dwarf2read.c (abbrev_table_up, struct abbrev_info) | |
14938 | (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table): | |
14939 | Move. | |
14940 | (read_cutu_die_from_dwo, build_type_psymtabs_1): Update. | |
14941 | (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev) | |
14942 | (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to | |
14943 | abbrev.c. | |
14944 | * dwarf2/abbrev.h: New file. | |
14945 | * dwarf2/abbrev.c: New file, from dwarf2read.c. | |
14946 | * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c. | |
14947 | ||
96b79293 TT |
14948 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14949 | ||
14950 | * dwarf2read.c (dwarf2_section_buffer_overflow_complaint) | |
14951 | (dwarf2_section_size, dwarf2_get_section_info) | |
14952 | (create_signatured_type_table_from_debug_names) | |
14953 | (create_addrmap_from_aranges, read_debug_names_from_section) | |
14954 | (get_gdb_index_contents_from_section, read_comp_unit_head) | |
14955 | (error_check_comp_unit_head, read_abbrev_offset) | |
14956 | (create_debug_type_hash_table, init_cu_die_reader) | |
14957 | (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard) | |
14958 | (read_comp_units_from_section, create_cus_hash_table) | |
14959 | (create_dwp_hash_table, create_dwo_unit_in_dwp_v1) | |
14960 | (create_dwp_v2_section, dwarf2_rnglists_process) | |
14961 | (dwarf2_ranges_process, read_die_and_siblings, read_full_die) | |
14962 | (abbrev_table_read_table, read_indirect_string_at_offset_from) | |
14963 | (read_indirect_string_from_dwz, read_addr_index_1) | |
14964 | (read_str_index, dwarf_decode_line_header, skip_form_bytes) | |
14965 | (dwarf_decode_macro_bytes, dwarf_decode_macros) | |
14966 | (fill_in_loclist_baton): Update. | |
14967 | * dwarf2/section.h (struct dwarf2_section_info) <get_name, | |
14968 | get_containing_section, get_bfd_owner, get_bfd_section, | |
14969 | get_file_name, get_id, get_flags, empty, read>: Declare methods. | |
14970 | (dwarf2_read_section, get_section_name, get_section_file_name) | |
14971 | (get_containing_section, get_section_bfd_owner) | |
14972 | (get_section_bfd_section, get_section_name, get_section_file_name) | |
14973 | (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't | |
14974 | declare. | |
14975 | * dwarf2/section.c (dwarf2_section_info::get_containing_section) | |
14976 | (dwarf2_section_info::get_bfd_owner) | |
14977 | (dwarf2_section_info::get_bfd_section) | |
14978 | (dwarf2_section_info::get_name) | |
14979 | (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id) | |
14980 | (dwarf2_section_info::get_flags, dwarf2_section_info::empty) | |
14981 | (dwarf2_section_info::read): Now methods. | |
14982 | * dwarf-index-write.c (class debug_names): Update. | |
14983 | ||
2c86cff9 TT |
14984 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14985 | ||
14986 | * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section): | |
14987 | Move to dwarf2/section.h. | |
14988 | * dwarf2read.c (get_containing_section, get_section_bfd_owner) | |
14989 | (get_section_bfd_section, get_section_name) | |
14990 | (get_section_file_name, get_section_id, get_section_flags) | |
14991 | (dwarf2_section_empty_p, dwarf2_read_section): Moe to | |
14992 | dwarf2/section.c. | |
14993 | * dwarf2/section.h: New file. | |
14994 | * dwarf2/section.c: New file, from dwarf2read.c. | |
14995 | * Makefile.in (COMMON_SFILES): Add dwarf2/section.c. | |
14996 | ||
f4382c45 TT |
14997 | 2020-02-08 Tom Tromey <tom@tromey.com> |
14998 | ||
14999 | * dwarf2read.h (read_unsigned_leb128): Don't declare. | |
15000 | * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes) | |
15001 | (read_2_signed_bytes, read_3_bytes, read_4_bytes) | |
15002 | (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h. | |
15003 | (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c. | |
15004 | * dwarf2/leb.h: New file, from dwarf2read.c. | |
15005 | * dwarf2/leb.c: New file, from dwarf2read.c. | |
15006 | * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes): | |
15007 | Remove. | |
15008 | * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2. | |
15009 | (COMMON_SFILES): Add dwarf2/leb.c. | |
15010 | ||
01840b7a JB |
15011 | 2020-02-08 Joel Brobecker <brobecker@adacore.com> |
15012 | ||
15013 | GDB 9.1 released. | |
15014 | ||
dfcb27e4 IB |
15015 | 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org> |
15016 | ||
15017 | PR gdb/25190: | |
aac66a4c SM |
15018 | * gdb/remote-sim.c (gdb_os_write_stderr): Update. |
15019 | * gdb/remote.c (remote_console_output): Update. | |
15020 | * gdb/ui-file.c (fputs_unfiltered): Rename to... | |
15021 | (ui_file_puts): ...this. | |
15022 | * gdb/ui-file.h (ui_file_puts): Add declaration. | |
15023 | * gdb/utils.c (emit_style_escape): Update. | |
15024 | (flush_wrap_buffer): Update. | |
15025 | (fputs_maybe_filtered): Update. | |
15026 | (fputs_unfiltered): Add function. | |
dfcb27e4 | 15027 | |
faa17681 IB |
15028 | 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org> |
15029 | ||
aac66a4c SM |
15030 | * gdb/event-loop.c (gdb_wait_for_event): Update. |
15031 | * gdb/printcmd.c (printf_command): Update. | |
15032 | * gdb/remote-fileio.c (remote_fileio_func_write): Update. | |
15033 | * gdb/remote-sim.c (gdb_os_flush_stdout): Update. | |
15034 | (gdb_os_flush_stderr): Update. | |
15035 | * gdb/remote.c (remote_console_output): Update. | |
15036 | * gdb/ui-file.c (gdb_flush): Rename to... | |
15037 | (ui_file_flush): ...this. | |
15038 | (stderr_file::write): Update. | |
15039 | (stderr_file::puts): Update. | |
15040 | * gdb/ui-file.h (gdb_flush): Rename to... | |
15041 | (ui_file_flush): ...this. | |
15042 | * gdb/utils.c (gdb_flush): Add function. | |
15043 | * gdb/utils.h (gdb_flush): Add declaration. | |
faa17681 | 15044 | |
5abbbe1d TT |
15045 | 2020-02-07 Tom Tromey <tromey@adacore.com> |
15046 | ||
15047 | PR breakpoints/24915: | |
15048 | * source.c (find_and_open_source): Do not check basenames_may_differ. | |
15049 | ||
919adfe8 TT |
15050 | 2020-02-07 Tom Tromey <tom@tromey.com> |
15051 | ||
15052 | * README: Update gdbserver documentation. | |
15053 | * gdbserver: Move to top level. | |
15054 | * configure.tgt (build_gdbserver): Remove. | |
15055 | * configure.ac: Remove --enable-gdbserver. | |
15056 | * configure: Rebuild. | |
15057 | * Makefile.in (distclean): Don't mention gdbserver. | |
15058 | ||
1d5d29e7 SV |
15059 | 2020-02-06 Shahab Vahedi <shahab@synopsys.com> |
15060 | ||
15061 | * source-cache.c (source_cache::ensure): Surround | |
15062 | get_plain_source_lines with a try/catch. | |
15063 | (source_cache::get_line_charpos): Get rid of try/catch | |
15064 | and only check for the return value of "ensure". | |
15065 | * tui/tui-source.c (tui_source_window::set_contents): | |
15066 | Simplify "nlines" calculation. | |
15067 | ||
6eb1129c SV |
15068 | 2020-02-06 Shahab Vahedi <shahab@synopsys.com> |
15069 | ||
15070 | * MAINTAINERS (Write After Approval): Add myself. | |
15071 | ||
c6a42d11 CB |
15072 | 2020-02-05 Christian Biesinger <cbiesinger@google.com> |
15073 | ||
15074 | * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class | |
15075 | function call. | |
15076 | ||
c8ecdda6 CB |
15077 | 2020-02-05 Christian Biesinger <cbiesinger@google.com> |
15078 | ||
15079 | * ppc-nbsd-tdep.h: Fix macro name in #endif comment. | |
15080 | ||
f6480e70 MR |
15081 | 2020-02-05 Maciej W. Rozycki <macro@wdc.com> |
15082 | ||
15083 | * nat/riscv-linux-tdesc.h: New file. | |
15084 | * nat/riscv-linux-tdesc.c: New file, taking code from... | |
15085 | * riscv-linux-nat.c (riscv_linux_nat_target::read_description): | |
15086 | ... here. | |
15087 | * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to | |
15088 | NATDEPFILES. | |
15089 | ||
dcc9fbc6 AB |
15090 | 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com> |
15091 | ||
15092 | * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that | |
15093 | we don't set the fake simulator ptid to the null_ptid. | |
15094 | ||
719546c4 SM |
15095 | 2020-02-03 Simon Marchi <simon.marchi@efficios.com> |
15096 | ||
15097 | * fork-child.c (gdb_startup_inferior): Use bool instead of int. | |
15098 | * gdbthread.h (class thread_info) <resumed>: Likewise. | |
15099 | * infrun.c (resume_1): Likewise. | |
15100 | (proceed): Likewise. | |
15101 | (infrun_thread_stop_requested): Likewise. | |
15102 | (stop_all_threads): Likewise. | |
15103 | (handle_inferior_event): Likewise. | |
15104 | (restart_threads): Likewise. | |
15105 | (finish_step_over): Likewise. | |
15106 | (keep_going_stepped_thread): Likewise. | |
15107 | * linux-nat.c (attach_proc_task_lwp_callback): Likewise. | |
15108 | (linux_handle_extended_wait): Likewise. | |
15109 | * record-btrace.c (get_thread_current_frame_id): Likewise. | |
15110 | * record-full.c (record_full_wait_1): Likewise. | |
15111 | * remote.c (remote_target::process_initial_stop_replies): Likewise. | |
15112 | * target.c (target_resume): Likewise. | |
15113 | * thread.c (set_running_thread): Likewise. | |
15114 | ||
e409c542 AKS |
15115 | 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
15116 | ||
15117 | * f-valprint.c (f77_print_array_1): Changed datatype of index | |
15118 | variable to LONGEST from int to enable it to contain bound | |
15119 | values correctly. | |
15120 | ||
ee98c0da MR |
15121 | 2020-02-03 Maciej W. Rozycki <macro@wdc.com> |
15122 | ||
15123 | * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro. | |
15124 | (supply_fpregset_regnum, fill_fpregset): Handle regset buffer | |
15125 | offsets according to FLEN determined. | |
15126 | (riscv_linux_nat_target::read_description): Determine FLEN | |
15127 | dynamically. | |
15128 | (riscv_linux_nat_target::fetch_registers): Size regset buffer | |
15129 | according to FLEN determined. | |
15130 | (riscv_linux_nat_target::store_registers): Likewise. | |
15131 | ||
aa66aac4 SV |
15132 | 2020-02-01 Shahab Vahedi <shahab@synopsys.com> |
15133 | ||
15134 | * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0 | |
15135 | when reg->group is empty and reggroup is not. | |
15136 | ||
fd9faca8 TT |
15137 | 2020-01-31 Tom Tromey <tromey@adacore.com> |
15138 | ||
15139 | * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior): | |
15140 | Call beneath target's mourn_inferior after unpushing. | |
15141 | ||
42330a68 AB |
15142 | 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com> |
15143 | ||
15144 | PR tui/9765 | |
15145 | * tui/tui-disasm.c (tui_find_disassembly_address): If we don't | |
15146 | have enough lines to fill the screen, still return the lowest | |
15147 | address we found. | |
15148 | ||
7a27a45b AB |
15149 | 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com> |
15150 | ||
15151 | * tui/tui-win.c (_initialize_tui_win): Update help text for '+', | |
15152 | '-', '<', and '>' commands. | |
15153 | ||
c47f70e2 PA |
15154 | 2020-01-29 Pedro Alves <palves@redhat.com> |
15155 | Sergio Durigan Junior <sergiodj@redhat.com> | |
15156 | ||
15157 | * infcmd.c (construct_inferior_arguments): Assert that | |
15158 | 'argc' is greater than 0. | |
15159 | ||
5133a315 LM |
15160 | 2020-01-29 Luis Machado <luis.machado@linaro.org> |
15161 | ||
15162 | * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f. | |
15163 | (BRK_INSN_MASK): Define to 0xd4200000. | |
15164 | (aarch64_program_breakpoint_here_p): New function. | |
15165 | (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook. | |
15166 | * arch-utils.c (default_program_breakpoint_here_p): Moved from | |
15167 | breakpoint.c. | |
15168 | * arch-utils.h (default_program_breakpoint_here_p): Moved from | |
15169 | breakpoint.h | |
15170 | * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and | |
15171 | call gdbarch_program_breakpoint_here_p. | |
15172 | (program_breakpoint_here): Moved to arch-utils.c, renamed to | |
15173 | default_program_breakpoint_here_p, changed return type to bool and | |
15174 | simplified. | |
15175 | * breakpoint.h (program_breakpoint_here): Moved prototype to | |
15176 | arch-utils.h, renamed to default_program_breakpoint_here_p and changed | |
15177 | return type to bool. | |
15178 | * gdbarch.c: Regenerate. | |
15179 | * gdbarch.h: Regenerate. | |
15180 | * gdbarch.sh (program_breakpoint_here_p): New method. | |
15181 | * infrun.c (handle_signal_stop): Call | |
15182 | gdbarch_program_breakpoint_here_p. | |
15183 | ||
168f8c6b TT |
15184 | 2020-01-26 Tom Tromey <tom@tromey.com> |
15185 | ||
15186 | * ctfread.c (struct ctf_fp_info): Reindent. | |
15187 | (_initialize_ctfread): Remove. | |
15188 | ||
128a391f TT |
15189 | 2020-01-26 Tom Tromey <tom@tromey.com> |
15190 | ||
15191 | * psymtab.c (partial_map_expand_apply) | |
15192 | (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol) | |
15193 | (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab) | |
15194 | (psym_print_stats, psym_expand_symtabs_for_function) | |
15195 | (psym_map_symbol_filenames, psym_map_matching_symbols) | |
15196 | (psym_expand_symtabs_matching) | |
15197 | (partial_symtab::read_dependencies, maintenance_info_psymtabs) | |
15198 | (maintenance_check_psymtabs): Use new methods. | |
15199 | * psympriv.h (struct partial_symtab) <readin_p, | |
15200 | get_compunit_symtab>: New methods. | |
15201 | <readin, compunit_symtab>: Remove members. | |
15202 | (struct standard_psymtab): New. | |
15203 | (struct legacy_psymtab): Derive from standard_psymtab. | |
15204 | * dwarf2read.h (struct dwarf2_psymtab): Derive from | |
15205 | standard_psymtab. | |
15206 | * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab. | |
15207 | ||
0494dbec TT |
15208 | 2020-01-26 Tom Tromey <tom@tromey.com> |
15209 | ||
15210 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Call | |
15211 | read_dependencies. Add assert. | |
15212 | * psymtab.c (partial_symtab::read_dependencies): New method. | |
15213 | * psympriv.h (struct partial_symtab) <read_dependencies>: New | |
15214 | method. | |
15215 | * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies. | |
15216 | * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call | |
15217 | read_dependencies. | |
15218 | * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies. | |
15219 | Add assert. | |
15220 | ||
8566b89b TT |
15221 | 2020-01-26 Tom Tromey <tom@tromey.com> |
15222 | ||
15223 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order. | |
15224 | Call expand_psymtab. | |
15225 | (xcoff_read_symtab): Call expand_psymtab. | |
15226 | (xcoff_start_psymtab, xcoff_end_psymtab): Set | |
15227 | legacy_expand_psymtab. | |
15228 | * psympriv.h (struct partial_symtab) <expand_psymtab>: New | |
15229 | method. | |
15230 | (struct legacy_psymtab) <expand_psymtab>: Implement. | |
15231 | <legacy_expand_psymtab>: New member. | |
15232 | * mdebugread.c (mdebug_read_symtab): Call expand_psymtab. | |
15233 | (parse_partial_symbols): Set legacy_expand_psymtab. | |
15234 | (psymtab_to_symtab_1): Change argument order. Call | |
15235 | expand_psymtab. | |
15236 | (new_psymtab): Set legacy_expand_psymtab. | |
15237 | * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare. | |
15238 | * dwarf2read.c (dwarf2_psymtab::read_symtab): Call | |
15239 | expand_psymtab. | |
15240 | (dwarf2_psymtab::expand_psymtab): Rename from | |
15241 | psymtab_to_symtab_1. Call expand_psymtab. | |
15242 | * dbxread.c (start_psymtab): Set legacy_expand_psymtab. | |
15243 | (dbx_end_psymtab): Likewise. | |
15244 | (dbx_psymtab_to_symtab_1): Change argument order. Call | |
15245 | expand_psymtab. | |
15246 | (dbx_read_symtab): Call expand_psymtab. | |
15247 | * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare. | |
15248 | (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab. | |
15249 | (ctf_psymtab::read_symtab): Call expand_psymtab. | |
15250 | ||
077cbab2 TT |
15251 | 2020-01-26 Tom Tromey <tom@tromey.com> |
15252 | ||
15253 | * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert. | |
15254 | * psymtab.c (psymtab_to_symtab): Print verbose "Reading" | |
15255 | messages. | |
15256 | * mdebugread.c (mdebug_read_symtab): Remove prints. | |
15257 | * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add | |
15258 | assert. | |
15259 | * dbxread.c (dbx_read_symtab): Remove prints. Add assert. | |
15260 | ||
891813be TT |
15261 | 2020-01-26 Tom Tromey <tom@tromey.com> |
15262 | ||
15263 | * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab) | |
15264 | (xcoff_psymtab_to_symtab_1, xcoff_read_symtab) | |
15265 | (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use | |
15266 | legacy_symtab. | |
15267 | * stabsread.h (dbx_end_psymtab): Use legacy_symtab. | |
15268 | * psymtab.c (psymtab_to_symtab): Call method. | |
15269 | (dump_psymtab): Update. | |
15270 | * psympriv.h (struct partial_symtab): Add virtual destructor. | |
15271 | <read_symtab>: New method. | |
15272 | (struct legacy_symtab): New. | |
15273 | * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab. | |
15274 | (struct pst_map) <pst>: Now a legacy_psymtab. | |
15275 | (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1) | |
15276 | (new_psymtab): Use legacy_psymtab. | |
15277 | * dwarf2read.h (struct dwarf2_psymtab): New. | |
15278 | (struct dwarf2_per_cu_data) <psymtab>: Use it. | |
15279 | * dwarf2read.c (dwarf2_create_include_psymtab) | |
15280 | (dwarf2_build_include_psymtabs, create_type_unit_group) | |
15281 | (create_partial_symtab, process_psymtab_comp_unit_reader) | |
15282 | (build_type_psymtabs_reader, build_type_psymtab_dependencies) | |
15283 | (set_partial_user): Use dwarf2_psymtab. | |
15284 | (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab. | |
15285 | (psymtab_to_symtab_1, process_full_comp_unit) | |
15286 | (process_full_type_unit, dwarf2_ranges_read) | |
15287 | (dwarf2_get_pc_bounds, psymtab_include_file_name) | |
15288 | (dwarf_decode_lines): Use dwarf2_psymtab. | |
15289 | * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab. | |
15290 | (add_address_entry_worker, write_one_signatured_type) | |
15291 | (recursively_count_psymbols, recursively_write_psymbols) | |
15292 | (write_one_signatured_type, psyms_seen_size, write_gdbindex) | |
15293 | (write_debug_names): Likewise. | |
15294 | * dbxread.c (struct header_file_location): Take a legacy_psymtab. | |
15295 | <pst>: Now a legacy_psymtab. | |
15296 | (find_corresponding_bincl_psymtab): Return a legacy_psymtab. | |
15297 | (read_dbx_symtab, start_psymtab, dbx_end_psymtab) | |
15298 | (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab. | |
15299 | * ctfread.c (struct ctf_psymtab): New. | |
15300 | (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a | |
15301 | ctf_psymtab. | |
15302 | (ctf_psymtab::read_symtab): Rename from ctf_read_symtab. | |
15303 | (create_partial_symtab): Return a ctf_psymtab. | |
15304 | (scan_partial_symbols): Update. | |
15305 | ||
c3693a1d TT |
15306 | 2020-01-26 Tom Tromey <tom@tromey.com> |
15307 | ||
15308 | * xcoffread.c (xcoff_start_psymtab): Use new. | |
15309 | * psymtab.c (partial_symtab::partial_symtab): New constructor, | |
15310 | renamed from start_psymtab_common. | |
15311 | * psympriv.h (struct partial_symtab): Add new constructor. | |
15312 | (start_psymtab_common): Don't declare. | |
15313 | * mdebugread.c (parse_partial_symbols): Use new. | |
15314 | * dwarf2read.c (create_partial_symtab): Use new. | |
15315 | * dbxread.c (start_psymtab): Use new. | |
15316 | * ctfread.c (create_partial_symtab): Use new. | |
15317 | ||
32caafd0 TT |
15318 | 2020-01-26 Tom Tromey <tom@tromey.com> |
15319 | ||
15320 | * xcoffread.c (xcoff_end_psymtab): Use new. | |
15321 | * psymtab.c (start_psymtab_common): Use new. | |
15322 | (partial_symtab::partial_symtab): Rename from allocate_psymtab. | |
15323 | Update. | |
15324 | * psympriv.h (struct partial_symtab): Add parameters to | |
15325 | constructor. Don't inline. | |
15326 | (allocate_psymtab): Don't declare. | |
15327 | * mdebugread.c (new_psymtab): Use new. | |
15328 | * dwarf2read.c (dwarf2_create_include_psymtab): Use new. | |
15329 | * dbxread.c (dbx_end_psymtab): Use new. | |
15330 | ||
abaa2f23 TT |
15331 | 2020-01-26 Tom Tromey <tom@tromey.com> |
15332 | ||
15333 | * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from | |
15334 | allocate_psymtab. Update documentation. | |
15335 | * psymtab.c (psymtab_storage::install_psymtab): Rename from | |
15336 | allocate_psymtab. Do not use new. | |
15337 | (allocate_psymtab): Use new. Update. | |
15338 | ||
6d94535f TT |
15339 | 2020-01-26 Tom Tromey <tom@tromey.com> |
15340 | ||
15341 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. | |
15342 | * psymtab.c (psym_print_stats): Update. | |
15343 | * psympriv.h (struct partial_symtab) <readin, | |
15344 | psymtabs_addrmap_supported, anonymous>: Now bool. | |
15345 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
15346 | * dwarf2read.c (create_type_unit_group, create_partial_symtab) | |
15347 | (build_type_psymtabs_reader, psymtab_to_symtab_1) | |
15348 | (process_full_comp_unit, process_full_type_unit): Update. | |
15349 | * dbxread.c (dbx_psymtab_to_symtab_1): Update. | |
15350 | * ctfread.c (psymtab_to_symtab): Update. | |
15351 | ||
6f17252b TT |
15352 | 2020-01-26 Tom Tromey <tom@tromey.com> |
15353 | ||
15354 | * mdebugread.c (parse_partial_symbols): Use discard_psymtab. | |
15355 | * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove. | |
15356 | * psymtab.c (psymtab_storage): Delete psymtabs. | |
15357 | (psymtab_storage::allocate_psymtab): Use new. | |
15358 | (psymtab_storage::discard_psymtab): Use delete. | |
15359 | * psympriv.h (struct partial_symtab): Add constructor and | |
15360 | initializers. | |
15361 | ||
f6f1cebc TT |
15362 | 2020-01-26 Tom Tromey <tom@tromey.com> |
15363 | ||
15364 | * machoread.c: Do not include psympriv.h. | |
15365 | ||
e47e48f6 PW |
15366 | 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
15367 | ||
15368 | * NEWS: Mention the new option and the set/show commands. | |
15369 | ||
a2fedca9 PW |
15370 | 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
15371 | ||
15372 | * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode) | |
15373 | (show_exec_file_mismatch_command, set_exec_file_mismatch_command) | |
15374 | (validate_exec_file): New variables, enums, functions. | |
15375 | (exec_file_locate_attach, print_section_info): Style the filenames. | |
15376 | (_initialize_exec): Install show_exec_file_mismatch_command and | |
15377 | set_exec_file_mismatch_command. | |
15378 | * gdbcore.h (validate_exec_file): Declare. | |
15379 | * infcmd.c (attach_command): Call validate_exec_file. | |
15380 | * remote.c ( remote_target::remote_add_inferior): Likewise. | |
15381 | ||
7ffa82e1 AB |
15382 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
15383 | ||
15384 | * frame.c (find_frame_sal): Move call to get_next_frame into more | |
15385 | inner scope. | |
15386 | * inline-frame.c (inilne_state) <inline_state>: Update argument | |
15387 | types. | |
15388 | (inilne_state) <skipped_symbol>: Rename to... | |
15389 | (inilne_state) <skipped_symbols>: ...this, and change to a vector. | |
15390 | (skip_inline_frames): Build vector of skipped symbols and use this | |
15391 | to reate the inline_state. | |
15392 | (inline_skipped_symbol): Add a comment and some assertions, fetch | |
15393 | skipped symbol from the list. | |
15394 | ||
3d92a3e3 AB |
15395 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
15396 | ||
15397 | * buildsym.c (lte_is_less_than): Delete. | |
15398 | (buildsym_compunit::end_symtab_with_blockvector): Create local | |
15399 | lambda function to sort line table entries, and use | |
15400 | std::stable_sort instead of std::sort. | |
15401 | * symtab.c (find_pc_sect_line): Skip backward over end of sequence | |
15402 | markers when looking for a previous line. | |
15403 | ||
94a72be7 AB |
15404 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
15405 | ||
15406 | * dwarf2read.c (lnp_state_machine::record_line): Include | |
15407 | end_sequence parameter in debug print out. Record the line if we | |
15408 | are at an end_sequence marker even if it's not the start of a | |
15409 | statement. | |
15410 | * symmisc.c (maintenance_print_one_line_table): Print end of | |
15411 | sequence markers with 'END' not '0'. | |
15412 | ||
53af73bf PA |
15413 | 2020-01-24 Pedro Alves <palves@redhat.com> |
15414 | ||
15415 | PR gdb/25410 | |
15416 | * thread.c (scoped_restore_current_thread::restore): Use | |
15417 | switch_to_inferior_no_thread. | |
15418 | * exec.c: Include "progspace-and-thread.h". | |
15419 | (add_target_sections, remove_target_sections): | |
15420 | scoped_restore_current_pspace_and_thread instead of | |
15421 | scoped_restore_current_thread. | |
15422 | * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace | |
15423 | and aspace to the inferior before calling clone_program_space. | |
15424 | Remove stale comment. | |
15425 | ||
3050c6f4 CB |
15426 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
15427 | ||
15428 | * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to... | |
15429 | (arm_netbsd_nat_target::fetch_registers): ...this. | |
15430 | (arm_nbsd_nat_target::store_registers): Rename to... | |
15431 | (arm_netbsd_nat_target::store_registers): ...this. | |
15432 | ||
73685c7e CB |
15433 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
15434 | ||
15435 | * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
15436 | register_t. | |
15437 | ||
89203d40 CB |
15438 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
15439 | ||
15440 | * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections): | |
15441 | Update comment. | |
15442 | * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections): | |
15443 | Likewise. | |
15444 | * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise. | |
15445 | * gdbcore.h (deprecated_add_core_fns): Update comment to point to | |
15446 | the correct replacement (iterate_over_regset_sections). | |
15447 | * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections): | |
15448 | Update comment. | |
15449 | ||
1ba1ac88 AB |
15450 | 2020-01-24 Graham Markall <graham.markall@embecosm.com> |
15451 | ||
15452 | PR gdb/23718 | |
15453 | * gdb/python/python.c (execute_gdb_command): Call | |
15454 | async_enable_stdin in catch block. | |
15455 | ||
f3364a6d AB |
15456 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
15457 | ||
15458 | * event-loop.c (start_event_loop): Wrap async_enable_stdin with | |
15459 | SWITCH_THRU_ALL_UIS. | |
15460 | ||
733d0a67 AB |
15461 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
15462 | ||
15463 | PR tui/9765 | |
15464 | * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header | |
15465 | comment, add extra parameter, and update to store previous symbol | |
15466 | when appropriate. | |
15467 | * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment, | |
15468 | add extra parameter. | |
15469 | * tui/tui-disasm.c (tui_disassemble): Update header comment, | |
15470 | remove unneeded parameter, add try/catch around gdb_print_insn, | |
15471 | rewrite to add items to asm_lines vector. | |
15472 | (tui_find_backward_disassembly_start_address): New function. | |
15473 | (tui_find_disassembly_address): Updated throughout. | |
15474 | (tui_disasm_window::set_contents): Update for changes to | |
15475 | tui_disassemble. | |
15476 | (tui_disasm_window::do_scroll_vertical): No need to adjust the | |
15477 | number of lines to scroll. | |
15478 | ||
b3b3bada SM |
15479 | 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
15480 | ||
15481 | * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up. | |
15482 | (SECT_OFF_DATA): Likewise. | |
15483 | (SECT_OFF_RODATA): Likewise. | |
15484 | (SECT_OFF_TEXT): Likewise. | |
15485 | (SECT_OFF_BSS): Likewise. | |
15486 | (struct objfile) <text_section_offset, data_section_offset>: New | |
15487 | methods. | |
15488 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use | |
15489 | objfile::text_section_offset. | |
15490 | * coff-pe-read.c (add_pe_forwarded_sym): Likewise. | |
15491 | * coffread.c (coff_symtab_read): Likewise. | |
15492 | (enter_linenos): Likewise. | |
15493 | (process_coff_symbol): Likewise. | |
15494 | * ctfread.c (get_objfile_text_range): Likewise. | |
15495 | * dtrace-probe.c (dtrace_probe::get_relocated_address): | |
15496 | Use objfile::data_section_offset. | |
15497 | * dwarf2-frame.c (execute_cfa_program): Use | |
15498 | objfile::text_section_offset. | |
15499 | (dwarf2_frame_find_fde): Likewise. | |
15500 | * dwarf2read.c (create_addrmap_from_index): Likewise. | |
15501 | (create_addrmap_from_aranges): Likewise. | |
15502 | (dw2_find_pc_sect_compunit_symtab): Likewise. | |
15503 | (process_psymtab_comp_unit_reader): Likewise. | |
15504 | (add_partial_symbol): Likewise. | |
15505 | (add_partial_subprogram): Likewise. | |
15506 | (process_full_comp_unit): Likewise. | |
15507 | (read_file_scope): Likewise. | |
15508 | (read_func_scope): Likewise. | |
15509 | (read_lexical_block_scope): Likewise. | |
15510 | (read_call_site_scope): Likewise. | |
15511 | (dwarf2_rnglists_process): Likewise. | |
15512 | (dwarf2_ranges_process): Likewise. | |
15513 | (dwarf2_ranges_read): Likewise. | |
15514 | (dwarf_decode_lines_1): Likewise. | |
15515 | (new_symbol): Likewise. | |
15516 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
15517 | (dwarf2_per_cu_text_offset): Likewise. | |
15518 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise. | |
15519 | * hppa-tdep.c (read_unwind_info): Likewise. | |
15520 | * ia64-tdep.c (ia64_find_unwind_table): Likewise. | |
15521 | * psympriv.h (struct partial_symtab): Likewise. | |
15522 | * psymtab.c (find_pc_sect_psymtab): Likewise. | |
15523 | * solib-svr4.c (enable_break): Likewise. | |
15524 | * stap-probe.c (relocate_address): Use | |
15525 | objfile::data_section_offset. | |
15526 | * xcoffread.c (enter_line_range): Use | |
15527 | objfile::text_section_offset. | |
15528 | (read_xcoff_symtab): Likewise. | |
15529 | ||
ab53f382 SM |
15530 | 2020-01-23 Simon Marchi <simon.marchi@efficios.com> |
15531 | ||
15532 | * darwin-nat.c (darwin_nat_target::wait_1): Move `inf` | |
15533 | declaration to narrower scopes. | |
15534 | ||
e7eee665 SM |
15535 | 2020-01-23 Simon Marchi <simon.marchi@efficios.com> |
15536 | ||
15537 | * darwin-nat.h (struct darwin_exception_msg, enum | |
15538 | darwin_msg_state, struct darwin_thread_info, darwin_thread_t): | |
15539 | Move up. | |
15540 | (class darwin_nat_target) <wait_1, check_new_threads, | |
15541 | decode_exception_message, decode_message, stop_inferior, | |
15542 | init_thread_list, ptrace_him, cancel_breakpoint>: Declare. | |
15543 | * darwin-nat.c (darwin_check_new_threads): Rename to... | |
15544 | (darwin_nat_target::check_new_threads): ... this. | |
15545 | (darwin_suspend_inferior_it): Remove. | |
15546 | (darwin_decode_exception_message): Rename to... | |
15547 | (darwin_nat_target::decode_exception_message): ... this. | |
15548 | (darwin_nat_target::resume): Pass target to find_inferior_ptid. | |
15549 | (darwin_decode_message): Rename to... | |
15550 | (darwin_nat_target::decode_message): ... this. | |
15551 | (cancel_breakpoint): Rename to... | |
15552 | (darwin_nat_target::cancel_breakpoint): ... this. | |
15553 | (darwin_wait): Rename to... | |
15554 | (darwin_nat_target::wait_1): ... this. Use range-based for loop | |
15555 | instead of iterate_over_inferiors. | |
15556 | (darwin_nat_target::wait): Call wait_1 instead of darwin_wait. | |
15557 | (darwin_stop_inferior): Rename to... | |
15558 | (darwin_nat_target::stop_inferior): ... this. | |
15559 | (darwin_nat_target::kill): Call wait_1 instead of darwin_wait. | |
15560 | (darwin_init_thread_list): Rename to... | |
15561 | (darwin_nat_target::init_thread_list): ... this. | |
15562 | (darwin_ptrace_him): Rename to... | |
15563 | (darwin_nat_target::ptrace_him): ... this. | |
15564 | (darwin_nat_target::create_inferior): Pass lambda function to | |
15565 | fork_inferior. | |
15566 | (darwin_nat_target::detach): Call stop_inferior instead of | |
15567 | darwin_stop_inferior. | |
15568 | * fork-inferior.h (fork_inferior): Change init_trace_fun | |
15569 | parameter to gdb::function_view. | |
15570 | * fork-inferior.c (fork_inferior): Likewise. | |
15571 | ||
c162ed3e HD |
15572 | 2020-01-23 Hannes Domani <ssbssa@yahoo.de> |
15573 | ||
15574 | * i386-cygwin-tdep.c (core_process_module_section): Update. | |
15575 | * windows-nat.c (struct lm_info_windows): Add text_offset. | |
15576 | (windows_xfer_shared_libraries): Update. | |
15577 | * windows-tdep.c (windows_xfer_shared_library): | |
15578 | Add text_offset_cached argument. | |
15579 | * windows-tdep.h (windows_xfer_shared_library): Update. | |
15580 | ||
a1237872 SM |
15581 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
15582 | ||
15583 | * gdbarch.sh: Add declaration for _initialize_gdbarch. | |
15584 | ||
b3ee6dd9 SM |
15585 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
15586 | ||
15587 | * remote-sim.c (check_for_duplicate_sim_descriptor): Remove. | |
15588 | (get_sim_inferior_data): Remove use of iterate_over_inferiors, | |
15589 | replace with range-based for. | |
15590 | (gdbsim_interrupt_inferior): Remove. | |
15591 | (gdbsim_target::interrupt): Replace iterate_over_inferiors use | |
15592 | with a range-based for. Inline code from | |
15593 | gdbsim_interrupt_inferior. | |
15594 | ||
f9fac3c8 SM |
15595 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
15596 | ||
15597 | * infrun.c (proceed): Fix indentation. | |
15598 | ||
f6474de9 TT |
15599 | 2020-01-21 Tom Tromey <tromey@adacore.com> |
15600 | ||
15601 | * source-cache.c (source_cache::ensure): Call ext_lang_colorize. | |
15602 | * python/python.c (python_extension_ops): Update. | |
15603 | (gdbpy_colorize): New function. | |
15604 | * python/lib/gdb/__init__.py (colorize): New function. | |
15605 | * extension.h (ext_lang_colorize): Declare. | |
15606 | * extension.c (ext_lang_colorize): New function. | |
15607 | * extension-priv.h (struct extension_language_ops) <colorize>: New | |
15608 | member. | |
15609 | * cli/cli-style.c (_initialize_cli_style): Update help text. | |
15610 | ||
f0c702d4 LM |
15611 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
15612 | ||
15613 | * aarch64-tdep.c (struct aarch64_displaced_step_closure) | |
15614 | <cond>: Change type to bool. | |
15615 | (aarch64_displaced_step_b_cond): Update cond to use bool type. | |
15616 | (aarch64_displaced_step_cb): Likewise. | |
15617 | (aarch64_displaced_step_tb): Likewise. | |
15618 | ||
1ab139e5 LM |
15619 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
15620 | ||
15621 | * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging | |
15622 | output. | |
15623 | ||
0c271889 LM |
15624 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
15625 | ||
15626 | * aarch64-tdep.c (struct aarch64_displaced_step_closure ) | |
15627 | <pc_adjust>: Adjust the documentation. | |
15628 | (aarch64_displaced_step_fixup): Check if PC really moved before | |
15629 | adjusting it. | |
15630 | ||
4d89c1c7 TT |
15631 | 2020-01-19 Tom Tromey <tom@tromey.com> |
15632 | ||
15633 | * disasm.c (~gdb_disassembler): New destructor. | |
15634 | (gdb_buffered_insn_length): Call disassemble_free_target. | |
15635 | * disasm.h (class gdb_disassembler): Declare destructor. Use | |
15636 | DISABLE_COPY_AND_ASSIGN. | |
15637 | ||
c0ab21c2 TT |
15638 | 2020-01-19 Tom Tromey <tom@tromey.com> |
15639 | ||
15640 | * dwarf2read.c (abbrev_table_up): Move typedef earlier. | |
15641 | (die_reader_func_ftype): Remove. | |
15642 | (cutu_reader): New class. | |
15643 | (dw2_get_file_names_reader): Remove "data" parameter. | |
15644 | (dw2_get_file_names): Use cutu_reader. | |
15645 | (create_debug_type_hash_table): Update. | |
15646 | (read_cutu_die_from_dwo): Update comment. | |
15647 | (lookup_dwo_unit): Add dwo_name parameter. | |
15648 | (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove | |
15649 | die_reader_func_ftype and data parameters. | |
15650 | (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies. | |
15651 | Remove die_reader_func_ftype and data parameters. | |
15652 | (~cutu_reader): New; from init_cutu_and_read_dies. | |
15653 | (cutu_reader::cutu_reader): Rename from | |
15654 | init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype | |
15655 | and data parameters. | |
15656 | (init_cutu_and_read_dies_simple): Remove. | |
15657 | (struct process_psymtab_comp_unit_data): Remove. | |
15658 | (process_psymtab_comp_unit_reader): Remove data parameter; add | |
15659 | want_partial_unit and pretend_language parameters. | |
15660 | (process_psymtab_comp_unit): Use cutu_reader. | |
15661 | (build_type_psymtabs_reader): Remove data parameter. | |
15662 | (build_type_psymtabs_1): Use cutu_reader. | |
15663 | (process_skeletonless_type_unit): Likewise. | |
15664 | (load_partial_comp_unit_reader): Remove. | |
15665 | (load_partial_comp_unit): Use cutu_reader. | |
15666 | (load_full_comp_unit_reader): Remove. | |
15667 | (load_full_comp_unit): Use cutu_reader. | |
15668 | (struct create_dwo_cu_data): Remove. | |
15669 | (create_dwo_cu_reader): Remove datap parameter; add dwo_file and | |
15670 | dwo_unit parameters. | |
15671 | (create_cus_hash_table): Use cutu_reader. | |
15672 | (struct dwarf2_read_addr_index_data): Remove. | |
15673 | (dwarf2_read_addr_index_reader): Remove. | |
15674 | (dwarf2_read_addr_index): Use cutu_reader. | |
15675 | (read_signatured_type_reader): Remove. | |
15676 | (read_signatured_type): Use cutu_reader. | |
15677 | ||
45bbae5c TT |
15678 | 2020-01-19 Tom Tromey <tom@tromey.com> |
15679 | ||
15680 | * tui/tui.c (tui_show_assembly): Use tui_suppress_output. | |
15681 | * tui/tui-wingeneral.h (class tui_suppress_output): New. | |
15682 | (tui_wrefresh): Declare. | |
15683 | * tui/tui-wingeneral.c (suppress_output): New global. | |
15684 | (tui_suppress_output, ~tui_suppress_output): New constructor and | |
15685 | destructor. | |
15686 | (tui_wrefresh): New function. | |
15687 | (tui_gen_win_info::refresh_window): Use tui_wrefresh. | |
15688 | (tui_gen_win_info::make_window): Call wnoutrefresh when needed. | |
15689 | * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare | |
15690 | method. | |
15691 | * tui/tui-regs.c (tui_data_window::erase_data_content): Call | |
15692 | tui_wrefresh. | |
15693 | (tui_data_window::no_refresh): New method. | |
15694 | (tui_data_item_window::refresh_window): Call tui_wrefresh. | |
15695 | (tui_reg_command): Use tui_suppress_output | |
15696 | * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output. | |
15697 | * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New | |
15698 | method. | |
15699 | * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh. | |
15700 | ||
4f13c1c0 TT |
15701 | 2020-01-19 Tom Tromey <tom@tromey.com> |
15702 | ||
15703 | * tui/tui-winsource.c (tui_update_source_windows_with_line): | |
15704 | Handle case where symtab is null. | |
15705 | ||
fa47e446 SM |
15706 | 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca> |
15707 | ||
15708 | * linux-fork.c (one_fork_p): Simplify. | |
15709 | ||
26f42329 SM |
15710 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
15711 | ||
15712 | * top.c (struct qt_args): Remove. | |
15713 | (kill_or_detach): Change return type to void, replace `void *` | |
15714 | parameter with a proper one. | |
15715 | (print_inferior_quit_action): Likewise. | |
15716 | (quit_confirm): Use range-based for loop to iterate over inferiors. | |
15717 | (quit_force): Likewise. | |
15718 | ||
a9ac81b1 SM |
15719 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
15720 | ||
15721 | * mi/mi-main.c (run_one_inferior): Change return type to void, replace | |
15722 | `void *` parameter with proper parameters. | |
15723 | (mi_cmd_exec_run): Use range-based loop to iterate over inferiors. | |
15724 | (print_one_inferior): Change return type to void, replace `void *` | |
15725 | parameter with proper parameters. | |
15726 | (mi_cmd_list_thread_groups): Use range-based loop to iterate over | |
15727 | inferiors. | |
15728 | (get_other_inferior): Remove. | |
15729 | (mi_cmd_remove_inferior): Use range-based loop to iterate over | |
15730 | inferiors. | |
15731 | ||
788eca49 SM |
15732 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
15733 | ||
15734 | * mi/mi-interp.c (report_initial_inferior): Remove. | |
15735 | (mi_interp::init): Use range-based for to iterate over inferiors. | |
15736 | ||
d9bc85b6 SM |
15737 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
15738 | ||
15739 | * python/py-inferior.c (build_inferior_list): Remove. | |
15740 | (gdbpy_ref): Use range-based for loop to iterate over inferiors. | |
15741 | ||
40c94099 CB |
15742 | 2020-01-16 Christian Biesinger <cbiesinger@google.com> |
15743 | ||
15744 | * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown). | |
15745 | (btrace_stitch_trace): Likewise. | |
15746 | * charset.c (intermediate_encoding): Likewise (vaild). | |
15747 | * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown). | |
15748 | * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences). | |
15749 | * record-btrace.c (record_btrace_print_conf): Likewise (unkown). | |
15750 | ||
e0cdfe3c HD |
15751 | 2020-01-16 Hannes Domani <ssbssa@yahoo.de> |
15752 | ||
15753 | * windows-tdep.c (windows_get_tlb_type): | |
15754 | Add rtl_user_process_parameters type. | |
15755 | ||
790f1718 | 15756 | 2020-01-16 Pedro Alves <palves@redhat.com> |
aac66a4c | 15757 | Norbert Lange <nolange79@gmail.com> |
790f1718 PA |
15758 | |
15759 | PR build/24805 | |
15760 | * gdbsupport/gdb_proc_service.h (PS_EXPORT): New. | |
15761 | (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs) | |
15762 | (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue) | |
15763 | (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread) | |
15764 | (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs) | |
15765 | (ps_plog): Redeclare exported functions with default visibility. | |
15766 | ||
3112ed97 NA |
15767 | 2020-01-16 Nitika Achra <Nitika.Achra@amd.com> |
15768 | ||
15769 | * dwarf2loc.c (decode_debug_loclists_addresses): Handle | |
15770 | DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length. | |
15771 | ||
8dc3273e SM |
15772 | 2020-01-15 Simon Marchi <simon.marchi@efficios.com> |
15773 | ||
15774 | * infcmd.c (post_create_inferior): Use get_thread_regcache | |
15775 | instead of get_current_regcache. | |
15776 | ||
ff47f4f0 TT |
15777 | 2020-01-14 Tom Tromey <tom@tromey.com> |
15778 | ||
15779 | PR symtab/12535: | |
15780 | * python/python.c (gdbpy_decode_line): Treat empty string the same | |
15781 | as no argument. | |
15782 | ||
975f45b7 TT |
15783 | 2020-01-14 Tom Tromey <tom@tromey.com> |
15784 | ||
15785 | * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY). | |
15786 | ||
25e57356 TT |
15787 | 2020-01-14 Tom Tromey <tom@tromey.com> |
15788 | ||
15789 | * nat/linux-btrace.c: Don't include <config.h>. | |
15790 | * nat/linux-ptrace.c: Don't include <config.h>. | |
15791 | * nat/x86-linux-dregs.c: Don't include <config.h>. | |
15792 | ||
05ea2a05 TT |
15793 | 2020-01-14 Tom Tromey <tom@tromey.com> |
15794 | ||
15795 | * configure: Rebuild. | |
15796 | * configure.ac: Move many checks to ../gdbsupport/common.m4. | |
15797 | ||
01027315 TT |
15798 | 2020-01-14 Tom Tromey <tom@tromey.com> |
15799 | ||
15800 | * nat/x86-linux-dregs.c: Include configh.h. | |
15801 | * nat/linux-ptrace.c: Include configh.h. | |
15802 | * nat/linux-btrace.c: Include configh.h. | |
15803 | * defs.h: Include config.h, bfd.h. | |
15804 | * configure.ac: Don't source common.host. | |
15805 | (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files. | |
15806 | * configure: Rebuild. | |
15807 | * acinclude.m4: Update path. | |
15808 | * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables. | |
15809 | (CONFIG_SRC_SUBDIR): Remove gdbsupport. | |
15810 | (INTERNAL_CFLAGS_BASE): Add INCSUPPORT. | |
15811 | (CLIBS): Add LIBSUPPORT. | |
15812 | (CDEPS): Likewise. | |
15813 | (COMMON_SFILES): Remove gdbsupport files. | |
15814 | (HFILES_NO_SRCDIR): Likewise. | |
15815 | (stamp-version): Update path to create-version.sh. | |
15816 | (ALLDEPFILES): Remove gdbsupport files. | |
15817 | ||
b2ceabe8 TT |
15818 | 2020-01-14 Tom Tromey <tom@tromey.com> |
15819 | ||
15820 | * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and | |
15821 | USE_WIN32API when needed. | |
15822 | * configure.ac (USE_WIN32API): Don't define. | |
15823 | (WIN32LIBS): Use WIN32APILIBS. | |
15824 | * configure: Rebuild. | |
15825 | ||
25c51f71 TT |
15826 | 2020-01-14 Tom Tromey <tom@tromey.com> |
15827 | ||
15828 | * configure: Rebuild. | |
15829 | * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation. | |
15830 | ||
717c684d BE |
15831 | 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de> |
15832 | ||
15833 | * skip.c (skip_function_command): Make skip w/o arguments use the | |
15834 | name of the inlined function if pc is inside any inlined function. | |
15835 | ||
7da6a5b9 LM |
15836 | 2020-01-14 Luis Machado <luis.machado@linaro.org> |
15837 | ||
15838 | * inf-ptrace.c (inf_ptrace_target::resume): Update comments. | |
15839 | * infrun.c (resume_1): Likewise. | |
15840 | (handle_inferior_event): Remove stale comment. | |
15841 | * linux-nat.c (linux_nat_target::resume): Update comments. | |
15842 | (save_stop_reason): Likewise. | |
15843 | (linux_nat_filter_event): Likewise. | |
15844 | * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise. | |
15845 | ||
44e4c775 AB |
15846 | 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com> |
15847 | ||
15848 | * elfread.c (record_minimal_symbol): Set section index to 0 for | |
15849 | non-allocatable sections. | |
15850 | ||
18a8505e AT |
15851 | |
15852 | 2020-01-13 Ali Tamur <tamur@google.com> | |
15853 | ||
15854 | * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections. | |
15855 | (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base | |
15856 | to gdb::optional. Update comments. | |
15857 | (dwo_file): Update comments. | |
15858 | (read_attribute): Update API to take an additional out parameter, | |
15859 | need_reprocess. This is used to mark attributes that need other | |
15860 | attributes (e.g. str_offsets_base) for correct computation which may not | |
15861 | have been read yet. | |
15862 | (read_attribute_reprocess): New function declaration. | |
15863 | (read_addr_index): Likewise. | |
15864 | (read_dwo_str_index): Likewise. | |
15865 | (read_stub_str_index): Likewise. | |
15866 | (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section. | |
15867 | (lookup_addr_base): New function definition. | |
15868 | (lookup_ranges_base): Likewise. | |
15869 | (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base, | |
15870 | lookup_ranges_base. | |
15871 | (init_cutu_and_read_dies): Update comments. | |
15872 | (init_cutu_and_read_dies_no_follow): Change API to take parent compile | |
15873 | unit. This is used to inherit parent's str_offsets_base and addr_base. | |
15874 | Update comments. | |
15875 | (init_cutu_and_read_dies_simple): Reflect API changes. | |
15876 | (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx. | |
15877 | (create_cus_hash_table): Change API to take parent compile unit. | |
15878 | Reflect API changes. | |
15879 | (open_and_init_dwo_file): Reflect API changes. | |
15880 | (dwarf2_get_pc_bounds): Update comments. | |
15881 | (dwarf2_record_block_ranges): Likewise. | |
15882 | (read_full_die_1): Change implementation to reprocess attributes that | |
15883 | need str_offsets_base and addr_base. | |
15884 | (partial_die_info::read): Likewise. | |
15885 | (read_attribute_reprocess): New function definition. | |
15886 | (read_attribute_value): Change API to take an additional out parameter, | |
15887 | need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error | |
15888 | when a non-dwo compile unit has index based attributes. | |
15889 | (read_attribute): Reflect API changes. | |
15890 | (read_addr_index_1): Reflect API changes. Update comments. | |
15891 | (dwarf2_read_addr_index_data): Reflect API changes. | |
15892 | (dwarf2_read_addr_index): Likewise. | |
15893 | (read_str_index): Change API and implementation. This becomes a helper | |
15894 | to be used by the new string index related methods. Update error | |
15895 | message and comments. | |
15896 | (read_dwo_str_index): New function definition. | |
15897 | (read_stub_str_index): Likewise. | |
15898 | * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field. | |
15899 | * symfile.h (dwarf2_debug_sections): Likewise. | |
15900 | * xcoffread.c (dwarf2_debug_sections): Likewise. | |
15901 | ||
0cac9354 SM |
15902 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
15903 | ||
15904 | * gdbcore.h (struct core_fns) <core_read_registers>: Change | |
15905 | core_reg_sect type to gdb_byte *. | |
15906 | * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise. | |
15907 | * cris-tdep.c (fetch_core_registers): Likewise. | |
15908 | * corelow.c (core_target::get_core_register_section): Change | |
15909 | type of `contents` to gdb::byte_vector. | |
15910 | ||
9a6d629c AB |
15911 | 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com> |
15912 | ||
15913 | * tui/tui-wingeneral.c (box_win): Position the title in the center | |
15914 | of the border. | |
15915 | ||
d8b2f9e3 SM |
15916 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
15917 | ||
15918 | * corelow.c (core_target::get_core_register_section): Use | |
15919 | std::vector instead of alloca. | |
15920 | ||
bb564c58 SM |
15921 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
15922 | ||
15923 | * warning.m4: Add -Wmissing-declarations to build_warnings. | |
15924 | * configure: Re-generate. | |
15925 | ||
6b366111 SM |
15926 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
15927 | ||
15928 | * python/python.c (init__gdb_module): Add declaration. | |
15929 | ||
6c265988 SM |
15930 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
15931 | ||
15932 | * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration. | |
15933 | * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration. | |
15934 | * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration. | |
15935 | * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration. | |
15936 | * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration. | |
15937 | * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration. | |
15938 | * ada-exp.y (_initialize_ada_exp): Add declaration. | |
15939 | * ada-lang.c (_initialize_ada_language): Add declaration. | |
15940 | * ada-tasks.c (_initialize_tasks): Add declaration. | |
15941 | * agent.c (_initialize_agent): Add declaration. | |
15942 | * aix-thread.c (_initialize_aix_thread): Add declaration. | |
15943 | * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration. | |
15944 | * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration. | |
15945 | * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration. | |
15946 | * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration. | |
15947 | * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration. | |
15948 | * alpha-tdep.c (_initialize_alpha_tdep): Add declaration. | |
15949 | * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration. | |
15950 | * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration. | |
15951 | * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration. | |
15952 | * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration. | |
15953 | * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration. | |
15954 | * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration. | |
15955 | * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration. | |
15956 | * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration. | |
15957 | * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration. | |
15958 | * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration. | |
15959 | * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration. | |
15960 | * amd64-tdep.c (_initialize_amd64_tdep): Add declaration. | |
15961 | * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration. | |
15962 | * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration. | |
15963 | * annotate.c (_initialize_annotate): Add declaration. | |
15964 | * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration. | |
15965 | * arc-tdep.c (_initialize_arc_tdep): Add declaration. | |
15966 | * arch-utils.c (_initialize_gdbarch_utils): Add declaration. | |
15967 | * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration. | |
15968 | * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration. | |
15969 | * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration. | |
15970 | * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration. | |
15971 | * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration. | |
15972 | * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration. | |
15973 | * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration. | |
15974 | * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration. | |
15975 | * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration. | |
15976 | * arm-tdep.c (_initialize_arm_tdep): Add declaration. | |
15977 | * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration. | |
15978 | * auto-load.c (_initialize_auto_load): Add declaration. | |
15979 | * auxv.c (_initialize_auxv): Add declaration. | |
15980 | * avr-tdep.c (_initialize_avr_tdep): Add declaration. | |
15981 | * ax-gdb.c (_initialize_ax_gdb): Add declaration. | |
15982 | * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration. | |
15983 | * bfin-tdep.c (_initialize_bfin_tdep): Add declaration. | |
15984 | * break-catch-sig.c (_initialize_break_catch_sig): Add declaration. | |
15985 | * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration. | |
15986 | * break-catch-throw.c (_initialize_break_catch_throw): Add declaration. | |
15987 | * breakpoint.c (_initialize_breakpoint): Add declaration. | |
15988 | * bsd-uthread.c (_initialize_bsd_uthread): Add declaration. | |
15989 | * btrace.c (_initialize_btrace): Add declaration. | |
15990 | * charset.c (_initialize_charset): Add declaration. | |
15991 | * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration. | |
15992 | * cli/cli-dump.c (_initialize_cli_dump): Add declaration. | |
15993 | * cli/cli-interp.c (_initialize_cli_interp): Add declaration. | |
15994 | * cli/cli-logging.c (_initialize_cli_logging): Add declaration. | |
15995 | * cli/cli-script.c (_initialize_cli_script): Add declaration. | |
15996 | * cli/cli-style.c (_initialize_cli_style): Add declaration. | |
15997 | * coff-pe-read.c (_initialize_coff_pe_read): Add declaration. | |
15998 | * coffread.c (_initialize_coffread): Add declaration. | |
15999 | * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration. | |
16000 | * compile/compile.c (_initialize_compile): Add declaration. | |
16001 | * complaints.c (_initialize_complaints): Add declaration. | |
16002 | * completer.c (_initialize_completer): Add declaration. | |
16003 | * copying.c (_initialize_copying): Add declaration. | |
16004 | * corefile.c (_initialize_core): Add declaration. | |
16005 | * corelow.c (_initialize_corelow): Add declaration. | |
16006 | * cp-abi.c (_initialize_cp_abi): Add declaration. | |
16007 | * cp-namespace.c (_initialize_cp_namespace): Add declaration. | |
16008 | * cp-support.c (_initialize_cp_support): Add declaration. | |
16009 | * cp-valprint.c (_initialize_cp_valprint): Add declaration. | |
16010 | * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration. | |
16011 | * cris-tdep.c (_initialize_cris_tdep): Add declaration. | |
16012 | * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration. | |
16013 | * csky-tdep.c (_initialize_csky_tdep): Add declaration. | |
16014 | * ctfread.c (_initialize_ctfread): Add declaration. | |
16015 | * d-lang.c (_initialize_d_language): Add declaration. | |
16016 | * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration. | |
16017 | * darwin-nat.c (_initialize_darwin_nat): Add declaration. | |
16018 | * dbxread.c (_initialize_dbxread): Add declaration. | |
16019 | * dcache.c (_initialize_dcache): Add declaration. | |
16020 | * disasm-selftests.c (_initialize_disasm_selftests): Add declaration. | |
16021 | * disasm.c (_initialize_disasm): Add declaration. | |
16022 | * dtrace-probe.c (_initialize_dtrace_probe): Add declaration. | |
16023 | * dummy-frame.c (_initialize_dummy_frame): Add declaration. | |
16024 | * dwarf-index-cache.c (_initialize_index_cache): Add declaration. | |
16025 | * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration. | |
16026 | * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration. | |
16027 | * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration. | |
16028 | * dwarf2expr.c (_initialize_dwarf2expr): Add declaration. | |
16029 | * dwarf2loc.c (_initialize_dwarf2loc): Add declaration. | |
16030 | * dwarf2read.c (_initialize_dwarf2_read): Add declaration. | |
16031 | * elfread.c (_initialize_elfread): Add declaration. | |
16032 | * exec.c (_initialize_exec): Add declaration. | |
16033 | * extension.c (_initialize_extension): Add declaration. | |
16034 | * f-lang.c (_initialize_f_language): Add declaration. | |
16035 | * f-valprint.c (_initialize_f_valprint): Add declaration. | |
16036 | * fbsd-nat.c (_initialize_fbsd_nat): Add declaration. | |
16037 | * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration. | |
16038 | * filesystem.c (_initialize_filesystem): Add declaration. | |
16039 | * findcmd.c (_initialize_mem_search): Add declaration. | |
16040 | * findvar.c (_initialize_findvar): Add declaration. | |
16041 | * fork-child.c (_initialize_fork_child): Add declaration. | |
16042 | * frame-base.c (_initialize_frame_base): Add declaration. | |
16043 | * frame-unwind.c (_initialize_frame_unwind): Add declaration. | |
16044 | * frame.c (_initialize_frame): Add declaration. | |
16045 | * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration. | |
16046 | * frv-tdep.c (_initialize_frv_tdep): Add declaration. | |
16047 | * ft32-tdep.c (_initialize_ft32_tdep): Add declaration. | |
16048 | * gcore.c (_initialize_gcore): Add declaration. | |
16049 | * gdb-demangle.c (_initialize_gdb_demangle): Add declaration. | |
16050 | * gdb_bfd.c (_initialize_gdb_bfd): Add declaration. | |
16051 | * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration. | |
16052 | * gdbarch.c (_initialize_gdbarch): Add declaration. | |
16053 | * gdbtypes.c (_initialize_gdbtypes): Add declaration. | |
16054 | * gnu-nat.c (_initialize_gnu_nat): Add declaration. | |
16055 | * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration. | |
16056 | * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration. | |
16057 | * go-lang.c (_initialize_go_language): Add declaration. | |
16058 | * go32-nat.c (_initialize_go32_nat): Add declaration. | |
16059 | * guile/guile.c (_initialize_guile): Add declaration. | |
16060 | * h8300-tdep.c (_initialize_h8300_tdep): Add declaration. | |
16061 | * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration. | |
16062 | * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration. | |
16063 | * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration. | |
16064 | * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration. | |
16065 | * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration. | |
16066 | * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration. | |
16067 | * hppa-tdep.c (_initialize_hppa_tdep): Add declaration. | |
16068 | * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration. | |
16069 | * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration. | |
16070 | * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration. | |
16071 | * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration. | |
16072 | * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration. | |
16073 | * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration. | |
16074 | * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration. | |
16075 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration. | |
16076 | * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration. | |
16077 | * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration. | |
16078 | * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration. | |
16079 | * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration. | |
16080 | * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration. | |
16081 | * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration. | |
16082 | * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration. | |
16083 | * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration. | |
16084 | * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration. | |
16085 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration. | |
16086 | * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration. | |
16087 | * i386-tdep.c (_initialize_i386_tdep): Add declaration. | |
16088 | * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration. | |
16089 | * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration. | |
16090 | * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration. | |
16091 | * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration. | |
16092 | * ia64-tdep.c (_initialize_ia64_tdep): Add declaration. | |
16093 | * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration. | |
16094 | * infcall.c (_initialize_infcall): Add declaration. | |
16095 | * infcmd.c (_initialize_infcmd): Add declaration. | |
16096 | * inflow.c (_initialize_inflow): Add declaration. | |
16097 | * infrun.c (_initialize_infrun): Add declaration. | |
16098 | * interps.c (_initialize_interpreter): Add declaration. | |
16099 | * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration. | |
16100 | * jit.c (_initialize_jit): Add declaration. | |
16101 | * language.c (_initialize_language): Add declaration. | |
16102 | * linux-fork.c (_initialize_linux_fork): Add declaration. | |
16103 | * linux-nat.c (_initialize_linux_nat): Add declaration. | |
16104 | * linux-tdep.c (_initialize_linux_tdep): Add declaration. | |
16105 | * linux-thread-db.c (_initialize_thread_db): Add declaration. | |
16106 | * lm32-tdep.c (_initialize_lm32_tdep): Add declaration. | |
16107 | * m2-lang.c (_initialize_m2_language): Add declaration. | |
16108 | * m32c-tdep.c (_initialize_m32c_tdep): Add declaration. | |
16109 | * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration. | |
16110 | * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration. | |
16111 | * m32r-tdep.c (_initialize_m32r_tdep): Add declaration. | |
16112 | * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration. | |
16113 | * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration. | |
16114 | * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration. | |
16115 | * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration. | |
16116 | * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration. | |
16117 | * m68k-tdep.c (_initialize_m68k_tdep): Add declaration. | |
16118 | * machoread.c (_initialize_machoread): Add declaration. | |
16119 | * macrocmd.c (_initialize_macrocmd): Add declaration. | |
16120 | * macroscope.c (_initialize_macroscope): Add declaration. | |
16121 | * maint-test-options.c (_initialize_maint_test_options): Add declaration. | |
16122 | * maint-test-settings.c (_initialize_maint_test_settings): Add declaration. | |
16123 | * maint.c (_initialize_maint_cmds): Add declaration. | |
16124 | * mdebugread.c (_initialize_mdebugread): Add declaration. | |
16125 | * memattr.c (_initialize_mem): Add declaration. | |
16126 | * mep-tdep.c (_initialize_mep_tdep): Add declaration. | |
16127 | * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration. | |
16128 | * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration. | |
16129 | * mi/mi-interp.c (_initialize_mi_interp): Add declaration. | |
16130 | * mi/mi-main.c (_initialize_mi_main): Add declaration. | |
16131 | * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration. | |
16132 | * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration. | |
16133 | * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration. | |
16134 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration. | |
16135 | * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration. | |
16136 | * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration. | |
16137 | * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration. | |
16138 | * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration. | |
16139 | * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration. | |
16140 | * mips-tdep.c (_initialize_mips_tdep): Add declaration. | |
16141 | * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration. | |
16142 | * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration. | |
16143 | * mipsread.c (_initialize_mipsread): Add declaration. | |
16144 | * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration. | |
16145 | * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration. | |
16146 | * moxie-tdep.c (_initialize_moxie_tdep): Add declaration. | |
16147 | * msp430-tdep.c (_initialize_msp430_tdep): Add declaration. | |
16148 | * nds32-tdep.c (_initialize_nds32_tdep): Add declaration. | |
16149 | * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration. | |
16150 | * nios2-tdep.c (_initialize_nios2_tdep): Add declaration. | |
16151 | * nto-procfs.c (_initialize_procfs): Add declaration. | |
16152 | * objc-lang.c (_initialize_objc_language): Add declaration. | |
16153 | * observable.c (_initialize_observer): Add declaration. | |
16154 | * opencl-lang.c (_initialize_opencl_language): Add declaration. | |
16155 | * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration. | |
16156 | * or1k-tdep.c (_initialize_or1k_tdep): Add declaration. | |
16157 | * osabi.c (_initialize_gdb_osabi): Add declaration. | |
16158 | * osdata.c (_initialize_osdata): Add declaration. | |
16159 | * p-valprint.c (_initialize_pascal_valprint): Add declaration. | |
16160 | * parse.c (_initialize_parse): Add declaration. | |
16161 | * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration. | |
16162 | * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration. | |
16163 | * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration. | |
16164 | * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration. | |
16165 | * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration. | |
16166 | * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration. | |
16167 | * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration. | |
16168 | * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration. | |
16169 | * printcmd.c (_initialize_printcmd): Add declaration. | |
16170 | * probe.c (_initialize_probe): Add declaration. | |
16171 | * proc-api.c (_initialize_proc_api): Add declaration. | |
16172 | * proc-events.c (_initialize_proc_events): Add declaration. | |
16173 | * proc-service.c (_initialize_proc_service): Add declaration. | |
16174 | * procfs.c (_initialize_procfs): Add declaration. | |
16175 | * producer.c (_initialize_producer): Add declaration. | |
16176 | * psymtab.c (_initialize_psymtab): Add declaration. | |
16177 | * python/python.c (_initialize_python): Add declaration. | |
16178 | * ravenscar-thread.c (_initialize_ravenscar): Add declaration. | |
16179 | * record-btrace.c (_initialize_record_btrace): Add declaration. | |
16180 | * record-full.c (_initialize_record_full): Add declaration. | |
16181 | * record.c (_initialize_record): Add declaration. | |
16182 | * regcache-dump.c (_initialize_regcache_dump): Add declaration. | |
16183 | * regcache.c (_initialize_regcache): Add declaration. | |
16184 | * reggroups.c (_initialize_reggroup): Add declaration. | |
16185 | * remote-notif.c (_initialize_notif): Add declaration. | |
16186 | * remote-sim.c (_initialize_remote_sim): Add declaration. | |
16187 | * remote.c (_initialize_remote): Add declaration. | |
16188 | * reverse.c (_initialize_reverse): Add declaration. | |
16189 | * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration. | |
16190 | * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration. | |
16191 | * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration. | |
16192 | * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration. | |
16193 | * riscv-tdep.c (_initialize_riscv_tdep): Add declaration. | |
16194 | * rl78-tdep.c (_initialize_rl78_tdep): Add declaration. | |
16195 | * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration. | |
16196 | * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep): | |
16197 | Add declaration. | |
16198 | * rs6000-nat.c (_initialize_rs6000_nat): Add declaration. | |
16199 | * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration. | |
16200 | * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration. | |
16201 | * rust-exp.y (_initialize_rust_exp): Add declaration. | |
16202 | * rx-tdep.c (_initialize_rx_tdep): Add declaration. | |
16203 | * s12z-tdep.c (_initialize_s12z_tdep): Add declaration. | |
16204 | * s390-linux-nat.c (_initialize_s390_nat): Add declaration. | |
16205 | * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration. | |
16206 | * s390-tdep.c (_initialize_s390_tdep): Add declaration. | |
16207 | * score-tdep.c (_initialize_score_tdep): Add declaration. | |
16208 | * ser-go32.c (_initialize_ser_dos): Add declaration. | |
16209 | * ser-mingw.c (_initialize_ser_windows): Add declaration. | |
16210 | * ser-pipe.c (_initialize_ser_pipe): Add declaration. | |
16211 | * ser-tcp.c (_initialize_ser_tcp): Add declaration. | |
16212 | * ser-uds.c (_initialize_ser_socket): Add declaration. | |
16213 | * ser-unix.c (_initialize_ser_hardwire): Add declaration. | |
16214 | * serial.c (_initialize_serial): Add declaration. | |
16215 | * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration. | |
16216 | * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration. | |
16217 | * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration. | |
16218 | * sh-tdep.c (_initialize_sh_tdep): Add declaration. | |
16219 | * skip.c (_initialize_step_skip): Add declaration. | |
16220 | * sol-thread.c (_initialize_sol_thread): Add declaration. | |
16221 | * solib-aix.c (_initialize_solib_aix): Add declaration. | |
16222 | * solib-darwin.c (_initialize_darwin_solib): Add declaration. | |
16223 | * solib-dsbt.c (_initialize_dsbt_solib): Add declaration. | |
16224 | * solib-frv.c (_initialize_frv_solib): Add declaration. | |
16225 | * solib-svr4.c (_initialize_svr4_solib): Add declaration. | |
16226 | * solib-target.c (_initialize_solib_target): Add declaration. | |
16227 | * solib.c (_initialize_solib): Add declaration. | |
16228 | * source-cache.c (_initialize_source_cache): Add declaration. | |
16229 | * source.c (_initialize_source): Add declaration. | |
16230 | * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration. | |
16231 | * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration. | |
16232 | * sparc-nat.c (_initialize_sparc_nat): Add declaration. | |
16233 | * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration. | |
16234 | * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration. | |
16235 | * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration. | |
16236 | * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration. | |
16237 | * sparc-tdep.c (_initialize_sparc_tdep): Add declaration. | |
16238 | * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration. | |
16239 | * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration. | |
16240 | * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration. | |
16241 | * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration. | |
16242 | * sparc64-nat.c (_initialize_sparc64_nat): Add declaration. | |
16243 | * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration. | |
16244 | * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration. | |
16245 | * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration. | |
16246 | * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration. | |
16247 | * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration. | |
16248 | * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration. | |
16249 | * stabsread.c (_initialize_stabsread): Add declaration. | |
16250 | * stack.c (_initialize_stack): Add declaration. | |
16251 | * stap-probe.c (_initialize_stap_probe): Add declaration. | |
16252 | * std-regs.c (_initialize_frame_reg): Add declaration. | |
16253 | * symfile-debug.c (_initialize_symfile_debug): Add declaration. | |
16254 | * symfile-mem.c (_initialize_symfile_mem): Add declaration. | |
16255 | * symfile.c (_initialize_symfile): Add declaration. | |
16256 | * symmisc.c (_initialize_symmisc): Add declaration. | |
16257 | * symtab.c (_initialize_symtab): Add declaration. | |
16258 | * target.c (_initialize_target): Add declaration. | |
16259 | * target-connection.c (_initialize_target_connection): Add | |
16260 | declaration. | |
16261 | * target-dcache.c (_initialize_target_dcache): Add declaration. | |
16262 | * target-descriptions.c (_initialize_target_descriptions): Add declaration. | |
16263 | * thread.c (_initialize_thread): Add declaration. | |
16264 | * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration. | |
16265 | * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration. | |
16266 | * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration. | |
16267 | * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration. | |
16268 | * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration. | |
16269 | * tracectf.c (_initialize_ctf): Add declaration. | |
16270 | * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration. | |
16271 | * tracefile.c (_initialize_tracefile): Add declaration. | |
16272 | * tracepoint.c (_initialize_tracepoint): Add declaration. | |
16273 | * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration. | |
16274 | * tui/tui-interp.c (_initialize_tui_interp): Add declaration. | |
16275 | * tui/tui-layout.c (_initialize_tui_layout): Add declaration. | |
16276 | * tui/tui-regs.c (_initialize_tui_regs): Add declaration. | |
16277 | * tui/tui-stack.c (_initialize_tui_stack): Add declaration. | |
16278 | * tui/tui-win.c (_initialize_tui_win): Add declaration. | |
16279 | * tui/tui.c (_initialize_tui): Add declaration. | |
16280 | * typeprint.c (_initialize_typeprint): Add declaration. | |
16281 | * ui-style.c (_initialize_ui_style): Add declaration. | |
16282 | * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration. | |
16283 | * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration. | |
16284 | * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration. | |
16285 | * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration. | |
16286 | * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration. | |
16287 | * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration. | |
16288 | * unittests/filtered_iterator-selftests.c | |
16289 | (_initialize_filtered_iterator_selftests): Add declaration. | |
16290 | * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration. | |
16291 | * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration. | |
16292 | * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration. | |
16293 | * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration. | |
16294 | * unittests/main-thread-selftests.c | |
16295 | (_initialize_main_thread_selftests): Add declaration. | |
16296 | * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration. | |
16297 | * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration. | |
16298 | * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration. | |
16299 | * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration. | |
16300 | * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration. | |
16301 | * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration. | |
16302 | * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration. | |
16303 | * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration. | |
16304 | * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration. | |
16305 | * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration. | |
16306 | * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration. | |
16307 | * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration. | |
16308 | * unittests/style-selftests.c (_initialize_style_selftest): Add declaration. | |
16309 | * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration. | |
16310 | * unittests/tui-selftests.c (_initialize_tui_selftest): Add | |
16311 | declaration. | |
16312 | * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration. | |
16313 | * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration. | |
16314 | * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration. | |
16315 | * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration. | |
16316 | * user-regs.c (_initialize_user_regs): Add declaration. | |
16317 | * utils.c (_initialize_utils): Add declaration. | |
16318 | * v850-tdep.c (_initialize_v850_tdep): Add declaration. | |
16319 | * valops.c (_initialize_valops): Add declaration. | |
16320 | * valprint.c (_initialize_valprint): Add declaration. | |
16321 | * value.c (_initialize_values): Add declaration. | |
16322 | * varobj.c (_initialize_varobj): Add declaration. | |
16323 | * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration. | |
16324 | * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration. | |
16325 | * vax-tdep.c (_initialize_vax_tdep): Add declaration. | |
16326 | * windows-nat.c (_initialize_windows_nat): Add declaration. | |
16327 | (_initialize_check_for_gdb_ini): Add declaration. | |
16328 | (_initialize_loadable): Add declaration. | |
16329 | * windows-tdep.c (_initialize_windows_tdep): Add declaration. | |
16330 | * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration. | |
16331 | * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration. | |
16332 | * xcoffread.c (_initialize_xcoffread): Add declaration. | |
16333 | * xml-support.c (_initialize_xml_support): Add declaration. | |
16334 | * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration. | |
16335 | * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration. | |
16336 | * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration. | |
16337 | * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration. | |
16338 | ||
e2de1eec SM |
16339 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
16340 | ||
16341 | * regformats/regdat.sh: Generate declaration for init function. | |
16342 | ||
e0037b4c SM |
16343 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
16344 | ||
16345 | * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move | |
16346 | up. | |
16347 | (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior, | |
16348 | close_one_inferior>: New methods. | |
16349 | (get_sim_inferior_data_by_ptid): Move to gdbsim_target, | |
16350 | pass down target to find_inferior_pid. | |
16351 | (gdbsim_target::fetch_registers, gdbsim_target::store_registers): | |
16352 | Pass down target to find_inferior_ptid. | |
16353 | (gdbsim_target::create_inferior): Pass down target to | |
16354 | add_thread_silent. | |
16355 | (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass | |
16356 | target down to find_inferior_ptid and switch_to_thread. | |
16357 | (gdbsim_target::close): Update to call close_one_inferior. | |
16358 | (struct resume_data): Remove. | |
16359 | (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments | |
16360 | directly, rather than through a void pointer. | |
16361 | (gdbsim_target::resume): Update to call resume_one_inferior. | |
16362 | ||
58920b5b SM |
16363 | 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
16364 | ||
16365 | * gdbsupport/gdb_wait.c: Include gdb_wait.h. | |
16366 | ||
4ec89149 PA |
16367 | 2020-01-12 Pedro Alves <palves@redhat.com> |
16368 | ||
16369 | * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent | |
16370 | directly for the current inferior instead of | |
16371 | discard_all_inferiors. | |
16372 | (discard_all_inferiors): Delete. | |
16373 | ||
7c392d1d TT |
16374 | 2020-01-11 Tom Tromey <tom@tromey.com> |
16375 | ||
16376 | * tui/tui-wingeneral.c (box_win): Check cli_styling. | |
16377 | * tui/tui-winsource.c (tui_source_window_base::refill): Use | |
16378 | deprecated_safe_get_selected_frame. | |
16379 | ||
d9ebdab7 TBA |
16380 | 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
16381 | ||
16382 | * inferior.c (print_inferior): Switch inferior before printing it. | |
16383 | ||
f3c469b9 PA |
16384 | 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com> |
16385 | Pedro Alves <palves@redhat.com> | |
16386 | ||
16387 | * progspace-and-thread.c (switch_to_program_space_and_thread): | |
16388 | Assert there's an inferior for PSPACE. Use | |
16389 | switch_to_inferior_no_thread to switch the inferior too. | |
16390 | * progspace.c (program_space::~program_space): Call | |
16391 | clear_symtab_users here, with SYMFILE_DEFER_BP_RESET. | |
16392 | (program_space::free_all_objfiles): Don't call clear_symtab_users | |
16393 | here. | |
16394 | * symfile.c (symbol_file_clear): Call clear_symtab_users here. | |
16395 | ||
65c574f6 PA |
16396 | 2020-01-10 Pedro Alves <palves@redhat.com> |
16397 | ||
16398 | * NEWS: Mention multi-target debugging, "info connections", and | |
16399 | "add-inferior -no-connection". | |
16400 | ||
2f4fcf00 PA |
16401 | 2020-01-10 Pedro Alves <palves@redhat.com> |
16402 | ||
16403 | * infrun.c: Include "target-connection.h". | |
16404 | (check_multi_target_resumption): New. | |
16405 | (proceed): Call it. | |
16406 | * target-connection.c (make_target_connection_string): Make | |
16407 | extern. | |
16408 | * target-connection.h (make_target_connection_string): Declare. | |
16409 | ||
121b3efd PA |
16410 | 2020-01-10 Pedro Alves <palves@redhat.com> |
16411 | ||
16412 | * Makefile.in (COMMON_SFILES): Add target-connection.c. | |
16413 | * inferior.c (uiout_field_connection): New function. | |
16414 | (print_inferior): Add new "connection-id" column. | |
16415 | (add_inferior_command): Show connection number/string of added | |
16416 | inferior. | |
16417 | * process-stratum-target.h | |
16418 | (process_stratum_target::connection_string): New virtual method. | |
16419 | (process_stratum_target::connection_number): New field. | |
16420 | * remote.c (remote_target::connection_string): New override. | |
16421 | * target-connection.c: New file. | |
16422 | * target-connection.h: New file. | |
16423 | * target.c (decref_target): Remove process_stratum targets from | |
16424 | the connection list. | |
16425 | (target_stack::push): Add process_stratum targets to the | |
16426 | connection list. | |
16427 | ||
4f837581 PA |
16428 | 2020-01-10 Pedro Alves <palves@redhat.com> |
16429 | ||
16430 | Revert: | |
16431 | 2016-04-12 Pedro Alves <palves@redhat.com> | |
16432 | * serial.c (serial_open, serial_fdopen_ops, do_serial_close): | |
16433 | Remove references to name. | |
16434 | * serial.h (struct serial) <name>: Delete. | |
16435 | ||
f4ec508e PA |
16436 | 2020-01-10 Pedro Alves <palves@redhat.com> |
16437 | ||
16438 | * gdbarch-selftests.c (register_to_value_test): Remove "target | |
16439 | already pushed" check. | |
16440 | ||
5b6d1e4f PA |
16441 | 2020-01-10 Pedro Alves <palves@redhat.com> |
16442 | John Baldwin <jhb@FreeBSD.org> | |
16443 | ||
16444 | * aarch64-linux-nat.c | |
16445 | (aarch64_linux_nat_target::thread_architecture): Adjust. | |
16446 | * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call. | |
16447 | (task_command_1): Likewise. | |
16448 | * aix-thread.c (sync_threadlists, aix_thread_target::resume) | |
16449 | (aix_thread_target::wait, aix_thread_target::fetch_registers) | |
16450 | (aix_thread_target::store_registers) | |
16451 | (aix_thread_target::thread_alive): Adjust. | |
16452 | * amd64-fbsd-tdep.c: Include "inferior.h". | |
16453 | (amd64fbsd_get_thread_local_address): Pass down target. | |
16454 | * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle | |
16455 | thread's gdbarch instead of target_gdbarch. | |
16456 | * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to | |
16457 | get_last_target_status. | |
16458 | * break-catch-syscall.c (print_it_catch_syscall): Likewise. | |
16459 | * breakpoint.c (breakpoints_should_be_inserted_now): Consider all | |
16460 | inferiors. | |
16461 | (update_inserted_breakpoint_locations): Skip if inferiors with no | |
16462 | execution. | |
16463 | (update_global_location_list): When handling moribund locations, | |
16464 | find representative inferior for location's pspace, and use thread | |
16465 | count of its process_stratum target. | |
16466 | * bsd-kvm.c (bsd_kvm_target_open): Pass target down. | |
16467 | * bsd-uthread.c (bsd_uthread_target::wait): Use | |
16468 | as_process_stratum_target and adjust thread_change_ptid and | |
16469 | add_thread calls. | |
16470 | (bsd_uthread_target::update_thread_list): Use | |
16471 | as_process_stratum_target and adjust find_thread_ptid, | |
16472 | thread_change_ptid and add_thread calls. | |
16473 | * btrace.c (maint_btrace_packet_history_cmd): Adjust | |
16474 | find_thread_ptid call. | |
16475 | * corelow.c (add_to_thread_list): Adjust add_thread call. | |
16476 | (core_target_open): Adjust add_thread_silent and thread_count | |
16477 | calls. | |
16478 | (core_target::pid_to_str): Adjust find_inferior_ptid call. | |
16479 | * ctf.c (ctf_target_open): Adjust add_thread_silent call. | |
16480 | * event-top.c (async_disconnect): Pop targets from all inferiors. | |
16481 | * exec.c (add_target_sections): Push exec target on all inferiors | |
16482 | sharing the program space. | |
16483 | (remove_target_sections): Remove the exec target from all | |
16484 | inferiors sharing the program space. | |
16485 | (exec_on_vfork): New. | |
16486 | * exec.h (exec_on_vfork): Declare. | |
16487 | * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter. | |
16488 | Pass it down. | |
16489 | (fbsd_nat_target::update_thread_list): Adjust. | |
16490 | (fbsd_nat_target::resume): Adjust. | |
16491 | (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it | |
16492 | down. | |
16493 | (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust. | |
16494 | * fbsd-tdep.c (fbsd_corefile_thread): Adjust | |
16495 | get_thread_arch_regcache call. | |
16496 | * fork-child.c (gdb_startup_inferior): Pass target down to | |
16497 | startup_inferior and set_executing. | |
16498 | * gdbthread.h (struct process_stratum_target): Forward declare. | |
16499 | (add_thread, add_thread_silent, add_thread_with_info) | |
16500 | (in_thread_list): Add process_stratum_target parameter. | |
16501 | (find_thread_ptid(inferior*, ptid_t)): New overload. | |
16502 | (find_thread_ptid, thread_change_ptid): Add process_stratum_target | |
16503 | parameter. | |
16504 | (all_threads()): Delete overload. | |
16505 | (all_threads, all_non_exited_threads): Add process_stratum_target | |
16506 | parameter. | |
16507 | (all_threads_safe): Use brace initialization. | |
16508 | (thread_count): Add process_stratum_target parameter. | |
16509 | (set_resumed, set_running, set_stop_requested, set_executing) | |
16510 | (threads_are_executing, finish_thread_state): Add | |
16511 | process_stratum_target parameter. | |
16512 | (switch_to_thread): Use is_current_thread. | |
16513 | * i386-fbsd-tdep.c: Include "inferior.h". | |
16514 | (i386fbsd_get_thread_local_address): Pass down target. | |
16515 | * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust. | |
16516 | * inf-child.c (inf_child_target::maybe_unpush_target): Remove | |
16517 | have_inferiors check. | |
16518 | * inf-ptrace.c (inf_ptrace_target::create_inferior) | |
16519 | (inf_ptrace_target::attach): Adjust. | |
16520 | * infcall.c (run_inferior_call): Adjust. | |
16521 | * infcmd.c (run_command_1): Pass target to | |
16522 | scoped_finish_thread_state. | |
16523 | (proceed_thread_callback): Skip inferiors with no execution. | |
16524 | (continue_command): Rename 'all_threads' local to avoid hiding | |
16525 | 'all_threads' function. Adjust get_last_target_status call. | |
16526 | (prepare_one_step): Adjust set_running call. | |
16527 | (signal_command): Use user_visible_resume_target. Compare thread | |
16528 | pointers instead of inferior_ptid. | |
16529 | (info_program_command): Adjust to pass down target. | |
16530 | (attach_command): Mark target's 'thread_executing' flag. | |
16531 | (stop_current_target_threads_ns): New, factored out from ... | |
16532 | (interrupt_target_1): ... this. Switch inferior before making | |
16533 | target calls. | |
16534 | * inferior-iter.h | |
16535 | (struct all_inferiors_iterator, struct all_inferiors_range) | |
16536 | (struct all_inferiors_safe_range) | |
16537 | (struct all_non_exited_inferiors_range): Filter on | |
16538 | process_stratum_target too. Remove explicit. | |
16539 | * inferior.c (inferior::inferior): Push dummy target on target | |
16540 | stack. | |
16541 | (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors): | |
16542 | Add process_stratum_target parameter, and pass it down. | |
16543 | (have_live_inferiors): Adjust. | |
16544 | (switch_to_inferior_and_push_target): New. | |
16545 | (add_inferior_command, clone_inferior_command): Handle | |
16546 | "-no-connection" parameter. Use | |
16547 | switch_to_inferior_and_push_target. | |
16548 | (_initialize_inferior): Mention "-no-connection" option in | |
16549 | the help of "add-inferior" and "clone-inferior" commands. | |
16550 | * inferior.h: Include "process-stratum-target.h". | |
16551 | (interrupt_target_1): Use bool. | |
16552 | (struct inferior) <push_target, unpush_target, target_is_pushed, | |
16553 | find_target_beneath, top_target, process_target, target_at, | |
16554 | m_stack>: New. | |
16555 | (discard_all_inferiors): Delete. | |
16556 | (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors) | |
16557 | (all_inferiors, all_non_exited_inferiors): Add | |
16558 | process_stratum_target parameter. | |
16559 | * infrun.c: Include "gdb_select.h" and <unordered_map>. | |
16560 | (target_last_proc_target): New global. | |
16561 | (follow_fork_inferior): Push target on new inferior. Pass target | |
16562 | to add_thread_silent. Call exec_on_vfork. Handle target's | |
16563 | reference count. | |
16564 | (follow_fork): Adjust get_last_target_status call. Also consider | |
16565 | target. | |
16566 | (follow_exec): Push target on new inferior. | |
16567 | (struct execution_control_state) <target>: New field. | |
16568 | (user_visible_resume_target): New. | |
16569 | (do_target_resume): Call target_async. | |
16570 | (resume_1): Set target's threads_executing flag. Consider resume | |
16571 | target. | |
16572 | (commit_resume_all_targets): New. | |
16573 | (proceed): Also consider resume target. Skip threads of inferiors | |
16574 | with no execution. Commit resumtion in all targets. | |
16575 | (start_remote): Pass current inferior to wait_for_inferior. | |
16576 | (infrun_thread_stop_requested): Consider target as well. Pass | |
16577 | thread_info pointer to clear_inline_frame_state instead of ptid. | |
16578 | (infrun_thread_thread_exit): Consider target as well. | |
16579 | (random_pending_event_thread): New inferior parameter. Use it. | |
16580 | (do_target_wait): Rename to ... | |
16581 | (do_target_wait_1): ... this. Add inferior parameter, and pass it | |
16582 | down. | |
16583 | (threads_are_resumed_pending_p, do_target_wait): New. | |
16584 | (prepare_for_detach): Adjust calls. | |
16585 | (wait_for_inferior): New inferior parameter. Handle it. Use | |
16586 | do_target_wait_1 instead of do_target_wait. | |
16587 | (fetch_inferior_event): Adjust. Switch to representative | |
16588 | inferior. Pass target down. | |
16589 | (set_last_target_status): Add process_stratum_target parameter. | |
16590 | Save target in global. | |
16591 | (get_last_target_status): Add process_stratum_target parameter and | |
16592 | handle it. | |
16593 | (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'. | |
16594 | (context_switch): Check inferior_ptid == null_ptid before calling | |
16595 | inferior_thread(). | |
16596 | (get_inferior_stop_soon): Pass down target. | |
16597 | (wait_one): Rename to ... | |
16598 | (poll_one_curr_target): ... this. | |
16599 | (struct wait_one_event): New. | |
16600 | (wait_one): New. | |
16601 | (stop_all_threads): Adjust. | |
16602 | (handle_no_resumed, handle_inferior_event): Adjust to consider the | |
16603 | event's target. | |
16604 | (switch_back_to_stepped_thread): Also consider target. | |
16605 | (print_stop_event): Update. | |
16606 | (normal_stop): Update. Also consider the resume target. | |
16607 | * infrun.h (wait_for_inferior): Remove declaration. | |
16608 | (user_visible_resume_target): New declaration. | |
16609 | (get_last_target_status, set_last_target_status): New | |
16610 | process_stratum_target parameter. | |
16611 | * inline-frame.c (clear_inline_frame_state(ptid_t)): Add | |
16612 | process_stratum_target parameter, and use it. | |
16613 | (clear_inline_frame_state (thread_info*)): New. | |
16614 | * inline-frame.c (clear_inline_frame_state(ptid_t)): Add | |
16615 | process_stratum_target parameter. | |
16616 | (clear_inline_frame_state (thread_info*)): Declare. | |
16617 | * linux-fork.c (delete_checkpoint_command): Pass target down to | |
16618 | find_thread_ptid. | |
16619 | (checkpoint_command): Adjust. | |
16620 | * linux-nat.c (linux_nat_target::follow_fork): Switch to thread | |
16621 | instead of just tweaking inferior_ptid. | |
16622 | (linux_nat_switch_fork): Pass target down to thread_change_ptid. | |
16623 | (exit_lwp): Pass target down to find_thread_ptid. | |
16624 | (attach_proc_task_lwp_callback): Pass target down to | |
16625 | add_thread/set_running/set_executing. | |
16626 | (linux_nat_target::attach): Pass target down to | |
16627 | thread_change_ptid. | |
16628 | (get_detach_signal): Pass target down to find_thread_ptid. | |
16629 | Consider last target status's target. | |
16630 | (linux_resume_one_lwp_throw, resume_lwp) | |
16631 | (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp) | |
16632 | (stop_wait_callback, save_stop_reason, linux_nat_filter_event) | |
16633 | (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down. | |
16634 | (linux_nat_target::async_wait_fd): New. | |
16635 | (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass | |
16636 | target down. | |
16637 | * linux-nat.h (linux_nat_target::async_wait_fd): Declare. | |
16638 | * linux-tdep.c (get_thread_arch_regcache): Pass target down. | |
16639 | * linux-thread-db.c (struct thread_db_info::process_target): New | |
16640 | field. | |
16641 | (add_thread_db_info): Save target. | |
16642 | (get_thread_db_info): New process_stratum_target parameter. Also | |
16643 | match target. | |
16644 | (delete_thread_db_info): New process_stratum_target parameter. | |
16645 | Also match target. | |
16646 | (thread_from_lwp): Adjust to pass down target. | |
16647 | (thread_db_notice_clone): Pass down target. | |
16648 | (check_thread_db_callback): Pass down target. | |
16649 | (try_thread_db_load_1): Always push the thread_db target. | |
16650 | (try_thread_db_load, record_thread): Pass target down. | |
16651 | (thread_db_target::detach): Pass target down. Always unpush the | |
16652 | thread_db target. | |
16653 | (thread_db_target::wait, thread_db_target::mourn_inferior): Pass | |
16654 | target down. Always unpush the thread_db target. | |
16655 | (find_new_threads_callback, thread_db_find_new_threads_2) | |
16656 | (thread_db_target::update_thread_list): Pass target down. | |
16657 | (thread_db_target::pid_to_str): Pass current inferior down. | |
16658 | (thread_db_target::get_thread_local_address): Pass target down. | |
16659 | (thread_db_target::resume, maintenance_check_libthread_db): Pass | |
16660 | target down. | |
16661 | * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust. | |
16662 | * procfs.c (procfs_target::procfs_init_inferior): Declare. | |
16663 | (proc_set_current_signal, do_attach, procfs_target::wait): Adjust. | |
16664 | (procfs_init_inferior): Rename to ... | |
16665 | (procfs_target::procfs_init_inferior): ... this and adjust. | |
16666 | (procfs_target::create_inferior, procfs_notice_thread) | |
16667 | (procfs_do_thread_registers): Adjust. | |
16668 | * ppc-fbsd-tdep.c: Include "inferior.h". | |
16669 | (ppcfbsd_get_thread_local_address): Pass down target. | |
16670 | * proc-service.c (ps_xfer_memory): Switch current inferior and | |
16671 | program space as well. | |
16672 | (get_ps_regcache): Pass target down. | |
16673 | * process-stratum-target.c | |
16674 | (process_stratum_target::thread_address_space) | |
16675 | (process_stratum_target::thread_architecture): Pass target down. | |
16676 | * process-stratum-target.h | |
16677 | (process_stratum_target::threads_executing): New field. | |
16678 | (as_process_stratum_target): New. | |
16679 | * ravenscar-thread.c | |
16680 | (ravenscar_thread_target::update_inferior_ptid): Pass target down. | |
16681 | (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target | |
16682 | down. | |
16683 | * record-btrace.c (record_btrace_target::info_record): Adjust. | |
16684 | (record_btrace_target::record_method) | |
16685 | (record_btrace_target::record_is_replaying) | |
16686 | (record_btrace_target::fetch_registers) | |
16687 | (get_thread_current_frame_id, record_btrace_target::resume) | |
16688 | (record_btrace_target::wait, record_btrace_target::stop): Pass | |
16689 | target down. | |
16690 | * record-full.c (record_full_wait_1): Switch to event thread. | |
16691 | Pass target down. | |
16692 | * regcache.c (regcache::regcache) | |
16693 | (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add | |
16694 | process_stratum_target parameter and handle it. | |
16695 | (current_thread_target): New global. | |
16696 | (get_thread_regcache): Add process_stratum_target parameter and | |
16697 | handle it. Switch inferior before calling target method. | |
16698 | (get_thread_regcache): Pass target down. | |
16699 | (get_thread_regcache_for_ptid): Pass target down. | |
16700 | (registers_changed_ptid): Add process_stratum_target parameter and | |
16701 | handle it. | |
16702 | (registers_changed_thread, registers_changed): Pass target down. | |
16703 | (test_get_thread_arch_aspace_regcache): New. | |
16704 | (current_regcache_test): Define a couple local test_target_ops | |
16705 | instances and use them for testing. | |
16706 | (readwrite_regcache): Pass process_stratum_target parameter. | |
16707 | (cooked_read_test, cooked_write_test): Pass mock_target down. | |
16708 | * regcache.h (get_thread_regcache, get_thread_arch_regcache) | |
16709 | (get_thread_arch_aspace_regcache): Add process_stratum_target | |
16710 | parameter. | |
16711 | (regcache::target): New method. | |
16712 | (regcache::regcache, regcache::get_thread_arch_aspace_regcache) | |
16713 | (regcache::registers_changed_ptid): Add process_stratum_target | |
16714 | parameter. | |
16715 | (regcache::m_target): New field. | |
16716 | (registers_changed_ptid): Add process_stratum_target parameter. | |
16717 | * remote.c (remote_state::supports_vCont_probed): New field. | |
16718 | (remote_target::async_wait_fd): New method. | |
16719 | (remote_unpush_and_throw): Add remote_target parameter. | |
16720 | (get_current_remote_target): Adjust. | |
16721 | (remote_target::remote_add_inferior): Push target. | |
16722 | (remote_target::remote_add_thread) | |
16723 | (remote_target::remote_notice_new_inferior) | |
16724 | (get_remote_thread_info): Pass target down. | |
16725 | (remote_target::update_thread_list): Skip threads of inferiors | |
16726 | bound to other targets. (remote_target::close): Don't discard | |
16727 | inferiors. (remote_target::add_current_inferior_and_thread) | |
16728 | (remote_target::process_initial_stop_replies) | |
16729 | (remote_target::start_remote) | |
16730 | (remote_target::remote_serial_quit_handler): Pass down target. | |
16731 | (remote_target::remote_unpush_target): New remote_target | |
16732 | parameter. Unpush the target from all inferiors. | |
16733 | (remote_target::remote_unpush_and_throw): New remote_target | |
16734 | parameter. Pass it down. | |
16735 | (remote_target::open_1): Check whether the current inferior has | |
16736 | execution instead of checking whether any inferior is live. Pass | |
16737 | target down. | |
16738 | (remote_target::remote_detach_1): Pass down target. Use | |
16739 | remote_unpush_target. | |
16740 | (extended_remote_target::attach): Pass down target. | |
16741 | (remote_target::remote_vcont_probe): Set supports_vCont_probed. | |
16742 | (remote_target::append_resumption): Pass down target. | |
16743 | (remote_target::append_pending_thread_resumptions) | |
16744 | (remote_target::remote_resume_with_hc, remote_target::resume) | |
16745 | (remote_target::commit_resume): Pass down target. | |
16746 | (remote_target::remote_stop_ns): Check supports_vCont_probed. | |
16747 | (remote_target::interrupt_query) | |
16748 | (remote_target::remove_new_fork_children) | |
16749 | (remote_target::check_pending_events_prevent_wildcard_vcont) | |
16750 | (remote_target::remote_parse_stop_reply) | |
16751 | (remote_target::process_stop_reply): Pass down target. | |
16752 | (first_remote_resumed_thread): New remote_target parameter. Pass | |
16753 | it down. | |
16754 | (remote_target::wait_as): Pass down target. | |
16755 | (unpush_and_perror): New remote_target parameter. Pass it down. | |
16756 | (remote_target::readchar, remote_target::remote_serial_write) | |
16757 | (remote_target::getpkt_or_notif_sane_1) | |
16758 | (remote_target::kill_new_fork_children, remote_target::kill): Pass | |
16759 | down target. | |
16760 | (remote_target::mourn_inferior): Pass down target. Use | |
16761 | remote_unpush_target. | |
16762 | (remote_target::core_of_thread) | |
16763 | (remote_target::remote_btrace_maybe_reopen): Pass down target. | |
16764 | (remote_target::pid_to_exec_file) | |
16765 | (remote_target::thread_handle_to_thread_info): Pass down target. | |
16766 | (remote_target::async_wait_fd): New. | |
16767 | * riscv-fbsd-tdep.c: Include "inferior.h". | |
16768 | (riscv_fbsd_get_thread_local_address): Pass down target. | |
16769 | * sol2-tdep.c (sol2_core_pid_to_str): Pass down target. | |
16770 | * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs) | |
16771 | (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback): | |
16772 | Adjust. | |
16773 | * solib-spu.c (spu_skip_standalone_loader): Pass down target. | |
16774 | * solib-svr4.c (enable_break): Pass down target. | |
16775 | * spu-multiarch.c (parse_spufs_run): Pass down target. | |
16776 | * spu-tdep.c (spu2ppu_sniffer): Pass down target. | |
16777 | * target-delegates.c: Regenerate. | |
16778 | * target.c (g_target_stack): Delete. | |
16779 | (current_top_target): Return the current inferior's top target. | |
16780 | (target_has_execution_1): Refer to the passed-in inferior's top | |
16781 | target. | |
16782 | (target_supports_terminal_ours): Check whether the initial | |
16783 | inferior was already created. | |
16784 | (decref_target): New. | |
16785 | (target_stack::push): Incref/decref the target. | |
16786 | (push_target, push_target, unpush_target): Adjust. | |
16787 | (target_stack::unpush): Defref target. | |
16788 | (target_is_pushed): Return bool. Adjust to refer to the current | |
16789 | inferior's target stack. | |
16790 | (dispose_inferior): Delete, and inline parts ... | |
16791 | (target_preopen): ... here. Only dispose of the current inferior. | |
16792 | (target_detach): Hold strong target reference while detaching. | |
16793 | Pass target down. | |
16794 | (target_thread_name): Add assertion. | |
16795 | (target_resume): Pass down target. | |
16796 | (target_ops::beneath, find_target_at): Adjust to refer to the | |
16797 | current inferior's target stack. | |
16798 | (get_dummy_target): New. | |
16799 | (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that | |
16800 | has a thread running. | |
16801 | (initialize_targets): Rename to ... | |
16802 | (_initialize_target): ... this. | |
16803 | * target.h: Include "gdbsupport/refcounted-object.h". | |
16804 | (struct target_ops): Inherit refcounted_object. | |
16805 | (target_ops::shortname, target_ops::longname): Make const. | |
16806 | (target_ops::async_wait_fd): New method. | |
16807 | (decref_target): Declare. | |
16808 | (struct target_ops_ref_policy): New. | |
16809 | (target_ops_ref): New typedef. | |
16810 | (get_dummy_target): Declare function. | |
16811 | (target_is_pushed): Return bool. | |
16812 | * thread-iter.c (all_matching_threads_iterator::m_inf_matches) | |
16813 | (all_matching_threads_iterator::all_matching_threads_iterator): | |
16814 | Handle filter target. | |
16815 | * thread-iter.h (struct all_matching_threads_iterator, struct | |
16816 | all_matching_threads_range, class all_non_exited_threads_range): | |
16817 | Filter by target too. Remove explicit. | |
16818 | * thread.c (threads_executing): Delete. | |
16819 | (inferior_thread): Pass down current inferior. | |
16820 | (clear_thread_inferior_resources): Pass down thread pointer | |
16821 | instead of ptid_t. | |
16822 | (add_thread_silent, add_thread_with_info, add_thread): Add | |
16823 | process_stratum_target parameter. Use it for thread and inferior | |
16824 | searches. | |
16825 | (is_current_thread): New. | |
16826 | (thread_info::deletable): Use it. | |
16827 | (find_thread_ptid, thread_count, in_thread_list) | |
16828 | (thread_change_ptid, set_resumed, set_running): New | |
16829 | process_stratum_target parameter. Pass it down. | |
16830 | (set_executing): New process_stratum_target parameter. Pass it | |
16831 | down. Adjust reference to 'threads_executing'. | |
16832 | (threads_are_executing): New process_stratum_target parameter. | |
16833 | Adjust reference to 'threads_executing'. | |
16834 | (set_stop_requested, finish_thread_state): New | |
16835 | process_stratum_target parameter. Pass it down. | |
16836 | (switch_to_thread): Also match inferior. | |
16837 | (switch_to_thread): New process_stratum_target parameter. Pass it | |
16838 | down. | |
16839 | (update_threads_executing): Reimplement. | |
16840 | * top.c (quit_force): Pop targets from all inferior. | |
16841 | (gdb_init): Don't call initialize_targets. | |
16842 | * windows-nat.c (windows_nat_target) <get_windows_debug_event>: | |
16843 | Declare. | |
16844 | (windows_add_thread, windows_delete_thread): Adjust. | |
16845 | (get_windows_debug_event): Rename to ... | |
16846 | (windows_nat_target::get_windows_debug_event): ... this. Adjust. | |
16847 | * tracefile-tfile.c (tfile_target_open): Pass down target. | |
16848 | * gdbsupport/common-gdbthread.h (struct process_stratum_target): | |
16849 | Forward declare. | |
16850 | (switch_to_thread): Add process_stratum_target parameter. | |
16851 | * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target | |
16852 | parameter. Use it. | |
16853 | (mi_on_resume): Pass target down. | |
16854 | * nat/fork-inferior.c (startup_inferior): Add | |
16855 | process_stratum_target parameter. Pass it down. | |
16856 | * nat/fork-inferior.h (startup_inferior): Add | |
16857 | process_stratum_target parameter. | |
16858 | * python/py-threadevent.c (py_get_event_thread): Pass target down. | |
16859 | ||
75c6c844 PA |
16860 | 2020-01-10 Pedro Alves <palves@redhat.com> |
16861 | ||
16862 | * remote.c (remote_target::start_remote): Don't set inferior_ptid | |
16863 | directly. Instead find the first thread in the thread list and | |
16864 | use switch_to_thread. | |
16865 | ||
78f2c40a PA |
16866 | 2020-01-10 Pedro Alves <palves@redhat.com> |
16867 | ||
16868 | * remote.c (remote_target::remote_add_inferior): Don't bind a | |
16869 | process to the current inferior if the current inferior is already | |
16870 | bound to a process. | |
16871 | ||
e7af6c70 TBA |
16872 | 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
16873 | Pedro Alves <palves@redhat.com> | |
16874 | ||
16875 | * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>: | |
16876 | If no process is specified, return null_ptid instead of | |
16877 | inferior_ptid. | |
16878 | (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED / | |
16879 | TARGET_WAITKIND_SIGNALLED with no pid. | |
16880 | ||
31ba933e PA |
16881 | 2020-01-10 Pedro Alves <palves@redhat.com> |
16882 | ||
16883 | * remote.c (first_remote_resumed_thread): New. | |
16884 | (remote_target::wait_as): Use it as default event_ptid instead of | |
16885 | inferior_ptid. | |
16886 | ||
735fc2ca PA |
16887 | 2020-01-10 Pedro Alves <palves@redhat.com> |
16888 | ||
16889 | * infrun.c (handle_no_resumed): Use all_non_exited_inferiors. | |
16890 | ||
c17e02e1 PA |
16891 | 2020-01-10 Pedro Alves <palves@redhat.com> |
16892 | ||
16893 | * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is | |
16894 | not -1. | |
16895 | ||
ab1ddbcf PA |
16896 | 2020-01-10 Pedro Alves <palves@redhat.com> |
16897 | ||
16898 | * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a | |
16899 | ptid to get_last_target_status. | |
16900 | * break-catch-syscall.c (print_it_catch_syscall): Don't pass a | |
16901 | ptid to get_last_target_status. | |
16902 | * infcmd.c (continue_command): Don't pass a target_waitstatus to | |
16903 | get_last_target_status. | |
16904 | (info_program_command): Don't pass a target_waitstatus to | |
16905 | get_last_target_status. | |
16906 | * infrun.c (init_wait_for_inferior): Use | |
16907 | nullify_last_target_wait_ptid. | |
16908 | (get_last_target_status): Handle nullptr arguments. | |
16909 | (nullify_last_target_wait_ptid): Clear target_last_waitstatus. | |
16910 | (print_stop_event): Don't pass a ptid to get_last_target_status. | |
16911 | (normal_stop): Don't pass a ptid to get_last_target_status. | |
16912 | * infrun.h (get_last_target_status, set_last_target_status): Move | |
16913 | comments here and update. | |
16914 | (nullify_last_target_wait_ptid): Declare. | |
16915 | * linux-fork.c (fork_load_infrun_state): Remove local extern | |
16916 | declaration of nullify_last_target_wait_ptid. | |
16917 | * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus | |
16918 | to get_last_target_status. | |
16919 | ||
f3f8ece4 PA |
16920 | 2020-01-10 Pedro Alves <palves@redhat.com> |
16921 | ||
16922 | * gdbthread.h (scoped_restore_current_thread) | |
16923 | <dont_restore, restore, m_dont_restore>: Declare. | |
16924 | * thread.c (thread_alive): Add assertion. Return bool. | |
16925 | (switch_to_thread_if_alive): New. | |
16926 | (prune_threads): Switch inferior/thread. | |
16927 | (print_thread_info_1): Switch thread before calling target methods. | |
16928 | (scoped_restore_current_thread::restore): New, factored out from | |
16929 | ... | |
16930 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
16931 | ... this. | |
16932 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
16933 | Add assertion. | |
16934 | (thread_apply_all_command, thread_select): Use | |
16935 | switch_to_thread_if_alive. | |
16936 | * infrun.c (proceed, restart_threads, handle_signal_stop) | |
16937 | (switch_back_to_stepped_thread): Switch current thread before | |
16938 | calling target methods. | |
16939 | ||
db2d40f7 PA |
16940 | 2020-01-10 Pedro Alves <palves@redhat.com> |
16941 | ||
16942 | * inferior.c (switch_to_inferior_no_thread): New function, | |
16943 | factored out from ... | |
16944 | (inferior_command): ... here. | |
16945 | * inferior.h (switch_to_inferior_no_thread): Declare. | |
16946 | * mi/mi-main.c (run_one_inferior): Use | |
16947 | switch_to_inferior_no_thread. | |
16948 | ||
bd420a2d PA |
16949 | 2020-01-10 Pedro Alves <palves@redhat.com> |
16950 | ||
16951 | * infcmd.c (kill_command): Remove dead code. | |
16952 | ||
ddf5db90 PA |
16953 | 2020-01-10 Pedro Alves <palves@redhat.com> |
16954 | ||
16955 | * remote.c (remote_target::mourn_inferior): No longer check | |
16956 | whether the target is running. | |
16957 | ||
5018ce90 PA |
16958 | 2020-01-10 Pedro Alves <palves@redhat.com> |
16959 | ||
16960 | * corelow.c (core_target::has_execution): Change parameter type to | |
16961 | inferior pointer. | |
16962 | * inferior.c (number_of_live_inferiors): Use | |
16963 | inferior::has_execution instead of target_has_execution_1. | |
16964 | * inferior.h (inferior::has_execution): New. | |
16965 | * linux-thread-db.c (thread_db_target::update_thread_list): Use | |
16966 | inferior::has_execution instead of target_has_execution_1. | |
16967 | * process-stratum-target.c | |
16968 | (process_stratum_target::has_execution): Change parameter type to | |
16969 | inferior pointer. Check the inferior's PID instead of | |
16970 | inferior_ptid. | |
16971 | * process-stratum-target.h | |
16972 | (process_stratum_target::has_execution): Change parameter type to | |
16973 | inferior pointer. | |
16974 | * record-full.c (record_full_core_target::has_execution): Change | |
16975 | parameter type to inferior pointer. | |
16976 | * target.c (target_has_execution_1): Change parameter type to | |
16977 | inferior pointer. | |
16978 | (target_has_execution_current): Adjust. | |
16979 | * target.h (target_ops::has_execution): Change parameter type to | |
16980 | inferior pointer. | |
16981 | (target_has_execution_1): Change parameter type to inferior | |
16982 | pointer. Change return type to bool. | |
16983 | * tracefile.h (tracefile_target::has_execution): Change parameter | |
16984 | type to inferior pointer. | |
16985 | ||
74375d18 PA |
16986 | 2020-01-10 Pedro Alves <palves@redhat.com> |
16987 | ||
16988 | * exceptions.c (print_flush): Remove current_top_target() check. | |
16989 | ||
acdf84a6 PA |
16990 | 2020-01-10 Pedro Alves <palves@redhat.com> |
16991 | ||
16992 | * remote.c (show_remote_exec_file): Show the current inferior's | |
16993 | exec-file instead of the command variable's value. | |
16994 | ||
ec506636 PA |
16995 | 2020-01-10 Pedro Alves <palves@redhat.com> |
16996 | ||
16997 | * record-full.c (record_full_resume_ptid): New global. | |
16998 | (record_full_target::resume): Set it. | |
16999 | (record_full_wait_1): Use record_full_resume_ptid instead of | |
17000 | inferior_ptid. | |
17001 | ||
873657b9 PA |
17002 | 2020-01-10 Pedro Alves <palves@redhat.com> |
17003 | ||
17004 | * gdbthread.h (scoped_restore_current_thread) | |
17005 | <dont_restore, restore, m_dont_restore>: Declare. | |
17006 | * thread.c (thread_alive): Add assertion. Return bool. | |
17007 | (switch_to_thread_if_alive): New. | |
17008 | (prune_threads): Switch inferior/thread. | |
17009 | (print_thread_info_1): Switch thread before calling target methods. | |
17010 | (scoped_restore_current_thread::restore): New, factored out from | |
17011 | ... | |
17012 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
17013 | ... this. | |
17014 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
17015 | Add assertion. | |
17016 | (thread_apply_all_command, thread_select): Use | |
17017 | switch_to_thread_if_alive. | |
17018 | ||
7f0ae84c GB |
17019 | 2020-01-10 George Barrett <bob@bob131.so> |
17020 | ||
17021 | * stap-probe.c (stap_modify_semaphore): Don't check for null | |
17022 | semaphores. | |
17023 | (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check | |
17024 | for null semaphores. | |
17025 | ||
f5a7c406 AB |
17026 | 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
17027 | ||
17028 | * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update | |
17029 | all source windows, and maintain horizontal scroll status while | |
17030 | doing so. | |
17031 | ||
9ae6bf64 TT |
17032 | 2020-01-09 Tom Tromey <tom@tromey.com> |
17033 | ||
17034 | PR tui/18932: | |
17035 | * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call | |
17036 | update_source_window, not print_source_lines. | |
17037 | ||
b2efe70c AB |
17038 | 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
17039 | ||
17040 | * tui/tui.c (tui_enable): Register tui hooks after calling | |
17041 | tui_display_main. | |
17042 | ||
5f23a082 CB |
17043 | 2020-01-09 Christian Biesinger <cbiesinger@google.com> |
17044 | ||
17045 | * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW. | |
17046 | ||
3061113b SM |
17047 | 2020-01-08 Simon Marchi <simon.marchi@efficios.com> |
17048 | ||
17049 | * thread.c (print_thread_info_1): Fix indentation. | |
17050 | ||
57d75002 CB |
17051 | 2020-01-09 Christian Biesinger <cbiesinger@google.com> |
17052 | ||
17053 | * symtab.c (general_symbol_info::compute_and_set_names): Move the | |
17054 | unique_xmalloc_ptr outside the if to always free the demangled name. | |
17055 | ||
6a053cb1 TT |
17056 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
17057 | ||
17058 | * xcoffread.c (enter_line_range, read_xcoff_symtab) | |
17059 | (process_xcoff_symbol, xcoff_symfile_offsets): Update. | |
17060 | * symtab.h (MSYMBOL_VALUE_ADDRESS): Update. | |
17061 | (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS): | |
17062 | Remove. | |
17063 | (section_offsets): New typedef. | |
17064 | * symtab.c (fixup_section, get_msymbol_address): Update. | |
17065 | * symmisc.c (dump_msymbols): Update. | |
17066 | * symfile.h (relative_addr_info_to_section_offsets) | |
17067 | (symfile_map_offsets_to_segments): Update. | |
17068 | * symfile.c (build_section_addr_info_from_objfile) | |
17069 | (init_objfile_sect_indices): Update. | |
17070 | (struct place_section_arg): Change type of "offsets". | |
17071 | (place_section): Update. | |
17072 | (relative_addr_info_to_section_offsets): Change type of | |
17073 | "section_offsets". Remove "num_sections" parameter. | |
17074 | (default_symfile_offsets, syms_from_objfile_1) | |
17075 | (set_objfile_default_section_offset): Update. | |
17076 | (reread_symbols): No need to preserve section offsets by hand. | |
17077 | (symfile_map_offsets_to_segments): Change type of "offsets". | |
17078 | * stap-probe.c (relocate_address): Update. | |
17079 | * stabsread.h (process_one_symbol): Update. | |
17080 | * solib-target.c (struct lm_info_target) <offsets>: Change type. | |
17081 | (solib_target_relocate_section_addresses): Update. | |
17082 | * solib-svr4.c (enable_break, svr4_relocate_main_executable): | |
17083 | Update. | |
17084 | * solib-frv.c (frv_relocate_main_executable): Update. | |
17085 | * solib-dsbt.c (dsbt_relocate_main_executable): Update. | |
17086 | * solib-aix.c (solib_aix_get_section_offsets): Change return | |
17087 | type. | |
17088 | (solib_aix_solib_create_inferior_hook): Update. | |
17089 | * remote.c (remote_target::get_offsets): Update. | |
17090 | * psymtab.c (find_pc_sect_psymtab): Update. | |
17091 | * psympriv.h (struct partial_symbol) <address, text_low, | |
17092 | text_high>: Update. | |
17093 | * objfiles.h (obj_section_offset): Update. | |
17094 | (struct objfile) <section_offsets>: Change type. | |
17095 | <num_sections>: Remove. | |
17096 | (objfile_relocate): Update. | |
17097 | * objfiles.c (entry_point_address_query): Update | |
17098 | (relocate_one_symbol): Change type of "section_offsets". | |
17099 | (objfile_relocate1, objfile_relocate1): Change type of | |
17100 | "new_offsets". | |
17101 | (objfile_rebase1): Update. | |
17102 | * mipsread.c (mipscoff_symfile_read): Update. | |
17103 | (read_alphacoff_dynamic_symtab): Remove "section_offsets" | |
17104 | parameter. | |
17105 | * mdebugread.c (parse_symbol): Change type of "section_offsets". | |
17106 | (parse_external, psymtab_to_symtab_1): Update. | |
17107 | * machoread.c (macho_symfile_offsets): Update. | |
17108 | * ia64-tdep.c (ia64_find_unwind_table): Update. | |
17109 | * hppa-tdep.c (read_unwind_info): Update. | |
17110 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update. | |
17111 | * dwarf2read.c (create_addrmap_from_index) | |
17112 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) | |
17113 | (process_psymtab_comp_unit_reader, add_partial_symbol) | |
17114 | (add_partial_subprogram, process_full_comp_unit) | |
17115 | (read_file_scope, read_func_scope, read_lexical_block_scope) | |
17116 | (read_call_site_scope, dwarf2_rnglists_process) | |
17117 | (dwarf2_ranges_process, dwarf2_ranges_read) | |
17118 | (dwarf_decode_lines_1, var_decode_location, new_symbol) | |
17119 | (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset): | |
17120 | Update. | |
17121 | * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde): | |
17122 | Update. | |
17123 | * dtrace-probe.c (dtrace_probe::get_relocated_address): Update. | |
17124 | * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update. | |
17125 | (process_one_symbol): Change type of "section_offsets". | |
17126 | * ctfread.c (get_objfile_text_range): Update. | |
17127 | * coffread.c (coff_symtab_read, enter_linenos) | |
17128 | (process_coff_symbol): Update. | |
17129 | * coff-pe-read.c (add_pe_forwarded_sym): Update. | |
17130 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update. | |
17131 | ||
456e800a TT |
17132 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
17133 | ||
17134 | * dwarf2read.c (parse_macro_definition): Use std::string. | |
17135 | (parse_macro_definition): Likewise. | |
17136 | ||
6dfa2fc2 TT |
17137 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
17138 | ||
17139 | * dwarf2read.c (abbrev_table_read_table): Use std::vector. | |
17140 | (ATTR_ALLOC_CHUNK): Remove. | |
17141 | ||
421d1616 TT |
17142 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
17143 | ||
17144 | * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr. | |
17145 | ||
43816ebc TT |
17146 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
17147 | ||
17148 | * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr. | |
17149 | (dwarf2_compute_name, open_dwo_file): Likewise. | |
17150 | (process_enumeration_scope): Use std::vector. | |
17151 | (guess_partial_die_structure_name): Use unique_xmalloc_ptr. | |
17152 | (partial_die_info::fixup, dwarf2_start_subfile) | |
17153 | (guess_full_die_structure_name, dwarf2_name): Likewise. | |
17154 | (determine_prefix): Update. | |
17155 | (guess_full_die_structure_name): Make return type const. | |
17156 | (partial_die_full_name): Return unique_xmalloc_ptr. | |
17157 | (DW_FIELD_ALLOC_CHUNK): Remove. | |
17158 | ||
4212d509 TT |
17159 | 2020-01-07 Tom Tromey <tromey@adacore.com> |
17160 | ||
17161 | PR build/24937: | |
17162 | * stap-probe.c (class stap_static_probe_ops): Add constructor. | |
17163 | ||
06a6207a JT |
17164 | 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk> |
17165 | ||
17166 | * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build. | |
17167 | ||
153d79c4 AB |
17168 | 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com> |
17169 | ||
17170 | * stack.c (print_frame_info): Move disassemble_next_line code | |
17171 | inside source_print block. | |
17172 | ||
66182876 EZ |
17173 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
17174 | ||
17175 | * gdbsupport/gdb_wait.c: Include <signal.h> instead of | |
17176 | gdb/signals.h, as we are now using native signal symbols. | |
17177 | ||
cbfa8581 SV |
17178 | 2020-01-06 Shahab Vahedi <shahab@synopsys.com> |
17179 | ||
17180 | * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid | |
17181 | overflow by an early check of content vs threshold. | |
aac66a4c | 17182 | * tui/tui-source.c (tui_source_window::line_is_displayed): |
cbfa8581 SV |
17183 | Likewise. |
17184 | ||
3f602821 EZ |
17185 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
17186 | ||
17187 | * NEWS: Mention the recent fix of $_exitsignal on MS-Windows. | |
17188 | ||
a08c904d JT |
17189 | 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk> |
17190 | ||
17191 | * coff-pe-read.c (read_pe_exported_syms): Don't try to read the | |
17192 | export table if no section contains it's RVA. | |
17193 | ||
89a65580 EZ |
17194 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
17195 | ||
17196 | * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT. | |
17197 | ||
8b7fcda2 HD |
17198 | 2020-01-06 Hannes Domani <ssbssa@yahoo.de> |
17199 | ||
17200 | * source.c (print_source_lines_base): Set last_line_listed. | |
17201 | ||
a61b4f69 SV |
17202 | 2020-01-06 Shahab Vahedi <shahab@synopsys.com> |
17203 | ||
17204 | * tui/tui-disasm.c: Remove trailing spaces. | |
17205 | ||
559e7e50 EZ |
17206 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
17207 | Pedro Alves <palves@redhat.com> | |
17208 | ||
17209 | * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c. | |
17210 | * windows-tdep.c: New enumeration of WINDOWS_SIG* signals. | |
17211 | (windows_gdb_signal_to_target): New function, uses the above | |
17212 | enumeration to convert GDB internal signal codes to equivalent | |
17213 | Windows codes. | |
17214 | (windows_init_abi): Call set_gdbarch_gdb_signal_to_target. | |
17215 | * windows-nat.c: Include "gdb_wait.h". | |
17216 | (get_windows_debug_event): Extract the fatal exception from the | |
17217 | exit status and convert to the equivalent Posix signal number. | |
17218 | * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the | |
17219 | possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN. | |
17220 | * gdbsupport/gdb_wait.c: New file, implements | |
17221 | windows_status_to_termsig. | |
17222 | * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS) | |
17223 | (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW. | |
17224 | ||
f2302a34 AB |
17225 | 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com> |
17226 | ||
17227 | * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not | |
17228 | show_layout. | |
17229 | ||
6a5206eb LM |
17230 | 2020-01-05 Luis Machado <luis.machado@linaro.org> |
17231 | ||
17232 | * aarch64-linux-nat.c | |
17233 | (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64 | |
17234 | and bfd_mach_aarch64. | |
17235 | ||
6ec1d75e PW |
17236 | 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
17237 | ||
17238 | * ui-file.c (stdio_file::can_emit_style_escape) | |
17239 | (tee_file::can_emit_style_escape): Ensure style is used also on | |
17240 | gdb_stderr when gdb_stderr is a tty supporting styling, similarly | |
17241 | to gdb_stdout. | |
17242 | * main.c (set_gdb_data_directory): Use file style to output the | |
17243 | warning that the given pathname is not a directory. | |
17244 | * top.c (show_history_filename, gdb_safe_append_history) | |
17245 | (show_gdb_datadir): Use file style. | |
17246 | ||
44f81a76 HD |
17247 | 2020-01-03 Hannes Domani <ssbssa@yahoo.de> |
17248 | ||
17249 | * solib-target.c (struct lm_info_target): | |
17250 | Change offsets to be a unique_xmalloc_ptr. | |
17251 | (solib_target_relocate_section_addresses): Update. | |
17252 | ||
25057eb0 HD |
17253 | 2020-01-03 Hannes Domani <ssbssa@yahoo.de> |
17254 | ||
17255 | * windows-nat.c (windows_clear_solib): Free so_list linked list. | |
17256 | ||
6e2118f5 BE |
17257 | 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de> |
17258 | ||
17259 | * MAINTAINERS (Write After Approval): Add myself. | |
17260 | ||
8133c7dc LM |
17261 | 2020-01-02 Luis Machado <luis.machado@linaro.org> |
17262 | ||
17263 | * proc-service.c (get_ps_regcache): Remove reference to obsolete | |
17264 | Cell BE architecture. | |
17265 | * target.h (struct target_ops) <thread_architecture>: Likewise. | |
17266 | ||
48189bec HD |
17267 | 2020-01-01 Hannes Domani <ssbssa@yahoo.de> |
17268 | ||
17269 | * Makefile.in: Use INSTALL_PROGRAM_ENV. | |
17270 | ||
ead1063b HD |
17271 | 2020-01-01 Hannes Domani <ssbssa@yahoo.de> |
17272 | ||
17273 | * MAINTAINERS (Write After Approval): Add myself. | |
17274 | ||
e5d78223 JB |
17275 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
17276 | ||
17277 | * gdbarch.sh: Update copyright year range of generated files. | |
17278 | ||
b811d2c2 JB |
17279 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
17280 | ||
17281 | Update copyright year range in all GDB files. | |
17282 | ||
5f4def5c JB |
17283 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
17284 | ||
17285 | * copyright.py: Convert to Python 3. | |
17286 | ||
51fd4002 JB |
17287 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
17288 | ||
17289 | * copyright.py: Adapt after move of gnulib directory from gdb | |
17290 | directory to toplevel directory. | |
17291 | ||
5fb651f2 JB |
17292 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
17293 | ||
17294 | * copyright.py (main): Exit if run from the wrong directory. | |
17295 | ||
5dd8bf88 JB |
17296 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
17297 | ||
17298 | * top.c (print_gdb_version): Change copyright year to 2020. | |
17299 | ||
9f71dacb | 17300 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
3d34df0a | 17301 | |
9f71dacb | 17302 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019. |
3d34df0a | 17303 | |
9f71dacb | 17304 | For older changes see ChangeLog-2019. |
c906108c SS |
17305 | \f |
17306 | Local Variables: | |
17307 | mode: change-log | |
17308 | left-margin: 8 | |
17309 | fill-column: 74 | |
17310 | version-control: never | |
57da7796 | 17311 | coding: utf-8 |
c906108c | 17312 | End: |