Commit | Line | Data |
---|---|---|
f7efd549 SH |
1 | 2017-12-27 Stafford Horne <shorne@gmail.com> |
2 | ||
3 | * reggroups.c (reggroup_gdbarch_new): New function. | |
4 | (reggroup_find): New function. | |
5 | * reggroups.h (reggroup_gdbarch_new): New function. | |
6 | (reggroup_find): New function. | |
7 | ||
c1166ca9 SH |
8 | 2017-12-27 Stafford Horne <shorne@gmail.com> |
9 | ||
10 | * reggroups.c (reggroups_init): Change to depend only on | |
11 | obstack rather than gdbarch. | |
12 | (reggroup_add): Remove logic for forcing premature init. | |
13 | (_initialize_reggroup): Set `reggroups_data` with | |
14 | gdbarch_data_register_pre_init() rather than | |
15 | gdbarch_data_register_post_init(). | |
16 | ||
b67d92b0 SH |
17 | 2017-12-27 Stafford Horne <shorne@gmail.com> |
18 | ||
19 | * infcmd.c (_initialize_infcmd): Add help for info reg $reggroup | |
20 | and info all-registers $reggroup feature. | |
21 | ||
6e8c24fe SM |
22 | 2017-12-23 Simon Marchi <simon.marchi@polymtl.ca> |
23 | ||
24 | * target-descriptions.c (print_c_tdesc) | |
25 | <printf_field_type_assignment>: Add ATTRIBUTE_PRINTF. | |
26 | ||
a8d2e585 SM |
27 | 2017-12-21 Simon Marchi <simon.marchi@ericsson.com> |
28 | Sergio Durigan Junior <sergiodj@redhat.com> | |
29 | ||
30 | * target-descriptions.c (print_c_tdesc) <visit>: Don't output | |
31 | field_type declaration, use printf_field_type_assignment | |
32 | instead. | |
33 | <printf_field_type_assignment>: New method. | |
34 | * features/aarch64-core.c, features/aarch64-fpu.c | |
35 | features/arc-arcompact.c, features/arc-v2.c, | |
36 | features/arm/arm-with-iwmmxt.c, features/i386/32bit-core.c, | |
37 | features/i386/32bit-mpx.c, features/i386/32bit-sse.c, | |
38 | features/i386/64bit-avx512.c, features/i386/64bit-core.c, | |
39 | features/i386/64bit-mpx.c, features/i386/64bit-sse.c, | |
40 | features/i386/x32-core.c, features/or1k.c, | |
41 | features/rs6000/powerpc-7400.c, | |
42 | features/rs6000/powerpc-altivec32.c, | |
43 | features/rs6000/powerpc-altivec32l.c, | |
44 | features/rs6000/powerpc-altivec64.c, | |
45 | features/rs6000/powerpc-altivec64l.c, | |
46 | features/rs6000/powerpc-cell32l.c, | |
47 | features/rs6000/powerpc-cell64l.c, | |
48 | features/rs6000/powerpc-isa205-altivec32l.c, | |
49 | features/rs6000/powerpc-isa205-altivec64l.c, | |
50 | features/rs6000/powerpc-isa205-vsx32l.c, | |
51 | features/rs6000/powerpc-isa205-vsx64l.c, | |
52 | features/rs6000/powerpc-vsx32.c, | |
53 | features/rs6000/powerpc-vsx32l.c, | |
54 | features/rs6000/powerpc-vsx64.c, | |
55 | features/rs6000/powerpc-vsx64l.c, features/s390-gs-linux64.c, | |
56 | features/s390-tevx-linux64.c, features/s390-vx-linux64.c, | |
57 | features/s390x-gs-linux64.c, features/s390x-tevx-linux64.c, | |
58 | features/s390x-vx-linux64.c: Re-generate. | |
59 | ||
27e9ff87 UB |
60 | 2017-12-20 Uros Bizjak <ubizjak@gmail.com> |
61 | ||
62 | * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Remove | |
63 | write-only assignment to "insn" variable. | |
64 | ||
396d3980 UW |
65 | 2017-12-20 Ulrich Weigand <uweigand@de.ibm.com> |
66 | ||
67 | * spu-tdep.c (spu_gdbarch_init): Set set_gdbarch_significant_addr_bit | |
68 | to 64 bits. | |
69 | (ppc_linux_init_abi): Likewise, if Cell/B.E. is supported. | |
70 | ||
eccab96d JB |
71 | 2017-12-18 Joel Brobecker <brobecker@adacore.com> |
72 | ||
73 | * ada-lang.c (ada_to_fixed_type_1): Rethrow errors with | |
74 | a more detailed exception message when getting an exception | |
75 | while trying to read the value of an XVZ variable. | |
76 | * ada-valprint.c (ada_val_print): Only catch RETURN_MASK_ERROR | |
77 | exceptions. Print an error message when an exception is caught. | |
78 | ||
0e2da9f0 JB |
79 | 2017-12-18 Joel Brobecker <brobecker@adacore.com> |
80 | ||
81 | * ada-lang.c (assign_component): Strip any TYPE_CODE_TYPEDEF | |
82 | layer from lhs' type. | |
83 | (assign_aggregate): Likewise. | |
84 | ||
cb923fcc XR |
85 | 2017-12-18 Xavier Roirand <roirand@adacore.com> |
86 | ||
87 | * ada-lang.c (ada_convert_actual): Change the way actual value | |
88 | are passed to the inferior when the inferior expects a pointer type. | |
89 | ||
38af1824 SH |
90 | 2017-12-17 Stafford Horne <shorne@gmail.com> |
91 | ||
92 | * gdb/or1k-tdep.c (show_or1k_debug): Fix function parameter alignment. | |
93 | (or1k_analyse_inst): Likewise. | |
94 | (or1k_single_step_through_delay): Likewise. | |
95 | (or1k_frame_cache): Fix parameter alignment and use paddress() | |
96 | instead of %x. | |
97 | ||
b282f0f2 SH |
98 | 2017-12-17 Stafford Horne <shorne@gmail.com> |
99 | ||
100 | * NEWS (Changes since GDB 8.0): Mention new or1k target and new | |
101 | commands to set/show or1k debug. | |
102 | ||
46afe196 SDJ |
103 | 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com> |
104 | ||
105 | * typeprint.c (whatis_exp): Fix ARI warning and reindent "if" | |
106 | condition. | |
107 | ||
7c161838 SDJ |
108 | 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com> |
109 | Pedro Alves <palves@redhat.com> | |
110 | ||
111 | PR cli/16224 | |
112 | * NEWS (Changes since GDB 8.0): Mention new '/o' flag. | |
113 | * c-typeprint.c (OFFSET_SPC_LEN): New define. | |
114 | (c_type_print_varspec_prefix): New argument 'struct | |
115 | print_offset_data *'. | |
116 | (c_type_print_base_1): New function and prototype. | |
117 | (c_print_type_1): New function, with code from 'c_print_type'. | |
118 | (c_print_type): Use 'c_print_type_1'. | |
119 | (c_type_print_varspec_prefix): New argument 'struct | |
120 | print_offset_data *'. Use it. Call 'c_type_print_base_1' | |
121 | instead of 'c_print_type_base'. | |
122 | (print_spaces_filtered_with_print_options): New function. | |
123 | (output_access_specifier): Take new argument FLAGS. Modify | |
124 | function to call 'print_spaces_filtered_with_print_options'. | |
125 | (c_print_type_vtable_offset_marker): New function. | |
126 | (c_print_type_union_field_offset): New function. | |
127 | (c_print_type_struct_field_offset): New function. | |
128 | (c_print_type_no_offsets): New function. | |
129 | (c_type_print_base_struct_union): New argument 'struct | |
130 | print_offset_data *'. Print offsets and sizes for | |
131 | struct/union/class fields. | |
132 | * typeprint.c (const struct type_print_options | |
133 | type_print_raw_options): Initialize 'print_offsets'. | |
134 | (static struct type_print_options default_ptype_flags): | |
135 | Likewise. | |
136 | (struct print_offset_data print_offset_default_data): New | |
137 | variable. | |
138 | (whatis_exp): Handle '/o' option. | |
139 | (_initialize_typeprint): Add '/o' flag to ptype's help. | |
140 | * typeprint.h (struct print_offset_data): New struct. | |
141 | (struct type_print_options) <print_offsets>: New field. | |
142 | ||
a27ed7d6 SDJ |
143 | 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com> |
144 | ||
145 | * c-typeprint.c (need_access_label_p): New function. | |
146 | (c_type_print_base_struct_union): New function. | |
147 | (c_type_print_base): Move code to handle | |
148 | TYPE_CODE_{STRUCT,UNION} to the functions mentioned above. | |
149 | ||
68f81d60 RH |
150 | 2017-12-15 Richard Henderson <rth@redhat.com> |
151 | Uros Bizjak <ubizjak@gmail.com> | |
152 | ||
153 | PR gdb/19061 | |
154 | * alpha-tdep.c (alpha_software_single_step): Call | |
155 | alpha_deal_with_atomic_sequence here. | |
156 | (set_gdbarch_software_single_step): Set to | |
157 | alpha_software_single_step. | |
158 | * nat/linux-ptrace.h [__alpha__]: Define GDB_ARCH_IS_TRAP_BRKPT | |
159 | and GDB_ARCH_IS_TRAP_HWBKPT. | |
160 | ||
97d4fac1 YQ |
161 | 2017-12-15 Yao Qi <yao.qi@linaro.org> |
162 | ||
163 | * unittests/memory-map-selftests.c: Wrap test with HAVE_LIBEXPAT. | |
164 | ||
828d5846 XR |
165 | 2017-12-15 Xavier Roirand <roirand@adacore.com> |
166 | ||
167 | * ada-lang.c (ada_value_primitive_field): Handle field search | |
168 | in case of homonyms. | |
169 | (find_struct_field): Ditto. | |
170 | (ada_search_struct_field): Ditto. | |
171 | (ada_value_struct_elt): Ditto. | |
172 | (ada_lookup_struct_elt_type): Ditto. | |
173 | ||
8e557e52 SM |
174 | 2017-12-14 Simon Marchi <simon.marchi@ericsson.com> |
175 | ||
176 | * python/py-breakpoint.c (bppy_init): Use 'O' format specifier | |
177 | for "qualified" and use PyObject_IsTrue. | |
178 | ||
8af5c486 JK |
179 | 2017-12-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
180 | ||
181 | * dwarf2read.c (dw2_debug_names_iterator::next): Support | |
182 | DW_IDX_type_unit. | |
183 | (debug_names::dwarf5_offset_size, unit_kind): New. | |
184 | (debug_names::insert): Add parameter kind. | |
185 | (debug_names::build): Support DW_IDX_type_unit. | |
186 | (debug_names::recursively_write_psymbols): Update | |
187 | (debug_names::write_psymbols caller. | |
188 | (debug_names::write_one_signatured_type_data) | |
189 | (debug_names::write_one_signatured_type): New. | |
190 | (debug_names::index_key, debug_names::symbol_value) | |
191 | (debug_names::write_psymbols): Add kind. | |
192 | (debug_names::write_one_signatured_type): New. | |
193 | (write_debug_names): Move dwarf5_offset_size to debug_names. | |
194 | Use debug_names::write_one_signatured_type for type units. | |
195 | ||
79e8fcaa JB |
196 | 2017-12-14 Joel Brobecker <brobecker@adacore.com> |
197 | ||
198 | * ada-lang.c (ada_value_equal): Add handling of typedef types | |
199 | when comparing array objects. | |
200 | ||
e05fa6f9 JB |
201 | 2017-12-14 Joel Brobecker <brobecker@adacore.com> |
202 | ||
203 | * ada-tasks.c (read_atcb): Properly set task_info->ptid | |
204 | when !target_has_execution as well. | |
205 | (task_command): Remove error when !target_has_execution. | |
206 | ||
b89641ba SM |
207 | 2017-12-13 Simon Marchi <simon.marchi@ericsson.com> |
208 | ||
209 | * location.h (string_to_event_location): Add match_type | |
210 | parameter. | |
211 | * location.c (string_to_event_location): Likewise. | |
212 | * python/py-breakpoint.c (bppy_init): Handle qualified | |
213 | parameter. | |
214 | ||
a22ecf70 PA |
215 | 2017-12-13 Pedro Alves <palves@redhat.com> |
216 | ||
217 | * completer.c (completion_tracker::maybe_add_completion): New | |
218 | 'text' and 'word' parameters. Use make_completion_match_str. | |
219 | (completion_tracker::add_completion): New 'text' and 'word' | |
220 | parameters. Pass down. | |
221 | (completion_tracker::recompute_lowest_common_denominator): Change | |
222 | parameter type to gdb::unique_xmalloc_ptr rval ref. Adjust. | |
223 | * completer.h (completion_tracker::add_completion): New 'text' and | |
224 | 'word' parameters. | |
225 | (completion_tracker::recompute_lowest_common_denominator): Change | |
226 | parameter type to gdb::unique_xmalloc_ptr rval ref. | |
227 | (completion_tracker::recompute_lowest_common_denominator): Change | |
228 | parameter type to gdb::unique_xmalloc_ptr rval ref. | |
229 | * symtab.c (completion_list_add_name): Pass down 'text' and 'word' | |
230 | as well. | |
231 | ||
60a20c19 PA |
232 | 2017-12-13 Pedro Alves <palves@redhat.com> |
233 | ||
234 | * cli/cli-decode.c (complete_on_cmdlist, complete_on_enum): Use | |
235 | make_completion_match_str. | |
236 | * completer.c: Use gdb::unique_xmalloc_ptr and | |
237 | make_completion_match_str. | |
238 | (make_completion_match_str_1): New. | |
239 | (make_completion_match_str(const char *, const char *, | |
240 | const char *)): New. | |
241 | (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&, | |
242 | const char *, const char *)): New. | |
243 | * completer.h (make_completion_match_str(const char *, | |
244 | const char *, const char *)): New. | |
245 | (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&, | |
246 | const char *, const char *)): New. | |
247 | * interps.c (interpreter_completer): Use make_completion_match_str. | |
248 | * symtab.c (completion_list_add_name, add_filename_to_list): Use | |
249 | make_completion_match_str. | |
250 | ||
96647014 SH |
251 | 2017-12-13 Stafford Horne <shorne@gmail.com> |
252 | ||
253 | * or1k-tdep.c (or1k_analyse_inst): Use _() wrapper for message | |
254 | strings. | |
255 | (or1k_unwind_pc): Use paddress() instead of %p. | |
256 | (or1k_unwind_sp): Likewise. | |
257 | (or1k_frame_cache): Use host_address_to_string()/paddress() | |
258 | instead of %p and use _() wrapper for message strings. | |
259 | ||
3bbd9f18 SM |
260 | 2017-12-13 Simon Marchi <simon.marchi@ericsson.com> |
261 | ||
262 | * contrib/ari/gdb_ari.sh: Fix typo in help. | |
263 | ||
9937536c JB |
264 | 2017-12-13 Joel Brobecker <brobecker@adacore.com> |
265 | ||
266 | * event-top.c (handle_line_of_input): Set server_command. | |
267 | ||
a994fec4 FJ |
268 | 2017-12-12 Stafford Horne <shorne@gmail.com> |
269 | Stefan Wallentowitz <stefan@wallentowitz.de> | |
270 | Stefan Kristiansson <stefan.kristiansson@saunalahti.fi> | |
271 | Franck Jullien <franck.jullien@gmail.com> | |
272 | Jeremy Bennett <jeremy.bennett@embecosm.com> | |
273 | ||
274 | * configure.tgt: Add targets for or1k and or1knd. | |
275 | * or1k-tdep.c: New file. | |
276 | * or1k-tdep.h: New file. | |
277 | * features/Makefile: Add or1k.xml to build. | |
278 | * features/or1k.xml: New file. | |
279 | * features/or1k-core.xml: New file. | |
280 | * features/or1k.c: Generated. | |
281 | ||
db9077b7 AM |
282 | 2017-12-12 Alan Modra <amodra@gmail.com> |
283 | ||
284 | PR tdep/22576 | |
285 | * ppc64-tdep.c (ppc64_plt_entry_point): Rewrite to take TOC-relative | |
286 | PLT offset, and retrieve r2 from stack when executing in reverse. | |
287 | (ppc64_standard_linkage1_target): Drop pc param. Calculate offset | |
288 | rather than PLT address. | |
289 | (ppc64_standard_linkage2_target): Likewise. | |
290 | (ppc64_standard_linkage3_target): Likewise. | |
291 | (ppc64_standard_linkage4_target): Likewise. | |
292 | (ppc64_skip_trampoline_code_1): Adjust to suit. | |
293 | ||
a9334058 SM |
294 | 2017-12-11 Simon Marchi <simon.marchi@ericsson.com> |
295 | ||
296 | PR gdb/22556 | |
297 | * remote.c (remote_thread_name): Return NULL if name is empty. | |
298 | (remote_threads_extra_info): Return NULL if extra info is empty. | |
299 | ||
3c0aa29a PA |
300 | 2017-12-11 Pedro Alves <palves@redhat.com> |
301 | ||
302 | * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index) | |
303 | (elf_sym_fns_debug_names): Move to elfread.c. | |
304 | * dwarf2read.c (dwarf2_initialize_objfile): Return a boolean | |
305 | instead of a sym_fns and add 'index_kind' output parameter. Fill | |
306 | the latter in with the index variant kind if using an index. | |
307 | (enum dw_index_kind): Moved to symfile.h. | |
308 | * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names) | |
309 | (elf_sym_fns_lazy_psyms): Move from defs.h. | |
310 | (elf_symfile_read): Adjust to new dwarf2_initialize_objfile | |
311 | interface. | |
312 | * symfile.h (enum class dw_index_kind): New, moved from | |
313 | dwarf2read.c. | |
314 | (dwarf2_initialize_objfile): Change prototype. | |
315 | ||
f2f9e7ec UW |
316 | 2017-12-11 Ulrich Weigand <uweigand@de.ibm.com> |
317 | ||
318 | * target-float.c (mpfr_float_ops::from_target): Use mpfr_set_ui | |
319 | instead of mpfr_set_si to convert mantissa bits. | |
320 | ||
08f49010 XR |
321 | 2017-12-11 Xavier Roirand <roirand@adacore.com> |
322 | Joel Brobecker <brobecker@adacore.com> | |
323 | ||
324 | * ada-lang.c (ada_tag_value_at_base_address): Change the way | |
325 | tagged type base address is computed. | |
326 | (enum ada_primitive_types) <ada_primitive_type_storage_offset>: | |
327 | New enumerate. | |
328 | (ada_language_arch_info): Set the ada_primitive_type_storage_offset | |
329 | element of lai->primitive_type_vector. | |
330 | ||
a3c5fafd PA |
331 | 2017-12-08 Pedro Alves <palves@redhat.com> |
332 | ||
333 | * dwarf2read.c (mock_mapped_index): Reimplement as an extension of | |
334 | mapped_index_base. | |
335 | (check_match): Adjust to use mock_index directly. | |
336 | (check_find_bounds_finds) | |
337 | (test_mapped_index_find_name_component_bounds): Adjust to work | |
338 | with a mapped_index_base. | |
339 | ||
44ed8f3e PA |
340 | 2017-12-08 Pedro Alves <palves@redhat.com> |
341 | ||
342 | * dwarf2read.c (struct mapped_index_base): New, partially factored | |
343 | out from ... | |
344 | (struct mapped_index): ... this. Inherit mapped_index_base. | |
345 | (mapped_index::symbol_name_slot_invalid): | |
346 | (mapped_index::symbol_name_at): Add override marker. | |
347 | (mapped_index::symbol_name_count): New. | |
348 | (struct mapped_debug_names): Inherit mapped_index_base. | |
349 | (mapped_debug_names::symbol_name_at): New. | |
350 | (mapped_debug_names::symbol_name_count): New. | |
351 | (mapped_index::find_name_components_bounds): Rename to ... | |
352 | (mapped_index_base::find_name_components_bounds): ... this. | |
353 | (mapped_index::build_name_components): Rename to ... | |
354 | (mapped_index_base::build_name_components): ... this. Adjust to | |
355 | use mapped_index_base::symbol_name_count and | |
356 | mapped_index_base::symbol_name_slot_invalid. | |
357 | (dw2_expand_symtabs_matching_symbol): Take a mapped_index_base | |
358 | instead of a mapped_index. Use | |
359 | dw2_expand_symtabs_matching_symbol. | |
360 | ||
f00a2de2 PA |
361 | 2017-12-08 Pedro Alves <palves@redhat.com> |
362 | ||
363 | * dwarf2read.c (mapped_index::symbol_table_slot): New. | |
364 | (mapped_index::address_table): Now a gdb::array_view of const | |
365 | gdb_byte. | |
366 | (mapped_index::symbol_table): Now a gdb::array_view of | |
367 | symbol_table_slot. | |
368 | (mapped_index::address_table_size) | |
369 | (mapped_index::symbol_table_slots): Delete. | |
370 | (create_addrmap_from_index): Adjust. | |
371 | (find_slot_in_mapped_hash): Adjust. | |
372 | (read_index_from_section): Adjust. | |
373 | (dwarf2_read_index): Adjust. | |
374 | ||
927aa2e7 JK |
375 | 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
376 | Pedro Alves <palves@redhat.com> | |
377 | ||
378 | * defs.h (elf_sym_fns_debug_names): New declaration. | |
379 | * dwarf2read.c: Include "hash_enum.h". | |
380 | (mapped_debug_names): New. | |
381 | (struct dwarf2_per_objfile): Add debug_names, debug_aranges and | |
382 | debug_names_table. | |
383 | (dwarf2_elf_names): Add ".debug_names" and ".debug_aranges". | |
384 | (struct dwz_file): Add debug_names. | |
385 | (dwarf2_per_objfile::locate_sections): Handle debug_names and | |
386 | debug_aranges. | |
387 | (locate_dwz_sections): Handle debug_names. | |
388 | (create_signatured_type_table_from_debug_names) | |
389 | (create_addrmap_from_aranges): New. | |
390 | (dwarf2_read_index): Update function comment. | |
391 | (dwarf5_augmentation): Moved up. | |
392 | (read_debug_names_from_section, create_cus_from_debug_names_list) | |
393 | (create_cus_from_debug_names, dwarf2_read_debug_names): New. | |
394 | (dwarf5_djb_hash): Moved up. | |
395 | (dw2_debug_names_iterator): New. | |
396 | (read_indirect_string_at_offset): New declaration. | |
397 | (mapped_debug_names::namei_to_name) | |
398 | (dw2_debug_names_iterator::find_vec_in_debug_names) | |
399 | (dw2_debug_names_iterator::next, dw2_debug_names_lookup_symbol) | |
400 | (dw2_debug_names_dump, dw2_debug_names_expand_symtabs_for_function) | |
401 | (dw2_debug_names_expand_symtabs_matching, dwarf2_debug_names_functions): | |
402 | New. | |
403 | (dwarf2_initialize_objfile): Return also elf_sym_fns_debug_names. | |
404 | (debug_names::djb_hash): Rename it to dwarf5_djb_hash. | |
405 | (debug_names::build): Update djb_hash caller. | |
406 | (write_debug_names): Move out and rename augmentation to | |
407 | dwarf5_augmentation. | |
408 | * elfread.c (elf_sym_fns_debug_names): New. | |
409 | * psymtab.h (dwarf2_debug_names_functions): New declaration. | |
410 | * symfile.h (struct dwarf2_debug_sections): Add debug_names and | |
411 | debug_aranges. | |
412 | * xcoffread.c (dwarf2_xcoff_names): Add debug_names and debug_aranges. | |
413 | ||
e5fa6583 PA |
414 | 2017-12-08 Pedro Alves <palves@redhat.com> |
415 | ||
416 | * common/hash_enum.h: New file. | |
417 | ||
4b514bc8 JK |
418 | 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
419 | ||
420 | * dwarf2read.c (create_cu_from_index_list): New from ... | |
421 | (create_cus_from_index_list): ... this function, use it. | |
422 | (dw_expand_symtabs_matching_file_matcher) | |
423 | (dw2_expand_symtabs_matching_one): New from ... | |
424 | (dw2_expand_symtabs_matching): ... this function, use them. | |
425 | ||
abccd1e7 JK |
426 | 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
427 | ||
428 | * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move here | |
429 | declarations from elfread.c. | |
430 | (dwarf2_initialize_objfile): Change return value. | |
431 | * elfread.c (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move these | |
432 | declarations to defs.h. | |
433 | (elf_symfile_read): Adjust dwarf2_initialize_objfile caller. | |
434 | * symfile.h (dwarf2_initialize_objfile): Change return type. | |
435 | ||
437afbb8 JK |
436 | 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
437 | Pedro Alves <palves@redhat.com> | |
438 | ||
439 | * contrib/gdb-add-index.sh (index): Rename to ... | |
440 | (index4): ... here. | |
441 | (index5, debugstr, debugstrmerge, debugstrerr): New variables. | |
442 | Support also .debug_names and .debug_str. | |
443 | * dwarf2read.c: Include cmath, set, list. | |
444 | (INDEX_SUFFIX): Rename to ... | |
445 | (INDEX4_SUFFIX): ... here. | |
446 | (INDEX5_SUFFIX, DEBUG_STR_SUFFIX): New. | |
447 | (file_write(FILE *, const void *, size_t)): New. | |
448 | (file_write(FILE *, const std::vector<Elem, Alloc> &)): New. | |
449 | (data_buf::append_unsigned_leb128, data_buf::empty): New. | |
450 | (data_buf::file_write): Use ::file_write. | |
451 | (data_buf::c_str, dwarf5_djb_hash, debug_names) | |
452 | (check_dwarf64_offsets): New. | |
453 | (psyms_seen_size, write_gdbindex): New from | |
454 | write_psymtabs_to_index code. | |
455 | (dwarf5_gdb_augmentation, write_debug_names, assert_file_size) | |
456 | (enum dw_index_kind): New. | |
457 | (write_psymtabs_to_index): New parameter index_kind. Support | |
458 | filename_str and out_file_str. Move code to write_gdbindex, | |
459 | possibly call write_debug_names. | |
460 | (save_gdb_index_command): New parameter -dwarf-5. | |
461 | (_initialize_dwarf2_read): Document the new parameter -dwarf-5. | |
462 | ||
6432ec65 JK |
463 | 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
464 | Pedro Alves <palves@redhat.com> | |
465 | ||
466 | * contrib/cc-with-tweaks.sh: Change interpreter to bash, incl. initial | |
467 | comment. | |
468 | (GDB_ADD_INDEX): New variable. | |
469 | <$want_index>: Call $GDB_ADD_INDEX. | |
470 | ||
92469284 SDJ |
471 | 2017-12-08 Sergio Durigan Junior <sergiodj@redhat.com> |
472 | ||
473 | * dtrace-probe.c (dtrace_process_dof_probe): Do not declare a new | |
474 | "expression_up" inside the TRY block. | |
475 | ||
f17d9474 YQ |
476 | 2017-12-08 Yao Qi <yao.qi@linaro.org> |
477 | ||
478 | * breakpoint.c (update_watchpoint): Call | |
479 | address_significant. | |
480 | ||
a0de8c21 YQ |
481 | 2017-12-08 Yao Qi <yao.qi@linaro.org> |
482 | ||
483 | * breakpoint.c (adjust_breakpoint_address): Call | |
484 | address_significant. | |
485 | ||
a738ea1d YQ |
486 | 2017-12-08 Yao Qi <yao.qi@linaro.org> |
487 | ||
488 | * aarch64-tdep.c (aarch64_gdbarch_init): Install gdbarch | |
489 | significant_addr_bit. | |
490 | * gdbarch.sh (significant_addr_bit): New. | |
491 | * gdbarch.c, gdbarch.h: Re-generated. | |
492 | * target.c (memory_xfer_partial): Call address_significant. | |
493 | * utils.c (address_significant): New function. | |
494 | * utils.h (address_significant): Declare. | |
495 | ||
8e481c3b TT |
496 | 2017-12-08 Tom Tromey <tom@tromey.com> |
497 | ||
498 | * printcmd.c (ui_printf): Update. Use std::vector. | |
499 | * common/format.h (struct format_piece): Add constructor. | |
500 | <string>: Now const. | |
501 | (class format_pieces): New class. | |
502 | (parse_format_string, free_format_pieces) | |
503 | (free_format_pieces_cleanup): Remove. | |
504 | * common/format.c (format_pieces::format_pieces): Rename from | |
505 | parse_format_string. Update. | |
506 | (free_format_pieces, free_format_pieces_cleanup): Remove. | |
507 | * breakpoint.c (parse_cmd_to_aexpr): Update. Use std::vector. | |
508 | * ax-gdb.h (gen_printf): Remove argument. | |
509 | * ax-gdb.c (gen_printf): Remove "frags" argument. | |
510 | (maint_agent_printf_command): Update. Use std::vector. | |
511 | ||
6b05c8bd YQ |
512 | 2017-12-08 Yao Qi <yao.qi@linaro.org> |
513 | ||
514 | PR breakpionts/22567 | |
515 | * linespec.c (minsym_found): Set sal.section. | |
516 | ||
336ef6d2 AA |
517 | 2017-12-08 Andreas Arnez <arnez@linux.vnet.ibm.com> |
518 | ||
519 | * configure.tgt (s390*-*-linux*): Add symfile-mem.o. | |
520 | ||
fa6eb693 KS |
521 | 2017-12-07 Keith Seitz <keiths@redhat.com> |
522 | ||
523 | PR breakpoints/22569 | |
524 | * location.c (string_to_explicit_location): When terminating | |
525 | parsing early, break out of enclosing loop instead of returning. | |
526 | ||
883fd55a KS |
527 | 2017-12-07 Keith Seitz <keiths@redhat.com> |
528 | ||
529 | * NEWS (New commands): Mention set/show print type nested-type-limit. | |
530 | * c-typeprint.c (c_type_print_base): Print out nested types. | |
531 | * dwarf2read.c (struct typedef_field_list): Rename to ... | |
532 | (struct decl_field_list): ... this. Change all uses. | |
533 | (struct field_info) <nested_types_list, nested_types_list_count>: | |
534 | New fields. | |
535 | (add_partial_symbol): Look for nested type definitions in C++, too. | |
536 | (dwarf2_add_typedef): Rename to ... | |
537 | (dwarf2_add_type_defn): ... this. | |
538 | (type_can_define_types): New function. | |
539 | Update assertion to use type_can_define_types. | |
540 | Permit NULL for a field's name. | |
541 | (process_structure_scope): Handle child DIEs of types that can | |
542 | define types. | |
543 | Copy the list of nested types into the type struct. | |
544 | * gdbtypes.h (struct typedef_field): Rename to ... | |
545 | (struct decl_field): ... this. Change all uses. | |
546 | [is_protected, is_private]: New fields. | |
547 | (struct cplus_struct_type) <nested_types, nested_types_count>: New | |
548 | fields. | |
549 | (TYPE_NESTED_TYPES_ARRAY, TYPE_NESTED_TYPES_FIELD) | |
550 | (TYPE_NESTED_TYPES_FIELD_NAME, TYPE_NESTED_TYPES_FIELD_TYPE) | |
551 | (TYPE_NESTED_TYPES_COUNT, TYPE_NESTED_TYPES_FIELD_PROTECTED) | |
552 | (TYPE_NESTED_TYPES_FIELD_PRIVATE): New macros. | |
553 | * typeprint.c (type_print_raw_options, default_ptype_flags): Add | |
554 | default value for print_nested_type_limit. | |
555 | (print_nested_type_limit): New static variable. | |
556 | (set_print_type_nested_types, show_print_type_nested_types): New | |
557 | functions. | |
558 | (_initialize_typeprint): Register new commands for set/show | |
559 | `print-nested-type-limit'. | |
560 | * typeprint.h (struct type_print_options) [print_nested_type_limit]: | |
561 | New field. | |
562 | ||
99598d71 TT |
563 | 2017-12-07 Tom Tromey <tom@tromey.com> |
564 | ||
565 | PR breakpoints/22511: | |
566 | * breakpoint.c (commands_command_1): Don't throw an exception when | |
567 | no commands have been read. | |
568 | ||
23a8d186 AS |
569 | 2017-12-07 Adam Stylinski <adam.stylinski@etegent.com> |
570 | ||
571 | PR c++/21222 | |
572 | * target-descriptions.c (print_c_tdesc::visit_pre): Change type of | |
573 | range-for variable. | |
574 | ||
30970df7 SM |
575 | 2017-12-07 Simon Marchi <simon.marchi@ericsson.com> |
576 | ||
577 | * common/selftest.h (struct selftest): Add virtual destructor. | |
578 | ||
824cc835 PM |
579 | 2017-12-07 Phil Muldoon <pmuldoon@redhat.com> |
580 | ||
581 | * python/py-breakpoint.c (bppy_init): Use string_to_event_location | |
582 | over basic location code. Implement explicit location keywords. | |
583 | (bppy_init_validate_args): New function. | |
584 | * NEWS: Document Python explicit breakpoint locations. | |
585 | ||
9c226a86 JB |
586 | 2017-12-07 Joel Brobecker <brobecker@adacore.com> |
587 | ||
588 | * MAINTAINERS: Restore target entries for m68hc11-elf, | |
589 | score-elf and xstormy16-elf, incorrectly removed in a previous | |
590 | patch meant to only update the list of active maintainers. | |
591 | ||
649a140c PA |
592 | 2017-12-06 Pedro Alves <palves@redhat.com> |
593 | ||
594 | * break-catch-syscall.c (insert_catch_syscall) | |
595 | (remove_catch_syscall): Adjust to pass reference to | |
596 | inf_data->syscalls_counts directly via gdb::array_view. | |
597 | * fbsd-nat.c (fbsd_set_syscall_catchpoint): Adjust to use bool | |
598 | and gdb::array_view. | |
599 | * linux-nat.c (linux_child_set_syscall_catchpoint): Likewise. | |
600 | * remote.c (remote_set_syscall_catchpoint): Likewise. | |
601 | * target-debug.h (target_debug_print_bool): New. | |
602 | (define target_debug_print_gdb_array_view_const_int): New. | |
603 | * target-delegates.c: Regenerate. | |
604 | * target.h (target_ops) <to_set_syscall_catchpoint>: Use | |
605 | gdb::array_view and bool. | |
606 | (target_set_syscall_catchpoint): Likewise. | |
607 | ||
9a93831c SM |
608 | 2017-12-06 Simon Marchi <simon.marchi@ericsson.com> |
609 | ||
610 | * break-catch-syscall.c (catch_syscall_completer): Get pointers | |
611 | to syscall group strings after building the string vector. | |
612 | ||
7cc244de PA |
613 | 2017-12-06 Pedro Alves <palves@redhat.com> |
614 | ||
615 | * remote.c (remote_query_supported): Don't send "xmlRegisters=" if | |
616 | "qXfer:features:read"" is disabled. | |
617 | (remote_write_qxfer, remote_read_qxfer, remote_search_memory): | |
618 | Check packet_config_support instead of packet->support directly. | |
619 | ||
858c9d13 SM |
620 | 2017-12-05 Simon Marchi <simon.marchi@ericsson.com> |
621 | ||
622 | * target-descriptions.c (struct tdesc_feature) <registers>: Use | |
623 | tdesc_reg_up typedef. | |
624 | (struct target_desc) <features>: Use tdesc_feature_up typedef. | |
625 | ||
d4a0e8b5 SM |
626 | 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca> |
627 | ||
628 | * target-descriptions.c (struct tdesc_type): Use default | |
629 | destructor. | |
630 | <u>: Remove. | |
631 | <accept>: Remove. | |
632 | (struct tdesc_type_builtin): New. | |
633 | (struct tdesc_type_vector): New. | |
634 | (struct tdesc_type_with_fields): New. | |
635 | (tdesc_predefined_types): Change type to tdesc_type_builtin[]. | |
636 | (tdesc_gdb_type): Remove. | |
637 | (tdesc_register_type): Adjust. | |
638 | (tdesc_create_vector): Create tdesc_type_vector. | |
639 | (tdesc_create_struct): Create tdesc_type_with_fields. | |
640 | (tdesc_set_struct_size): Change parameter type. | |
641 | (tdesc_create_union): Create tdesc_type_with_fields. | |
642 | (tdesc_create_flags): Likewise. | |
643 | (tdesc_create_enum): Likewise. | |
644 | (tdesc_add_field): Change parameter type. | |
645 | (tdesc_add_typed_bitfield): Likewise. | |
646 | (tdesc_add_bitfield): Likewise. | |
647 | (tdesc_add_flag): Likewise. | |
648 | (tdesc_add_enum_value): Likewise. | |
649 | (print_c_tdesc) <visit>: Remove overload with tdesc_type | |
650 | parameter, add overloads for tdesc_type_builtin, | |
651 | tdesc_type_with_fields and tdesc_type_vector. | |
652 | <m_printed_type>: Remove. | |
653 | <m_printed_element_type, m_printed_type_with_fields>: Add. | |
654 | * target-descriptions.h (tdesc_create_enum): Change return type. | |
655 | (tdesc_add_typed_bitfield): Change parameter type. | |
656 | (tdesc_add_enum_value): Change parameter type. | |
657 | * xml-tdesc.c (struct tdesc_parsing_data) <current_type>: Change | |
658 | type to tdesc_type_with_fields. | |
659 | (tdesc_start_struct): Adjust. | |
660 | (tdesc_start_flags): Adjust. | |
661 | (tdesc_start_enum): Adjust. | |
662 | (tdesc_start_field): Adjust. | |
663 | * arch/tdesc.h (struct tdesc_type_builtin): Forward-declare. | |
664 | (struct tdesc_type_vector): Forward-declare. | |
665 | (struct tdesc_type_with_fields): Forward-declare. | |
666 | (tdesc_create_struct): Change return type. | |
667 | (tdesc_create_union): Likewise. | |
668 | (tdesc_create_flags): Likewise. | |
669 | (tdesc_add_field): Change parameter type. | |
670 | (tdesc_set_struct_size): Likewise. | |
671 | (tdesc_add_bitfield): Likewise. | |
672 | (tdesc_add_flag): Likewise. | |
673 | * features: Re-generate C files. | |
674 | ||
f0cddbef SM |
675 | 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca> |
676 | ||
677 | * target-descriptions.c (tdesc_arch_reg): Remove typedef. | |
678 | (struct tdesc_arch_reg): Add constructor. | |
679 | (DEF_VEC_O (tdesc_arch_reg)): Remove. | |
680 | (struct tdesc_arch_data): Initialize fields. | |
681 | <arch_regs>: Change type to std::vector. | |
682 | (target_find_description): Adjust. | |
683 | (tdesc_find_type): Adjust. | |
684 | (tdesc_data_init): Call tdesc_arch_data constructor. | |
685 | (tdesc_data_alloc): Allocate tdesc_arch_data with new. | |
686 | (tdesc_data_cleanup): Free data with delete. | |
687 | (tdesc_numbered_register): Adjust. | |
688 | (tdesc_find_arch_register): Adjust. | |
689 | (tdesc_use_registers): Adjust. | |
690 | ||
d05200d1 SM |
691 | 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca> |
692 | ||
693 | * target-descriptions.c (tdesc_type_field): Remove typedef. | |
694 | (DEF_VEC_O (tdesc_type_field)): Remove. | |
695 | (struct tdesc_type_field): Add constructor. | |
696 | <name>: Change type to std::string. | |
697 | (struct tdesc_type) <tdesc_type>: Instantiate vector if the type | |
698 | kind uses it. | |
699 | <~tdesc_type>: Destroy vector if the type kind uses it. | |
700 | <u::u::fields>: Change type to std::vector. | |
701 | (tdesc_gdb_type): Adjust. | |
702 | (tdesc_add_field): Adjust. | |
703 | (tdesc_add_typed_bitfield): Adjust. | |
704 | (tdesc_add_field): Adjust. | |
705 | (tdesc_add_enum_value): Adjust. | |
706 | (class print_c_tdesc) <visit>: Adjust. | |
707 | ||
082b9140 SM |
708 | 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca> |
709 | ||
710 | * target-descriptions.c (struct tdesc_type) <name>: Change type | |
711 | to std::string. | |
712 | <~tdesc_type>: Don't manually free name. | |
713 | <operator==>: Adjust. | |
714 | (tdesc_named_type): Adjust. | |
715 | (tdesc_find_type): Adjust. | |
716 | (tdesc_gdb_type): Adjust. | |
717 | (class print_c_tdesc) <visit>: Adjust. | |
718 | ||
53c934e9 SM |
719 | 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca> |
720 | ||
721 | * target-descriptions.c (tdesc_type_p): Remove typedef. | |
722 | (DEF_VEC_P (tdesc_type_p)): Remove. | |
723 | (struct tdesc_feature) <types>: Change type to std::vector. | |
724 | <~tdesc_feature>: Replace with default implementation. | |
725 | <accept>: Adjust. | |
726 | (tdesc_named_type): Adjust. | |
727 | (tdesc_create_vector): Adjust. | |
728 | (tdesc_create_struct): Adjust. | |
729 | (tdesc_create_union): Adjust. | |
730 | (tdesc_create_flags): Adjust. | |
731 | (tdesc_create_enum): Adjust. | |
732 | ||
a8142ee1 SM |
733 | 2017-12-05 Simon Marchi <simon.marchi@ericsson.com> |
734 | ||
735 | * target-descriptions.c (struct tdesc_reg) <tdesc_reg>: Change | |
736 | type of name_ parameter, adjust to std::string change. | |
737 | <name, group, type>: Change type to std::string. | |
738 | <~tdesc_reg>: Replace with default implementation. | |
739 | <operator==>: Adjust. | |
740 | (tdesc_find_register_early): Adjust. | |
741 | (tdesc_register_name): Adjust. | |
742 | (tdesc_register_type): Adjust. | |
743 | (tdesc_register_in_reggroup_p): Adjust. | |
744 | (class print_c_tdesc) <visit>: Adjust. | |
745 | (class print_c_feature) <visit>: Adjust. | |
858c9d13 SM |
746 | * features/arc-arcompact.c: Re-generate. |
747 | * features/arc-v2.c: Re-generate. | |
a8142ee1 | 748 | |
c9c895b9 SM |
749 | 2017-12-05 Simon Marchi <simon.marchi@ericsson.com> |
750 | ||
751 | * target-descriptions.c (tdesc_reg_p): Remove typedef. | |
752 | (DEF_VEC_P (tdesc_reg_p)): Remove. | |
753 | (struct tdesc_feature) <registers>: Change type to std::vector. | |
754 | <~tdesc_feature>: Don't manually free registers. | |
755 | <accept>: Adjust. | |
756 | <operator==>: Adjust. | |
757 | (tdesc_has_registers): Adjust. | |
758 | (tdesc_find_register_early): Adjust. | |
759 | (tdesc_use_registers): Adjust. | |
760 | (tdesc_create_reg): Adjust. | |
761 | ||
f65ff9f9 SM |
762 | 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca> |
763 | ||
764 | * target-descriptions.c (tdesc_feature) <name>: Change type to | |
765 | std::string. | |
766 | <~tdesc_feature>: Don't manually free name. | |
767 | <operator==>: Adjust. | |
768 | (tdesc_find_feature): Adjust. | |
769 | (tdesc_feature_name): Adjust. | |
770 | (class print_c_tdesc) <visit_pre>: Adjust. | |
771 | (class print_c_feature) <visit_pre>: Adjust. | |
772 | ||
3eea796c SM |
773 | 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca> |
774 | ||
775 | * target-descriptions.c (tdesc_feature_p): Remove typedef. | |
776 | (DEF_VEC_P (tdesc_feature_p)): Remove. | |
777 | (struct target_desc) <features>: Change type to std::vector. | |
778 | <~target_desc>: Replace with default implementation. | |
779 | <accept>: Adjust. | |
780 | <operator==>: Adjust. | |
781 | (tdesc_has_registers): Adjust. | |
782 | (tdesc_find_feature): Adjust. | |
783 | (tdesc_use_registers): Adjust. | |
784 | (tdesc_create_feature): Adjust. | |
785 | ||
40e2a983 SM |
786 | 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca> |
787 | ||
788 | * target-descriptions.c (arch_p): Remove typedef. | |
789 | (DEF_VEC_P (arch_p)): Remove. | |
790 | (struct target_desc) <compatible>: Change type to std::vector. | |
791 | <~target_desc>: Don't manually free compatible. | |
792 | (tdesc_compatible_p): Adjust. | |
793 | (tdesc_add_compatible): Adjust. | |
794 | (class print_c_tdesc) <visit_pre>: Adjust. | |
795 | ||
129c10bc SM |
796 | 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca> |
797 | ||
798 | * target-descriptions.c (property_s): Remove typedef. | |
799 | (DEF_VEC_O (property_s)): Remove. | |
800 | (struct target_desc) <properties>: Make an std::vector. | |
801 | <~target_desc>: Don't manually free properties. | |
802 | (tdesc_property): Adjust. | |
803 | (set_tdesc_property): Adjust. | |
804 | (class print_c_tdesc) <visit_pre>: Adjust. | |
805 | ||
ed9376bd SM |
806 | 2017-12-05 Simon Marchi <simon.marchi@ericsson.com> |
807 | ||
808 | * common/gdb_assert.h (gdb_static_assert): Redefine using | |
809 | static_assert. | |
810 | ||
798a7429 SM |
811 | 2017-12-05 Simon Marchi <simon.marchi@ericsson.com> |
812 | ||
813 | * ada-lang.c (ada_collect_symbol_completion_matches): Remove | |
814 | unused variables. | |
815 | (ada_is_redundant_range_encoding): Likewise. | |
816 | * ada-varobj.c (ada_varobj_get_value_of_array_variable): | |
817 | Likewise. | |
818 | * alpha-tdep.c (alpha_software_single_step): Likewise. | |
819 | * arm-tdep.c (_initialize_arm_tdep): Likewise. | |
820 | * auto-load.c (info_auto_load_cmd): Likewise. | |
821 | * break-catch-syscall.c (insert_catch_syscall): Likewise. | |
822 | (remove_catch_syscall): Likewise. | |
823 | * breakpoint.c (condition_completer): Likewise. | |
824 | (clear_command): Likewise. | |
825 | (update_breakpoint_locations): Likewise. | |
826 | * btrace.c (btrace_disable): Likewise. | |
827 | (btrace_teardown): Likewise. | |
828 | (btrace_maint_update_pt_packets): Likewise. | |
829 | (maint_btrace_clear_cmd): Likewise. | |
830 | * cli/cli-decode.c (lookup_cmd_1): Likewise. | |
831 | (lookup_cmd_composition): Likewise. | |
832 | * cli/cli-dump.c (scan_filename): Likewise. | |
833 | (restore_command): Likewise. | |
834 | * compile/compile-loc2c.c (compute_stack_depth): Likewise. | |
835 | * compile/compile-object-load.c (compile_object_load): Likewise. | |
836 | * compile/compile-object-run.c (compile_object_run): Likewise. | |
837 | * compile/compile.c (compile_to_object): Likewise. | |
838 | * completer.c (filename_completer): Likewise. | |
839 | (complete_files_symbols): Likewise. | |
840 | (complete_expression): Likewise. | |
841 | * corelow.c (core_open): Likewise. | |
842 | * ctf.c (ctf_start): Likewise. | |
843 | (ctf_write_status): Likewise. | |
844 | (ctf_write_uploaded_tsv): Likewise. | |
845 | (ctf_write_definition_end): Likewise. | |
846 | (ctf_open_dir): Likewise. | |
847 | (ctf_xfer_partial): Likewise. | |
848 | (ctf_trace_find): Likewise. | |
849 | * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): | |
850 | Likewise. | |
851 | * dwarf2loc.c (allocate_piece_closure): Likewise. | |
852 | (indirect_pieced_value): Likewise. | |
853 | (dwarf2_evaluate_loc_desc_full): Likewise. | |
854 | * dwarf2read.c (dw2_expand_marked_cus): Likewise. | |
855 | (dw2_expand_symtabs_matching): Likewise. | |
856 | (dw2_map_symbol_filenames): Likewise. | |
857 | (read_and_check_comp_unit_head): Likewise. | |
858 | (read_cutu_die_from_dwo): Likewise. | |
859 | (lookup_dwo_unit): Likewise. | |
860 | (read_comp_units_from_section): Likewise. | |
861 | (dwarf2_compute_name): Likewise. | |
862 | (handle_DW_AT_stmt_list): Likewise. | |
863 | (create_cus_hash_table): Likewise. | |
864 | (create_dwp_v2_section): Likewise. | |
865 | (dwarf2_rnglists_process): Likewise. | |
866 | (dwarf2_ranges_process): Likewise. | |
867 | (dwarf2_record_block_ranges): Likewise. | |
868 | (is_vtable_name): Likewise. | |
869 | (read_formatted_entries): Likewise. | |
870 | (skip_form_bytes): Likewise. | |
871 | * elfread.c (elf_symtab_read): Likewise. | |
872 | * exec.c (exec_file_command): Likewise. | |
873 | * f-valprint.c (f_val_print): Likewise. | |
874 | (info_common_command_for_block): Likewise. | |
875 | * guile/guile.c (initialize_scheme_side): Likewise. | |
876 | * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise. | |
877 | * guile/scm-cmd.c (cmdscm_completer): Likewise. | |
878 | (gdbscm_register_command_x): Likewise. | |
879 | * guile/scm-frame.c (gdbscm_frame_read_var): Likewise. | |
880 | * guile/scm-param.c (gdbscm_parameter_value): Likewise. | |
881 | * guile/scm-ports.c (file_port_magic): Likewise. | |
882 | * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise. | |
883 | (ppscm_pretty_print_one_value): Likewise. | |
884 | (ppscm_print_children): Likewise. | |
885 | * guile/scm-string.c (gdbscm_string_to_argv): Likewise. | |
886 | * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise. | |
887 | * guile/scm-type.c (gdbscm_type_next_field_x): Likewise. | |
888 | * guile/scm-utils.c (gdbscm_parse_function_args): Likewise. | |
889 | * i386-tdep.c (i386_register_reggroup_p): Likewise. | |
890 | * infcmd.c (run_command_1): Likewise. | |
891 | (until_next_fsm_clean_up): Likewise. | |
892 | * linespec.c (linespec_complete): Likewise. | |
893 | (find_label_symbols): Likewise. | |
894 | * m2-valprint.c (m2_val_print): Likewise. | |
895 | * memattr.c (require_user_regions): Likewise. | |
896 | (lookup_mem_region): Likewise. | |
897 | (disable_mem_command): Likewise. | |
898 | (mem_delete): Likewise. | |
899 | * mep-tdep.c (mep_register_name): Likewise. | |
900 | (mep_analyze_prologue): Likewise. | |
901 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise. | |
902 | * mi/mi-interp.c (mi_on_sync_execution_done): Likewise. | |
903 | * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise. | |
904 | * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise. | |
905 | * minidebug.c (lzma_open): Likewise. | |
906 | * minsyms.c (lookup_minimal_symbol): Likewise. | |
907 | * mips-linux-tdep.c (mips64_fill_fpregset): Likewise. | |
908 | * mips-tdep.c (mips_stub_frame_sniffer): Likewise. | |
909 | (mips_o64_return_value): Likewise. | |
910 | (mips_single_step_through_delay): Likewise. | |
911 | (_initialize_mips_tdep): Likewise. | |
912 | * nios2-tdep.c (nios2_push_dummy_call): Likewise. | |
913 | (nios2_software_single_step): Likewise. | |
914 | * parse.c (find_minsym_type_and_address): Likewise. | |
915 | * psymtab.c (psym_relocate): Likewise. | |
916 | * python/py-breakpoint.c (bppy_get_commands): Likewise. | |
917 | (gdbpy_breakpoint_modified): Likewise. | |
918 | * python/py-infevents.c (create_inferior_call_event_object): | |
919 | Likewise. | |
920 | * python/py-record-btrace.c (btpy_list_item): Likewise. | |
921 | * python/py-type.c (typy_str): Likewise. | |
922 | * python/py-value.c (valpy_call): Likewise. | |
923 | * python/python.c (do_start_initialization): Likewise. | |
924 | * record-btrace.c (record_btrace_insn_history_range): Likewise. | |
925 | (record_btrace_call_history_range): Likewise. | |
926 | (record_btrace_record_method): Likewise. | |
927 | (record_btrace_xfer_partial): Likewise. | |
928 | (btrace_get_frame_function): Likewise. | |
929 | * record-full.c (record_full_open): Likewise. | |
930 | * record.c (get_context_size): Likewise. | |
931 | * registry.h (DEFINE_REGISTRY): Likewise. | |
932 | * remote-fileio.c (remote_fileio_request): Likewise. | |
933 | * remote.c (remote_update_thread_list): Likewise. | |
934 | (remote_check_symbols): Likewise. | |
935 | (remote_commit_resume): Likewise. | |
936 | (remote_interrupt): Likewise. | |
937 | (remote_insert_breakpoint): Likewise. | |
938 | (compare_sections_command): Likewise. | |
939 | * rust-exp.y (super_name): Likewise. | |
940 | (lex_string): Likewise. | |
941 | (convert_ast_to_type): Likewise. | |
942 | (convert_ast_to_expression): Likewise. | |
943 | * rust-lang.c (rust_print_struct_def): Likewise. | |
944 | (rust_print_type): Likewise. | |
945 | (rust_evaluate_subexp): Likewise. | |
946 | * rx-tdep.c (rx_register_type): Likewise. | |
947 | * ser-event.c (serial_event_clear): Likewise. | |
948 | * serial.c (serial_open): Likewise. | |
949 | * spu-tdep.c (spu_overlay_new_objfile): Likewise. | |
950 | * symfile.c (section_is_overlay): Likewise. | |
951 | (overlay_unmapped_address): Likewise. | |
952 | (overlay_mapped_address): Likewise. | |
953 | (simple_overlay_update_1): Likewise. | |
954 | (simple_overlay_update): Likewise. | |
955 | * symtab.c (symbol_find_demangled_name): Likewise. | |
956 | (search_symbols): Likewise. | |
957 | * target-descriptions.c (tdesc_predefined_type): Likewise. | |
958 | * target.c (target_commit_resume): Likewise. | |
959 | * thread.c (print_selected_thread_frame): Likewise. | |
960 | * top.c (new_ui_command): Likewise. | |
961 | (gdb_readline_no_editing): Likewise. | |
962 | * tracefile-tfile.c (tfile_open): Likewise. | |
963 | * tracepoint.c (create_tsv_from_upload): Likewise. | |
964 | * utils.c (quit): Likewise. | |
965 | (defaulted_query): Likewise. | |
966 | * valarith.c (value_concat): Likewise. | |
967 | * xml-syscall.c (xml_list_syscalls_by_group): Likewise. | |
968 | * xml-tdesc.c (target_fetch_description_xml): Likewise. | |
969 | * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise. | |
970 | (xtensa_pseudo_register_write): Likewise. | |
971 | ||
7403715e TT |
972 | 2017-12-04 Tom Tromey <tom@tromey.com> |
973 | ||
974 | * NEWS: Mention Rust trait object inspection. | |
975 | ||
50a1fdd5 PA |
976 | 2017-12-04 Pedro Alves <palves@redhat.com> |
977 | ||
978 | PR gdb/22499 | |
979 | * amd64-tdep.c (amd64_insn::rex_offset): Rename to... | |
980 | (amd64_insn::enc_prefix_offset): ... this, and tweak comment. | |
981 | (vex2_prefix_p, vex3_prefix_p): New functions. | |
982 | (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and | |
983 | VEX3 prefixes. | |
984 | (fixup_riprel): Set VEX3.!B. | |
985 | ||
1e97a227 SM |
986 | 2017-12-03 Simon Marchi <simon.marchi@ericsson.com> |
987 | ||
988 | * target.h (mem_region_vector): Remove. | |
989 | (struct target_ops) <to_memory_map>: Change return type to | |
990 | std::vector<mem_region>. | |
991 | * target-debug.h (target_debug_print_mem_region_vector): Rename | |
992 | to ... | |
993 | (target_debug_print_std_vector_mem_region): ... this. | |
994 | * target-delegates.c: Re-generate. | |
995 | ||
10f64178 PA |
996 | 2017-12-03 Pedro Alves <palves@redhat.com> |
997 | ||
998 | * make-target-delegates (munge_type): Also munge '<', '>', and | |
999 | ':'. Avoid double underscores in identifiers, and trailing | |
1000 | underscores. | |
1001 | * target-debug.h | |
1002 | (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to | |
1003 | ... | |
1004 | (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this. | |
1005 | * target-delegates.c: Regenerate. | |
1006 | ||
6d83e819 SM |
1007 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
1008 | ||
1009 | * common/poison.h (XDELETE): Fix typo. | |
1010 | ||
97cbe998 SDJ |
1011 | 2017-12-01 Andrew Cagney <cagney@redhat.com> |
1012 | Joel Brobecker <brobecker@adacore.com> | |
1013 | Sergio Durigan Junior <sergiodj@redhat.com> | |
1014 | ||
1015 | * NEWS (Changes since GDB 8.0: Mention new '--readnever' | |
1016 | feature. | |
1017 | * coffread.c (coff_symfile_read): Do not map over sections with | |
1018 | 'coff_locate_sections' if readnever is on. | |
1019 | * dwarf2read.c (dwarf2_has_info): Return 0 if | |
1020 | readnever is on. | |
1021 | * elfread.c (elf_symfile_read): Do not map over sections with | |
1022 | 'elf_locate_sections' if readnever is on. | |
1023 | * main.c (validate_readnow_readnever): New function. | |
1024 | (captured_main_1): Add support for --readnever. | |
1025 | (print_gdb_help): Document --readnever. | |
1026 | * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New | |
1027 | flag. | |
1028 | * symfile.c (readnever_symbol_files): New global. | |
1029 | (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when | |
1030 | 'READNEVER_SYMBOL_FILES' is set. | |
1031 | (validate_readnow_readnever): New function. | |
1032 | (symbol_file_command): Handle '-readnever' option. | |
1033 | Call 'validate_readnow_readnever'. | |
1034 | (add_symbol_file_command): Handle '-readnever' option. | |
1035 | Call 'validate_readnow_readnever'. | |
1036 | (_initialize_symfile): Document new '-readnever' option for | |
1037 | both 'symbol-file' and 'add-symbol-file' commands. | |
1038 | * top.h (readnever_symbol_files): New extern global. | |
1039 | * xcoffread.c (xcoff_initial_scan): Do not read debug | |
1040 | information if readnever is on. | |
1041 | ||
40fc416f SDJ |
1042 | 2017-12-01 Sergio Durigan Junior <sergiodj@redhat.com> |
1043 | ||
1044 | * symfile.c (symbol_file_command): Call | |
1045 | 'symbol_file_add_main_1' only after processing all command | |
1046 | line options. | |
1047 | (add_symbol_file_command): Modify logic to make arguments | |
1048 | position-independent. | |
1049 | ||
ec6a20c2 JB |
1050 | 2017-12-01 Joel Brobecker <brobecker@adacore.com> |
1051 | ||
1052 | * ada-lang.c (symbol_list_obstack): Delete. | |
1053 | (resolve_subexp): Make sure "candidates" gets xfree'ed. | |
1054 | (ada_lookup_symbol_list_worker): Remove the limitation that | |
1055 | the result is only good until the next call, now making it | |
1056 | the responsibility of the caller to free the result when no | |
1057 | longer needed. Adjust the function's intro comment accordingly. | |
1058 | (ada_lookup_symbol_list): Adjust the function's intro comment. | |
1059 | (ada_iterate_over_symbols): Make sure "results" gets xfree'ed. | |
1060 | (ada_lookup_encoded_symbol, get_var_value): Likewise. | |
1061 | (_initialize_ada_language): Remove symbol_list_obstack | |
1062 | initialization. | |
1063 | * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed. | |
1064 | (write_var_or_type, write_name_assoc): Likewise. | |
1065 | ||
d0df06af TT |
1066 | 2017-12-01 Tom Tromey <tom@tromey.com> |
1067 | ||
1068 | * Makefile.in (all_deps_files): New variable. | |
1069 | Include .Po files using all_deps_files. | |
1070 | ||
2ee0c9b3 JB |
1071 | 2017-12-01 Joel Brobecker <brobecker@adacore.com> |
1072 | ||
1073 | * MAINTAINERS: Update list of maintainers, moving those who | |
1074 | stepped down or became inactive to the "Past Maintainers" | |
1075 | section. | |
1076 | ||
44122162 RO |
1077 | 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1078 | ||
1079 | * configure.ac Don't check for sys/fault.h, sys/syscall.h, | |
1080 | sys/proc.h. | |
1081 | (NEW_PROC_API): Remove. | |
1082 | (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t): | |
1083 | Likewise. | |
1084 | * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h. | |
1085 | * configure: Regenerate. | |
1086 | * config.in: Regenerate. | |
1087 | * gdbserver/configure: Regenerate. | |
1088 | * gdbserver/config.in: Regenerate. | |
1089 | ||
1090 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove | |
1091 | NEW_PROC_API test. | |
1092 | * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise. | |
1093 | ||
1094 | * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test. | |
1095 | ||
1096 | * proc-api.c: Remove !NEW_PROC_API support. | |
1097 | Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests. | |
1098 | Remove tests for macros always defined on Solaris. | |
1099 | * proc-events.c: Remove !NEW_PROC_API support. | |
1100 | Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and | |
1101 | HAVE_SYS_USER_H tests. | |
1102 | (init_syscall_table): Remove non-Solaris syscalls. | |
1103 | Remove tests for syscalls present on all Solaris versions. | |
1104 | Add missing Solaris 10+ syscalls. | |
1105 | (signal_table): Remove non-Solaris signals. | |
1106 | Remove tests for signals present on all Solaris versions. | |
1107 | (fault_table): Remove non-Solaris faults. | |
1108 | Remove tests for faults present on all Solaris versions. | |
1109 | * proc-flags.c: Remove !NEW_PROC_API support. | |
1110 | (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments. | |
1111 | Remove non-Solaris flags. | |
1112 | * proc-why.c: Remove !NEW_PROC_API support. | |
1113 | (pr_why_table): Remove meaningless comments. | |
1114 | Remove tests for reasons present on all Solaris versions. | |
1115 | Remove OSF/1 cases. | |
1116 | (proc_prettyfprint_why): Likewise. | |
1117 | ||
1118 | * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support. | |
1119 | Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests. | |
1120 | Remove WA_READ test, IRIX watchpoint support. | |
1121 | (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base | |
1122 | types. Change users. | |
1123 | (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset) | |
1124 | (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros. | |
1125 | Change callers. | |
1126 | Remove CTL_PROC_NAME_FMT tests. | |
1127 | (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change | |
1128 | users. | |
1129 | (sysset_t_size): Remove. Use sizeof (sysset_t) in callers. | |
1130 | Remove PROCFS_DONT_PIOCSSIG_CURSIG support. | |
1131 | (proc_modify_flag): Replace GDBRESET by PCUNSET. | |
1132 | Remove PR_ASYNC, PR_KLC tests. | |
1133 | (proc_unset_inherit_on_fork): Remove PR_ASYNC test. | |
1134 | (proc_parent_pid): Remove PCWATCH etc. tests. | |
1135 | (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support. | |
1136 | Remove PCAGENT test. | |
1137 | (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove. | |
1138 | Remove SYS_lwpcreate || SYS_lwp_create test. | |
1139 | (proc_get_current_thread): Likewise. | |
1140 | [PIOCNTHR && PIOCTLIST]: Remove. | |
1141 | [PIOCLSTATUS]: Remove. | |
1142 | (procfs_debug_inferior): Remove non-Solaris cases, conditionals. | |
1143 | [PRFS_STOPEXEC]: Remove. | |
1144 | (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals. | |
1145 | (syscall_is_exit): Likewise. | |
1146 | (syscall_is_exec): Likewise. | |
1147 | (syscall_is_lwp_create): Likewise. | |
1148 | Remove SYS_syssgi support. | |
1149 | (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests. | |
1150 | [SYS_syssgi]: Remove. | |
1151 | Remove non-Solaris cases, conditionals. | |
1152 | (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]: | |
1153 | Remove. | |
1154 | (procfs_init_inferior) [SYS_syssgi]: Remove. | |
1155 | (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove. | |
1156 | (procfs_inferior_created) [SYS_syssgi]: Remove. | |
1157 | (procfs_set_watchpoint): Remove !AIX5 test. | |
1158 | (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH | |
1159 | case. | |
1160 | (mappingflags) [MA_PHYS]: Remove. | |
1161 | (info_mappings_callback): Remove PCAGENT test. | |
1162 | Remove PIOCOPENLWP || PCAGENT test. | |
1163 | ||
e8020e54 RO |
1164 | 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1165 | ||
1166 | * sol-thread.c (info_solthreads): Constify args. | |
1167 | Cast args to void *. | |
1168 | ||
75059544 JB |
1169 | 2017-11-29 John Baldwin <jhb@FreeBSD.org> |
1170 | ||
1171 | * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T. | |
1172 | ||
f5a91472 JB |
1173 | 2017-11-29 Joel Brobecker <brobecker@adacore.com> |
1174 | ||
1175 | * ada-lang.c (to_fixed_range_type): Make sure that the size | |
1176 | of the range type being returned is the same as the size | |
1177 | of the range type being fixed. | |
1178 | ||
bd69330d PA |
1179 | 2017-11-29 Pedro Alves <palves@redhat.com> |
1180 | ||
1181 | PR c++/19436 | |
1182 | * NEWS: Mention setting breakpoints on functions with C++ ABI | |
1183 | tags. | |
1184 | * completer.h (completion_match_for_lcd) <match, | |
1185 | mark_ignored_range>: New methods. | |
1186 | <finish>: Consider ignored ranges. | |
1187 | <clear>: Clear ignored ranges. | |
1188 | <m_ignored_ranges, m_finished_storage>: New fields. | |
1189 | * cp-support.c (cp_search_name_hash): Ignore ABI tags. | |
1190 | (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the | |
1191 | completion_match_for_lcd pointer to strncmp_iw_with_mode. | |
1192 | (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests. | |
1193 | * language.c (default_symbol_name_matcher): Pass the | |
1194 | completion_match_for_lcd pointer to strncmp_iw_with_mode. | |
1195 | * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags. | |
1196 | * utils.c (skip_abi_tag): New function. | |
1197 | (strncmp_iw_with_mode): Add completion_match_for_lcd parameter. | |
1198 | Handle ABI tags. | |
1199 | * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd | |
1200 | parameter. | |
1201 | ||
1202 | 2017-11-29 Pedro Alves <palves@redhat.com> | |
1203 | ||
1204 | PR c++/19436 | |
1205 | * NEWS: Mention setting breakpoints on functions with C++ ABI | |
1206 | tags. | |
1207 | * completer.h (completion_match_for_lcd) <match, | |
1208 | mark_ignored_range>: New methods. | |
1209 | <finish>: Consider ignored ranges. | |
1210 | <clear>: Clear ignored ranges. | |
1211 | <m_ignored_ranges, m_finished_storage>: New fields. | |
1212 | * cp-support.c (cp_search_name_hash): Ignore ABI tags. | |
1213 | (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the | |
1214 | completion_match_for_lcd pointer to strncmp_iw_with_mode. | |
1215 | (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests. | |
1216 | * language.c (default_symbol_name_matcher): Pass the | |
1217 | completion_match_for_lcd pointer to strncmp_iw_with_mode. | |
1218 | * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags. | |
1219 | * utils.c (skip_abi_tag): New function. | |
1220 | (strncmp_iw_with_mode): Add completion_match_for_lcd parameter. | |
1221 | Handle ABI tags. | |
1222 | * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd | |
1223 | parameter. | |
1224 | ||
a20714ff PA |
1225 | 2017-11-29 Pedro Alves <palves@redhat.com> |
1226 | ||
1227 | * NEWS: Mention that breakpoints on C++ functions are now set on | |
1228 | on all namespaces/classes by default, and mention "break | |
1229 | -qualified". | |
1230 | * ax-gdb.c (agent_command_1): Adjust to pass a | |
1231 | symbol_name_match_type to new_linespec_location. | |
1232 | * breakpoint.c (parse_breakpoint_sals): Adjust to | |
1233 | get_linespec_location's return type change. | |
1234 | (strace_marker_create_sals_from_location): Adjust to pass a | |
1235 | symbol_name_match_type to new_linespec_location. | |
1236 | (strace_marker_decode_location): Adjust to get_linespec_location's | |
1237 | return type change. | |
1238 | (strace_command): Adjust to pass a symbol_name_match_type to | |
1239 | new_linespec_location. | |
1240 | (LOCATION_HELP_STRING): Add paragraph about wildmatching, and | |
1241 | mention "-qualified". | |
1242 | * c-lang.c (cplus_language_defn): Install cp_search_name_hash. | |
1243 | * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New | |
1244 | enumerator. | |
1245 | (complete_address_and_linespec_locations): New parameter | |
1246 | 'match_type'. Pass it down. | |
1247 | (explicit_options): Add "-qualified". | |
1248 | (collect_explicit_location_matches): Pass the requested match type | |
1249 | to the linespec completers. Handle MATCH_QUALIFIED. | |
1250 | (location_completer): Handle "-qualified" combined with linespecs. | |
1251 | * cp-support.c (cp_search_name_hash): New. | |
1252 | (cp_symbol_name_matches_1): Implement wild matching for C++. | |
1253 | (cp_fq_symbol_name_matches): Reimplement. | |
1254 | (cp_get_symbol_name_matcher): Return different matchers depending | |
1255 | on the lookup name's match type. | |
1256 | (selftests::test_cp_symbol_name_matches): Add wild matching tests. | |
1257 | * cp-support.h (cp_search_name_hash): New declaration. | |
1258 | * dwarf2read.c | |
1259 | (selftests::dw2_expand_symtabs_matching::test_symbols): Add | |
1260 | symbols. | |
1261 | (test_dw2_expand_symtabs_matching_symbol): Add wild matching | |
1262 | tests. | |
1263 | * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to | |
1264 | pass a symbol_name_match_type to new_linespec_location. | |
1265 | * linespec.c (linespec_parse_basic): Lookup function symbols using | |
1266 | the parser's symbol name match type. | |
1267 | (convert_explicit_location_to_linespec): New | |
1268 | symbol_name_match_type parameter. Pass it down to | |
1269 | find_linespec_symbols. | |
1270 | (convert_explicit_location_to_sals): Pass the location's name | |
1271 | match type to convert_explicit_location_to_linespec. | |
1272 | (parse_linespec): New match_type parameter. Save it in the | |
1273 | parser. | |
1274 | (linespec_parser_new): Default to symbol_name_match_type::WILD. | |
1275 | (linespec_complete_function): New symbol_name_match_type | |
1276 | parameter. Use it. | |
1277 | (complete_linespec_component): Pass down the parser's recorded | |
1278 | name match type. | |
1279 | (linespec_complete_label): New symbol_name_match_type parameter. | |
1280 | Use it. | |
1281 | (linespec_complete): New symbol_name_match_type parameter. Save | |
1282 | it in the parser and pass it down. Adjust to | |
1283 | get_linespec_location's prototype change. | |
1284 | (find_function_symbols, find_linespec_symbols): New | |
1285 | symbol_name_match_type parameter. Pass it down instead of | |
1286 | assuming symbol_name_match_type::WILD. | |
1287 | * linespec.h (linespec_complete, linespec_complete_function) | |
1288 | (linespec_complete_label): New symbol_name_match_type parameter. | |
1289 | * location.c (event_location::linespec_location): Now a struct | |
1290 | linespec_location. | |
1291 | (EL_LINESPEC): Adjust. | |
1292 | (initialize_explicit_location): Default to | |
1293 | symbol_name_match_type::WILD. | |
1294 | (new_linespec_location): New symbol_name_match_type parameter. | |
1295 | Record it in the location. | |
1296 | (get_linespec_location): Now returns a struct linespec_location. | |
1297 | (new_explicit_location): Also copy func_name_match_type. | |
1298 | (explicit_to_string_internal) | |
1299 | (string_to_explicit_location): Handle "-qualified". | |
1300 | (copy_event_location): Adjust to LINESPEC_LOCATION type change. | |
1301 | Copy symbol_name_match_type fields. | |
1302 | (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION | |
1303 | type change. | |
1304 | (event_location_to_string): Adjust to LINESPEC_LOCATION type | |
1305 | change. Handle "-qualfied". | |
1306 | (string_to_explicit_location): Handle "-qualified". | |
1307 | (string_to_event_location_basic): New symbol_name_match_type | |
1308 | parameter. Pass it down. | |
1309 | (string_to_event_location): Handle "-qualified". | |
1310 | * location.h (struct linespec_location): New. | |
1311 | (explicit_location::func_name_match_type): New field. | |
1312 | (new_linespec_location): Now returns a const linespec_location *. | |
1313 | (string_to_event_location_basic): New symbol_name_match_type | |
1314 | parameter. | |
1315 | (explicit_completion_info::saw_explicit_location_option): New | |
1316 | field. | |
1317 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a | |
1318 | symbol_name_match_type to new_linespec_location. | |
1319 | * python/py-breakpoint.c (bppy_init): Likewise. | |
1320 | * python/python.c (gdbpy_decode_line): Likewise. | |
1321 | ||
a207cff2 PA |
1322 | 2017-11-29 Pedro Alves <palves@redhat.com> |
1323 | ||
1324 | * ada-lang.c (ada_lookup_name_info::matches): Change type of | |
1325 | parameter from completion_match to completion_match_result. | |
1326 | Adjust. | |
1327 | (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise. | |
1328 | * completer.c (completion_tracker::maybe_add_completion): Add | |
1329 | match_for_lcd parameter and use it. | |
1330 | (completion_tracker::add_completion): Likewise. | |
1331 | * completer.h (class completion_match_for_lcd): New class. | |
1332 | (completion_match_result::match_for_lcd): New field. | |
1333 | (completion_match_result::set_match): New method. | |
1334 | (completion_tracker): Add comments. | |
1335 | (completion_tracker::add_completion): Add match_for_lcd parameter. | |
1336 | (completion_tracker::reset_completion_match_result): Reset | |
1337 | match_for_lcd too. | |
1338 | (completion_tracker::maybe_add_completion): Add match_for_lcd | |
1339 | parameter. | |
1340 | (completion_tracker::m_lowest_common_denominator_unique): Extend | |
1341 | comments. | |
1342 | * cp-support.c (cp_symbol_name_matches_1) | |
1343 | (cp_fq_symbol_name_matches): Change type of parameter from | |
1344 | completion_match to completion_match_result. Adjust. | |
1345 | * language.c (default_symbol_name_matcher): Change type of | |
1346 | parameter from completion_match to completion_match_result. | |
1347 | Adjust. | |
1348 | * language.h (completion_match_for_lcd): Forward declare. | |
1349 | (default_symbol_name_matcher): Change type of parameter from | |
1350 | completion_match to completion_match_result. | |
1351 | * symtab.c (compare_symbol_name): Adjust. | |
1352 | (completion_list_add_name): Pass the match_for_lcd to the tracker. | |
1353 | * symtab.h (ada_lookup_name_info::matches): Change type of | |
1354 | parameter from completion_match to completion_match_result. | |
1355 | (symbol_name_matcher_ftype): Likewise, and update comments. | |
1356 | ||
4024cf2b PA |
1357 | 2017-11-29 Pedro Alves <palves@redhat.com> |
1358 | ||
1359 | * linespec.c (minsym_found, add_minsym): Use msymbol_is_function. | |
1360 | * minsyms.c (msymbol_is_text): Delete. | |
1361 | (msymbol_is_function): New function. | |
1362 | * minsyms.h (msymbol_is_text): Delete. | |
1363 | (msymbol_is_function): New declaration. | |
1364 | * symtab.c (find_function_alias_target): Use msymbol_is_function. | |
1365 | ||
5dcf52c1 TT |
1366 | 2017-11-29 Tom Tromey <tom@tromey.com> |
1367 | ||
1368 | * Makefile.in (distclean): Handle the case where rmdir fails. | |
1369 | ||
8ca2f0b9 TT |
1370 | 2017-11-29 Tom Tromey <tom@tromey.com> |
1371 | ||
1372 | * symfile.c (_initialize_symfile): Update usage text for | |
1373 | add-symbol-file, symbol-file, load. | |
1374 | ||
02ca603a TT |
1375 | 2017-11-29 Tom Tromey <tom@tromey.com> |
1376 | ||
1377 | * symfile.c (add_symbol_file_command): Error if some arguments to | |
1378 | -s are missing. Change unrecognized-argument error message. | |
1379 | (_initialize_symfile): Fix usage text for add-symbol-file. | |
1380 | ||
18ca7347 TT |
1381 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1382 | ||
1383 | * Makefile.in (REMOTE_OBS): Remove. | |
1384 | (SFILES): Remove remote sources. | |
1385 | (COMMON_SFILES): Add remote sources. | |
1386 | (ALLDEPFILES): Remove dcache.c. | |
1387 | ||
66599a7d TT |
1388 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1389 | ||
1390 | * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New | |
1391 | variables. | |
1392 | (SFILES): Use SUBDIR_TARGET_SRCS. | |
1393 | (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o. | |
1394 | (CONFIG_SRC_SUBDIR): Add target. | |
1395 | (%.o): Remove target rule. | |
1396 | ||
4f04fba8 TT |
1397 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1398 | ||
1399 | * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o, | |
1400 | registry.o, thread-fsm.o, debug.o. | |
1401 | (COMMON_SFILES): Add filename-seen-cache.c, registry.c, | |
1402 | thread-fsm.c, debug.c. | |
1403 | ||
b5adff3b TT |
1404 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1405 | ||
1406 | * Makefile.in (COMMON_SFILES): New. | |
1407 | (SFILES): Move some entries to COMMON_SFILES. | |
1408 | (COMMON_OBS): Use COMMON_SFILES. | |
1409 | ||
afa0a411 TT |
1410 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1411 | ||
1412 | * Makefile.in (YYFILES): Update comment. | |
1413 | (YYOBJ): Redefine. | |
1414 | ||
8fd8d003 TT |
1415 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1416 | ||
1417 | * Makefile.in (SUBDIR_PYTHON_OBS): Redefine. | |
1418 | (CONFIG_SRC_SUBDIR): Add python. | |
1419 | (%.o): Remove python rule. | |
1420 | (python/%.o): New rule. | |
1421 | * configure: Rebuild. | |
1422 | * configure.ac (CONFIG_OBS): Refer to python/python.o | |
1423 | ||
bd810fff TT |
1424 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1425 | ||
1426 | * configure: Rebuild. | |
1427 | * configure.ac (CONFIG_OBS): Refer to guile/guile.o. | |
1428 | * Makefile.in (SUBDIR_GUILE_OBS): Redefine. | |
1429 | (CONFIG_SRC_SUBDIR): Add guile. | |
1430 | (%.o): Remove guile rule. | |
1431 | ||
75787ac1 TT |
1432 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1433 | ||
1434 | * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine. | |
1435 | (%.o): Remove unittests rule. | |
1436 | (CONFIG_SRC_SUBDIR): Add unittests. | |
1437 | ||
5c8a9431 TT |
1438 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1439 | ||
1440 | * Makefile.in (SUBDIR_TUI_OBS): Redefine. | |
1441 | (CONFIG_SRC_SUBDIR): Add tui. | |
1442 | (%.o): Remove tui rule. | |
1443 | ||
a26aa30c TT |
1444 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1445 | ||
1446 | * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine. | |
1447 | (%.o): Remove compile rule. | |
1448 | (CONFIG_SRC_SUBDIR): Add compile. | |
1449 | ||
6f3cdf9a TT |
1450 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1451 | ||
1452 | * Makefile.in (SUBDIR_MI_OBS): Redefine. | |
1453 | (%.o): Remove mi rule. | |
1454 | (CONFIG_SRC_SUBDIR): Add mi. | |
1455 | (COMMON_OBS): Use mi/mi-common.o | |
1456 | ||
f06afa53 TT |
1457 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1458 | ||
1459 | * Makefile.in (SUBDIR_CLI_OBS): Redefine. | |
1460 | (%.o): Remove cli rule. | |
1461 | (CONFIG_SRC_SUBDIR): Add cli. | |
1462 | ||
b22c88c2 TT |
1463 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1464 | ||
1465 | * configure.ac (CONFIG_SRC_SUBDIR): Don't subst. | |
1466 | * configure: Rebuild. | |
1467 | * Makefile.in (CONFIG_SRC_SUBDIR): Redefine. | |
1468 | (CONFIG_DEP_SUBDIR): New variable. | |
1469 | (%.o): Add order-only dependency. | |
1470 | ($(CONFIG_DEP_SUBDIR)): New target. | |
1471 | ||
ee9a09e9 DC |
1472 | 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com> |
1473 | ||
1474 | PR gdb/21945 | |
1475 | * findcmd.c (_initialize_mem_search): Update find command help | |
1476 | text. | |
1477 | ||
e8e7d10c SM |
1478 | 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca> |
1479 | ||
1480 | * python/python.c (do_start_initialization): Change progname | |
1481 | type to gdb::unique_xmalloc_ptr. Release the pointer when using | |
1482 | Python 2. | |
1483 | ||
6a997029 TT |
1484 | 2017-11-26 Tom Tromey <tom@tromey.com> |
1485 | ||
1486 | * common/format.h: Add include guards. | |
1487 | ||
41272101 TT |
1488 | 2017-11-26 Tom Tromey <tom@tromey.com> |
1489 | ||
1490 | * nat/linux-personality.h (class | |
1491 | maybe_disable_address_space_randomization): New class. | |
1492 | (maybe_disable_address_space_randomization): Don't declare | |
1493 | function. | |
1494 | * nat/linux-personality.c (restore_personality) | |
1495 | (make_disable_asr_cleanup): Remove. | |
1496 | (maybe_disable_address_space_randomization): Now a constructor. | |
1497 | (~maybe_disable_address_space_randomization): New destructor. | |
1498 | * linux-nat.c (linux_nat_create_inferior): Update. | |
1499 | ||
44287fd8 TT |
1500 | 2017-11-26 Tom Tromey <tom@tromey.com> |
1501 | ||
1502 | * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr. | |
1503 | ||
5ffd2cb7 UW |
1504 | 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com> |
1505 | ||
1506 | * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as | |
1507 | "cooked" register. Access only first four bytes of branch target | |
1508 | registers. | |
1509 | ||
0e5457dc SDJ |
1510 | 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com> |
1511 | ||
1512 | PR gdb/22491 | |
1513 | * stap-probe.c (relocate_address): New function. | |
1514 | (stap_probe::get_relocated_address): Use 'relocate_address'. | |
1515 | (stap_probe::set_semaphore): Use 'relocate_address' and pass | |
1516 | 'm_sem_addr'. | |
1517 | (stap_probe::clear_semaphore): Likewise. | |
1518 | ||
deeeba55 PA |
1519 | 2017-11-25 Pedro Alves <palves@redhat.com> |
1520 | ||
1521 | * dictionary.c: Include "safe-ctype.h". | |
1522 | * minsyms.c: Include "safe-ctype.h". | |
1523 | * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower. | |
1524 | ||
a81aaca0 PA |
1525 | 2017-11-25 Pedro Alves <palves@redhat.com> |
1526 | ||
1527 | * completer.c (complete_line_internal_1): Skip spaces until the | |
1528 | start of the command. | |
1529 | ||
0662b6a7 PA |
1530 | 2017-11-24 Pedro Alves <palves@redhat.com> |
1531 | ||
1532 | * cp-support.c (cp_symbol_name_matches_1): New, factored out from | |
1533 | cp_fq_symbol_name_matches. Pass language_cplus to | |
1534 | strncmp_with_mode. | |
1535 | (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1. | |
1536 | (selftests::test_cp_symbol_name_cmp): New. | |
1537 | (_initialize_cp_support): Register "cp_symbol_name_matches" | |
1538 | selftests. | |
1539 | * language.c (default_symbol_name_matcher): Pass language_minimal | |
1540 | to strncmp_iw_with_mode. | |
1541 | * utils.c: Include "cp-support.h" and <algorithm>. | |
1542 | (valid_identifier_name_char, cp_skip_operator_token, skip_ws) | |
1543 | (cp_is_operator): New functions. | |
1544 | (strncmp_iw_with_mode): Use them. Add language parameter. Don't | |
1545 | skip whitespace in the symbol name when the lookup name doesn't | |
1546 | have spaces, and vice versa. | |
1547 | (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode. | |
1548 | * utils.h (strncmp_iw_with_mode): Add language parameter. | |
1549 | ||
e547c119 JB |
1550 | 2017-11-24 Joel Brobecker <brobecker@adacore.com> |
1551 | ||
1552 | * ada-lang.c (ada_exception_message_1, ada_exception_message): | |
1553 | New functions. | |
1554 | (print_it_exception): If available, display the exception | |
1555 | message as well. | |
1556 | * NEWS: Document new feature. | |
1557 | ||
d7fcdff9 UW |
1558 | 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com> |
1559 | ||
1560 | * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES. | |
1561 | ||
30649c14 PR |
1562 | 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com> |
1563 | ||
1564 | * dtrace-probe.c (dtrace_probe::build_arg_exprs) | |
1565 | (dtrace_probe::is_enabled, dtrace_probe::enable) | |
1566 | (dtrace_probe::disable): Remove keyword 'struct' at for-range | |
1567 | variable | |
1568 | * probe.c (gen_ui_out_table_header_info) | |
1569 | (print_ui_out_not_applicables): Remove keyword 'struct' at | |
1570 | for-range variable | |
1571 | ||
7696f5c9 AH |
1572 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> |
1573 | ||
1574 | * configure.tgt: Add arch/aarch64.o | |
1575 | ||
8172f16b SM |
1576 | 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca> |
1577 | ||
1578 | * common/common-utils.h: Include poison.h. | |
1579 | (xfree): Remove declaration, add definition with static_assert. | |
1580 | * common/common-utils.c (xfree): Remove. | |
1581 | * common/poison.h (IsMallocatable): Define. | |
1582 | (IsFreeable): Define. | |
1583 | (free): Delete for non-freeable types. | |
1584 | (xnew): New. | |
1585 | (XNEW): Undef and redefine. | |
1586 | (xcnew): New. | |
1587 | (XCNEW): Undef and redefine. | |
1588 | (xdelete): New. | |
1589 | (XDELETE): Undef and redefine. | |
1590 | (xnewvec): New. | |
1591 | (XNEWVEC): Undef and redefine. | |
1592 | (xcnewvec): New. | |
1593 | (XCNEWVEC): Undef and redefine. | |
1594 | (xresizevec): New. | |
1595 | (XRESIZEVEC): Undef and redefine. | |
1596 | (xdeletevec): New. | |
1597 | (XDELETEVEC): Undef and redefine. | |
1598 | (xnewvar): New. | |
1599 | (XNEWVAR): Undef and redefine. | |
1600 | (xcnewvar): New. | |
1601 | (XCNEWVAR): Undef and redefine. | |
1602 | (xresizevar): New. | |
1603 | (XRESIZEVAR): Undef and redefine. | |
1604 | ||
7aabaf9d SM |
1605 | 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca> |
1606 | ||
1607 | * gdbthread.h (private_thread_info): Define structure type, add | |
1608 | virtual pure destructor. | |
1609 | (thread_info) <priv>: Change type to unique_ptr. | |
1610 | <private_dtor>: Remove. | |
1611 | * thread.c (add_thread_with_info): Adjust to use of unique_ptr. | |
1612 | (private_thread_info::~private_thread_info): Provide default | |
1613 | implementation. | |
1614 | (thread_info::~thread_info): Don't call private_dtor nor | |
1615 | manually free priv. | |
1616 | * aix-thread.c (private_thread_info): Rename to ... | |
1617 | (aix_thread_info): ... this. | |
1618 | (get_aix_thread_info): New. | |
1619 | (sync_threadlists): Adjust. | |
1620 | (iter_tid): Adjust. | |
1621 | (aix_thread_resume): Adjust. | |
1622 | (aix_thread_fetch_registers): Adjust. | |
1623 | (aix_thread_store_registers): Adjust. | |
1624 | (aix_thread_extra_thread_info): Adjust. | |
1625 | * darwin-nat.h (private_thread_info): Rename to ... | |
1626 | (darwin_thread_info): ... this. | |
1627 | (get_darwin_thread_info): New. | |
1628 | * darwin-nat.c (darwin_init_thread_list): Adjust. | |
1629 | (darwin_check_new_threads): Adjust. | |
1630 | (thread_info_from_private_thread_info): Adjust. | |
1631 | * linux-thread-db.c (private_thread_info): Rename to ... | |
1632 | (thread_db_thread_info): ... this, initialize fields. | |
1633 | (get_thread_db_thread_info): New. | |
1634 | <dying>: Change type to bool. | |
1635 | (update_thread_state): Adjust to type rename. | |
1636 | (record_thread): Adjust to type rename an use of unique_ptr. | |
1637 | (thread_db_pid_to_str): Likewise. | |
1638 | (thread_db_extra_thread_info): Likewise. | |
1639 | (thread_db_thread_handle_to_thread_info): Likewise. | |
1640 | (thread_db_get_thread_local_address): Likewise. | |
1641 | * nto-tdep.h (private_thread_info): Rename to ... | |
1642 | (nto_thread_info): ... this, initialize fields. | |
1643 | (get_nto_thread_info): New. | |
1644 | <name>: Change type to std::string. | |
1645 | * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and | |
1646 | use of unique_ptr. | |
1647 | * nto-procfs.c (update_thread_private_data_name): Adjust to | |
1648 | std::string change, allocate nto_private_thread_info with new. | |
1649 | (update_thread_private_data): Adjust to unique_ptr. | |
1650 | * remote.c (private_thread_info): Rename to ... | |
1651 | (remote_thread_info): ... this, initialize data members with | |
1652 | default values. | |
1653 | <extra, name>: Change type to std::string. | |
1654 | <thread_handle>: Change type to non-pointer. | |
1655 | (free_private_thread_info): Remove. | |
1656 | (get_private_info_thread): Rename to... | |
1657 | (get_remote_thread_info): ... this, change return type, adjust to | |
1658 | use of unique_ptr, use remote_thread_info constructor. | |
1659 | (remote_add_thread): Adjust. | |
1660 | (get_private_info_ptid): Rename to... | |
1661 | (get_remote_thread_info): ...this, change return type. | |
1662 | (remote_thread_name): Use get_remote_thread_info, adjust to | |
1663 | change to std::string. | |
1664 | (struct thread_item) <~thread_item>: Remove. | |
1665 | <thread_handle>: Make non pointer. | |
1666 | (start_thread): Adjust to thread_item::thread_handle type | |
1667 | change. | |
1668 | (remote_update_thread_list): Adjust to type name change, move | |
1669 | strings from temporary to long-lived object instead of | |
1670 | duplicating. | |
1671 | (remote_threads_extra_info): Use get_remote_thread_info. | |
1672 | (process_initial_stop_replies): Likewise. | |
1673 | (resume_clear_thread_private_info): Likewise. | |
1674 | (remote_resume): Adjust to type name change. | |
1675 | (remote_commit_resume): Use get_remote_thread_info. | |
1676 | (process_stop_reply): Adjust to type name change. | |
1677 | (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info. | |
1678 | (remote_stopped_by_hw_breakpoint): Likewise. | |
1679 | (remote_stopped_by_watchpoint): Likewise. | |
1680 | (remote_stopped_data_address): Likewise. | |
1681 | (remote_core_of_thread): Likewise. | |
1682 | (remote_thread_handle_to_thread_info): Use | |
1683 | get_private_info_thread, adjust to thread_handle field type | |
1684 | change. | |
1685 | ||
21fe1c75 SM |
1686 | 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca> |
1687 | ||
1688 | * remote.c (struct thread_item): Add constructor, disable copy | |
1689 | construction and copy assignment, define default move | |
1690 | construction and move assignment. | |
1691 | <extra, name>: Change type to std::string. | |
1692 | <core>: Initialize. | |
1693 | <thread_handle>: Make non-pointer. | |
1694 | (thread_item_t): Remove typedef. | |
1695 | (DEF_VEC_O(thread_item_t)): Remove. | |
1696 | (threads_listing_context) <contains_thread>: New method. | |
1697 | <remove_thread>: New method. | |
1698 | <items>: Change type to std::vector. | |
1699 | (clear_threads_listing_context): Remove. | |
1700 | (threads_listing_context_remove): Remove. | |
1701 | (remote_newthread_step): Use thread_item constructor, adjust to | |
1702 | change to std::vector. | |
1703 | (start_thread): Use thread_item constructor, adjust to change to | |
1704 | std::vector. | |
1705 | (end_thread): Adjust to change to std::vector and std::string. | |
1706 | (remote_get_threads_with_qthreadinfo): Use thread_item | |
1707 | constructor, adjust to std::vector. | |
1708 | (remote_update_thread_list): Adjust to change to std::vector and | |
1709 | std::string, use threads_listing_context methods. | |
1710 | (remove_child_of_pending_fork): Adjust. | |
1711 | (remove_new_fork_children): Adjust. | |
1712 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c. | |
1713 | (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o. | |
1714 | * unittests/rsp-low-selftests.c: New file. | |
1715 | * common/rsp-low.h: Include common/byte-vector.h. | |
1716 | (hex2bin): New overload. | |
1717 | * common/rsp-low.c (hex2bin): New overload. | |
1718 | ||
089354bb SM |
1719 | 2017-11-24 Simon Marchi <simon.marchi@ericsson.com> |
1720 | ||
1721 | * inferior.h (private_inferior): Define structure type, add | |
1722 | virtual pure destructor. | |
1723 | (inferior) <priv>: Change type to unique_ptr. | |
1724 | * inferior.c (private_inferior::~private_inferior): Provide | |
1725 | default implementation. | |
1726 | (inferior::~inferior): Don't free priv field. | |
1727 | (exit_inferior_1): Likewise. | |
1728 | * darwin-nat.h (struct darwin_exception_info): Initialize fields. | |
1729 | (darwin_exception_info): Remove typedef. | |
1730 | (DEF_VEC_O (darwin_thread_t)); Remove. | |
1731 | (private_inferior): Rename to ... | |
1732 | (darwin_private_inferior): ... this, extend private_inferior. | |
1733 | (get_darwin_inferior): New. | |
1734 | <threads>: Change type to std::vector of darwin_thread_t pointers. | |
1735 | * darwin-nat.c (darwin_check_new_threads): Adjust. | |
1736 | (find_inferior_task_it): Adjust. | |
1737 | (darwin_find_thread); Adjust. | |
1738 | (darwin_suspend_inferior): Adjust. | |
1739 | (darwin_resume_inferior): Adjust. | |
1740 | (darwin_find_new_inferior): Adjust. | |
1741 | (darwin_decode_notify_message): Adjust. | |
1742 | (darwin_send_reply): Adjust. | |
1743 | (darwin_resume_inferior_threads): Adjust. | |
1744 | (darwin_suspend_inferior_threads): Adjust. | |
1745 | (darwin_decode_message): Adjust. | |
1746 | (darwin_wait): Adjust. | |
1747 | (darwin_interrupt): Adjust. | |
1748 | (darwin_deallocate_threads): Adjust. | |
1749 | (darwin_mourn_inferior): Adjust, don't free private data. | |
1750 | (darwin_reply_to_all_pending_messages): Adjust. | |
1751 | (darwin_stop_inferior): Adjust. | |
1752 | (darwin_setup_exceptions): Adjust. | |
1753 | (darwin_kill_inferior): Adjust. | |
1754 | (darwin_setup_request_notification): Adjust. | |
1755 | (darwin_attach_pid): Adjust. | |
1756 | (darwin_init_thread_list): Adjust. | |
1757 | (darwin_setup_fake_stop_event): Adjust. | |
1758 | (darwin_attach): Adjust. | |
1759 | (darwin_detach): Adjust. | |
1760 | (darwin_xfer_partial): Adjust. | |
1761 | (set_enable_mach_exceptions): Adjust. | |
1762 | (darwin_pid_to_exec_file): Adjust. | |
1763 | (darwin_get_ada_task_ptid): Adjust. | |
1764 | * darwin-nat-info.c (get_task_from_args): Adjust. | |
1765 | (info_mach_ports_command): Adjust. | |
1766 | (info_mach_region_command): Adjust. | |
1767 | (info_mach_exceptions_command): Adjust. | |
1768 | * remote.c (private_inferior): Rename to ... | |
1769 | (remote_private_inferior): ... this, initialize fields. | |
1770 | (get_remote_inferior); New. | |
1771 | (remote_commit_resume): Use get_remote_inferior. | |
1772 | (check_pending_event_prevents_wildcard_vcont_callback): Likewise. | |
1773 | ||
d044bac8 PA |
1774 | 2017-11-24 Pedro Alves <palves@redhat.com> |
1775 | ||
1776 | * NEWS: Mention linespecs and explicit locations, and completion | |
1777 | improvements. | |
1778 | ||
e8d58cba YQ |
1779 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
1780 | ||
1781 | * regcache.c (regcache::dump): Remove footnote_register_size. | |
1782 | ||
a63f2d2f YQ |
1783 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
1784 | ||
1785 | * regcache.c (cooked_read_test): Add more test for readonly | |
1786 | regcache. | |
1787 | ||
1b30aaa5 YQ |
1788 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
1789 | ||
1790 | * gdbarch-selftests.c (test_target_has_registers): Move it to | |
1791 | target.c. | |
1792 | (test_target_has_stack): Likewise. | |
1793 | (test_target_has_memory): Likewise. | |
1794 | (test_target_prepare_to_store): Likewise. | |
1795 | (test_target_store_registers): Likewise. | |
1796 | (test_target_ops): Likewise. | |
1797 | * regcache.c: Include selftest-arch.h and gdbthread.h. | |
1798 | (target_ops_no_register): New class. | |
1799 | (test_target_fetch_registers): New. | |
1800 | (test_target_store_registers): New. | |
1801 | (test_target_xfer_partial): New. | |
1802 | (readwrite_regcache): New. | |
1803 | (cooked_read_test): New. | |
1804 | (_initialize_regcache): Register the test. | |
1805 | * target.c: (test_target_has_registers): Moved from | |
1806 | gdbarch-selftests.c. | |
1807 | (test_target_has_stack): Likewise. | |
1808 | (test_target_has_memory): Likewise. | |
1809 | (test_target_prepare_to_store): Likewise. | |
1810 | (test_target_store_registers): Likewise. | |
1811 | * target.h (test_target_ops): New class. | |
1812 | ||
6654d750 AH |
1813 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> |
1814 | ||
1815 | * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc | |
1816 | selftest. | |
1817 | ||
49bdb7ee AH |
1818 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> |
1819 | ||
1820 | * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init. | |
1821 | * arch/aarch64.c (aarch64_create_target_description): Create | |
1822 | new target description. | |
1823 | * features/Makefile: Add new files. | |
1824 | * features/aarch64.c: Remove file. | |
1825 | * features/aarch64-core.c: New autogenerated file. | |
1826 | * features/aarch64-fpu.c: New autogenerated file. | |
1827 | * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64. | |
da434ccb AH |
1828 | |
1829 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> | |
1830 | ||
1831 | * Makefile.in: Add new files. | |
1832 | * aarch64-linux-nat.c (aarch64_linux_read_description): Call | |
1833 | aarch64_read_description. | |
1834 | * aarch64-linux-tdep.c (aarch64_linux_core_read_description): | |
1835 | Call aarch64_read_description. | |
1836 | * aarch64-tdep.c (aarch64_read_description): New function. | |
1837 | (aarch64_gdbarch_init): Call aarch64_read_description. | |
1838 | * aarch64-tdep.h (aarch64_read_description): New function. | |
1839 | * arch/aarch64.c: New file. | |
1840 | * configure.tgt: Add new files. | |
1841 | ||
98ead37e YQ |
1842 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
1843 | ||
1844 | * mi/mi-main.c (register_changed_p): Update. | |
1845 | * value.c (value_contents_bits_eq): Change return type. | |
1846 | (value_contents_eq): Likewise. | |
1847 | * value.h: Update comments. | |
1848 | ||
62ad7ce7 YQ |
1849 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
1850 | ||
1851 | * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove | |
1852 | local 'changed'. Remove error. | |
1853 | (register_changed_p): Change return type to bool. | |
1854 | ||
506fe5f4 YQ |
1855 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
1856 | ||
1857 | * arch/tic6x.c: New file. | |
1858 | * arch/tic6x.h: New file. | |
1859 | * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml, | |
1860 | tic6x-core.xml and tic6x-gp.xml. | |
1861 | * features/tic6x-c6xp.c: Generated. | |
1862 | * features/tic6x-core.c: Generated. | |
1863 | * features/tic6x-gp.c: Generated. | |
1864 | * target-descriptions.c (maint_print_c_tdesc_cmd): Match | |
1865 | "tic6x-". | |
1866 | ||
00ea2e2a SM |
1867 | 2017-11-23 Simon Marchi <simon.marchi@ericsson.com> |
1868 | ||
1869 | * mi/mi-main.c (list_available_thread_groups): Change map value | |
1870 | type to std::vector. | |
1871 | ||
f45e2a77 SM |
1872 | 2017-11-23 Simon Marchi <simon.marchi@ericsson.com> |
1873 | ||
1874 | * osdata.c (osdata_end_column, get_osdata): Remove std::move. | |
1875 | ||
bd046f64 SM |
1876 | 2017-11-23 Simon Marchi <simon.marchi@ericsson.com> |
1877 | ||
1878 | * varobj.c (struct varobj_dynamic) <children_requested_>: Rename | |
1879 | back to... | |
1880 | <children_requested>: ... this. | |
1881 | (varobj_get_num_children, varobj_update): Adjust. | |
1882 | ||
4c37490d SM |
1883 | 2017-11-23 Simon Marchi <simon.marchi@ericsson.com> |
1884 | ||
1885 | * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable. | |
1886 | (ada_value_has_mutated): Likewise. | |
1887 | * c-varobj.c (varobj_is_anonymous_child): Likewise. | |
1888 | (c_is_path_expr_parent): Likewise. | |
1889 | * mi/mi-cmd-var.c (varobj_update_one): Likewise. | |
1890 | (mi_cmd_var_set_frozen): Likewise. | |
1891 | (mi_cmd_var_update_iter): Likewise. | |
1892 | (mi_cmd_var_update): Likewise. | |
1893 | * varobj.c (pretty_printing): Likewise. | |
1894 | (varobj_enable_pretty_printing): Likewise. | |
1895 | (struct varobj_root) <floating, is_valid>: Likewise. | |
1896 | (struct varobj_dynamic) <children_requested>: Likewise. | |
1897 | (delete_variable): Likewise. | |
1898 | (delete_variable_1): Likewise. | |
1899 | (install_variable): Likewise. | |
1900 | (update_type_if_necessary): Likewise. | |
1901 | (install_new_value): Likewise. | |
1902 | (value_of_root): Likewise. | |
1903 | (is_root_p): Likewise. | |
1904 | (varobj_create): Likewise. | |
1905 | (varobj_delete): Likewise. | |
1906 | (varobj_has_more): Likewise. | |
1907 | (varobj_set_frozen): Likewise. | |
1908 | (varobj_get_frozen): Likewise. | |
1909 | (install_dynamic_child): Likewise. | |
1910 | (dynamic_varobj_has_child_method): Likewise. | |
1911 | (update_dynamic_varobj_children): Likewise. | |
1912 | (varobj_get_num_children): Likewise. | |
1913 | (varobj_list_children): Likewise. | |
1914 | (is_path_expr_parent): Likewise. | |
1915 | (varobj_default_is_path_expr_parent): Likewise. | |
1916 | (varobj_is_dynamic_p): Likewise. | |
1917 | (varobj_set_value): Likewise. | |
1918 | (varobj_value_has_mutated): Likewise. | |
1919 | (varobj_update): Likewise. | |
1920 | (check_scope): Likewise. | |
1921 | (value_of_root_1): Likewise. | |
1922 | (varobj_value_get_print_value): Likewise. | |
1923 | (varobj_editable_p): Likewise. | |
1924 | (varobj_value_is_changeable_p): Likewise. | |
1925 | (varobj_floating_p): Likewise. | |
1926 | (varobj_default_value_is_changeable_p): Likewise. | |
1927 | (varobj_invalidate_iter): Likewise. | |
1928 | * varobj.h (struct varobj_update_result) <type_changed, | |
1929 | children_changed, changed, value_installed>: Likewise. | |
1930 | (struct varobj) <updated, frozen, not_fetched>: Likewise. | |
1931 | (struct lang_varobj_ops) <value_is_changeable_p, | |
1932 | value_has_mutated, is_path_expr_parent>: Likewise. | |
1933 | (varobj_delete): Likewise. | |
1934 | (varobj_set_frozen): Likewise. | |
1935 | (varobj_get_frozen): Likewise. | |
1936 | (varobj_set_value): Likewise. | |
1937 | (varobj_update): Likewise. | |
1938 | (varobj_editable_p): Likewise. | |
1939 | (varobj_floating_p): Likewise. | |
1940 | (varobj_has_more): Likewise. | |
1941 | (varobj_is_dynamic_p): Likewise. | |
1942 | (varobj_default_value_is_changeable_p): Likewise. | |
1943 | (varobj_value_is_changeable_p): Likewise. | |
1944 | (varobj_is_anonymous_child): Likewise. | |
1945 | (varobj_default_is_path_expr_parent): Likewise. | |
1946 | ||
9c23b42f SDJ |
1947 | 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com> |
1948 | ||
1949 | * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete. | |
1950 | (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor. | |
1951 | <type_str>: Convert to 'std::string'. | |
1952 | <expr>: Convert to 'expression_up'. | |
1953 | (dtrace_probe_arg_s): Delete type and VEC. | |
1954 | (dtrace_probe_enabler_s): Likewise. | |
1955 | (struct dtrace_probe): Replace by... | |
1956 | (class dtrace_static_probe_ops): ...this and... | |
1957 | (class dtrace_probe): ...this. | |
1958 | (dtrace_probe_is_linespec): Rename to... | |
1959 | (dtrace_static_probe_ops::is_linespec): ...this. Adjust code | |
1960 | to reflect change. | |
1961 | (dtrace_process_dof_probe): Use 'std::vector' instead of VEC. | |
1962 | Adjust code. Create new instance of 'dtrace_probe'. | |
1963 | (dtrace_build_arg_exprs): Rename to... | |
1964 | (dtrace_probe::build_arg_exprs): ...this. Adjust code to | |
1965 | reflect change. | |
1966 | (dtrace_get_probes): Rename to... | |
1967 | (dtrace_static_probe_ops::get_probes): ...this. Adjust code | |
1968 | to reflect change. | |
1969 | (dtrace_get_arg): Rename to... | |
1970 | (dtrace_probe::get_arg_by_number): ...this. Adjust code to | |
1971 | reflect change. | |
1972 | (dtrace_probe_is_enabled): Rename to... | |
1973 | (dtrace_probe::is_enabled): ...this. Adjust code to reflect | |
1974 | change. | |
1975 | (dtrace_get_probe_address): Rename to... | |
1976 | (dtrace_probe::get_relocated_address): ...this. Adjust code | |
1977 | to reflect change. | |
1978 | (dtrace_get_probe_argument_count): Rename to... | |
1979 | (dtrace_probe::get_argument_count): ...this. Adjust code to | |
1980 | reflect change. | |
1981 | (dtrace_can_evaluate_probe_arguments): Rename to... | |
1982 | (dtrace_probe::can_evaluate_arguments): ...this. Adjust code | |
1983 | to reflect change. | |
1984 | (dtrace_evaluate_probe_argument): Rename to... | |
1985 | (dtrace_probe::evaluate_argument): ...this. Adjust code to | |
1986 | reflect change. | |
1987 | (dtrace_compile_to_ax): Rename to... | |
1988 | (dtrace_probe::compile_to_ax): ...this. Adjust code to | |
1989 | reflect change. | |
1990 | (dtrace_probe_destroy): Delete. | |
1991 | (dtrace_type_name): Rename to... | |
1992 | (dtrace_static_probe_ops::type_name): ...this. Adjust code to | |
1993 | reflect change. | |
1994 | (dtrace_probe::get_static_ops): New method. | |
1995 | (dtrace_gen_info_probes_table_header): Rename to... | |
1996 | (dtrace_static_probe_ops::gen_info_probes_table_header): | |
1997 | ...this. Adjust code to reflect change. | |
1998 | (dtrace_gen_info_probes_table_values): Rename to... | |
1999 | (dtrace_probe::gen_info_probes_table_values): ...this. Adjust | |
2000 | code to reflect change. | |
2001 | (dtrace_enable_probe): Rename to... | |
2002 | (dtrace_probe::enable_probe): ...this. Adjust code to reflect | |
2003 | change. | |
2004 | (dtrace_disable_probe): Rename to... | |
2005 | (dtrace_probe::disable_probe): ...this. Adjust code to reflect | |
2006 | change. | |
2007 | (struct probe_ops dtrace_probe_ops): Delete. | |
2008 | (info_probes_dtrace_command): Call 'info_probes_for_spops' | |
2009 | instead of 'info_probes_for_ops'. | |
2010 | (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead | |
2011 | of 'all_probe_ops'. | |
2012 | ||
0e9ae10f SDJ |
2013 | 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com> |
2014 | Simon Marchi <simark@simark.ca> | |
2015 | ||
2016 | * stap-probe.c (struct probe_ops stap_probe_ops): Delete | |
2017 | variable. | |
2018 | (struct stap_probe_arg) <stap_probe_arg>: New constructor. | |
2019 | <aexpr>: Change type to 'expression_up'. | |
2020 | (stap_probe_arg_s): Delete type and VEC. | |
2021 | (struct stap_probe): Delete. Replace by... | |
2022 | (class stap_static_probe_ops): ...this and... | |
2023 | (class stap_probe): ...this. Rename variables to add 'm_' | |
2024 | prefix. Do not use 'union' for arguments anymore. | |
2025 | (stap_get_expected_argument_type): Receive probe name instead | |
2026 | of 'struct stap_probe'. Adjust code. | |
2027 | (stap_parse_probe_arguments): Rename to... | |
2028 | (stap_probe::parse_arguments): ...this. Adjust code to | |
2029 | reflect change. | |
2030 | (stap_get_probe_address): Rename to... | |
2031 | (stap_probe::get_relocated_address): ...this. Adjust code | |
2032 | to reflect change. | |
2033 | (stap_get_probe_argument_count): Rename to... | |
2034 | (stap_probe::get_argument_count): ...this. Adjust code | |
2035 | to reflect change. | |
2036 | (stap_get_arg): Rename to... | |
2037 | (stap_probe::get_arg_by_number'): ...this. Adjust code to | |
2038 | reflect change. | |
2039 | (can_evaluate_probe_arguments): Rename to... | |
2040 | (stap_probe::can_evaluate_arguments): ...this. Adjust code | |
2041 | to reflect change. | |
2042 | (stap_evaluate_probe_argument): Rename to... | |
2043 | (stap_probe::evaluate_argument): ...this. Adjust code | |
2044 | to reflect change. | |
2045 | (stap_compile_to_ax): Rename to... | |
2046 | (stap_probe::compile_to_ax): ...this. Adjust code to | |
2047 | reflect change. | |
2048 | (stap_probe_destroy): Delete. | |
2049 | (stap_modify_semaphore): Adjust comment. | |
2050 | (stap_set_semaphore): Rename to... | |
2051 | (stap_probe::set_semaphore): ...this. Adjust code to reflect | |
2052 | change. | |
2053 | (stap_clear_semaphore): Rename to... | |
2054 | (stap_probe::clear_semaphore): ...this. Adjust code to | |
2055 | reflect change. | |
2056 | (stap_probe::get_static_ops): New method. | |
2057 | (handle_stap_probe): Adjust code to create instance of | |
2058 | 'stap_probe'. | |
2059 | (stap_get_probes): Rename to... | |
2060 | (stap_static_probe_ops::get_probes): ...this. Adjust code to | |
2061 | reflect change. | |
2062 | (stap_probe_is_linespec): Rename to... | |
2063 | (stap_static_probe_ops::is_linespec): ...this. Adjust code to | |
2064 | reflect change. | |
2065 | (stap_type_name): Rename to... | |
2066 | (stap_static_probe_ops::type_name): ...this. Adjust code to | |
2067 | reflect change. | |
2068 | (stap_gen_info_probes_table_header): Rename to... | |
2069 | (stap_static_probe_ops::gen_info_probes_table_header): | |
2070 | ...this. Adjust code to reflect change. | |
2071 | (stap_gen_info_probes_table_values): Rename to... | |
2072 | (stap_probe::gen_info_probes_table_values): ...this. Adjust | |
2073 | code to reflect change. | |
2074 | (struct probe_ops stap_probe_ops): Delete. | |
2075 | (info_probes_stap_command): Use 'info_probes_for_spops' | |
2076 | instead of 'info_probes_for_ops'. | |
2077 | (_initialize_stap_probe): Use 'all_static_probe_ops' instead | |
2078 | of 'all_probe_ops'. | |
2079 | ||
935676c9 SDJ |
2080 | 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com> |
2081 | ||
2082 | * break-catch-throw.c (fetch_probe_arguments): Use | |
2083 | 'probe.prob' instead of 'probe.probe'. | |
2084 | * breakpoint.c (create_longjmp_master_breakpoint): Call | |
2085 | 'can_evaluate_arguments' and 'get_relocated_address' methods | |
2086 | from probe. | |
2087 | (create_exception_master_breakpoint): Likewise. | |
2088 | (add_location_to_breakpoint): Use 'sal->prob' instead of | |
2089 | 'sal->probe'. | |
2090 | (bkpt_probe_insert_location): Call 'set_semaphore' method from | |
2091 | probe. | |
2092 | (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'. | |
2093 | * elfread.c (elf_get_probes): Use 'static_probe_ops' instead | |
2094 | of 'probe_ops'. | |
2095 | (probe_key_free): Call 'delete' on probe. | |
2096 | (check_exception_resume): Use 'probe.prob' instead of | |
2097 | 'probe.probe'. | |
2098 | * location.c (string_to_event_location_basic): Call | |
2099 | 'probe_linespec_to_static_ops'. | |
2100 | * probe.c (class any_static_probe_ops): New class. | |
2101 | (any_static_probe_ops any_static_probe_ops): New variable. | |
2102 | (parse_probes_in_pspace): Receive 'static_probe_ops' as | |
2103 | argument. Adjust code to reflect change. | |
2104 | (parse_probes): Use 'static_probe_ops' instead of | |
2105 | 'probe_ops'. Adjust code to reflect change. | |
2106 | (find_probes_in_objfile): Call methods to get name and | |
2107 | provider from probe. | |
2108 | (find_probe_by_pc): Use 'result.prob' instead of | |
2109 | 'result.probe'. Call 'get_relocated_address' method from | |
2110 | probe. | |
2111 | (collect_probes): Adjust comment and argument list to receive | |
2112 | 'static_probe_ops' instead of 'probe_ops'. Adjust code to | |
2113 | reflect change. Call necessary methods from probe. | |
2114 | (compare_probes): Call methods to get name and provider from | |
2115 | probes. | |
2116 | (gen_ui_out_table_header_info): Receive 'static_probe_ops' | |
2117 | instead of 'probe_ops'. Use 'std::vector' instead of VEC, | |
2118 | adjust code accordingly. | |
2119 | (print_ui_out_not_applicables): Likewise. | |
2120 | (info_probes_for_ops): Rename to... | |
2121 | (info_probes_for_spops): ...this. Receive 'static_probe_ops' | |
2122 | as argument instead of 'probe_ops'. Adjust code. Call | |
2123 | necessary methods from probe. | |
2124 | (info_probes_command): Use 'info_probes_for_spops'. | |
2125 | (enable_probes_command): Pass correct argument to | |
2126 | 'collect_probes'. Call methods from probe. | |
2127 | (disable_probes_command): Likewise. | |
2128 | (get_probe_address): Move to 'any_static_probe_ops::get_address'. | |
2129 | (get_probe_argument_count): Move to | |
2130 | 'any_static_probe_ops::get_argument_count'. | |
2131 | (can_evaluate_probe_arguments): Move to | |
2132 | 'any_static_probe_ops::can_evaluate_arguments'. | |
2133 | (evaluate_probe_argument): Move to | |
2134 | 'any_static_probe_ops::evaluate_argument'. | |
2135 | (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of | |
2136 | 'probe.probe'. | |
2137 | (probe_linespec_to_ops): Rename to... | |
2138 | (probe_linespec_to_static_ops): ...this. Adjust code. | |
2139 | (probe_any_is_linespec): Rename to... | |
2140 | (any_static_probe_ops::is_linespec): ...this. | |
2141 | (probe_any_get_probes): Rename to... | |
2142 | (any_static_probe_ops::get_probes): ...this. | |
2143 | (any_static_probe_ops::type_name): New method. | |
2144 | (any_static_probe_ops::gen_info_probes_table_header): New | |
2145 | method. | |
2146 | (compute_probe_arg): Use 'pc_probe.prob' instead of | |
2147 | 'pc_probe.probe'. Call methods from probe. | |
2148 | (compile_probe_arg): Likewise. | |
2149 | (std::vector<const probe_ops *> all_probe_ops): Delete. | |
2150 | (std::vector<const static_probe_ops *> all_static_probe_ops): | |
2151 | New variable. | |
2152 | (_initialize_probe): Use 'all_static_probe_ops' instead of | |
2153 | 'all_probe_ops'. | |
2154 | * probe.h (struct info_probe_column) <field_name>: Delete | |
2155 | extraneous newline | |
2156 | (info_probe_column_s): Delete type and VEC. | |
2157 | (struct probe_ops): Delete. Replace with... | |
2158 | (class static_probe_ops): ...this and... | |
2159 | (clas probe): ...this. | |
2160 | (struct bound_probe) <bound_probe>: Delete extraneous | |
2161 | newline. Adjust constructor to receive 'probe' instead of | |
2162 | 'struct probe'. | |
2163 | <probe>: Rename to... | |
2164 | <prob>: ...this. Delete extraneous newline. | |
2165 | <objfile>: Delete extraneous newline. | |
2166 | (register_probe_ops): Delete unused prototype. | |
2167 | (info_probes_for_ops): Rename to... | |
2168 | (info_probes_for_spops): ...this. Adjust comment. | |
2169 | (get_probe_address): Move to 'probe::get_address'. | |
2170 | (get_probe_argument_count): Move to | |
2171 | 'probe::get_argument_count'. | |
2172 | (can_evaluate_probe_arguments): Move to | |
2173 | 'probe::can_evaluate_arguments'. | |
2174 | (evaluate_probe_argument): Move to 'probe::evaluate_argument'. | |
2175 | * solib-svr4.c (struct svr4_info): Adjust comment. | |
2176 | (struct probe_and_action) <probe>: Rename to... | |
2177 | <prob>: ...this. | |
2178 | (register_solib_event_probe): Receive 'probe' instead of | |
2179 | 'struct probe' as argument. Use 'prob' instead of 'probe' | |
2180 | when applicable. | |
2181 | (solib_event_probe_action): Call 'get_argument_count' method | |
2182 | from probe. Adjust comment. | |
2183 | (svr4_handle_solib_event): Adjust comment. Call | |
2184 | 'evaluate_argument' method from probe. | |
2185 | (svr4_create_probe_breakpoints): Call 'get_relocated_address' | |
2186 | from probe. | |
2187 | (svr4_create_solib_event_breakpoints): Use 'probe' instead of | |
2188 | 'struct probe'. Call 'can_evaluate_arguments' from probe. | |
2189 | * symfile.h: Forward declare 'class probe' instead of 'struct | |
2190 | probe'. | |
2191 | * symtab.h: Likewise. | |
2192 | (struct symtab_and_line) <probe>: Rename to... | |
2193 | <prob>: ...this. | |
2194 | * tracepoint.c (start_tracing): Use 'prob' when applicable. | |
2195 | Call probe methods. | |
2196 | (stop_tracing): Likewise. | |
2197 | ||
8f6cb6c3 JB |
2198 | 2017-11-22 Joel Brobecker <brobecker@adacore.com> |
2199 | ||
2200 | * ravenscar-thread.c (ravenscar_inferior_created): Remove | |
2201 | trailing newline at end of string in call to warning. | |
2202 | ||
479f8de1 SM |
2203 | 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
2204 | ||
2205 | * osdata.h: Include vector isntead of vec.h. | |
2206 | (osdata_column_s): Remove typedef. | |
2207 | (struct osdata_column): Add constructor. | |
2208 | <name, value>: Change type to std::string. | |
2209 | (DEF_VEC_O (osdata_column_s)): Remove. | |
2210 | (osdata_item_s): Remove typedef. | |
2211 | (struct osdata_item) <columns>: Change type to std::vector. | |
2212 | (DEF_VEC_O (osdata_item_s)): Remove. | |
2213 | (struct osdata): Add constructor. | |
2214 | <type>: Change type to std::string. | |
2215 | <items>: Change type to std::vector. | |
2216 | (osdata_p): Remove typedef. | |
2217 | (DEF_VEC_P (osdata_p)): Remove. | |
2218 | (osdata_parse): Return a unique_ptr. | |
2219 | (osdata_free): Remove. | |
2220 | (make_cleanup_osdata_free): Remove. | |
2221 | (get_osdata): Return a unique_ptr. | |
2222 | (get_osdata_column): Return pointer to std::string, take a | |
2223 | reference to osdata_item as parameter. | |
2224 | * osdata.c (struct osdata_parsing_data) <osdata>: Change type to | |
2225 | unique_ptr. | |
2226 | <property_name>: Change type to std::string. | |
2227 | (osdata_start_osdata): Allocate osdata with new and adjust. | |
2228 | (osdata_start_item): Adjust. | |
2229 | (osdata_start_column): Adjust. | |
2230 | (osdata_end_column): Adjust. | |
2231 | (clear_parsing_data): Remove. | |
2232 | (osdata_parse): Return a unique_ptr and adjust, remove cleanup. | |
2233 | (osdata_item_clear): Remove. | |
2234 | (get_osdata): return a unique_ptr and adjust. | |
2235 | (get_osdata_column): Return a pointer to std::string and adjust. | |
2236 | (info_osdata): Adjust. | |
2237 | * mi/mi-main.c: Include <map>. | |
2238 | (free_vector_of_osdata_items): Remove. | |
2239 | (list_available_thread_groups): Adjust, use std::map instead of | |
2240 | splay tree. | |
2241 | ||
41bd68f5 SM |
2242 | 2017-11-22 Simon Marchi <simon.marchi@ericsson.com> |
2243 | ||
2244 | * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT | |
2245 | case in switch. | |
2246 | ||
7e2fd2f4 SM |
2247 | 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
2248 | ||
2249 | * varobj.h (DEF_VEC_P (varobj_p)): Remove. | |
2250 | ||
0604393c SM |
2251 | 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
2252 | ||
2253 | * varobj.h (struct varobj_update_result): Add constructor, add | |
2254 | move constructor, disable copy and assign, initialize fields. | |
2255 | <newobj>: Change type to std::vector. | |
2256 | (varobj_update): Return std::vector. | |
2257 | * varobj.c (install_dynamic_child): Change VEC parameters to | |
2258 | std::vector and adjust. | |
2259 | (update_dynamic_varobj_children): Likewise. | |
2260 | (varobj_update): Return std::vector and adjust. | |
2261 | * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes. | |
2262 | ||
ddf0ea08 SM |
2263 | 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
2264 | ||
2265 | * varobj.h (struct varobj) <parent>: Remove const. | |
2266 | <children>: Change type to std::vector. | |
2267 | (varobj_list_children): Return std::vector const reference. | |
2268 | (varobj_restrict_range): Change parameter type to std::vector | |
2269 | const reference. | |
2270 | * varobj.c (varobj_has_more): Adjust. | |
2271 | (varobj_restrict_range): Change parameter type to std::vector | |
2272 | const reference and adjust. | |
2273 | (install_dynamic_child): Adjust. | |
2274 | (update_dynamic_varobj_children): Adjust. | |
2275 | (varobj_list_children): Return std::vector const reference and | |
2276 | adjust. | |
2277 | (varobj_add_child): Adjust. | |
2278 | (update_type_if_necessary): Adjust. | |
2279 | (varobj_update): Adjust. | |
2280 | (delete_variable_1): Adjust. | |
2281 | * ada-varobj.c (ada_value_has_mutated): Adjust. | |
2282 | * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust. | |
2283 | ||
9e5b9d2b SM |
2284 | 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
2285 | ||
2286 | * varobj.h (struct varobj): Add constructor and destructor, | |
2287 | initialize fields. | |
2288 | * varobj.c (struct varobj_root): Initialize fields. | |
2289 | (struct varobj_dynamic): Initialize fields. | |
2290 | (varobj_create): Use unique_ptr instead of cleanup. Create | |
2291 | varobj with new instead of new_root_variable. | |
2292 | (delete_variable_1): Free variable with delete instead of | |
2293 | free_variable. | |
2294 | (create_child_with_value): Create variable with new instead of | |
2295 | new_variable. | |
2296 | (varobj::varobj): New. | |
2297 | (varobj::~varobj): New (body mostly coming from free_variable). | |
2298 | (new_variable): Remove. | |
2299 | (free_variable): Remove. | |
2300 | (do_free_variable_cleanup): Remove. | |
2301 | (make_cleanup_free_variable): Remove. | |
2302 | ||
fc35dab1 UW |
2303 | 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
2304 | ||
2305 | * core-regset.c: Remove file. | |
2306 | * Makefile.in (ALLDEPFILES): Remove core-regset.c. | |
2307 | ||
2400729e UW |
2308 | 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
2309 | ||
2310 | * NEWS: Document use of GNU MPFR. | |
2311 | * README: Likewise. | |
2312 | ||
2313 | * Makefile.in (LIBMPFR): Add define. | |
2314 | (CLIBS): Add $(LIBMPFR). | |
2315 | * configure.ac: Add --with-mpfr configure option. | |
2316 | * configure: Regenerate. | |
2317 | * config.in: Regenerate. | |
2318 | ||
2319 | * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>. | |
2320 | (class mpfr_float_ops): New type. | |
2321 | (mpfr_float_ops::from_target): Two new overloaded functions. | |
2322 | (mpfr_float_ops::to_target): Likewise. | |
2323 | (mpfr_float_ops::to_string): New function. | |
2324 | (mpfr_float_ops::from_string): Likewise. | |
2325 | (mpfr_float_ops::to_longest): Likewise. | |
2326 | (mpfr_float_ops::from_longest): Likewise. | |
2327 | (mpfr_float_ops::from_ulongest): Likewise. | |
2328 | (mpfr_float_ops::to_host_double): Likewise. | |
2329 | (mpfr_float_ops::from_host_double): Likewise. | |
2330 | (mpfr_float_ops::convert): Likewise. | |
2331 | (mpfr_float_ops::binop): Likewise. | |
2332 | (mpfr_float_ops::compare): Likewise. | |
2333 | (get_target_float_ops): Use mpfr_float_ops if available. | |
2334 | ||
7a26362d UW |
2335 | 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
2336 | ||
2337 | * target-float.c: Do not include <math.h>. | |
2338 | Include <cmath> and <limits>. | |
2339 | (DOUBLEST): Do not define. | |
2340 | (class target_float_ops): New type. | |
2341 | (class host_float_ops): New templated type. | |
2342 | (class decimal_float_ops): New type. | |
2343 | ||
2344 | (floatformat_to_doublest): Rename to ... | |
2345 | (host_float_ops<T>::from_target): ... this. Use template type T | |
2346 | instead of DOUBLEST. Use C++ math routines. Update recursive calls. | |
2347 | (host_float_ops<T>::from_target): New overload using a type argument. | |
2348 | (floatformat_from_doublest): Rename to ... | |
2349 | (host_float_ops<T>::to_target): ... this. Use template type T | |
2350 | instead of DOUBLEST. Use C++ math routines. Update recursive calls. | |
2351 | (host_float_ops<T>::to_target): New overload using a type argument. | |
2352 | (floatformat_printf_format): New function. | |
2353 | (struct printf_length_modifier): New templated type. | |
2354 | (floatformat_to_string): Rename to ... | |
2355 | (host_float_ops<T>::to_string): ... this. Use type instead of | |
2356 | floatformat argument. Use floatformat_printf_format and | |
2357 | printf_length_modifier. Remove special handling of invalid numbers, | |
2358 | infinities and NaN (moved to target_float_to_string). | |
2359 | (struct scanf_length_modifier): New templated type. | |
2360 | (floatformat_from_string): Rename to ... | |
2361 | (host_float_ops<T>::from_string): ... this. Use type instead of | |
2362 | floatformat argument. Use scanf_length_modifier. | |
2363 | (floatformat_to_longest): Rename to ... | |
2364 | (host_float_ops<T>::to_longest): ... this. Use type instead of | |
2365 | floatformat argument. Handle out-of-range values deterministically. | |
2366 | (floatformat_from_longest): Rename to ... | |
2367 | (host_float_ops<T>::from_longest): ... this. Use type instead of | |
2368 | floatformat argument. | |
2369 | (floatformat_from_ulongest): Rename to ... | |
2370 | (host_float_ops<T>::from_ulongest): ... this. Use type instead of | |
2371 | floatformat argument. | |
2372 | (floatformat_to_host_double): Rename to ... | |
2373 | (host_float_ops<T>::to_host_double): ... this. Use type instead of | |
2374 | floatformat argument. | |
2375 | (floatformat_from_host_double): Rename to ... | |
2376 | (host_float_ops<T>::from_host_double): ... this. Use type instead of | |
2377 | floatformat argument. | |
2378 | (floatformat_convert): Rename to ... | |
2379 | (host_float_ops<T>::convert): ... this. Use type instead of | |
2380 | floatformat arguments. Remove handling of no-op conversions. | |
2381 | (floatformat_binop): Rename to ... | |
2382 | (host_float_ops<T>::binop): ... this. Use type instead of | |
2383 | floatformat arguments. | |
2384 | (floatformat_compare): Rename to ... | |
2385 | (host_float_ops<T>::compare): ... this. Use type instead of | |
2386 | floatformat arguments. | |
2387 | ||
2388 | (match_endianness): Use type instead of length/byte_order arguments. | |
2389 | (set_decnumber_context): Likewise. | |
2390 | (decimal_from_number): Likewise. Update calls. | |
2391 | (decimal_to_number): Likewise. | |
2392 | (decimal_is_zero): Likewise. Update calls. Move to earlier in file. | |
2393 | (decimal_float_ops::to_host_double): New dummy function. | |
2394 | (decimal_float_ops::from_host_double): Likewise. | |
2395 | (decimal_to_string): Rename to ... | |
2396 | (decimal_float_ops::to_string): ... this. Use type instead of | |
2397 | length/byte_order arguments. Update calls. | |
2398 | (decimal_from_string): Rename to ... | |
2399 | (decimal_float_ops::from_string): ... this. Use type instead of | |
2400 | length/byte_order arguments. Update calls. | |
2401 | (decimal_from_longest): Rename to ... | |
2402 | (decimal_float_ops::from_longest): ... this. Use type instead of | |
2403 | length/byte_order arguments. Update calls. | |
2404 | (decimal_from_ulongest): Rename to ... | |
2405 | (decimal_float_ops::from_ulongest): ... this. Use type instead of | |
2406 | length/byte_order arguments. Update calls. | |
2407 | (decimal_to_longest): Rename to ... | |
2408 | (decimal_float_ops::to_longest): ... this. Use type instead of | |
2409 | length/byte_order arguments. Update calls. | |
2410 | (decimal_binop): Rename to ... | |
2411 | (decimal_float_ops::binop): ... this. Use type instead of | |
2412 | length/byte_order arguments. Update calls. | |
2413 | (decimal_compare): Rename to ... | |
2414 | (decimal_float_ops::compare): ... this. Use type instead of | |
2415 | length/byte_order arguments. Update calls. | |
2416 | (decimal_convert): Rename to ... | |
2417 | (decimal_float_ops::convert): ... this. Use type instead of | |
2418 | length/byte_order arguments. Update calls. | |
2419 | ||
2420 | (target_float_same_category_p): New function. | |
2421 | (target_float_same_format_p): Likewise. | |
2422 | (target_float_format_length): Likewise. | |
2423 | (enum target_float_ops_kind): New type. | |
2424 | (get_target_float_ops_kind): New function. | |
2425 | (get_target_float_ops): Three new overloaded functions. | |
2426 | ||
2427 | (target_float_is_zero): Update call. | |
2428 | (target_float_to_string): Add special handling of invalid numbers, | |
2429 | infinities and NaN (moved from floatformat_to_string). Use | |
2430 | target_float_ops callback. | |
2431 | (target_float_from_string): Use target_float_ops callback. | |
2432 | (target_float_to_longest): Likewise. | |
2433 | (target_float_from_longest): Likewise. | |
2434 | (target_float_from_ulongest): Likewise. | |
2435 | (target_float_to_host_double): Likewise. | |
2436 | (target_float_from_host_double): Likewise. | |
2437 | (target_float_convert): Add special case for no-op conversions. | |
2438 | Use target_float_ops callback. | |
2439 | (target_float_binop): Use target_float_ops callback. | |
2440 | (target_float_compare): Likewise. | |
2441 | ||
a9f26f60 YQ |
2442 | 2017-11-22 Yao Qi <yao.qi@linaro.org> |
2443 | ||
2444 | * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy. | |
2445 | ||
29f9a567 YQ |
2446 | 2017-11-22 Yao Qi <yao.qi@linaro.org> |
2447 | ||
2448 | * cli/cli-decode.c (help_list): Use memcpy instead of strncpy. | |
2449 | * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise. | |
2450 | ||
3b1b69bf JG |
2451 | 2017-11-21 Jerome Guitton <guitton@adacore.com> |
2452 | ||
2453 | * ravenscar-thread.c (ravenscar_wait): Update inferior ptid | |
2454 | with event ptid from the lower layer before doing the | |
2455 | ravenscar-specific update. | |
2456 | ||
54aa6c67 JB |
2457 | 2017-11-21 Joel Brobecker <brobecker@adacore.com> |
2458 | ||
2459 | * ravenscar-thread.c (is_ravenscar_task): Also verify that | |
2460 | the ptid's TID is nonzero. | |
2461 | ||
cf3fbed4 JB |
2462 | 2017-11-21 Joel Brobecker <brobecker@adacore.com> |
2463 | ||
2464 | * ada-lang.h (ada_get_tcb_types_info): Add declaration. | |
2465 | * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info. | |
2466 | Make non-static. Change return type to char *. Adjust code | |
2467 | accordingly. Rewrite the function's documentation. | |
2468 | (read_atcb): Adjust call to get_tcb_types_info accordingly. | |
2469 | * ravenscar-thread.c (ravenscar_inferior_created): Check that | |
2470 | we have enough debugging information in the runtime to support | |
2471 | Ada task debugging before we enable the ravenscar-thread layer. | |
2472 | ||
9edcc12f JB |
2473 | 2017-11-21 Joel Brobecker <brobecker@adacore.com> |
2474 | ||
2475 | * ada-lang.h (ada_get_task_info_from_ptid): Add declaration. | |
2476 | * ada-tasks.c (ada_get_task_info_from_ptid): New function. | |
2477 | * ravenscar-thread.c: Add into comment. | |
2478 | (base_magic_null_ptid): Delete. | |
2479 | (base_ptid): Change documentation. | |
2480 | (ravenscar_active_task): Renames ravenscar_running_thread. | |
2481 | All callers updated throughout. | |
2482 | (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function. | |
2483 | (ravenscar_task_is_currently_active): Likewise. | |
2484 | (get_base_thread_from_ravenscar_task): Ditto. | |
2485 | (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs. | |
2486 | (ravenscar_runtime_initialized): Likewise. | |
2487 | (get_running_thread_id): Add new parameter "cpu". Adjust | |
2488 | implementation to handle this new parameter. | |
2489 | (ravenscar_fetch_registers): Small adjustment to use | |
2490 | is_ravenscar_task and ravenscar_task_is_currently_active in | |
2491 | order to decide whether to use the target beneath or this | |
2492 | module's arch_ops. | |
2493 | (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise. | |
2494 | (ravenscar_stopped_by_sw_breakpoint): Use | |
2495 | get_base_thread_from_ravenscar_task to get the underlying | |
2496 | thread, rather than using base_ptid. | |
2497 | (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint) | |
2498 | (ravenscar_stopped_data_address, ravenscar_core_of_thread): | |
2499 | Likewise. | |
2500 | (ravenscar_inferior_created): Do not set base_magic_null_ptid. | |
2501 | ||
65d40437 JB |
2502 | 2017-11-21 Joel Brobecker <brobecker@adacore.com> |
2503 | ||
2504 | * ada-lang.h (struct ada_task_info) <base_cpu>: New field. | |
2505 | * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field. | |
2506 | (get_tcb_types_info): Set fieldnos.base_cpu. | |
2507 | (read_atcb): Set task_info->base_cpu. | |
2508 | (info_task): Print "Base CPU" info if set by runtime. | |
2509 | ||
e02544b2 JB |
2510 | 2017-11-21 Joel Brobecker <brobecker@adacore.com> |
2511 | ||
2512 | * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint) | |
2513 | (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint) | |
2514 | (ravenscar_stopped_data_address, ravenscar_core_of_thread): | |
2515 | New functions. | |
2516 | (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint, | |
2517 | to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint, | |
2518 | to_stopped_data_address and to_core_of_thread fields of | |
2519 | ravenscar_ops. | |
2520 | ||
ed0f4273 UW |
2521 | 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com> |
2522 | ||
2523 | * ppc-tdep.h (enum powerpc_long_double_abi): New data type. | |
2524 | (struct gdbarch_tdep): New member long_double_abi. | |
2525 | * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi | |
2526 | member of tdep struct based on Tag_GNU_Power_ABI_FP attribute. | |
2527 | * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data | |
2528 | format depending on long_double_abi tdep member. | |
2529 | (ppc_floatformat_for_type): Handle __ibm128 type. | |
2530 | ||
0fc76421 SM |
2531 | 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca> |
2532 | ||
2533 | * darwin-nat.c (set_enable_mach_exceptions): Constify parameter. | |
2534 | ||
e6b2f5ef PA |
2535 | 2017-11-21 Pedro Alves <palves@redhat.com> |
2536 | ||
2537 | * dwarf2read.c (mapped_index::find_name_components_bounds) | |
2538 | <completion mode, upper bound>: Use std::lower_bound instead of | |
2539 | std::upper_bound. | |
2540 | (test_mapped_index_find_name_component_bounds): Remove incorrect | |
2541 | "t1_fund" from expected symbols. | |
2542 | ||
5c58de74 PA |
2543 | 2017-11-21 Pedro Alves <palves@redhat.com> |
2544 | ||
2545 | * dwarf2read.c (mapped_index::name_components_casing): New field. | |
2546 | (mapped_index) <build_name_components, | |
2547 | find_name_components_bounds): Declare new methods. | |
2548 | (mapped_index::find_name_components_bounds) | |
2549 | (mapped_index::build_name_components): New methods, factored out | |
2550 | from dw2_expand_symtabs_matching_symbol. | |
2551 | (check_find_bounds_finds) | |
2552 | (test_mapped_index_find_name_component_bounds): New. | |
2553 | (run_test): Rename to ... | |
2554 | (test_dw2_expand_symtabs_matching_symbol): ... this. | |
2555 | (run_test): Reimplement. | |
2556 | ||
e1ef7d7a PA |
2557 | 2017-11-21 Pedro Alves <palves@redhat.com> |
2558 | ||
2559 | * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New. | |
2560 | (symbol_end): Use cp_ident_is_alnum. | |
2561 | (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum. | |
2562 | * dwarf2read.c (make_sort_after_prefix_name): New function. | |
2563 | (dw2_expand_symtabs_matching_symbol): Use it. | |
2564 | (test_symbols): Add more symbols. | |
2565 | (run_test): Add tests. | |
2566 | ||
cf724bc9 TT |
2567 | 2017-11-17 Tom Tromey <tom@tromey.com> |
2568 | ||
2569 | * symtab.h (enum symbol_subclass_kind): New. | |
2570 | (struct symbol) <is_cplus_template_function, is_rust_vtable>: | |
2571 | Remove. | |
2572 | <subclass>: New member. | |
2573 | (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update. | |
2574 | * rust-lang.c (rust_get_trait_object_pointer): Update. | |
2575 | * dwarf2read.c (read_func_scope): Update. | |
2576 | (read_variable): Update. | |
2577 | ||
68e745e3 TT |
2578 | 2017-11-17 Tom Tromey <tom@tromey.com> |
2579 | ||
2580 | * dwarf2read.c (read_func_scope): Update. | |
2581 | * symtab.h (struct template_symbol): Derive from symbol. | |
2582 | <base>: Remove. | |
2583 | ||
71a3c369 TT |
2584 | 2017-11-17 Tom Tromey <tom@tromey.com> |
2585 | ||
2586 | * symtab.h (struct symbol) <is_rust_vtable>: New member. | |
2587 | (struct rust_vtable_symbol): New. | |
2588 | (find_symbol_at_address): Declare. | |
2589 | * symtab.c (find_symbol_at_address): New function. | |
2590 | * symfile.h (struct quick_symbol_functions) | |
2591 | <find_compunit_symtab_by_address>: New member. | |
2592 | * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New | |
2593 | function. | |
2594 | (debug_sym_quick_functions): Link to | |
2595 | debug_qf_find_compunit_symtab_by_address. | |
2596 | * rust-lang.c (rust_get_trait_object_pointer): New function. | |
2597 | (rust_evaluate_subexp) <case UNOP_IND>: New case. Call | |
2598 | rust_get_trait_object_pointer. | |
2599 | * psymtab.c (psym_relocate): Clear psymbol_map. | |
2600 | (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New | |
2601 | functions. | |
2602 | (psym_functions): Link to psym_find_compunit_symtab_by_address. | |
2603 | * objfiles.h (struct objfile) <psymbol_map>: New member. | |
2604 | * dwarf2read.c (dwarf2_gdb_index_functions): Update. | |
2605 | (process_die) <DW_TAG_variable>: New case. Call read_variable. | |
2606 | (rust_containing_type, read_variable): New functions. | |
2607 | ||
7468702d SM |
2608 | 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca> |
2609 | ||
2610 | * common/gdb_vecs.h (DEF_VEC_I (int)): Remove. | |
2611 | ||
37269bc9 SM |
2612 | 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca> |
2613 | ||
2614 | * common/filestuff.c: Include <algorithm>. | |
2615 | (open_fds): Change type to std::vector<int>. | |
2616 | (do_mark_open_fd): Adjust. | |
2617 | (unmark_fd_no_cloexec): Adjust. | |
2618 | (do_close): Adjust. | |
2619 | ||
5c632425 SM |
2620 | 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca> |
2621 | ||
2622 | * breakpoint.c (output_thread_groups): Take an std::vector. | |
2623 | (print_one_breakpoint_location): Adjust. | |
2624 | ||
ced9779b JB |
2625 | 2017-11-17 Joel Brobecker <brobecker@adacore.com> |
2626 | ||
2627 | * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE. | |
2628 | (ada_evaluate_subexp_for_cast): New function. | |
2629 | (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to | |
2630 | ada_evaluate_subexp_for_cast. | |
2631 | (ada_evaluate_subexp) <nosideret>: Replace code by call to | |
2632 | eval_skip_value. | |
2633 | * eval.c (evaluate_var_value): Make non-static. | |
2634 | (evaluate_var_msym_value, eval_skip_value): Likewise. | |
2635 | * value.h (evaluate_var_value, evaluate_var_msym_value) | |
2636 | (eval_skip_value): Declare. | |
2637 | ||
b7e22850 JB |
2638 | 2017-11-16 Joel Brobecker <brobecker@adacore.com> |
2639 | ||
2640 | * ada-lang.c (ada_value_cast): Remove parameter "noside". | |
2641 | Update all callers. | |
2642 | ||
9ccabccd PA |
2643 | 2017-11-16 Pedro Alves <palves@redhat.com> |
2644 | ||
2645 | * python/py-unwind.c (pyuw_sniffer): Translate | |
2646 | PyExc_KeyboardInterrupt to a GDB Quit exception. | |
2647 | ||
d930703d PA |
2648 | 2017-11-16 Pedro Alves <palves@redhat.com> |
2649 | ||
2650 | * infrun.c (resume_cleanups): Delete. | |
2651 | (resume): No longer install a resume_cleanups cleanup nor call | |
2652 | QUIT. | |
2653 | (proceed): Pass the terminal to the inferior. | |
2654 | (keep_going_pass_signal): No longer install a resume_cleanups | |
2655 | cleanup. | |
2656 | ||
38dc2859 PA |
2657 | 2017-11-16 Pedro Alves <palves@redhat.com> |
2658 | ||
2659 | * inf-loop.c (inferior_event_handler): Don't swallow the exception | |
2660 | if the prompt is blocked. | |
2661 | ||
688fca4f PA |
2662 | 2017-11-16 Pedro Alves <palves@redhat.com> |
2663 | ||
2664 | * breakpoint.c (insert_bp_location): Replace bp_err and | |
2665 | bp_err_message locals by a gdb_exception local. | |
2666 | ||
e2c33ac7 PA |
2667 | 2017-11-16 Pedro Alves <palves@redhat.com> |
2668 | ||
2669 | * inflow.c (scoped_ignore_sigttou): New class. | |
2670 | (child_terminal_ours_1, new_tty): Use it. | |
2671 | ||
d7236961 UW |
2672 | 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com> |
2673 | ||
2674 | * target-float.c (decimal_from_number): Add byte_order argument and | |
2675 | call match_endianness. Error if unknown floating-point type. | |
2676 | (decimal_to_number): Add byte_order argument and call match_endianness. | |
2677 | (decimal_from_longest): Update call. Do not call match_endianness. | |
2678 | (decimal_from_ulongest): Likewise. | |
2679 | (decimal_binop): Likewise. | |
2680 | (decimal_is_zero): Likewise. | |
2681 | (decimal_compare): Likewise. | |
2682 | (decimal_convert): Likewise. | |
2683 | ||
d8ae99a7 PM |
2684 | 2017-11-16 Phil Muldoon <pmuldoon@redhat.com> |
2685 | ||
2686 | * python/python.c (gdbpy_rbreak): New function. | |
2687 | * NEWS: Document Python rbreak feature. | |
2688 | ||
c632b645 YQ |
2689 | 2017-11-16 Yao Qi <yao.qi@linaro.org> |
2690 | ||
2691 | * features/tic6x-c62x.xml: Remove. | |
2692 | * features/tic6x-c64x.xml: Remove. | |
2693 | * features/tic6x-c64xp.xml: Remove. | |
2694 | ||
a014b87a JB |
2695 | 2017-11-15 John Baldwin <jhb@FreeBSD.org> |
2696 | ||
2697 | * symtab.h: Include <array>. | |
2698 | ||
94765011 JB |
2699 | 2017-11-15 John Baldwin <jhb@FreeBSD.org> |
2700 | ||
2701 | * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'. | |
2702 | (bsd_kvm_proc_cmd): Likewise. | |
2703 | ||
625ad440 SM |
2704 | 2017-11-15 Simon Marchi <simon.marchi@ericsson.com> |
2705 | ||
2706 | * tui/tui-win.c (window_name_completer): Replace VEC with | |
2707 | std::vector. | |
2708 | ||
c0c11fa9 AC |
2709 | 2017-11-15 Andrew Cagney <cagney@gnu.org> |
2710 | ||
2711 | * MAINTAINERS: Remove no-longer applicable entries. | |
2712 | ||
34a7ebaf AC |
2713 | 2017-11-15 Andrew Cagney <cagney@gnu.org> |
2714 | ||
2715 | * MAINTAINERS: Move self to Past Maintainers. | |
2716 | ||
5334ef39 YQ |
2717 | 2017-11-15 Yao Qi <yao.qi@linaro.org> |
2718 | ||
2719 | * features/Makefile (XMLTOC): Remove nios2-linux.xml. | |
2720 | * features/nios2-linux.c: Remove. | |
2721 | * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call | |
2722 | initialize_tdesc_nios2_linux. | |
2723 | ||
a714b0d6 YQ |
2724 | 2017-11-15 Yao Qi <yao.qi@linaro.org> |
2725 | ||
2726 | * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to | |
2727 | M68HC11_LAST_HARD_REG + 1. | |
2728 | ||
92ffd475 PC |
2729 | 2017-11-14 Paul Carroll <pcarroll@codesourcery.com> |
2730 | ||
2731 | PR gdb/22388 | |
2732 | * remote.c (remote_write_bytes_aux, remote_read_bytes_1, | |
2733 | remote_read_bytes, remote_write_qxfer, remote_xfer_partial): | |
2734 | Return TARGET_XFER_EOF if size of returned data is 0. | |
2735 | ||
07431908 SM |
2736 | 2017-11-14 Simon Marchi <simon.marchi@ericsson.com> |
2737 | ||
2738 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
2739 | memory-map-selftests.c. | |
2740 | (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o. | |
2741 | * memory-map.c (memory_map_start_memory): Fix computation of hi | |
2742 | address. | |
2743 | * unittests/memory-map-selftests.c: New file. | |
2744 | ||
31432a67 JB |
2745 | 2017-11-09 Joel Brobecker <brobecker@adacore.com> |
2746 | ||
2747 | * ada-lang.c: Fix some typos in the general command documenting | |
2748 | how Ada expressions are being evaluated and how their result | |
2749 | is printed. | |
2750 | ||
e793c052 TT |
2751 | 2017-11-09 Tom Tromey <tom@tromey.com> |
2752 | ||
2753 | * psymtab.c (psymbol_hash): Do not hash string contents. | |
2754 | (psymbol_compare): Add comment. | |
2755 | ||
7e8835c5 TT |
2756 | 2017-11-09 Tom Tromey <tom@tromey.com> |
2757 | ||
2758 | * dictionary.c (dict_hash): Move "TKB" check into the "switch". | |
2759 | ||
286acbb5 JB |
2760 | 2017-11-08 Joel Brobecker <brobecker@adacore.com> |
2761 | ||
2762 | * ada-exp.y (write_var_from_sym): Remove parameter | |
2763 | "orig_left_context". Update all callers. | |
2764 | ||
b44ec619 SM |
2765 | 2017-11-08 Simon Marchi <simon.marchi@ericsson.com> |
2766 | ||
2767 | * tracepoint.h (class collection_list) <stringify>: Return | |
2768 | std::vector<std::string>. | |
2769 | (encode_actions_rsp): Change parameters to | |
2770 | std::vector<std::string> *. | |
2771 | * tracepoint.c (collection_list::stringify): Return | |
2772 | std::vector<std::string> and adjust accordingly. | |
2773 | (encode_actions_rsp): Changee parameters to | |
2774 | std::vector<std::string> and adjust accordingly. | |
2775 | * remote.c (free_actions_list), | |
2776 | free_actions_list_cleanup_wrapper): Remove. | |
2777 | (remote_download_tracepoint): Adjust to std::vector. | |
2778 | ||
2f4732b0 TT |
2779 | 2017-11-08 Tom Tromey <tom@tromey.com> |
2780 | ||
2781 | * dwarf2read.c (symbolp): Remove typedef. | |
2782 | (read_func_scope): Use std::vector. | |
2783 | (process_structure_scope): Use std::vector. | |
2784 | ||
f9d67a22 PA |
2785 | 2017-11-08 Pedro Alves <palves@redhat.com> |
2786 | ||
2787 | * ada-lang.c (ada_make_symbol_completion_list): Use | |
2788 | completion_skip_symbol. | |
2789 | * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New. | |
2790 | (symbol_is_function_or_method(symbol*)): New. | |
2791 | (add_symtab_completions): Add complete_symbol_mode parameter. Use | |
2792 | completion_skip_symbol. | |
2793 | (default_collect_symbol_completion_matches_break_on): Use | |
2794 | completion_skip_symbol. Pass down mode. | |
2795 | (collect_file_symbol_completion_matches): Pass down mode. | |
2796 | * symtab.h (symbol_is_function_or_method): New declarations. | |
2797 | (completion_skip_symbol): New template function. | |
2798 | ||
56d87ef7 PA |
2799 | 2017-11-08 Pedro Alves <palves@redhat.com> |
2800 | ||
2801 | * linespec.c (iterate_over_all_matching_symtabs): Add | |
2802 | search_domain parameter. Pass it down to expand_symtabs_matching. | |
2803 | (decode_objc): Request FUNCTIONS_DOMAIN symbols only. | |
2804 | (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as | |
2805 | search_domain. | |
2806 | (add_all_symbol_names_from_pspace): Add search_domain parameter. | |
2807 | Pass it down. | |
2808 | (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN | |
2809 | symbols. | |
2810 | (add_matching_symbols_to_info): Add search_domain parameter. Pass | |
2811 | it down. | |
2812 | ||
1b026119 PA |
2813 | 2017-11-08 Pedro Alves <palves@redhat.com> |
2814 | ||
2815 | * ada-lang.c (ada_make_symbol_completion_list): Remove text and | |
2816 | text_len locals and don't pass them down. | |
2817 | * symtab.c (completion_list_add_name): Remove | |
2818 | sym_text/sym_text_len parameters and adjust. | |
2819 | (completion_list_add_symbol, completion_list_add_msymbol) | |
2820 | (completion_list_objc_symbol, completion_list_add_fields) | |
2821 | (add_symtab_completions): Likewise. | |
2822 | (default_collect_symbol_completion_matches_break_on) | |
2823 | (collect_file_symbol_completion_matches): Remove sym_text_len | |
2824 | local and don't pass it down. | |
2825 | * symtab.h (completion_list_add_name): Remove | |
2826 | sym_text/sym_text_len parameters. | |
2827 | ||
c62446b1 PA |
2828 | 2017-11-08 Pedro Alves <palves@redhat.com> |
2829 | ||
2830 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
2831 | unittests/lookup_name_info-selftests.c. | |
2832 | (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o. | |
2833 | * cp-support.c: Include "selftest.h". | |
2834 | (cp_remove_params_1): Rename from cp_remove_params. Add | |
2835 | 'require_param' parameter, and handle it. | |
2836 | (cp_remove_params): Reimplement. | |
2837 | (cp_remove_params_if_any): New. | |
2838 | (selftests::quote): New. | |
2839 | (selftests::check_remove_params): New. | |
2840 | (selftests::test_cp_remove_params): New. | |
2841 | (_initialize_cp_support): Install | |
2842 | selftests::test_cp_remove_params. | |
2843 | * cp-support.h (cp_remove_params_if_any): Declare. | |
2844 | * dwarf2read.c :Include "selftest.h". | |
2845 | (dw2_expand_symtabs_matching_symbol): Use | |
2846 | lookup_name_info::make_ignore_params. | |
2847 | (selftests::dw2_expand_symtabs_matching::mock_mapped_index) | |
2848 | (selftests::dw2_expand_symtabs_matching::string_or_null) | |
2849 | (selftests::dw2_expand_symtabs_matching::check_match) | |
2850 | (selftests::dw2_expand_symtabs_matching::test_symbols) | |
2851 | (selftests::dw2_expand_symtabs_matching::run_test): New. | |
2852 | (_initialize_dwarf2_read): Register | |
2853 | selftests::dw2_expand_symtabs_matching::run_test. | |
2854 | * psymtab.c (psym_expand_symtabs_matching): Use | |
2855 | lookup_name_info::make_ignore_params. | |
2856 | * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info): | |
2857 | If the lookup name wants to ignore parameters, strip them. | |
2858 | (compare_symbol_name): Remove sym_text/sym_text_len parameters and | |
2859 | code handling '('. | |
2860 | (completion_list_add_name): Don't pass down sym_text/sym_text_len. | |
2861 | (default_collect_symbol_completion_matches_break_on): Don't try to | |
2862 | strip parameters. | |
2863 | * symtab.h (lookup_name_info::lookup_name_info): Add | |
2864 | 'ignore_parameters' parameter. | |
2865 | (lookup_name_info::ignore_parameters) | |
2866 | (lookup_name_info::make_ignore_params): New methods. | |
2867 | (lookup_name_info::m_ignore_parameters): New field. | |
2868 | * unittests/lookup_name_info-selftests.c: New file. | |
2869 | ||
61920122 PA |
2870 | 2017-11-08 Pedro Alves <palves@redhat.com> |
2871 | ||
2872 | * dwarf2read.c (dw2_expand_marked_cus) | |
2873 | (dw2_expand_symtabs_matching_symbol): Remove forward declarations. | |
2874 | (dw2_expand_symtabs_matching): Move further below. | |
2875 | (dw2_expand_marked_cus): Reindent. | |
2876 | ||
3f563c84 PA |
2877 | 2017-11-08 Pedro Alves <palves@redhat.com> |
2878 | ||
2879 | * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file. | |
2880 | (struct name_component): New. | |
2881 | (mapped_index::name_components): New field. | |
2882 | (mapped_index::symbol_name_at): New method. | |
2883 | (dwarf2_read_index): Call mapped_index ctor. | |
2884 | (dw2_map_matching_symbols): Add comment about name_components | |
2885 | table. | |
2886 | (dw2_expand_symtabs_matching): Factor part to... | |
2887 | (dw2_expand_symtabs_matching_symbol): ... this new function. | |
2888 | Build name components table, and lookup symbols in it before | |
2889 | calling the name matcher. | |
2890 | (dw2_expand_marked_cus): New, factored out from | |
2891 | dw2_expand_symtabs_matching. | |
2892 | (dwarf2_per_objfile_free): Call the mapped_index's dtor. | |
2893 | ||
b5ec771e PA |
2894 | 2017-11-08 Pedro Alves <palves@redhat.com> |
2895 | ||
2896 | * ada-lang.c (ada_encode): Rename to .. | |
2897 | (ada_encode_1): ... this. Add throw_errors parameter and handle | |
2898 | it. | |
2899 | (ada_encode): Reimplement. | |
2900 | (match_name): Delete, folded into full_name. | |
2901 | (resolve_subexp): No longer pass the encoded name to | |
2902 | ada_lookup_symbol_list. | |
2903 | (should_use_wild_match): Delete. | |
2904 | (name_match_type_from_name): New. | |
2905 | (ada_lookup_simple_minsym): Use lookup_name_info and the | |
2906 | language's symbol_name_matcher_ftype. | |
2907 | (add_symbols_from_enclosing_procs, ada_add_local_symbols) | |
2908 | (ada_add_block_renamings): Adjust to use lookup_name_info. | |
2909 | (ada_lookup_name): New. | |
2910 | (add_nonlocal_symbols, ada_add_all_symbols) | |
2911 | (ada_lookup_symbol_list_worker, ada_lookup_symbol_list) | |
2912 | (ada_iterate_over_symbols): Adjust to use lookup_name_info. | |
2913 | (ada_name_for_lookup): Delete. | |
2914 | (ada_lookup_encoded_symbol): Construct a verbatim name. | |
2915 | (wild_match): Reverse sense of return type. Use bool. | |
2916 | (full_match): Reverse sense of return type. Inline bits of old | |
2917 | match_name here. | |
2918 | (ada_add_block_symbols): Adjust to use lookup_name_info. | |
2919 | (symbol_completion_match): Delete, folded into... | |
2920 | (ada_lookup_name_info::matches): ... .this new method. | |
2921 | (symbol_completion_add): Delete. | |
2922 | (ada_collect_symbol_completion_matches): Add name_match_type | |
2923 | parameter. Adjust to use lookup_name_info and | |
2924 | completion_list_add_name. | |
2925 | (get_var_value, ada_add_global_exceptions): Adjust to use | |
2926 | lookup_name_info. | |
2927 | (ada_get_symbol_name_cmp): Delete. | |
2928 | (do_wild_match, do_full_match): New functions. | |
2929 | (ada_lookup_name_info::ada_lookup_name_info): New method. | |
2930 | (ada_symbol_name_matches, ada_get_symbol_name_matcher): New | |
2931 | functions. | |
2932 | (ada_language_defn): Install ada_get_symbol_name_matcher. | |
2933 | * ada-lex.l (processId): If name starts with '<', copy it | |
2934 | verbatim. | |
2935 | * block.c (block_iter_match_step, block_iter_match_first) | |
2936 | (block_iter_match_next, block_lookup_symbol) | |
2937 | (block_lookup_symbol_primary, block_find_symbol): Adjust to use | |
2938 | lookup_name_info. | |
2939 | * block.h (block_iter_match_first, block_iter_match_next) | |
2940 | (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info. | |
2941 | * c-lang.c (c_language_defn, cplus_language_defn) | |
2942 | (asm_language_defn, minimal_language_defn): Adjust comments to | |
2943 | refer to la_get_symbol_name_matcher. | |
2944 | * completer.c (complete_files_symbols) | |
2945 | (collect_explicit_location_matches, symbol_completer): Pass a | |
2946 | symbol_name_match_type down. | |
2947 | * completer.h (class completion_match, completion_match_result): | |
2948 | New classes. | |
2949 | (completion_tracker::reset_completion_match_result): New method. | |
2950 | (completion_tracker::m_completion_match_result): New field. | |
2951 | * cp-support.c (make_symbol_overload_list_block): Adjust to use | |
2952 | lookup_name_info. | |
2953 | (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New | |
2954 | functions. | |
2955 | * cp-support.h (cp_get_symbol_name_matcher): New declaration. | |
2956 | * d-lang.c: Adjust comments to refer to | |
2957 | la_get_symbol_name_matcher. | |
2958 | * dictionary.c (dict_vector) <iter_match_first, iter_match_next>: | |
2959 | Adjust to use lookup_name_info. | |
2960 | (dict_iter_match_first, dict_iter_match_next) | |
2961 | (iter_match_first_hashed, iter_match_next_hashed) | |
2962 | (iter_match_first_linear, iter_match_next_linear): Adjust to work | |
2963 | with a lookup_name_info. | |
2964 | * dictionary.h (dict_iter_match_first, dict_iter_match_next): | |
2965 | Likewise. | |
2966 | * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info. | |
2967 | (dw2_map_matching_symbols): Adjust to use symbol_name_match_type. | |
2968 | (gdb_index_symbol_name_matcher): New class. | |
2969 | (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and | |
2970 | gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher. | |
2971 | * f-lang.c (f_collect_symbol_completion_matches): Adjust to work | |
2972 | with a symbol_name_match_type. | |
2973 | (f_language_defn): Adjust comments to refer to | |
2974 | la_get_symbol_name_matcher. | |
2975 | * go-lang.c (go_language_defn): Adjust comments to refer to | |
2976 | la_get_symbol_name_matcher. | |
2977 | * language.c (default_symbol_name_matcher) | |
2978 | (language_get_symbol_name_matcher): New functions. | |
2979 | (unknown_language_defn, auto_language_defn): Adjust comments to | |
2980 | refer to la_get_symbol_name_matcher. | |
2981 | * language.h (symbol_name_cmp_ftype): Delete. | |
2982 | (language_defn) <la_collect_symbol_completion_matches>: Add match | |
2983 | type parameter. | |
2984 | <la_get_symbol_name_cmp>: Delete field. | |
2985 | <la_get_symbol_name_matcher>: New field. | |
2986 | <la_iterate_over_symbols>: Adjust to use lookup_name_info. | |
2987 | (default_symbol_name_matcher, language_get_symbol_name_matcher): | |
2988 | Declare. | |
2989 | * linespec.c (iterate_over_all_matching_symtabs) | |
2990 | (iterate_over_file_blocks): Adjust to use lookup_name_info. | |
2991 | (find_methods): Add language parameter, and use lookup_name_info | |
2992 | and the language's symbol_name_matcher_ftype. | |
2993 | (linespec_complete_function): Adjust. | |
2994 | (lookup_prefix_sym): Use lookup_name_info. | |
2995 | (add_all_symbol_names_from_pspace): Adjust. | |
2996 | (find_superclass_methods): Add language parameter and pass it | |
2997 | down. | |
2998 | (find_method): Pass symbol language down. | |
2999 | (find_linespec_symbols): Don't demangle or Ada encode here. | |
3000 | (search_minsyms_for_name): Add lookup_name_info parameter. | |
3001 | (add_matching_symbols_to_info): Add name_match_type parameter. | |
3002 | Use lookup_name_info. | |
3003 | * m2-lang.c (m2_language_defn): Adjust comments to refer to | |
3004 | la_get_symbol_name_matcher. | |
3005 | * minsyms.c: Include <algorithm>. | |
3006 | (add_minsym_to_demangled_hash_table): Remove table parameter and | |
3007 | add objfile parameter. Use search_name_hash, and add language to | |
3008 | demangled languages vector. | |
3009 | (struct found_minimal_symbols): New struct. | |
3010 | (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled): | |
3011 | New functions. | |
3012 | (lookup_minimal_symbol): Adjust to use them. Don't canonicalize | |
3013 | input names here. Use lookup_name_info instead. Lookup up | |
3014 | demangled names once for each language in the demangled names | |
3015 | vector. | |
3016 | (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up | |
3017 | demangled names once for each language in the demangled names | |
3018 | vector. | |
3019 | (build_minimal_symbol_hash_tables): Adjust. | |
3020 | * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a | |
3021 | lookup_name_info. | |
3022 | * objc-lang.c (objc_language_defn): Adjust comment to refer to | |
3023 | la_get_symbol_name_matcher. | |
3024 | * objfiles.h: Include <vector>. | |
3025 | (objfile_per_bfd_storage) <demangled_hash_languages>: New field. | |
3026 | * opencl-lang.c (opencl_language_defn): Adjust comment to refer to | |
3027 | la_get_symbol_name_matcher. | |
3028 | * p-lang.c (pascal_language_defn): Adjust comment to refer to | |
3029 | la_get_symbol_name_matcher. | |
3030 | * psymtab.c (psym_lookup_symbol): Use lookup_name_info. | |
3031 | (match_partial_symbol): Use symbol_name_match_type, | |
3032 | lookup_name_info and psymbol_name_matches. | |
3033 | (lookup_partial_symbol): Use lookup_name_info. | |
3034 | (map_block): Use symbol_name_match_type and lookup_name_info. | |
3035 | (psym_map_matching_symbols): Use symbol_name_match_type. | |
3036 | (psymbol_name_matches): New. | |
3037 | (recursively_search_psymtabs): Use lookup_name_info and | |
3038 | psymbol_name_matches. Rename 'kind' parameter to 'domain'. | |
3039 | (psym_expand_symtabs_matching): Use lookup_name_info. Rename | |
3040 | 'kind' parameter to 'domain'. | |
3041 | * rust-lang.c (rust_language_defn): Adjust comment to refer to | |
3042 | la_get_symbol_name_matcher. | |
3043 | * symfile-debug.c (debug_qf_map_matching_symbols) | |
3044 | (debug_qf_map_matching_symbols): Use symbol_name_match_type. | |
3045 | (debug_qf_expand_symtabs_matching): Use lookup_name_info. | |
3046 | * symfile.c (expand_symtabs_matching): Use lookup_name_info. | |
3047 | * symfile.h (quick_symbol_functions) <map_matching_symbols>: | |
3048 | Adjust to use symbol_name_match_type. | |
3049 | <expand_symtabs_matching>: Adjust to use lookup_name_info. | |
3050 | (expand_symtabs_matching): Adjust to use lookup_name_info. | |
3051 | * symmisc.c (maintenance_expand_symtabs): Use | |
3052 | lookup_name_info::match_any (). | |
3053 | * symtab.c (symbol_matches_search_name): New. | |
3054 | (eq_symbol_entry): Adjust to use lookup_name_info and the | |
3055 | language's matcher. | |
3056 | (demangle_for_lookup_info::demangle_for_lookup_info): New. | |
3057 | (lookup_name_info::match_any): New. | |
3058 | (iterate_over_symbols, search_symbols): Use lookup_name_info. | |
3059 | (compare_symbol_name): Add language, lookup_name_info and | |
3060 | completion_match_result parameters, and use them. | |
3061 | (completion_list_add_name): Make extern. Add language and | |
3062 | lookup_name_info parameters. Use them. | |
3063 | (completion_list_add_symbol, completion_list_add_msymbol) | |
3064 | (completion_list_objc_symbol): Add lookup_name_info parameters and | |
3065 | adjust. Pass down language. | |
3066 | (completion_list_add_fields): Add lookup_name_info parameters and | |
3067 | adjust. Pass down language. | |
3068 | (add_symtab_completions): Add lookup_name_info parameters and | |
3069 | adjust. | |
3070 | (default_collect_symbol_completion_matches_break_on): Add | |
3071 | name_match_type parameter, and use it. Use lookup_name_info. | |
3072 | (default_collect_symbol_completion_matches) | |
3073 | (collect_symbol_completion_matches): Add name_match_type | |
3074 | parameter, and pass it down. | |
3075 | (collect_symbol_completion_matches_type): Adjust. | |
3076 | (collect_file_symbol_completion_matches): Add name_match_type | |
3077 | parameter, and use lookup_name_info. | |
3078 | * symtab.h: Include <string> and "common/gdb_optional.h". | |
3079 | (enum class symbol_name_match_type): New. | |
3080 | (class ada_lookup_name_info): New. | |
3081 | (struct demangle_for_lookup_info): New. | |
3082 | (class lookup_name_info): New. | |
3083 | (symbol_name_matcher_ftype): New. | |
3084 | (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name. | |
3085 | (symbol_matches_search_name): Declare. | |
3086 | (MSYMBOL_MATCHES_SEARCH_NAME): Delete. | |
3087 | (default_collect_symbol_completion_matches) | |
3088 | (collect_symbol_completion_matches) | |
3089 | (collect_file_symbol_completion_matches): Add name_match_type | |
3090 | parameter. | |
3091 | (iterate_over_symbols): Use lookup_name_info. | |
3092 | (completion_list_add_name): Declare. | |
3093 | * utils.c (enum class strncmp_iw_mode): Moved to utils.h. | |
3094 | (strncmp_iw_with_mode): Now extern. | |
3095 | * utils.h (enum class strncmp_iw_mode): Moved from utils.c. | |
3096 | (strncmp_iw_with_mode): Declare. | |
3097 | ||
5ffa0793 PA |
3098 | 2017-11-08 Keith Seitz <keiths@redhat.com> |
3099 | Pedro Alves <palves@redhat.com> | |
3100 | ||
3101 | * ada-lang.c (ada_language_defn): Install | |
3102 | default_search_name_hash. | |
3103 | * buildsym.c (struct buildsym_compunit): <language>: New field. | |
3104 | (finish_block_internal): Pass language when creating dictionaries. | |
3105 | (start_buildsym_compunit, start_symtab): New language parameters. | |
3106 | Use them. | |
3107 | (restart_symtab): Pass down compilation unit's language. | |
3108 | * buildsym.h (enum language): Forward declare. | |
3109 | (start_symtab): New 'language' parameter. | |
3110 | * c-lang.c (c_language_defn, cplus_language_defn) | |
3111 | (asm_language_defn, minimal_language_defn): Install | |
3112 | default_search_name_hash. | |
3113 | * coffread.c (coff_start_symtab): Adjust. | |
3114 | * d-lang.c (d_language_defn): Install default_search_name_hash. | |
3115 | * dbxread.c (struct symloc): Add 'pst_language' field. | |
3116 | (PST_LANGUAGE): Define. | |
3117 | (start_psymtab, read_ofile_symtab): Use it. | |
3118 | (process_one_symbol): New 'language' parameter. Pass it down. | |
3119 | * dictionary.c (struct dictionary) <language>: New field. | |
3120 | (DICT_LANGUAGE): Define. | |
3121 | (dict_create_hashed, dict_create_hashed_expandable) | |
3122 | (dict_create_linear, dict_create_linear_expandable): New parameter | |
3123 | 'language'. Set the dictionary's language. | |
3124 | (iter_match_first_hashed): Adjust to rename. | |
3125 | (insert_symbol_hashed): Assert we don't see mismatching | |
3126 | languages. Adjust to rename. | |
3127 | (dict_hash): Rename to ... | |
3128 | (default_search_name_hash): ... this and make extern. | |
3129 | * dictionary.h (struct language_defn): Forward declare. | |
3130 | (dict_create_hashed): New parameter 'language'. | |
3131 | * dwarf2read.c (dwarf2_start_symtab): Pass down language. | |
3132 | * f-lang.c (f_language_defn): Install default_search_name_hash. | |
3133 | * go-lang.c (go_language_defn): Install default_search_name_hash. | |
3134 | * jit.c (finalize_symtab): Pass compunit's language to dictionary | |
3135 | creation. | |
3136 | * language.c (unknown_language_defn, auto_language_defn): | |
3137 | * language.h (language_defn::la_search_name_hash): New field. | |
3138 | (default_search_name_hash): Declare. | |
3139 | * m2-lang.c (m2_language_defn): Install default_search_name_hash. | |
3140 | * mdebugread.c (new_block): New parameter 'language'. | |
3141 | * mdebugread.c (parse_symbol): Pass symbol language to block | |
3142 | allocation. | |
3143 | (psymtab_to_symtab_1): Pass down language. | |
3144 | (new_symtab): Pass compunit's language to block allocation. | |
3145 | * objc-lang.c (objc_language_defn): Install | |
3146 | default_search_name_hash. | |
3147 | * opencl-lang.c (opencl_language_defn): | |
3148 | * p-lang.c (pascal_language_defn): Install | |
3149 | default_search_name_hash. | |
3150 | * rust-lang.c (rust_language_defn): Install | |
3151 | default_search_name_hash. | |
3152 | * stabsread.h (enum language): Forward declare. | |
3153 | (process_one_symbol): Add 'language' parameter. | |
3154 | * symtab.c (search_name_hash): New function. | |
3155 | * symtab.h (search_name_hash): Declare. | |
3156 | * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab. | |
3157 | ||
2a1dde5d PA |
3158 | 2017-11-08 Pedro Alves <palves@redhat.com> |
3159 | ||
3160 | * cp-name-parser.y (main): Don't initialize extra_chars. | |
3161 | ||
95a6b0a1 TT |
3162 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3163 | ||
3164 | * event-top.h (command_handler): Constify. | |
3165 | * record-full.c (cmd_record_full_start): Update. | |
3166 | * thread.c (thread_apply_all_command): Update. | |
3167 | * printcmd.c (eval_command): Update. | |
3168 | * mi/mi-main.c (mi_execute_cli_command): Update. | |
3169 | (mi_execute_async_cli_command): Update. | |
3170 | * tui/tui-stack.c (tui_update_command): Update. | |
3171 | * cli/cli-interp.c (safe_execute_command): Constify. | |
3172 | * record.c (record_start): Update. | |
3173 | (record_start, record_stop, cmd_record_start): Update. | |
3174 | * record-btrace.c (cmd_record_btrace_bts_start): Update. | |
3175 | (cmd_record_btrace_pt_start): Update. | |
3176 | (cmd_record_btrace_start): Update. | |
3177 | (cmd_record_btrace_start): Update. | |
3178 | * reverse.c (exec_reverse_once): Update. | |
3179 | * python/python.c (execute_gdb_command): Don't copy the command. | |
3180 | * event-top.c (command_line_handler): Update. | |
3181 | (command_handler): Constify. | |
3182 | * defs.h (deprecated_call_command_hook): Constify. | |
3183 | * cli/cli-script.h (execute_user_command): Constify. | |
3184 | * cli/cli-script.c (execute_user_command): Constify. | |
3185 | (execute_cmd_pre_hook, execute_cmd_post_hook): Constify. | |
3186 | (enum command_control_type): Update. | |
3187 | * main.c (catch_command_errors): Remove non-const overload. | |
3188 | (catch_command_errors_ftype): Remove. | |
3189 | * python/py-cmd.c (cmdpy_function): Constify. | |
3190 | * guile/scm-cmd.c (cmdscm_function): Constify. | |
3191 | * cli/cli-dump.c (call_dump_func): Constify. | |
3192 | * cli/cli-decode.c (do_const_cfunc): Constify. | |
3193 | (do_sfunc): Constify. | |
3194 | (cmd_func): Constify. | |
3195 | * gdbcmd.h (execute_command, execute_command_to_string): Constify. | |
3196 | * top.h (execute_command): Constify. | |
3197 | * top.c (execute_command): Constify. | |
3198 | (execute_command_to_string): Constify. | |
3199 | (deprecated_call_command_hook): Constify. | |
3200 | * command.h (cmd_func): Constify. | |
3201 | * cli/cli-decode.h (struct cmd_list_element) <func>: Constify. | |
3202 | ||
eb4c3f4a TT |
3203 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3204 | ||
3205 | * ada-lang.c (catch_ada_exception_command): Constify. | |
3206 | (catch_assert_command): Constify. | |
3207 | * break-catch-throw.c (catch_catch_command, catch_throw_command) | |
3208 | (catch_rethrow_command): Constify. | |
3209 | (catch_exception_command_1): Constify. | |
3210 | * breakpoint.h (add_catch_command): Constify. | |
3211 | * break-catch-syscall.c (catch_syscall_command_1): Constify. | |
3212 | (catch_syscall_split_args): Constify. | |
3213 | * break-catch-sig.c (catch_signal_command): Constify. | |
3214 | (catch_signal_split_args): Constify. | |
3215 | * cli/cli-decode.h (struct cmd_list_element) <function>: Use | |
3216 | cmd_const_sfunc_ftype. | |
3217 | * cli/cli-decode.c (add_setshow_cmd_full): Constify. | |
3218 | (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd) | |
3219 | (add_setshow_boolean_cmd, add_setshow_filename_cmd) | |
3220 | (add_setshow_string_cmd, struct cmd_list_element) | |
3221 | (add_setshow_optional_filename_cmd, add_setshow_integer_cmd) | |
3222 | (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd) | |
3223 | (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd): | |
3224 | Constify. | |
3225 | (set_cmd_sfunc): Constify. | |
3226 | (empty_sfunc): Constify. | |
3227 | * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd) | |
3228 | (add_setshow_boolean_cmd, add_setshow_filename_cmd) | |
3229 | (add_setshow_string_cmd, add_setshow_string_noescape_cmd) | |
3230 | (add_setshow_optional_filename_cmd, add_setshow_integer_cmd) | |
3231 | (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd) | |
3232 | (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd): | |
3233 | Constify. | |
3234 | (set_cmd_sfunc): Constify. | |
3235 | (cmd_sfunc_ftype): Remove. | |
3236 | * compile/compile.c (set_compile_args): Constify. | |
3237 | * infrun.c (set_disable_randomization): Constify. | |
3238 | * infcmd.c (set_args_command, set_cwd_command): Constify. | |
3239 | * breakpoint.c (set_condition_evaluation_mode): Constify. | |
3240 | (add_catch_command): Constify. | |
3241 | (catch_fork_command_1, catch_exec_command_1) | |
3242 | (catch_load_command_1, catch_unload_command_1): Constify. | |
3243 | (catch_load_or_unload): Constify. | |
3244 | * guile/scm-param.c (pascm_set_func): Constify. | |
3245 | (add_setshow_generic): Constify. | |
3246 | * python/py-param.c (get_set_value): Constify. | |
3247 | * top.h (set_verbose): Constify. | |
3248 | * tui/tui-win.c (tui_set_var_cmd): Constify. | |
3249 | * mi/mi-main.c (set_mi_async_command): Constify. | |
3250 | * cli/cli-logging.c (set_logging_overwrite) | |
3251 | (set_logging_redirect): Constify. | |
3252 | * value.c (set_max_value_size): Constify. | |
3253 | * valprint.c (set_input_radix, set_output_radix): Constify. | |
3254 | * utils.c (set_width_command, set_height_command): Constify. | |
3255 | * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify. | |
3256 | * tracepoint.c (set_disconnected_tracing) | |
3257 | (set_circular_trace_buffer, set_trace_buffer_size) | |
3258 | (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify. | |
3259 | * top.c (set_history_size_command, set_verbose, set_editing) | |
3260 | (set_gdb_datadir, set_history_filename): Constify. | |
3261 | * target.c (set_targetdebug, maint_set_target_async_command) | |
3262 | (maint_set_target_non_stop_command, set_target_permissions) | |
3263 | (set_write_memory_permission): Constify. | |
3264 | (open_target): Constify. | |
3265 | * target-descriptions.c (set_tdesc_filename_cmd): Constify. | |
3266 | * target-dcache.c (set_stack_cache, set_code_cache): Constify. | |
3267 | * symtab.c (set_symbol_cache_size_handler): Constify. | |
3268 | * symfile.c (set_ext_lang_command): Constify. | |
3269 | * symfile-debug.c (set_debug_symfile): Constify. | |
3270 | * source.c (set_directories_command): Constify. | |
3271 | * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify. | |
3272 | * serial.c (set_parity): Constify. | |
3273 | * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify. | |
3274 | * remote.c (set_remote_exec_file, set_remotebreak) | |
3275 | (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify. | |
3276 | * record.c (set_record_insn_history_size) | |
3277 | (set_record_call_history_size): Constify. | |
3278 | * record-full.c (set_record_full_insn_max_num): Constify. | |
3279 | * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify. | |
3280 | * osabi.c (set_osabi): Constify. | |
3281 | * mips-tdep.c (set_mips64_transfers_32bit_regs) | |
3282 | (reinit_frame_cache_sfunc, mips_abi_update): Constify. | |
3283 | * maint.c (maintenance_set_profile_cmd): Constify. | |
3284 | * linux-thread-db.c (set_libthread_db_search_path): Constify. | |
3285 | * language.c (set_language_command, set_range_command) | |
3286 | (set_case_command): Constify. | |
3287 | * infrun.c (set_non_stop, set_observer_mode) | |
3288 | (set_stop_on_solib_events, set_schedlock_func) | |
3289 | (set_exec_direction_func): Constify. | |
3290 | * infcmd.c (set_inferior_tty_command): Constify. | |
3291 | * disasm.c (set_disassembler_options_sfunc): Constify. | |
3292 | * demangle.c (set_demangling_command): Constify. | |
3293 | * dcache.c (set_dcache_size, set_dcache_line_size): Constify. | |
3294 | * cris-tdep.c (set_cris_version, set_cris_mode) | |
3295 | (set_cris_dwarf2_cfi): Constify. | |
3296 | * corefile.c (set_gnutarget_command): Constify. | |
3297 | * charset.c (set_host_charset_sfunc, set_target_charset_sfunc) | |
3298 | (set_target_wide_charset_sfunc): Constify. | |
3299 | * breakpoint.c (update_dprintf_commands): Constify. | |
3300 | * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify. | |
3301 | * arm-tdep.c (set_fp_model_sfunc, arm_set_abi) | |
3302 | (set_disassembly_style_sfunc): Constify. | |
3303 | * arch-utils.c (set_endian, set_architecture): Constify. | |
3304 | * alpha-tdep.c (reinit_frame_cache_sfunc): Constify. | |
3305 | * agent.c (set_can_use_agent): Constify. | |
3306 | ||
5fed81ff TT |
3307 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3308 | ||
3309 | * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt) | |
3310 | (go32_pde, go32_pte, go32_pte_for_address): Constify. | |
3311 | * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd) | |
3312 | (set_thread_default_pause_cmd, set_thread_default_run_cmd) | |
3313 | (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd) | |
3314 | (parse_int_arg, show_thread_default_detach_sc_cmd) | |
3315 | (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd) | |
3316 | (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd) | |
3317 | (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd) | |
3318 | (show_task_pause_cmd, set_task_detach_sc_cmd) | |
3319 | (show_task_detach_sc_cmd, set_task_exc_port_cmd) | |
3320 | (set_noninvasive_cmd, set_thread_pause_cmd) | |
3321 | (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd) | |
3322 | (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd) | |
3323 | (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify. | |
3324 | * windows-nat.c (display_selectors): Constify. | |
3325 | * cli/cli-decode.h (struct cmd_list_element) <function>: Remove | |
3326 | non-const "cfunc". | |
3327 | * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload. | |
3328 | (cmd_cfunc_eq): Likewise. | |
3329 | (struct cmd_list_element): Likewise. | |
3330 | (do_cfunc): Remove. | |
3331 | (cli_user_command_p): Update. | |
3332 | * command.h (add_cmd): Remove non-const overload. | |
3333 | (cmd_cfunc_ftype): Remove typedef. | |
3334 | (cmd_cfunc_eq): Remove non-const overload. | |
3335 | * value.c (show_values): Constify. | |
3336 | * thread.c (thread_apply_all_command): Constify. | |
3337 | * symfile.c (load_command): Constify. | |
3338 | * source.c (directory_command): Constify. | |
3339 | * maint.c (maintenance_internal_error) | |
3340 | (maintenance_demangler_warning, maintenance_space_display) | |
3341 | (maintenance_print_architecture, maintenance_translate_address) | |
3342 | (maintenance_info_selftests, maintenance_internal_warning): | |
3343 | Constify. | |
3344 | * breakpoint.c (disable_trace_command, enable_trace_command): | |
3345 | Constify. | |
3346 | * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir): | |
3347 | Constify. | |
3348 | (add_auto_load_safe_path): Constify. | |
3349 | * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify. | |
3350 | * top.h (show_commands): Constify. | |
3351 | * linux-thread-db.c (info_auto_load_libthread_db): Constify. | |
3352 | * sparc64-tdep.c (adi_examine_command): Constify. | |
3353 | (adi_assign_command): Constify. | |
3354 | ||
1d12d88f TT |
3355 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3356 | ||
3357 | * frame.h (info_locals_command, info_args_command): Constify. | |
3358 | * auto-load.h (auto_load_info_scripts): Constify. | |
3359 | * inferior.h (registers_info): Constify. | |
3360 | * copying.c: Rebuild. | |
3361 | * copying.awk: Constify generated commands. | |
3362 | * auto-load.c (auto_load_info_scripts) | |
3363 | (info_auto_load_gdb_scripts): Constify. | |
3364 | * cli/cli-decode.c (struct cmd_list_element): Take a | |
3365 | cmd_const_cfunc_ftype. | |
3366 | * command.h (add_info): Take a cmd_const_cfunc_ftype. | |
3367 | * tui/tui-win.c (tui_all_windows_info): Constify. | |
3368 | * python/py-auto-load.c (info_auto_load_python_scripts): | |
3369 | Constify. | |
3370 | * cli/cli-cmds.c (show_command): Remove non-const overload. | |
3371 | * tracepoint.c (info_tvariables_command, info_scope_command): | |
3372 | Constify. | |
3373 | (info_static_tracepoint_markers_command): Constify. | |
3374 | * thread.c (info_threads_command): Constify. | |
3375 | (print_thread_info_1): Constify. | |
3376 | * target.c (info_target_command): Constify. | |
3377 | * symtab.c (info_sources_command, info_functions_command) | |
3378 | (info_types_command): Constify. | |
3379 | (info_variables_command): Remove non-const overload. | |
3380 | * symfile.c (info_ext_lang_command): Constify. | |
3381 | * stack.c (info_frame_command, info_locals_command) | |
3382 | (info_args_command): Constify. | |
3383 | (backtrace_command): Remove non-const overload. | |
3384 | * source.c (info_source_command, info_line_command): Constify. | |
3385 | * solib.c (info_sharedlibrary_command): Constify. | |
3386 | * skip.c (info_skip_command): Constify. | |
3387 | * ser-go32.c (info_serial_command): Constify. | |
3388 | * reverse.c (info_bookmarks_command): Constify. | |
3389 | * printcmd.c (info_symbol_command, info_address_command) | |
3390 | (info_display_command): Constify. | |
3391 | * osdata.c (info_osdata_command): Constify. | |
3392 | * objc-lang.c (info_selectors_command, info_classes_command): | |
3393 | Constify. | |
3394 | * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify. | |
3395 | * memattr.c (info_mem_command): Constify. | |
3396 | * macrocmd.c (info_macro_command, info_macros_command): Constify. | |
3397 | * linux-fork.c (info_checkpoints_command): Constify. | |
3398 | * infrun.c (info_signals_command): Constify. | |
3399 | * inflow.c (info_terminal_command): Constify. | |
3400 | * inferior.c (info_inferiors_command): Constify. | |
3401 | (print_inferior): Constify. | |
3402 | * infcmd.c (info_program_command, info_all_registers_command) | |
3403 | (info_registers_command, info_vector_command) | |
3404 | (info_float_command): Constify. | |
3405 | (registers_info): Constify. | |
3406 | * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd) | |
3407 | (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd): | |
3408 | Constify. | |
3409 | * f-valprint.c (info_common_command): Constify. | |
3410 | * dcache.c (info_dcache_command): Constify. | |
3411 | (dcache_info_1): Constify. | |
3412 | * darwin-nat-info.c (info_mach_tasks_command) | |
3413 | (info_mach_task_command, info_mach_ports_command) | |
3414 | (info_mach_port_command, info_mach_threads_command) | |
3415 | (info_mach_thread_command, info_mach_regions_command) | |
3416 | (info_mach_regions_recurse_command, info_mach_region_command) | |
3417 | (info_mach_exceptions_command): Constify. | |
3418 | (get_task_from_args): Constify. | |
3419 | * cp-support.c (info_vtbl_command): Constify. | |
3420 | * breakpoint.c (info_watchpoints_command) | |
3421 | (info_tracepoints_command): Constify. | |
3422 | (info_breakpoints_command): Remove non-const overload. | |
3423 | * avr-tdep.c (avr_io_reg_read_command): Constify. | |
3424 | * auxv.c (info_auxv_command): Constify. | |
3425 | * ada-tasks.c (info_tasks_command): Constify. | |
3426 | (info_task): Constify. | |
3427 | * ada-lang.c (info_exceptions_command): Constify. | |
3428 | ||
0b39b52e TT |
3429 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3430 | ||
3431 | * solib.h (no_shared_libraries): Constify. | |
3432 | * frame.h (return_command): Constify. | |
3433 | * cli/cli-cmds.h (quit_command): Constify. | |
3434 | * top.h (quit_command, execute_command): Constify. | |
3435 | * target.h (flash_erase_command): Constify. | |
3436 | * inferior.h (set_inferior_args, attach_command): Constify. | |
3437 | * tracepoint.h (start_tracing, stop_tracing): Constify. | |
3438 | * breakpoint.h (break_command, tbreak_command) | |
3439 | (hbreak_command_wrapper, thbreak_command_wrapper) | |
3440 | (rbreak_command_wrapper, watch_command_wrapper) | |
3441 | (awatch_command_wrapper, rwatch_command_wrapper) | |
3442 | (get_tracepoint_by_number): Constify. | |
3443 | * symtab.c (info_variables_command, rbreak_command) | |
3444 | (symtab_symbol_info): Constify. | |
3445 | (info_variables_command): Add non-const overload. | |
3446 | * top.c (dont_repeat_command): Constify. | |
3447 | * breakpoint.c (ignore_command, commands_command) | |
3448 | (condition_command, tbreak_command, hbreak_command) | |
3449 | (thbreak_command, clear_command, break_command) | |
3450 | (info_breakpoints_command, watch_command, rwatch_command) | |
3451 | (awatch_command, trace_command, ftrace_command, strace_command) | |
3452 | (trace_pass_command, break_range_command, dprintf_command) | |
3453 | (agent_printf_command, get_tracepoint_by_number) | |
3454 | (watch_maybe_just_location, trace_pass_command): Constify. | |
3455 | (info_breakpoints_command): Add non-const overload. | |
3456 | * tracefile.c (tsave_command): Constify. | |
3457 | * infcmd.c (attach_command, disconnect_command, signal_command) | |
3458 | (queue_signal_command, stepi_command, nexti_command) | |
3459 | (finish_command, next_command, step_command, until_command) | |
3460 | (advance_command, jump_command, continue_command, run_command) | |
3461 | (start_command, starti_command, interrupt_command) | |
3462 | (run_command_1, set_inferior_args, step_1): Constify. | |
3463 | * inferior.c (add_inferior_command, remove_inferior_command) | |
3464 | (clone_inferior_command): Constify. | |
3465 | * linux-fork.c (checkpoint_command, restart_command): Constify. | |
3466 | * windows-nat.c (signal_event_command): Constify. | |
3467 | * guile/guile.c (guile_repl_command, guile_command): Constify. | |
3468 | * printcmd.c (x_command, display_command, printf_command) | |
3469 | (output_command, set_command, call_command, print_command) | |
3470 | (eval_command): Constify. | |
3471 | (non_const_set_command): Remove. | |
3472 | (_initialize_printcmd): Update. | |
3473 | * source.c (forward_search_command, reverse_search_command): | |
3474 | Constify. | |
3475 | * jit.c (jit_reader_load_command, jit_reader_unload_command): | |
3476 | Constify. | |
3477 | * infrun.c (handle_command): Constify. | |
3478 | * memattr.c (mem_command): Constify. | |
3479 | * stack.c (return_command, up_command, up_silently_command) | |
3480 | (down_command, down_silently_command, frame_command) | |
3481 | (backtrace_command, func_command, backtrace_command_1): Constify. | |
3482 | (backtrace_command): Add non-const overload. | |
3483 | * remote-sim.c (simulator_command): Constify. | |
3484 | * exec.c (set_section_command): Constify. | |
3485 | * tracepoint.c (tdump_command, trace_variable_command) | |
3486 | (tstatus_command, tstop_command, tstart_command) | |
3487 | (end_actions_pseudocommand, while_stepping_pseudocommand) | |
3488 | (collect_pseudocommand, teval_pseudocommand, actions_command) | |
3489 | (start_tracing, stop_tracing): Constify. | |
3490 | * value.c (init_if_undefined_command): Constify. | |
3491 | * tui/tui-stack.c (tui_update_command): Constify. | |
3492 | * tui/tui-win.c (tui_refresh_all_command) | |
3493 | (tui_set_tab_width_command, tui_set_win_height_command) | |
3494 | (tui_set_focus_command, tui_scroll_forward_command) | |
3495 | (tui_scroll_backward_command, tui_scroll_left_command) | |
3496 | (tui_scroll_right_command, parse_scrolling_args, tui_set_focus) | |
3497 | (tui_set_win_height): Constify. | |
3498 | * tui/tui-layout.c (tui_layout_command): Constify. | |
3499 | * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd) | |
3500 | (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd) | |
3501 | (proc_untrace_sysexit_cmd): Constify. | |
3502 | * remote.c (threadlist_test_cmd, threadinfo_test_cmd) | |
3503 | (threadset_test_cmd, threadlist_update_test_cmd) | |
3504 | (threadalive_test): Constify. | |
3505 | * objc-lang.c (print_object_command): Constify. | |
3506 | * command.h (add_com): Constify. | |
3507 | * cli/cli-dump.c (restore_command): Constify. | |
3508 | * cli/cli-cmds.c (pwd_command, echo_command, quit_command) | |
3509 | (help_command, complete_command, shell_command, edit_command) | |
3510 | (list_command, disassemble_command, make_command) | |
3511 | (apropos_command, alias_command): Constify. | |
3512 | * cli/cli-script.c (document_command, define_command) | |
3513 | (while_command, if_command, validate_comname): Constify. | |
3514 | * cli/cli-decode.c (struct cmd_list_element): Change type of | |
3515 | "fun". | |
3516 | * target.c (do_monitor_command, flash_erase_command): Constify. | |
3517 | * regcache.c (reg_flush_command): Constify. | |
3518 | * reverse.c (reverse_step, reverse_next, reverse_stepi) | |
3519 | (reverse_nexti, reverse_continue, reverse_finish) | |
3520 | (save_bookmark_command, goto_bookmark_command) | |
3521 | (exec_reverse_once): Constify. | |
3522 | * python/python.c (python_interactive_command, python_command): | |
3523 | Constify. | |
3524 | * typeprint.c (ptype_command, whatis_command, whatis_exp): | |
3525 | Constify. | |
3526 | * solib.c (sharedlibrary_command, no_shared_libraries): Constify. | |
3527 | * gcore.c (gcore_command): Constify. | |
3528 | ||
85c4be7c TT |
3529 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3530 | ||
3531 | * printcmd.c (x_command): Call set_repeat_arguments. | |
3532 | * cli/cli-cmds.c (list_command): Call set_repeat_arguments. | |
3533 | * top.c (repeat_arguments): New global. | |
3534 | (set_repeat_arguments): New function. | |
3535 | (execute_command): Handle repeat_arguments. | |
3536 | (show_commands): Calls set_repeat_arguments. | |
3537 | * command.h (set_repeat_arguments): Declare. | |
3538 | ||
022643b4 TT |
3539 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3540 | ||
3541 | * stack.c (backtrace_command): Use std::string. | |
3542 | (backtrace_command_1): Make "count_exp" const. | |
3543 | ||
5614fb77 TT |
3544 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3545 | ||
3546 | * source.c (directory_switch, mod_path, add_path): Constify. | |
3547 | * defs.h (add_path, mod_path, directory_switch): Constify. | |
3548 | * mi/mi-cmd-env.c (env_mod_path): Constify. | |
3549 | ||
6be9a197 TT |
3550 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3551 | ||
3552 | * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr. | |
3553 | (run_command_1, continue_command, step_1, jump_command) | |
3554 | (signal_command, until_command, advance_command, finish_command) | |
3555 | (attach_command): Update. | |
3556 | ||
c2252c0d TT |
3557 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3558 | ||
3559 | * command.h (set_cmd_cfunc): Don't declare. | |
3560 | * cli/cli-decode.c (set_cmd_cfunc): Now static. | |
3561 | ||
1ee870c5 TT |
3562 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3563 | ||
3564 | * stack.c (select_frame_command): Constify. | |
3565 | * cli/cli-decode.c (add_com_suppress_notification): Constify. | |
3566 | * command.h (add_com_suppress_notification): Constify. | |
3567 | ||
ee7ddd71 TT |
3568 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3569 | ||
3570 | * breakpoint.c (stop_command): Constify. | |
3571 | * cli/cli-decode.c (struct cmd_list_element): Constify. | |
3572 | * command.h (add_abbrev_prefix_cmd): Constify. | |
3573 | ||
95e95a6d PA |
3574 | 2017-11-07 Pedro Alves <palves@redhat.com> |
3575 | ||
3576 | * breakpoint.c (extract_bp_kind): New enum. | |
3577 | (extract_bp_num, extract_bp_or_bp_range): New functions, partially | |
3578 | factored out from ... | |
3579 | (extract_bp_number_and_location): ... here. | |
3580 | * cli/cli-utils.c (get_number_trailer): Handle '-$variable'. | |
3581 | ||
cc638e86 PA |
3582 | 2017-11-07 Pedro Alves <palves@redhat.com> |
3583 | ||
3584 | * breakpoint.c (extract_bp_number_and_location): Change return | |
3585 | type to void. Throw error instead of warning. | |
3586 | (enable_disable_command): Adjust. | |
3587 | ||
d0fe4701 XR |
3588 | 2017-11-07 Xavier Roirand <roirand@adacore.com> |
3589 | Pedro Alves <palves@redhat.com> | |
3590 | ||
3591 | * breakpoint.c (map_breakpoint_number_range): New, factored out | |
3592 | from ... | |
3593 | (map_breakpoint_numbers): ... here. | |
3594 | (find_location_by_number): Change parameters from string to | |
3595 | breakpoint number and location. | |
3596 | (extract_bp_number_and_location): New function. | |
3597 | (enable_disable_bp_num_loc) | |
3598 | (enable_disable_breakpoint_location_range) | |
3599 | (enable_disable_command): New functions, factored out ... | |
3600 | (enable_command, disable_command): ... these functions, and | |
3601 | adjusted to support ranges. | |
3602 | * NEWS: Document enable/disable breakpoint location range feature. | |
3603 | ||
635dc5b2 LM |
3604 | 2017-11-06 Luis Machado <luis.machado@linaro.org> |
3605 | ||
3606 | * MAINTAINERS (Write After Approval): Update my e-mail address. | |
3607 | ||
556e5da5 PA |
3608 | 2017-11-06 Pedro Alves <palves@redhat.com> |
3609 | ||
3610 | * gnu-nat.c (gnu_terminal_init): Delete. | |
3611 | (gnu_target): Don't install gnu_terminal_init. | |
3612 | * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ... | |
3613 | (child_terminal_init): ... this function. | |
3614 | ||
d1928160 PA |
3615 | 2017-11-06 Pedro Alves <palves@redhat.com> |
3616 | ||
3617 | * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor | |
3618 | sgtty.h. | |
3619 | * config.in, configure: Regenerate. | |
3620 | ||
6aa899ce PA |
3621 | 2017-11-06 Pedro Alves <palves@redhat.com> |
3622 | ||
3623 | * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout. | |
3624 | (async_init_signals): Adjust. | |
3625 | (handle_stop_sig): Rename to ... | |
3626 | (handle_sigtstp): ... this. | |
3627 | (async_stop_sig): Rename to ... | |
3628 | (async_sigtstp_handler): ... this, and delete STOP_SIGNAL != | |
3629 | SIGTSTP path. | |
3630 | * event-top.h: Move signal.h include to the top. Check SIGTSTP | |
3631 | instead of STOP_SIGNAL thoughout. | |
3632 | (handle_stop_sig): Rename to ... | |
3633 | (handle_sigtstp): ... this. | |
3634 | * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP. | |
3635 | ||
a94799ac PA |
3636 | 2017-11-06 Pedro Alves <palves@redhat.com> |
3637 | ||
3638 | * inflow.c (child_terminal_inferior, child_terminal_ours_1): No | |
3639 | longer set flags twice in row. | |
3640 | ||
726e1356 PA |
3641 | 2017-11-06 Pedro Alves <palves@redhat.com> |
3642 | ||
3643 | * Makefile.in (SER_HARDWIRE): Update comment. | |
3644 | (HFILES_NO_SRCDIR): Remove gdb_termios.h. | |
3645 | * common/gdb_termios.h: Delete file. | |
3646 | * common/job-control.c: Include termios.h and unistd.h instead of | |
3647 | gdb_termios.h. | |
3648 | (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor | |
3649 | check. | |
3650 | (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS. | |
3651 | Remove sgtty code. | |
3652 | * configure.ac: No longer check for termio.h and sgtty.h. | |
3653 | * configure: Regenerate. | |
3654 | * inflow.c: Include termios.h instead of gdb_termios.h. Replace | |
3655 | PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout. | |
3656 | Replace PROCESS_GROUP_TYPE references with pid_t references | |
3657 | throughout. | |
3658 | (gdb_getpgrp): Delete. | |
3659 | (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp. | |
3660 | (child_terminal_inferior): Remove comment. Remove sgtty code. | |
3661 | (child_terminal_ours_1): Use tcgetpgrp directly instead of | |
3662 | gdb_getpgrp. Use serial_set_tty_state instead aof | |
3663 | serial_noflush_set_tty_state. Remove sgtty code. | |
3664 | * inflow.h: Include unistd.h instead of gdb_termios.h. Replace | |
3665 | PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check. | |
3666 | (inferior_process_group): Now returns pid_t. | |
3667 | * ser-base.c (ser_base_noflush_set_tty_state): Delete. | |
3668 | * ser-base.h (ser_base_noflush_set_tty_state): Delete. | |
3669 | * ser-event.c (serial_event_ops): Update. | |
3670 | * ser-go32.c (dos_noflush_set_tty_state): Delete. | |
3671 | (dos_ops): Update. | |
3672 | * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update. | |
3673 | * ser-pipe.c (pipe_ops): Update. | |
3674 | * ser-tcp.c (tcp_ops): Update. | |
3675 | * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove | |
3676 | HAVE_TERMIOS checks. | |
3677 | [HAVE_TERMIO] (struct hardwire_ttystate): Delete. | |
3678 | [HAVE_SGTTY] (struct hardwire_ttystate): Delete. | |
3679 | (get_tty_state, set_tty_state): Drop termio and sgtty code, and | |
3680 | assume termios. | |
3681 | (hardwire_noflush_set_tty_state): Delete. | |
3682 | (hardwire_print_tty_state, hardwire_drain_output) | |
3683 | (hardwire_flush_output, hardwire_flush_input) | |
3684 | (hardwire_send_break, hardwire_raw, hardwire_setbaudrate) | |
3685 | (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty | |
3686 | code, and assume termios. | |
3687 | (hardwire_ops): Update. | |
3688 | (_initialize_ser_hardwire): Remove HAVE_TERMIOS check. | |
3689 | * serial.c (serial_noflush_set_tty_state): Delete. | |
3690 | * serial.h (serial_noflush_set_tty_state): Delete. | |
3691 | (serial_ops::noflush_set_tty_state): Delete. | |
3692 | ||
1cfb73db UW |
3693 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
3694 | ||
3695 | * Makefile.in (SFILES): Remove doublest.c and dfp.c. | |
3696 | (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h. | |
3697 | (COMMON_OBS): Remove doublest.o and dfp.o. | |
3698 | Do not build target-float.c (instead of doublest.c) | |
3699 | with -Wformat-nonliteral. | |
3700 | ||
3701 | * doublest.c: Remove file. | |
3702 | * doublest.h: Remove file. | |
3703 | * dfp.c: Remove file. | |
3704 | * dfp.h: Remove file. | |
3705 | ||
3706 | * target-float.c: Do not include "doublest.h" and "dfp.h". | |
3707 | (DOUBLEST): Move here from doublest.h. | |
3708 | (enum float_kind): Likewise. | |
3709 | (FLOATFORMAT_CHAR_BIT): Likewise. | |
3710 | (FLOATFORMAT_LARGEST_BYTES): Likewise. | |
3711 | (floatformat_totalsize_bytes): Move here from doublest.c. Make static. | |
3712 | (floatformat_precision): Likewise. | |
3713 | (floatformat_normalize_byteorder, get_field, put_field): Likewise. | |
3714 | (floatformat_is_negative, floatformat_classify, floatformat_mantissa): | |
3715 | Likewise. | |
3716 | (host_float_format, host_double_format, host_long_double_format): | |
3717 | Likewise. | |
3718 | (floatformat_to_string, floatformat_from_string): Likewise. | |
3719 | (floatformat_to_doublest): Likewise. Also, inline the original | |
3720 | convert_floatformat_to_doublest. | |
3721 | (floatformat_from_doublest): Likewise. Also, inline the original | |
3722 | convert_floatformat_from_doublest. | |
3723 | ||
3724 | Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h". | |
3725 | (MAX_DECIMAL_STRING): Move here from dfp.c. | |
3726 | (match_endianness): Likewise. | |
3727 | (set_decnumber_context, decimal_check_errors): Likewise. | |
3728 | (decimal_from_number, decimal_to_number): Likewise. | |
3729 | (decimal_to_string, decimal_from_string): Likewise. Make static. | |
3730 | (decimal_from_longest, decimal_from_ulongest): Likewise. | |
3731 | (decimal_to_longest): Likewise. | |
3732 | (decimal_binop, decimal_is_zero, decimal_compare): Likewise. | |
3733 | (decimal_convert): Likewise. | |
3734 | ||
b07e9c46 UW |
3735 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
3736 | ||
3737 | * doublest.c: Do not include "gdbtypes.h". | |
3738 | (extract_typed_floating): Remove. | |
3739 | (store_typed_floating): Remove. | |
3740 | (convert_typed_floating): Remove. | |
3741 | * doublest.h (struct type): Remove. | |
3742 | (DOUBLEST_PRINT_FORMAT): Remove. | |
3743 | (DOUBLEST_SCAN_FORMAT): Remove. | |
3744 | (extract_typed_floating): Remove. | |
3745 | (store_typed_floating): Remove. | |
3746 | (convert_typed_floating): Remove. | |
3747 | ||
3748 | * dfp.c (decimal_from_doublest): Remove. | |
3749 | (decimal_to_doublest): Remove. | |
3750 | * dfp.h: Do not include "doublest.h". | |
3751 | (decimal_from_doublest): Remove. | |
3752 | (decimal_to_doublest): Remove. | |
3753 | ||
3754 | * value.c: Do not include "doublest.h" and "dfp.h". | |
3755 | (value_as_double): Remove. | |
3756 | (unpack_double): Remove. | |
3757 | (value_from_double): Remove. | |
3758 | (value_from_decfloat): Remove. | |
3759 | * value.h: Do not include "doublest.h". | |
3760 | (value_as_double): Remove. | |
3761 | (unpack_double): Remove. | |
3762 | (value_from_double): Remove. | |
3763 | (value_from_decfloat): Remove. | |
3764 | ||
3b2ca824 UW |
3765 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
3766 | ||
3767 | * i386-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
3768 | (i386_extract_return_value): Use target_float_convert. | |
3769 | (i386_store_return_value): Likewise. | |
3770 | * i387-tdep.c (i387_register_to_value): Use target_float_convert. | |
3771 | (i387_value_to_register): Likewise. | |
3772 | * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
3773 | (ia64_register_to_value): Use target_float_convert. | |
3774 | (ia64_value_to_register): Likewise. | |
3775 | (ia64_extract_return_value): Likewise. | |
3776 | (ia64_store_return_value): Likewise. | |
3777 | (ia64_push_dummy_call): Likewise. | |
3778 | * m68k-tdep.c: Include "target-float.h". | |
3779 | (m68k_register_to_value): Use target_float_convert. | |
3780 | (m68k_value_to_register): Likewise. | |
3781 | (m68k_svr4_extract_return_value): Likewise. | |
3782 | (m68k_svr4_store_return_value): Likewise. | |
3783 | * ppc-sysv-tdep.c: Include "target-float.h". | |
3784 | (ppc_sysv_abi_push_dummy_call): Use target_float_convert. | |
3785 | (do_ppc_sysv_return_value): Likewise. | |
3786 | (ppc64_sysv_abi_push_freg): Likewise. | |
3787 | (ppc64_sysv_abi_return_value_base): Likewise. | |
3788 | * rs6000-aix-tdep.c: Include "target-float.h". | |
3789 | (rs6000_push_dummy_call): Use target_float_convert. | |
3790 | (rs6000_return_value): Likewise. | |
3791 | * rs6000-lynx178-tdep.c: Include "target-float.h". | |
3792 | (rs6000_lynx178_push_dummy_call): Use target_float_convert. | |
3793 | (rs6000_lynx178_return_value): Likewise. | |
3794 | * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
3795 | (rs6000_register_to_value): Use target_float_convert. | |
3796 | (rs6000_value_to_register): Likewise. | |
3797 | * arm-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
3798 | (arm_extract_return_value): Use target_float_convert. | |
3799 | (arm_store_return_value): Likewise. | |
3800 | * sh-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
3801 | (sh_register_convert_to_virtual): Use target_float_convert. | |
3802 | (sh_register_convert_to_raw): Likewise. | |
3803 | * sh64-tdep.c: Include "target-float.h". | |
3804 | (sh64_extract_return_value): Use target_float_convert. | |
3805 | (sh64_register_convert_to_virtual): Likewise. | |
3806 | (sh64_register_convert_to_raw): Likewise. Fix argument types. | |
3807 | ||
14ad9311 UW |
3808 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
3809 | ||
3810 | * target-float.c (floatformat_to_host_double): New function. | |
3811 | (floatformat_from_host_double): Likewise. | |
3812 | (target_float_to_host_double): Likewise. | |
3813 | (target_float_from_host_double): Likewise. | |
3814 | * target-float.h (target_float_to_host_double): Add prototype. | |
3815 | (target_float_from_host_double): Likewise. | |
3816 | ||
3817 | * guile/scm-value.c: Include "target-float.h". | |
3818 | (gdbscm_value_to_real): Use target_float_to_host_double. | |
3819 | Handle integer source values via value_as_long. | |
3820 | * guile/scm-math.c: Include "target-float.h". Do not include | |
3821 | "doublest.h", "dfp.h", and "expression.h". | |
3822 | (vlscm_convert_typed_number): Use target_float_from_host_double. | |
3823 | (vlscm_convert_number): Likewise. | |
3824 | ||
3825 | * python/py-value.c (valpy_float): Use target_float_to_host_double. | |
3826 | (convert_value_from_python): Use target_float_from_host_double. | |
3827 | ||
50eff16b UW |
3828 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
3829 | ||
3830 | * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic. | |
3831 | (cast_from_fixed): Likewise. | |
3832 | (ada_scaling_type): New function. | |
3833 | (ada_delta): Return value instead of DOUBLEST. Perform target | |
3834 | arithmetic instead of host arithmetic. | |
3835 | (scaling_factor): Rename to ... | |
3836 | (ada_scaling_factor) ... this. Make non-static. Return value instead | |
3837 | of DOUBLEST. Perform target arithmetic instead of host arithmetic. | |
3838 | (ada_fixed_to_float): Remove. | |
3839 | (ada_float_to_fixed): Remove. | |
3840 | * ada-lang.h (ada_fixed_to_float): Remove. | |
3841 | (ada_float_to_fixed): Remove. | |
3842 | (ada_delta): Return value instead of DOUBLEST. | |
3843 | (ada_scaling_factor): Add prototype. | |
3844 | ||
3845 | * ada-typeprint.c: Include "target-float.h". | |
3846 | (print_fixed_point_type): Perform target arithmetic instead of | |
3847 | host arithmetic. | |
3848 | * ada-valprint.c: Include "target-float.h". | |
3849 | (ada_val_print_num): Perform target arithmetic instead of | |
3850 | host arithmetic for fixed-point types. | |
3851 | ||
66c02b9e UW |
3852 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
3853 | ||
3854 | * target-float.c: Include <math.h>. | |
3855 | (floatformat_binop): New function. | |
3856 | (floatformat_compare): Likewise. | |
3857 | (target_float_binop): Likewise. | |
3858 | (target_float_compare): Likewise. | |
3859 | * target-float.h: Include "expression.h". | |
3860 | (target_float_binop): Add prototype. | |
3861 | (target_float_compare): Likewise. | |
3862 | ||
3863 | * valarith.c: Do not include "doublest.h" and "dfp.h". | |
3864 | Include "common/byte-vector.h". | |
3865 | (value_args_as_decimal): Remove, replace by ... | |
3866 | (value_args_as_target_float): ... this function. Handle both | |
3867 | binary and decimal target floating-point formats. | |
3868 | (scalar_binop): Handle both binary and decimal FP using | |
3869 | value_args_as_target_float and target_float_binop. | |
3870 | (value_equal): Handle both binary and decimal FP using | |
3871 | value_args_as_target_float and target_float_compare. | |
3872 | (value_less): Likewise. | |
3873 | (value_pos): Handle all scalar types as simple copy. | |
3874 | (value_neg): Handle all scalar types via BINOP_SUB from 0. | |
3875 | * dfp.c (decimal_binop): Throw error instead of internal_error | |
3876 | when called with an unsupported operation code. | |
3877 | ||
f69fdf9b UW |
3878 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
3879 | ||
3880 | * target-float.c (target_float_to_string): New function. | |
3881 | (target_float_from_string): New function. | |
3882 | * target-float.h (target_float_to_string): Add prototype. | |
3883 | (target_float_from_string): Add prototype. | |
3884 | ||
3885 | * valprint.c: Include "target-float.h". Do not include | |
3886 | "doublest.h" and "dfp.h". | |
3887 | (print_floating): Use target_float_to_string. | |
3888 | * printcmd.c: Include "target-float.h". Do not include "dfp.h". | |
3889 | (printf_floating): Use target_float_to_string. | |
3890 | * i387-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
3891 | (print_i387_value): Use target_float_to_string. | |
3892 | * mips-tdep.c: Include "target-float.h". | |
3893 | (mips_print_fp_register): Use target_float_to_string. | |
3894 | * sh64-tdep.c: Include "target-float.h". | |
3895 | (sh64_do_fp_register): Use target_float_to_string. | |
3896 | ||
3897 | * parse.c: Include "target-float.h". Do not include | |
3898 | "doublest.h" and "dfp.h". | |
3899 | (parse_float): Use target_float_from_string. | |
3900 | * stabsread.c: Include "target-float.h". Do not include "doublest.h". | |
3901 | (define_symbol): Use target_float_from_string. | |
3902 | * gdbarch-selftests.c: Include "target-float.h". | |
3903 | (register_to_value_test): Use target_float_from_string. | |
3904 | ||
70100014 UW |
3905 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
3906 | ||
3907 | * Makefile.c (SFILES): Add target-float.c. | |
3908 | (HFILES_NO_SRCDIR): Add target-float.h. | |
3909 | (COMMON_OBS): Add target-float.o. | |
3910 | * target-float.h: New file. | |
3911 | * target-float.c: New file. | |
3912 | ||
3913 | * doublest.c (floatformat_classify): Fix detection of float_zero. | |
3914 | ||
3915 | * gdbtypes.c (is_floating_type): New function. | |
3916 | * gdbtypes.h (is_floating_type): Add prototype. | |
3917 | ||
3918 | * value.c: Do not include "floatformat.h". | |
3919 | (unpack_double): Use target_float_is_valid. | |
3920 | (is_floating_value): New function. | |
3921 | * value.h (is_floating_value): Add prototype- | |
3922 | ||
3923 | * valarith.c: Include "target-float.h". | |
3924 | (value_logical_not): Use target_float_is_zero. | |
3925 | ||
3926 | * python/py-value.c: Include "target-float.h". | |
3927 | (valpy_nonzero): Use target_float_is_zero. | |
3928 | ||
ab4b1c46 TT |
3929 | 2017-11-04 Tom Tromey <tom@tromey.com> |
3930 | ||
3931 | * h8300-tdep.c (h8300_push_dummy_call): Use std::vector. | |
3932 | ||
454dafbd TT |
3933 | 2017-11-04 Tom Tromey <tom@tromey.com> |
3934 | ||
3935 | * breakpoint.c (set_momentary_breakpoint): Return | |
3936 | breakpoint_up. | |
3937 | (until_break_command): Update. | |
3938 | (new_until_break_fsm): Change argument types to | |
3939 | breakpoint_up. | |
3940 | (set_momentary_breakpoint_at_pc): Return breakpoint_up. | |
3941 | (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint): | |
3942 | Remove. | |
3943 | * infcmd.c (finish_forward): Update. | |
3944 | * breakpoint.h (set_momentary_breakpoint) | |
3945 | (set_momentary_breakpoint_at_pc): Return breakpoint_up. | |
3946 | (make_cleanup_delete_breakpoint): Remove. | |
3947 | (struct breakpoint_deleter): New. | |
3948 | (breakpoint_up): New typedef. | |
3949 | * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update. | |
3950 | (insert_exception_resume_breakpoint): Update. | |
3951 | (insert_exception_resume_from_probe): Update. | |
3952 | (insert_longjmp_resume_breakpoint): Update. | |
3953 | * arm-linux-tdep.c (arm_linux_copy_svc): Update. | |
3954 | * elfread.c (elf_gnu_ifunc_resolver_stop): Update. | |
3955 | * infcall.c (call_function_by_hand_dummy): Update | |
3956 | ||
331b71e5 TT |
3957 | 2017-11-04 Tom Tromey <tom@tromey.com> |
3958 | ||
3959 | * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr. | |
3960 | ||
9f584b37 TT |
3961 | 2017-11-04 Tom Tromey <tom@tromey.com> |
3962 | ||
3963 | * linux-tdep.c (linux_core_info_proc_mappings): Use | |
3964 | gdb::def_vector. | |
3965 | (linux_get_siginfo_data): Return gdb::byte_vector. Remove | |
3966 | "size" argument. | |
3967 | (linux_corefile_thread): Update. | |
3968 | (linux_make_corefile_notes): Remove unused variable. | |
3969 | ||
779bc38e TT |
3970 | 2017-11-04 Tom Tromey <tom@tromey.com> |
3971 | ||
3972 | * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use | |
3973 | gdb::byte_vector. | |
3974 | ||
ed2b3126 TT |
3975 | 2017-11-04 Tom Tromey <tom@tromey.com> |
3976 | ||
3977 | * objfiles.c (do_free_objfile_cleanup): Remove. | |
3978 | * compile/compile-object-load.c (compile_object_load): Update. | |
3979 | * objfiles.h (make_cleanup_free_objfile): Remove. | |
3980 | ||
7f6743fd TT |
3981 | 2017-11-04 Tom Tromey <tom@tromey.com> |
3982 | ||
3983 | * sparc64-tdep.c (do_examine): Use gdb::def_vector. | |
3984 | (adi_read_versions): Change "tags" to "gdb_byte *". | |
3985 | (adi_print_versions): Likewise. | |
3986 | ||
c80049d3 TT |
3987 | 2017-11-04 Tom Tromey <tom@tromey.com> |
3988 | ||
3989 | * breakpoint.c | |
3990 | (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename | |
3991 | from start_rbreak_breakpoints. | |
3992 | (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints. | |
3993 | * breakpoint.h (class scoped_rbreak_breakpoints): New. | |
3994 | (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove. | |
3995 | * symtab.c (do_end_rbreak_breakpoints): Remove. | |
3996 | (rbreak_command): Use scoped_rbreak_breakpoints, std::string. | |
3997 | ||
167b0be1 TT |
3998 | 2017-11-04 Tom Tromey <tom@tromey.com> |
3999 | ||
4000 | * cp-namespace.c (reset_directive_searched): Remove. | |
4001 | (cp_lookup_symbol_via_imports): Use scoped_restore. | |
4002 | * cp-support.c (reset_directive_searched): Remove. | |
4003 | (make_symbol_overload_list_using): Use scoped_restore. | |
4004 | * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore. | |
4005 | (reset_directive_searched): Remove. | |
4006 | ||
5eae7aea TT |
4007 | 2017-11-04 Tom Tromey <tom@tromey.com> |
4008 | ||
4009 | * symfile.c (find_separate_debug_file_by_debuglink): Use | |
4010 | unique_xmalloc_ptr. | |
4011 | ||
c6bcad5f TT |
4012 | 2017-11-04 Tom Tromey <tom@tromey.com> |
4013 | ||
4014 | * compile/compile-loc2c.c (compute_stack_depth_worker): Change | |
4015 | type of "info". | |
4016 | (compute_stack_depth): Likewise. | |
4017 | (do_compile_dwarf_expr_to_c): Use std::vector. | |
4018 | ||
20dcd8ca TT |
4019 | 2017-11-04 Tom Tromey <tom@tromey.com> |
4020 | ||
4021 | * compile/compile-object-load.c (link_callbacks_einfo): Use | |
4022 | std::string. | |
4023 | ||
33c7c59d TT |
4024 | 2017-11-04 Tom Tromey <tom@tromey.com> |
4025 | ||
4026 | * dwarf2read.c (process_full_comp_unit, process_full_type_unit): | |
4027 | Use scoped_free_pendings. | |
4028 | * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use | |
4029 | scoped_free_pendings. | |
4030 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings. | |
4031 | (xcoff_initial_scan): Likewise. | |
4032 | * buildsym.c (reset_symtab_globals): Update comment. | |
4033 | (scoped_free_pendings): Rename from really_free_pendings. | |
4034 | (prepare_for_building): Update comment. | |
4035 | (buildsym_init): Likewise. | |
4036 | * buildsym.h (class scoped_free_pendings): New class. | |
4037 | (really_free_pendings): Don't declare. | |
4038 | ||
67fa57cf UW |
4039 | 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com> |
4040 | ||
4041 | * doublest.c (convert_doublest_to_floatformat): Fix uninitialized | |
4042 | output when converting a zero value to a special byteorder format. | |
4043 | ||
f26ae15b YQ |
4044 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
4045 | ||
4046 | * frame.c (do_frame_register_read): Remove aspace. | |
4047 | * jit.c (jit_frame_sniffer): Likwise. | |
4048 | * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise. | |
4049 | * regcache.c (regcache::regcache): Pass nullptr. | |
4050 | (regcache_print): Caller updated. | |
4051 | * regcache.h (regcache::regcache): Remove one constructor | |
4052 | parameter aspace. | |
4053 | ||
6c6e9412 YQ |
4054 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
4055 | ||
4056 | * regcache.h (regcache) <m_readonly_p>: Change it to const bool. | |
4057 | ||
8b86c959 YQ |
4058 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
4059 | ||
4060 | * breakpoint.c (insert_single_step_breakpoints): Update. | |
4061 | * frame.c (struct frame_info) <aspace>: Add const. | |
4062 | (frame_save_as_regcache): Add const. | |
4063 | (get_frame_address_space): Return const address_space *. | |
4064 | * frame.h (get_frame_address_space): Update declaration. | |
4065 | * infrun.c (struct step_over_info) <aspace>: Add const. | |
4066 | (set_step_over_info): Make aspace const. | |
4067 | (displaced_step_prepare_throw): Change variable const. | |
4068 | (resume): Likewise. | |
4069 | (proceed): Likewise. | |
4070 | (adjust_pc_after_break): Likewise. | |
4071 | (save_waitstatus): Likewise. | |
4072 | (handle_signal_stop): Likewise. | |
4073 | (keep_going_pass_signal): Likewise. | |
4074 | * jit.c (jit_frame_sniffer): Add const. | |
4075 | * mips-tdep.c (mips_single_step_through_delay): Likewise. | |
4076 | * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise. | |
4077 | * record-full.c (record_full_wait_1): Likewise. | |
4078 | * regcache.c (regcache::regcache): Change parameter to const. | |
4079 | * regcache.h (regcache::regcache): Likewise. | |
4080 | (regcache::aspace): Return const address_space *. | |
4081 | (regcache) <m_aspace>: Add const. | |
4082 | ||
a01bda52 YQ |
4083 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
4084 | ||
4085 | * darwin-nat.c (cancel_breakpoint): Use regcache->aspace (). | |
4086 | * frame.c (create_sentinel_frame): Likewise. | |
4087 | * infrun.c (displaced_step_prepare_throw): Likewise. | |
4088 | (resume): Likewise. | |
4089 | (thread_still_needs_step_over_bp): Likewise. | |
4090 | (proceed): Likewise. | |
4091 | (do_target_wait): Likewise. | |
4092 | (adjust_pc_after_break): Likewise. | |
4093 | (handle_syscall_event): Likewise. | |
4094 | (save_waitstatus): Likewise. | |
4095 | (handle_inferior_event_1): Likewise. | |
4096 | (handle_signal_stop): Likewise. | |
4097 | (keep_going_pass_signal): Likewise. | |
4098 | * linux-nat.c (status_callback): Likewise. | |
4099 | (save_stop_reason): Likewise. | |
4100 | (resume_stopped_resumed_lwps): Likewise. | |
4101 | * record-full.c (record_full_exec_insn): Likewise. | |
4102 | (record_full_wait_1): Likewise. | |
4103 | * regcache.c (get_regcache_aspace): Remove. | |
4104 | * regcache.h (get_regcache_aspace): Remove. | |
4105 | ||
d999647b YQ |
4106 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
4107 | ||
4108 | * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove. | |
4109 | (init_regcache_descr): Use gdbarch_num_regs. | |
4110 | (regcache::regcache): Likewise. | |
4111 | (regcache::get_register_status): Likewise. | |
4112 | (regcache::assert_raw_regnum): Likewise. | |
4113 | (regcache::cooked_read): Likewise. | |
4114 | (regcache::cooked_read_value): Likewise. | |
4115 | (regcache::cooked_write): Likewise. | |
4116 | (regcache::dump): Likewise. | |
4117 | (regcache::num_raw_registers): New method. | |
4118 | * regcache.h (class regcache) <num_raw_registers>: New. | |
4119 | ||
4e888c28 YQ |
4120 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
4121 | ||
4122 | * regcache.c (regcache::assert_regnum): New method. | |
4123 | (regcache::invalidate): Call assert_regnum. | |
4124 | (regcache::raw_update): Likewise. | |
4125 | (regcache::raw_write): Likewise. | |
4126 | (regcache::raw_read_part): Likewise. | |
4127 | (regcache::raw_write_part): Likewise. | |
4128 | (regcache::raw_supply): Likewise. | |
4129 | (regcache::raw_supply_integer): Likewise. | |
4130 | (regcache::raw_supply_zeroed): Likewise. | |
4131 | (regcache::raw_collect): Likewise. | |
4132 | (regcache::raw_collect_integer): Likewise. | |
4133 | * regcache.h (regcache::assert_regnum): Declare. | |
4134 | ||
2e1b49b3 YQ |
4135 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
4136 | ||
4137 | * regcache.c (regcache::dump): Remove code. | |
4138 | ||
6c5218df YQ |
4139 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
4140 | ||
4141 | * regcache.c (struct regcache_descr) <sizeof_raw_register_status>: | |
4142 | Remove. | |
4143 | <sizeof_cooked_register_status>: Remove. | |
4144 | (init_regcache_descr): Update. | |
4145 | (regcache::regcache): Use nr_cooked_registers and nr_raw_registers. | |
4146 | (regcache::save): Likewise. | |
4147 | (regcache::dump): Likewise. | |
4148 | ||
dcc31d28 JB |
4149 | 2017-11-01 James Bowman <james.bowman@ftdichip.com> |
4150 | ||
4151 | * ft32-tdep.c (ft32_fetch_instruction): New function. | |
4152 | (ft32_analyze_prologue): Use ft32_fetch_instruction(). | |
4153 | ||
3a87ae65 SM |
4154 | 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca> |
4155 | ||
4156 | * cli/cli-script.c (execute_control_command): Rename to ... | |
4157 | (execute_control_command_1): ... this. | |
4158 | (execute_control_command): New function. | |
4159 | ||
09b847f3 SM |
4160 | 2017-10-31 Simon Marchi <simon.marchi@ericsson.com> |
4161 | ||
4162 | * tracepoint.c (tfind_command): Remove const_cast. | |
4163 | ||
f871c485 MG |
4164 | 2017-10-30 Mike Gulick <mgulick@mathworks.com> |
4165 | ||
4166 | * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h. | |
4167 | ||
b020ff80 SM |
4168 | 2017-10-30 Simon Marchi <simon.marchi@ericsson.com> |
4169 | ||
4170 | * common/common-utils.h (in_inclusive_range): New function. | |
4171 | * arm-tdep.c (arm_record_extension_space): Use | |
4172 | in_inclusive_range. | |
4173 | (thumb_record_ld_st_reg_offset): Use in_inclusive_range. | |
4174 | * cris-tdep.c (cris_spec_reg_applicable): Use | |
4175 | in_inclusive_range. | |
4176 | ||
1b81856f | 4177 | 2017-10-30 Pedro Alves <palves@redhat.com> |
175654b9 | 4178 | Simon Marchi <simon.marchi@ericsson.com> |
1b81856f PA |
4179 | |
4180 | * remote.c (remote_set_syscall_catchpoint): Build a std::string | |
4181 | instead of a gdb::unique_xmalloc_ptr, using string_appendf. | |
4182 | ||
31b833b3 PA |
4183 | 2017-10-30 Pedro Alves <palves@redhat.com> |
4184 | ||
4185 | * common/common-utils.c (string_appendf, string_vappendf): New | |
4186 | functions. | |
4187 | * common/common-utils.h (string_appendf, string_vappendf): New | |
4188 | declarations. | |
4189 | * unittests/common-utils-selftests.c (string_appendf_func) | |
4190 | (test_appendf_func, string_vappendf_wrapper, string_appendf_tests) | |
4191 | (string_vappendf_tests): New functions. | |
4192 | (_initialize_common_utils_selftests): Register "string_appendf" and | |
4193 | "string_vappendf tests". | |
4194 | ||
4a250334 PA |
4195 | 2017-10-30 Pedro Alves <palves@redhat.com> |
4196 | ||
4197 | * unittests/common-utils-selftests.c (format_func): New typedef. | |
4198 | (string_printf_tests, string_vprintf_tests): Tests factored out | |
4199 | and merged to ... | |
4200 | (test_format_func): ... this new function. | |
4201 | (string_printf_tests, string_vprintf_tests): Reimplement on top of | |
4202 | test_format_func. | |
4203 | ||
16c5c17e SM |
4204 | 2017-10-29 Simon Marchi <simon.marchi@ericsson.com> |
4205 | ||
4206 | * darwin-nat.c: Remove include of gdb.h. | |
4207 | ||
7ca51576 SM |
4208 | 2017-10-29 Simon Marchi <simon.marchi@ericsson.com> |
4209 | ||
4210 | * xtensa-xtregs.c: Fix formatting issues. | |
4211 | ||
c1342859 SM |
4212 | 2017-10-29 Simon Marchi <simon.marchi@ericsson.com> |
4213 | ||
4214 | * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify. | |
4215 | ||
484d8d36 MD |
4216 | 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com> |
4217 | ||
4218 | PR python/21213 | |
4219 | * python/py-infthread.c (thpy_get_inferior): Increment reference | |
4220 | of inferior before returning it. | |
4221 | ||
b5540b5f SM |
4222 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
4223 | ||
4224 | * unittests/common-utils-selftests.c (format): Add | |
4225 | ATTRIBUTE_PRINTF. | |
4226 | ||
5a9dcda1 SM |
4227 | 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca> |
4228 | ||
4229 | * xml-syscall.c (struct syscall_desc): Add constructor. | |
4230 | <name>: Change type to std::string. | |
4231 | (syscall_desc_up): New typedef. | |
4232 | (syscall_desc_p): Remove typeder. | |
4233 | (DEF_VEC_P(syscall_desc_p)): Remove. | |
4234 | (struct syscall_group_desc): Add constructor. | |
4235 | <name>: Change type to std::string. | |
4236 | <syscalls>: Change type to std::vector. | |
4237 | (syscall_group_desc_up): New typedef. | |
4238 | (syscall_group_desc_p): Remove typedef. | |
4239 | (DEF_VEC_P(syscall_group_desc_p)): Remove. | |
4240 | (struct syscalls_info) <syscalls>: Change type to std::vector of | |
4241 | unique_ptr. | |
4242 | <groups>: Likewise. | |
4243 | <my_gdb_datadir>: Change type to std::string. | |
4244 | (syscalls_info_up): New typedef. | |
4245 | (allocate_syscalls_info): Remove. | |
4246 | (syscalls_info_free_syscalls_desc): Remove. | |
4247 | (syscalls_info_free_syscall_group_desc): Remove. | |
4248 | (free_syscalls_info): Remove. | |
4249 | (make_cleanup_free_syscalls_info): Remove. | |
4250 | (syscall_group_create_syscall_group_desc): Adjust. | |
4251 | (syscall_group_add_syscall): Adjust. | |
4252 | (syscall_create_syscall_desc): Adjust. | |
4253 | (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup. | |
4254 | (init_syscalls_info): Adjust. | |
4255 | (syscall_group_get_group_by_name): Adjust. | |
4256 | (xml_get_syscall_number): Adjust. | |
4257 | (xml_get_syscall_name): Adjust. | |
4258 | (xml_list_of_syscalls): Adjust. | |
4259 | (xml_list_syscalls_by_group): Adjust. | |
4260 | (xml_list_of_groups): Adjust. | |
4261 | ||
45461e0d SM |
4262 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
4263 | ||
4264 | * probe.h: Don't include gdb_vecs.h. | |
4265 | (DEF_VEC_P (probe_p)): Remove. | |
4266 | (find_probes_in_objfile): Return an std::vector. | |
4267 | * probe.c (find_probes_in_objfile): Likewise. | |
4268 | * breakpoint.c (breakpoint_objfile_data) | |
4269 | <longjmp_probes>: Change type to std::vector. | |
4270 | <exception_probes>: Likewise. | |
4271 | (free_breakpoint_probes): Don't manually free vectors. | |
4272 | (create_longjmp_master_breakpoint): Adjust. | |
4273 | (create_exception_master_breakpoint): Adjust. | |
4274 | * solib-svr4.c (svr4_create_probe_breakpoints): Change | |
4275 | parameter type, adjust. | |
4276 | (svr4_create_solib_event_breakpoints): Adjust. | |
4277 | ||
43dce439 SM |
4278 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
4279 | ||
4280 | * breakpoint.c (breakpoint_objfile_data): Initialize fields. | |
4281 | (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data | |
4282 | with new. | |
4283 | (free_breakpoint_probes): Rename to ... | |
4284 | (free_breakpoint_objfile_data): ... this, and call delete on | |
4285 | bp_objfile_data.. | |
4286 | ||
6a1b9516 SM |
4287 | 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca> |
4288 | ||
4289 | * auto-load.c: Don't include gdb_vecs.h, include algorithm. | |
4290 | (loaded_script_ptr): Remove typedef. | |
4291 | (DEF_VEC_P (loaded_script_ptr)): Remove. | |
4292 | (struct collect_matching_scripts_data): Add constructor. | |
4293 | <scripts_p>: Change type to (pointer to) std::vector. | |
4294 | (collect_matching_scripts_data): Adjust. | |
4295 | (sort_scripts_by_name): Make suitable for std::sort. | |
4296 | (print_scripts): Don't sort vector, adjust to std::vector. | |
4297 | (auto_load_info_scripts): Sort vectors, adjust to std::vector. | |
4298 | ||
593e3209 SM |
4299 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
4300 | ||
4301 | * symfile.c (filename_language): Make struct, not typedef. Add | |
4302 | constructor. | |
4303 | <ext>: Change type to std::string. | |
4304 | (DEF_VEC_O (filename_language)): Remove. | |
4305 | (filename_language_table): Change type to std::vector. | |
4306 | (add_filename_language): Adjust. | |
4307 | (set_ext_lang_command): Adjust. | |
4308 | (info_ext_lang_command): Adjust. | |
4309 | (deduce_language_from_filename): Adjust. | |
4310 | (class scoped_restore_filename_language_table): Remove. | |
4311 | (test_filename_language): Use scoped_restore. | |
4312 | (test_set_ext_lang_command): Use scoped_restore, adjust to | |
4313 | std::vector change. | |
4314 | ||
32fa66eb SM |
4315 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
4316 | ||
4317 | * symfile.c: Include selftest.h. | |
4318 | (class scoped_restore_filename_language_table): New. | |
4319 | (test_filename_language): New test. | |
4320 | (test_set_ext_lang_command): New test. | |
4321 | (_initialize_symfile): Register tests. | |
4322 | ||
4a27f119 KS |
4323 | 2017-10-27 Keith Seitz <keiths@redhat.com> |
4324 | ||
4325 | * breakpoint.c (print_breakpoint_location): Use the symbol saved | |
4326 | in the bp_location, falling back to find_pc_sect_function when | |
4327 | needed. | |
4328 | (add_location_to_breakpoint): Save sal->symbol. | |
4329 | * breakpoint.h (struct bp_location) <symbol>: New field. | |
4330 | * symtab.c (find_function_start_sal): Save the symbol into the SaL. | |
4331 | * symtab.h (struct symtab_and_line) <symbol>: New field. | |
4332 | ||
a43f3893 PF |
4333 | 2017-10-26 Patrick Frants <osscontribute@gmail.com> |
4334 | ||
7453e6b2 | 4335 | PR gdb/13669 |
a43f3893 PF |
4336 | * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast |
4337 | to rewind obstack. | |
4338 | ||
23cc4e1b PA |
4339 | 2017-10-26 Pedro Alves <palves@redhat.com> |
4340 | ||
4341 | * remote.c (remote_async_terminal_ours_p): Delete. | |
4342 | (remote_open_1, remote_terminal_inferior, remote_terminal_ours): | |
4343 | Remove references to 'remote_async_terminal_ours_p'. | |
4344 | ||
6abc18bb YQ |
4345 | 2017-10-26 Yao Qi <yao.qi@linaro.org> |
4346 | ||
4347 | * breakpoint.h (regular_breakpoint_inserted_here_p): Remove. | |
4348 | ||
bd522513 YQ |
4349 | 2017-10-26 Yao Qi <yao.qi@linaro.org> |
4350 | ||
4351 | * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make | |
4352 | aspace const. | |
4353 | * break-catch-syscall.c (breakpoint_hit_catch_syscall): | |
4354 | Likewise. | |
4355 | * breakpoint.c (bpstat_check_location): Remove cast. | |
4356 | (breakpoint_hit_catch_fork): Make aspce const. | |
4357 | (breakpoint_hit_catch_solib): Likewise. | |
4358 | (breakpoint_hit_catch_exec): Likewise. | |
4359 | (breakpoint_hit_ranged_breakpoint): Likewise. | |
4360 | (breakpoint_hit_watchpoint): Likewise. | |
4361 | (base_breakpoint_breakpoint_hit): Likewise. | |
4362 | (bkpt_breakpoint_hit): Likewise. | |
4363 | (dprintf_breakpoint_hit): Likewise. | |
4364 | (tracepoint_breakpoint_hit): Likewise. | |
4365 | * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise. | |
4366 | ||
accd0bcd YQ |
4367 | 2017-10-26 Yao Qi <yao.qi@linaro.org> |
4368 | ||
4369 | * breakpoint.c (breakpoint_location_address_match): Change | |
4370 | "struct address_space *" to "const address_space". | |
4371 | (breakpoint_location_address_range_overlap): Likewise. | |
4372 | (breakpoint_here_p): Likewise. | |
4373 | (breakpoint_in_range_p): Likewise. | |
4374 | (moribund_breakpoint_here_p): Likewise. | |
4375 | (bp_location_inserted_here_p): Likewise. | |
4376 | (software_breakpoint_inserted_here_p): Likewise. | |
4377 | (hardware_breakpoint_inserted_here_p): Likewise. | |
4378 | (hardware_watchpoint_inserted_in_range): Likewise. | |
4379 | (bpstat_check_location): Likewise. | |
4380 | (bpstat_stop_status): Likewise. | |
4381 | (breakpoint_address_match): Likewise. | |
4382 | (breakpoint_address_match_range): Likewise. | |
4383 | (breakpoint_location_address_match): Likewise. | |
4384 | (breakpoint_location_address_range_overlap): Likewise. | |
4385 | (insert_single_step_breakpoint): Likewise. | |
4386 | (breakpoint_has_location_inserted_here): Likewise. | |
4387 | (single_step_breakpoint_inserted_here_p): Likewise. | |
4388 | (pc_at_non_inline_function): Likewise. | |
4389 | * breakpoint.h (bpstat_stop_status): Update declaration. | |
4390 | (breakpoint_here_p): Likewise. | |
4391 | (breakpoint_in_range_p): Likewise. | |
4392 | (moribund_breakpoint_here_p): Likewise. | |
4393 | (breakpoint_inserted_here_p): Likewise. | |
4394 | (software_breakpoint_inserted_here_p): Likewise. | |
4395 | (hardware_breakpoint_inserted_here_p): Likewise. | |
4396 | (breakpoint_has_location_inserted_here): Likewise. | |
4397 | (single_step_breakpoint_inserted_here_p): Likewise. | |
4398 | (hardware_watchpoint_inserted_in_range): Likewise. | |
4399 | (breakpoint_address_match): Likewise. | |
4400 | (insert_single_step_breakpoint): Likewise. | |
4401 | (pc_at_non_inline_function): Likewise. | |
4402 | * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise. | |
4403 | * record.c (record_check_stopped_by_breakpoint): Likewise. | |
4404 | * record.h (record_check_stopped_by_breakpoint): Likewise. | |
4405 | * thread.c (thread_has_single_step_breakpoint_here): Likewise. | |
4406 | ||
ac7936df YQ |
4407 | 2017-10-25 Yao Qi <yao.qi@linaro.org> |
4408 | ||
4409 | * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use | |
4410 | regcache->arch () instead get_regcache_arch. | |
4411 | * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers): | |
4412 | Likewise. | |
4413 | (aarch64_fbsd_store_inferior_registers): Likewise. | |
4414 | * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise. | |
4415 | (store_gregs_to_thread): Likewise. | |
4416 | (fetch_fpregs_from_thread): Likewise. | |
4417 | (store_fpregs_to_thread): Likewise. | |
4418 | * aarch64-tdep.c (aarch64_extract_return_value): Likewise. | |
4419 | (aarch64_store_return_value): Likewise. | |
4420 | (aarch64_software_single_step): Likewise. | |
4421 | * aix-thread.c (aix_thread_wait): Likewise. | |
4422 | (supply_reg32): Likewise. | |
4423 | (supply_sprs64): Likewise. | |
4424 | (supply_sprs32): Likewise. | |
4425 | (fill_gprs64): Likewise. | |
4426 | (fill_gprs32): Likewise. | |
4427 | (fill_sprs64): Likewise. | |
4428 | (fill_sprs32): Likewise. | |
4429 | (store_regs_user_thread): Likewise. | |
4430 | (store_regs_kernel_thread): Likewise. | |
4431 | * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise. | |
4432 | (alphabsd_store_inferior_registers): Likewise. | |
4433 | * alpha-tdep.c (alpha_extract_return_value): Likewise. | |
4434 | (alpha_store_return_value): Likewise. | |
4435 | (alpha_deal_with_atomic_sequence): Likewise. | |
4436 | (alpha_next_pc): Likewise. | |
4437 | (alpha_software_single_step): Likewise. | |
4438 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise. | |
4439 | (amd64bsd_store_inferior_registers): Likewise. | |
4440 | * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): | |
4441 | Likewise. | |
4442 | (amd64_linux_store_inferior_registers): Likewise. | |
4443 | * amd64-nat.c (amd64_supply_native_gregset): Likewise. | |
4444 | (amd64_collect_native_gregset): Likewise. | |
4445 | * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise. | |
4446 | (amd64obsd_collect_uthread): Likewise. | |
4447 | * amd64-tdep.c (amd64_supply_fpregset): Likewise. | |
4448 | (amd64_collect_fpregset): Likewise. | |
4449 | (amd64_supply_fxsave): Likewise. | |
4450 | (amd64_supply_xsave): Likewise. | |
4451 | (amd64_collect_fxsave): Likewise. | |
4452 | (amd64_collect_xsave): Likewise. | |
4453 | * arc-tdep.c (arc_write_pc): Likewise. | |
4454 | * arch-utils.c (default_skip_permanent_breakpoint): Likewise. | |
4455 | * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise. | |
4456 | (arm_fbsd_store_inferior_registers): Likewise. | |
4457 | * arm-linux-nat.c (fetch_vfp_regs): Likewise. | |
4458 | (store_vfp_regs): Likewise. | |
4459 | (arm_linux_fetch_inferior_registers): Likewise. | |
4460 | (arm_linux_store_inferior_registers): Likewise. | |
4461 | * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise. | |
4462 | (arm_linux_sigreturn_next_pc): Likewise. | |
4463 | (arm_linux_get_next_pcs_syscall_next_pc): Likewise. | |
4464 | * arm-nbsd-nat.c (arm_supply_gregset): Likewise. | |
4465 | (fetch_register): Likewise. | |
4466 | (store_register): Likewise. | |
4467 | * arm-tdep.c (arm_is_thumb): Likewise. | |
4468 | (displaced_in_arm_mode): Likewise. | |
4469 | (bx_write_pc): Likewise. | |
4470 | (arm_get_next_pcs_addr_bits_remove): Likewise. | |
4471 | (arm_software_single_step): Likewise. | |
4472 | (arm_extract_return_value): Likewise. | |
4473 | (arm_store_return_value): Likewise. | |
4474 | (arm_write_pc): Likewise. | |
4475 | * bfin-tdep.c (bfin_extract_return_value): Likewise. | |
4476 | * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise. | |
4477 | (bsd_uthread_store_registers): Likewise. | |
4478 | * core-regset.c (fetch_core_registers): Likewise. | |
4479 | * corelow.c (get_core_registers): Likewise. | |
4480 | * cris-tdep.c (cris_store_return_value): Likewise. | |
4481 | (cris_extract_return_value): Likewise. | |
4482 | (find_step_target): Likewise. | |
4483 | (find_step_target): Likewise. | |
4484 | (cris_software_single_step): Likewise. | |
4485 | * ctf.c (ctf_fetch_registers): Likewise. | |
4486 | * darwin-nat.c (cancel_breakpoint): Likewise. | |
4487 | * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise. | |
4488 | * frv-tdep.c (frv_extract_return_value): Likewise. | |
4489 | * ft32-tdep.c (ft32_store_return_value): Likewise. | |
4490 | (ft32_extract_return_value): Likewise. | |
4491 | * go32-nat.c (fetch_register): Likewise. | |
4492 | (go32_fetch_registers): Likewise. | |
4493 | (go32_store_registers): Likewise. | |
4494 | (store_register): Likewise. | |
4495 | * h8300-tdep.c (h8300_extract_return_value): Likewise. | |
4496 | (h8300_store_return_value): Likewise. | |
4497 | * hppa-linux-nat.c (fetch_register): Likewise. | |
4498 | (store_register): Likewise. | |
4499 | (hppa_linux_fetch_inferior_registers): Likewise. | |
4500 | (hppa_linux_store_inferior_registers): Likewise. | |
4501 | * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise. | |
4502 | (i386_darwin_store_inferior_registers): Likewise. | |
4503 | * i386-gnu-nat.c (gnu_fetch_registers): Likewise. | |
4504 | (gnu_store_registers): Likewise. | |
4505 | * i386-linux-nat.c (fetch_register): Likewise. | |
4506 | (store_register): Likewise. | |
4507 | (supply_gregset): Likewise. | |
4508 | (fill_gregset): Likewise. | |
4509 | (i386_linux_fetch_inferior_registers): Likewise. | |
4510 | (i386_linux_store_inferior_registers): Likewise. | |
4511 | (i386_linux_resume): Likewise. | |
4512 | * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache): | |
4513 | Likewise. | |
4514 | * i386-nto-tdep.c (i386nto_supply_gregset): Likewise. | |
4515 | * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise. | |
4516 | * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise. | |
4517 | (i386obsd_collect_uthread): Likewise. | |
4518 | * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. | |
4519 | (i386_supply_gregset): Likewise. | |
4520 | (i386_collect_gregset): Likewise. | |
4521 | (i386_supply_fpregset): Likewise. | |
4522 | (i386_collect_fpregset): Likewise. | |
4523 | (i386_mpx_bd_base): Likewise. | |
4524 | * i386-v4-nat.c (supply_fpregset): Likewise. | |
4525 | (fill_fpregset): Likewise. | |
4526 | * i387-tdep.c (i387_supply_fsave): Likewise. | |
4527 | (i387_collect_fsave): Likewise. | |
4528 | (i387_supply_fxsave): Likewise. | |
4529 | (i387_collect_fxsave): Likewise. | |
4530 | (i387_supply_xsave): Likewise. | |
4531 | (i387_collect_xsave): Likewise. | |
4532 | * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise. | |
4533 | (ia64_linux_store_registers): Likewise. | |
4534 | * ia64-tdep.c (ia64_access_rse_reg): Likewise. | |
4535 | (ia64_extract_return_value): Likewise. | |
4536 | (ia64_store_return_value): Likewise. | |
4537 | (find_func_descr): Likewise. | |
4538 | * inf-child.c (inf_child_fetch_inferior_registers): Likewise. | |
4539 | * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise. | |
4540 | (inf_ptrace_store_registers): Likewise. | |
4541 | * infrun.c (use_displaced_stepping): Likewise. | |
4542 | (displaced_step_prepare_throw): Likewise. | |
4543 | (resume): Likewise. | |
4544 | (proceed): Likewise. | |
4545 | (do_target_wait): Likewise. | |
4546 | (adjust_pc_after_break): Likewise. | |
4547 | (handle_inferior_event_1): Likewise. | |
4548 | (handle_signal_stop): Likewise. | |
4549 | (save_infcall_suspend_state): Likewise. | |
4550 | (restore_infcall_suspend_state): Likewise. | |
4551 | * iq2000-tdep.c (iq2000_extract_return_value): Likewise. | |
4552 | * jit.c (jit_frame_prev_register): Likewise. | |
4553 | * linux-nat.c (save_stop_reason): Likewise. | |
4554 | (linux_nat_wait_1): Likewise. | |
4555 | (resume_stopped_resumed_lwps): Likewise. | |
4556 | * linux-record.c (record_linux_sockaddr): Likewise. | |
4557 | (record_linux_msghdr): Likewise. | |
4558 | (record_linux_system_call): Likewise. | |
4559 | * linux-tdep.c (linux_collect_thread_registers): Likewise. | |
4560 | * lm32-tdep.c (lm32_extract_return_value): Likewise. | |
4561 | (lm32_store_return_value): Likewise. | |
4562 | * m32c-tdep.c (m32c_read_flg): Likewise. | |
4563 | (m32c_pseudo_register_read): Likewise. | |
4564 | (m32c_pseudo_register_write): Likewise. | |
4565 | * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise. | |
4566 | (m32r_linux_collect_gregset): Likewise. | |
4567 | * m32r-tdep.c (m32r_store_return_value): Likewise. | |
4568 | (m32r_extract_return_value): Likewise. | |
4569 | * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise. | |
4570 | (m68kbsd_collect_fpregset): Likewise. | |
4571 | * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise. | |
4572 | * m68k-linux-nat.c (fetch_register): Likewise. | |
4573 | (old_fetch_inferior_registers): Likewise. | |
4574 | (old_store_inferior_registers): Likewise. | |
4575 | (store_regs): Likewise. | |
4576 | * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise. | |
4577 | (m68k_svr4_store_return_value): Likewise. | |
4578 | * m88k-tdep.c (m88k_store_arguments): Likewise. | |
4579 | * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise. | |
4580 | (mi_cmd_data_write_register_values): Likewise. | |
4581 | * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise. | |
4582 | (mips_fbsd_store_inferior_registers): Likewise. | |
4583 | * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise. | |
4584 | (mips_fbsd_supply_gregs): Likewise. | |
4585 | (mips_fbsd_collect_fpregs): Likewise. | |
4586 | (mips_fbsd_collect_gregs): Likewise. | |
4587 | (mips_fbsd_supply_fpregset): Likewise. | |
4588 | (mips_fbsd_collect_fpregset): Likewise. | |
4589 | (mips_fbsd_supply_gregset): Likewise. | |
4590 | (mips_fbsd_collect_gregset): Likewise. | |
4591 | * mips-linux-nat.c (supply_gregset): Likewise. | |
4592 | (fill_gregset): Likewise. | |
4593 | (supply_fpregset): Likewise. | |
4594 | (fill_fpregset): Likewise. | |
4595 | * mips-linux-tdep.c (mips_supply_gregset): Likewise. | |
4596 | (mips_fill_gregset): Likewise. | |
4597 | (mips_supply_fpregset): Likewise. | |
4598 | (mips_fill_fpregset): Likewise. | |
4599 | (mips64_supply_gregset): Likewise. | |
4600 | (micromips_linux_sigframe_validate): Likewise. | |
4601 | * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise. | |
4602 | (mipsnbsd_fetch_inferior_registers): Likewise. | |
4603 | (mipsnbsd_store_inferior_registers): Likewise. | |
4604 | * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise. | |
4605 | (mipsnbsd_supply_gregset): Likewise. | |
4606 | (mipsnbsd_iterate_over_regset_sections): Likewise. | |
4607 | (mipsnbsd_supply_reg): Likewise. | |
4608 | (mipsnbsd_supply_fpreg): Likewise. | |
4609 | * mips-tdep.c (mips_in_frame_stub): Likewise. | |
4610 | (mips_dummy_id): Likewise. | |
4611 | (is_octeon_bbit_op): Likewise. | |
4612 | (micromips_bc1_pc): Likewise. | |
4613 | (extended_mips16_next_pc): Likewise. | |
4614 | (mips16_next_pc): Likewise. | |
4615 | (deal_with_atomic_sequence): Likewise. | |
4616 | * moxie-tdep.c (moxie_process_readu): Likewise. | |
4617 | * nios2-tdep.c (nios2_get_next_pc): Likewise. | |
4618 | * nto-procfs.c (procfs_store_registers): Likewise. | |
4619 | * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise. | |
4620 | (ppcfbsd_store_inferior_registers): Likewise. | |
4621 | * ppc-linux-nat.c (fetch_vsx_register): Likewise. | |
4622 | (fetch_altivec_register): Likewise. | |
4623 | (get_spe_registers): Likewise. | |
4624 | (fetch_spe_register): Likewise. | |
4625 | (fetch_altivec_registers): Likewise. | |
4626 | (fetch_all_gp_regs): Likewise. | |
4627 | (fetch_all_fp_regs): Likewise. | |
4628 | (store_vsx_register): Likewise. | |
4629 | (store_altivec_register): Likewise. | |
4630 | (set_spe_registers): Likewise. | |
4631 | (store_spe_register): Likewise. | |
4632 | (store_altivec_registers): Likewise. | |
4633 | (store_all_gp_regs): Likewise. | |
4634 | (store_all_fp_regs): Likewise. | |
4635 | * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise. | |
4636 | (ppc_linux_collect_gregset): Likewise. | |
4637 | (ppc_canonicalize_syscall): Likewise. | |
4638 | (ppc_linux_record_signal): Likewise. | |
4639 | (ppu2spu_prev_register): Likewise. | |
4640 | * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise. | |
4641 | * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise. | |
4642 | (ppcobsd_store_registers): Likewise. | |
4643 | * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers): | |
4644 | Likewise. | |
4645 | (ppc_ravenscar_generic_store_registers): Likewise. | |
4646 | * procfs.c (procfs_fetch_registers): Likewise. | |
4647 | (procfs_store_registers): Likewise. | |
4648 | * ravenscar-thread.c (ravenscar_fetch_registers): Likewise. | |
4649 | (ravenscar_store_registers): Likewise. | |
4650 | (ravenscar_prepare_to_store): Likewise. | |
4651 | * record-btrace.c (record_btrace_fetch_registers): Likewise. | |
4652 | * record-full.c (record_full_wait_1): Likewise. | |
4653 | (record_full_registers_change): Likewise. | |
4654 | (record_full_store_registers): Likewise. | |
4655 | (record_full_core_fetch_registers): Likewise. | |
4656 | (record_full_save): Likewise. | |
4657 | (record_full_goto_insn): Likewise. | |
4658 | * regcache.c (regcache_register_size): Likewise. | |
4659 | (get_regcache_arch): Remove. | |
4660 | (regcache_read_pc): Likewise. | |
4661 | * regcache.h (get_regcache_arch): Remove. | |
4662 | * remote-sim.c (gdbsim_fetch_register): Likewise. | |
4663 | (gdbsim_store_register): Likewise. | |
4664 | * remote.c (fetch_register_using_p): Likewise. | |
4665 | (send_g_packet): Likewise. | |
4666 | (remote_prepare_to_store): Likewise. | |
4667 | (store_registers_using_G): Likewise. | |
4668 | * reverse.c (save_bookmark_command): Likewise. | |
4669 | (goto_bookmark_command): Likewise. | |
4670 | * rs6000-aix-tdep.c (branch_dest): Likewise. | |
4671 | * rs6000-nat.c (rs6000_ptrace64): Likewise. | |
4672 | (fetch_register): Likewise. | |
4673 | * rs6000-tdep.c (ppc_supply_reg): Likewise. | |
4674 | (ppc_collect_reg): Likewise. | |
4675 | (ppc_collect_gregset): Likewise. | |
4676 | (ppc_collect_fpregset): Likewise. | |
4677 | (ppc_collect_vsxregset): Likewise. | |
4678 | (ppc_collect_vrregset): Likewise. | |
4679 | (ppc_displaced_step_hw_singlestep): Likewise. | |
4680 | (rs6000_pseudo_register_read): Likewise. | |
4681 | (rs6000_pseudo_register_write): Likewise. | |
4682 | * s390-linux-nat.c (supply_gregset): Likewise. | |
4683 | (fill_gregset): Likewise. | |
4684 | (s390_linux_fetch_inferior_registers): Likewise. | |
4685 | * s390-linux-tdep.c (s390_write_pc): Likewise. | |
4686 | (s390_software_single_step): Likewise. | |
4687 | (s390_all_but_pc_registers_record): Likewise. | |
4688 | (s390_linux_syscall_record): Likewise. | |
4689 | * sentinel-frame.c (sentinel_frame_prev_arch): Likewise. | |
4690 | * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise. | |
4691 | (shnbsd_store_inferior_registers): Likewise. | |
4692 | * sh-tdep.c (sh_extract_return_value_nofpu): Likewise. | |
4693 | (sh_extract_return_value_fpu): Likewise. | |
4694 | (sh_store_return_value_nofpu): Likewise. | |
4695 | (sh_corefile_supply_regset): Likewise. | |
4696 | (sh_corefile_collect_regset): Likewise. | |
4697 | * sh64-tdep.c (sh64_extract_return_value): Likewise. | |
4698 | (sh64_store_return_value): Likewise. | |
4699 | * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise. | |
4700 | * sparc-nat.c (sparc_fetch_inferior_registers): Likewise. | |
4701 | (sparc_store_inferior_registers): Likewise. | |
4702 | * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise. | |
4703 | (sparc_ravenscar_prepare_to_store): Likewise. | |
4704 | * sparc-tdep.c (sparc32_store_arguments): Likewise. | |
4705 | (sparc_analyze_control_transfer): Likewise. | |
4706 | (sparc_step_trap): Likewise. | |
4707 | (sparc_software_single_step): Likewise. | |
4708 | (sparc32_gdbarch_init): Likewise. | |
4709 | (sparc_supply_rwindow): Likewise. | |
4710 | (sparc_collect_rwindow): Likewise. | |
4711 | * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise. | |
4712 | * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise. | |
4713 | (sparc64nbsd_collect_gregset): Likewise. | |
4714 | (sparc64nbsd_supply_fpregset): Likewise. | |
4715 | (sparc64nbsd_collect_fpregset): Likewise. | |
4716 | * sparc64-tdep.c (sparc64_store_arguments): Likewise. | |
4717 | (sparc64_supply_gregset): Likewise. | |
4718 | (sparc64_collect_gregset): Likewise. | |
4719 | (sparc64_supply_fpregset): Likewise. | |
4720 | (sparc64_collect_fpregset): Likewise. | |
4721 | * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise. | |
4722 | * spu-tdep.c (spu_unwind_sp): Likewise. | |
4723 | (spu2ppu_prev_register): Likewise. | |
4724 | (spu_memory_remove_breakpoint): Likewise. | |
4725 | * stack.c (return_command): Likewise. | |
4726 | * tic6x-tdep.c (tic6x_extract_signed_field): Likewise. | |
4727 | * tracefile-tfile.c (tfile_fetch_registers): Likewise. | |
4728 | * tracefile.c (trace_save_ctf): Likewise. | |
4729 | * windows-nat.c (do_windows_fetch_inferior_registers): Likewise. | |
4730 | (do_windows_store_inferior_registers): Likewise. | |
4731 | (windows_resume): Likewise. | |
4732 | * xtensa-linux-nat.c (fill_gregset): Likewise. | |
4733 | (supply_gregset_reg): Likewise. | |
4734 | * xtensa-tdep.c (xtensa_register_write_masked): Likewise. | |
4735 | (xtensa_register_read_masked): Likewise. | |
4736 | (xtensa_supply_gregset): Likewise. | |
4737 | (xtensa_extract_return_value): Likewise. | |
4738 | (xtensa_store_return_value): Likewise. | |
4739 | ||
edd079d9 UW |
4740 | 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com> |
4741 | ||
4742 | * doublest.c (floatformat_from_string): New function. | |
4743 | * doublest.h (floatformat_from_string): Add prototype. | |
4744 | ||
4745 | * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ... | |
4746 | (OP_FLOAT): ... this. | |
4747 | * expression.h: Do not include "doublest.h". | |
4748 | (union exp_element): Replace doubleconst and decfloatconst by | |
4749 | new element floatconst. | |
4750 | * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE. | |
4751 | (ada_evaluate_subexp): Likewise. | |
4752 | * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of | |
4753 | OP_DOUBLE and OP_DECFLOAT. | |
4754 | * expprint.c (print_subexp_standard): Likewise. | |
4755 | (dump_subexp_body_standard): Likewise. | |
4756 | * breakpoint.c (watchpoint_exp_is_const): Likewise. | |
4757 | ||
4758 | * parse.c: Include "dfp.h". | |
4759 | (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove. | |
4760 | (write_exp_elt_floatcst): New function. | |
4761 | (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE | |
4762 | and OP_DECFLOAT. | |
4763 | (operator_check_standard): Likewise. | |
4764 | (parse_float): Do not accept suffix. Take type as input. Return bool. | |
4765 | Return target format buffer instead of host DOUBLEST. | |
4766 | Use floatformat_from_string and decimal_from_string to parse | |
4767 | either binary or decimal floating-point types. | |
4768 | (parse_c_float): Remove. | |
4769 | * parser-defs.h: Do not include "doublest.h". | |
4770 | (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove. | |
4771 | (write_exp_elt_floatcst): Add prototype. | |
4772 | (parse_float): Update prototype. | |
4773 | (parse_c_float): Remove. | |
4774 | ||
4775 | * c-exp.y: Do not include "dfp.h". | |
4776 | (typed_val_float): Use byte buffer instead of DOUBLEST. | |
4777 | (typed_val_decfloat): Remove. | |
4778 | (DECFLOAT): Remove. | |
4779 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
4780 | (parse_number): Update to new parse_float interface. | |
4781 | Parse suffixes and determine type before calling parse_float. | |
4782 | Handle decimal and binary FP types the same way. | |
4783 | ||
4784 | * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST. | |
4785 | (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst. | |
4786 | (parse_number): Update to new parse_float interface. | |
4787 | Parse suffixes and determine type before calling parse_float. | |
4788 | ||
4789 | * f-exp.y: Replace dval by typed_val_float. | |
4790 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
4791 | (parse_number): Use parse_float instead of atof. | |
4792 | ||
4793 | * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST. | |
4794 | (parse_go_float): Remove. | |
4795 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
4796 | (parse_number): Call parse_float instead of parse_go_float. | |
4797 | Parse suffixes and determine type before calling parse_float. | |
4798 | ||
4799 | * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST. | |
4800 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
4801 | (parse_number): Update to new parse_float interface. | |
4802 | Parse suffixes and determine type before calling parse_float. | |
4803 | ||
4804 | * m2-exp.y: Replace dval by byte buffer val. | |
4805 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
4806 | (parse_number): Call parse_float instead of atof. | |
4807 | ||
4808 | * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST. | |
4809 | (lex_number): Call parse_float instead of strtod. | |
4810 | (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE. | |
4811 | (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE. | |
4812 | Use write_exp_elt_floatcst. | |
4813 | (unit_testing): Remove static variable. | |
4814 | (rust_type): Do not check unit_testing. | |
4815 | (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser. | |
4816 | ||
4817 | * ada-exp.y (type_float, type_double): Remove. | |
4818 | (typed_val_float): Use byte buffer instead of DOUBLEST. | |
4819 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
4820 | * ada-lex.l (processReal): Use parse_float instead of sscanf. | |
4821 | ||
cc628f3d AH |
4822 | 2017-10-25 Alan Hayward <alan.hayward@arm.com> |
4823 | ||
4824 | * aarch64-tdep.h (enum aarch64_regnum): Remove. | |
4825 | * arch/aarch64.h: New file. | |
4826 | ||
09a7c6aa UW |
4827 | 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com> |
4828 | ||
4829 | * dfp.h (decimal_from_string): Use const reference for argument. | |
4830 | * dfp.c (decimal_from_string): Likewise. | |
4831 | ||
8ba0dd51 UW |
4832 | 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com> |
4833 | ||
4834 | * i387-tdep.c (print_i387_value): Use floatformat_to_string. | |
4835 | * sh64-tdep.c (sh64_do_fp_register): Likewise. | |
4836 | * mips-tdep.c (mips_print_fp_register): Likewise. | |
4837 | ||
16e812b2 UW |
4838 | 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com> |
4839 | ||
4840 | * common/format.h (enum argclass): Replace decfloat_arg by | |
4841 | dec32float_arg, dec64float_arg, and dec128float_arg. | |
4842 | * common/format.c (parse_format_string): Update to return | |
4843 | new decimal float argument classes. | |
4844 | ||
4845 | * printcmd.c (printf_decfloat): Rename to ... | |
4846 | (printf_floating): ... this. Add argclass argument, and use it | |
4847 | instead of parsing the format string again. Add support for | |
4848 | binary floating-point values, using floatformat_to_string. | |
4849 | Convert value to the target format if it doesn't already match. | |
4850 | (ui_printf): Call printf_floating instead of printf_decfloat, | |
4851 | also for double_arg / long_double_arg. Pass argclass. | |
4852 | ||
4853 | * dfp.c (decimal_to_string): Add format string argument. | |
4854 | * dfp.h (decimal_to_string): Likewise. | |
4855 | ||
4856 | * doublest.c (floatformat_to_string): Add format string argument. | |
4857 | * doublest.h (floatformat_to_string): Likewise. | |
4858 | ||
fdf0cbc2 UW |
4859 | 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com> |
4860 | ||
4861 | * doublest.c (floatformat_precision): New routine. | |
4862 | (floatformat_to_string): Likewise. | |
4863 | * doublest.c (floatformat_to_string): Add prototype. | |
4864 | ||
4865 | * printcmd.c (print_scalar_formatted): Only call print_floating | |
4866 | on floating-point types. | |
4867 | * valprint.c: Do not include "floatformat.h". | |
4868 | (generic_val_print_decfloat): Remove. | |
4869 | (generic_val_print): Call generic_val_print_float for both | |
4870 | TYPE_CODE_FLT and TYPE_CODE_DECFLOAT. | |
4871 | (print_floating): Use floatformat_to_string. Handle decimal float. | |
4872 | (print_decimal_floating): Remove, merge into floatformat_to_string. | |
4873 | * value.h (print_decimal_floating): Remove. | |
4874 | ||
4875 | * Makefile.in: Do not build doublest.c with -Wformat-nonliteral. | |
4876 | ||
5033013f UW |
4877 | 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com> |
4878 | ||
4879 | * buildsym.c (end_symtab_get_static_block): Use std::stable_sort. | |
4880 | ||
a664f67e SM |
4881 | 2017-10-21 Simon Marchi <simon.marchi@ericsson.com> |
4882 | ||
4883 | * memattr.h: Don't include vec.h. | |
4884 | (struct mem_attrib): Initialize fields. | |
4885 | <unknown>: New static method. | |
4886 | (struct mem_region): Add constructors, operator<, initialize | |
4887 | fields. | |
4888 | * memattr.c: Include algorithm. | |
4889 | (default_mem_attrib, unknown_mem_attrib): Remove. | |
4890 | (user_mem_region_list): New global. | |
4891 | (target_mem_region_list, mem_region_list): Change type to | |
4892 | std::vector<mem_region>. | |
4893 | (mem_use_target): Now a function. | |
4894 | (target_mem_regions_valid): Change type to bool. | |
4895 | (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove. | |
4896 | (require_user_regions): Adjust. | |
4897 | (require_target_regions): Adjust. | |
4898 | (create_mem_region): Adjust. | |
4899 | (lookup_mem_region): Adjust. | |
4900 | (invalidate_target_mem_regions): Adjust. | |
4901 | (mem_clear): Rename to... | |
4902 | (user_mem_clear): ... this, and adjust. | |
4903 | (mem_command): Adjust. | |
4904 | (info_mem_command): Adjust. | |
4905 | (mem_enable, enable_mem_command, mem_disable, | |
4906 | disable_mem_command): Adjust. | |
4907 | (mem_delete): Adjust. | |
4908 | (delete_mem_command): Adjust. | |
4909 | * memory-map.h (parse_memory_map): Return an std::vector. | |
4910 | * memory-map.c (parse_memory_map): Likewise. | |
4911 | (struct memory_map_parsing_data): Add constructor. | |
4912 | <memory_map>: Point to std::vector. | |
4913 | (memory_map_start_memory): Adjust. | |
4914 | (memory_map_end_memory): Adjust. | |
4915 | (memory_map_end_property): Adjust. | |
4916 | (clear_result): Remove. | |
4917 | * remote.c (remote_memory_map): Return an std::vector. | |
4918 | * target-debug.h (target_debug_print_VEC_mem_region_s__p): | |
4919 | Remove. | |
4920 | (target_debug_print_mem_region_vector): New. | |
4921 | * target-delegates.c: Regenerate. | |
4922 | * target.h (mem_region_vector): New typedef. | |
4923 | (to_memory_map): Return mem_region_vector. | |
4924 | (target_memory_map): Return an std::vector. | |
4925 | * target.c (target_memory_map): Return an std::vector. | |
4926 | (flash_erase_command): Adjust. | |
4927 | ||
6e17c565 SM |
4928 | 2017-10-21 Simon Marchi <simon.marchi@ericsson.com> |
4929 | ||
4930 | * memory-map.c (struct memory_map_parsing_data) <property_name>: | |
4931 | Change type to std::string. | |
4932 | (memory_map_start_property): Adjust. | |
4933 | (memory_map_end_property): Adjust. | |
4934 | ||
cfba9872 SM |
4935 | 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca> |
4936 | ||
4937 | * infrun.h: Include common/byte-vector.h. | |
4938 | (struct displaced_step_closure): New struct. | |
4939 | (struct buf_displaced_step_closure): New struct. | |
4940 | * infrun.c (displaced_step_closure::~displaced_step_closure): | |
4941 | Provide default implementation. | |
4942 | (displaced_step_clear): Deallocate step closure with delete. | |
4943 | * aarch64-tdep.c (displaced_step_closure): Rename to ... | |
4944 | (aarch64_displaced_step_closure): ... this, extend | |
4945 | displaced_step_closure. | |
4946 | (aarch64_displaced_step_data) <dsc>: Change type to | |
4947 | aarch64_displaced_step_closure. | |
4948 | (aarch64_displaced_step_copy_insn): Adjust to type change, use | |
4949 | unique_ptr. | |
4950 | (aarch64_displaced_step_fixup): Add cast for displaced step | |
4951 | closure. | |
4952 | * amd64-tdep.c (displaced_step_closure): Rename to ... | |
4953 | (amd64_displaced_step_closure): ... this, extend | |
4954 | displaced_step_closure. | |
4955 | <insn_buf>: Change type to std::vector<gdb_byte>. | |
4956 | <max_len>: Remove. | |
4957 | (fixup_riprel): Change type of DSC parameter, adjust to type | |
4958 | change of insn_buf. | |
4959 | (fixup_displaced_copy): Change type of DSC parameter. | |
4960 | (amd64_displaced_step_copy_insn): Instantiate | |
4961 | amd64_displaced_step_closure. | |
4962 | (amd64_displaced_step_fixup): Add cast for closure type, adjust | |
4963 | to type change of insn_buf. | |
4964 | * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of | |
4965 | parameter DSC. | |
4966 | (arm_linux_copy_svc): Likewise. | |
4967 | (cleanup_kernel_helper_return): Likewise. | |
4968 | (arm_catch_kernel_helper_return): Likewise. | |
4969 | (arm_linux_displaced_step_copy_insn): Instantiate | |
4970 | arm_displaced_step_closure. | |
4971 | * arm-tdep.c (arm_pc_is_thumb): Add cast for closure. | |
4972 | (displaced_read_reg): Change type of parameter DSC. | |
4973 | (branch_write_pc): Likewise. | |
4974 | (load_write_pc): Likewise. | |
4975 | (alu_write_pc): Likewise. | |
4976 | (displaced_write_reg): Likewise. | |
4977 | (arm_copy_unmodified): Likewise. | |
4978 | (thumb_copy_unmodified_32bit): Likewise. | |
4979 | (thumb_copy_unmodified_16bit): Likewise. | |
4980 | (cleanup_preload): Likewise. | |
4981 | (install_preload): Likewise. | |
4982 | (arm_copy_preload): Likewise. | |
4983 | (thumb2_copy_preload): Likewise. | |
4984 | (install_preload_reg): Likewise. | |
4985 | (arm_copy_preload_reg): Likewise. | |
4986 | (cleanup_copro_load_store): Likewise. | |
4987 | (install_copro_load_store): Likewise. | |
4988 | (arm_copy_copro_load_store) Likewise. | |
4989 | (thumb2_copy_copro_load_store): Likewise. | |
4990 | (cleanup_branch): Likewise. | |
4991 | (install_b_bl_blx): Likewise. | |
4992 | (arm_copy_b_bl_blx): Likewise. | |
4993 | (thumb2_copy_b_bl_blx): Likewise. | |
4994 | (thumb_copy_b): Likewise. | |
4995 | (install_bx_blx_reg): Likewise. | |
4996 | (arm_copy_bx_blx_reg): Likewise. | |
4997 | (thumb_copy_bx_blx_reg): Likewise. | |
4998 | (cleanup_alu_imm): Likewise. | |
4999 | (arm_copy_alu_imm): Likewise. | |
5000 | (thumb2_copy_alu_imm): Likewise. | |
5001 | (cleanup_alu_reg): Likewise. | |
5002 | (install_alu_reg): Likewise. | |
5003 | (arm_copy_alu_reg): Likewise. | |
5004 | (thumb_copy_alu_reg): Likewise. | |
5005 | (cleanup_alu_shifted_reg): Likewise. | |
5006 | (install_alu_shifted_reg): Likewise. | |
5007 | (arm_copy_alu_shifted_reg): Likewise. | |
5008 | (cleanup_load): Likewise. | |
5009 | (cleanup_store): Likewise. | |
5010 | (arm_copy_extra_ld_st): Likewise. | |
5011 | (install_load_store): Likewise. | |
5012 | (thumb2_copy_load_literal): Likewise. | |
5013 | (thumb2_copy_load_reg_imm): Likewise. | |
5014 | (arm_copy_ldr_str_ldrb_strb): Likewise. | |
5015 | (cleanup_block_load_all): Likewise. | |
5016 | (cleanup_block_store_pc): Likewise. | |
5017 | (cleanup_block_load_pc): Likewise. | |
5018 | (arm_copy_block_xfer): Likewise. | |
5019 | (thumb2_copy_block_xfer): Likewise. | |
5020 | (cleanup_svc): Likewise. | |
5021 | (install_svc): Likewise. | |
5022 | (arm_copy_svc): Likewise. | |
5023 | (thumb_copy_svc): Likewise. | |
5024 | (arm_copy_undef): Likewise. | |
5025 | (thumb_32bit_copy_undef): Likewise. | |
5026 | (arm_copy_unpred): Likewise. | |
5027 | (arm_decode_misc_memhint_neon): Likewise. | |
5028 | (arm_decode_unconditional): Likewise. | |
5029 | (arm_decode_miscellaneous): Likewise. | |
5030 | (arm_decode_dp_misc): Likewise. | |
5031 | (arm_decode_ld_st_word_ubyte): Likewise. | |
5032 | (arm_decode_media): Likewise. | |
5033 | (arm_decode_b_bl_ldmstm): Likewise. | |
5034 | (arm_decode_ext_reg_ld_st): Likewise. | |
5035 | (thumb2_decode_dp_shift_reg): Likewise. | |
5036 | (thumb2_decode_ext_reg_ld_st): Likewise. | |
5037 | (arm_decode_svc_copro): Likewise. | |
5038 | (thumb2_decode_svc_copro): Likewise. | |
5039 | (install_pc_relative): Likewise. | |
5040 | (thumb_copy_pc_relative_16bit): Likewise. | |
5041 | (thumb_decode_pc_relative_16bit): Likewise. | |
5042 | (thumb_copy_pc_relative_32bit): Likewise. | |
5043 | (thumb_copy_16bit_ldr_literal): Likewise. | |
5044 | (thumb_copy_cbnz_cbz): Likewise. | |
5045 | (thumb2_copy_table_branch): Likewise. | |
5046 | (cleanup_pop_pc_16bit_all): Likewise. | |
5047 | (thumb_copy_pop_pc_16bit): Likewise. | |
5048 | (thumb_process_displaced_16bit_insn): Likewise. | |
5049 | (decode_thumb_32bit_ld_mem_hints): Likewise. | |
5050 | (thumb_process_displaced_32bit_insn): Likewise. | |
5051 | (thumb_process_displaced_insn): Likewise. | |
5052 | (arm_process_displaced_insn): Likewise. | |
5053 | (arm_displaced_init_closure): Likewise. | |
5054 | (arm_displaced_step_fixup): Add cast for closure. | |
5055 | * arm-tdep.h: Include infrun.h. | |
5056 | (displaced_step_closure): Rename to ... | |
5057 | (arm_displaced_step_closure): ... this, extend | |
5058 | displaced_step_closure. | |
5059 | <u::svc::copy_svc_os>: Change type of parameter DSC. | |
5060 | <cleanup>: Likewise. | |
5061 | (arm_process_displaced_insn): Likewise. | |
5062 | (arm_displaced_init_closure): Likewise. | |
5063 | (displaced_read_reg): Likewise. | |
5064 | (displaced_write_reg): Likewise. | |
5065 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): | |
5066 | Adjust. | |
5067 | * i386-tdep.h: Include infrun.h. | |
5068 | (i386_displaced_step_closure): New typedef. | |
5069 | * i386-tdep.c (i386_displaced_step_copy_insn): Use | |
5070 | i386_displaced_step_closure. | |
5071 | (i386_displaced_step_fixup): Adjust. | |
5072 | * rs6000-tdep.c (ppc_displaced_step_closure): New typedef. | |
5073 | (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure | |
5074 | and unique_ptr. | |
5075 | (ppc_displaced_step_fixup): Adjust. | |
5076 | * s390-linux-tdep.c (s390_displaced_step_closure): New typedef. | |
5077 | (s390_displaced_step_copy_insn): Use s390_displaced_step_closure | |
5078 | and unique_ptr. | |
5079 | (s390_displaced_step_fixup): Adjust. | |
5080 | ||
b392b304 SM |
5081 | 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca> |
5082 | ||
5083 | * interps.h (interp_resume, interp_suspend, interp_set_temp): | |
5084 | Remove declarations. | |
5085 | ||
d5833c62 TT |
5086 | 2017-10-20 Tom Tromey <tom@tromey.com> |
5087 | ||
5088 | * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a | |
5089 | std::vector. | |
5090 | (gdb_bfd_record_inclusion): Update. | |
5091 | (bfdp): Remove typedef. | |
5092 | ||
06d5bbc8 TT |
5093 | 2017-10-20 Tom Tromey <tom@tromey.com> |
5094 | ||
5095 | * gdb_bfd.c (gdb_bfd_ref): Use new. | |
5096 | (struct gdb_bfd_data): Add constructor, destructor, and member | |
5097 | initializers. | |
5098 | (gdb_bfd_unref): Use delete. | |
5099 | ||
2712ce2e TT |
5100 | 2017-10-20 Tom Tromey <tom@tromey.com> |
5101 | ||
5102 | * exec.c (exec_file_attach): Use new_bfd_ref. | |
5103 | * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref. | |
5104 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
5105 | (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use | |
5106 | new_bfd_ref. | |
5107 | * gdb_bfd.h (new_bfd_ref): New function. | |
5108 | ||
fcc8fb2f PA |
5109 | 2017-10-20 Pedro Alves <palves@redhat.com> |
5110 | ||
5111 | * main.c (captured_command_loop): Add attribute noinline. | |
5112 | ||
4c2287b0 SM |
5113 | 2017-10-19 Simon Marchi <simon.marchi@ericsson.com> |
5114 | ||
5115 | * interps.c (struct interp_factory): Add constructor. | |
5116 | (interp_factory_p): Remove typedef. | |
5117 | (DEF_VEC_P(interp_factory_p)): Remove. | |
5118 | (interpreter_factories): Change type to std::vector. | |
5119 | (interp_factory_register): Adjust. | |
5120 | (interp_lookup): Adjust. | |
5121 | (interpreter_completer): Adjust. | |
5122 | ||
3d415c26 TT |
5123 | 2017-10-19 Tom Tromey <tom@tromey.com> |
5124 | ||
5125 | * break-catch-syscall.c (catch_syscall_completer): Use | |
5126 | std::string, gdb::unique_xmalloc_ptr. | |
5127 | ||
395423c4 TT |
5128 | 2017-10-19 Tom Tromey <tom@tromey.com> |
5129 | ||
5130 | * infcall.c (call_function_by_hand_dummy): Use std::string. | |
5131 | ||
54f70bc1 TT |
5132 | 2017-10-19 Tom Tromey <tom@tromey.com> |
5133 | ||
5134 | * mi/mi-main.c (mi_cmd_execute): Update. | |
5135 | * top.h (prepare_execute_command): Return scoped_value_mark. | |
5136 | * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN. | |
5137 | Add move constructor. | |
5138 | * top.c (prepare_execute_command): Return scoped_value_mark. | |
5139 | (execute_command): Update. | |
5140 | ||
63929e84 PA |
5141 | 2017-10-19 Pedro Alves <palves@redhat.com> |
5142 | ||
5143 | * xml-support.c (xml_fetch_content_from_file): Check fread's | |
5144 | return. | |
5145 | ||
a75868f5 PA |
5146 | 2017-10-19 Pedro Alves <palves@redhat.com> |
5147 | ||
5148 | * ser-base.c (ser_base_read_error_fd): Delete the file handler if | |
5149 | async. | |
5150 | (handle_error_fd): New function. | |
5151 | (ser_base_async): Add/delete an event loop file handler for | |
5152 | error_fd. | |
5153 | ||
2edf834e PA |
5154 | 2017-10-19 Pedro Alves <palves@redhat.com> |
5155 | ||
5156 | * xml-support.c (xml_fetch_content_from_file): Don't read in | |
5157 | chunks. Instead use fseek to determine the file's size, and read | |
5158 | it in one go. | |
5159 | ||
c8ba13ad KS |
5160 | 2017-11-18 Keith Seitz <keiths@redhat.com> |
5161 | ||
5162 | * c-exp.y (oper): Canonicalize conversion operators of user-defined | |
5163 | types. | |
5164 | Add whitespace to front of type name. | |
5165 | ||
37534686 KS |
5166 | 2017-10-18 Keith Seitz <keiths@redhat.com> |
5167 | ||
5168 | * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled | |
5169 | DW_AT_accessibility. | |
5170 | ||
28c7c158 YQ |
5171 | 2017-10-18 Yao Qi <yao.qi@linaro.org> |
5172 | ||
5173 | * features/tic6x-c62x-linux.c: Remove. | |
5174 | ||
30f0b101 TT |
5175 | 2017-10-17 Tom Tromey <tom@tromey.com> |
5176 | ||
5177 | * disasm.c (do_mixed_source_and_assembly_deprecated): Use | |
5178 | gdb::optional, ui_out_emit_list, ui_out_emit_tuple. | |
5179 | (do_mixed_source_and_assembly): Likewise. | |
5180 | ||
57e12da9 TT |
5181 | 2017-10-17 Tom Tromey <tom@tromey.com> |
5182 | ||
5183 | * regcache.c (regcache::xfer_part): Remove assertion. | |
5184 | ||
7b700999 PA |
5185 | 2017-10-17 Pedro Alves <palves@redhat.com> |
5186 | ||
5187 | * xml-support.c (xml_fetch_content_from_file): Call | |
5188 | unique_ptr::release() instead unique_ptr::get() when passing | |
5189 | through xrealloc. | |
5190 | ||
d3037ba6 YQ |
5191 | 2017-10-17 Yao Qi <yao.qi@linaro.org> |
5192 | ||
5193 | * regcache.c (regcache::xfer_part): Remove parameters read and | |
5194 | write, add parameter is_raw. All callers are updated. | |
5195 | ||
83d5a34d KS |
5196 | 2017-10-16 Keith Seitz <keiths@redhat.com> |
5197 | ||
5198 | * c-typeprint.c (enum access_specifier): Moved here from | |
5199 | c_type_print_base. | |
5200 | (output_access_specifier): New function. | |
5201 | (c_type_print_base): Consider typedefs when assessing | |
5202 | whether access labels are needed. | |
5203 | Use output_access_specifier as needed. | |
5204 | Output access specifier for typedefs, if needed. | |
5205 | * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility. | |
5206 | * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New | |
5207 | fields. | |
5208 | (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New | |
5209 | accessor macros. | |
5210 | ||
87028b87 TT |
5211 | 2017-10-16 Tom Tromey <tom@tromey.com> |
5212 | ||
5213 | * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full) | |
5214 | (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update. | |
5215 | * target.c (target_fileio_read_stralloc): Update. | |
5216 | * sparc64-tdep.c (adi_is_addr_mapped): Update. | |
5217 | * target.h (target_fileio_read_stralloc): Return | |
5218 | unique_xmalloc_ptr. | |
5219 | ||
b7b030ad TT |
5220 | 2017-10-16 Tom Tromey <tom@tromey.com> |
5221 | ||
5222 | * xml-syscall.c (xml_init_syscalls_info): Update. | |
5223 | * xml-support.c (xinclude_start_include): Update. | |
5224 | (xml_fetch_content_from_file): Return unique_xmalloc_ptr. | |
5225 | * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr. | |
5226 | (xml_fetch_content_from_file): Likewise. | |
5227 | * osdata.c (get_osdata): Update. | |
5228 | * target.h (target_read_stralloc, target_get_osdata): Return | |
5229 | unique_xmalloc_ptr. | |
5230 | * solib-aix.c (solib_aix_get_library_list): Update. | |
5231 | * solib-target.c (solib_target_current_sos): Update. | |
5232 | * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update. | |
5233 | * xml-tdesc.c (fetch_available_features_from_target): Update. | |
5234 | (target_fetch_description_xml): Update. | |
5235 | (file_read_description_xml): Update. | |
5236 | * remote.c (remote_get_threads_with_qxfer, remote_memory_map) | |
5237 | (remote_traceframe_info, btrace_read_config, remote_read_btrace) | |
5238 | (remote_pid_to_exec_file): Update. | |
5239 | * target.c (target_read_stralloc): Return unique_xmalloc_ptr. | |
5240 | (target_get_osdata): Likewise. | |
5241 | ||
b80406ac TT |
5242 | 2017-10-16 Tom Tromey <tom@tromey.com> |
5243 | ||
5244 | * remote.c (remote_register_number_and_offset): Use std::vector. | |
5245 | (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr. | |
5246 | (putpkt_binary): Use gdb::def_vector. | |
5247 | (compare_sections_command): Use gdb::byte_vector. | |
5248 | ||
a90ecff8 TT |
5249 | 2017-10-16 Tom Tromey <tom@tromey.com> |
5250 | ||
5251 | * ppc-linux-nat.c (hwdebug_insert_point): Use | |
5252 | gdb::unique_xmalloc_ptr, XDUP. | |
5253 | ||
2dc0e219 TT |
5254 | 2017-10-16 Tom Tromey <tom@tromey.com> |
5255 | ||
5256 | * probe.c (parse_probes): Use std::string. | |
5257 | (info_probes_for_ops, enable_probes_command) | |
5258 | (disable_probes_command): Remove cleanups. | |
5259 | ||
b05628f0 TT |
5260 | 2017-10-16 Tom Tromey <tom@tromey.com> |
5261 | ||
5262 | * buildsym.c (block_compar): Remove. | |
5263 | (end_symtab_get_static_block): Use std::vector. | |
5264 | ||
a79b1bc6 SM |
5265 | 2017-10-16 Simon Marchi <simon.marchi@ericsson.com> |
5266 | ||
5267 | * memrange.h (struct mem_range): Define operator< and operator==. | |
5268 | (mem_range_s): Remove. | |
5269 | (DEF_VEC_O (mem_range_s)): Remove. | |
5270 | (normalize_mem_ranges): Change parameter type to std::vector. | |
5271 | * memrange.c (compare_mem_ranges): Remove. | |
5272 | (normalize_mem_ranges): Change parameter type to std::vector, | |
5273 | adjust to vector change. | |
5274 | * exec.c (section_table_available_memory): Return vector, remove | |
5275 | parameter. | |
5276 | (section_table_read_available_memory): Adjust to std::vector | |
5277 | change. | |
5278 | * remote.c (remote_read_bytes): Adjust to std::vector | |
5279 | change. | |
5280 | * tracepoint.h (traceframe_available_memory): Change parameter | |
5281 | type to std::vector. | |
5282 | * tracepoint.c (traceframe_available_memory): Change parameter | |
5283 | type to std::vector, adjust. | |
5284 | * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to | |
5285 | std::vector change. | |
5286 | * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
5287 | unittests/memrange-selftests.c. | |
5288 | (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o. | |
5289 | * gdb/unittests/memrange-selftests.c: New file. | |
5290 | ||
63f0e930 PA |
5291 | 2017-10-16 Pedro Alves <palves@redhat.com> |
5292 | ||
5293 | * elfread.c (probe_key_free): Rename range-for variable. | |
5294 | * probe.c (parse_probes_in_pspace, find_probes_in_objfile) | |
5295 | (find_probe_by_pc, collect_probes): Rename range-for variable. | |
5296 | ||
c40c7bfc YQ |
5297 | 2017-10-16 Yao Qi <yao.qi@linaro.org> |
5298 | ||
5299 | * features/Makefile (XMLTOC): Remove tic6x-*.xml. | |
5300 | * features/tic6x-c62x.c: Remove. | |
5301 | * features/tic6x-c64x-linux.c: Remove. | |
5302 | * features/tic6x-c64x.c: Remove. | |
5303 | * features/tic6x-c64xp-linux.c: Remove. | |
5304 | * features/tic6x-c64xp.c: Remove. | |
5305 | * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call | |
5306 | initialize_tdesc_tic6x_*_linux functions. | |
5307 | * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call | |
5308 | initialize_tdesc_tic6x_* functions. | |
5309 | ||
df27ae6a YQ |
5310 | 2017-10-16 Yao Qi <yao.qi@linaro.org> |
5311 | ||
5312 | * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x | |
5313 | tic6x-c62x. | |
5314 | * regformats/tic6x-c62x.dat: Remove. | |
5315 | * regformats/tic6x-c64x.dat: Remove. | |
5316 | * regformats/tic6x-c64xp.dat: Remove. | |
5317 | ||
86766165 SM |
5318 | 2017-10-15 Simon Marchi <simon.marchi@ericsson.com> |
5319 | ||
5320 | * tracepoint.c (parse_traceframe_info): Return a unique_ptr | |
5321 | (the !HAVE_LIBEXPAT version). | |
5322 | ||
824dfcc3 SM |
5323 | 2017-10-14 Simon Marchi <simon.marchi@ericsson.com> |
5324 | ||
5325 | * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make | |
5326 | const. | |
5327 | ||
2098b393 SM |
5328 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
5329 | ||
5330 | * target.h: Include tracepoint.h. | |
5331 | (enum trace_find_type): Move to tracepoint.h. | |
5332 | (struct target_ops) <to_traceframe_info>: Return a unique ptr. | |
5333 | * tracepoint.h: Don't include target.h | |
5334 | (enum trace_find_type): Move from target.h. | |
5335 | (parse_traceframe_info): Return a unique ptr. | |
5336 | * tracepoint.c (current_traceframe_info): Change type to unique | |
5337 | ptr. | |
5338 | (free_traceframe_info): Remove. | |
5339 | (clear_traceframe_info): Don't manually free | |
5340 | current_traceframe_info. | |
5341 | (free_result): Remove. | |
5342 | (parse_traceframe_info): Return a unique ptr. | |
5343 | (get_traceframe_info): Adjust to unique ptr. | |
5344 | * ctf.c (ctf_traceframe_info): Return a unique ptr. | |
5345 | * remote.c (remote_traceframe_info): Return a unique ptr. | |
5346 | * tracefile-tfile.c (tfile_traceframe_info): Return a unique | |
5347 | ptr. | |
5348 | * target-debug.h (target_debug_print_traceframe_info_up): New | |
5349 | macro. | |
5350 | * target-delegates.c: Regenerate. | |
5351 | ||
4cdd21a8 SM |
5352 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
5353 | ||
5354 | * memrange.h (struct mem_range): Add constructors. | |
5355 | * tracepoint.h (struct traceframe_info) <memory>: Change type to | |
5356 | std::vector<mem_range>. | |
5357 | * tracepoint.c (free_traceframe_info): Don't manually free | |
5358 | vector. | |
5359 | (traceframe_info_start_memory): Adjust to vector change. | |
5360 | (traceframe_available_memory): Likewise. | |
5361 | * tracefile-tfile.c (build_traceframe_info): Likewise. | |
5362 | * ctf.c (ctf_traceframe_info): Likewise. | |
5363 | ||
d0d292a2 SM |
5364 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
5365 | ||
5366 | * tracepoint.h (struct traceframe_info) <tvars>: Change type to | |
5367 | std::vector<int>. | |
5368 | * tracepoint.c (free_traceframe_info): Deallocate with delete. | |
5369 | (traceframe_info_start_tvar): Adjust to vector change. | |
5370 | (parse_traceframe_info): Allocate with new. | |
5371 | * ctf.c (ctf_traceframe_info): Allocate with new, adjust to | |
5372 | vector change. | |
5373 | * tracefile-tfile.c (build_traceframe_info): Adjust to vector | |
5374 | change. | |
5375 | tfile_traceframe_info): Allocate with new. | |
5376 | * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector | |
5377 | change. | |
5378 | ||
8d3c73ef SM |
5379 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
5380 | ||
5381 | * tracepoint.c (traceframe_info): Rename to... | |
5382 | (current_traceframe_info): ...this. | |
5383 | (clear_traceframe_info): Adjust. | |
5384 | (get_traceframe_info): Adjust. | |
5385 | ||
b129dcac SM |
5386 | 2017-10-14 Simon Marchi <simon.marchi@ericsson.com> |
5387 | ||
5388 | * nat/linux-osdata.c: Include algorithm. | |
5389 | (compare_processes): Remove. | |
5390 | (struct pid_pgid_entry): New struct. | |
5391 | (linux_xfer_osdata_processgroups): Use std::vector instead of | |
5392 | XNEWVEC. | |
5393 | ||
af5bf4ad SM |
5394 | 2017-10-14 Simon Marchi <simon.marchi@ericsson.com> |
5395 | ||
5396 | * objfiles.h: Don't include symfile.h. | |
5397 | (struct partial_symbol): Remove forward-declaration. | |
5398 | (struct objfile) <global_psymbols, static_psymbols>: Change type | |
5399 | to std::vector<partial_symbol *>. | |
5400 | * objfiles.c (objfile::objfile): Don't memset those fields. | |
5401 | (objfile::~objfile): Don't free those fields. | |
5402 | * psympriv.h (struct psymbol_allocation_list): Remove | |
5403 | forward-declaration. | |
5404 | (add_psymbol_to_list): Change psymbol_allocation_list parameter | |
5405 | to std::vector. | |
5406 | (start_psymtab_common): Change parameters to std::vector. | |
5407 | * psymtab.c: Include algorithm. | |
5408 | (require_partial_symbols): Call shrink_to_fit. | |
5409 | (find_pc_sect_psymbol): Adjust to vector change. | |
5410 | (match_partial_symbol): Likewise. | |
5411 | (lookup_partial_symbol): Likewise. | |
5412 | (psym_relocate): Likewise. | |
5413 | (dump_psymtab): Likewise. | |
5414 | (recursively_search_psymtabs): Likewise. | |
5415 | (compare_psymbols): Remove. | |
5416 | (sort_pst_symbols): Adjust to vector change. | |
5417 | (start_psymtab_common): Likewise. | |
5418 | (end_psymtab_common): Likewise. | |
5419 | (psymbol_bcache_full): De-constify return value. | |
5420 | (add_psymbol_to_bcache): Likewise. | |
5421 | (extend_psymbol_list): Remove. | |
5422 | (append_psymbol_to_list): Adjust to vector change. | |
5423 | (add_psymbol_to_list): Likewise. | |
5424 | (init_psymbol_list): Likewise. | |
5425 | (maintenance_info_psymtabs): Likewise. | |
5426 | (maintenance_check_psymtabs): Likewise. | |
5427 | * symfile.h (struct psymbol_allocation_list): Remove. | |
5428 | * symfile.c (reread_symbols): Adjust to vector change. | |
5429 | * dbxread.c (start_psymtab): Change type of parameters. | |
5430 | (dbx_symfile_read): Adjust to vector change. | |
5431 | (read_dbx_symtab): Likewise. | |
5432 | (start_psymtab): Change type of parameters. | |
5433 | * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change. | |
5434 | (create_partial_symtab): Likewise. | |
5435 | (add_partial_symbol): Likewise. | |
5436 | (write_one_signatured_type): Likewise. | |
5437 | (recursively_write_psymbols): Likewise. | |
5438 | * mdebugread.c (parse_partial_symbols): Likewise. | |
5439 | * xcoffread.c (xcoff_start_psymtab): Change type of parameters. | |
5440 | (scan_xcoff_symtab): Adjust to vector change. | |
5441 | (xcoff_initial_scan): Likewise. | |
5442 | ||
3ec5942f SM |
5443 | 2017-10-13 Simon Marchi <simon.marchi@ericsson.com> |
5444 | ||
5445 | * ada-typeprint.c (print_dynamic_range_bound): Use std::string. | |
5446 | ||
2399fe6a YQ |
5447 | 2017-10-13 Yao Qi <yao.qi@linaro.org> |
5448 | ||
5449 | * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite. | |
5450 | Remove s390x-*-expedite, add s390x-expedite. | |
5451 | ||
4bf3f4a8 YQ |
5452 | 2017-10-13 Yao Qi <yao.qi@linaro.org> |
5453 | ||
5454 | * features/s390-gs-linux64.c: Regenerated. | |
5455 | * features/s390x-gs-linux64.c: Regenerated. | |
5456 | ||
9e86da07 TT |
5457 | 2017-10-13 Tom Tromey <tom@tromey.com> |
5458 | ||
5459 | * compile/compile-object-run.c (do_module_cleanup): Use delete. | |
5460 | * solib.c (update_solib_list, reload_shared_libraries_1): Use | |
5461 | delete. | |
5462 | * symfile.c (symbol_file_add_with_addrs): Use new. | |
5463 | (symbol_file_add_separate): Update comment. | |
5464 | (syms_from_objfile_1, remove_symbol_file_command): Use delete. | |
5465 | * jit.c (jit_object_close_impl): Use new. | |
5466 | (jit_unregister_code): Use delete. | |
5467 | * objfiles.c (objfile::objfile): Rename from allocate_objfile. | |
5468 | (~objfile): Rename from free_objfile. | |
5469 | (free_objfile_separate_debug, do_free_objfile_cleanup) | |
5470 | (free_all_objfiles, objfile_purge_solibs): Use delete. | |
5471 | * objfiles.h (struct objfile): Add constructor and destructor. | |
5472 | Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members. | |
5473 | (allocate_objfile, free_objfile): Don't declare. | |
5474 | (struct objstats): Add initializers. | |
5475 | ||
c2508e90 SM |
5476 | 2017-10-12 Simon Marchi <simon.marchi@ericsson.com> |
5477 | ||
5478 | * arch-utils.h (simple_displaced_step_copy_insn): Remove. | |
5479 | * arch-utils.c (simple_displaced_step_copy_insn): Remove. | |
5480 | * gdbarch.sh (displaced_step_copy_insn): Adjust comment. | |
5481 | * gdbarch.h: Regenerate. | |
5482 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): | |
5483 | Adjust comment. | |
5484 | * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment. | |
5485 | (i386_displaced_step_fixup): Adjust comment. | |
5486 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment. | |
5487 | ||
a900ff72 TT |
5488 | 2017-10-12 Tom Tromey <tom@tromey.com> |
5489 | ||
5490 | * prologue-value.h (pv_area::store_would_trash): Return bool. | |
5491 | (pv_area::find_reg): Likewise. | |
5492 | * prologue-value.c (pv_area::store_would_trash): Return bool. | |
5493 | (pv_area::find_reg): Likewise. | |
5494 | ||
f7b7ed97 TT |
5495 | 2017-10-12 Tom Tromey <tom@tromey.com> |
5496 | ||
5497 | * s390-linux-tdep.c (s390_store, s390_load) | |
5498 | (s390_check_for_saved, s390_analyze_prologue): Update. | |
5499 | * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update. | |
5500 | * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update. | |
5501 | * prologue-value.h (class pv_area): Move from prologue-value.c. | |
5502 | Change names of members. Add constructor, destructor, member | |
5503 | functions. | |
5504 | (make_pv_area, free_pv_area, make_cleanup_free_pv_area) | |
5505 | (pv_area_store, pv_area_fetch, pv_area_store_would_trash) | |
5506 | (pv_area_fetch, pv_area_scan): Don't declare. | |
5507 | * prologue-value.c (struct pv_area::area_entry): Now member of | |
5508 | pv_area. | |
5509 | (struct pv_area): Move to prologue-value.h. | |
5510 | (pv_area::pv_area): Rename from make_pv_area. | |
5511 | (pv_area::~pv_area): Rename from free_pv_area. | |
5512 | (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove. | |
5513 | (clear_entries, find_entry, overlaps, store_would_trash, store) | |
5514 | (fetch, find_reg, scan): Now member of pv_area. | |
5515 | Remove "area" argument. Update. | |
5516 | * msp430-tdep.c (check_for_saved, msp430_analyze_prologue): | |
5517 | Update. | |
5518 | * mn10300-tdep.c (push_reg, check_for_saved) | |
5519 | (mn10300_analyze_prologue): Update. | |
5520 | * mep-tdep.c (is_arg_spill, check_for_saved) | |
5521 | (mep_analyze_prologue): Update. | |
5522 | * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch) | |
5523 | (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill) | |
5524 | (m32c_is_struct_return, m32c_analyze_prologue): Update. | |
5525 | * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue): | |
5526 | Update. | |
5527 | * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update. | |
5528 | * aarch64-tdep.c (aarch64_analyze_prologue): Update. | |
5529 | ||
466eecee SM |
5530 | 2017-10-12 Simon Marchi <simon.marchi@ericsson.com> |
5531 | ||
5532 | * linux-nat.h (linux_nat_set_delete_thread): New declaration. | |
5533 | * linux-nat.c (linux_nat_delete_thread): New variable. | |
5534 | (lwp_free): Invoke linux_nat_delete_thread if set. | |
5535 | (linux_nat_set_delete_thread): New function. | |
5536 | * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign | |
5537 | thread delete callback. | |
5538 | * arm-linux-nat.c (arm_linux_delete_thread): New function. | |
5539 | (_initialize_arm_linux_nat): Assign thread delete callback. | |
5540 | * s390-linux-nat.c (s390_delete_thread): New function. | |
5541 | (_initialize_s390_nat): Assign thread delete callback. | |
5542 | * x86-linux-nat.c (x86_linux_add_target): Likewise. | |
5543 | * nat/aarch64-linux.c (aarch64_linux_delete_thread): New | |
5544 | function. | |
5545 | * nat/aarch64-linux.h (aarch64_linux_delete_thread): New | |
5546 | declaration. | |
5547 | * nat/x86-linux.c (x86_linux_delete_thread): New function. | |
5548 | * nat/x86-linux.h (x86_linux_delete_thread): New declaration. | |
5549 | ||
f71c8822 TT |
5550 | 2017-10-09 Tom Tromey <tom@tromey.com> |
5551 | ||
5552 | * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use | |
5553 | std::string. | |
5554 | * tui/tui-layout.c (enum tui_status): Use std::string. | |
5555 | ||
981a3fb3 TT |
5556 | 2017-10-11 Tom Tromey <tom@tromey.com> |
5557 | ||
5558 | * gdbthread.h (thread_command): Constify. | |
5559 | * inferior.h (detach_command): Constify. | |
5560 | * top.h (set_history, show_history): Constify. | |
5561 | * arm-tdep.c (set_arm_command, show_arm_command): Constify. | |
5562 | * serial.c (serial_set_cmd, serial_show_cmd): Constify. | |
5563 | * bsd-kvm.c (bsd_kvm_cmd): Constify. | |
5564 | * printcmd.c (set_command): Constify. | |
5565 | (non_const_set_command): New function. | |
5566 | * dcache.c (set_dcache_command, show_dcache_command): Constify. | |
5567 | * breakpoint.c (enable_command, disable_command, delete_command) | |
5568 | (catch_command, tcatch_command, set_breakpoint_cmd) | |
5569 | (show_breakpoint_cmd): Constify. | |
5570 | * macrocmd.c (macro_command): Constify. | |
5571 | * infcmd.c (unset_command, kill_command, detach_command) | |
5572 | (info_proc_cmd): Constify. | |
5573 | * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify. | |
5574 | * auto-load.c (show_auto_load_cmd, set_auto_load_cmd) | |
5575 | (info_auto_load_cmd): Constify. | |
5576 | * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd) | |
5577 | (unset_tdesc_cmd): Constify. | |
5578 | * ada-lang.c (set_ada_command, show_ada_command) | |
5579 | (maint_set_ada_cmd, maint_show_ada_cmd): Constify. | |
5580 | * guile/guile.c (set_guile_command, show_guile_command) | |
5581 | (info_guile_command): Constify. | |
5582 | * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd): | |
5583 | Constify. | |
5584 | * skip.c (skip_command): Constify. | |
5585 | * compile/compile.c (_initialize_compile): Constify. | |
5586 | * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify. | |
5587 | * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd) | |
5588 | (maint_btrace_show_cmd, maint_btrace_pt_set_cmd) | |
5589 | (maint_btrace_pt_show_cmd): Constify. | |
5590 | * remote.c (set_remote_cmd, show_remote_cmd, remote_command): | |
5591 | Constify. | |
5592 | * python/python.c (user_show_python, user_set_python): Constify. | |
5593 | * mips-tdep.c (set_mips_command, show_mips_command) | |
5594 | (set_mipsfpu_command): Constify. | |
5595 | * record-btrace.c (cmd_record_btrace_start) | |
5596 | (cmd_set_record_btrace, cmd_show_record_btrace) | |
5597 | (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts) | |
5598 | (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify. | |
5599 | * rs6000-tdep.c (set_powerpc_command, show_powerpc_command): | |
5600 | Constify. | |
5601 | * symfile.c (overlay_command): Constify. | |
5602 | * spu-tdep.c (set_spu_command, show_spu_command): Constify. | |
5603 | * cli/cli-logging.c (set_logging_command, show_logging_command): | |
5604 | Constify. | |
5605 | * cli/cli-dump.c (dump_command, append_command) | |
5606 | (srec_dump_command, ihex_dump_command, verilog_dump_command) | |
5607 | (tekhex_dump_command, binary_dump_command) | |
5608 | (binary_append_command): Constify. | |
5609 | * cli/cli-decode.c (struct cmd_list_element): Change type of | |
5610 | "fun". | |
5611 | * cli/cli-cmds.c (info_command, show_command, set_debug) | |
5612 | (show_debug): Constify. | |
5613 | (show_command): Add non-const overload. | |
5614 | * top.c (set_history, show_history): Constify. | |
5615 | * sh-tdep.c (set_sh_command, show_sh_command): Constify. | |
5616 | * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype. | |
5617 | * target.c (target_command): Constify. | |
5618 | * sparc64-tdep.c (info_adi_command): Constify. | |
5619 | * record-full.c (cmd_record_full_start): Constify. | |
5620 | (set_record_full_command): Constify. Fix typo. | |
5621 | (show_record_full_command): Constify. | |
5622 | * thread.c (thread_command, thread_apply_command): Constify. | |
5623 | * memattr.c (dummy_cmd): Constify. | |
5624 | * value.c (function_command): Constify. | |
5625 | * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify. | |
5626 | * probe.c (info_probes_command): Constify. | |
5627 | * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify. | |
5628 | * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd) | |
5629 | (show_thread_cmd, set_thread_default_cmd) | |
5630 | (show_thread_default_cmd): Constify. | |
5631 | (check_empty): Constify. | |
5632 | * tracepoint.c (tfind_command): Constify. | |
5633 | * cp-support.c (maint_cplus_command): Constify. | |
5634 | * windows-tdep.c (info_w32_command): Constify. | |
5635 | * record.c (cmd_record_start, set_record_command) | |
5636 | (show_record_command, info_record_command, cmd_record_goto): | |
5637 | Constify. | |
5638 | * ravenscar-thread.c (set_ravenscar_command) | |
5639 | (show_ravenscar_command): Constify. | |
5640 | * utils.c (set_internal_problem_cmd, show_internal_problem_cmd): | |
5641 | Constify. | |
5642 | (add_internal_problem_command): Remove casts. | |
5643 | * arc-tdep.c (maintenance_print_arc_command): Constify. | |
5644 | * valprint.c (set_print, show_print, set_print_raw) | |
5645 | (show_print_raw): Constify. | |
5646 | * maint.c (maintenance_command, maintenance_info_command) | |
5647 | (maintenance_print_command, maintenance_set_cmd) | |
5648 | (maintenance_show_cmd, set_per_command_cmd) | |
5649 | (show_per_command_cmd, maintenance_check_command): Constify. | |
5650 | * language.c (set_check, show_check): Constify. | |
5651 | * typeprint.c (show_print_type, set_print_type): Constify. | |
5652 | * go32-nat.c (go32_info_dos_command): Constify. | |
5653 | ||
fdf44873 TT |
5654 | 2017-10-11 Tom Tromey <tom@tromey.com> |
5655 | ||
5656 | * breakpoint.c (prepare_re_set_context): Remove. | |
5657 | (breakpoint_re_set_one): Update. Don't use cleanups. | |
5658 | (breakpoint_re_set): Use scoped_restore, std::string, and | |
5659 | scoped_restore_current_language. | |
5660 | ||
81b1e71c TT |
5661 | 2017-10-11 Tom Tromey <tom@tromey.com> |
5662 | ||
5663 | * breakpoint.c (commands_command_1): Use std::string. | |
5664 | (cleanup_executing_breakpoints): Remove. | |
5665 | (bpstat_do_actions_1): Use scoped_restore. | |
5666 | (bpstat_check_watchpoint): Use std::string. | |
5667 | (decode_static_tracepoint_spec): Likewise. | |
5668 | (break_range_command): Likewise. | |
5669 | (watch_command_1): Likewise. | |
5670 | (compare_breakpoints): Change argument types. | |
5671 | (clear_command): Use std::vector. | |
5672 | (cleanup_executing_breakpoints): Remove. | |
5673 | (update_global_location_list): Use unique_xmalloc_ptr. | |
5674 | (strace_command): Remove unused declaration. | |
5675 | ||
4f9d9906 JB |
5676 | 2017-10-11 John Baldwin <jhb@FreeBSD.org> |
5677 | ||
5678 | * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c. | |
5679 | * NEWS: Mention new FreeBSD/arm native configuration. | |
5680 | * configure.host: Add arm*-*-freebsd*. | |
5681 | * configure.nat: Likewise. | |
5682 | * arm-fbsd-nat.c: New file. | |
5683 | ||
7176dfd2 JB |
5684 | 2017-10-11 John Baldwin <jhb@FreeBSD.org> |
5685 | ||
5686 | * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o. | |
5687 | (ALLDEPFILES): Add arm-fbsd-tdep.c. | |
5688 | * NEWS: Mention new FreeBSD/arm target. | |
5689 | * configure.tgt: Add arm*-*-freebsd*. | |
5690 | * arm-fbsd-tdep.c: New file. | |
5691 | * arm-fbsd-tdep.h: New file. | |
5692 | ||
fe220226 MR |
5693 | 2017-10-11 Maciej W. Rozycki <macro@imgtec.com> |
5694 | ||
5695 | * linux-tdep.c (linux_make_corefile_notes): Remove call to | |
5696 | `gdbarch_elfcore_write_linux_prpsinfo'. | |
5697 | * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture | |
5698 | method. | |
5699 | (elf_internal_linux_prpsinfo): Remove declaration. | |
5700 | * gdbarch.h: Regenerate. | |
5701 | * gdbarch.c: Regenerate. | |
5702 | ||
a2f63b2e MR |
5703 | 2017-10-11 Maciej W. Rozycki <macro@imgtec.com> |
5704 | ||
5705 | * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to | |
5706 | `set_gdbarch_elfcore_write_linux_prpsinfo'. | |
5707 | ||
458ca1d0 PA |
5708 | 2017-10-11 Pedro Alves <palves@redhat.com> |
5709 | ||
5710 | * breakpoint.c (reattach_breakpoints): Delete. | |
5711 | * breakpoint.h (reattach_breakpoints): Delete. | |
5712 | ||
905014d7 SM |
5713 | 2017-10-11 Simon Marchi <simon.marchi@ericsson.com> |
5714 | ||
5715 | * symfile.c (registered_sym_fns): Make struct, not typedef. | |
5716 | (DEF_VEC_O (registered_sym_fns)): Remove. | |
5717 | (symtab_fns): Change type to std::vector. | |
5718 | (add_symtab_fns): Adjust. | |
5719 | (find_sym_fns): Adjust. | |
5720 | ||
56d704da AK |
5721 | 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com> |
5722 | ||
5723 | * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler. | |
5724 | * arc-tdep.h (arc_arch_is_em): New function. | |
5725 | (arc_arch_is_hs): Likewise. | |
5726 | ||
7fa29be9 EB |
5727 | 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com> |
5728 | ||
5729 | * macrotab.h (macro_lookup_inclusion): Remove unnecessary | |
5730 | parentheses in the declaration. | |
5731 | (macro_lookup_inclusion): Likewise. | |
5732 | (macro_lookup_definition): Likewise. | |
5733 | * p-lang.h (pascal_builtin_types): Likewise. | |
5734 | * tui/tui-data.c (tui_win_list): Likewise. | |
5735 | * tui/tui-data.h (tui_win_list): Likewise. | |
5736 | * utils.h (make_cleanup_free_section_addr_info): Likewise. | |
5737 | ||
d9b477e3 KB |
5738 | 2017-10-11 Mark Rages <markrages@gmail.com> |
5739 | ||
5740 | * target-memory.c (block_boundaries): Fix for block address not | |
5741 | aligned on block size. | |
5742 | ||
65630365 PA |
5743 | 2017-10-10 Pedro Alves <palves@redhat.com> |
5744 | Tom Tromey <tom@tromey.com> | |
5745 | ||
5746 | * breakpoint.c (struct captured_breakpoint_query_args) | |
5747 | (do_captured_breakpoint_query, gdb_breakpoint_query): Delete. | |
5748 | (print_breakpoint): New. | |
5749 | * breakpoint.h (print_breakpoint): Declare. | |
5750 | * common/common-exceptions.h (enum return_reason): Remove | |
5751 | references to catch_exceptions. | |
5752 | * exceptions.c (catch_exceptions, catch_exceptions_with_msg): | |
5753 | Delete. | |
5754 | * exceptions.h (catch_exceptions_ftype, catch_exceptions) | |
5755 | (catch_exception_ftype, catch_exceptions_with_msg): Delete. | |
5756 | * gdb.h: Delete. | |
5757 | * gdbthread.h (thread_select): Declare. | |
5758 | * mi/mi-cmd-break.c: Don't include gdb.h. | |
5759 | (breakpoint_notify): Use print_breakpoint. | |
5760 | * mi/mi-cmd-catch.c: Don't include gdb.h. | |
5761 | * mi/mi-interp.c: Don't include gdb.h. | |
5762 | (mi_print_breakpoint_for_event): New. | |
5763 | (mi_breakpoint_created, mi_breakpoint_modified): Use | |
5764 | mi_print_breakpoint_for_event. | |
5765 | * mi/mi-main.c: Don't include gdb.h. | |
5766 | (mi_cmd_thread_select): Parse the global thread ID here. Use | |
5767 | thread_select instead of gdb_thread_select. | |
5768 | (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead | |
5769 | of using gdb_list_thread_ids. | |
5770 | * remote-fileio.c (do_remote_fileio_request): Change type. Reply | |
5771 | FILEIO_ENOSYS here. | |
5772 | (remote_fileio_request): Use TRY/CATCH instead of | |
5773 | catch_exceptions. | |
5774 | * symfile-mem.c (struct symbol_file_add_from_memory_args) | |
5775 | (symbol_file_add_from_memory_wrapper): Delete. | |
5776 | (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions. | |
5777 | * thread.c: Don't include gdb.h. | |
5778 | (do_captured_list_thread_ids, gdb_list_thread_ids): Delete. | |
5779 | (thread_alive): Use thread_select. | |
5780 | (do_captured_thread_select): Delete, parts salvaged as ... | |
5781 | (thread_select): ... this new function. | |
5782 | (gdb_thread_select): Delete. | |
5783 | ||
bf469271 PA |
5784 | 2017-10-10 Pedro Alves <palves@redhat.com> |
5785 | Tom Tromey <tom@tromey.com> | |
5786 | ||
5787 | * breakpoint.c (breakpoint_cond_eval): Change return type to bool | |
5788 | and reverse logic. | |
5789 | (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE): | |
5790 | No longer macros. Instead ... | |
5791 | (enum wp_check_result): They're now values of this new | |
5792 | enumeration. | |
5793 | (watchpoint_check): Change return type to wp_check_result and | |
5794 | parameter type to bpstat. | |
5795 | (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors. | |
5796 | (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of | |
5797 | catch_errors. Reverse logic of watchpoint_check call. | |
5798 | (breakpoint_re_set_one): Now returns void and takes a breakpoint | |
5799 | pointer as parameter. | |
5800 | (breakpoint_re_set): Use TRY/CATCH instead of catch_errors. | |
5801 | * common/common-exceptions.c (throw_exception_sjlj): Update | |
5802 | comments to avoid mentioning catch_errors. | |
5803 | * exceptions.c (catch_errors): Delete. | |
5804 | * exceptions.h: Update comments to avoid mentioning catch_errors. | |
5805 | (catch_errors_ftype, catch_errors): Delete. | |
5806 | * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors. | |
5807 | (hook_stop_stub): Delete. | |
5808 | (restore_selected_frame): Change return type to void, and | |
5809 | parameter type to const frame_id &. | |
5810 | (restore_infcall_control_state): Use TRY/CATCH instead of | |
5811 | catch_errors. | |
5812 | * main.c (captured_command_loop): Return void and remove | |
5813 | parameter. Remove references to catch_errors. | |
5814 | (captured_main): Use TRY/CATCH instead of catch_errors. | |
5815 | * objc-lang.c (objc_submethod_helper_data) | |
5816 | (find_objc_msgcall_submethod_helper): Delete. | |
5817 | (find_objc_msgcall_submethod): Use TRY/CATCH instead of | |
5818 | catch_errors. | |
5819 | * record-full.c (record_full_message): Return void. | |
5820 | (record_full_message_args, record_full_message_wrapper): Delete. | |
5821 | (record_full_message_wrapper_safe): Return bool and use TRY/CATCH | |
5822 | instead of catch_errors. | |
5823 | * solib-aix.c (solib_aix_open_symbol_file_object): Change | |
5824 | parameter type to int. | |
5825 | * solib-darwin.c (open_symbol_file_object): Ditto. | |
5826 | * solib-dsbt.c (open_symbol_file_object): Ditto. | |
5827 | * solib-frv.c (open_symbol_file_object): Ditto. | |
5828 | * solib-svr4.c (open_symbol_file_object): Ditto. | |
5829 | * solib-target.c (solib_target_open_symbol_file_object): Ditto. | |
5830 | * solib.c (update_solib_list): Use TRY/CATCH instead of | |
5831 | catch_errors. | |
5832 | * solist.h (struct target_so_ops) <open_symbol_file_object>: | |
5833 | Change type. | |
5834 | * symmisc.c (struct print_symbol_args): Remove. | |
5835 | (dump_symtab_1): Use TRY/CATCH instead of catch_errors. | |
5836 | (print_symbol): Change type. | |
5837 | * windows-nat.c (handle_load_dll, handle_unload_dll): Return void | |
5838 | and remove parameters. | |
5839 | (catch_errors): New. | |
5840 | (get_windows_debug_event): Adjust. | |
5841 | ||
1a56bfa5 TT |
5842 | 2017-10-09 Tom Tromey <tom@tromey.com> |
5843 | ||
5844 | * mi/mi-main.c (free_splay_tree): Remove. | |
5845 | (list_available_thread_groups): Use splay_tree_up. | |
5846 | * common/gdb_splay_tree.h: New file. | |
5847 | ||
0c478e2d TT |
5848 | 2017-10-09 Tom Tromey <tom@tromey.com> |
5849 | ||
5850 | * mi/mi-main.c (do_nothing): Remove. | |
5851 | (list_available_thread_groups): Update. | |
5852 | ||
cbd2b4e3 PA |
5853 | 2017-10-09 Pedro Alves <palves@redhat.com> |
5854 | ||
5855 | * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip | |
5856 | reading registers when switching context. | |
5857 | ||
a181c0bf JB |
5858 | 2017-10-09 John Baldwin <jhb@FreeBSD.org> |
5859 | ||
5860 | * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit. | |
5861 | (fbsd_convert_siginfo): Likewise. | |
5862 | * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise. | |
5863 | ||
6e66f753 SM |
5864 | 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca> |
5865 | ||
5866 | * configure.ac (try_guile_versions): Remove guile-2.2. | |
5867 | * configure: Regenerate. | |
5868 | ||
890e9790 TT |
5869 | 2017-10-09 Tom Tromey <tom@tromey.com> |
5870 | ||
5871 | * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename). | |
5872 | (COMPILE.pre): Use $(CXX). | |
5873 | ||
109483d9 PA |
5874 | 2017-10-09 Pedro Alves <palves@redhat.com> |
5875 | ||
5876 | * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr. | |
5877 | Use bool. | |
5878 | (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr. | |
5879 | * cp-support.h (cp_remove_params): Now returns a | |
5880 | gdb::unique_xmalloc_ptr. | |
5881 | * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool. | |
5882 | Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr. | |
5883 | * psymtab.c (psymtab_search_name): Adjust to cp_remove_params | |
5884 | returning a gdb::unique_xmalloc_ptr. | |
5885 | (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr. | |
5886 | * stack.c (find_frame_funname): Adjust to cp_remove_params | |
5887 | returning a gdb::unique_xmalloc_ptr. | |
5888 | ||
791afaa2 TT |
5889 | 2017-10-08 Tom Tromey <tom@tromey.com> |
5890 | ||
5891 | * dwarf2read.c (dwarf2_get_dwz_file): Use | |
5892 | gdb::unique_xmalloc_ptr. | |
5893 | (find_slot_in_mapped_hash): Likewise. | |
5894 | (dwarf2_physname): Likewise. | |
5895 | (create_dwo_unit_in_dwp_v1): Use std::string. | |
5896 | (create_dwo_unit_in_dwp_v2): Likewise. | |
5897 | (lookup_dwo_cutu): Likewise. | |
5898 | (inherit_abstract_dies): Use std::vector. | |
5899 | (read_array_type): Likewise. | |
5900 | (dwarf_decode_macros): Remove unused declaration. | |
5901 | (unsigned_int_compar): Remove. | |
5902 | (dwarf2_build_psymtabs_hard): Use scoped_restore. | |
5903 | (psymtabs_addrmap_cleanup): Remove. | |
5904 | ||
30a9c02f TT |
5905 | 2017-10-08 Tom Tromey <tom@tromey.com> |
5906 | ||
5907 | * frame-unwind.c (frame_unwind_try_unwinder): Update. | |
5908 | * frame.h (frame_cleanup_after_sniffer): Declare. | |
5909 | (frame_prepare_for_sniffer): Return void. | |
5910 | * frame.c (frame_cleanup_after_sniffer): No longer static. Change | |
5911 | type of argument. | |
5912 | (frame_prepare_for_sniffer): Return void. | |
5913 | ||
757325a3 TT |
5914 | 2017-10-08 Tom Tromey <tom@tromey.com> |
5915 | ||
5916 | * utils.h (make_cleanup_value_free): Remove. | |
5917 | * utils.c (do_value_free, struct cleanup): Remove. | |
5918 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>: | |
5919 | Use gdb_value_up. | |
5920 | * value.h (struct value_deleter): New. | |
5921 | (gdb_value_up): New typedef. | |
5922 | ||
b9c04fb2 TT |
5923 | 2017-10-08 Tom Tromey <tom@tromey.com> |
5924 | ||
5925 | * symtab.c (free_search_symbols, do_free_search_symbols_cleanup) | |
5926 | (make_cleanup_free_search_symbols): Remove. | |
5927 | (search_symbols): Return std::vector. | |
5928 | (symbol_search::compare_search_syms): Now member of | |
5929 | symbol_search. Change arguments. | |
5930 | (sort_search_symbols_remove_dups): Change arguments. Rewrite. | |
5931 | (symtab_symbol_info, rbreak_command): Update. | |
5932 | * symtab.h (struct symbol_search) <next>: Remove. | |
5933 | Add constructors. | |
5934 | (symbol_search::operator<): New function. | |
5935 | (symbol_search::operator==): New function. | |
5936 | (search_symbols): Remove std::vector. | |
5937 | (free_search_symbols, make_cleanup_free_search_symbols): Remove. | |
5938 | (symbol_search::compare_search_syms): Declare. | |
5939 | ||
0d28b0a5 YQ |
5940 | 2017-10-06 Yao Qi <yao.qi@linaro.org> |
5941 | ||
5942 | * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with | |
5943 | arch/aarch64-insn.o. | |
5944 | Remove one rule. | |
5945 | * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o. | |
5946 | ||
71917808 YQ |
5947 | 2017-10-06 Yao Qi <yao.qi@linaro.org> |
5948 | ||
5949 | * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o, | |
5950 | and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and | |
5951 | arch/arm-linux.o respectively. | |
5952 | * configure.tgt: Likewise. | |
5953 | ||
2081b2b2 YQ |
5954 | 2017-10-06 Yao Qi <yao.qi@linaro.org> |
5955 | ||
5956 | * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o. | |
5957 | * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o. | |
5958 | ||
a1b85d28 PA |
5959 | 2017-10-06 Pedro Alves <palves@redhat.com> |
5960 | ||
5961 | * windows-nat.c: Include <algorithm>. | |
5962 | ||
d97987e2 YQ |
5963 | 2017-10-06 Yao Qi <yao.qi@linaro.org> |
5964 | ||
5965 | * configure.tgt (i386_tobjs): New variable. | |
5966 | (amd64_tobjs): New variable. | |
5967 | Set $cpu_obs and $os_obs. | |
5968 | ||
f38307f5 YQ |
5969 | 2017-10-06 Yao Qi <yao.qi@linaro.org> |
5970 | ||
5971 | * Makefile.in (CONFIG_SRC_SUBDIR): New. | |
5972 | (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o. | |
5973 | (clean): Remove object files and dependency files. | |
5974 | (distclean): Remove the directory. | |
5975 | * configure.ac: Invoke AC_CONFIG_COMMANDS. | |
5976 | * configure: Re-generated. | |
5977 | * configure.tgt: Replace amd64.o with arch/amd64.o. | |
5978 | ||
2f924de6 JM |
5979 | 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com> |
5980 | ||
5981 | PR build/22188 | |
5982 | * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS | |
5983 | and SETEND. | |
5984 | ||
2fd9d7ca PA |
5985 | 2017-10-05 Pedro Alves <palves@redhat.com> |
5986 | ||
5987 | * linux-nat.c (linux_child_follow_fork): When following the parent | |
5988 | and detaching the child, consult the parent thread's architecture | |
5989 | instead of the child's. | |
5990 | ||
d13b8493 UW |
5991 | 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com> |
5992 | ||
5993 | * ax.h: Do not include "doublest.h". | |
5994 | (union agent_val): Remove. | |
5995 | ||
3b4b2f16 UW |
5996 | 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com> |
5997 | ||
5998 | * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c. | |
5999 | (decimal_to_string): Return std::string object. | |
6000 | (decimal_from_string): Accept std::string object. Return bool. | |
6001 | (decimal_from_integral, decimal_from_doublest): Remove. | |
6002 | (decimal_from_longest): Add prototype. | |
6003 | (decimal_from_ulongest): Likewise. | |
6004 | (decimal_to_longest): Likewise. | |
6005 | (decimal_from_doublest): Likewise. | |
6006 | * dfp.c: Do not include "gdbtypes.h" or "value.h". | |
6007 | (MAX_DECIMAL_STRING): Move here. | |
6008 | (decimal_to_string): Return std::string object. | |
6009 | (decimal_from_string): Accept std::string object. Return bool. | |
6010 | (decimal_from_integral): Remove, replace by ... | |
6011 | (decimal_from_longest, decimal_from_ulongest): ... these new functions. | |
6012 | (decimal_to_longest): New function. | |
6013 | (decimal_from_floating): Remove, replace by ... | |
6014 | (decimal_from_doublest): ... this new function. | |
6015 | (decimal_to_doublest): Update to new decimal_to_string interface. | |
6016 | ||
6017 | * value.c (unpack_long): Use decimal_to_longest. | |
6018 | * valops.c (value_cast): Use decimal_from_doublest instead of | |
6019 | decimal_from_floating. Use decimal_from_[u]longest isntead of | |
6020 | decimal_from_integral. | |
6021 | * valarith.c (value_args_as_decimal): Likewise. | |
6022 | * valprint.c (print_decimal_floating): Update to new | |
6023 | decimal_to_string interface. | |
6024 | * printcmd.c (printf_decfloat): Likewise. | |
6025 | * c-exp.y (parse_number): Update to new decimal_from_string interface. | |
6026 | ||
1841ee5d UW |
6027 | 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com> |
6028 | ||
6029 | * doublest.h: Do not include "floatformat.h". Remove stale comments. | |
6030 | * gdbtypes.c: Include "floatformat.h". | |
6031 | * value.c: Likewise. | |
6032 | * m68k-tdep.c: Likewise. | |
6033 | ||
6034 | * findvar.c: Do not include "floatformat.h". | |
6035 | * amd64-darwin-tdep.c: Likewise. | |
6036 | * arm-linux-tdep.c: Likewise. | |
6037 | * i386-darwin-tdep.c: Likewise. | |
6038 | * i387-tdep.c: Likewise. | |
6039 | * m68k-linux-tdep.c: Likewise. | |
6040 | * mep-tdep.c: Likewise. | |
6041 | * mips-tdep.c: Likewise. | |
6042 | * nios2-tdep.c: Likewise. | |
6043 | * s390-linux-tdep.c: Likewise. | |
6044 | * sparc-obsd-tdep.c: Likewise. | |
6045 | * sparc-tdep.c: Likewise. | |
6046 | * sparc64-tdep.c: Likewise. | |
6047 | * spu-tdep.c: Likewise. | |
6048 | * tic6x-tdep.c: Likewise. | |
6049 | * tilegx-tdep.c: Likewise. | |
6050 | * vax-tdep.c: Likewise. | |
6051 | * xstormy16-tdep.c: Likewise. | |
6052 | * xtensa-tdep.c: Likewise. | |
6053 | ||
6054 | * top.c: Do not include "doublest.h". | |
6055 | * aarch64-tdep.c: Likewise. | |
6056 | * alpha-tdep.c: Likewise. | |
6057 | * arm-linux-tdep.c: Likewise. | |
6058 | * m68k-linux-tdep.c: Likewise. | |
6059 | * tilegx-tdep.c: Likewise. | |
6060 | * xstormy16-tdep.c: Likewise. | |
6061 | ||
a80a6471 JB |
6062 | 2017-10-05 John Baldwin <jhb@FreeBSD.org> |
6063 | ||
6064 | * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define. | |
6065 | (mipsn32_fbsd_sigframe): Define. | |
6066 | (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder | |
6067 | for FreeBSD/mipsn32. | |
6068 | ||
12c4bd7f JB |
6069 | 2017-10-05 John Baldwin <jhb@FreeBSD.org> |
6070 | ||
6071 | * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and | |
6072 | AT_HWCAP. | |
6073 | ||
c91933e9 TG |
6074 | 2017-10-05 Tristan Gingold <tgingold@free.fr> |
6075 | ||
6076 | * MAINTAINERS (Misc): Update my email address. | |
6077 | ||
5cd63fda PA |
6078 | 2017-10-04 Pedro Alves <palves@redhat.com> |
6079 | ||
6080 | * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use | |
6081 | it instead of target_gdbarch. | |
6082 | (get_remote_state, get_remote_packet_size): Adjust | |
6083 | get_remote_arch_state calls, passing down target_gdbarch | |
6084 | explicitly. | |
6085 | (packet_reg_from_regnum, packet_reg_from_pnum): New parameter | |
6086 | 'gdbarch' and use it instead of target_gdbarch. | |
6087 | (get_memory_packet_size): Adjust get_remote_arch_state calls, | |
6088 | passing down target_gdbarch explicitly. | |
6089 | (struct stop_reply) <arch>: New field. | |
6090 | (remote_parse_stop_reply): Use the stopped thread's architecture, | |
6091 | not the current inferior's. Save the architecture in the | |
6092 | stop_reply. | |
6093 | (process_stop_reply): Use the stop reply's architecture. | |
6094 | (process_g_packet, remote_fetch_registers) | |
6095 | (remote_prepare_to_store, store_registers_using_G) | |
6096 | (remote_store_registers): Adjust get_remote_arch_state calls, | |
6097 | using the regcache's architecture. | |
6098 | (remote_get_trace_status): Adjust get_remote_arch_state calls, | |
6099 | passing down target_gdbarch explicitly. | |
6100 | * spu-multiarch.c (spu_thread_architecture): Defer to the target | |
6101 | beneath instead of calling target_gdbarch. | |
6102 | * target.c (default_thread_architecture): Use the specified | |
6103 | inferior's architecture, instead of the current inferior's | |
6104 | architecture (via target_gdbarch). | |
6105 | ||
ed4227b7 PA |
6106 | 2017-10-04 Pedro Alves <palves@redhat.com> |
6107 | ||
6108 | * regcache.c (get_thread_arch_regcache): Remove null_ptid special | |
6109 | case. | |
6110 | (regcache_print): Handle !target_has_registers here instead. | |
6111 | ||
55b11ddf PA |
6112 | 2017-10-04 Pedro Alves <palves@redhat.com> |
6113 | ||
6114 | * frame.c (create_test_frame): Delete. | |
6115 | * frame.h (create_test_frame): Delete. | |
6116 | * gdbarch-selftests.c: Include gdbthread.h and target.h. | |
6117 | (class regcache_test): Delete. | |
6118 | (test_target_has_registers, test_target_has_stack) | |
6119 | (test_target_has_memory, test_target_prepare_to_store) | |
6120 | (test_target_store_registers): New functions. | |
6121 | (test_target_ops): New class. | |
6122 | (register_to_value_test): Error out if there's already a | |
6123 | process_stratum (or higher) target pushed. Create a fuller mock | |
6124 | environment, with mock target_ops, inferior, address space, thread | |
6125 | and inferior_ptid. | |
6126 | * progspace.c (struct address_space): Move to ... | |
6127 | * progspace.h (struct address_space): ... here. | |
6128 | * regcache.h (regcache::~regcache, regcache::raw_write) | |
6129 | [GDB_SELF_TEST]: No longer virtual. | |
6130 | ||
4c71c105 SM |
6131 | 2017-10-04 Simon Marchi <simon.marchi@ericsson.com> |
6132 | ||
6133 | * mi/mi-main.c (list_available_thread_groups): Reverse filter logic. | |
6134 | ||
73dcd72d PA |
6135 | 2017-10-04 Pedro Alves <palves@redhat.com> |
6136 | ||
6137 | * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code | |
6138 | out of 'between TRY and CATCH'. | |
6139 | ||
44704526 PA |
6140 | 2017-10-04 Pedro Alves <palves@redhat.com> |
6141 | ||
6142 | * cli/cli-cmds.c (complete_command): Add missing END_CATCH. | |
6143 | * common/common-exceptions.h (TRY): Open an outermost scope. | |
6144 | Expand intro comment. | |
6145 | (CATCH): Reindent. | |
6146 | (END_CATCH): Close the outermost scope. | |
6147 | * completer.c (complete_line_internal): Add missing END_CATCH. | |
6148 | ||
bc3b087d SDJ |
6149 | 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com> |
6150 | ||
6151 | * NEWS (Changes since GDB 8.0): Add entry about new | |
6152 | 'set-cwd-on-gdbserver' feature. | |
6153 | (New remote packets): Add entry for QSetWorkingDir. | |
6154 | * common/common-inferior.h (set_inferior_cwd): New prototype. | |
6155 | * infcmd.c (set_inferior_cwd): Remove "static". | |
6156 | (show_cwd_command): Expand text to include remote debugging. | |
6157 | * remote.c: Add PACKET_QSetWorkingDir. | |
6158 | (remote_protocol_features) <QSetWorkingDir>: New entry for | |
6159 | PACKET_QSetWorkingDir. | |
6160 | (extended_remote_set_inferior_cwd): New function. | |
6161 | (extended_remote_create_inferior): Call | |
6162 | "extended_remote_set_inferior_cwd". | |
6163 | (_initialize_remote): Call "add_packet_config_cmd" for | |
6164 | QSetWorkingDir. | |
6165 | ||
d092c5a2 SDJ |
6166 | 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com> |
6167 | ||
6168 | * NEWS (New commands): Mention "set/show cwd". | |
6169 | * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on | |
6170 | "cd" command's help text. | |
6171 | * common/common-inferior.h (get_inferior_cwd): New prototype. | |
6172 | * infcmd.c (inferior_cwd_scratch): New global variable. | |
6173 | (set_inferior_cwd): New function. | |
6174 | (get_inferior_cwd): Likewise. | |
6175 | (set_cwd_command): Likewise. | |
6176 | (show_cwd_command): Likewise. | |
6177 | (_initialize_infcmd): Add "set/show cwd" commands. | |
6178 | * inferior.h (class inferior) <cwd>: New field. | |
6179 | * nat/fork-inferior.c: Include "gdb_tilde_expand.h". | |
6180 | (fork_inferior): Change inferior's cwd before its execution. | |
6181 | * windows-nat.c (windows_create_inferior): Pass inferior's cwd | |
6182 | to CreateProcess. | |
6183 | ||
7da0a886 SDJ |
6184 | 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com> |
6185 | ||
6186 | * Makefile.in (SFILES): Add gdb_tilde_expand.c. | |
6187 | (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h. | |
6188 | (COMMON_OBS): Add gdb_tilde_expand.o. | |
6189 | * common/gdb_tilde_expand.c: New file. | |
6190 | * common/gdb_tilde_expand.h: Likewise. | |
6191 | ||
db8dd160 MR |
6192 | 2017-10-03 Maciej W. Rozycki <macro@imgtec.com> |
6193 | ||
6194 | * gdbarch.sh (objfile): Remove duplicate declaration. | |
6195 | * gdbarch.h: Regenerate. | |
6196 | ||
f8bfbf22 TT |
6197 | 2017-10-03 Tom Tromey <tom@tromey.com> |
6198 | ||
6199 | * utils.c (internal_vproblem): Use string_vprintf. | |
6200 | ||
5178ed48 TT |
6201 | 2017-10-03 Tom Tromey <tom@tromey.com> |
6202 | ||
6203 | * printcmd.c (info_symbol_command): Use std::string. | |
6204 | ||
8cff8730 TT |
6205 | 2017-10-03 Tom Tromey <tom@tromey.com> |
6206 | ||
6207 | * top.c (gdb_safe_append_history): Use std::string. | |
6208 | ||
895b8f30 TT |
6209 | 2017-10-03 Tom Tromey <tom@tromey.com> |
6210 | ||
6211 | * event-top.c (stdin_event_handler): Update. | |
6212 | * main.c (captured_main_1): Update. | |
6213 | * top.h (make_delete_ui_cleanup): Remove. | |
6214 | (struct ui): Add constructor and destructor. | |
6215 | (new_ui, delete_ui): Remove. | |
6216 | * top.c (make_delete_ui_cleanup): Remove. | |
6217 | (new_ui_command): Use std::unique_ptr. | |
6218 | (delete_ui_cleanup): Remove. | |
6219 | (ui::ui): Rename from new_ui. Update. | |
6220 | (free_ui): Remove. | |
6221 | (ui::~ui): Rename from delete_ui. Update. | |
6222 | ||
0efef640 TT |
6223 | 2017-10-03 Tom Tromey <tom@tromey.com> |
6224 | ||
6225 | * symfile.c (load_progress): Use gdb::byte_vector. | |
6226 | ||
245ad7d3 TT |
6227 | 2017-10-03 Tom Tromey <tom@tromey.com> |
6228 | ||
6229 | * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused | |
6230 | declaration. | |
6231 | * printcmd.c (x_command): Remove unused declaration. | |
6232 | * symfile.c (symbol_file_command): Remove unused declaration. | |
6233 | ||
e05550d7 TT |
6234 | 2017-10-03 Tom Tromey <tom@tromey.com> |
6235 | ||
6236 | * utils.c (internal_vproblem): Use std::string. | |
6237 | (defaulted_query): Likewise. | |
6238 | ||
b95de2b7 TT |
6239 | 2017-10-03 Tom Tromey <tom@tromey.com> |
6240 | ||
6241 | * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update. | |
6242 | * top.c (execute_command_to_string): Update. | |
6243 | * utils.c (make_cleanup_restore_page_info): Remove. | |
6244 | (do_restore_page_info_cleanup): Remove. | |
6245 | (set_batch_flag_and_restore_page_info): | |
6246 | New. | |
6247 | (make_cleanup_restore_page_info): Remove. | |
6248 | (set_batch_flag_and_make_cleanup_restore_page_info): Remove. | |
6249 | (~set_batch_flag_and_restore_page_info): New | |
6250 | (make_cleanup_restore_uinteger): Remove. | |
6251 | (make_cleanup_restore_integer): Remove. | |
6252 | (struct restore_integer_closure): Remove. | |
6253 | (restore_integer): Remove. | |
6254 | * utils.h (struct set_batch_flag_and_restore_page_info): New | |
6255 | class. | |
6256 | (set_batch_flag_and_make_cleanup_restore_page_info): Remove. | |
6257 | (make_cleanup_restore_page_info): Remove. | |
6258 | (make_cleanup_restore_uinteger) Remove. | |
6259 | (make_cleanup_restore_integer) Remove. | |
6260 | ||
07036511 TT |
6261 | 2017-10-03 Tom Tromey <tom@tromey.com> |
6262 | ||
6263 | * record-full.h (record_full_gdb_operation_disable_set): Return | |
6264 | scoped_restore_tmpl<int>. | |
6265 | * infrun.c (adjust_pc_after_break): Update. | |
6266 | (handle_signal_stop): Update. | |
6267 | * record-full.c (record_full_gdb_operation_disable_set): Return | |
6268 | scoped_restore_tmpl<int>. | |
6269 | (record_full_wait_1, record_full_insert_breakpoint) | |
6270 | (record_full_remove_breakpoint, record_full_save) | |
6271 | (record_full_goto_insn): Update. | |
6272 | ||
45320ffa TT |
6273 | 2017-10-02 Tom Tromey <tom@tromey.com> |
6274 | ||
6275 | PR rust/22236: | |
6276 | * rust-lang.c (rust_val_print_str): New function. | |
6277 | (val_print_struct): Call it. | |
6278 | (rust_subscript): Preserve name of slice type. | |
6279 | ||
b3e3859b TT |
6280 | 2017-10-02 Tom Tromey <tom@tromey.com> |
6281 | ||
6282 | * rust-lang.c (rust_subscript): Handle slices in | |
6283 | EVAL_AVOID_SIDE_EFFECTS case. | |
6284 | ||
01af5e0d TT |
6285 | 2017-10-02 Tom Tromey <tom@tromey.com> |
6286 | ||
6287 | * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type. | |
6288 | ||
888e3ddb TT |
6289 | 2017-10-02 Tom Tromey <tom@tromey.com> |
6290 | ||
6291 | * rust-lang.h (rust_slice_type): Add "extern". | |
6292 | ||
cc536b21 PA |
6293 | 2017-10-02 Tom Tromey <tom@tromey.com> |
6294 | Pedro Alves <palves@redhat.com> | |
6295 | ||
6296 | * ada-lang.h (ada_exc_info::operator<): Make const. | |
6297 | (ada_exc_info::operator==): Make const. | |
6298 | * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==): | |
6299 | Make const. | |
6300 | ||
386c8614 TT |
6301 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6302 | ||
6303 | * target.c (read_whatever_is_readable): Change type of "result". | |
6304 | Update. | |
6305 | (free_memory_read_result_vector): Remove. | |
6306 | (read_memory_robust): Change return type. Update. | |
6307 | * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use | |
6308 | bin2hex, std::string. | |
6309 | * target.h (memory_read_result_s): Remove typedef. | |
6310 | (free_memory_read_result_vector): Remove. | |
6311 | (read_memory_robust): Return std::vector. | |
6312 | ||
789c4b5e TT |
6313 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6314 | ||
6315 | * mi/mi-main.c (captured_mi_execute_command): Use scope_restore. | |
6316 | ||
ab816a27 TT |
6317 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6318 | ||
6319 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update. | |
6320 | * ada-lang.h (struct ada_exc_info): Remove typedef. Declare | |
6321 | operator< and operator==. | |
6322 | (ada_exceptions_list): Return a std::vector. | |
6323 | * ada-lang.c (ada_exc_info::operator<): Rename from | |
6324 | compare_ada_exception_info. | |
6325 | (ada_exc_info::operator==): New. | |
6326 | (sort_remove_dups_ada_exceptions_list): Change type of | |
6327 | "exceptions". | |
6328 | (ada_add_standard_exceptions, ada_add_exceptions_from_frame) | |
6329 | (ada_add_global_exceptions): Likewise. | |
6330 | (ada_exceptions_list_1): Return a std::vector. | |
6331 | (ada_exceptions_list): Likewise. | |
6332 | ||
52f9abe4 TT |
6333 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6334 | ||
6335 | * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a | |
6336 | 'std::set *'. | |
6337 | (print_one_inferior): Update. | |
6338 | (free_vector_of_ints): Remove. | |
6339 | (list_available_thread_groups): Change "ids" to std::set. | |
6340 | (mi_cmd_list_thread_groups): Update. | |
6341 | (struct collect_cores_data) <core>: Now a std::set. | |
6342 | (collect_cores): Update. | |
6343 | (unique): Remove. | |
6344 | (print_one_inferior): Update. | |
6345 | ||
dcd5ddcc TT |
6346 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6347 | ||
6348 | * mi/mi-main.c (mi_execute_cli_command): Use std::string. | |
6349 | (mi_execute_async_cli_command): Likewise. | |
6350 | (mi_cmd_trace_frame_collected): Use field_fmt. | |
6351 | ||
45d288cc TT |
6352 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6353 | ||
6354 | * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use | |
6355 | gdb::byte_vector. | |
6356 | ||
6afe2f4a TT |
6357 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6358 | ||
6359 | * mi/mi-parse.c (mi_parse): Remove unused declaration. | |
6360 | ||
9813429a TT |
6361 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6362 | ||
6363 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg". | |
6364 | ||
2d6960b4 TT |
6365 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6366 | ||
6367 | * varobj.h (varobj_gen_name): Return std::string. | |
6368 | * varobj.c (varobj_gen_name): Return std::string. | |
6369 | * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string. | |
6370 | (mi_cmd_var_delete): Don't copy "name". | |
6371 | ||
784c453a TT |
6372 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6373 | ||
6374 | * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string. | |
6375 | (mi_cmd_break_insert_1): Update. | |
6376 | ||
a9bc57b9 TT |
6377 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6378 | ||
6379 | * target.h (make_scoped_defer_target_commit_resume): Update. | |
6380 | * target.c (make_scoped_defer_target_commit_resume): Rename from | |
6381 | make_cleanup_defer_target_commit_resume. Return a | |
6382 | scoped_restore. | |
6383 | * infrun.c (proceed): Use make_scoped_defer_target_commit_resume. | |
6384 | ||
9754d8c4 TT |
6385 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6386 | ||
6387 | * main.c (captured_main_1): Remove unused declaration. | |
6388 | * spu-multiarch.c (parse_spufs_run): Remove unused declaration. | |
6389 | ||
99ef965c TT |
6390 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6391 | ||
6392 | * symtab.c (search_symbols): Remove unused outer cleanup. | |
6393 | (make_source_files_completion_list): Remove unused declaration. | |
6394 | ||
42518ba7 TT |
6395 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6396 | ||
6397 | * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector. | |
6398 | ||
726b2169 TT |
6399 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6400 | ||
6401 | * xstormy16-tdep.c (xstormy16_push_dummy_call): Use | |
6402 | gdb::byte_vector. | |
6403 | ||
55b06432 TT |
6404 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6405 | ||
6406 | * complaints.c (vcomplaint): Use std::string. | |
6407 | ||
8abcee91 TT |
6408 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6409 | ||
6410 | * tracepoint.c (trace_variable_command): Use std::string. | |
6411 | (encode_actions_1): Remove unused declarations. | |
6412 | (create_tsv_from_upload): Use std::string. | |
6413 | ||
6ad94bc7 TT |
6414 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6415 | ||
6416 | * cp-support.c (gdb_demangle): Use std::string. | |
6417 | ||
2003f3d8 TT |
6418 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6419 | ||
6420 | * stack.c (parse_frame_specification): Use std::string | |
6421 | (info_frame_command): Use gdb::unique_xmalloc_ptr. | |
6422 | ||
8f8accb5 TT |
6423 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6424 | ||
6425 | * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector. | |
6426 | ||
200aa7b1 TT |
6427 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6428 | ||
6429 | * utils.c (vfprintf_maybe_filtered): Use std::string. | |
6430 | (vfprintf_unfiltered): Likewise. | |
6431 | ||
606aae8a TT |
6432 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6433 | ||
6434 | * event-top.c (top_level_prompt): Return std::string. | |
6435 | (display_gdb_prompt): Update. | |
6436 | ||
bd413795 TT |
6437 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6438 | ||
6439 | * unittests/common-utils-selftests.c (format): New function. | |
6440 | (string_vprintf_tests): New function. | |
6441 | (_initialize_common_utils_selftests): Register new tests. | |
6442 | * common/common-utils.c (string_vprintf): New function. | |
6443 | * common/common-utils.h (string_vprintf): Declare. | |
6444 | ||
256642e8 PA |
6445 | 2017-09-29 Pedro Alves <palves@redhat.com> |
6446 | ||
6447 | * common/rsp-low.c (unpack_varlen_hex): Constify. | |
6448 | * common/rsp-low.h (unpack_varlen_hex): Constify. | |
6449 | * linux-nat.c (linux_child_static_tracepoint_markers_by_strid): | |
6450 | Constify. | |
6451 | * remote.c (remote_set_permissions, read_ptid) | |
6452 | (remote_current_thread, remote_get_threads_with_qthreadinfo) | |
6453 | (remote_static_tracepoint_marker_at) | |
6454 | (remote_static_tracepoint_markers_by_strid) | |
6455 | (stop_reply_extract_thread, remote_parse_stop_reply): Constify. | |
6456 | * tracepoint.c (parse_trace_status, parse_tracepoint_status) | |
6457 | (parse_tracepoint_definition, parse_tsv_definition) | |
6458 | (parse_static_tracepoint_marker_definition): Constify. | |
6459 | * tracepoint.h (parse_static_tracepoint_marker_definition) | |
6460 | (parse_trace_status, parse_tracepoint_status) | |
6461 | (parse_tracepoint_definition, parse_tsv_definition): Constify. | |
6462 | ||
b6bb3468 PA |
6463 | 2017-09-29 Pedro Alves <palves@redhat.com> |
6464 | ||
6465 | * remote.c (target_buf, target_buf_size): Delete. | |
6466 | (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters. | |
6467 | Use the connection's packet buffer instead. | |
6468 | All callers adjusted. | |
6469 | (_initialize_remote): Remove references to target_buf and | |
6470 | target_buf_size. | |
6471 | ||
b2f8eb7a PA |
6472 | 2017-09-28 Pedro Alves <palves@redhat.com> |
6473 | ||
6474 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
6475 | unittests/common-utils-selftests.c. | |
6476 | (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o. | |
6477 | (COMMON_OBS): Remove utils-selftests.o. | |
6478 | * utils-selftests.c: Move to ... | |
6479 | * unittests/common-utils-selftests.c: ... here and rename self | |
6480 | test to "string_printf". | |
6481 | ||
08302ed2 DE |
6482 | 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch) |
6483 | ||
6484 | * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file | |
6485 | having NULL cus or tus. | |
6486 | ||
96a5a1d3 UW |
6487 | 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
6488 | ||
6489 | * arm-tdep.c: (convert_from_extended): Remove. | |
6490 | (convert_to_extended): Likewise. | |
6491 | (arm_extract_return_value): Use convert_typed_floating. | |
6492 | (arm_store_return_value): Likewise. | |
6493 | ||
6494 | * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type. | |
6495 | * sh-tdep.c: Do not include "floatformat.h". | |
6496 | (sh_littlebyte_bigword_type): New function. | |
6497 | (sh_register_convert_to_virtual): Use convert_typed_floating. | |
6498 | (sh_register_convert_to_raw): Likewise. | |
6499 | * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type. | |
6500 | (sh64_littlebyte_bigword_type): New function. | |
6501 | (sh64_extract_return_value): Use convert_typed_floating. | |
6502 | (sh64_register_convert_to_virtual): Likewise. | |
6503 | (sh64_register_convert_to_raw): Likewise. | |
6504 | ||
0db7851f UW |
6505 | 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
6506 | ||
6507 | * doublest.h (floatformat_from_type): Move to gdbtypes.h. | |
6508 | * doublest.c (floatformat_from_type): Move to gdbtypes.c. | |
6509 | ||
6510 | * gdbtypes.h (union type_specific): Make field floatformat hold | |
6511 | just a single struct floatformat, not an array. | |
6512 | (floatformat_from_type): Move here. | |
6513 | * gdbtypes.c (floatformat_from_type): Move here. Update to | |
6514 | changed TYPE_FLOATFORMAT definition. | |
6515 | (verify_floatformat): Update to changed TYPE_FLOATFORMAT. | |
6516 | (recursive_dump_type): Likewise. | |
6517 | (init_float_type): Install correct floatformat for byte order. | |
6518 | (arch_float_type): Likewise. | |
6519 | ||
77b7c781 UW |
6520 | 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
6521 | ||
6522 | * gdbtypes.c (init_type): Change incoming argument from | |
6523 | length-in-bytes to length-in-bits. Assert length is a | |
6524 | multiple of TARGET_CHAR_BITS. | |
6525 | (arch_type, arch_flags_type): Likewise. | |
6526 | (init_integer_type): Update call to init_type. | |
6527 | (init_character_type): Likewise. | |
6528 | (init_boolean_type): Likewise. | |
6529 | (init_float_type): Likewise. | |
6530 | (init_decfloat_type): Likewise. | |
6531 | (init_complex_type): Likewise. | |
6532 | (init_pointer_type): Likewise. | |
6533 | (objfile_type): Likewise. | |
6534 | (arch_integer_type): Update call to arch_type. | |
6535 | (arch_character_type): Likewise. | |
6536 | (arch_boolean_type): Likewise. | |
6537 | (arch_float_type): Likewise. | |
6538 | (arch_decfloat_type): Likewise. | |
6539 | (arch_complex_type): Likewise. | |
6540 | (arch_pointer_type): Likewise. | |
6541 | (gdbtypes_post_init): Likewise. | |
6542 | ||
6543 | * dwarf2read.c (dwarf2_init_float_type): Update call to init_type. | |
6544 | (read_base_type): Likewise. | |
6545 | * mdebugread.c (basic_type): Likewise. | |
6546 | * stabsread.c (dbx_init_float_type): Likewise. | |
6547 | (rs6000_builtin_type): Likewise. | |
6548 | (read_range_type): Likewise. Also, fix call to init_integer_type | |
6549 | with erroneous length argument. | |
6550 | ||
6551 | * ada-lang.c (ada_language_arch_info): Update call to arch_type. | |
6552 | * d-lang.c (build_d_types): Likewise. | |
6553 | * f-lang.c (build_fortran_types): Likewise. | |
6554 | * go-lang.c (build_go_types): Likewise. | |
6555 | * opencl-lang.c (build_opencl_types): Likewise. | |
6556 | * jit.c (finalize_symtab): Likewise. | |
6557 | * gnu-v3-abi.c (build_gdb_vtable_type): Likewise. | |
6558 | (build_std_type_info_type): Likewise. | |
6559 | * target-descriptions.c (tdesc_gdb_type): Likewise. Also, | |
6560 | update call to arch_flags_type. | |
6561 | ||
6562 | * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to | |
6563 | arch_type. | |
6564 | * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise. | |
6565 | * windows-tdep.c (windows_get_tlb_type): Likewise. | |
6566 | ||
6567 | * avr-tdep.c (avr_gdbarch_init): Update call to arch_type. | |
6568 | * ft32-tdep.c (ft32_gdbarch_init): Likewise. | |
6569 | * m32c-tdep.c (make_types): Likewise. | |
6570 | * rl78-tdep.c (rl78_gdbarch_init): Likewise. | |
6571 | (rl78_psw_type): Update call to arch_flags_type. | |
6572 | * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type. | |
6573 | * rx-tdep.c (rx_psw_type): Likewise. | |
6574 | (rx_fpsw_type): Likewise. | |
6575 | * sparc-tdep.c (sparc_psr_type): Likewise. | |
6576 | (sparc_fsr_type): Likewise. | |
6577 | * sparc64-tdep.c (sparc64_pstate_type): Likewise. | |
6578 | (sparc64_ccr_type): Likewise. | |
6579 | (sparc64_fsr_type): Likewise. | |
6580 | (sparc64_fprs_type): Likewise. | |
6581 | ||
f21b4d5c TT |
6582 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6583 | ||
6584 | * findcmd.c (find_command): Constify. | |
6585 | ||
643c2ffa TT |
6586 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6587 | ||
6588 | * ada-tasks.c (task_command_1, task_command): Constify. | |
6589 | ||
510e5e56 TT |
6590 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6591 | ||
6592 | * symtab.c (maintenance_print_symbol_cache) | |
6593 | (maintenance_flush_symbol_cache) | |
6594 | (maintenance_print_symbol_cache_statistics): Constify. | |
6595 | ||
e503b191 TT |
6596 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6597 | ||
6598 | * inferior.c (detach_inferior_command, kill_inferior_command) | |
6599 | (inferior_command): Constify. | |
6600 | ||
4e001312 TT |
6601 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6602 | ||
6603 | * regcache.c (regcache_print, maintenance_print_registers) | |
6604 | (maintenance_print_raw_registers) | |
6605 | (maintenance_print_cooked_registers) | |
6606 | (maintenance_print_register_groups) | |
6607 | (maintenance_print_remote_registers): Constify. | |
6608 | ||
77763700 TT |
6609 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6610 | ||
6611 | * printcmd.c (map_display_numbers, undisplay_command) | |
6612 | (enable_disable_display_command, enable_display_command) | |
6613 | (disable_display_command): Constify. | |
6614 | ||
4495129a TT |
6615 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6616 | ||
6617 | * breakpoint.h (delete_command): Don't declare. | |
6618 | * breakpoint.c (delete_command, enable_once_command) | |
6619 | (enable_count_command, enable_delete_command, breakpoint_1) | |
6620 | (maintenance_info_breakpoints, stopin_command, stopat_command) | |
6621 | (delete_command, delete_trace_command, save_breakpoints) | |
6622 | (save_breakpoints_command, save_tracepoints_command): Constify. | |
6623 | ||
3088cf40 TT |
6624 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6625 | ||
6626 | * macrocmd.c (macro_expand_command, macro_expand_once_command) | |
6627 | (skip_ws, extract_identifier, macro_define_command) | |
6628 | (macro_undef_command, macro_list_command): Constify. | |
6629 | ||
69f476a3 TT |
6630 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6631 | ||
6632 | * infcmd.c (environment_info, set_environment_command) | |
6633 | (unset_environment_command, path_info, info_proc_cmd_1) | |
6634 | (info_proc_cmd_mappings, info_proc_cmd_stat) | |
6635 | (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline) | |
6636 | (info_proc_cmd_exe, info_proc_cmd_all): Constify. | |
6637 | ||
c4a3e68e TT |
6638 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6639 | ||
6640 | * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds): | |
6641 | Constify. | |
6642 | ||
c9d31bd6 TT |
6643 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6644 | ||
6645 | * symfile-mem.c (add_symbol_file_from_memory_command): Constify. | |
6646 | ||
1f3f85eb TT |
6647 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6648 | ||
6649 | * demangle.c (demangle_command): Constify. | |
6650 | ||
9c504b5d TT |
6651 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6652 | ||
6653 | * progspace.c (maintenance_info_program_spaces_command): | |
6654 | Constify. | |
6655 | ||
6663cf91 TT |
6656 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6657 | ||
6658 | * compile/compile.c (check_raw_argument, compile_file_command) | |
6659 | (compile_code_command, compile_print_command): Constify. | |
6660 | ||
34e5fa26 TT |
6661 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6662 | ||
6663 | * reggroups.c (maintenance_print_reggroups): Constify. | |
6664 | ||
8384c356 TT |
6665 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6666 | ||
6667 | * dwarf2read.c (save_gdb_index_command): Constify. | |
6668 | ||
884beb0c TT |
6669 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6670 | ||
6671 | * stap-probe.c (info_probes_stap_command): Constify. | |
6672 | ||
e0b2930c TT |
6673 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6674 | ||
6675 | * fork-child.c (unset_exec_wrapper_command): Constify. | |
6676 | ||
f938677d TT |
6677 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6678 | ||
6679 | * btrace.c (get_uint, get_context_size, no_chunk) | |
6680 | (maint_btrace_packet_history_cmd) | |
6681 | (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd) | |
6682 | (maint_info_btrace_cmd): Constify. | |
6683 | ||
8949cb87 TT |
6684 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6685 | ||
6686 | * reverse.c (delete_bookmark_command): Constify. | |
6687 | ||
ac88e2de TT |
6688 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6689 | ||
6690 | * remote.c (set_memory_packet_size) | |
6691 | (set_memory_write_packet_size, show_memory_write_packet_size) | |
6692 | (set_memory_read_packet_size, show_memory_read_packet_size) | |
6693 | (compare_sections_command, packet_command, remote_put_command) | |
6694 | (remote_get_command, remote_delete_command): Constify. | |
6695 | ||
bd4c9dfe TT |
6696 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6697 | ||
6698 | * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command) | |
6699 | (set_mipsfpu_double_command, set_mipsfpu_none_command) | |
6700 | (set_mipsfpu_auto_command): Constify. | |
6701 | ||
5e93d4c6 TT |
6702 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6703 | ||
6704 | * cli/cli-cmds.h (cd_command): Constify. | |
6705 | * cli/cli-cmds.c (cd_command): Constify. | |
6706 | ||
fc41a75b TT |
6707 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6708 | ||
6709 | * thread.c (thread_name_command, thread_find_command): Constify. | |
6710 | ||
67810076 TT |
6711 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6712 | ||
6713 | * probe.c (enable_probes_command, disable_probes_command): | |
6714 | Constify. | |
6715 | ||
1d8b34a7 TT |
6716 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6717 | ||
6718 | * symfile.c (symbol_file_command): Constify. | |
6719 | * gdbcore.h (deprecated_file_changed_hook): Constify. | |
6720 | * exec.c (deprecated_file_changed_hook, exec_file_command) | |
6721 | (file_command): Constify. | |
6722 | * defs.h (symbol_file_command): Constify. | |
6723 | ||
442019e1 TT |
6724 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6725 | ||
6726 | * remote-fileio.c (set_system_call_allowed) | |
6727 | (show_system_call_allowed): Constify. | |
6728 | ||
2983f7cb TT |
6729 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6730 | ||
6731 | * tracepoint.c (delete_trace_variable_command) | |
6732 | (tfind_end_command, tfind_start_command, tfind_pc_command) | |
6733 | (tfind_tracepoint_command, tfind_line_command) | |
6734 | (tfind_range_command, tfind_outside_command): Constify. | |
6735 | ||
4fd41b24 TT |
6736 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6737 | ||
6738 | * ax-gdb.c (maint_agent_printf_command, agent_command) | |
6739 | (agent_eval_command): Constify. | |
6740 | ||
f2fc3015 TT |
6741 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6742 | ||
6743 | * tracepoint.c (info_scope_command): Constify. | |
6744 | * python/python.c (gdbpy_decode_line): Constify. | |
6745 | * python/py-breakpoint.c (bppy_init): Constify. | |
6746 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify. | |
6747 | * location.h: (new_linespec_location) | |
6748 | (string_to_event_location_basic, string_to_event_location): | |
6749 | Constify. | |
6750 | * location.c (new_linespec_location) | |
6751 | (string_to_event_location_basic, string_to_event_location): | |
6752 | Constify. | |
6753 | * linespec.h (decode_line_with_current_source) | |
6754 | (decode_line_with_last_displayed, linespec_lex_to_end): Constify. | |
6755 | * linespec.c (linespec_lex_to_end) | |
6756 | (decode_line_with_current_source) | |
6757 | (decode_line_with_last_displayed): Constify. | |
6758 | * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): | |
6759 | Constify. | |
6760 | * cli/cli-cmds.c (edit_command, list_command): Constify. | |
6761 | * breakpoint.h (until_break_command, watch_command_wrapper) | |
6762 | (awatch_command_wrapper, rwatch_command_wrapper) | |
6763 | (init_ada_exception_breakpoint): Constify. | |
6764 | * breakpoint.c (break_command_1, dprintf_command) | |
6765 | (break_range_command, watch_command_wrapper) | |
6766 | (rwatch_command_wrapper, awatch_command_wrapper) | |
6767 | (until_break_command, init_ada_exception_breakpoint) | |
6768 | (strace_marker_create_sals_from_location, trace_command) | |
6769 | (ftrace_command, strace_command, struct tracepoint): Constify. | |
6770 | * ax-gdb.c (agent_command_1): Constify. | |
6771 | * ada-lang.c (ada_exception_sal): Constify. | |
6772 | ||
8c2f95f4 TT |
6773 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6774 | ||
6775 | * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save) | |
6776 | (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number) | |
6777 | (get_context_size, no_chunk, get_insn_history_modifiers) | |
6778 | (cmd_record_insn_history, get_call_history_modifiers) | |
6779 | (cmd_record_call_history): Constify. | |
6780 | ||
a0d65762 TT |
6781 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6782 | ||
6783 | * source.c (show_substitute_path_command) | |
6784 | (unset_substitute_path_command, set_substitute_path_command): | |
6785 | Constify. | |
6786 | ||
58971144 TT |
6787 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6788 | ||
6789 | * typeprint.c (maintenance_print_type): Constify. | |
6790 | * maint.c (maintenance_dump_me, maintenance_demangle) | |
6791 | (maintenance_time_display, maintenance_info_sections) | |
6792 | (maintenance_print_statistics, maintenance_deprecate) | |
6793 | (maintenance_undeprecate): Constify. | |
6794 | (maintenance_do_deprecate): Constify. Use std::string. | |
6795 | (maintenance_selftest): Constify. | |
6796 | * gdbtypes.h (maintenance_print_type): Constify. | |
6797 | ||
c482f52c TT |
6798 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6799 | ||
6800 | * hppa-tdep.c (unwind_command): Constify. | |
6801 | ||
e100df1a TT |
6802 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6803 | ||
6804 | * target-descriptions.c (unset_tdesc_filename_cmd) | |
6805 | (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions): | |
6806 | Constify. | |
6807 | ||
31d56ade TT |
6808 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6809 | ||
6810 | * dummy-frame.c (maintenance_print_dummy_frames): Constify. | |
6811 | ||
b961da0b TT |
6812 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6813 | ||
6814 | * tui/tui.c (tui_enable_command, tui_disable_command): Constify. | |
6815 | ||
e2d8ae16 TT |
6816 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6817 | ||
6818 | * tui/tui-regs.c (tui_reg_command): Constify. | |
6819 | ||
863779b0 TT |
6820 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6821 | ||
6822 | * skip.c (skip_file_command, skip_function_command) | |
6823 | (skip_enable_command, skip_disable_command, skip_delete_command): | |
6824 | Constify. | |
6825 | ||
cdb34d4a TT |
6826 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6827 | ||
6828 | * record-btrace.c (cmd_record_btrace_bts_start) | |
6829 | (cmd_record_btrace_pt_start): Constify. | |
6830 | ||
e99c83e7 TT |
6831 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6832 | ||
6833 | * symmisc.c (maintenance_print_symbols) | |
6834 | (maintenance_print_msymbols, maintenance_print_objfiles) | |
6835 | (maintenance_info_symtabs, maintenance_check_symtabs) | |
6836 | (maintenance_expand_symtabs, maintenance_info_line_tables): | |
6837 | Constify. | |
6838 | ||
32faf971 TT |
6839 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6840 | ||
6841 | * top.c (new_ui_command): Constify. | |
6842 | ||
2cf311eb TT |
6843 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6844 | ||
6845 | * symfile.c (add_symbol_file_command) | |
6846 | (remove_symbol_file_command, list_overlays_command) | |
6847 | (map_overlay_command, unmap_overlay_command) | |
6848 | (overlay_auto_command, overlay_manual_command) | |
6849 | (overlay_off_command, overlay_load_command): Constify. | |
6850 | ||
e6738699 TT |
6851 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6852 | ||
6853 | * spu-tdep.c (info_spu_event_command, info_spu_signal_command) | |
6854 | (info_spu_mailbox_command, info_spu_dma_command) | |
6855 | (info_spu_proxydma_command): Constify. | |
6856 | ||
aa360cd5 TT |
6857 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6858 | ||
6859 | * cli/cli-logging.c (set_logging_on, set_logging_off): Constify. | |
6860 | ||
898241a5 TT |
6861 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6862 | ||
6863 | * cli/cli-script.c (user_defined_command): Constify. | |
6864 | ||
2d0ac106 TT |
6865 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6866 | ||
6867 | * cli/cli-dump.c (dump_memory_command, dump_value_command) | |
6868 | (dump_srec_memory, dump_srec_value, dump_ihex_memory) | |
6869 | (dump_ihex_value, dump_verilog_memory, dump_verilog_value) | |
6870 | (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory) | |
6871 | (dump_binary_value, append_binary_memory, append_binary_value): | |
6872 | Constify. | |
6873 | (struct dump_context) <func>: Constify. | |
6874 | (add_dump_command): Update. | |
6875 | ||
dede02ce TT |
6876 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6877 | ||
6878 | * cli/cli-cmds.c (show_version, show_configuration) | |
6879 | (source_command, show_user): Constify. | |
6880 | ||
d3cb6b99 TT |
6881 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6882 | ||
6883 | * target.c (maintenance_print_target_stack): Constify. | |
6884 | ||
1970a12f TT |
6885 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6886 | ||
6887 | * interps.c (interpreter_exec_cmd): Constify. | |
6888 | ||
41243651 TT |
6889 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6890 | ||
6891 | * record-full.c (cmd_record_full_restore): Constify. | |
6892 | ||
4465d9db TT |
6893 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6894 | ||
6895 | * memattr.c (enable_mem_command, disable_mem_command) | |
6896 | (delete_mem_command): Constify. | |
6897 | ||
ad25e423 TT |
6898 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6899 | ||
6900 | * value.c (show_convenience): Constify. | |
6901 | ||
d64097b1 TT |
6902 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6903 | ||
6904 | * gdbcore.h (core_file_command): Update. | |
6905 | * corefile.c (core_file_command): Constify. | |
6906 | ||
4d4589ef TT |
6907 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6908 | ||
6909 | * user-regs.c (maintenance_print_user_registers): Constify. | |
6910 | ||
32a7bf17 TT |
6911 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6912 | ||
6913 | * cp-namespace.c (maintenance_cplus_namespace): Constify. | |
6914 | ||
4a475551 TT |
6915 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6916 | ||
6917 | * cp-support.c (first_component_command): Constify. | |
6918 | ||
990b9f9f TT |
6919 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6920 | ||
6921 | * psymtab.c (maintenance_print_psymbols) | |
6922 | (maintenance_info_psymtabs, maintenance_check_psymtabs): | |
6923 | Constify. | |
6924 | ||
c281872e TT |
6925 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6926 | ||
6927 | * windows-tdep.c (display_tib): Constify. | |
6928 | ||
5b64bf74 TT |
6929 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6930 | ||
6931 | * linux-fork.c (delete_checkpoint_command) | |
6932 | (detach_checkpoint_command): Constify. | |
6933 | ||
4ada038f TT |
6934 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6935 | ||
6936 | * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify. | |
6937 | ||
57f5a81b TT |
6938 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6939 | ||
6940 | * arc-tdep.c (dump_arc_instruction_command): Constify. | |
6941 | ||
b0a8e6c4 TT |
6942 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6943 | ||
6944 | * valprint.c (set_radix, show_radix): Constify. | |
6945 | ||
8d97dc1c TT |
6946 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6947 | ||
6948 | * dtrace-probe.c (info_probes_dtrace_command): Constify. | |
6949 | ||
eb7c454d TT |
6950 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6951 | ||
6952 | * command.h (not_just_help_class_command): Update. | |
6953 | * cli/cli-decode.h (not_just_help_class_command): Update. | |
6954 | * cli/cli-decode.c (not_just_help_class_command): Constify. | |
6955 | ||
e4e33335 TT |
6956 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6957 | ||
6958 | * gdb_bfd.c (maintenance_info_bfds): Constify. | |
6959 | ||
0450cc4c TT |
6960 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6961 | ||
6962 | * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function | |
6963 | overloads. | |
6964 | (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc. | |
6965 | (do_const_cfunc): New function. | |
6966 | (cmd_cfunc_eq): New overload. | |
6967 | (cli_user_command_p): Check do_const_cfunc. | |
6968 | * cli/cli-decode.h (struct cmd_list_element) <function>: New field | |
6969 | const_cfunc. | |
6970 | * command.h (add_cmd): Add const overload and no-function | |
6971 | overload. | |
6972 | (set_cmd_cfunc): Add const overload. | |
6973 | (cmd_const_cfunc_ftype): Declare. | |
6974 | (cmd_cfunc_eq): Add const overload. | |
6975 | * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c, | |
6976 | python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd | |
6977 | overload. | |
6978 | ||
a9bbfbd8 TT |
6979 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6980 | ||
6981 | * macroexp.c (get_next_token_for_substitution): New function. | |
6982 | (substitute_args): Call it. Check for __VA_OPT__. | |
6983 | ||
5230b05a WT |
6984 | 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com> |
6985 | Pedro Alves <palves@redhat.com> | |
6986 | ||
6987 | * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add | |
6988 | producer_is_icc_lt_14. | |
6989 | (producer_is_icc_lt_14): New function. | |
6990 | (check_producer): Add code for checking version of ICC. | |
6991 | (producer_is_icc): Move to producer.c. | |
6992 | (read_structure_type): Restrict ICC workaround to ICC<14. | |
6993 | * producer.c: Include selftest.h. | |
6994 | (producer_is_icc, producer_parsing_tests, _initialize_producer): | |
6995 | New functions. | |
6996 | * producer.h (producer_is_icc): New declaration. | |
6997 | ||
b32b108a WT |
6998 | 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com> |
6999 | ||
7000 | * Makefile.in (SFILES): Add producer.c. | |
7001 | (COMMON_OBS): Add producer.o | |
7002 | * amd64-tdep.c (producer.h): Add new include. | |
7003 | * dwarf2read.c (producer.h): Add new include. | |
7004 | * producer.c: New file. | |
7005 | * producer.h: New file. | |
7006 | * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to | |
7007 | producer.c. | |
7008 | * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to | |
7009 | producer.h. | |
7010 | ||
5007d765 MK |
7011 | 2017-09-26 Matthias Klose <doko@ubuntu.com> |
7012 | ||
7013 | * configure.ac: Search ncursesw before ncurses. | |
7014 | Check ncursesw/ncurses.h before ncurses/ncurses.h. | |
7015 | * gdb_curses.h: Include <ncursesw/ncurses.h> | |
7016 | * config.in, configure: Regenerate. | |
7017 | ||
281c4447 RO |
7018 | 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
7019 | ||
7020 | PR gdb/22185 | |
7021 | * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as | |
7022 | obsolete. | |
7023 | Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*. | |
7024 | Remove i386sol2 support. | |
7025 | * configure.nat <i386sol2>: Remove. | |
7026 | <sol2-64>: Fold into ... | |
7027 | <sol2>: ... this. | |
7028 | Move common settings to default section. | |
7029 | Add sol-thread.o. | |
7030 | * configure.tgt <i[34567]86-*-solaris2.1[0-9]*, | |
7031 | x86_64-*-solaris2.1[0-9]*>: Rename to ... | |
7032 | <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this. | |
7033 | <i[34567]86-*-solaris*>: Remove. | |
7034 | <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove. | |
7035 | ||
7036 | * configure.ac: Remove wctype in libw check. | |
7037 | (_MSE_INT_H): Don't define on Solaris 7-9. | |
7038 | <solaris*>: Remove libthread_db.so.1 check. | |
7039 | * configure: Regenerate. | |
7040 | * config.in: Regenerate. | |
7041 | ||
7042 | * proc-service.c: Remove PROC_SERVICE_IS_OLD handling. | |
7043 | (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t) | |
7044 | (gdb_ps_size_t): Remove. | |
7045 | Use base types in users. | |
7046 | * sol-thread.c: Likewise, also for gdb_ps_addr_t. | |
7047 | ||
7048 | * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal. | |
7049 | ||
39b06c20 RO |
7050 | 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
7051 | ||
7052 | PR build/22206 | |
7053 | * sparc64-tdep.c (adi_tag_fd): Print pid as long. | |
7054 | (adi_is_addr_mapped): Likewise. | |
7055 | (PSR_ICC): Don't redefine. | |
7056 | (PSR_IMPL): Likewise. | |
7057 | ||
6c3e20f1 TT |
7058 | 2017-09-25 Tom Tromey <tom@tromey.com> |
7059 | ||
7060 | * regcache.c (regcache::dump): Use string_printf. | |
7061 | ||
b292235f TT |
7062 | 2017-09-25 Tom Tromey <tom@tromey.com> |
7063 | ||
7064 | * regcache.c (class regcache_invalidator): New. | |
7065 | (struct register_to_invalidate): Remove. | |
7066 | (make_cleanup_regcache_invalidate): Remove. | |
7067 | (regcache::raw_write): Use regcache_invalidator. | |
7068 | ||
9ac86b52 TT |
7069 | 2017-09-25 Tom Tromey <tom@tromey.com> |
7070 | ||
7071 | * spu-tdep.c (spu2ppu_sniffer): Update. | |
7072 | * regcache.h (make_cleanup_regcache_xfree): Don't declare. | |
7073 | * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree): | |
7074 | Remove. | |
7075 | * ppc-linux-tdep.c (ppu2spu_sniffer): Update. | |
7076 | * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update. | |
7077 | * frame.h (frame_save_as_regcache): Return std::unique_ptr. | |
7078 | * frame.c (frame_save_as_regcache): Return std::unique_ptr. | |
7079 | (frame_pop): Update. | |
7080 | ||
c0e383c6 TT |
7081 | 2017-09-25 Tom Tromey <tom@tromey.com> |
7082 | ||
7083 | * spu-tdep.c (spu2ppu_dealloc_cache): Use delete. | |
7084 | * regcache.h (regcache_xfree): Don't declare. | |
7085 | * regcache.c (regcache_xfree): Remove. | |
7086 | (do_regcache_xfree): Use delete. | |
7087 | * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete. | |
7088 | * linux-fork.c (free_fork): Use delete. | |
7089 | (fork_save_infrun_state): Likewise. | |
7090 | * jit.c (jit_dealloc_cache): Use delete. | |
7091 | * infrun.c (discard_infcall_suspend_state): Use delete. | |
7092 | ||
791199cc TT |
7093 | 2017-09-25 Tom Tromey <tom@tromey.com> |
7094 | ||
7095 | * regcache.h (regcache_xmalloc): Don't declare. | |
7096 | (regcache_raw_set_cached_value): Update comment. | |
7097 | * regcache.c (regcache_xmalloc): Remove. | |
7098 | * ppc-linux-tdep.c (ppu2spu_sniffer): Use new. | |
7099 | * jit.c (jit_frame_sniffer): Use new. | |
7100 | * frame.c (frame_save_as_regcache): Use new. | |
7101 | ||
289e23aa AA |
7102 | 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com> |
7103 | ||
7104 | * NEWS: Advertise support for guarded-storage registers on IBM z. | |
7105 | ||
1b63490c AA |
7106 | 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com> |
7107 | ||
7108 | * s390-linux-nat.c (have_regset_gs): New static variable. | |
7109 | (s390_linux_fetch_inferior_registers): Handle guarded-storage | |
7110 | control block and guarded-storage broadcast control regsets. | |
7111 | (s390_read_description): Detect whether the target has | |
7112 | guarded-storage support, return appropriate tdesc. | |
7113 | * s390-linux-tdep.c (features/s390-gs-linux64.c): New include. | |
7114 | (features/s390x-gs-linux64.c): Likewise. | |
7115 | (struct gdbarch_tdep) <have_gs>: New field. | |
7116 | (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset) | |
7117 | (s390_gsbc_regset): New variables. | |
7118 | (s390_iterate_over_regset_sections): Iterate over s390_gs_regset | |
7119 | and s390_gsbc_regset, if applicable. | |
7120 | (s390_core_read_description): Check whether core file was from a | |
7121 | target with guarded-storage support; include appropriate regsets. | |
7122 | (s390_gdbarch_init): Add registers for guarded-storage support. | |
7123 | (_initialize_s390_tdep): Initialize new target descriptions that | |
7124 | include registers for guarded-storage support. | |
7125 | * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM) | |
7126 | (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM) | |
7127 | (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines. | |
7128 | (S390_NUM_REGS): Adjust macro definition. | |
7129 | (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64) | |
7130 | (tdesc_s390x_gs_linux64): New declarations. | |
7131 | ||
96235dc1 AA |
7132 | 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com> |
7133 | ||
7134 | * features/s390-gs-linux64.xml: New file. | |
7135 | * features/s390-gs.xml: New file. | |
7136 | * features/s390-gsbc.xml: New file. | |
7137 | * features/s390x-gs-linux64.xml: New file. | |
7138 | * features/Makefile (WHICH): Add s390-gs-linux64 and | |
7139 | s390x-gs-linux64. | |
7140 | (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros. | |
7141 | (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml. | |
7142 | * features/s390-gs-linux64.c: New generated file. | |
7143 | * features/s390x-gs-linux64.c: New file. | |
7144 | * regformats/s390-gs-linux64.dat: New file. | |
7145 | * regformats/s390x-gs-linux64.dat: New file. | |
7146 | ||
b4a7c699 TT |
7147 | 2017-09-23 Tom Tromey <tom@tromey.com> |
7148 | ||
7149 | * defs.h (make_cleanup_override_quit_handler): Don't declare. | |
7150 | ||
c2f97536 TT |
7151 | 2017-09-22 Tom Tromey <tom@tromey.com> |
7152 | ||
7153 | * utils.c (class scoped_input_handler) <m_quit_handler>: Change | |
7154 | type to scoped_restore_tmpl. | |
7155 | <scoped_input_handler>: Initialize m_quit_handler directly. | |
7156 | ||
43573013 SDJ |
7157 | 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com> |
7158 | ||
7159 | * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)". | |
7160 | (cd_command): Likewise. Free "current_directory" before | |
7161 | assigning to it. | |
7162 | * main.c (captured_main_1): Use "getcwd (NULL, 0)". | |
7163 | * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise. | |
7164 | * top.c (gdb_dirbuf): Remove global declaration. | |
7165 | * top.h (gdb_dirbuf): Likewise. | |
7166 | ||
6ec2e0f5 SDJ |
7167 | 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com> |
7168 | ||
7169 | * gnulib/aclocal.m4: Regenerate. | |
7170 | * gnulib/config.in: Regenerate. | |
7171 | * gnulib/configure: Regenerate. | |
7172 | * gnulib/import/Makefile.am: Regenerate. | |
7173 | * gnulib/import/Makefile.in: Regenerate. | |
7174 | * gnulib/import/assure.h: New file. | |
7175 | * gnulib/import/at-func.c: Likewise | |
7176 | * gnulib/import/chdir-long.c: New file. | |
7177 | * gnulib/import/chdir-long.h: New file. | |
7178 | * gnulib/import/cloexec.c: New file. | |
7179 | * gnulib/import/cloexec.h: New file. | |
7180 | * gnulib/import/close.c: New file. | |
7181 | * gnulib/import/closedir.c: New file. | |
7182 | * gnulib/import/dirent-private.h: New file. | |
7183 | * gnulib/import/dup-safer.c: New file. | |
7184 | * gnulib/import/dup.c: New file. | |
7185 | * gnulib/import/dup2.c: New file. | |
7186 | * gnulib/import/error.c: New file. | |
7187 | * gnulib/import/error.h: New file. | |
7188 | * gnulib/import/exitfail.c: New file. | |
7189 | * gnulib/import/exitfail.h: New file. | |
7190 | * gnulib/import/fchdir.c: New file. | |
7191 | * gnulib/import/fcntl.c: New file. | |
7192 | * gnulib/import/fcntl.in.h: New file. | |
7193 | * gnulib/import/fd-hook.c: New file. | |
7194 | * gnulib/import/fd-hook.h: New file. | |
7195 | * gnulib/import/fd-safer.c: New file. | |
7196 | * gnulib/import/fdopendir.c: New file. | |
7197 | * gnulib/import/filename.h: New file. | |
7198 | * gnulib/import/filenamecat-lgpl.c: New file. | |
7199 | * gnulib/import/filenamecat.h: New file. | |
7200 | * gnulib/import/fstat.c: New file. | |
7201 | * gnulib/import/fstatat.c: New file. | |
7202 | * gnulib/import/getcwd-lgpl.c: New file. | |
7203 | * gnulib/import/getcwd.c: New file. | |
7204 | * gnulib/import/getdtablesize.c: New file. | |
7205 | * gnulib/import/getlogin_r.c: New file. | |
7206 | * gnulib/import/getprogname.c: New file. | |
7207 | * gnulib/import/getprogname.h: New file. | |
7208 | * gnulib/import/gettext.h: New file. | |
7209 | * gnulib/import/glob-libc.h: New file. | |
7210 | * gnulib/import/glob.c: New file. | |
7211 | * gnulib/import/glob.in.h: New file. | |
7212 | * gnulib/import/intprops.h: New file. | |
7213 | * gnulib/import/m4/chdir-long.m4: New file. | |
7214 | * gnulib/import/m4/close.m4: New file. | |
7215 | * gnulib/import/m4/closedir.m4: New file. | |
7216 | * gnulib/import/m4/d-ino.m4: New file. | |
7217 | * gnulib/import/m4/d-type.m4: New file. | |
7218 | * gnulib/import/m4/dup.m4: New file. | |
7219 | * gnulib/import/m4/dup2.m4: New file. | |
7220 | * gnulib/import/m4/error.m4: New file. | |
7221 | * gnulib/import/m4/fchdir.m4: New file. | |
7222 | * gnulib/import/m4/fcntl.m4: New file. | |
7223 | * gnulib/import/m4/fcntl_h.m4: New file. | |
7224 | * gnulib/import/m4/fdopendir.m4: New file. | |
7225 | * gnulib/import/m4/filenamecat.m4: New file. | |
7226 | * gnulib/import/m4/fstat.m4: New file. | |
7227 | * gnulib/import/m4/fstatat.m4: New file. | |
7228 | * gnulib/import/m4/getcwd-abort-bug.m4: New file. | |
7229 | * gnulib/import/m4/getcwd-path-max.m4: New file. | |
7230 | * gnulib/import/m4/getcwd.m4: New file. | |
7231 | * gnulib/import/m4/getdtablesize.m4: New file. | |
7232 | * gnulib/import/m4/getlogin_r.m4: New file. | |
7233 | * gnulib/import/m4/getprogname.m4: New file. | |
7234 | * gnulib/import/m4/glob.m4: New file. | |
7235 | * gnulib/import/m4/gnulib-cache.m4: Regenerate. | |
7236 | * gnulib/import/m4/gnulib-comp.m4: Regenerate. | |
7237 | * gnulib/import/m4/mempcpy.m4: New file. | |
7238 | * gnulib/import/m4/memrchr.m4: New file. | |
7239 | * gnulib/import/m4/mode_t.m4: New file. | |
7240 | * gnulib/import/m4/msvc-inval.m4: New file. | |
7241 | * gnulib/import/m4/msvc-nothrow.m4: New file. | |
7242 | * gnulib/import/m4/open.m4: New file. | |
7243 | * gnulib/import/m4/openat.m4: New file. | |
7244 | * gnulib/import/m4/opendir.m4: New file. | |
7245 | * gnulib/import/m4/readdir.m4: New file. | |
7246 | * gnulib/import/m4/realloc.m4: New file. | |
7247 | * gnulib/import/m4/rewinddir.m4: New file. | |
7248 | * gnulib/import/m4/save-cwd.m4: New file. | |
7249 | * gnulib/import/m4/strdup.m4: New file. | |
7250 | * gnulib/import/m4/strerror.m4: New file. | |
7251 | * gnulib/import/m4/unistd-safer.m4: New file. | |
7252 | * gnulib/import/mempcpy.c: New file. | |
7253 | * gnulib/import/memrchr.c: New file. | |
7254 | * gnulib/import/msvc-inval.c: New file. | |
7255 | * gnulib/import/msvc-inval.h: New file. | |
7256 | * gnulib/import/msvc-nothrow.c: New file. | |
7257 | * gnulib/import/msvc-nothrow.h: New file. | |
7258 | * gnulib/import/open.c: New file. | |
7259 | * gnulib/import/openat-die.c: New file. | |
7260 | * gnulib/import/openat-priv.h: New file. | |
7261 | * gnulib/import/openat-proc.c: New file. | |
7262 | * gnulib/import/openat.c: New file. | |
7263 | * gnulib/import/openat.h: New file. | |
7264 | * gnulib/import/opendir.c: New file. | |
7265 | * gnulib/import/pipe-safer.c: New file. | |
7266 | * gnulib/import/readdir.c: New file. | |
7267 | * gnulib/import/realloc.c: New file. | |
7268 | * gnulib/import/rewinddir.c: New file. | |
7269 | * gnulib/import/save-cwd.c: New file. | |
7270 | * gnulib/import/save-cwd.h: New file. | |
7271 | * gnulib/import/strdup.c: New file. | |
7272 | * gnulib/import/strerror-override.c: New file. | |
7273 | * gnulib/import/strerror-override.h: New file. | |
7274 | * gnulib/import/strerror.c: New file. | |
7275 | * gnulib/import/unistd--.h: New file. | |
7276 | * gnulib/import/unistd-safer.h: New file. | |
7277 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add | |
7278 | "getcwd" and "glob". | |
7279 | * ser-tcp.c: Undefine "close" before redefining it. | |
7280 | ||
432ae719 SM |
7281 | 2017-09-21 Simon Marchi <simon.marchi@ericsson.com> |
7282 | ||
7283 | * guile/scm-value.c (gdbscm_value_address): Initialize address, | |
7284 | get rid of res_val. | |
7285 | ||
4fa7574e RO |
7286 | 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
7287 | ||
7288 | * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES. | |
7289 | <sol2,sparc>: Likewise. | |
7290 | <sol2-64,i386>: Likewise. | |
7291 | ||
7292 | * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas, | |
7293 | -Wdeprecated-declarations on *-*-solaris*. | |
7294 | * configure: Regenerate. | |
7295 | ||
7296 | * procfs.c: Include "nat/inferior.h". | |
7297 | (procfs_info_proc): Fix typo. | |
7298 | ||
f6327dcb KB |
7299 | 2017-09-21 Kevin Buettner <kevinb@redhat.com> |
7300 | ||
7301 | * remote.c (vector): Include. | |
7302 | (struct private_thread_info): Add field, thread_handle. | |
7303 | (free_private_thread_info): Deallocate storage associated with | |
7304 | thread handle. | |
7305 | (get_private_info_thread): Initialize `thread_handle' field. | |
7306 | (struct thread_item): Add field, thread_handle. | |
7307 | (clear_threads_listing_context): Deallocate storage associated | |
7308 | with thread handle. | |
7309 | (start_thread): Add support for "handle" attribute. | |
7310 | (thread_attributes): Add "handle". | |
7311 | (remote_get_threads_with_qthreadinfo): Initialize thread_handle | |
7312 | field. | |
7313 | (remote_update_thread_list): Update thread_handle. | |
7314 | (remote_thread_handle_to_thread_info): New function. | |
7315 | (init_remote_ops): Initialize to_thread_handle_to_thread_info. | |
7316 | ||
fbbe5337 KB |
7317 | 2017-09-21 Kevin Buettner <kevinb@redhat.com> |
7318 | ||
7319 | * python/py-inferior.c (gdbpy_thread_from_thread_handle): New | |
7320 | function. | |
7321 | (inferior_object_methods): Add gdbpy_thread_from_thread_handle. | |
7322 | * python/python-internal.h (thread_object_type): Declare. | |
7323 | ||
e04ee09e KB |
7324 | 2017-09-21 Kevin Buettner <kevinb@redhat.com> |
7325 | ||
7326 | * target.h (struct target_ops): Add to_thread_handle_to_thread_info. | |
7327 | (target_thread_handle_to_thread_info): Declare. | |
7328 | * target.c (target_thread_handle_to_thread_info): New function. | |
7329 | * target-delegates.c: Regenerate. | |
7330 | * gdbthread.h (find_thread_by_handle): Declare. | |
7331 | * thread.c (find_thread_by_handle): New function. | |
7332 | * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New | |
7333 | function. | |
7334 | (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info. | |
7335 | ||
1e5b66ed SM |
7336 | 2017-09-21 Simon Marchi <simon.marchi@ericsson.com> |
7337 | ||
7338 | * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF. | |
7339 | ||
ebe48ba0 SM |
7340 | 2017-09-21 Simon Marchi <simon.marchi@ericsson.com> |
7341 | ||
7342 | * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF. | |
7343 | ||
0a0bf5dc YQ |
7344 | 2017-09-21 Yao Qi <yao.qi@linaro.org> |
7345 | ||
7346 | * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o | |
7347 | to gdb_target_obs. | |
7348 | ||
d1b0a7bf TT |
7349 | 2017-09-20 Tom Tromey <tom@tromey.com> |
7350 | ||
7351 | * breakpoint.c (struct counted_command_line): Remove. | |
7352 | (breakpoint_commands): Update. | |
7353 | (alloc_counted_command_line, incref_counted_command_line) | |
7354 | (decref_counted_command_line, do_cleanup_counted_command_line) | |
7355 | (make_cleanup_decref_counted_command_line): Remove. | |
7356 | (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats) | |
7357 | (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check) | |
7358 | (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint) | |
7359 | (save_breakpoints): Update. | |
7360 | * breakpoint.h (counted_command_line): Now a typedef to | |
7361 | shared_ptr. | |
7362 | (struct breakpoint) <commands>: Now a counted_command_line. | |
7363 | (struct bpstats) <command>: Likewise. | |
7364 | ||
48649e1b TT |
7365 | 2017-09-20 Tom Tromey <tom@tromey.com> |
7366 | ||
7367 | * breakpoint.c (struct commands_info, do_map_commands_command): | |
7368 | Remove. | |
7369 | (commands_command_1): Update. | |
7370 | (iterate_over_related_breakpoints): Take a function_view. | |
7371 | (do_delete_breakpoint, do_map_delete_breakpoint): Remove. | |
7372 | (delete_command): Update. | |
7373 | (map_breakpoint_numbers): Take a function_view. | |
7374 | (do_disable_breakpoint, do_map_delete_breakpoint): Remove. | |
7375 | (disable_command): Update. | |
7376 | (do_enable_breakpoint, do_map_enable_breakpoint): Remove. | |
7377 | (enable_command): Update. | |
7378 | (struct disp_data, do_enable_breakpoint_disp) | |
7379 | (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint) | |
7380 | (do_map_enable_delete_breakpoint): Remove. | |
7381 | (enable_once_command, enable_count_command, enable_delete_command) | |
7382 | (delete_trace_variable_command): Update. | |
7383 | ||
04afa70c TT |
7384 | 2017-09-20 Tom Tromey <tom@tromey.com> |
7385 | ||
7386 | * breakpoint.c (~bpstats): Rename from bpstat_free. Update. | |
7387 | (bpstat_clear): Use delete. | |
7388 | (bpstats): New constructors. | |
7389 | (bpstat_copy, bpstat_stop_status): Use new. | |
7390 | (dprintf_after_condition_true): Update. | |
7391 | * breakpoint.h (bpstats::bpstats): Add constructors. | |
7392 | (bpstats::~bpstats): Add destructor. | |
7393 | ||
c83833f4 PA |
7394 | 2017-09-20 Pedro Alves <palves@redhat.com> |
7395 | ||
7396 | * eval.c (make_params): Delete, refactored as ... | |
7397 | (class fake_method): ... this new type's ctor. | |
7398 | (fake_method::~fake_method): New. | |
7399 | (evaluate_subexp_standard): Use 'fake_method'. | |
7400 | ||
223ffa71 TT |
7401 | 2017-09-20 Tom Tromey <tom@tromey.com> |
7402 | ||
7403 | * windows-nat.c (get_windows_debug_event, windows_wait) | |
7404 | (do_initial_windows_stuff, windows_attach): Update. | |
7405 | * utils.c (vwarning, internal_vproblem): Update. | |
7406 | (ui_unregister_input_event_handler_cleanup) | |
7407 | (prepare_to_handle_input): Remove. | |
7408 | (class scoped_input_handler): New. | |
7409 | (defaulted_query, prompt_for_continue): Update. | |
7410 | * tui/tui-hooks.c (tui_refresh_frame_and_register_information): | |
7411 | Update. | |
7412 | * top.c (undo_terminal_modifications_before_exit): Update. | |
7413 | * target/target.h (target_terminal_init, target_terminal_inferior) | |
7414 | (target_terminal_ours): Don't declare. | |
7415 | (class target_terminal): New. | |
7416 | * target.h (target_terminal_is_inferior, target_terminal_is_ours) | |
7417 | (target_terminal_ours_for_output) | |
7418 | (make_cleanup_restore_target_terminal): Don't declare. | |
7419 | (target_terminal_info): Remove. | |
7420 | * target.c (enum terminal_state, terminal_state): Remove. | |
7421 | (target_terminal::terminal_state): Define. | |
7422 | (target_terminal::init): Rename from target_terminal_init. | |
7423 | (target_terminal::inferior): Rename from | |
7424 | target_terminal_inferior. | |
7425 | (target_terminal::ours): Rename from target_terminal_ours. | |
7426 | (target_terminal::ours_for_output): Rename from | |
7427 | target_terminal_ours_for_output. | |
7428 | (target_terminal::info): New method. | |
7429 | (cleanup_restore_target_terminal) | |
7430 | (make_cleanup_restore_target_terminal): Remove. | |
7431 | * solib.c (handle_solib_event): Update. | |
7432 | * remote.c (remote_serial_quit_handler): Update. | |
7433 | (remote_terminal_inferior, remote_wait_as): Update. | |
7434 | * record-full.c (record_full_wait_1): Update. | |
7435 | * nto-procfs.c (procfs_create_inferior): Update. | |
7436 | * nat/fork-inferior.c (startup_inferior): Update. | |
7437 | * mi/mi-interp.c (mi_new_thread, mi_thread_exit) | |
7438 | (mi_record_changed, mi_inferior_added, mi_inferior_appeared) | |
7439 | (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed) | |
7440 | (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified) | |
7441 | (mi_breakpoint_created, mi_breakpoint_deleted) | |
7442 | (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded) | |
7443 | (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed) | |
7444 | (mi_user_selected_context_changed, report_initial_inferior): | |
7445 | Update. | |
7446 | * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours) | |
7447 | (linux_nat_terminal_inferior): Update. | |
7448 | * infrun.c (follow_fork_inferior) | |
7449 | (handle_vfork_child_exec_or_exit, do_target_resume) | |
7450 | (check_curr_ui_sync_execution_done, handle_inferior_event_1) | |
7451 | (handle_signal_stop, maybe_remove_breakpoints, normal_stop): | |
7452 | Update. | |
7453 | * inflow.c (child_terminal_init, info_terminal_command): Update. | |
7454 | * infcmd.c (post_create_inferior, continue_1, prepare_one_step) | |
7455 | (attach_command): Update. | |
7456 | * infcall.c (call_thread_fsm_should_stop): Update. | |
7457 | * gnu-nat.c (gnu_attach): Update. | |
7458 | * extension.c (struct active_ext_lang_state) | |
7459 | (restore_active_ext_lang): Update. | |
7460 | * exceptions.c (print_flush): Update. | |
7461 | * event-top.c (async_enable_stdin, default_quit_handler): Update. | |
7462 | (struct quit_handler_cleanup_data, restore_quit_handler) | |
7463 | (restore_quit_handler_dtor, make_cleanup_override_quit_handler): | |
7464 | Remove. | |
7465 | * cp-support.c (gdb_demangle): Update. | |
7466 | * breakpoint.c (update_inserted_breakpoint_locations) | |
7467 | (insert_breakpoint_locations, handle_jit_event) | |
7468 | (disable_breakpoints_in_unloaded_shlib): Update. | |
7469 | * annotate.c (annotate_breakpoints_invalid) | |
7470 | (annotate_frames_invalid): Update. | |
7471 | ||
013af3fc TT |
7472 | 2017-09-20 Tom Tromey <tom@tromey.com> |
7473 | ||
7474 | * main.c (catch_command_errors): Rename from | |
7475 | catch_command_errors_const. | |
7476 | (captured_main_1): Update. | |
7477 | ||
06871ae8 PA |
7478 | 2017-09-20 Pedro Alves <palves@redhat.com> |
7479 | ||
7480 | * cli/cli-cmds.c (list_command): Use print_sal_location. | |
7481 | (print_sal_location): New function. | |
7482 | (ambiguous_line_spec): Use print_sal_location. | |
7483 | * linespec.c (symbol_to_sal): Record the symbol in the sal. | |
7484 | * symtab.c (find_function_start_sal): Likewise. | |
7485 | * symtab.h (symtab_and_line::symbol): New field. | |
7486 | ||
e5f25bc5 PA |
7487 | 2017-09-20 Pedro Alves <palves@redhat.com> |
7488 | ||
7489 | * linespec.c (minsym_found): Handle non-text minsyms. | |
7490 | (symbol_to_sal): Record a sal.pc for non-block, non-label symbols. | |
7491 | ||
1b7fa39e WT |
7492 | 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com> |
7493 | ||
7494 | * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing | |
7495 | backslash. | |
7496 | ||
37dd0825 WT |
7497 | 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com> |
7498 | ||
7499 | * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use | |
7500 | vmovups instead vmovaps. | |
7501 | (move_zmm_data_to_memory): Use vmovups instead vmovaps. | |
7502 | ||
4e5a4f58 JB |
7503 | 2017-09-19 John Baldwin <jhb@FreeBSD.org> |
7504 | ||
7505 | * NEWS (Changes since GDB 8.0): Add starti. | |
7506 | * infcmd.c (enum run_break): New. | |
7507 | (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN | |
7508 | case. | |
7509 | (run_command): Use enum run_how. | |
7510 | (start_command): Likewise. | |
7511 | (starti_command): New function. | |
7512 | (RUN_ARGS_HELP): New macro. | |
7513 | (_initialize_infcmd): Use RUN_ARGS_HELP for run and start | |
7514 | commands. Add starti command. | |
7515 | ||
aa70c9f1 YQ |
7516 | 2017-09-19 Yao Qi <yao.qi@linaro.org> |
7517 | ||
7518 | * Makefile.in (monitor.o): Remove the rule. | |
7519 | ||
d6541620 YQ |
7520 | 2017-09-19 Yao Qi <yao.qi@linaro.org> |
7521 | ||
7522 | * annotate.h (struct annotate_arg_emitter): Use | |
7523 | DISABLE_COPY_AND_ASSIGN. | |
7524 | * common/refcounted-object.h (refcounted_object): Likewise. | |
7525 | * completer.h (struct completion_result): Likewise. | |
7526 | * dwarf2read.c (struct dwarf2_per_objfile): Likewise. | |
7527 | * filename-seen-cache.h (filename_seen_cache): Likewise. | |
7528 | * gdbcore.h (thread_section_name): Likewise. | |
7529 | * gdb_regex.h (compiled_regex): Likewise. | |
7530 | * gdbthread.h (scoped_restore_current_thread): Likewise. | |
7531 | * inferior.h (scoped_restore_current_inferior): Likewise. | |
7532 | * jit.c (jit_reader): Likewise. | |
7533 | * linespec.h (struct linespec_result): Likewise. | |
7534 | * mi/mi-parse.h (struct mi_parse): Likewise. | |
7535 | * nat/fork-inferior.c (execv_argv): Likewise. | |
7536 | * progspace.h (scoped_restore_current_program_space): Likewise. | |
7537 | * python/python-internal.h (class gdbpy_enter): Likewise. | |
7538 | * regcache.h (regcache): Likewise. | |
7539 | * target-descriptions.c (struct tdesc_reg): Likewise. | |
7540 | (struct tdesc_type): Likewise. | |
7541 | (struct tdesc_feature): Likewise. | |
7542 | * ui-out.h (ui_out_emit_type): Likewise. | |
7543 | ||
0615127c SM |
7544 | 2017-09-18 Simon Marchi <simon.marchi@ericsson.com> |
7545 | ||
7546 | * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove | |
7547 | label abort_expression. | |
7548 | ||
5e187554 SM |
7549 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
7550 | ||
7551 | * common/buffer.c (buffer_xml_printf): Adjust. | |
7552 | * common/xml-utils.c (xml_escape_text): Change return type to | |
7553 | std::string, update code accordingly. | |
7554 | * common/xml-utils.h (xml_escape_text): Change return type to | |
7555 | std::string. | |
7556 | * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust. | |
7557 | * windows-tdep.c (windows_xfer_shared_library): Adjust. | |
7558 | * unittests/xml-utils-selftests.c (test_xml_escape_text): | |
7559 | Adjust. | |
7560 | ||
c3d7b541 SM |
7561 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
7562 | ||
7563 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file. | |
7564 | (SUBDIR_UNITTESTS_OBS): Add new object file. | |
7565 | * unittests/xml-utils-selftests.c: New file. | |
7566 | ||
1526853e SM |
7567 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
7568 | ||
7569 | * common/selftest.h (selftest): New struct/interface. | |
7570 | (register_test): Add name parameter, add new overload. | |
7571 | (run_tests): Add filter parameter. | |
7572 | (for_each_selftest_ftype): New typedef. | |
7573 | (for_each_selftest): New declaration. | |
7574 | * common/selftest.c (tests): Change type to | |
7575 | map<string, unique_ptr<selftest>>. | |
7576 | (simple_selftest): New struct. | |
7577 | (register_test): New function. | |
7578 | (register_test): Add name parameter and use it. | |
7579 | (run_tests): Add filter parameter and use it. Add prints. | |
7580 | Adjust to vector -> map change. | |
7581 | * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when | |
7582 | registering selftests. | |
7583 | * arm-tdep.c (_initialize_arm_tdep): Likewise. | |
7584 | * disasm-selftests.c (_initialize_disasm_selftests): Likewise. | |
7585 | * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise. | |
7586 | * dwarf2loc.c (_initialize_dwarf2loc): Likewise. | |
7587 | * findvar.c (_initialize_findvar): Likewise. | |
7588 | * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise. | |
7589 | * maint.c (maintenance_selftest): Update call to run_tests. | |
7590 | (maintenance_info_selftests): New function. | |
7591 | (_initialize_maint_cmds): Register "maintenance info selftests" | |
7592 | command. Update "maintenance selftest" doc. | |
7593 | * regcache.c (_initialize_regcache): Add names when registering | |
7594 | selftests. | |
7595 | * rust-exp.y (_initialize_rust_exp): Likewise. | |
7596 | * selftest-arch.c (gdbarch_selftest): New struct. | |
7597 | (gdbarch_tests): Remove. | |
7598 | (register_test_foreach_arch): Add name parameter. Call | |
7599 | register_test. | |
7600 | (tests_with_arch): Remove, move most content to | |
7601 | gdbarch_selftest::operator(). | |
7602 | (_initialize_selftests_foreach_arch): Remove. | |
7603 | * selftest-arch.h (register_test_foreach_arch): Add name | |
7604 | parameter. | |
7605 | (run_tests_with_arch): New declaration. | |
7606 | * utils-selftests.c (_initialize_utils_selftests): Add names | |
7607 | when registering selftests. | |
7608 | * utils.c (_initialize_utils): Likewise. | |
7609 | * unittests/array-view-selftests.c | |
7610 | (_initialize_array_view_selftests): Likewise. | |
7611 | * unittests/environ-selftests.c (_initialize_environ_selftests): | |
7612 | Likewise. | |
7613 | * unittests/function-view-selftests.c | |
7614 | (_initialize_function_view_selftests): Likewise. | |
7615 | * unittests/offset-type-selftests.c | |
7616 | (_initialize_offset_type_selftests): Likewise. | |
7617 | * unittests/optional-selftests.c | |
7618 | (_initialize_optional_selftests): Likewise. | |
7619 | * unittests/scoped_restore-selftests.c | |
7620 | (_initialize_scoped_restore_selftests): Likewise. | |
7621 | * NEWS: Document "maintenance selftest" and "maint info | |
7622 | selftests". | |
7623 | ||
5846367a SM |
7624 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
7625 | ||
7626 | * mi/mi-main.c (mi_load_progress): Restore current_uiout using a | |
7627 | scoped_restore. | |
7628 | ||
bd77e8ff SM |
7629 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
7630 | ||
7631 | * mi/mi-main.c (mi_load_progress): Make uiout variable | |
7632 | a unique_ptr. | |
7633 | ||
26a67918 PA |
7634 | 2017-09-15 Pedro Alves <palves@redhat.com> |
7635 | ||
7636 | * compile/compile-c-types.c (convert_enum, convert_int) | |
7637 | (convert_float): Adjust to refer to int_type_v0 and float_type_v0. | |
7638 | ||
3f8a7804 SM |
7639 | 2017-09-15 Simon Marchi <simon.marchi@ericsson.com> |
7640 | ||
7641 | * dwarf2read.c (copy_string): Remove. | |
7642 | (parse_macro_definition): Replace copy_string with savestring. | |
7643 | ||
8d200706 YQ |
7644 | 2017-09-15 Yao Qi <yao.qi@linaro.org> |
7645 | ||
7646 | * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to | |
7647 | gdb_target_obs. | |
7648 | (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*): | |
7649 | Likewise. | |
7650 | (i[34567]86-*-linux*): Likewise. | |
7651 | ||
d185219d SM |
7652 | 2017-09-14 Simon Marchi <simon.marchi@ericsson.com> |
7653 | ||
7654 | * dwarf2expr.h (dwarf_stack_value): Add constructor. | |
7655 | (dwarf_expr_context) <~dwarf_expr_context>: Define as default. | |
7656 | <stack>: Change type to std::vector. | |
7657 | <stack_len, stack_allocated>: Remove. | |
7658 | <grow_stack>: Remove. | |
7659 | * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust. | |
7660 | (dwarf_expr_context::~dwarf_expr_context): Remove. | |
7661 | (dwarf_expr_context::grow_stack): Remove. | |
7662 | (dwarf_expr_context::push): Adjust. | |
7663 | (dwarf_expr_context::pop): Adjust. | |
7664 | (dwarf_expr_context::fetch): Adjust. | |
7665 | (dwarf_expr_context::fetch_in_stack_memory): Adjust. | |
7666 | (dwarf_expr_context::stack_empty_p): Adjust. | |
7667 | (dwarf_expr_context::execute_stack_op): Adjust. | |
7668 | ||
eccd80d6 SM |
7669 | 2017-09-14 Simon Marchi <simon.marchi@ericsson.com> |
7670 | ||
7671 | * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change | |
7672 | return type to bool. | |
7673 | * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise. | |
7674 | ||
69009882 SM |
7675 | 2017-09-14 Simon Marchi <simon.marchi@ericsson.com> |
7676 | ||
7677 | * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>: | |
7678 | Change type to bool. | |
7679 | (dwarf_stack_value) <in_stack_memory>: Likewise. | |
7680 | (dwarf_expr_context) <push_address>: Change parameter type to | |
7681 | bool. | |
7682 | <fetch_in_stack_memory>: Change return type to bool. | |
7683 | <push>: Change parameter type to bool. | |
7684 | * dwarf2expr.c (dwarf_expr_context::push): Change parameter type | |
7685 | to bool. | |
7686 | (dwarf_expr_context::push_address): Likewise. | |
7687 | (dwarf_expr_context::fetch_in_stack_memory): Change return type | |
7688 | to bool. | |
7689 | (dwarf_expr_context::execute_stack_op): Adjust. | |
7690 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust. | |
7691 | ||
1e467161 SM |
7692 | 2017-09-14 Simon Marchi <simon.marchi@ericsson.com> |
7693 | ||
7694 | * dwarf2expr.h (struct dwarf_expr_piece): Move up. | |
7695 | (struct dwarf_expr_context) <n_pieces>: Remove. | |
7696 | <pieces>: Change type to std::vector. | |
7697 | * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust. | |
7698 | (dwarf_expr_context::~dwarf_expr_context): Don't manually free | |
7699 | pieces. | |
7700 | (dwarf_expr_context::add_piece): Adjust. | |
7701 | * dwarf2loc.c (struct piece_closure): Initialize fields. | |
7702 | <n_pieces>: Remove. | |
7703 | <pieces>: Change type to std::vector. | |
7704 | (allocate_piece_closure): Adjust, change parameter to | |
7705 | std::vector rvalue and std::move it to piece_closure. | |
7706 | (rw_pieced_value): Adjust. | |
7707 | (check_pieced_synthetic_pointer): Adjust. | |
7708 | (indirect_synthetic_pointer): Adjust. | |
7709 | (coerce_pieced_ref): Adjust. | |
7710 | (free_pieced_value_closure): Adjust. Use delete to free | |
7711 | piece_closure. | |
7712 | (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces | |
7713 | to allocate_piece_closure. | |
7714 | (dwarf2_loc_desc_get_symbol_read_needs): Adjust. | |
7715 | ||
0782db84 SM |
7716 | 2017-09-12 Simon Marchi <simon.marchi@ericsson.com> |
7717 | ||
7718 | * probe.h (probe_ops_cp): Remove typedef. | |
7719 | (DEF_VEC_P (probe_ops_cp)): Remove. | |
7720 | (all_probe_ops): Change type to std::vector. | |
7721 | * probe.c (info_probes_for_ops): Adjust to vector change. | |
7722 | (probe_linespec_to_ops): Likewise. | |
7723 | (all_probe_ops): Change type to std::vector. | |
7724 | (_initialize_probe): Adjust to vector change. | |
7725 | * dtrace-probe.c (_initialize_dtrace_probe): Likewise. | |
7726 | * elfread.c (elf_get_probes): Likewise. | |
7727 | * stap-probe.c (_initialize_stap_probe): Likewise. | |
7728 | ||
1eac6bea SM |
7729 | 2017-09-12 Simon Marchi <simon.marchi@ericsson.com> |
7730 | ||
7731 | * probe.h (struct bound_probe): Define constructors. | |
7732 | * probe.c (bound_probe_s): Remove typedef. | |
7733 | (DEF_VEC_O (bound_probe_s)): Remove VEC. | |
7734 | (collect_probes): Change return type to std::vector, remove | |
7735 | cleanup. | |
7736 | (compare_probes): Return bool, change parameter type. Change | |
7737 | semantic to "less than". | |
7738 | (gen_ui_out_table_header_info): Change parameter to std::vector | |
7739 | and update. | |
7740 | (exists_probe_with_pops): Likewise. | |
7741 | (info_probes_for_ops): Update to std::vector change. | |
7742 | (enable_probes_command): Likewise. | |
7743 | (disable_probes_command): Likewise. | |
7744 | ||
aaa63a31 SM |
7745 | 2017-09-12 Simon Marchi <simon.marchi@ericsson.com> |
7746 | ||
7747 | * probe.h (struct probe_ops) <get_probes>: Change parameter from | |
7748 | vec to std::vector. | |
7749 | * probe.c (parse_probes_in_pspace): Update. | |
7750 | (find_probes_in_objfile): Update. | |
7751 | (find_probe_by_pc): Update. | |
7752 | (collect_probes): Update. | |
7753 | (probe_any_get_probes): Update. | |
7754 | * symfile.h (struct sym_probe_fns) <sym_get_probes> Change | |
7755 | return type to reference to std::vector. | |
7756 | * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to | |
7757 | std::vector and update. | |
7758 | (dtrace_process_dof): Likewise. | |
7759 | (dtrace_get_probes): Likewise. | |
7760 | * elfread.c (elf_get_probes): Change return type to std::vector, | |
7761 | store an std::vector in bfd_data. | |
7762 | (probe_key_free): Update to std::vector. | |
7763 | * stap-probe.c (handle_stap_probe): Change parameter to | |
7764 | std::vector and update. | |
7765 | (stap_get_probes): Likewise. | |
7766 | * symfile-debug.c (debug_sym_get_probes): Change return type to | |
7767 | std::vector and update. | |
7768 | ||
cb85b21b TT |
7769 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7770 | ||
7771 | * breakpoint.c (program_breakpoint_here_p): Update. | |
7772 | * target.c (make_scoped_restore_show_memory_breakpoints): Rename | |
7773 | from make_show_memory_breakpoints_cleanup. Return a | |
7774 | scoped_restore_tmpl<int>. | |
7775 | (restore_show_memory_breakpoints): Remove. | |
7776 | * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update. | |
7777 | * mem-break.c (memory_validate_breakpoint): Update. | |
7778 | * ia64-tdep.c (ia64_memory_insert_breakpoint): Update. | |
7779 | (ia64_memory_remove_breakpoint): Update. | |
7780 | (ia64_breakpoint_from_pc): Update. | |
7781 | * target.h (make_scoped_restore_show_memory_breakpoints): Rename | |
7782 | from make_show_memory_breakpoints_cleanup. | |
7783 | ||
8fbc99ef TT |
7784 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7785 | ||
7786 | * d-namespace.c (d_lookup_symbol): Use std::string. | |
7787 | (find_symbol_in_baseclass): Likewise. | |
7788 | ||
50feb4bd TT |
7789 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7790 | ||
7791 | * ctf.c (ctf_start): Use std::string. | |
7792 | ||
c6dc63a1 TT |
7793 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7794 | ||
7795 | * ada-lang.c (is_known_support_routine): Update. | |
7796 | (ada_unhandled_exception_name_addr_from_raise): Update. | |
7797 | * guile/scm-frame.c (gdbscm_frame_name): Update. | |
7798 | * python/py-frame.c (frapy_name): Update. | |
7799 | (frapy_function): Update. | |
7800 | * stack.h (find_frame_funname): Update. | |
7801 | * stack.c (find_frame_funname): Return unique_xmalloc_ptr. | |
7802 | (print_frame): Update. | |
7803 | ||
d6b9b80f TT |
7804 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7805 | ||
7806 | * findcmd.c (put_bits): Take a gdb::byte_vector. | |
7807 | (parse_find_args): Return gdb::byte_vector. "args" now const. | |
7808 | Remove "pattern_bufp" and "pattern_lenp" parameters. Remove | |
7809 | cleanups. | |
7810 | (find_command): Update. | |
7811 | ||
a9921622 TT |
7812 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7813 | ||
7814 | * cli/cli-script.c (class scoped_restore_hook_in): New. | |
7815 | (clear_hook_in_cleanup): Remove. | |
7816 | (execute_cmd_pre_hook, execute_cmd_post_hook): Use | |
7817 | scoped_restore_hook_in. | |
7818 | ||
be0d7abb TT |
7819 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7820 | ||
7821 | * cli/cli-script.c (restore_interp): Remove. | |
7822 | (read_command_lines): Use scoped_restore_interp. | |
7823 | * interps.c (scoped_restore_interp::set_temp): Rename from | |
7824 | interp_set_temp. | |
7825 | * interps.h (class scoped_restore_interp): New. | |
7826 | (interp_set_temp): Remove. | |
7827 | ||
00f675ff TT |
7828 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7829 | ||
7830 | * mi/mi-cmd-catch.c (mi_cmd_catch_assert) | |
7831 | (mi_cmd_catch_exception, mi_catch_load_unload): Update. | |
7832 | * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a | |
7833 | scoped_restore. | |
7834 | (mi_cmd_break_insert_1): Update. | |
7835 | * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a | |
7836 | scoped_restore. | |
7837 | ||
cb791d59 TT |
7838 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7839 | ||
7840 | * demangle.c (demangle_command): Update. | |
7841 | * breakpoint.c (disable_command): Update. | |
7842 | (enable_command): Update. | |
7843 | (find_location_by_number): Make "number" const. Use | |
7844 | get_number_trailer. | |
7845 | * cli/cli-utils.c (extract_arg): Return std::string. | |
7846 | * probe.c (parse_probe_linespec): Update. Change types. | |
7847 | (collect_probes): Take string arguments. | |
7848 | (parse_probe_linespec): Likewise. | |
7849 | (info_probes_for_ops): Update. | |
7850 | (enable_probes_command): Update. | |
7851 | (disable_probes_command): Update. | |
7852 | * break-catch-sig.c (catch_signal_split_args): Update. | |
7853 | * mi/mi-parse.c (mi_parse): Update. | |
7854 | ||
2039bd9f TT |
7855 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7856 | ||
7857 | * language.h (language_enum): Make argument const. | |
7858 | * language.c (language_enum): Make argument const. | |
7859 | ||
f1735a53 TT |
7860 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7861 | ||
7862 | * common/common-utils.h (skip_to_space): Remove macro, redeclare | |
7863 | as function. | |
7864 | (skip_to_space): Rename from skip_to_space_const. | |
7865 | * common/common-utils.c (skip_to_space): New function. | |
7866 | (skip_to_space): Rename from skip_to_space_const. | |
7867 | * cli/cli-utils.h (get_number): Rename from get_number_const. | |
7868 | (extract_arg): Rename from extract_arg_const. | |
7869 | * cli/cli-utils.c (get_number): Rename from get_number_const. | |
7870 | (extract_arg): Rename from extract_arg_const. | |
7871 | (number_or_range_parser::get_number): Use ::get_number. | |
7872 | * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c, | |
7873 | break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c, | |
7874 | cli/cli-script.c, cli/cli-setshow.c, compile/compile.c, | |
7875 | completer.c, demangle.c, disasm.c, findcmd.c, linespec.c, | |
7876 | linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c, | |
7877 | minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c, | |
7878 | python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c, | |
7879 | stap-probe.c, tid-parse.c, tracepoint.c: Update all callers. | |
7880 | ||
7d221d74 TT |
7881 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7882 | ||
7883 | * python/python.c (do_start_initialization): Use | |
7884 | py-event-types.def to initialize types. | |
7885 | Define all object type structures. | |
7886 | * python/python-internal.h: Don't declare event initialization | |
7887 | functions. | |
7888 | * python/py-threadevent.c (thread_event_object_type): Don't | |
7889 | define. | |
7890 | * python/py-stopevent.c (stop_event_object_type): Don't define. | |
7891 | * python/py-signalevent.c (signal_event_object_type): Don't | |
7892 | declare or define. | |
7893 | * python/py-newobjfileevent.c (new_objfile_event_object_type) | |
7894 | (clear_objfiles_event_object_type): Don't declare or define. | |
7895 | * python/py-infevents.c (inferior_call_pre_event_object_type) | |
7896 | (inferior_call_post_event_object_type) | |
7897 | (register_changed_event_object_type) | |
7898 | (memory_changed_event_object_type): Don't declare or define. | |
7899 | * python/py-inferior.c (new_thread_event_object_type) | |
7900 | (new_inferior_event_object_type) | |
7901 | (inferior_deleted_event_object_type): Don't declare or define. | |
7902 | * python/py-exitedevent.c (exited_event_object_type): Don't | |
7903 | declare or define. | |
7904 | * python/py-evts.c (gdbpy_initialize_py_events): Use | |
7905 | py-all-events.def. | |
7906 | * python/py-events.h (thread_event_object_type): Don't declare. | |
7907 | (events_object): Use py-all-events.def. | |
7908 | * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use | |
7909 | py-event-types.def. | |
7910 | * python/py-event-types.def: New file. | |
7911 | * python/py-continueevent.c (create_continue_event_object): Don't | |
7912 | declare or define. | |
7913 | * python/py-bpevent.c (breakpoint_event_object_type): Don't | |
7914 | declare or define. | |
7915 | * python/py-all-events.def: New file. | |
7916 | ||
35c61a1d TT |
7917 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7918 | ||
7919 | * python/py-threadevent.c (create_thread_event_object): Return | |
7920 | gdbpy_ref. | |
7921 | * python/py-stopevent.h (create_stop_event_object) | |
7922 | (create_breakpoint_event_object, create_signal_event_object): | |
7923 | Update. | |
7924 | * python/py-stopevent.c (create_stop_event_object): Return | |
7925 | gdbpy_ref. | |
7926 | (emit_stop_event): Update. | |
7927 | * python/py-signalevent.c (create_signal_event_object): Return | |
7928 | gdbpy_ref. | |
7929 | * python/py-infevents.c (create_inferior_call_event_object): | |
7930 | Update. | |
7931 | * python/py-event.h (create_event_object) | |
7932 | (create_thread_event_object): Update. | |
7933 | * python/py-event.c (create_event_object): Return gdbpy_ref. | |
7934 | * python/py-continueevent.c: Return gdbpy_ref. | |
7935 | * python/py-bpevent.c (create_breakpoint_event_object): Return | |
7936 | gdbpy_ref. | |
7937 | ||
7c96f8c1 TT |
7938 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7939 | ||
7940 | PR python/15622: | |
7941 | * NEWS: Add entry. | |
7942 | * python/python.c (do_start_initialization): Initialize new event | |
7943 | types. | |
7944 | * python/python-internal.h (gdbpy_initialize_new_inferior_event) | |
7945 | (gdbpy_initialize_inferior_deleted_event) | |
7946 | (gdbpy_initialize_new_thread_event): Declare. | |
7947 | * python/py-threadevent.c (create_thread_event_object): Add option | |
7948 | "thread" parameter. | |
7949 | * python/py-inferior.c (new_thread_event_object_type) | |
7950 | (new_inferior_event_object_type) | |
7951 | (inferior_deleted_event_object_type): Declare. | |
7952 | (python_new_inferior, python_inferior_deleted): New functions. | |
7953 | (add_thread_object): Emit new_thread event. | |
7954 | (gdbpy_initialize_inferior): Attach new functions to corresponding | |
7955 | observers. | |
7956 | (new_thread, new_inferior, inferior_deleted): Define new event | |
7957 | types. | |
7958 | * python/py-evts.c (gdbpy_initialize_py_events): Add new | |
7959 | registries. | |
7960 | * python/py-events.h (events_object) <new_inferior, | |
7961 | inferior_deleted, new_thread>: New fields. | |
7962 | * python/py-event.h (create_thread_event_breakpoint): Add optional | |
7963 | "thread" parameter. | |
7964 | ||
72542b8e AB |
7965 | 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com> |
7966 | ||
7967 | * utils.c (abort_with_message): Don't compare gdb_stderr to NULL, | |
7968 | check current_ui instead. | |
7969 | (internal_vproblem): Likewise. | |
7970 | ||
0d64823e SM |
7971 | 2017-09-09 Simon Marchi <simon.marchi@ericsson.com> |
7972 | ||
7973 | * thread.c (print_thread_info_1): Remove unnecessary calls to | |
7974 | uiout->is_mi_like_p. | |
7975 | ||
eb1e02fd TT |
7976 | 2017-09-09 Tom Tromey <tom@tromey.com> |
7977 | ||
7978 | * namespace.h (add_using_directive): Update. | |
7979 | * namespace.c (add_using_directive): Change type of excludes to | |
7980 | std::vector. | |
7981 | * dwarf2read.c (read_import_statement): Use std::vector. | |
7982 | (read_namespace): Update. | |
7983 | * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update. | |
7984 | ||
0fc21fd8 TT |
7985 | 2017-09-09 Tom Tromey <tom@tromey.com> |
7986 | ||
7987 | * linespec.c (create_sals_line_offset): Use gdb::def_vector. | |
7988 | ||
49663d05 TT |
7989 | 2017-09-09 Tom Tromey <tom@tromey.com> |
7990 | ||
7991 | * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector. | |
7992 | ||
0b868b60 TT |
7993 | 2017-09-09 Tom Tromey <tom@tromey.com> |
7994 | ||
7995 | * stack.c (func_command): Use gdb::def_vector. | |
7996 | ||
c0470d48 TT |
7997 | 2017-09-09 Tom Tromey <tom@tromey.com> |
7998 | ||
7999 | * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional, | |
8000 | ui_out_emit_list, ui_out_emit_tuple. | |
8001 | (mi_cmd_var_update): Likewise. | |
8002 | ||
ca5909c7 TT |
8003 | 2017-09-09 Tom Tromey <tom@tromey.com> |
8004 | ||
8005 | * mi/mi-interp.c (mi_user_selected_context_changed): Use | |
8006 | ui_out_redirect_pop. | |
8007 | * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use | |
8008 | ui_out_redirect_pop. | |
8009 | * utils.c (do_ui_out_redirect_pop) | |
8010 | (make_cleanup_ui_out_redirect_pop): Remove. | |
8011 | * top.c (execute_command_to_string): Use ui_out_redirect_pop. | |
8012 | * utils.h (make_cleanup_ui_out_redirect_pop): Remove. | |
8013 | * ui-out.h (ui_out_redirect_pop): New class. | |
8014 | ||
e6a2252a TT |
8015 | 2017-09-09 Tom Tromey <tom@tromey.com> |
8016 | ||
8017 | * mi/mi-main.c (output_cores): Use ui_out_emit_list. | |
8018 | (list_available_thread_groups, mi_cmd_list_thread_groups) | |
8019 | (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory) | |
8020 | (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected): | |
8021 | Likewise. | |
8022 | ||
393702cd TT |
8023 | 2017-09-09 Tom Tromey <tom@tromey.com> |
8024 | ||
8025 | * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use | |
8026 | ui_out_emit_tuple. | |
8027 | ||
76f9c9cf TT |
8028 | 2017-09-09 Tom Tromey <tom@tromey.com> |
8029 | ||
8030 | * target.c (flash_erase_command): Use ui_out_emit_tuple. | |
8031 | * stack.c (print_frame): Use ui_out_emit_tuple. | |
8032 | * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple. | |
8033 | (info_spu_mailbox_command, info_spu_dma_command) | |
8034 | (info_spu_proxydma_command): Likewise. | |
8035 | * mi/mi-main.c (mi_cmd_trace_frame_collected): Use | |
8036 | ui_out_emit_tuple, gdb::byte_vector, bin2hex. | |
8037 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use | |
8038 | ui_out_emit_tuple. | |
8039 | * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple. | |
8040 | ||
dc9fe180 TT |
8041 | 2017-09-09 Tom Tromey <tom@tromey.com> |
8042 | ||
8043 | * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove. | |
8044 | (class ui_out_emit_table): Update comment. | |
8045 | * ui-out.c (do_cleanup_table_end) | |
8046 | (make_cleanup_ui_out_table_begin_end): Remove. | |
8047 | * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table. | |
8048 | (info_spu_dma_cmdlist): Likewise. | |
8049 | * probe.c (info_probes_for_ops): Use ui_out_emit_table. | |
8050 | * darwin-nat-info.c (darwin_debug_regions_recurse): Use | |
8051 | ui_out_emit_table. | |
8052 | ||
f8cc3da6 TT |
8053 | 2017-09-09 Tom Tromey <tom@tromey.com> |
8054 | ||
8055 | * thread.c (print_thread_info_1): Use ui_out_emit_table, | |
8056 | ui_out_emit_list, gdb::optional. | |
8057 | ||
481695ed JB |
8058 | 2017-09-09 John Baldwin <jhb@FreeBSD.org> |
8059 | ||
8060 | * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat | |
8061 | prototype. | |
8062 | * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep | |
8063 | prototype. | |
8064 | * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep | |
8065 | prototype. | |
8066 | * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype. | |
8067 | * ada-exp.y: Remove _initialize_ada_exp prototype. | |
8068 | * ada-lang.c: Remove _initialize_ada_language prototype. | |
8069 | * ada-tasks.c: Remove _initialize_tasks prototype. | |
8070 | * addrmap.c: Remove _initialize_addrmap prototype. | |
8071 | * agent.c: Remove _initialize_agent prototype. | |
8072 | * aix-thread.c: Remove _initialize_aix_thread prototype. | |
8073 | * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype. | |
8074 | * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype. | |
8075 | * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep | |
8076 | prototype. | |
8077 | * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype. | |
8078 | * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype. | |
8079 | * alpha-tdep.c: Remove _initialize_alpha_tdep prototype. | |
8080 | * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep | |
8081 | prototype. | |
8082 | * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep | |
8083 | prototype. | |
8084 | * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype. | |
8085 | * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype. | |
8086 | * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype. | |
8087 | * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep | |
8088 | prototype. | |
8089 | * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype. | |
8090 | * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype. | |
8091 | * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype. | |
8092 | * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype. | |
8093 | * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype. | |
8094 | * amd64-tdep.c: Remove _initialize_amd64_tdep prototype. | |
8095 | * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat | |
8096 | prototype. | |
8097 | * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep | |
8098 | prototype. | |
8099 | * annotate.c: Remove _initialize_annotate prototype. | |
8100 | * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype. | |
8101 | * arc-tdep.c: Remove _initialize_arc_tdep prototype. | |
8102 | * arch-utils.c: Remove _initialize_gdbarch_utils prototype. | |
8103 | * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype. | |
8104 | * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype. | |
8105 | * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype. | |
8106 | * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype. | |
8107 | * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep | |
8108 | prototype. | |
8109 | * arm-tdep.c: Remove _initialize_arm_tdep prototype. | |
8110 | * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype. | |
8111 | * auto-load.c: Remove _initialize_auto_load prototype. | |
8112 | * auxv.c: Remove _initialize_auxv prototype. | |
8113 | * avr-tdep.c: Remove _initialize_avr_tdep prototype. | |
8114 | * ax-gdb.c: Remove _initialize_ax_gdb prototype. | |
8115 | * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype. | |
8116 | * bfin-tdep.c: Remove _initialize_bfin_tdep prototype. | |
8117 | * break-catch-sig.c: Remove _initialize_break_catch_sig prototype. | |
8118 | * break-catch-syscall.c: Remove _initialize_break_catch_syscall | |
8119 | prototype. | |
8120 | * break-catch-throw.c: Remove _initialize_break_catch_throw | |
8121 | prototype. | |
8122 | * breakpoint.c: Remove _initialize_breakpoint prototype. | |
8123 | * bsd-uthread.c: Remove _initialize_bsd_uthread prototype. | |
8124 | * btrace.c: Remove _initialize_btrace prototype. | |
8125 | * charset.c: Remove _initialize_charset prototype. | |
8126 | * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype. | |
8127 | * cli/cli-dump.c: Remove _initialize_cli_dump prototype. | |
8128 | * cli/cli-interp.c: Remove _initialize_cli_interp prototype. | |
8129 | * cli/cli-logging.c: Remove _initialize_cli_logging prototype. | |
8130 | * cli/cli-script.c: Remove _initialize_cli_script prototype. | |
8131 | * coff-pe-read.c: Remove _initialize_coff_pe_read prototype. | |
8132 | * coffread.c: Remove _initialize_coffread prototype. | |
8133 | * compile/compile.c: Remove _initialize_compile prototype. | |
8134 | * complaints.c: Remove _initialize_complaints prototype. | |
8135 | * completer.c: Remove _initialize_completer prototype. | |
8136 | * copying.awk: Remove _initialize_copying prototype. | |
8137 | * copying.c: Regenerate. | |
8138 | * core-regset.c: Remove _initialize_core_regset prototype. | |
8139 | * corefile.c: Remove _initialize_core prototype. | |
8140 | * corelow.c: Remove _initialize_corelow prototype. | |
8141 | * cp-abi.c: Remove _initialize_cp_abi prototype. | |
8142 | * cp-namespace.c: Remove _initialize_cp_namespace prototype. | |
8143 | * cp-support.c: Remove _initialize_cp_support prototype. | |
8144 | * cp-valprint.c: Remove _initialize_cp_valprint prototype. | |
8145 | * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype. | |
8146 | * cris-tdep.c: Remove _initialize_cris_tdep prototype. | |
8147 | * ctf.c: Remove _initialize_ctf prototype. | |
8148 | * d-lang.c: Remove _initialize_d_language prototype. | |
8149 | * darwin-nat-info.c: Remove _initialize_darwin_info_commands | |
8150 | prototype. | |
8151 | * darwin-nat.c: Remove _initialize_darwin_inferior prototype. | |
8152 | * dbxread.c: Remove _initialize_dbxread prototype. | |
8153 | * dcache.c: Remove _initialize_dcache prototype. | |
8154 | * demangle.c: Remove _initialize_demangler prototype. | |
8155 | * disasm-selftests.c: Remove _initialize_disasm_selftests | |
8156 | prototype. | |
8157 | * disasm.c: Remove _initialize_disasm prototype. | |
8158 | * dtrace-probe.c: Remove _initialize_dtrace_probe prototype. | |
8159 | * dummy-frame.c: Remove _initialize_dummy_frame prototype. | |
8160 | * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame | |
8161 | prototype. | |
8162 | * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype. | |
8163 | * dwarf2expr.c: Remove _initialize_dwarf2expr prototype. | |
8164 | * dwarf2loc.c: Remove _initialize_dwarf2loc prototype. | |
8165 | * dwarf2read.c: Remove _initialize_dwarf2_read prototype. | |
8166 | * elfread.c: Remove _initialize_elfread prototype. | |
8167 | * exec.c: Remove _initialize_exec prototype. | |
8168 | * extension.c: Remove _initialize_extension prototype. | |
8169 | * f-lang.c: Remove _initialize_f_language prototype. | |
8170 | * f-valprint.c: Remove _initialize_f_valprint prototype. | |
8171 | * fbsd-nat.c: Remove _initialize_fbsd_nat prototype. | |
8172 | * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype. | |
8173 | * filesystem.c: Remove _initialize_filesystem prototype. | |
8174 | * findcmd.c: Remove _initialize_mem_search prototype. | |
8175 | * fork-child.c: Remove _initialize_fork_child prototype. | |
8176 | * frame-base.c: Remove _initialize_frame_base prototype. | |
8177 | * frame-unwind.c: Remove _initialize_frame_unwind prototype. | |
8178 | * frame.c: Remove _initialize_frame prototype. | |
8179 | * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype. | |
8180 | * frv-tdep.c: Remove _initialize_frv_tdep prototype. | |
8181 | * ft32-tdep.c: Remove _initialize_ft32_tdep prototype. | |
8182 | * gcore.c: Remove _initialize_gcore prototype. | |
8183 | * gdb_bfd.c: Remove _initialize_gdb_bfd prototype. | |
8184 | * gdbarch.c: Regenerate. | |
8185 | * gdbarch.sh: Remove _initialize_gdbarch prototype. | |
8186 | * gdbtypes.c: Remove _initialize_gdbtypes prototype. | |
8187 | * gnu-nat.c: Remove _initialize_gnu_nat prototype. | |
8188 | * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype. | |
8189 | * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype. | |
8190 | * go-lang.c: Remove _initialize_go_language prototype. | |
8191 | * go32-nat.c: Remove _initialize_go32_nat prototype. | |
8192 | * guile/guile.c: Remove _initialize_guile prototype. | |
8193 | * h8300-tdep.c: Remove _initialize_h8300_tdep prototype. | |
8194 | * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype. | |
8195 | * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype. | |
8196 | * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype. | |
8197 | * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype. | |
8198 | * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype. | |
8199 | * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype. | |
8200 | * hppa-tdep.c: Remove _initialize_hppa_tdep prototype. | |
8201 | * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype. | |
8202 | * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep | |
8203 | prototype. | |
8204 | * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep | |
8205 | prototype. | |
8206 | * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype. | |
8207 | * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype. | |
8208 | * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype. | |
8209 | * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype. | |
8210 | * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype. | |
8211 | * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype. | |
8212 | * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype. | |
8213 | * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype. | |
8214 | * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype. | |
8215 | * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype. | |
8216 | * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype. | |
8217 | * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype. | |
8218 | * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype. | |
8219 | * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype. | |
8220 | * i386-tdep.c: Remove _initialize_i386_tdep prototype. | |
8221 | * i386-windows-nat.c: Remove _initialize_i386_windows_nat | |
8222 | prototype. | |
8223 | * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame | |
8224 | prototype. | |
8225 | * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype. | |
8226 | * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype. | |
8227 | * ia64-tdep.c: Remove _initialize_ia64_tdep prototype. | |
8228 | * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype. | |
8229 | * infcall.c: Remove _initialize_infcall prototype. | |
8230 | * infcmd.c: Remove _initialize_infcmd prototype. | |
8231 | * inferior.c: Remove _initialize_inferiors prototype. | |
8232 | * inflow.c: Remove _initialize_inflow prototype. | |
8233 | * infrun.c: Remove _initialize_infrun prototype. | |
8234 | * interps.c: Remove _initialize_interpreter prototype. | |
8235 | * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype. | |
8236 | * jit.c: Remove _initialize_jit prototype. | |
8237 | * language.c: Remove _initialize_language prototype. | |
8238 | * linux-fork.c: Remove _initialize_linux_fork prototype. | |
8239 | * linux-nat.c: Remove _initialize_linux_nat prototype. | |
8240 | * linux-tdep.c: Remove _initialize_linux_tdep prototype. | |
8241 | * linux-thread-db.c: Remove _initialize_thread_db prototype. | |
8242 | * lm32-tdep.c: Remove _initialize_lm32_tdep prototype. | |
8243 | * m2-lang.c: Remove _initialize_m2_language prototype. | |
8244 | * m32c-tdep.c: Remove _initialize_m32c_tdep prototype. | |
8245 | * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype. | |
8246 | * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype. | |
8247 | * m32r-tdep.c: Remove _initialize_m32r_tdep prototype. | |
8248 | * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype. | |
8249 | * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype. | |
8250 | * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype. | |
8251 | * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype. | |
8252 | * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype. | |
8253 | * m68k-tdep.c: Remove _initialize_m68k_tdep prototype. | |
8254 | * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype. | |
8255 | * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype. | |
8256 | * machoread.c: Remove _initialize_machoread prototype. | |
8257 | * macrocmd.c: Remove _initialize_macrocmd prototype. | |
8258 | * macroscope.c: Remove _initialize_macroscope prototype. | |
8259 | * maint.c: Remove _initialize_maint_cmds prototype. | |
8260 | * mdebugread.c: Remove _initialize_mdebugread prototype. | |
8261 | * memattr.c: Remove _initialize_mem prototype. | |
8262 | * mep-tdep.c: Remove _initialize_mep_tdep prototype. | |
8263 | * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype. | |
8264 | * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype. | |
8265 | * mi/mi-interp.c: Remove _initialize_mi_interp prototype. | |
8266 | * mi/mi-main.c: Remove _initialize_mi_main prototype. | |
8267 | * microblaze-linux-tdep.c: Remove | |
8268 | _initialize_microblaze_linux_tdep prototype. | |
8269 | * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype. | |
8270 | * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype. | |
8271 | * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype. | |
8272 | * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype. | |
8273 | * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype. | |
8274 | * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype. | |
8275 | * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype. | |
8276 | * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype. | |
8277 | * mips-tdep.c: Remove _initialize_mips_tdep prototype. | |
8278 | * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype. | |
8279 | * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep | |
8280 | prototype. | |
8281 | * mipsread.c: Remove _initialize_mipsread prototype. | |
8282 | * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep | |
8283 | prototype. | |
8284 | * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype. | |
8285 | * moxie-tdep.c: Remove _initialize_moxie_tdep prototype. | |
8286 | * msp430-tdep.c: Remove _initialize_msp430_tdep prototype. | |
8287 | * mt-tdep.c: Remove _initialize_mt_tdep prototype. | |
8288 | * nds32-tdep.c: Remove _initialize_nds32_tdep prototype. | |
8289 | * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep | |
8290 | prototype. | |
8291 | * nios2-tdep.c: Remove _initialize_nios2_tdep prototype. | |
8292 | * nto-procfs.c: Remove _initialize_procfs prototype. | |
8293 | * nto-tdep.c: Remove _initialize_nto_tdep prototype. | |
8294 | * objc-lang.c: Remove _initialize_objc_language prototype. | |
8295 | * objfiles.c: Remove _initialize_objfiles prototype. | |
8296 | * observer.c: Remove observer_test_first_notification_function, | |
8297 | observer_test_second_notification_function, | |
8298 | observer_test_third_notification_function, and | |
8299 | _initialize_observer prototypes. | |
8300 | * opencl-lang.c: Remove _initialize_opencl_language prototypes. | |
8301 | * osabi.c: Remove _initialize_gdb_osabi prototype. | |
8302 | * osdata.c: Remove _initialize_osdata prototype. | |
8303 | * p-valprint.c: Remove _initialize_pascal_valprint prototype. | |
8304 | * parse.c: Remove _initialize_parse prototype. | |
8305 | * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype. | |
8306 | * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype. | |
8307 | * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype. | |
8308 | * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype. | |
8309 | * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype. | |
8310 | * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype. | |
8311 | * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype. | |
8312 | * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype. | |
8313 | * printcmd.c: Remove _initialize_printcmd prototype. | |
8314 | * probe.c: Remove _initialize_probe prototype. | |
8315 | * proc-api.c: Remove _initialize_proc_api prototype. | |
8316 | * proc-events.c: Remove _initialize_proc_events prototype. | |
8317 | * proc-service.c: Remove _initialize_proc_service prototype. | |
8318 | * procfs.c: Remove _initialize_procfs prototype. | |
8319 | * psymtab.c: Remove _initialize_psymtab prototype. | |
8320 | * python/python.c: Remove _initialize_python prototype. | |
8321 | * ravenscar-thread.c: Remove _initialize_ravenscar prototype. | |
8322 | * record-btrace.c: Remove _initialize_record_btrace prototype. | |
8323 | * record-full.c: Remove _initialize_record_full prototype. | |
8324 | * record.c: Remove _initialize_record prototype. | |
8325 | * regcache.c: Remove _initialize_regcache prototype. | |
8326 | * reggroups.c: Remove _initialize_reggroup prototype. | |
8327 | * remote-notif.c: Remove _initialize_notif prototype. | |
8328 | * remote-sim.c: Remove _initialize_remote_sim prototype. | |
8329 | * remote.c: Remove _initialize_remote prototype. | |
8330 | * reverse.c: Remove _initialize_reverse prototype. | |
8331 | * rl78-tdep.c: Remove _initialize_rl78_tdep prototype. | |
8332 | * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype. | |
8333 | * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep | |
8334 | prototype. | |
8335 | * rs6000-nat.c: Remove _initialize_rs6000_nat prototype. | |
8336 | * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype. | |
8337 | * rust-exp.y: Remove _initialize_rust_exp prototype. | |
8338 | * rx-tdep.c: Remove _initialize_rx_tdep prototype. | |
8339 | * s390-linux-nat.c: Remove _initialize_s390_nat prototype. | |
8340 | * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype. | |
8341 | * score-tdep.c: Remove _initialize_score_tdep prototype. | |
8342 | * selftest-arch.c: Remove _initialize_selftests_foreach_arch | |
8343 | prototype. | |
8344 | * ser-go32.c: Remove _initialize_ser_dos prototype. | |
8345 | * ser-mingw.c: Remove _initialize_ser_windows prototype. | |
8346 | * ser-pipe.c: Remove _initialize_ser_pipe prototype. | |
8347 | * ser-tcp.c: Remove _initialize_ser_tcp prototype. | |
8348 | * ser-unix.c: Remove _initialize_ser_hardwire prototype. | |
8349 | * serial.c: Remove _initialize_serial prototype. | |
8350 | * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype. | |
8351 | * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype. | |
8352 | * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype. | |
8353 | * sh-tdep.c: Remove _initialize_sh_tdep prototype. | |
8354 | * skip.c: Remove _initialize_step_skip prototype. | |
8355 | * sol-thread.c: Remove _initialize_sol_thread prototype. | |
8356 | * solib-aix.c: Remove _initialize_solib_aix prototype. | |
8357 | * solib-darwin.c: Remove _initialize_darwin_solib prototype. | |
8358 | * solib-dsbt.c: Remove _initialize_dsbt_solib prototype. | |
8359 | * solib-frv.c: Remove _initialize_frv_solib prototype. | |
8360 | * solib-spu.c: Remove _initialize_spu_solib prototype. | |
8361 | * solib-svr4.c: Remove _initialize_svr4_solib prototype. | |
8362 | * solib-target.c: Remove _initialize_solib_target prototype. | |
8363 | * solib.c: Remove _initialize_solib prototype. | |
8364 | * source.c: Remove _initialize_source prototype. | |
8365 | * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype. | |
8366 | * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep | |
8367 | prototype. | |
8368 | * sparc-nat.c: Remove _initialize_sparc_nat prototype. | |
8369 | * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype. | |
8370 | * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype. | |
8371 | * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep | |
8372 | prototype. | |
8373 | * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype. | |
8374 | * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype. | |
8375 | * sparc-tdep.c: Remove _initialize_sparc_tdep prototype. | |
8376 | * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat | |
8377 | prototype. | |
8378 | * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep | |
8379 | prototype. | |
8380 | * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat | |
8381 | prototype. | |
8382 | * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep | |
8383 | prototype. | |
8384 | * sparc64-nat.c: Remove _initialize_sparc64_nat prototype. | |
8385 | * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat | |
8386 | prototype. | |
8387 | * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep | |
8388 | prototype. | |
8389 | * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat | |
8390 | prototype. | |
8391 | * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep | |
8392 | prototype. | |
8393 | * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep | |
8394 | prototype. | |
8395 | * spu-linux-nat.c: Remove _initialize_spu_nat prototype. | |
8396 | * spu-multiarch.c: Remove _initialize_spu_multiarch prototype. | |
8397 | * spu-tdep.c: Remove _initialize_spu_tdep prototype. | |
8398 | * stabsread.c: Remove _initialize_stabsread prototype. | |
8399 | * stack.c: Remove _initialize_stack prototype. | |
8400 | * stap-probe.c: Remove _initialize_stap_probe prototype. | |
8401 | * std-regs.c: Remove _initialize_frame_reg prototype. | |
8402 | * symfile-debug.c: Remove _initialize_symfile_debug prototype. | |
8403 | * symfile-mem.c: Remove _initialize_symfile_mem prototype. | |
8404 | * symfile.c: Remove _initialize_symfile prototype. | |
8405 | * symmisc.c: Remove _initialize_symmisc prototype. | |
8406 | * symtab.c: Remove _initialize_symtab prototype. | |
8407 | * target-dcache.c: Remove _initialize_target_dcache prototype. | |
8408 | * target-descriptions.c: Remove _initialize_target_descriptions | |
8409 | prototype. | |
8410 | * thread.c: Remove _initialize_thread prototype. | |
8411 | * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep | |
8412 | prototype. | |
8413 | * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype. | |
8414 | * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype. | |
8415 | * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep | |
8416 | prototype. | |
8417 | * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype. | |
8418 | * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype. | |
8419 | * tracefile.c: Remove _initialize_tracefile prototype. | |
8420 | * tracepoint.c: Remove _initialize_tracepoint prototype. | |
8421 | * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype. | |
8422 | * tui/tui-interp.c: Remove _initialize_tui_interp prototype. | |
8423 | * tui/tui-layout.c: Remove _initialize_tui_layout prototype. | |
8424 | * tui/tui-regs.c: Remove _initialize_tui_regs prototype. | |
8425 | * tui/tui-stack.c: Remove _initialize_tui_stack prototype. | |
8426 | * tui/tui-win.c: Remove _initialize_tui_win prototype. | |
8427 | * tui/tui.c: Remove _initialize_tui prototype. | |
8428 | * typeprint.c: Remove _initialize_typeprint prototype. | |
8429 | * user-regs.c: Remove _initialize_user_regs prototype. | |
8430 | * utils.c: Remove _initialize_utils prototype. | |
8431 | * v850-tdep.c: Remove _initialize_v850_tdep prototype. | |
8432 | * valarith.c: Remove _initialize_valarith prototype. | |
8433 | * valops.c: Remove _initialize_valops prototype. | |
8434 | * valprint.c: Remove _initialize_valprint prototype. | |
8435 | * value.c: Remove _initialize_values prototype. | |
8436 | * varobj.c: Remove _initialize_varobj prototype. | |
8437 | * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype. | |
8438 | * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype. | |
8439 | * vax-tdep.c: Remove _initialize_vax_tdep prototype. | |
8440 | * windows-nat.c: Remove _initialize_windows_nat, | |
8441 | _initialize_check_for_gdb_ini, and _initialize_loadable | |
8442 | prototypes. | |
8443 | * windows-tdep.c: Remove _initialize_windows_tdep prototype. | |
8444 | * xcoffread.c: Remove _initialize_xcoffread prototype. | |
8445 | * xml-support.c: Remove _initialize_xml_support prototype. | |
8446 | * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype. | |
8447 | * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat | |
8448 | prototype. | |
8449 | * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep | |
8450 | prototype. | |
8451 | * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype. | |
8452 | ||
a611b5cb KS |
8453 | 2017-09-08 Keith Seitz <keiths@redhat.com> |
8454 | ||
8455 | * dwarf2read.c (struct field_info) <fnfields>: Remove unused | |
8456 | field. | |
8457 | ||
469412dd CW |
8458 | 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com> |
8459 | ||
8460 | * f-valprint.c (f_val_print): Remove check for one byte | |
8461 | sized integers. Remove printing of character type. | |
8462 | ||
a5ad232b FP |
8463 | 2017-09-08 Frank Penczek <frank.penczek@intel.com> |
8464 | Christoph Weinmann <christoph.t.weinmann@intel.com> | |
8465 | Bernhard Heckel <bernhard.heckel@intel.com> | |
8466 | ||
8467 | * f-typeprint.c (f_type_print_base): Use fprintfi_filtered | |
8468 | to maintain proper indentation when printing pointers/refs. | |
8469 | ||
e5014227 JB |
8470 | 2017-09-07 Joel Brobecker <brobecker@adacore.com> |
8471 | ||
8472 | GDB 8.0.1 released. | |
8473 | ||
63c99141 JB |
8474 | 2017-09-07 Joel Brobecker <brobecker@adacore.com> |
8475 | ||
8476 | * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell. | |
8477 | ||
69c1e056 TT |
8478 | 2017-09-05 Tom Tromey <tom@tromey.com> |
8479 | ||
8480 | * parse.c (funcall_chain): Now a std::vector. | |
8481 | (start_arglist, end_arglist): Simplify. | |
8482 | (free_funcalls): Remove. | |
8483 | (parse_exp_in_context_1): Remove cleanup. | |
8484 | ||
fef704bf TT |
8485 | 2017-09-05 Tom Tromey <tom@tromey.com> |
8486 | ||
8487 | * go-exp.y (go_parse): Don't create a cleanup. | |
8488 | ||
5613c585 TT |
8489 | 2017-09-05 Tom Tromey <tom@tromey.com> |
8490 | ||
8491 | * d-exp.y (PrimaryExpression): Use std::string. | |
8492 | (d_parse): Don't create a cleanup. | |
8493 | ||
eae49211 TT |
8494 | 2017-09-05 Tom Tromey <tom@tromey.com> |
8495 | ||
8496 | * utils.c (do_clear_parser_state): Remove. | |
8497 | (make_cleanup_clear_parser_state): Remove. | |
8498 | * p-exp.y (pascal_parse): Use scoped_restore. | |
8499 | * m2-exp.y (m2_parse): Use scoped_restore. | |
8500 | * f-exp.y (f_parse): Use scoped_restore. | |
8501 | * d-exp.y (d_parse): Use scoped_restore. | |
8502 | * c-exp.y (c_parse): Use scoped_restore. | |
8503 | * ada-exp.y (ada_parse): Use scoped_restore. | |
8504 | * utils.h (make_cleanup_clear_parser_state): Remove. | |
8505 | ||
73b9be8b KS |
8506 | 2017-09-06 Keith Seitz <keiths@redhat.com> |
8507 | ||
8508 | * dwarf2read.c (dw2_linkage_name_attr): New function. | |
8509 | (dw2_linkage_name): New function. | |
8510 | (dwarf2_compute_name, dwarf2_physname, read_call_site_scope) | |
8511 | (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name. | |
8512 | (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr. | |
8513 | ||
a102602b KR |
8514 | 2017-09-06 Kamil Rytarowski <n54@gmx.com> |
8515 | ||
8516 | * config/djgpp/djconfig.sh: Correct shell portability issue. | |
8517 | ||
28ad437d KR |
8518 | 2017-09-06 Kamil Rytarowski <n54@gmx.com> |
8519 | ||
8520 | * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD. | |
8521 | ||
351787dd JB |
8522 | 2017-09-06 John Baldwin <jhb@FreeBSD.org> |
8523 | ||
8524 | * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c. | |
8525 | * NEWS: Mention new FreeBSD/mips native configuration. | |
8526 | * configure.host: Add aarch64*-*-freebsd*. | |
8527 | * configure.nat: Likewise. | |
8528 | * aarch64-fbsd-nat.c: New file. | |
8529 | ||
c0f84956 JB |
8530 | 2017-09-06 John Baldwin <jhb@FreeBSD.org> |
8531 | ||
8532 | * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o. | |
8533 | (ALLDEPFILES): Add aarch64-fbsd-tdep.c. | |
8534 | * NEWS: Mention new FreeBSD/aarch64 target. | |
8535 | * configure.tgt: Add aarch64*-*-freebsd*. | |
8536 | * aarch64-fbsd-tdep.c: New file. | |
8537 | * aarch64-fbsd-tdep.h: New file. | |
8538 | ||
7610297a KR |
8539 | 2017-09-06 Kamil Rytarowski <n54@gmx.com> |
8540 | ||
8541 | * MAINTAINERS (Write After Approval): Add Kamil Rytarowski. | |
8542 | ||
fbd1b771 JK |
8543 | 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
8544 | ||
8545 | * parse.c (find_minsym_type_and_address): Don't relocate addresses | |
8546 | of TLS symbols. | |
8547 | ||
5ca79eae PW |
8548 | 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
8549 | ||
8550 | * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init | |
8551 | call. | |
8552 | ||
bf93d7ba SM |
8553 | 2017-09-05 Simon Marchi <simon.marchi@ericsson.com> |
8554 | ||
8555 | * infrun.c (follow_exec): Call add_thread after | |
8556 | target_find_description. | |
8557 | ||
1bb7c059 SM |
8558 | 2017-09-05 Simon Marchi <simon.marchi@ericsson.com> |
8559 | ||
8560 | * infrun.c (handle_inferior_event_1): When exec'ing, read | |
8561 | stop_pc after follow_exec. | |
8562 | ||
fc809827 SM |
8563 | 2017-09-05 Simon Marchi <simon.marchi@ericsson.com> |
8564 | ||
8565 | * remote.c (process_g_packet): Update error message. | |
8566 | ||
d2fcdd85 YQ |
8567 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8568 | ||
8569 | * configure.tgt (gdb_target_obs): Add i386.o for x86_64-* | |
8570 | targets. | |
8571 | ||
e69570ee PA |
8572 | 2017-09-05 Pedro Alves <palves@redhat.com> |
8573 | ||
8574 | * eval.c (eval_call, evaluate_funcall): New functions, factored | |
8575 | out from ... | |
8576 | (evaluate_subexp_standard): ... this. | |
8577 | ||
22916b07 YQ |
8578 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8579 | ||
8580 | * amd64-tdep.c (amd64_target_description): Create target | |
8581 | descriptions. | |
8582 | (_initialize_amd64_tdep): Don't call functions | |
8583 | initialize_tdesc_amd64_*. Add self tests. | |
8584 | * arch/amd64.c (amd64_create_target_description): Add parameter | |
8585 | is_linux. Call set_tdesc_osabi if is_linux is true. | |
8586 | * arch/amd64.h (amd64_create_target_description): Update the | |
8587 | declaration. | |
8588 | * arch/i386.c (i386_create_target_description): Add parameter | |
8589 | is_linux. Call set_tdesc_osabi if is_linux is true. | |
8590 | * arch/i386.h (i386_create_target_description): Update | |
8591 | declaration. | |
8592 | * configure.tgt: Add i386.o to gdb_target_obs. | |
8593 | * features/Makefile (XMLTOC): Remove i386/*.xml. | |
8594 | * features/i386/amd64-avx-avx512.c: Remove. | |
8595 | * features/i386/amd64-avx-mpx-avx512-pku.c: Remove. | |
8596 | * features/i386/amd64-avx-mpx.c: Remove. | |
8597 | * features/i386/amd64-avx.c: Remove. | |
8598 | * features/i386/amd64-mpx.c: Remove. | |
8599 | * features/i386/amd64.c: Remove. | |
8600 | * features/i386/i386-avx-avx512.c: Remove. | |
8601 | * features/i386/i386-avx-mpx-avx512-pku.c: Remove. | |
8602 | * features/i386/i386-avx-mpx.c: Remove. | |
8603 | * features/i386/i386-avx.c: Remove. | |
8604 | * features/i386/i386-mmx.c: Remove. | |
8605 | * features/i386/i386-mpx.c: Remove. | |
8606 | * features/i386/i386.c: Remove. | |
8607 | * i386-tdep.c: Don't include features/i386/i386*.c., include | |
8608 | target-descriptions.h and arch/i386.h. | |
8609 | (i386_target_description): Create target descriptions. | |
8610 | (i386_gdbarch_init): Don't call initialize_tdesc_i386_* | |
8611 | functions. Do self tests. | |
8612 | ||
0854b7b1 YQ |
8613 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8614 | ||
8615 | * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml. | |
8616 | * features/i386/amd64-avx-avx512-linux.c: Removed. | |
8617 | * features/i386/amd64-avx-linux.c: Removed. | |
8618 | * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed. | |
8619 | * features/i386/amd64-avx-mpx-linux.c: Removed. | |
8620 | * features/i386/amd64-linux.c: Removed. | |
8621 | * features/i386/amd64-mpx-linux.c: Removed. | |
8622 | * features/i386/x32-avx-avx512-linux.c: Removed. | |
8623 | * features/i386/x32-avx-linux.c: Removed. | |
8624 | * features/i386/x32-linux.c: Removed. | |
8625 | ||
b4570e4b YQ |
8626 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8627 | ||
8628 | * amd64-linux-tdep.c: Include arch/amd64.h. Don't include | |
8629 | features/i386/*.c. | |
8630 | (amd64_linux_read_description): Call | |
8631 | amd64_create_target_description. | |
8632 | * arch/amd64.c: New file. | |
8633 | * arch/amd64.h: New file. | |
8634 | * configure.tgt (x86_64-*-linux*): Append amd64.o. | |
8635 | * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o. | |
8636 | ||
6c73f67f YQ |
8637 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8638 | ||
8639 | * amd64-linux-tdep.c: Don't include amd64-XXX-linux and | |
8640 | x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c. | |
8641 | (amd64_linux_read_description): Create target descriptions. | |
8642 | (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX | |
8643 | functions. Add unit tests. | |
8644 | * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and | |
8645 | x32-core.xml. | |
8646 | * features/i386/64bit-avx.c: Generated. | |
8647 | * features/i386/64bit-avx512.c: Generated. | |
8648 | * features/i386/64bit-core.c: Generated. | |
8649 | * features/i386/64bit-linux.c: Generated. | |
8650 | * features/i386/64bit-mpx.c: Generated. | |
8651 | * features/i386/64bit-pkeys.c: Generated. | |
8652 | * features/i386/64bit-segments.c: Generated. | |
8653 | * features/i386/64bit-sse.c: Generated. | |
8654 | * features/i386/x32-core.c: Generated. | |
8655 | * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature | |
8656 | c files for amd64-linux and x32-linux. | |
8657 | ||
9d3d478b YQ |
8658 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8659 | ||
8660 | * amd64-linux-tdep.c (amd64_linux_read_description): New | |
8661 | function. | |
8662 | (amd64_linux_core_read_description): Call | |
8663 | amd64_linux_read_description. | |
8664 | (amd64_linux_init_abi): Likewise. | |
8665 | (amd64_x32_linux_init_abi): Likewise. | |
8666 | * amd64-linux-tdep.h (amd64_linux_read_description): Declare. | |
8667 | * x86-linux-nat.c (x86_linux_read_description): Call | |
8668 | amd64_linux_read_description. | |
8669 | ||
b9f1d50f YQ |
8670 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8671 | ||
8672 | * amd64-linux-tdep.c (amd64_linux_core_read_description): Update | |
8673 | comments. | |
8674 | ||
188c9e6d YQ |
8675 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8676 | ||
8677 | * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml. | |
8678 | * features/i386/i386-avx-avx512-linux.c: Remove. | |
8679 | * features/i386/i386-avx-linux.c: Remove. | |
8680 | * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove. | |
8681 | * features/i386/i386-avx-mpx-linux.c: Remove. | |
8682 | * features/i386/i386-linux.c: Remove. | |
8683 | * features/i386/i386-mmx-linux.c: Remove. | |
8684 | * features/i386/i386-mpx-linux.c: Remove. | |
8685 | ||
5f035c07 YQ |
8686 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8687 | ||
8688 | * Makefile.in (ALL_TARGET_OBS): Add i386.o. | |
8689 | (SFILES): Add arch/i386.c. | |
8690 | (HFILES_NO_SRCDIR): Add arch/i386.h. | |
8691 | * arch/i386.c: New file. | |
8692 | * arch/i386.h: New file. | |
8693 | * arch/tdesc.h (allocate_target_description): Declare. | |
8694 | (set_tdesc_architecture): Declare. | |
8695 | (set_tdesc_osabi): Declare. | |
8696 | * configure.tgt (i[34567]86-*-linux*): Add i386.o. | |
8697 | * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c. | |
8698 | include arch/i386.h. | |
8699 | (i386_linux_read_description): Remove code and call | |
8700 | i386_create_target_description. | |
8701 | (set_tdesc_architecture): New function. | |
8702 | (set_tdesc_osabi): New function. | |
8703 | * target-descriptions.h (allocate_target_description): Remove. | |
8704 | ||
0abe8a89 YQ |
8705 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8706 | ||
8707 | * arch/tdesc.h (tdesc_create_feature): Add an argument xml. | |
8708 | * target-descriptions.c (tdesc_create_feature): Likewise, and | |
8709 | adjust code. | |
8710 | * features/i386/32bit-avx.c: Re-generated. | |
8711 | * features/i386/32bit-avx512.c: Re-generated. | |
8712 | * features/i386/32bit-core.c: Re-generated. | |
8713 | * features/i386/32bit-linux.c: Re-generated. | |
8714 | * features/i386/32bit-mpx.c: Re-generated. | |
8715 | * features/i386/32bit-pkeys.c: Re-generated. | |
8716 | * features/i386/32bit-sse.c: Re-generated. | |
8717 | ||
0a188386 YQ |
8718 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8719 | ||
8720 | * regformats/regdef.h (struct reg): Override operator == and !=. | |
8721 | ||
f49ff000 YQ |
8722 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8723 | ||
8724 | * arch/tdesc.h: New file. | |
8725 | * regformats/regdat.sh: Generate code using tdesc_create_reg. | |
8726 | * target-descriptions.c: Update comments. | |
8727 | * target-descriptions.h: Include "arch/tdesc.h". Remove the | |
8728 | declarations. | |
8729 | * features/i386/32bit-avx.c: Re-generated. | |
8730 | * features/i386/32bit-avx512.c: Re-generated. | |
8731 | * features/i386/32bit-core.c: Re-generated. | |
8732 | * features/i386/32bit-linux.c: Re-generated. | |
8733 | * features/i386/32bit-mpx.c: Re-generated. | |
8734 | * features/i386/32bit-pkeys.c: Re-generated. | |
8735 | * features/i386/32bit-sse.c: Re-generated. | |
8736 | ||
f7000548 YQ |
8737 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8738 | ||
8739 | * regformats/regdat.sh: Update generated code. | |
8740 | ||
c9a5e2a5 YQ |
8741 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8742 | ||
8743 | * regformats/regdat.sh: Adjust code order. | |
8744 | ||
d6b687ac SM |
8745 | 2017-09-05 Simon Marchi <simon.marchi@ericsson.com> |
8746 | ||
8747 | * expprint.c (dump_subexp_body_standard): Use constant format | |
8748 | string in fprintf_filtered call. | |
8749 | ||
a379bfd0 JB |
8750 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
8751 | ||
8752 | * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and | |
8753 | NetBSD/i386. | |
8754 | * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX. | |
8755 | ||
f7efc967 JB |
8756 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
8757 | ||
8758 | * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H. | |
8759 | ||
c49fbc6c JB |
8760 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
8761 | ||
8762 | * bsd-kvm.o: Define _KMEMUSER. | |
8763 | * configure.ac: Define _KMEMUSER when checking for "struct lwp". | |
8764 | * configure: Regenerate. | |
8765 | ||
26562e73 JB |
8766 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
8767 | ||
8768 | * amd64-fbsd-nat.c: Add include of "x86-xstate.h". | |
8769 | * i386-fbsd-nat.c: Likewise. | |
8770 | ||
31cf1487 JB |
8771 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
8772 | ||
8773 | * unittests/array-view-selftests.c: Add include of <array>. | |
8774 | ||
5b9f8a7c JB |
8775 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
8776 | ||
8777 | * spu-tdep.c (flush_ea_cache): Add missing argument to | |
8778 | call_function_by_hand. | |
8779 | ||
d69cf9b2 PA |
8780 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8781 | ||
8782 | * NEWS (Safer support for debugging with no debug info): New. | |
8783 | ||
3693fdb3 PA |
8784 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8785 | ||
8786 | * c-exp.y (function_method, function_method_void): Add current | |
8787 | instance flags to TYPE_INSTANCE. | |
8788 | * dwarf2read.c (check_modifier): New. | |
8789 | (compute_delayed_physnames): Assert that only C++ adds delayed | |
8790 | physnames. Mark fn_fields as const/volatile depending on | |
8791 | physname. | |
8792 | * eval.c (make_params): New type_instance_flags parameter. Use | |
8793 | it as the new type's instance flags. | |
8794 | (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance | |
8795 | flags element and pass it to make_params. | |
8796 | * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle | |
8797 | instance flags element. | |
8798 | (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise. | |
8799 | * gdbtypes.h: Include "enum-flags.h". | |
8800 | (type_instance_flags): New enum-flags type. | |
8801 | (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC) | |
8802 | (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean. | |
8803 | * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust. | |
8804 | (follow_type_instance_flags): New function. | |
8805 | (operator_check_standard) <TYPE_INSTANCE>: Adjust. | |
8806 | * parser-defs.h (follow_type_instance_flags): Declare. | |
8807 | * valops.c (value_struct_elt_for_reference): const/volatile must | |
8808 | match too. | |
8809 | ||
e68cb8e0 PA |
8810 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8811 | ||
8812 | * cp-namespace.c (cp_search_static_and_baseclasses): Handle | |
8813 | function/method scopes; lookup the nested name as a function local | |
8814 | static variable. | |
8815 | ||
858be34c PA |
8816 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8817 | ||
8818 | (%type <voidval>): Add function_method. | |
8819 | * c-exp.y (exp): New production for calls with no arguments. | |
8820 | (function_method, function_method_void_or_typelist): New | |
8821 | productions. | |
8822 | (exp): New production for "method()::static_var". | |
8823 | * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR. | |
8824 | * expprint.c (print_subexp_standard, dump_subexp_body_standard): | |
8825 | Handle OP_FUNC_STATIC_VAR. | |
8826 | * parse.c (operator_length_standard): | |
8827 | Handle OP_FUNC_STATIC_VAR. | |
8828 | ||
dd5901a6 PA |
8829 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8830 | ||
8831 | * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS | |
8832 | handling. | |
8833 | * expprint.c (print_subexp_standard, dump_subexp_body_standard): | |
8834 | Ditto. | |
8835 | * parse.c (operator_length_standard, operator_check_standard): | |
8836 | Ditto. | |
8837 | * std-operator.def (UNOP_MEMVAL_TLS): Delete. | |
8838 | ||
46a4882b PA |
8839 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8840 | ||
8841 | * ax-gdb.c: Include "typeprint.h". | |
8842 | (gen_expr_for_cast): New function. | |
8843 | (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it. | |
8844 | <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's | |
8845 | type is unknown. | |
8846 | * dwarf2read.c (new_symbol_full): Fallback to int instead of | |
8847 | nodebug_data_symbol. | |
8848 | * eval.c: Include "typeprint.h". | |
8849 | (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>: | |
8850 | Error out if symbol has unknown type. | |
8851 | <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to | |
8852 | evaluate_subexp_for_cast. | |
8853 | (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle | |
8854 | OP_VAR_MSYM_VALUE. | |
8855 | (evaluate_subexp_for_cast): New function. | |
8856 | * gdbtypes.c (init_nodebug_var_type): New function. | |
8857 | (objfile_type): Use it to initialize types of variables with no | |
8858 | debug info. | |
8859 | * typeprint.c (error_unknown_type): New. | |
8860 | * typeprint.h (error_unknown_type): New declaration. | |
8861 | * compile/compile-c-types.c (convert_type_basic): Handle | |
8862 | TYPE_CODE_ERROR; warn and fallback to int for variables with | |
8863 | unknown type. | |
8864 | ||
fe13dfec PA |
8865 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8866 | ||
8867 | * eval.c (evaluate_var_value): New function, factored out from ... | |
8868 | (evaluate_subexp_standard): ... here. | |
8869 | ||
d008ee21 PA |
8870 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8871 | ||
8872 | * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>: | |
8873 | Remove useless assignments to 'op'. | |
8874 | ||
827d0c51 PA |
8875 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8876 | ||
8877 | * eval.c (eval_skip_value): New function. | |
8878 | (evaluate_subexp_standard): Use it. | |
8879 | ||
2c5a2be1 PA |
8880 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8881 | ||
8882 | * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract | |
8883 | function name from symbol/minsym and pass it to | |
8884 | error_call_unknown_return_type. | |
8885 | ||
74ea4be4 PA |
8886 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8887 | ||
8888 | * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE. | |
8889 | * ax-gdb.c (gen_msym_var_ref): New function. | |
8890 | (gen_expr): Handle OP_VAR_MSYM_VALUE. | |
8891 | * eval.c (evaluate_var_msym_value): New function. | |
8892 | * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE. | |
8893 | <OP_FUNCALL>: Extract function name from symbol/minsym and pass it | |
8894 | to call_function_by_hand. | |
8895 | * expprint.c (print_subexp_standard, dump_subexp_body_standard): | |
8896 | Handle OP_VAR_MSYM_VALUE. | |
8897 | (union exp_element) <msymbol>: New field. | |
8898 | * minsyms.h (struct type): Forward declare. | |
8899 | (find_minsym_type_and_address): Declare. | |
8900 | * parse.c (write_exp_elt_msym): New function. | |
8901 | (write_exp_msymbol): Delete, refactored as ... | |
8902 | (find_minsym_type_and_address): ... this new function. | |
8903 | (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE. | |
8904 | (operator_length_standard, operator_check_standard): Handle | |
8905 | OP_VAR_MSYM_VALUE. | |
8906 | * std-operator.def (OP_VAR_MSYM_VALUE): New. | |
8907 | ||
7022349d PA |
8908 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8909 | ||
8910 | * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle | |
8911 | TYPE_GNU_IFUNC specially here. Throw error if return type is | |
8912 | unknown. | |
8913 | * ada-typeprint.c (print_func_type): Handle functions with unknown | |
8914 | return type. | |
8915 | * c-typeprint.c (c_type_print_base): Handle functions and methods | |
8916 | with unknown return type. | |
8917 | * compile/compile-c-symbols.c (convert_symbol_bmsym) | |
8918 | <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol. | |
8919 | * compile/compile-c-types.c: Include "objfiles.h". | |
8920 | (convert_func): For functions with unknown return type, warn and | |
8921 | default to int. | |
8922 | * compile/compile-object-run.c (compile_object_run): Adjust call | |
8923 | to call_function_by_hand_dummy. | |
8924 | * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to | |
8925 | call_function_by_hand. | |
8926 | * eval.c (evaluate_subexp_standard): Adjust calls to | |
8927 | call_function_by_hand. Handle functions and methods with unknown | |
8928 | return type. Pass expect_type to call_function_by_hand. | |
8929 | * f-typeprint.c (f_type_print_base): Handle functions with unknown | |
8930 | return type. | |
8931 | * gcore.c (call_target_sbrk): Adjust call to | |
8932 | call_function_by_hand. | |
8933 | * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL | |
8934 | return type instead of int. Make nodebug_text_gnu_ifunc_symbol be | |
8935 | an integer address type instead of nodebug. | |
8936 | * guile/scm-value.c (gdbscm_value_call): Adjust call to | |
8937 | call_function_by_hand. | |
8938 | * infcall.c (error_call_unknown_return_type): New function. | |
8939 | (call_function_by_hand): New "default_return_type" parameter. | |
8940 | Pass it down. | |
8941 | (call_function_by_hand_dummy): New "default_return_type" | |
8942 | parameter. Use it instead of defaulting to int. If there's no | |
8943 | default and the return type is unknown, throw an error. If | |
8944 | there's a default return type, and the called function has no | |
8945 | debug info, then assume the function is prototyped. | |
8946 | * infcall.h (call_function_by_hand, call_function_by_hand_dummy): | |
8947 | New "default_return_type" parameter. | |
8948 | (error_call_unknown_return_type): New declaration. | |
8949 | * linux-fork.c (call_lseek): Cast return type of lseek. | |
8950 | (inferior_call_waitpid, checkpoint_command): Adjust calls to | |
8951 | call_function_by_hand. | |
8952 | * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust | |
8953 | calls to call_function_by_hand. | |
8954 | * m2-typeprint.c (m2_procedure): Handle functions with unknown | |
8955 | return type. | |
8956 | * objc-lang.c (lookup_objc_class, lookup_child_selector) | |
8957 | (value_nsstring, print_object_command): Adjust calls to | |
8958 | call_function_by_hand. | |
8959 | * p-typeprint.c (pascal_type_print_varspec_prefix): Handle | |
8960 | functions with unknown return type. | |
8961 | (pascal_type_print_func_varspec_suffix): New function. | |
8962 | (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC, | |
8963 | TYPE_CODE_METHOD>: Use it. | |
8964 | * python/py-value.c (valpy_call): Adjust call to | |
8965 | call_function_by_hand. | |
8966 | * rust-lang.c (rust_evaluate_funcall): Adjust call to | |
8967 | call_function_by_hand. | |
8968 | * valarith.c (value_x_binop, value_x_unop): Adjust calls to | |
8969 | call_function_by_hand. | |
8970 | * valops.c (value_allocate_space_in_inferior): Adjust call to | |
8971 | call_function_by_hand. | |
8972 | * typeprint.c (type_print_unknown_return_type): New function. | |
8973 | * typeprint.h (type_print_unknown_return_type): New declaration. | |
8974 | ||
54990598 PA |
8975 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8976 | ||
8977 | * gdbtypes.c (lookup_function_type_with_arguments): Mark function | |
8978 | types with more than one parameter as prototyped. | |
8979 | ||
9a24775b PA |
8980 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8981 | ||
8982 | * cli/cli-cmds.c (print_disassembly, disassemble_current_function) | |
8983 | (disassemble_command): Use gdb_disassembly_flags instead of bare | |
8984 | int. | |
8985 | * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn) | |
8986 | (dump_insns, do_mixed_source_and_assembly_deprecated) | |
8987 | (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly): | |
8988 | Use gdb_disassembly_flags instead of bare int. | |
8989 | * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN) | |
8990 | (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME) | |
8991 | (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE) | |
8992 | (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're... | |
8993 | (enum gdb_disassembly_flag): ... values of this new enumeration. | |
8994 | (gdb_disassembly_flags): Define. | |
8995 | (gdb_disassembly) | |
8996 | (gdb_pretty_print_disassembler::pretty_print_insn): Use it. | |
8997 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use | |
8998 | gdb_disassembly_flags instead of bare int. | |
8999 | * record-btrace.c (btrace_insn_history) | |
9000 | (record_btrace_insn_history, record_btrace_insn_history_range) | |
9001 | (record_btrace_insn_history_from): Use gdb_disassembly_flags | |
9002 | instead of bare int. | |
9003 | * record.c (get_insn_history_modifiers, cmd_record_insn_history): | |
9004 | Use gdb_disassembly_flags instead of bare int. | |
9005 | * target-debug.h (target_debug_print_gdb_disassembly_flags): | |
9006 | Define. | |
9007 | * target-delegates.c: Regenerate. | |
9008 | * target.c (target_insn_history, target_insn_history_from) | |
9009 | (target_insn_history_range): Use gdb_disassembly_flags instead of | |
9010 | bare int. | |
9011 | * target.h: Include "disasm.h". | |
9012 | (struct target_ops) <to_insn_history, to_insn_history_from, | |
9013 | to_insn_history_range>: Use gdb_disassembly_flags instead of bare | |
9014 | int. | |
9015 | (target_insn_history, target_insn_history_from) | |
9016 | (target_insn_history_range): Use gdb_disassembly_flags instead of | |
9017 | bare int. | |
9018 | ||
80a65e9b SM |
9019 | 2017-09-04 Simon Marchi <simon.marchi@ericsson.com> |
9020 | ||
9021 | * cli/cli-script.c (build_command_line): For if/while commands, | |
9022 | check whether args is empty. | |
9023 | ||
6b66338c SM |
9024 | 2017-09-04 Simon Marchi <simon.marchi@ericsson.com> |
9025 | ||
9026 | * cli/cli-script.h (enum misc_command_type): Move from defs.h. | |
9027 | (enum command_control_type): Likewise. | |
9028 | (struct command_line): Likewise. | |
9029 | (free_command_lines): Likewise. | |
9030 | (struct command_lines_deleter): Likewise. | |
9031 | (command_line_up): Likewise. | |
9032 | (read_command_lines): Likewise. | |
9033 | (read_command_lines_1): Likewise. | |
9034 | * defs.h (enum misc_command_type): Move to cli/cli-script.h. | |
9035 | (enum command_control_type): Likewise. | |
9036 | (struct command_line): Likewise. | |
9037 | (free_command_lines): Likewise. | |
9038 | (struct command_lines_deleter): Likewise. | |
9039 | (command_line_up): Likewise. | |
9040 | (read_command_lines): Likewise. | |
9041 | (read_command_lines_1): Likewise. | |
9042 | * breakpoint.h: Include cli/cli-script.h. | |
9043 | * extension-priv.h: Likewise. | |
9044 | * gdbcmd.h: Likewise. | |
9045 | ||
51abb421 PA |
9046 | 2017-09-04 Pedro Alves <palves@redhat.com> |
9047 | ||
9048 | * ada-lang.c (is_known_support_routine): Move sal declaration to | |
9049 | where it is initialized. | |
9050 | * breakpoint.c (create_internal_breakpoint, init_catchpoint) | |
9051 | (parse_breakpoint_sals, decode_static_tracepoint_spec) | |
9052 | (clear_command, update_static_tracepoint): Remove init_sal | |
9053 | references. Move declarations closer to initializations. | |
9054 | * cli/cli-cmds.c (list_command): Move sal declarations closer to | |
9055 | initializations. | |
9056 | * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal | |
9057 | references. Move sal declarations closer to initializations. | |
9058 | * frame.c (find_frame_sal): Return a symtab_and_line via function | |
9059 | return instead of output parameter. Remove init_sal references. | |
9060 | * frame.h (find_frame_sal): Return a symtab_and_line via function | |
9061 | return instead of output parameter. | |
9062 | * guile/scm-frame.c (gdbscm_frame_sal): Adjust. | |
9063 | * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new | |
9064 | instead of memset. | |
9065 | (gdbscm_find_pc_line): Remove init_sal reference. | |
9066 | * infcall.c (call_function_by_hand_dummy): Remove init_sal | |
9067 | references. Move declarations closer to initializations. | |
9068 | * infcmd.c (set_step_frame): Update. Move declarations closer to | |
9069 | initializations. | |
9070 | (finish_backward): Remove init_sal references. Move declarations | |
9071 | closer to initializations. | |
9072 | * infrun.c (process_event_stop_test, handle_step_into_function) | |
9073 | (insert_hp_step_resume_breakpoint_at_frame) | |
9074 | (insert_step_resume_breakpoint_at_caller): Likewise. | |
9075 | * linespec.c (create_sals_line_offset, decode_digits_ordinary) | |
9076 | (symbol_to_sal): Likewise. | |
9077 | * probe.c (parse_probes_in_pspace): Remove init_sal reference. | |
9078 | * python/py-frame.c (frapy_find_sal): Move sal declaration closer | |
9079 | to its initialization. | |
9080 | * reverse.c (save_bookmark_command): Use new/delete. Remove | |
9081 | init_sal references. Move declarations closer to initializations. | |
9082 | * source.c (get_current_source_symtab_and_line): Remove brace | |
9083 | initialization. | |
9084 | (set_current_source_symtab_and_line): Now takes the sal by const | |
9085 | reference. Remove brace initialization. | |
9086 | (line_info): Remove init_sal reference. | |
9087 | * source.h (set_current_source_symtab_and_line): Now takes a | |
9088 | symtab_and_line via const reference. | |
9089 | * stack.c (set_current_sal_from_frame): Adjust. | |
9090 | (print_frame_info): Adjust. | |
9091 | (get_last_displayed_sal): Return the sal via function return | |
9092 | instead of via output parameter. Simplify. | |
9093 | (frame_info): Adjust. | |
9094 | * stack.h (get_last_displayed_sal): Return the sal via function | |
9095 | return instead of via output parameter. | |
9096 | * symtab.c (init_sal): Delete. | |
9097 | (find_pc_sect_line): Remove init_sal references. Move | |
9098 | declarations closer to initializations. | |
9099 | (find_function_start_sal): Remove init_sal references. Move | |
9100 | declarations closer to initializations. | |
9101 | * symtab.h (struct symtab_and_line): In-class initialize all | |
9102 | fields. | |
9103 | * tracepoint.c (set_traceframe_context) | |
9104 | (print_one_static_tracepoint_marker): Remove init_sal references. | |
9105 | Move declarations closer to initializations. | |
9106 | * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust. | |
9107 | * tui/tui-stack.c (tui_show_frame_info): Adjust. Move | |
9108 | declarations closer to initializations. | |
9109 | * tui/tui-winsource.c (tui_update_source_window_as_is): Remove | |
9110 | init_sal references. Adjust. | |
9111 | ||
6c5b2ebe PA |
9112 | 2017-09-04 Pedro Alves <palves@redhat.com> |
9113 | ||
9114 | * ax-gdb.c (agent_command_1): Use range-for. | |
9115 | * break-catch-throw.c (re_set_exception_catchpoint): Update. | |
9116 | * breakpoint.c: Include "common/array-view.h". | |
9117 | (init_breakpoint_sal, create_breakpoint_sal): Change sals | |
9118 | parameter from struct symtabs_and_lines to | |
9119 | array_view<symtab_and_line>. Adjust. Use range-for. Update. | |
9120 | (breakpoint_sals_to_pc): Change sals parameter from struct | |
9121 | symtabs_and_lines to std::vector reference. | |
9122 | (check_fast_tracepoint_sals): Change sals parameter from struct | |
9123 | symtabs_and_lines to std::array_view. Use range-for. | |
9124 | (decode_static_tracepoint_spec): Return a std::vector instead of | |
9125 | symtabs_and_lines. Update. | |
9126 | (create_breakpoint): Update. | |
9127 | (break_range_command, until_break_command, clear_command): Update. | |
9128 | (base_breakpoint_decode_location, bkpt_decode_location) | |
9129 | (bkpt_probe_create_sals_from_location) | |
9130 | (bkpt_probe_decode_location, tracepoint_decode_location) | |
9131 | (tracepoint_probe_decode_location) | |
9132 | (strace_marker_create_sals_from_location): Return a std::vector | |
9133 | instead of symtabs_and_lines. | |
9134 | (strace_marker_create_breakpoints_sal): Update. | |
9135 | (strace_marker_decode_location): Return a std::vector instead of | |
9136 | symtabs_and_lines. Update. | |
9137 | (update_breakpoint_locations): Change struct symtabs_and_lines | |
9138 | parameters to gdb::array_view. Adjust. | |
9139 | (location_to_sals): Return a std::vector instead of | |
9140 | symtabs_and_lines. Update. | |
9141 | (breakpoint_re_set_default): Use std::vector instead of struct | |
9142 | symtabs_and_lines. | |
9143 | (decode_location_default): Return a std::vector instead of | |
9144 | symtabs_and_lines. Update. | |
9145 | * breakpoint.h: Include "common/array-view.h". | |
9146 | (struct breakpoint_ops) <decode_location>: Now returns a | |
9147 | std::vector instead of returning a symtabs_and_lines via output | |
9148 | parameter. | |
9149 | (update_breakpoint_locations): Change sals parameters to use | |
9150 | gdb::array_view. | |
9151 | * cli/cli-cmds.c (edit_command, list_command): Update to use | |
9152 | std::vector and gdb::array_view. | |
9153 | (ambiguous_line_spec): Adjust to use gdb::array_view and | |
9154 | range-for. | |
9155 | (compare_symtabs): Rename to ... | |
9156 | (cmp_symtabs): ... this. Change parameters to symtab_and_line | |
9157 | const reference and adjust. | |
9158 | (filter_sals): Rewrite using std::vector and standard algorithms. | |
9159 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify. | |
9160 | (jump_command): Update to use std::vector. | |
9161 | * linespec.c (struct linespec_state) <canonical_names>: Update | |
9162 | comment. | |
9163 | (add_sal_to_sals_basic): Delete. | |
9164 | (add_sal_to_sals, filter_results, convert_results_to_lsals) | |
9165 | (decode_line_2, create_sals_line_offset) | |
9166 | (convert_address_location_to_sals, convert_linespec_to_sals) | |
9167 | (convert_explicit_location_to_sals, parse_linespec) | |
9168 | (event_location_to_sals, decode_line_full, decode_line_1) | |
9169 | (decode_line_with_current_source) | |
9170 | (decode_line_with_last_displayed, decode_objc) | |
9171 | (decode_digits_list_mode, decode_digits_ordinary, minsym_found) | |
9172 | (linespec_result::~linespec_result): Adjust to use std::vector | |
9173 | instead of symtabs_and_lines. | |
9174 | * linespec.h (linespec_sals::sals): Now a std::vector. | |
9175 | (struct linespec_result): Use std::vector, bool, and in-class | |
9176 | initialization. | |
9177 | (decode_line_1, decode_line_with_current_source) | |
9178 | (decode_line_with_last_displayed): Return std::vector. | |
9179 | * macrocmd.c (info_macros_command): Use std::vector. | |
9180 | * mi/mi-main.c (mi_cmd_trace_find): Use std::vector. | |
9181 | * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use | |
9182 | std::vector. | |
9183 | * probe.h (parse_probes): Return a std::vector. | |
9184 | * python/python.c (gdbpy_decode_line): Use std::vector and | |
9185 | gdb::array_view. | |
9186 | * source.c (select_source_symtab, line_info): Use std::vector. | |
9187 | * stack.c (func_command): Use std::vector. | |
9188 | * symtab.h (struct symtabs_and_lines): Delete. | |
9189 | * tracepoint.c (tfind_line_command, scope_info): Use std::vector. | |
9190 | ||
7c44b49c PA |
9191 | 2017-09-04 Pedro Alves <palves@redhat.com> |
9192 | ||
9193 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
9194 | unittests/array-view-selftests.c. | |
9195 | (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o. | |
9196 | * common/array-view.h: New file. | |
9197 | * unittests/array-view-selftests.c: New file. | |
9198 | ||
e439fa14 PA |
9199 | 2017-09-04 Pedro Alves <palves@redhat.com> |
9200 | ||
9201 | * cli/cli-cmds.c (edit_command): Pass message to | |
9202 | ambiguous_line_spec. | |
9203 | (list_command): Pass message to ambiguous_line_spec. Say | |
9204 | "first"/"last" instead of "start" and "end" to be consistent with | |
9205 | the manual. | |
9206 | (ambiguous_line_spec): Add 'format' and vararg parameters. Use | |
9207 | them to print formatted message. | |
9208 | ||
7525b645 PA |
9209 | 2017-09-04 Pedro Alves <palves@redhat.com> |
9210 | ||
9211 | * btrace.c (ftrace_add_pt): Pass btrace_insn to | |
9212 | ftrace_update_insns by reference instead of pointer. | |
9213 | ||
badc0020 YQ |
9214 | 2017-09-04 Yao Qi <yao.qi@linaro.org> |
9215 | ||
9216 | * i386-go32-tdep.c: Include x86-xstate.h. | |
9217 | (i386_go32_init_abi): Call i386_target_description. | |
9218 | * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx | |
9219 | if xcr0 is X86_XSTATE_X87_MASK. | |
9220 | * i386-tdep.h (tdesc_i386): Remove the declaration. | |
9221 | (tdesc_i386_mmx): Likewise. | |
9222 | ||
d78bdb54 YQ |
9223 | 2017-09-04 Yao Qi <yao.qi@linaro.org> |
9224 | ||
9225 | * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return | |
9226 | X86_XSTATE_SSE_MASK instead of 0. | |
9227 | ||
ca1fa5ee YQ |
9228 | 2017-09-04 Yao Qi <yao.qi@linaro.org> |
9229 | ||
9230 | * amd64-fbsd-nat.c (amd64fbsd_read_description): Call | |
9231 | i386_target_description. | |
9232 | * i386-fbsd-nat.c (i386fbsd_read_description): Call | |
9233 | i386_target_description. | |
9234 | * i386-tdep.c (i386_gdbarch_init): Likewise. | |
9235 | ||
2434b019 YQ |
9236 | 2017-09-04 Yao Qi <yao.qi@linaro.org> |
9237 | ||
9238 | * amd64-darwin-tdep.c: Include "x86-xstate.h". | |
9239 | (x86_darwin_init_abi_64): Call amd64_target_description. | |
9240 | * amd64-dicos-tdep.c: Likewise. | |
9241 | * amd64-fbsd-nat.c: Likewise. | |
9242 | * amd64-fbsd-tdep.c: Likewise. | |
9243 | * amd64-nbsd-tdep.c: Likewise. | |
9244 | * amd64-obsd-tdep.c: Likewise. | |
9245 | * amd64-sol2-tdep.c: Likewise. | |
9246 | * amd64-windows-tdep.c: Likewise. | |
9247 | * amd64-tdep.h (tdesc_amd64): Remove the declaration. | |
9248 | ||
0860c437 SM |
9249 | 2017-09-04 Simon Marchi <simon.marchi@ericsson.com> |
9250 | ||
9251 | * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove. | |
9252 | (btrace_function) <insn>: Change type to use std::vector. | |
9253 | * btrace.c (ftrace_debug, ftrace_call_num_insn, | |
9254 | ftrace_find_call, ftrace_new_gap, ftrace_update_function, | |
9255 | ftrace_update_insns, ftrace_compute_global_level_offset, | |
9256 | btrace_stitch_bts, btrace_clear, btrace_insn_get, | |
9257 | btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to | |
9258 | change to std::vector. | |
9259 | (ftrace_update_insns): Adjust to change to std::vector, change | |
9260 | type of INSN parameter. | |
9261 | (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns. | |
9262 | * record-btrace.c (btrace_call_history_insn_range, | |
9263 | btrace_compute_src_line_range, | |
9264 | record_btrace_frame_prev_register): Adjust to change to | |
9265 | std::vector. | |
9266 | * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust | |
9267 | to change to std::vector. | |
9268 | ||
0638b7f9 TT |
9269 | 2017-09-03 Tom Tromey <tom@tromey.com> |
9270 | ||
9271 | * corefile.c (reopen_exec_file): Use std::string. | |
9272 | ||
8f84fb0e TT |
9273 | 2017-09-03 Tom Tromey <tom@tromey.com> |
9274 | ||
9275 | * compile/compile.c (compile_register_name_mangled): Return | |
9276 | std::string. | |
9277 | * compile/compile-loc2c.c (pushf_register_address): Update. | |
9278 | (pushf_register): Update. | |
9279 | * compile/compile-c-types.c (convert_array): Update. | |
9280 | * compile/compile-c-symbols.c (generate_vla_size): Update. | |
9281 | (error_symbol_once): Use a gdb::unique_xmalloc_ptr. | |
9282 | (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr. | |
9283 | (convert_one_symbol): Update. | |
9284 | (generate_c_for_for_one_variable): Update. | |
9285 | * compile/compile-c-support.c (c_get_range_decl_name): Return a | |
9286 | std::string. | |
9287 | (generate_register_struct): Update. | |
9288 | * compile/compile-internal.h (c_get_range_decl_name): Return a | |
9289 | std::string. | |
9290 | (compile_register_name_mangled): Return std::string. | |
9291 | ||
18e9961f TT |
9292 | 2017-09-03 Tom Tromey <tom@tromey.com> |
9293 | ||
9294 | * utils.c (perror_string): Return a std::string. | |
9295 | (throw_perror_with_name, perror_warning_with_name): Update. | |
9296 | ||
45343786 TT |
9297 | 2017-09-03 Tom Tromey <tom@tromey.com> |
9298 | ||
9299 | * demangle.c (demangle_command): Use std::string, | |
9300 | unique_xmalloc_ptr. | |
9301 | ||
b57af503 TT |
9302 | 2017-09-03 Tom Tromey <tom@tromey.com> |
9303 | ||
9304 | * cli/cli-setshow.c (do_set_command): Use std::string. | |
9305 | ||
6eecf35f TT |
9306 | 2017-09-03 Tom Tromey <tom@tromey.com> |
9307 | ||
9308 | * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr. | |
9309 | ||
56496dd4 TT |
9310 | 2017-09-03 Tom Tromey <tom@tromey.com> |
9311 | ||
9312 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string. | |
9313 | ||
e91a1fa7 TT |
9314 | 2017-09-03 Tom Tromey <tom@tromey.com> |
9315 | ||
9316 | * mi/mi-cmd-env.c (env_execute_cli_command): Use | |
9317 | gdb::unique_xmalloc_ptr. | |
9318 | ||
7ffd83d7 TT |
9319 | 2017-09-03 Tom Tromey <tom@tromey.com> |
9320 | ||
9321 | * thread.c (print_thread_info_1): Use string_printf. | |
9322 | (thread_apply_command, thread_apply_all_command): Use | |
9323 | std::string. | |
9324 | ||
1ccbe998 TT |
9325 | 2017-09-03 Tom Tromey <tom@tromey.com> |
9326 | ||
9327 | * valprint.c (val_print_string): Update. | |
9328 | * gdbcore.h (memory_error_message): Return std::string. | |
9329 | * corefile.c (memory_error_message): Return std::string. | |
9330 | (memory_error): Update. | |
9331 | * breakpoint.c (insert_bp_location): Update. | |
9332 | ||
23fdd69e SM |
9333 | 2017-09-03 Simon Marchi <simon.marchi@ericsson.com> |
9334 | ||
9335 | * target/waitstatus.h (target_waitstatus_to_string): Change | |
9336 | return type to std::string. | |
9337 | * target/waitstatus.c (target_waitstatus_to_string): Return | |
9338 | std::string. | |
9339 | * target.h (target_waitstatus_to_string): Remove declaration. | |
9340 | * infrun.c (resume, clear_proceed_status_thread, | |
9341 | print_target_wait_results, do_target_wait, save_waitstatus, | |
9342 | stop_all_threads): Adjust. | |
9343 | * record-btrace.c (record_btrace_wait): Adjust. | |
9344 | * target-debug.h | |
9345 | (target_debug_print_struct_target_waitstatus_p): Adjust. | |
9346 | ||
5c811d30 JK |
9347 | 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
9348 | ||
9349 | PR gdb/22046 | |
9350 | * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED | |
9351 | detection. | |
9352 | ||
0a2dde4a SDJ |
9353 | 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com> |
9354 | ||
9355 | * NEWS (Changes since GDB 8.0): Add entry mentioning new support | |
9356 | for setting/unsetting environment variables on the remote target. | |
9357 | (New remote packets): Add entries for QEnvironmentHexEncoded, | |
9358 | QEnvironmentUnset and QEnvironmentReset. | |
9359 | * common/environ.c (gdb_environ::operator=): Extend method to | |
9360 | handle m_user_set_env_list and m_user_unset_env_list. | |
9361 | (gdb_environ::clear): Likewise. | |
9362 | (match_var_in_string): Change type of first parameter from 'char | |
9363 | *' to 'const char *'. | |
9364 | (gdb_environ::set): Extend method to handle | |
9365 | m_user_set_env_list and m_user_unset_env_list. | |
9366 | (gdb_environ::unset): Likewise. | |
9367 | (gdb_environ::clear_user_set_env): New method. | |
9368 | (gdb_environ::user_set_envp): Likewise. | |
9369 | (gdb_environ::user_unset_envp): Likewise. | |
9370 | * common/environ.h (gdb_environ): Handle m_user_set_env_list and | |
9371 | m_user_unset_env_list on move constructor/assignment. | |
9372 | (unset): Add new default parameter 'update_unset_list = true'. | |
9373 | (clear_user_set_env): New method. | |
9374 | (user_set_envp): Likewise. | |
9375 | (user_unset_envp): Likewise. | |
9376 | (m_user_set_env_list): New std::set. | |
9377 | (m_user_unset_env_list): Likewise. | |
9378 | * common/rsp-low.c (hex2str): New function. | |
9379 | (bin2hex): New overload for bin2hex function. | |
9380 | * common/rsp-low.c (hex2str): New prototype. | |
9381 | (str2hex): New overload prototype. | |
9382 | * remote.c: Include "environ.h". Add QEnvironmentHexEncoded, | |
9383 | QEnvironmentUnset and QEnvironmentReset. | |
9384 | (remote_protocol_features): Add QEnvironmentHexEncoded, | |
9385 | QEnvironmentUnset and QEnvironmentReset packets. | |
9386 | (send_environment_packet): New function. | |
9387 | (extended_remote_environment_support): Likewise. | |
9388 | (extended_remote_create_inferior): Call | |
9389 | extended_remote_environment_support. | |
9390 | (_initialize_remote): Add QEnvironmentHexEncoded, | |
9391 | QEnvironmentUnset and QEnvironmentReset packet configs. | |
9392 | * unittests/environ-selftests.c (gdb_selftest_env_var): | |
9393 | New variable. | |
9394 | (test_vector_initialization): New function. | |
9395 | (test_init_from_host_environ): Likewise. | |
9396 | (test_reinit_from_host_environ): Likewise. | |
9397 | (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B): | |
9398 | Likewise. | |
9399 | (test_unset_set_empty_vector): Likewise. | |
9400 | (test_vector_clear): Likewise. | |
9401 | (test_std_move): Likewise. | |
9402 | (test_move_constructor): | |
9403 | (test_self_move): Likewise. | |
9404 | (test_set_unset_reset): Likewise. | |
9405 | (run_tests): Rewrite in terms of the functions above. | |
9406 | ||
654670a4 WP |
9407 | 2017-08-31 Weimin Pan <weimin.pan@oracle.com> |
9408 | ||
9409 | * sparc64-tdep.c (adi_stat_t): Fix comment formatting. | |
9410 | (adi_available): Use a temp variable of type CORE_ADDR as argument | |
9411 | 3 when calling target_auxv_search. | |
9412 | (adi_normalize_address): Use masks and xor operators to calculate | |
9413 | normalized address. | |
9414 | (adi_read_versions, adi_write_versions, adi_print_versions) | |
9415 | (do_examine, do_assign): Use paddress. | |
9416 | ||
7755ddb7 JB |
9417 | 2017-08-29 John Baldwin <jhb@FreeBSD.org> |
9418 | ||
9419 | * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR. | |
9420 | * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR | |
9421 | out of loop and add supply of FIR. | |
9422 | (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and | |
9423 | add collect of FIR. | |
9424 | ||
fd437cbc SM |
9425 | 2017-08-28 Simon Marchi <simon.marchi@ericsson.com> |
9426 | ||
3804a343 | 9427 | PR gdb/21827 |
fd437cbc SM |
9428 | * cli/cli-script.c (define_command): Don't convert command name |
9429 | to lower case. | |
9430 | ||
988f6b3d JB |
9431 | 2017-08-25 Joel Brobecker <brobecker@adacore.com> |
9432 | ||
9433 | * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp". | |
9434 | Update all callers accordingly. Remove all code blocks handling | |
9435 | the case where DISPP is not NULL. | |
9436 | ||
663c44ac JK |
9437 | 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
9438 | ||
9439 | PR symtab/22003 | |
9440 | * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow) | |
9441 | (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) | |
9442 | (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const. | |
9443 | ||
f1902523 JK |
9444 | 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
9445 | ||
9446 | * dwarf2read.c (build_type_psymtabs_reader): New prototype. | |
9447 | (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES. | |
9448 | (read_comp_units_from_section): New parameter abbrev_section, use | |
9449 | read_and_check_comp_unit_head, allocate signatured_type if needed. | |
9450 | (create_all_comp_units): Update read_comp_units_from_section caller. | |
9451 | ||
87215ad1 SDJ |
9452 | 2017-08-23 Pedro Alves <palves@redhat.com> |
9453 | ||
9454 | PR remote/21852 | |
9455 | * remote.c (add_current_inferior_and_thread): Set inferior_ptid | |
9456 | to null_ptid and switch to thread without reading the registers | |
9457 | after adding the inferior. | |
9458 | ||
6e41ddec JK |
9459 | 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
9460 | ||
9461 | * NEWS (Changes since GDB 8.0): Add set compile-gcc and show | |
9462 | compile-gcc. | |
9463 | * compile/compile.c (compile_gcc, show_compile_gcc): New. | |
9464 | (compile_to_object): Implement compile_gcc. | |
9465 | (_initialize_compile): Install "set compile-gcc". Initialize | |
9466 | compile_gcc. | |
9467 | ||
e68c32d5 JK |
9468 | 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
9469 | ||
9470 | * compile/compile.c (compile_to_object): Conditionally call | |
9471 | set_verbose. Conditionally call compile or compile_v0. | |
9472 | ||
58afddc6 WP |
9473 | 2017-08-07 Weimin Pan <weimin.pan@oracle.com> |
9474 | ||
9475 | * sparc64-tdep.h: (adi_normalize_address): New export. | |
9476 | * sparc-nat.h: (open_adi_tag_fd): New export. | |
9477 | * sparc64-linux-nat.c: (open_adi_tag_fd): New function. | |
9478 | * sparc64-linux-tdep.c: | |
9479 | (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines. | |
9480 | (sparc64_linux_handle_segmentation_fault): New function. | |
9481 | (sparc64_linux_init_abi): Register | |
9482 | sparc64_linux_handle_segmentation_fault | |
9483 | * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h. | |
9484 | (sparc64_addr_bits_remove): New function. | |
9485 | (sparc64_init_abi): Register sparc64_addr_bits_remove. | |
9486 | (MAX_PROC_NAME_SIZE): New macro. | |
9487 | (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines. | |
9488 | (sparc64adilist): New variable. | |
9489 | (adi_proc_list): New variable. | |
9490 | (find_adi_info): New function. | |
9491 | (add_adi_info): New function. | |
9492 | (get_adi_info_proc): New function. | |
9493 | (get_adi_info): New function. | |
9494 | (info_adi_command): New function. | |
9495 | (read_maps_entry): New function. | |
9496 | (adi_available): New function. | |
9497 | (adi_normalize_address): New function. | |
9498 | (adi_align_address): New function. | |
9499 | (adi_convert_byte_count): New function. | |
9500 | (adi_tag_fd): New function. | |
9501 | (adi_is_addr_mapped): New function. | |
9502 | (adi_read_versions): New function. | |
9503 | (adi_write_versions): New function. | |
9504 | (adi_print_versions): New function. | |
9505 | (do_examine): New function. | |
9506 | (do_assign): New function. | |
9507 | (adi_examine_command): New function. | |
9508 | (adi_assign_command): New function. | |
9509 | (_initialize_sparc64_adi_tdep): New function. | |
9510 | ||
11db9430 SM |
9511 | 2017-08-22 Simon Marchi <simon.marchi@ericsson.com> |
9512 | ||
9513 | * breakpoint.c (breakpoints_info): Rename to ... | |
9514 | (info_breakpoints_command): ... this. | |
9515 | (watchpoints_info): Rename to ... | |
9516 | (info_watchpoints_command): ... this. | |
9517 | (tracepoints_info): Rename to ... | |
9518 | (info_tracepoints_command): ... this. | |
9519 | (_initialize_breakpoint): Adjust. | |
9520 | * dcache.c (dcache_info): Rename to ... | |
9521 | (info_display_command): ... this. | |
9522 | (_initialize_dcache): Adjust. | |
9523 | * frame.h (args_info): Rename to ... | |
9524 | (info_args_command): ... this. | |
9525 | (locals_info): Rename to ... | |
9526 | (info_locals_command): ... this. | |
9527 | * infcmd.c (nofp_registers_info): Rename to ... | |
9528 | (info_registers_command): ... this. | |
9529 | (float_info): Rename to ... | |
9530 | (info_float_command): ... this. | |
9531 | (program_info): Rename to ... | |
9532 | (info_program_command): ... this. | |
9533 | (all_registers_info): Rename to ... | |
9534 | (info_all_registers_command): ... this. | |
9535 | (vector_info): Rename to ... | |
9536 | (info_vector_command): ... this. | |
9537 | (float_info): Rename to ... | |
9538 | (info_float_command): ... this. | |
9539 | (_initialize_infcmd): Adjust. | |
9540 | * inferior.h (term_info): Rename to ... | |
9541 | (info_terminal_command): ... this. | |
9542 | * inflow.c (term_info): Rename to ... | |
9543 | (info_terminal_command): ... this. | |
9544 | (_initialize_inflow): Adjust. | |
9545 | * infrun.c (signals_info): Rename to ... | |
9546 | (info_signals_command): ... this. | |
9547 | (_initialize_infrun): Adjust. | |
9548 | * objc-lang.c (classes_info): Rename to ... | |
9549 | (info_classes_command): ... this. | |
9550 | (selectors_info): Rename to ... | |
9551 | (info_selectors_command): ... this. | |
9552 | (_initialize_objc_language): Adjust. | |
9553 | * printcmd.c (sym_info): Rename to ... | |
9554 | (info_symbol_command): ... this. | |
9555 | (address_info): Rename to ... | |
9556 | (info_address_command): ... this. | |
9557 | (display_info): Rename to ... | |
9558 | (info_display_command): ... this. | |
9559 | (_initialize_printcmd): Adjust. | |
9560 | * reverse.c (bookmarks_info): Rename to ... | |
9561 | (info_breakpoints_command): ... this. | |
9562 | (_initialize_reverse): Adjust. | |
9563 | * ser-go32.c (dos_info): Rename to ... | |
9564 | (info_serial_command): ... this. | |
9565 | (_initialize_ser_dos): Adjust. | |
9566 | * skip.c (skip_info): Rename to ... | |
9567 | (info_skip_command): ... this. | |
9568 | (_initialize_step_skip): Adjust. | |
9569 | * source.c (line_info): Rename to ... | |
9570 | (info_line_command): ... this. | |
9571 | (source_info): Rename to ... | |
9572 | (info_source_command) | |
9573 | * stack.c (frame_info): Rename to ... | |
9574 | (info_frame_command): ... this. | |
9575 | (locals_info): Rename to ... | |
9576 | (info_locals_command): ... this. | |
9577 | (args_info): Rename to ... | |
9578 | (info_args_command): ... this. | |
9579 | (_initialize_stack): Adjust. | |
9580 | * symtab.c (sources_info): Rename to ... | |
9581 | (info_sources_command): ... this. | |
9582 | (variables_info): Rename to ... | |
9583 | (info_variables_command): ... this. | |
9584 | (functions_info): Rename to ... | |
9585 | (info_functions_command): ... this. | |
9586 | (types_info): Rename to ... | |
9587 | (info_types_command): ... this. | |
9588 | (_initialize_symtab): Adjust. | |
9589 | * target.c (target_info): Rename to ... | |
9590 | (info_target_command): ... this. | |
9591 | (initialize_targets): Adjust. | |
9592 | * tracepoint.c (tvariables_info): Rename to ... | |
9593 | (info_tvariables_command): ... this. | |
9594 | (scope_info): Rename to ... | |
9595 | (info_scope_command): ... this. | |
9596 | (trace_dump_actions): Adjust. | |
9597 | (_initialize_tracepoint): Adjust. | |
9598 | ||
b270e6f9 TT |
9599 | 2017-08-22 Tom Tromey <tom@tromey.com> |
9600 | ||
9601 | * breakpoint.h (install_breakpoint): Update. | |
9602 | * breakpoint.c (add_solib_catchpoint): Update. | |
9603 | (install_breakpoint): Change argument to a std::unique_ptr. | |
9604 | (create_fork_vfork_event_catchpoint): Use std::unique_ptr. | |
9605 | (create_breakpoint_sal, create_breakpoint): Update. | |
9606 | (watch_command_1, catch_exec_command_1) | |
9607 | (strace_marker_create_breakpoints_sal): Use std::unique_ptr. | |
9608 | (add_to_breakpoint_chain): Change argument to a std::unique_ptr. | |
9609 | Return the breakpoint. | |
9610 | (set_raw_breakpoint_without_location, set_raw_breakpoint) | |
9611 | (new_single_step_breakpoint): Update. | |
9612 | * break-catch-throw.c (handle_gnu_v3_exceptions): Use | |
9613 | std::unique_ptr. | |
9614 | * break-catch-syscall.c (create_syscall_event_catchpoint): Use | |
9615 | std::unique_ptr. | |
9616 | * break-catch-sig.c (create_signal_catchpoint): Use | |
9617 | std::unique_ptr. | |
9618 | * ada-lang.c (create_ada_exception_catchpoint): Use | |
9619 | std::unique_ptr. | |
9620 | ||
36bd8eaa TT |
9621 | 2017-08-22 Tom Tromey <tom@tromey.com> |
9622 | ||
9623 | * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr. | |
9624 | ||
56f37645 TT |
9625 | 2017-08-22 Tom Tromey <tom@tromey.com> |
9626 | ||
9627 | * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr. | |
9628 | (lookup_partial_symbol): Update. | |
9629 | ||
0b581c69 TT |
9630 | 2017-08-22 Tom Tromey <tom@tromey.com> |
9631 | ||
9632 | * source.h (rewrite_source_path): Return a unique_xmalloc_ptr. | |
9633 | * source.c (rewrite_source_path): Return a unique_xmalloc_ptr. | |
9634 | (find_and_open_source, symtab_to_fullname): Update. | |
9635 | * psymtab.c (psymtab_to_fullname): Update. | |
9636 | ||
14278e1f TT |
9637 | 2017-08-22 Tom Tromey <tom@tromey.com> |
9638 | ||
9639 | * exec.c (exec_file_attach): Update. | |
9640 | * linux-thread-db.c (try_thread_db_load): Update. | |
9641 | * guile/scm-safe-call.c (gdbscm_safe_source_script): Update. | |
9642 | * utils.c (gdb_realpath): Change return type. | |
9643 | (gdb_realpath_keepfile): Update. | |
9644 | (gdb_realpath_check_trailer, gdb_realpath_tests): New functions. | |
9645 | (_initialize_utils): Register the new self test. | |
9646 | * source.c (openp): Update. | |
9647 | (find_and_open_source): Update. | |
9648 | * nto-tdep.c (nto_find_and_open_solib): Update. | |
9649 | * main.c (set_gdb_data_directory): Update. | |
9650 | (captured_main_1): Update. | |
9651 | * dwarf2read.c (dwarf2_get_dwz_file): Update | |
9652 | (dw2_map_symbol_filenames): Update. | |
9653 | * auto-load.c (auto_load_safe_path_vec_update): Update. | |
9654 | (filename_is_in_auto_load_safe_path_vec): Change type of | |
9655 | "filename_realp". | |
9656 | (auto_load_objfile_script): Update. | |
9657 | (file_is_auto_load_safe): Update. Use std::string. | |
9658 | * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr. | |
9659 | ||
4971c9a7 TT |
9660 | 2017-08-22 Tom Tromey <tom@tromey.com> |
9661 | ||
9662 | * utils.c (gdb_realpath_keepfile): Return a | |
9663 | gdb::unique_xmalloc_ptr. | |
9664 | * exec.c (exec_file_attach): Update. | |
9665 | * utils.h (gdb_realpath_keepfile): Return a | |
9666 | gdb::unique_xmalloc_ptr. | |
9667 | ||
e3e41d58 TT |
9668 | 2017-08-22 Tom Tromey <tom@tromey.com> |
9669 | ||
9670 | * compile/compile.c (compile_file_command): Use | |
9671 | gdb::unique_xmalloc_ptr, std::string. | |
9672 | * utils.c (gdb_abspath): Change return type. | |
9673 | * source.c (openp): Update. | |
9674 | * objfiles.c (allocate_objfile): Update. | |
9675 | * main.c (set_gdb_data_directory): Update. | |
9676 | * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr. | |
9677 | ||
0d999a6e ZZ |
9678 | 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com> |
9679 | ||
9680 | * cli-cmds.c (list_commands): List actual code around more than | |
9681 | one location. | |
9682 | ||
329d5e7e JB |
9683 | 2017-08-21 John Baldwin <jhb@FreeBSD.org> |
9684 | ||
9685 | * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'. | |
9686 | ||
bf223d3e PA |
9687 | 2017-08-21 Pedro Alves <palves@redhat.com> |
9688 | ||
9689 | PR gdb/19487 | |
9690 | * c-exp.y (variable production): Handle function aliases. | |
9691 | * minsyms.c (msymbol_is_text): New function. | |
9692 | * minsyms.h (msymbol_is_text): Declare. | |
9693 | * symtab.c (find_function_alias_target): New function. | |
9694 | * symtab.h (find_function_alias_target): Declare. | |
9695 | ||
c973d0aa PA |
9696 | 2017-08-21 Pedro Alves <palves@redhat.com> |
9697 | ||
9698 | * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past | |
9699 | typedefs. | |
9700 | * typeprint.c (whatis_exp): If handling "whatis", and expression | |
9701 | is OP_TYPE, strip one typedef level. Otherwise don't strip | |
9702 | typedefs here. | |
9703 | * valops.c (value_cast): Save "to" type before resolving | |
9704 | stubs/typedefs. Use that type as resulting value's type. | |
9705 | ||
2989a365 TT |
9706 | 2017-08-18 Tom Tromey <tom@tromey.com> |
9707 | Pedro Alves <palves@redhat.com> | |
9708 | ||
9709 | * spu-multiarch.c (parse_spufs_run): Use scoped_restore. | |
9710 | * sol-thread.c (sol_thread_resume, sol_thread_wait) | |
9711 | (sol_thread_xfer_partial, rw_common): Use scoped_restore. | |
9712 | * procfs.c (procfs_do_thread_registers): Use scoped_restore. | |
9713 | * proc-service.c (ps_xfer_memory): Use scoped_restore. | |
9714 | * linux-tdep.c (linux_corefile_thread): Remove a cleanup. | |
9715 | (linux_get_siginfo_data): Add "thread" argument. Use | |
9716 | scoped_restore. | |
9717 | * linux-nat.c (linux_child_follow_fork) | |
9718 | (check_stopped_by_watchpoint): Use scoped_restore. | |
9719 | * infrun.c (displaced_step_prepare_throw, write_memory_ptid) | |
9720 | (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore. | |
9721 | (restore_inferior_ptid, save_inferior_ptid): Remove. | |
9722 | * btrace.c (btrace_fetch): Use scoped_restore. | |
9723 | * bsd-uthread.c (bsd_uthread_fetch_registers) | |
9724 | (bsd_uthread_store_registers): Use scoped_restore. | |
9725 | * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use | |
9726 | scoped_restore. | |
9727 | * aix-thread.c (aix_thread_resume, aix_thread_wait) | |
9728 | (aix_thread_xfer_partial): Use scoped_restore. | |
9729 | * inferior.h (save_inferior_ptid): Remove. | |
9730 | ||
e60eb288 YQ |
9731 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
9732 | ||
9733 | PR tdep/21818 | |
9734 | * arm-tdep.c (gdb_print_insn_arm): Mark | |
9735 | USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL. | |
9736 | ||
6d580b63 YQ |
9737 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
9738 | ||
9739 | * NEWS: Mention GDBserver's new option "--selftest". | |
9740 | * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c. | |
9741 | * selftest.c: Move it to common/selftest.c. | |
9742 | * selftest.h: Move it to common/selftest.h. | |
9743 | * selftest-arch.c (reset): New function. | |
9744 | (tests_with_arch): Call reset. | |
9745 | ||
86dcbf50 YQ |
9746 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
9747 | ||
9748 | * selftest.c (run_tests): Don't call QUIT. Call debug_printf | |
9749 | instead of exception_fprintf and printf_filtered. | |
9750 | ||
7649770c YQ |
9751 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
9752 | ||
9753 | * selftest.c (register_self_test): Rename it to | |
9754 | selftests::register_test. | |
9755 | (run_self_tests): selftest::run_tests. | |
9756 | * selftest.h: Update declarations. | |
9757 | * selftest-arch.c (register_self_test_foreach_arch): Rename it to | |
9758 | selftests::register_test_foreach_arch. | |
9759 | * selftest-arch.h: Update declaration. | |
9760 | * aarch64-tdep.c: Update. | |
9761 | * arm-tdep.c: Likewise. | |
9762 | * disasm-selftests.c: Likewise. | |
9763 | * dwarf2loc.c: Likewise. | |
9764 | * dwarf2-frame.c: Likewise. | |
9765 | * findvar.c: Likewise. | |
9766 | * gdbarch-selftests.c: Likewise. | |
9767 | * maint.c (maintenance_selftest): Likewise. | |
9768 | * regcache.c: Likewise. | |
9769 | * rust-exp.y: Likewise. | |
9770 | * selftest-arch.c: Likewise. | |
9771 | * unittests/environ-selftests.c: Likewise. | |
9772 | * unittests/function-view-selftests.c: Likewise. | |
9773 | * unittests/offset-type-selftests.c: Likewise. | |
9774 | * unittests/optional-selftests.c: Likewise. | |
9775 | * unittests/scoped_restore-selftests.c: Likewise. | |
9776 | * utils-selftests.c: Likewise. | |
9777 | ||
b0cba12e PA |
9778 | 2017-08-17 Pedro Alves <palves@redhat.com> |
9779 | ||
9780 | * cli/cli-cmds.c (source_command): Delete 'old_source_verbose' | |
9781 | local. | |
9782 | ||
4c8aa72d PA |
9783 | 2017-08-17 Pedro Alves <palves@redhat.com> |
9784 | ||
9785 | * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New | |
9786 | field. | |
9787 | (reset_die_in_process): Delete, replaced by ... | |
9788 | (process_die_scope): ... this new class. Make it responsible for | |
9789 | freeing cu->line_header too. | |
9790 | (process_die): Use process_die_scope. | |
9791 | (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in | |
9792 | cu->line_header_die_owner. Don't release the line header if it's | |
9793 | owned by the CU. | |
9794 | (setup_type_unit_groups): Make the CU/DIE own the line header. | |
9795 | Don't release the line header here. | |
9796 | ||
ba713918 AL |
9797 | 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change) |
9798 | ||
9799 | * elfread.c (elf_read_minimal_symbols): xfree synthsyms. | |
9800 | ||
44d0fb3a RK |
9801 | 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com> |
9802 | ||
9803 | * NEWS: Mention new shortcuts for nexti and stepi in TUI | |
9804 | Single-Key mode | |
9805 | ||
a5afdb16 RK |
9806 | 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com> |
9807 | ||
9808 | * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key | |
9809 | mode command list. | |
9810 | ||
47613aeb SH |
9811 | 2017-08-15 Stafford Horne <shorne@gmail.com> |
9812 | ||
9813 | * MAINTAINERS (Write After Approval): Add Stafford Horne. | |
9814 | ||
9c3cc999 SH |
9815 | 2017-08-15 Stafford Horne <shorne@gmail.com> |
9816 | ||
9817 | * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname. | |
9818 | ||
206726fb SDJ |
9819 | 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com> |
9820 | ||
9821 | PR gdb/21954 | |
9822 | * infcmd.c (unset_environment_command): Use the 'clear' method on | |
9823 | the environment instead of resetting it. | |
9824 | ||
0335ac6d JB |
9825 | 2017-08-15 John Baldwin <jhb@FreeBSD.org> |
9826 | ||
9827 | * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian | |
9828 | platforms. | |
9829 | ||
d3abe1c8 TT |
9830 | 2017-08-14 Tom Tromey <tom@tromey.com> |
9831 | ||
9832 | * valprint.c (print_octal_chars): Use HOST_CHAR_BIT. | |
9833 | (print_binary_chars): Likewise. | |
9834 | (BITS_IN_BYTES): Remove. | |
9835 | ||
d6382fff TT |
9836 | 2017-08-14 Tom Tromey <tom@tromey.com> |
9837 | ||
9838 | PR gdb/21675 | |
9839 | * valprint.c (LOW_ZERO): Change value to 034. | |
9840 | (print_octal_chars): Add static_asserts for octal constants. | |
9841 | * printcmd.c (print_scalar_formatted): Add 'd' case. | |
9842 | ||
f978cb06 TT |
9843 | 2017-08-11 Tom Tromey <tom@tromey.com> |
9844 | ||
9845 | * symfile.c (add_symbol_file_command): Use std::vector. | |
9846 | ||
2f5404b3 TT |
9847 | 2017-08-14 Tom Tromey <tom@tromey.com> |
9848 | ||
9849 | * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move. | |
9850 | * break-catch-syscall.c (create_syscall_event_catchpoint): Use | |
9851 | std::move. | |
9852 | * break-catch-sig.c (create_signal_catchpoint): Use std::move. | |
9853 | ||
de7985c3 PA |
9854 | 2017-08-11 Pedro Alves <palves@redhat.com> |
9855 | ||
9856 | * infrun.c (process_event_stop_test): Adjust | |
9857 | function_name_is_marked_for_skip call. | |
9858 | * skip.c: Include <list>. | |
9859 | (skiplist_entry): Make it a class with private fields, and | |
9860 | getters/setters. | |
9861 | (skiplist_entry_chain): Delete. | |
9862 | (skiplist_entries): New. | |
9863 | (skiplist_entry_count): Delete. | |
9864 | (highest_skiplist_entry_num): New. | |
9865 | (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete. | |
9866 | (add_skiplist_entry): Delete. | |
9867 | (skiplist_entry::skiplist_entry): New. | |
9868 | (skiplist_entry::add_entry): New. | |
9869 | (skip_file_command, skip_function): Adjust. | |
9870 | (compile_skip_regexp): Delete. | |
9871 | (skip_command): Don't compile regexp here. Adjust to use | |
9872 | skiplist_entry::add_entry. | |
9873 | (skip_info): Adjust to use range-for and getters. | |
9874 | (skip_enable_command, skip_disable_command): Adjust to use | |
9875 | range-for and setters. | |
9876 | (skip_delete_command): Adjust to use std::list. | |
9877 | (add_skiplist_entry): Delete. | |
9878 | (skip_file_p): Delete, refactored as ... | |
9879 | (skiplist_entry::do_skip_file_p): ... this new method. | |
9880 | (skip_gfile_p): Delete, refactored as ... | |
9881 | (skiplist_entry::do_gskip_file_p): ... this new method. | |
9882 | (skip_function_p, skip_rfunction_p): Delete, refactored as ... | |
9883 | (skiplist_entry::skip_function_p): ... this new method. | |
9884 | (function_name_is_marked_for_skip): Now returns bool, and takes | |
9885 | the function sal by const reference. Adjust to use range-for and | |
9886 | skiplist_entry methods. | |
9887 | (_initialize_step_skip): Remove references to | |
9888 | skiplist_entry_chain, skiplist_entry_count. | |
9889 | * skip.h (function_name_is_marked_for_skip): Now returns bool, and | |
9890 | takes the function sal by const reference. | |
9891 | ||
be7d3cd5 YQ |
9892 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
9893 | ||
9894 | * dwarf2-frame.c (clear_pointer_cleanup): Remove. | |
9895 | (dwarf2_frame_cache): Remove reset_cache_cleanup. | |
9896 | (dwarf2_frame_cache): | |
9897 | * frame-unwind.c (frame_unwind_try_unwinder): Catch | |
9898 | RETURN_MASK_ALL and set *this_case to NULL. | |
9899 | * frame-unwind.h: Update comments. | |
9900 | ||
1c90d9f0 YQ |
9901 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
9902 | ||
9903 | * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove. | |
9904 | (dwarf2_frame_state_copy_regs): Remove. | |
9905 | (dwarf2_frame_state_free_regs): Remove. | |
9906 | (dwarf2_frame_state::~dwarf2_frame_state): Remove. | |
9907 | (dwarf2_restore_rule): Call method .alloc_regs instead of | |
9908 | dwarf2_frame_state_alloc_regs. | |
9909 | (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info | |
9910 | constructor. Call std::move. | |
9911 | (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs. | |
9912 | (dwarf2_frame_cache): Likewise. | |
9913 | ||
9914 | [GDB_SELF_TEST]: Include selftest.h and | |
9915 | selftest-arch.h. | |
9916 | [GDB_SELF_TEST] (execute_cfa_program_test): New function. | |
9917 | (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register | |
9918 | execute_cfa_program_test. | |
9919 | ||
9920 | * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor, | |
9921 | copy ctor, assignment operator, move assignment. | |
9922 | <alloc_regs>: New method. | |
9923 | <swap>: New method. | |
9924 | (struct dwarf2_frame_state): Delete dtor. | |
9925 | (dwarf2_frame_state_alloc_regs): Remove declaration. | |
9926 | * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call | |
9927 | dwarf2_frame_state_alloc_regs, use .alloc_regs instead. | |
9928 | ||
afe37d6b YQ |
9929 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
9930 | ||
9931 | * dwarf2-frame.c (dwarf2_frame_state_free): Remove. | |
9932 | (dwarf2_frame_state::dwarf2_frame_state): New. | |
9933 | (dwarf2_frame_state::~dwarf2_frame_state): New. | |
9934 | (dwarf2_fetch_cfa_info): Update. | |
9935 | (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object | |
9936 | rather than a pointer. Update code. | |
9937 | * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and | |
9938 | dtor. | |
9939 | <data_align, code_align, retaddr_column>: Change them to const. | |
9940 | <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them | |
9941 | to bool. | |
9942 | ||
b348037f YQ |
9943 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
9944 | ||
9945 | * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove. | |
9946 | <loc.exp>: New field. | |
9947 | * dwarf2-frame.c (execute_cfa_program): Update. | |
9948 | (dwarf2_frame_prev_register): Update. | |
9949 | ||
e7c9de26 PA |
9950 | 2017-08-10 Pedro Alves <palves@redhat.com> |
9951 | ||
9952 | * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define. | |
9953 | ||
e8c6b620 JB |
9954 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
9955 | ||
9956 | * fbsd-nat.c (struct fbsd_fork_info): Remove. | |
9957 | (fbsd_pending_children): Use std::list. | |
9958 | (fbsd_remember_child): Likewise. | |
9959 | (fbsd_is_child_pending): Likewise. | |
9960 | (fbsd_pending_vfork_done): Use std::forward_list. | |
9961 | (fbsd_add_vfork_done): Likewise. | |
9962 | (fbsd_is_vfork_done_pending): Likewise. | |
9963 | (fbsd_next_vfork_done): Likewise. | |
9964 | ||
e4a26669 JB |
9965 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
9966 | ||
9967 | * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New. | |
9968 | (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr. | |
9969 | [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string | |
9970 | for `mapfilename'. | |
9971 | (fbsd_xfer_partial): Use gdb::byte_vector. | |
af3881e6 | 9972 | (fbsd_add_threads): Use gdb::unique_xmalloc_ptr. |
e4a26669 | 9973 | |
142311d3 JB |
9974 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
9975 | ||
9976 | * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and | |
9977 | "filestuff.h". | |
9978 | (fbsd_find_memory_regions): Fix `mapfile' initialization. | |
9979 | ||
42fa2e0e TT |
9980 | 2017-08-09 Tom Tromey <tom@tromey.com> |
9981 | ||
9982 | * skip.c (skiplist_entry): New constructor. | |
9983 | (skiplist_entry::enabled, skiplist_entry::function_is_regexp) | |
9984 | (skiplist_entry::file_is_glob): Now bool. | |
9985 | (skiplist_entry::file, skiplist_entry::function): Now | |
9986 | std::string. | |
9987 | (make_skip_entry): Return a unique_ptr. Use new. | |
9988 | (free_skiplist_entry, free_skiplist_entry_cleanup) | |
9989 | (make_free_skiplist_entry_cleanup): Remove. | |
9990 | (skip_command, skip_disable_command, add_skiplist_entry) | |
9991 | (skip_form_bytes, compile_skip_regexp, skip_command, skip_info) | |
9992 | (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p) | |
9993 | (function_name_is_marked_for_skip): Update. | |
9994 | (skip_delete_command): Update. Use delete. | |
9995 | ||
cd3af38d JW |
9996 | 2017-08-09 Jiong Wang <jiong.wang@arm.com> |
9997 | ||
9998 | * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h". | |
9999 | (aarch64_linux_core_read_description): New function. | |
10000 | (aarch64_linux_init_abi): Register gdbarch_core_read_description. | |
10001 | ||
29592bde PA |
10002 | 2017-08-09 Pedro Alves <palves@redhat.com> |
10003 | ||
10004 | * cp-name-parser.y (cp_comp_to_string): Return a | |
10005 | gdb::unique_xmalloc_ptr<char>. | |
10006 | * cp-support.c (replace_typedefs_qualified_name) | |
10007 | (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>. | |
10008 | (cp_canonicalize_string_full): Use op= instead of explicit | |
10009 | convertion. | |
10010 | (cp_class_name_from_physname, method_name_from_physname) | |
10011 | (cp_func_name, cp_remove_params): Adjust to use | |
10012 | gdb::unique_xmalloc_ptr<char>. | |
10013 | * cp-support.h (cp_comp_to_string): Return a | |
10014 | gdb::unique_xmalloc_ptr<char>. | |
10015 | * python/py-type.c (typy_lookup_type): Adjust to use | |
10016 | gdb::unique_xmalloc_ptr<char>. | |
10017 | ||
b3340438 L |
10018 | 2017-08-09 H.J. Lu <hongjiu.lu@intel.com> |
10019 | ||
10020 | * dwarf2read.c (dwarf2_string_attr): Fix a typo. | |
10021 | ||
e88e8651 YQ |
10022 | 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com> |
10023 | Yao Qi <yao.qi@linaro.org> | |
10024 | ||
10025 | * cp-support.c (cp_canonicalize_string_full): Use | |
10026 | gdb::unique_xmalloc_ptr<char>. | |
10027 | (cp_canonicalize_string): Likewise. | |
10028 | ||
f5a29eb0 YQ |
10029 | 2017-08-09 Yao Qi <yao.qi@linaro.org> |
10030 | ||
10031 | * features/Makefile (WHICH): Remove i386/ non-linux stuff. | |
10032 | * regformats/i386/amd64-avx-avx512.dat: Remove. | |
10033 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove. | |
10034 | * regformats/i386/amd64-avx-mpx.dat:Remove. | |
10035 | * regformats/i386/amd64-avx.dat: Remove. | |
10036 | * regformats/i386/amd64-mpx.dat: Remove. | |
10037 | * regformats/i386/i386-avx-avx512.dat: Remove. | |
10038 | * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove. | |
10039 | * regformats/i386/i386-avx-mpx.dat: Remove. | |
10040 | * regformats/i386/i386-mmx.dat: Remove. | |
10041 | * regformats/i386/i386-mpx.dat: Remove. | |
10042 | ||
57757c2f YQ |
10043 | 2017-08-09 Yao Qi <yao.qi@linaro.org> |
10044 | ||
10045 | * amd64-tdep.h (tdesc_x32): Remove the declaration. | |
10046 | * amd64-tdep.c: Don't include features/i386/x32*.c. | |
10047 | (_initialize_amd64_tdep): Don't call initialize_tdesc_x32* | |
10048 | functions. | |
10049 | * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx, | |
10050 | and i386/x32-avx-avx512. | |
10051 | (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml, | |
10052 | and i386/x32.xml. | |
10053 | * features/i386/x32-avx-avx512.c: Removed. | |
10054 | * features/i386/x32-avx-avx512.xml: Removed. | |
10055 | * features/i386/x32-avx.c: Removed. | |
10056 | * features/i386/x32-avx.xml: Removed. | |
10057 | * features/i386/x32.c: Removed. | |
10058 | * features/i386/x32.xml: Removed. | |
10059 | * regformats/i386/x32-avx-avx512.dat: Removed. | |
10060 | * regformats/i386/x32-avx.dat: Removed. | |
10061 | * regformats/i386/x32.dat: Removed. | |
10062 | ||
ba7b109b MR |
10063 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
10064 | ||
10065 | PR breakpoints/21886 | |
10066 | * mem-break.c (default_memory_insert_breakpoint): Use | |
10067 | `->placed_address' rather than `->reqstd_address' for the | |
10068 | breakpoint location. | |
10069 | ||
e347efc3 MR |
10070 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
10071 | ||
10072 | * arch-utils.c (default_print_insn): Remove arch/mach/endian | |
10073 | assertions. | |
10074 | ||
0dba2a6c MR |
10075 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
10076 | ||
10077 | * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with | |
10078 | a union of `tdep_info', `tdesc_data' and `id'. | |
10079 | * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data' | |
10080 | rather than `info.tdep_info'. | |
10081 | * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise. | |
10082 | * i386-linux-tdep.c (i386_linux_init_abi): Likewise. | |
10083 | * i386-tdep.c (i386_gdbarch_init): Likewise. | |
10084 | * mips-linux-tdep.c (mips_linux_init_abi): Likewise. | |
10085 | * mips-tdep.c (mips_gdbarch_init): Likewise. | |
10086 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. | |
10087 | * rs6000-tdep.c (rs6000_gdbarch_init): Likewise. | |
10088 | * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than | |
10089 | `info.tdep_info'. | |
10090 | (ppc_linux_init_abi): Use `info.tdesc_data' rather than | |
10091 | `info.tdep_info'. | |
10092 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. | |
10093 | * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than | |
10094 | `info.tdep_info'. | |
10095 | * spu-tdep.c (spu_gdbarch_init): Likewise. | |
10096 | * gdbarch.h: Regenerate. | |
10097 | ||
16eb6b2d LS |
10098 | 2017-08-07 Leszek Swirski <leszeks@google.com> |
10099 | ||
7b005726 | 10100 | PR symtab/20899 |
16eb6b2d LS |
10101 | * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt. |
10102 | ||
74cbb09e SM |
10103 | 2017-08-07 Simon Marchi <simon.marchi@ericsson.com> |
10104 | ||
10105 | * remote-sim.c (gdbsim_load): Remove char **argv local variable. | |
10106 | (gdbsim_open): Rename gdb_argv args object to argv. | |
10107 | ||
ee0c3293 TT |
10108 | 2017-08-05 Tom Tromey <tom@tromey.com> |
10109 | ||
10110 | * compile/compile-object-load.c (compile_object_load): Use | |
10111 | gdb::unique_xmalloc_ptr. | |
10112 | * cli/cli-dump.c (scan_filename): Rename from | |
10113 | scan_filename_with_cleanup. Change return type. | |
10114 | (scan_expression): Rename from scan_expression_with_cleanup. | |
10115 | Change return type. | |
10116 | (dump_memory_to_file, dump_value_to_file, restore_command): | |
10117 | Use gdb::unique_xmalloc_ptr. Update. | |
10118 | * cli/cli-cmds.c (find_and_open_script): Use | |
10119 | gdb::unique_xmalloc_ptr. | |
10120 | * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr. | |
10121 | * symmisc.c (maintenance_print_symbols) | |
10122 | (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr. | |
10123 | * symfile.c (symfile_bfd_open, generic_load) | |
10124 | (add_symbol_file_command, remove_symbol_file_command): Use | |
10125 | gdb::unique_xmalloc_ptr. | |
10126 | * source.c (openp): Use gdb::unique_xmalloc_ptr. | |
10127 | * psymtab.c (maintenance_print_psymbols): Use | |
10128 | gdb::unique_xmalloc_ptr. | |
10129 | * corelow.c (core_open): Use gdb::unique_xmalloc_ptr. | |
10130 | * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr. | |
10131 | * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr. | |
10132 | (reload_shared_libraries_1): Likewise. | |
10133 | ||
3232fabd TT |
10134 | 2017-08-05 Tom Tromey <tom@tromey.com> |
10135 | ||
10136 | * rust-exp.y (rust_op_ptr, set_field): Remove typedefs. | |
10137 | (rust_op_vector, rust_set_vector): New typedefs. | |
10138 | (current_parser): New global. | |
10139 | (work_obstack): Change to pointer type. Update all users. | |
10140 | (rust_ast, pstate): Remove globals. | |
10141 | (struct rust_parser): New. | |
10142 | (%union) <params, field_inits>: Change type. | |
10143 | (start, tuple_expr, unit_expr, struct_expr_list, literal) | |
10144 | (field_expr, expr_list, maybe_expr_list, type_list): Update. | |
10145 | (ast_call_ish, ast_path, ast_function_type, ast_tuple_type) | |
10146 | (convert_params_to_types, convert_params_to_expression): Change | |
10147 | type of "params". | |
10148 | (ast_string): Change type of "fields". | |
10149 | (rust_parse): Make a rust_parser. Remove cleanups. | |
10150 | (rust_lex_tests): Make and install an auto_obstack. | |
10151 | ||
f02fd774 YQ |
10152 | 2017-08-04 Yao Qi <yao.qi@linaro.org> |
10153 | ||
10154 | * configure.srv (ipa_x32_linux_regobj): New. | |
10155 | * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512 | |
10156 | instead of X86_TDESC_AVX512. | |
10157 | (initialize_low_tracepoint): Call | |
10158 | init_registers_x32_avx_avx512_linux. | |
10159 | ||
91975afd YQ |
10160 | 2017-08-04 Yao Qi <yao.qi@linaro.org> |
10161 | ||
10162 | * utils.h (gdb_argv): Add namespace std for nullptr_t. | |
10163 | ||
2331fa3a RK |
10164 | 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com> |
10165 | ||
10166 | * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev. | |
10167 | ||
744e4fe1 TT |
10168 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10169 | ||
10170 | * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv): | |
10171 | Remove. | |
10172 | * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove. | |
10173 | ||
1c034b67 TT |
10174 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10175 | ||
10176 | * python/py-param.c (compute_enum_values): Use gdb_argv. | |
10177 | ||
773a1edc TT |
10178 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10179 | ||
10180 | * utils.h (struct gdb_argv_deleter): New. | |
10181 | (gdb_argv): New class. | |
10182 | * utils.c (gdb_argv::reset): New method. | |
10183 | * tracepoint.c (delete_trace_variable_command): Use gdb_argv. | |
10184 | * tracefile.c (tsave_command): Use gdb_argv. | |
10185 | * top.c (new_ui_command): Use gdb_argv. | |
10186 | * symmisc.c (maintenance_print_symbols) | |
10187 | (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv. | |
10188 | * symfile.c (symbol_file_command, generic_load) | |
10189 | (remove_symbol_file_command): Use gdb_argv. | |
10190 | * stack.c (backtrace_command): Use gdb_argv. | |
10191 | * source.c (add_path, show_substitute_path_command) | |
10192 | (unset_substitute_path_command, set_substitute_path_command): | |
10193 | Use gdb_argv. | |
10194 | * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv. | |
10195 | * ser-mingw.c (pipe_windows_open): Use gdb_argv. | |
10196 | * remote.c (extended_remote_run, remote_put_command) | |
10197 | (remote_get_command, remote_delete_command): Use gdb_argv. | |
10198 | * remote-sim.c (gdbsim_load, gdbsim_create_inferior) | |
10199 | (gdbsim_open): Use gdb_argv. | |
10200 | * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv. | |
10201 | * psymtab.c (maintenance_print_psymbols): Use gdb_argv. | |
10202 | * procfs.c (procfs_info_proc): Use gdb_argv. | |
10203 | * interps.c (interpreter_exec_cmd): Use gdb_argv. | |
10204 | * infrun.c (handle_command): Use gdb_argv. | |
10205 | * inferior.c (add_inferior_command, clone_inferior_command): | |
10206 | Use gdb_argv. | |
10207 | * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv. | |
10208 | * exec.c (exec_file_command): Use gdb_argv. | |
10209 | * cli/cli-cmds.c (alias_command): Use gdb_argv. | |
10210 | * compile/compile.c (build_argc_argv): Use gdb_argv. | |
10211 | ||
0d50bde3 TT |
10212 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10213 | ||
10214 | * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr. | |
10215 | ||
7f968c89 TT |
10216 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10217 | ||
10218 | * python/python.c (compute_python_string): Return std::string. | |
10219 | (gdbpy_eval_from_control_command): Update. | |
10220 | (do_start_initialization): Use std::string. | |
10221 | * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not | |
10222 | xstrprintf. | |
10223 | * python/py-breakpoint.c (local_setattro): Use string_printf, not | |
10224 | xstrprintf. | |
10225 | ||
3c9ebddd TT |
10226 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10227 | ||
10228 | * top.h (do_restore_instream_cleanup): Remove. | |
10229 | * top.c (do_restore_instream_cleanup): Remove. | |
10230 | (read_command_file): Use scoped_restore. | |
10231 | * cli/cli-script.c (execute_user_command): Use scoped_restore. | |
10232 | ||
b51b225e TT |
10233 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10234 | ||
10235 | * cli/cli-script.c (execute_user_command) | |
10236 | (execute_control_command): Use scoped_restore. | |
10237 | ||
ac991630 TT |
10238 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10239 | ||
10240 | * cli/cli-script.c (do_restore_user_call_depth): Remove. | |
10241 | (execute_user_command): Remove user_call_depth; use | |
10242 | user_args_stack's size instead. | |
10243 | ||
898e0c8e TT |
10244 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10245 | ||
10246 | * top.h (in_user_command): Remove. | |
10247 | * top.c (in_user_command): Remove. | |
10248 | * cli/cli-script.c (do_restore_user_call_depth) | |
10249 | (execute_user_command): Update. | |
10250 | ||
26fcd5d7 TT |
10251 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10252 | ||
10253 | * valops.c (search_struct_method): Use gdb::byte_vector. | |
10254 | * valarith.c (value_concat): Use std::vector. | |
10255 | * target.c (memory_xfer_partial): Use gdb::byte_vector. | |
10256 | (simple_search_memory): Likewise. | |
10257 | * printcmd.c (find_string_backward): Use gdb::byte_vector. | |
10258 | * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector. | |
10259 | * gcore.c (gcore_copy_callback): Use gdb::byte_vector. | |
10260 | * elfread.c (elf_rel_plt_read): Use std::string. | |
10261 | * cp-valprint.c (cp_print_value): Use gdb::byte_vector. | |
10262 | * cli/cli-dump.c (restore_section_callback): Use | |
10263 | gdb::byte_vector. | |
10264 | ||
7c218e6c TT |
10265 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10266 | ||
10267 | * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr. | |
10268 | ||
31b68d4a TT |
10269 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10270 | ||
10271 | * tui/tui-regs.c (tui_restore_gdbout): Remove. | |
10272 | (tui_register_format): Use scoped_restore. | |
10273 | ||
2ec845e7 TT |
10274 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10275 | ||
10276 | * reverse.c (exec_direction_default): Remove. | |
10277 | (exec_reverse_once): Use scoped_restore. | |
10278 | * remote.c (restore_remote_timeout): Remove. | |
10279 | (remote_flash_erase, remote_flash_write, remote_flash_done) | |
10280 | (readchar, remote_serial_write): Use scoped_restore. | |
10281 | * cli/cli-script.c (struct source_cleanup_lines_args) | |
10282 | (source_cleanup_lines): Remove. | |
10283 | (script_from_file): Use scoped_restore. | |
10284 | * cli/cli-cmds.c (source_verbose_cleanup): Remove. | |
10285 | (source_command): Use scoped_restore. | |
10286 | ||
b3bc8453 TT |
10287 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10288 | ||
10289 | * utils.h (make_cleanup_free_so): Remove. | |
10290 | * utils.c (do_free_so, make_cleanup_free_so): Remove. | |
10291 | * solist.h (struct so_deleter): New. | |
10292 | (so_list_up): New typedef. | |
10293 | * solib-svr4.c (svr4_read_so_list): Use so_list_up. | |
10294 | ||
e3ad2841 TT |
10295 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10296 | ||
10297 | * utils.h (make_cleanup_restore_current_language): Remove. | |
10298 | * utils.c (do_restore_current_language) | |
10299 | (make_cleanup_restore_current_language): Remove. | |
10300 | * parse.c (parse_exp_in_context_1) | |
10301 | (parse_expression_with_language): Use | |
10302 | scoped_restore_current_language. | |
10303 | * mi/mi-main.c (mi_cmd_execute): Use | |
10304 | scoped_restore_current_language. | |
10305 | * language.h (scoped_restore_current_language): New class. | |
10306 | ||
b80cf838 TT |
10307 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10308 | ||
10309 | * compile/compile.c (cleanup_unlink_file): Remove. | |
10310 | (compile_to_object): Use gdb::unlinker. | |
10311 | (eval_compile_command): Likewise. | |
10312 | ||
fad0444a TT |
10313 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10314 | ||
10315 | * utils.h (make_cleanup_fclose): Remove. | |
10316 | * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove. | |
10317 | ||
6e7bc05c TT |
10318 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10319 | ||
10320 | * top.c (open_terminal_stream): Return gdb_file_up. | |
10321 | (new_ui_command): Update. | |
10322 | ||
4a45905b TT |
10323 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10324 | ||
10325 | * source.c (print_source_lines_base, forward_search_command) | |
10326 | (reverse_search_command): Use gdb_file_up. | |
10327 | ||
7cd06d6e TT |
10328 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10329 | ||
10330 | * fbsd-nat.c (fbsd_find_memory_regions): Update. | |
10331 | ||
ed166945 TT |
10332 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10333 | ||
10334 | * cli/cli-cmds.c (find_and_open_script): Change return type. | |
10335 | Remove "streamp" and "full_path" parameters. | |
10336 | (source_script_with_search): Update. | |
10337 | * auto-load.c (source_script_file): Update. | |
10338 | * cli/cli-cmds.h (find_and_open_script): Change type. | |
10339 | (open_script): New struct. | |
10340 | ||
d419f42d TT |
10341 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10342 | ||
10343 | * xml-support.c (xml_fetch_content_from_file): Update. | |
10344 | * ui-file.c (stdio_file::open): Update. | |
10345 | * tracefile-tfile.c (tfile_start): Update. | |
10346 | * remote.c (remote_file_put, remote_file_get): Update. | |
10347 | * nat/linux-procfs.c (linux_proc_get_int) | |
10348 | (linux_proc_pid_get_state, linux_proc_tid_get_name): Update. | |
10349 | * nat/linux-osdata.c (linux_common_core_of_thread): Update. | |
10350 | (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus) | |
10351 | (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem) | |
10352 | (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update. | |
10353 | * nat/linux-btrace.c (linux_determine_kernel_start): Update. | |
10354 | * linux-nat.c (linux_proc_pending_signals): Update. | |
10355 | * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up. | |
10356 | (file_closer): Remove. | |
10357 | * compile/compile.c (compile_to_object): Update. | |
10358 | * common/filestuff.h (struct gdb_file_deleter): New. | |
10359 | (gdb_file_up): New typedef. | |
10360 | (gdb_fopen_cloexec): Change return type. | |
10361 | * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up. | |
10362 | * cli/cli-dump.c (fopen_with_cleanup): Remove. | |
10363 | (dump_binary_file, restore_binary_file): Update. | |
10364 | * auto-load.c (auto_load_objfile_script_1): Update. | |
10365 | ||
4a2b031d TT |
10366 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10367 | ||
10368 | * tracepoint.c (tvariables_info_1): Use ui_out_emit_table. | |
10369 | (info_static_tracepoint_markers_command): Likewise. | |
10370 | * solib.c (info_sharedlibrary_command): Use ui_out_emit_table. | |
10371 | * skip.c (skip_info): Use ui_out_emit_table. | |
10372 | * progspace.c (print_program_space): Use ui_out_emit_table. | |
10373 | * osdata.c (info_osdata): Use ui_out_emit_table. | |
10374 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use | |
10375 | ui_out_emit_table. | |
10376 | * linux-thread-db.c (info_auto_load_libthread_db): Use | |
10377 | ui_out_emit_table. | |
10378 | * inferior.c (print_inferior): Use ui_out_emit_table. | |
10379 | * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table. | |
10380 | * breakpoint.c (breakpoint_1): Use ui_out_emit_table. | |
10381 | * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table. | |
10382 | * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table. | |
10383 | * ui-out.h (class ui_out_emit_table): New. | |
10384 | ||
a4f320fd MR |
10385 | 2017-08-02 Maciej W. Rozycki <macro@imgtec.com> |
10386 | ||
10387 | * mips-tdep.c (mips_fpu_type_str): New function. | |
10388 | (mips_dump_tdep): Call it. | |
10389 | ||
a2f1f308 MR |
10390 | 2017-08-01 Maciej W. Rozycki <macro@imgtec.com> |
10391 | ||
10392 | * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access | |
10393 | `->mips_fpu_type'. | |
10394 | ||
7e5ed83b XR |
10395 | 2017-07-31 Xavier Roirand <roirand@adacore.com> |
10396 | ||
10397 | * solib-darwin.c (DYLD_VERSION_MAX): Increase value. | |
10398 | ||
4c9dc811 XR |
10399 | 2017-07-27 Xavier Roirand <roirand@adacore.com> |
10400 | ||
10401 | * MAINTAINERS (Write After Approval): Add Xavier Roirand. | |
10402 | ||
27d41eac YQ |
10403 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
10404 | ||
10405 | * cli/cli-cmds.c (maintenancechecklist): New variable. | |
10406 | * gdbcmd.h (maintenancechecklist): Declare it. | |
10407 | * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]: | |
10408 | Call i386_linux_read_description with different masks. | |
10409 | * maint.c (maintenance_check_command): New function. | |
10410 | (_initialize_maint_cmds): Call add_prefix_cmd. | |
10411 | * target-descriptions.c (tdesc_reg): override operator != and ==. | |
10412 | (tdesc_type): Likewise. | |
10413 | (tdesc_feature): Likewise. | |
10414 | (target_desc): Likewise. | |
10415 | [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function. | |
10416 | (maintenance_check_xml_descriptions): New function. | |
10417 | (_initialize_target_descriptions) Add command "xml-descriptions". | |
10418 | * target-descriptions.h (selftests::record_xml_tdesc): Declare. | |
10419 | ||
ea03d0d3 YQ |
10420 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
10421 | ||
10422 | * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c. | |
10423 | Include features/i386/32bit-*.c. | |
10424 | (i386_linux_read_description): Generate target description if it | |
10425 | doesn't exist. | |
10426 | (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386 | |
10427 | functions. | |
10428 | * features/i386/32bit-linux.c: Re-generated. | |
10429 | * features/i386/32bit-sse.c: Likewise. | |
10430 | * target-descriptions.c (print_c_feature::visit): Print code to | |
10431 | set register number if needed. | |
10432 | (print_c_feature) <m_next_regnum>: New field. | |
10433 | ||
25aa13e5 YQ |
10434 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
10435 | ||
10436 | * features/Makefile (CFILES): Rename with TDESC_CFILES. | |
10437 | (FEATURE_XMLFILES): New. | |
10438 | (FEATURE_CFILES): New. | |
10439 | New rules. | |
10440 | (clean-cfiles): Remove generated c files. | |
10441 | * features/i386/32bit-avx.c: Generated. | |
10442 | * features/i386/32bit-avx512.c: Generated. | |
10443 | * features/i386/32bit-core.c: Generated. | |
10444 | * features/i386/32bit-linux.c: Generated. | |
10445 | * features/i386/32bit-mpx.c: Generated. | |
10446 | * features/i386/32bit-pkeys.c: Generated. | |
10447 | * features/i386/32bit-sse.c: Generated. | |
10448 | * target-descriptions.c: Include algorithm. | |
10449 | (tdesc_element_visitor): Add method visit_end. | |
10450 | (print_c_tdesc): Implement visit_end. | |
10451 | (print_c_tdesc:: m_filename_after_features): Move it to | |
10452 | protected. | |
10453 | (print_c_feature): New class. | |
10454 | (maint_print_c_tdesc_cmd): Use print_c_feature if XML file | |
10455 | name starts with "i386/32bit-". | |
10456 | ||
6eb1e6a8 YQ |
10457 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
10458 | ||
10459 | * target-descriptions.c (tdesc_element_visitor): New class. | |
10460 | (tdesc_element): New class. | |
10461 | (tdesc_reg): Inherit from tdesc_element. | |
10462 | (tdesc_reg::accept): New function. | |
10463 | (tdesc_type): Inherit from tdesc_element. | |
10464 | (tdesc_type::accept): New function. | |
10465 | (tdesc_feature): Inherit from tdesc_element. | |
10466 | (tdesc_feature::accept): New function. | |
10467 | (target_desc): Inherit from tdesc_element. | |
10468 | (target_desc::target_desc): New. | |
10469 | (target_desc::~target_desc): New. | |
10470 | (target_desc::accept): New. | |
10471 | (allocate_target_description): Use new. | |
10472 | (free_target_description): Use delete. | |
10473 | (print_c_tdesc): New class. | |
10474 | (maint_print_c_tdesc_cmd): Adjust. | |
10475 | ||
10476 | * features/aarch64.c: Re-generated. | |
10477 | * features/arc-arcompact.c: Re-generated. | |
10478 | * features/arc-v2.c: Re-generated. | |
10479 | * features/arm/arm-with-iwmmxt.c: Re-generated. | |
10480 | * features/arm/arm-with-m.c: Re-generated. | |
10481 | * features/arm/arm-with-m-fpa-layout.c: Re-generated. | |
10482 | * features/arm/arm-with-m-vfp-d16.c: Re-generated. | |
10483 | * features/arm/arm-with-neon.c: Re-generated. | |
10484 | * features/arm/arm-with-vfpv2.c: Re-generated. | |
10485 | * features/arm/arm-with-vfpv3.c: Re-generated. | |
10486 | * features/i386/amd64-avx-avx512.c: Re-generated. | |
10487 | * features/i386/amd64-avx-avx512-linux.c: Re-generated. | |
10488 | * features/i386/amd64-avx.c: Re-generated. | |
10489 | * features/i386/amd64-avx-linux.c: Re-generated. | |
10490 | * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated. | |
10491 | * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated. | |
10492 | * features/i386/amd64-avx-mpx.c: Re-generated. | |
10493 | * features/i386/amd64-avx-mpx-linux.c: Re-generated. | |
10494 | * features/i386/amd64.c: Re-generated. | |
10495 | * features/i386/amd64-linux.c: Re-generated. | |
10496 | * features/i386/amd64-mpx.c: Re-generated. | |
10497 | * features/i386/amd64-mpx-linux.c: Re-generated. | |
10498 | * features/i386/i386-avx-avx512.c: Re-generated. | |
10499 | * features/i386/i386-avx-avx512-linux.c: Re-generated. | |
10500 | * features/i386/i386-avx.c: Re-generated. | |
10501 | * features/i386/i386-avx-linux.c: Re-generated. | |
10502 | * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated. | |
10503 | * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated. | |
10504 | * features/i386/i386-avx-mpx.c: Re-generated. | |
10505 | * features/i386/i386-avx-mpx-linux.c: Re-generated. | |
10506 | * features/i386/i386.c: Re-generated. | |
10507 | * features/i386/i386-linux.c: Re-generated. | |
10508 | * features/i386/i386-mmx.c: Re-generated. | |
10509 | * features/i386/i386-mmx-linux.c: Re-generated. | |
10510 | * features/i386/i386-mpx.c: Re-generated. | |
10511 | * features/i386/i386-mpx-linux.c: Re-generated. | |
10512 | * features/i386/x32-avx-avx512.c: Re-generated. | |
10513 | * features/i386/x32-avx-avx512-linux.c: Re-generated. | |
10514 | * features/i386/x32-avx.c: Re-generated. | |
10515 | * features/i386/x32-avx-linux.c: Re-generated. | |
10516 | * features/i386/x32.c: Re-generated. | |
10517 | * features/i386/x32-linux.c: Re-generated. | |
10518 | * features/microblaze.c: Re-generated. | |
10519 | * features/microblaze-with-stack-protect.c: Re-generated. | |
10520 | * features/mips64-dsp-linux.c: Re-generated. | |
10521 | * features/mips64-linux.c: Re-generated. | |
10522 | * features/mips-dsp-linux.c: Re-generated. | |
10523 | * features/mips-linux.c: Re-generated. | |
10524 | * features/nds32.c: Re-generated. | |
10525 | * features/nios2.c: Re-generated. | |
10526 | * features/nios2-linux.c: Re-generated. | |
10527 | * features/rs6000/powerpc-32.c: Re-generated. | |
10528 | * features/rs6000/powerpc-32l.c: Re-generated. | |
10529 | * features/rs6000/powerpc-403.c: Re-generated. | |
10530 | * features/rs6000/powerpc-403gc.c : Re-generated. | |
10531 | * features/rs6000/powerpc-405.c: Re-generated. | |
10532 | * features/rs6000/powerpc-505.c: Re-generated. | |
10533 | * features/rs6000/powerpc-601.c: Re-generated. | |
10534 | * features/rs6000/powerpc-602.c: Re-generated. | |
10535 | * features/rs6000/powerpc-603.c: Re-generated. | |
10536 | * features/rs6000/powerpc-604.c: Re-generated. | |
10537 | * features/rs6000/powerpc-64.c: Re-generated. | |
10538 | * features/rs6000/powerpc-64l.c: Re-generated. | |
10539 | * features/rs6000/powerpc-7400.c: Re-generated. | |
10540 | * features/rs6000/powerpc-750.c: Re-generated. | |
10541 | * features/rs6000/powerpc-860.c: Re-generated. | |
10542 | * features/rs6000/powerpc-altivec32.c: Re-generated. | |
10543 | * features/rs6000/powerpc-altivec32l.c: Re-generated. | |
10544 | * features/rs6000/powerpc-altivec64.c: Re-generated. | |
10545 | * features/rs6000/powerpc-altivec64l.c: Re-generated. | |
10546 | * features/rs6000/powerpc-cell32l.c: Re-generated. | |
10547 | * features/rs6000/powerpc-cell64l.c: Re-generated. | |
10548 | * features/rs6000/powerpc-e500.c: Re-generated. | |
10549 | * features/rs6000/powerpc-e500l.c: Re-generated. | |
10550 | * features/rs6000/powerpc-isa205-32l.c: Re-generated. | |
10551 | * features/rs6000/powerpc-isa205-64l.c: Re-generated. | |
10552 | * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated. | |
10553 | * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated. | |
10554 | * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated. | |
10555 | * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated. | |
10556 | * features/rs6000/powerpc-vsx32.c: Re-generated. | |
10557 | * features/rs6000/powerpc-vsx32l.c: Re-generated. | |
10558 | * features/rs6000/powerpc-vsx64.c: Re-generated. | |
10559 | * features/rs6000/powerpc-vsx64l.c: Re-generated. | |
10560 | * features/rs6000/rs6000.c: Re-generated. | |
10561 | * features/s390-linux32.c: Re-generated. | |
10562 | * features/s390-linux32v1.c: Re-generated. | |
10563 | * features/s390-linux32v2.c: Re-generated. | |
10564 | * features/s390-linux64.c: Re-generated. | |
10565 | * features/s390-linux64v1.c: Re-generated. | |
10566 | * features/s390-linux64v2.c: Re-generated. | |
10567 | * features/s390-te-linux64.c: Re-generated. | |
10568 | * features/s390-tevx-linux64.c: Re-generated. | |
10569 | * features/s390-vx-linux64.c: Re-generated. | |
10570 | * features/s390x-linux64.c: Re-generated. | |
10571 | * features/s390x-linux64v1.c: Re-generated. | |
10572 | * features/s390x-linux64v2.c: Re-generated. | |
10573 | * features/s390x-te-linux64.c: Re-generated. | |
10574 | * features/s390x-tevx-linux64.c: Re-generated. | |
10575 | * features/s390x-vx-linux64.c: Re-generated. | |
10576 | * features/sparc/sparc32-solaris.c: Re-generated. | |
10577 | * features/sparc/sparc64-solaris.c: Re-generated. | |
10578 | * features/tic6x-c62x.c: Re-generated. | |
10579 | * features/tic6x-c62x-linux.c: Re-generated. | |
10580 | * features/tic6x-c64x.c: Re-generated. | |
10581 | * features/tic6x-c64x-linux.c: Re-generated. | |
10582 | * features/tic6x-c64xp.c: Re-generated. | |
10583 | * features/tic6x-c64xp-linux.c: Re-generated. | |
10584 | ||
35b4818d YQ |
10585 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
10586 | ||
10587 | * i386-linux-tdep.c (i386_linux_read_description): New function. | |
10588 | (i386_linux_core_read_description): Call | |
10589 | i386_linux_read_description. | |
10590 | * i386-linux-tdep.h (i386_linux_read_description): Declare. | |
10591 | (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations. | |
10592 | (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise | |
10593 | (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise. | |
10594 | (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise. | |
10595 | * x86-linux-nat.c (x86_linux_read_description): Call | |
10596 | i386_linux_read_description. | |
10597 | ||
8e2141c6 YQ |
10598 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
10599 | ||
10600 | * NEWS: Mention it. | |
10601 | * features/Makefile (%.c: %.xml): Pass the xml file name to | |
10602 | command "maint print c-tdesc". | |
10603 | * target-descriptions.c (maint_print_c_tdesc_cmd): Get file | |
10604 | name from 'arg'. | |
10605 | ||
b468ff4c YQ |
10606 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
10607 | ||
10608 | * target-descriptions.c (target_desc): Add ctor and dtor. Do | |
10609 | in-class initialization. | |
10610 | (tdesc_create_feature): Call new instead of XCNEW. | |
10611 | (free_target_description): Ue delete. | |
10612 | ||
b9c0e1b4 JB |
10613 | 2017-07-25 John Baldwin <jhb@FreeBSD.org> |
10614 | ||
10615 | * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo. | |
10616 | ||
a04b5337 YQ |
10617 | 2017-07-25 Yao Qi <yao.qi@linaro.org> |
10618 | ||
10619 | * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc | |
10620 | constant. | |
10621 | (amd64_x32_init_abi): Likewise. | |
10622 | * amd64-tdep.h (amd64_init_abi): Update declaration. | |
10623 | (amd64_x32_init_abi): Likewise. | |
10624 | ||
02ad7fc2 YQ |
10625 | 2017-07-25 Yao Qi <yao.qi@linaro.org> |
10626 | ||
10627 | PR tdep/21717 | |
10628 | * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update | |
10629 | condition for FPSCR. | |
10630 | (arm_linux_store_inferior_registers): Likewise. | |
10631 | ||
b6f48cb0 TT |
10632 | 2017-07-22 Tom Tromey <tom@tromey.com> |
10633 | ||
10634 | * break-catch-syscall.c (struct catch_syscall_inferior_data) | |
10635 | <syscalls_counts>: Now a std::vector. | |
10636 | (get_catch_syscall_inferior_data): Use "new". | |
10637 | (catch_syscall_inferior_data_cleanup): Use "delete". | |
10638 | (insert_catch_syscall, remove_catch_syscall) | |
10639 | (clear_syscall_counts): Update. | |
10640 | ||
e12c9b7a TT |
10641 | 2017-07-22 Tom Tromey <tom@tromey.com> |
10642 | ||
10643 | * break-catch-syscall.c (syscall_catchpoint) | |
10644 | <syscalls_to_be_caught>: Now a std::vector<int> | |
10645 | (~syscall_catchpoint): Remove. | |
10646 | (insert_catch_syscall, remove_catch_syscall) | |
10647 | (breakpoint_hit_catch_syscall, print_one_catch_syscall) | |
10648 | (print_mention_catch_syscall, print_recreate_catch_syscall): | |
10649 | Update. | |
10650 | (create_syscall_event_catchpoint): Change type of "filter" | |
10651 | parameter. | |
10652 | (catch_syscall_split_args): Return a std::vector. | |
10653 | (catch_syscall_command_1, catching_syscall_number_1): Update. | |
10654 | ||
4fa8aeac TT |
10655 | 2017-07-22 Tom Tromey <tom@tromey.com> |
10656 | ||
10657 | * break-catch-throw.c (struct exception_catchpoint) | |
10658 | <exception_rx>: Now a std::string. | |
10659 | (~exception_catchpoint): Remove. | |
10660 | (print_one_detail_exception_catchpoint): Update. | |
10661 | (handle_gnu_v3_exceptions): Change type of except_rx. | |
10662 | (extract_exception_regexp): Return a std::string. | |
10663 | (catch_exception_command_1): Update. | |
10664 | ||
f746a154 TT |
10665 | 2017-07-22 Tom Tromey <tom@tromey.com> |
10666 | ||
10667 | * break-catch-sig.c (gdb_signal_type): Remove typedef. | |
10668 | (struct signal_catchpoint) <signals_to_be_caught>: Now a | |
10669 | std::vector. | |
10670 | <catch_all>: Now a bool. | |
10671 | (~signal_catchpoint): Remove. | |
10672 | (signal_catchpoint_insert_location) | |
10673 | (signal_catchpoint_remove_location) | |
10674 | (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one) | |
10675 | (signal_catchpoint_print_mention) | |
10676 | (signal_catchpoint_print_recreate) | |
10677 | (signal_catchpoint_explains_signal): Update. | |
10678 | (create_signal_catchpoint): Change type of "filter" and | |
10679 | "catch_all". | |
10680 | (catch_signal_split_args): Return a std::vector. Change type of | |
10681 | "catch_all". | |
10682 | (catch_signal_command): Update. | |
10683 | ||
47e77640 PA |
10684 | 2017-07-20 Pedro Alves <palves@redhat.com> |
10685 | ||
10686 | * ada-lang.c (ada_language_defn): Make extern. | |
10687 | (_initialize_ada_language): Remove add_language call. | |
10688 | * c-lang.c (c_language_defn, cplus_language_defn) | |
10689 | (asm_language_defn, minimal_language_defn): Make extern. | |
10690 | (_initialize_c_language): Delete. | |
10691 | * completer.c (compare_cstrings): Delete, moved to utils.h. | |
10692 | * d-lang.c (d_language_defn): Make extern. | |
10693 | (_initialize_d_language): Remove add_language calls. | |
10694 | * defs.h (enum language): Add comment. | |
10695 | * f-lang.c (f_language_defn): Make extern. | |
10696 | (_initialize_f_language): Remove add_language call. | |
10697 | * go-lang.c (go_language_defn): Make extern. | |
10698 | (_initialize_go_language): Remove add_language call. | |
10699 | * language.c: Include <algorithm>. | |
10700 | (languages): Redefine as const array. | |
10701 | (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete. | |
10702 | (set_language_command): Handle "local". Use for-range loop. | |
10703 | (set_language): Remove loop. | |
10704 | (language_enum): Rewrite. | |
10705 | (language_def, language_str): Remove loops. | |
10706 | (add_language): Delete. | |
10707 | (add_set_language_command): New, based on add_languages. | |
10708 | (skip_language_trampoline): Adjust. | |
10709 | (local_language_defn): Delete. | |
10710 | (language_gdbarch_post_init): Adjust. | |
10711 | (_initialize_language): Remove add_language calls. Call | |
10712 | add_set_language_command. | |
10713 | * language.h (add_language): Delete. | |
10714 | (auto_language_defn) | |
10715 | (unknown_language_defn, minimal_language_defn, ada_language_defn) | |
10716 | (asm_language_defn, c_language_defn, cplus_language_defn) | |
10717 | (d_language_defn, f_language_defn, go_language_defn) | |
10718 | (m2_language_defn, objc_language_defn, opencl_language_defn) | |
10719 | (pascal_language_defn, rust_language_defn): Declare. | |
10720 | * m2-lang.c (m2_language_defn): Make extern. | |
10721 | (_initialize_m2_language): Remove add_language call. | |
10722 | * objc-lang.c (objc_language_defn): Make extern. | |
10723 | (_initialize_objc_language): Remove add_language call. | |
10724 | * opencl-lang.c (opencl_language_defn): Make extern. | |
10725 | (_initialize_opencl_language): Remove add_language call. | |
10726 | * p-lang.c (pascal_language_defn): Make extern. | |
10727 | (_initialize_pascal_language): Delete. | |
10728 | * rust-lang.c (rust_language_defn): Make extern. | |
10729 | (_initialize_rust_language): Delete. | |
10730 | * utils.h (compare_cstrings): New static inline function. | |
10731 | ||
edb0c9cb PA |
10732 | 2017-07-20 Pedro Alves <palves@redhat.com> |
10733 | ||
10734 | * ada-lang.c (ada_to_fixed_type_1): Adjust. | |
10735 | (get_var_value): Constify parameters. | |
10736 | (get_int_var_value): Change prototype. | |
10737 | (to_fixed_range_type): Adjust. | |
10738 | * ada-lang.h (get_int_var_value): Change prototype. | |
10739 | ||
a778f165 PA |
10740 | 2017-07-20 Pedro Alves <palves@redhat.com> |
10741 | ||
10742 | * dwarf2read.c (dw2_lookup_symbol): Use | |
10743 | SYMBOL_MATCHES_SEARCH_NAME. | |
10744 | * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME. | |
10745 | ||
42edd901 PA |
10746 | 2017-07-20 Pedro Alves <palves@redhat.com> |
10747 | ||
10748 | * block.c (block_iter_name_step, block_iter_name_first) | |
10749 | (block_iter_name_next): Delete. | |
10750 | (block_lookup_symbol_primary): Adjust to use | |
10751 | dict_iter_match_first/dict_iter_match_next. | |
10752 | * block.h (block_iter_name_first, block_iter_name_next): Delete | |
10753 | declarations. | |
10754 | (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use | |
10755 | dict_iter_match_first/dict_iter_match_next. | |
10756 | ||
cf325299 PA |
10757 | 2017-07-20 Pedro Alves <palves@redhat.com> |
10758 | ||
10759 | * cp-support.c (cp_find_first_component_aux): Add missing case for | |
10760 | end of string. | |
10761 | ||
c5ed0576 DB |
10762 | 2017-07-18 David Blaikie <dblaikie@gmail.com> |
10763 | ||
10764 | * dwarf2read.c (create_cus_hash_table): Re-add lost initialization | |
10765 | of dwo_cu's dwo_file. | |
10766 | ||
27841e76 YQ |
10767 | 2017-07-18 Yao Qi <yao.qi@linaro.org> |
10768 | ||
10769 | * remote.c (store_registers_using_G): Remove one line comment. | |
10770 | ||
cfb7e58b YQ |
10771 | 2017-07-18 Yao Qi <yao.qi@linaro.org> |
10772 | ||
10773 | * regcache.c (regcache_cpy): Simplify it. | |
10774 | (regcache::cpy_no_passthrough): Remove it. | |
10775 | * regcache.h (cpy_no_passthrough): Remove it. | |
10776 | (regcache_dup, regcache_cpy): Update comments. | |
10777 | ||
386535dd PA |
10778 | 2017-07-18 Pedro Alves <palves@redhat.com> |
10779 | ||
10780 | * remote-sim.c (sim_command_completer): Adjust to work with a | |
10781 | completion_tracker instead of a VEC. | |
10782 | ||
c45ec17c PA |
10783 | 2017-07-17 Pedro Alves <palves@redhat.com> |
10784 | ||
10785 | * completer.c (complete_source_filenames): New function. | |
10786 | (complete_address_and_linespec_locations): New function. | |
10787 | (location_completer): Use complete_address_and_linespec_locations. | |
10788 | (completion_tracker::build_completion_result): Honor the tracker's | |
10789 | request to suppress append. | |
10790 | * completer.h (completion_tracker::suppress_append_ws) | |
10791 | (completion_tracker::set_suppress_append_ws): New methods. | |
10792 | (completion_tracker::m_suppress_append_ws): New field. | |
10793 | (complete_source_filenames): New declaration. | |
10794 | * linespec.c (linespec_complete_what): New. | |
10795 | (struct ls_parser) <complete_what, completion_word, | |
10796 | completion_quote_char, completion_quote_end, completion_tracker>: | |
10797 | New fields. | |
10798 | (string_find_incomplete_keyword_at_end): New. | |
10799 | (linespec_lexer_lex_string): Record quote char. If in completion | |
10800 | mode, don't throw. | |
10801 | (linespec_lexer_consume_token): Advance the completion word point. | |
10802 | (linespec_lexer_peek_token): Save/restore completion info. | |
10803 | (save_stream_and_consume_token): New. | |
10804 | (set_completion_after_number): New. | |
10805 | (linespec_parse_basic): Set what to complete next depending on | |
10806 | token. Handle function and label completions specially. | |
10807 | (parse_linespec): Disable objc shortcut in completion mode. Set | |
10808 | what to complete next depending on token type. Skip keyword if in | |
10809 | completion mode. | |
10810 | (complete_linespec_component, linespec_complete): New. | |
10811 | * linespec.h (linespec_complete): Declare. | |
10812 | ||
be966d42 PA |
10813 | 2017-07-17 Pedro Alves <palves@redhat.com> |
10814 | ||
10815 | * linespec.c (linespec_lexer_lex_string, find_toplevel_char): | |
10816 | Handle 'operator<' / 'operator<<'. | |
10817 | ||
a2459270 PA |
10818 | 2017-07-17 Pedro Alves <palves@redhat.com> |
10819 | ||
10820 | * completer.c (collect_explicit_location_matches): Handle | |
10821 | MATCH_LABEL. | |
10822 | (convert_explicit_location_to_linespec): New, factored out from | |
10823 | ... | |
10824 | (convert_explicit_location_to_sals): ... this. | |
10825 | (complete_label): New. | |
10826 | (linespec_complete_label, find_label_symbols_in_block): New. | |
10827 | (find_label_symbols): Add completion_mode parameter and adjust to | |
10828 | call find_label_symbols_in_block. | |
10829 | * linespec.h (linespec_complete_label): Declare. | |
10830 | ||
c6756f62 PA |
10831 | 2017-07-17 Pedro Alves <palves@redhat.com> |
10832 | ||
10833 | * ada-lang.c (ada_collect_symbol_completion_matches): Add | |
10834 | complete_symbol_mode parameter. | |
10835 | * cli/cli-cmds.c (complete_command): Get the completion result out | |
10836 | of the handle_brkchars tracker if used a custom word point. | |
10837 | * completer.c: Include "linespec.h". | |
10838 | (enum explicit_location_match_type) <MATCH_LINE>: New enumerator. | |
10839 | (advance_to_expression_complete_word_point): New. | |
10840 | (completion_tracker::completes_to_completion_word): New. | |
10841 | (complete_files_symbols): Pass down | |
10842 | complete_symbol_mode::EXPRESSION. | |
10843 | (explicit_options, probe_options): New. | |
10844 | (collect_explicit_location_matches): Complete on the | |
10845 | explictit_loc->foo instead of word. Use | |
10846 | linespec_complete_function. Handle MATCH_LINE. Handle offering | |
10847 | keyword and options completions. | |
10848 | (backup_text_ptr): Delete. | |
10849 | (skip_keyword): New. | |
10850 | (complete_explicit_location): Remove 'word' parameter. Add | |
10851 | language, quoted_arg_start and quoted_arg_end parameters. | |
10852 | Rewrite, parsing left to right. | |
10853 | (location_completer): Rewrite. | |
10854 | (location_completer_handle_brkchars): New function. | |
10855 | (symbol_completer): Pass down complete_symbol_mode::EXPRESSION. | |
10856 | (enum complete_line_internal_reason): Adjust comments. | |
10857 | (completion_tracker::discard_completions): New. | |
10858 | (completer_handle_brkchars_func_for_completer): Handle | |
10859 | location_completer. | |
10860 | (gdb_custom_word_point_brkchars) | |
10861 | (gdb_org_rl_basic_quote_characters): New. | |
10862 | (gdb_completion_word_break_characters_throw) | |
10863 | (completion_find_completion_word): Handle trackers that use a | |
10864 | custom word point. | |
10865 | (completion_tracker::advance_custom_word_point_by): New. | |
10866 | (completion_tracker::build_completion_result): Don't rely on | |
10867 | readline appending the quote char. | |
10868 | (gdb_rl_attempted_completion_function_throw): Handle trackers that | |
10869 | use a custom word point. | |
10870 | (gdb_rl_attempted_completion_function): Restore | |
10871 | rl_basic_quote_characters. | |
10872 | * completer.h (class completion_tracker): Extend intro comment. | |
10873 | (completion_tracker::set_quote_char) | |
10874 | (completion_tracker::quote_char) | |
10875 | (completion_tracker::set_use_custom_word_point) | |
10876 | (completion_tracker::use_custom_word_point) | |
10877 | (completion_tracker::custom_word_point) | |
10878 | (completion_tracker::set_custom_word_point) | |
10879 | (completion_tracker::advance_custom_word_point_by) | |
10880 | (completion_tracker::completes_to_completion_word) | |
10881 | (completion_tracker::discard_completions): New methods. | |
10882 | (completion_tracker::m_quote_char) | |
10883 | (completion_tracker::m_use_custom_word_point) | |
10884 | (completion_tracker::m_custom_word_point): New fields. | |
10885 | (advance_to_expression_complete_word_point): Declare. | |
10886 | * f-lang.c (f_collect_symbol_completion_matches): Add | |
10887 | complete_symbol_mode parameter. | |
10888 | * language.h (struct language_defn) | |
10889 | <la_collect_symbol_completion_matches>: Add complete_symbol_mode | |
10890 | parameter. | |
10891 | * linespec.c (linespec_keywords): Add NULL terminator. Make extern. | |
10892 | (linespec_complete_function): New function. | |
10893 | (linespec_lexer_lex_keyword): Adjust. | |
10894 | * linespec.h (linespec_keywords, linespec_complete_function): New | |
10895 | declarations. | |
10896 | * location.c (find_end_quote): New function. | |
10897 | (explicit_location_lex_one): Add explicit_completion_info | |
10898 | parameter. Save quoting info. Don't throw if being called for | |
10899 | completion. Don't handle Ada operators here. | |
10900 | (is_cp_operator, skip_op_false_positives, first_of) | |
10901 | (explicit_location_lex_one_function): New function. | |
10902 | (string_to_explicit_location): Replace 'dont_throw' parameter with | |
10903 | an explicit_completion_info pointer parameter. Handle it. Don't | |
10904 | use explicit_location_lex_one to lex function names. Use | |
10905 | explicit_location_lex_one_function instead. | |
10906 | * location.h (struct explicit_completion_info): New. | |
10907 | (string_to_explicit_location): Replace 'dont_throw' parameter with | |
10908 | an explicit_completion_info pointer parameter. | |
10909 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
10910 | Add complete_symbol_mode parameter. Handle LINESPEC mode. | |
10911 | (default_collect_symbol_completion_matches) | |
10912 | (collect_symbol_completion_matches): Add complete_symbol_mode | |
10913 | parameter. | |
10914 | (collect_symbol_completion_matches_type): Pass down | |
10915 | complete_symbol_mode::EXPRESSION. | |
10916 | (collect_file_symbol_completion_matches): Add complete_symbol_mode | |
10917 | parameter. Handle LINESPEC mode. | |
10918 | * symtab.h (complete_symbol_mode): New. | |
10919 | (default_collect_symbol_completion_matches_break_on) | |
10920 | (default_collect_symbol_completion_matches) | |
10921 | (collect_symbol_completion_matches) | |
10922 | (collect_file_symbol_completion_matches): Add complete_symbol_mode | |
10923 | parameter. | |
10924 | ||
1d550c82 PA |
10925 | 2017-07-17 Pedro Alves <palves@redhat.com> |
10926 | ||
10927 | * utils.c (enum class strncmp_iw_mode): New. | |
10928 | (strcmp_iw): Rename to ... | |
10929 | (strncmp_iw_with_mode): ... this. Add string2_len and mode | |
10930 | parameters. Handle them. | |
10931 | (strncmp_iw): New. | |
10932 | (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode. | |
10933 | * utils.h (strncmp_iw): Declare. | |
10934 | (strcmp_iw): Move describing comments here. | |
10935 | ||
8090b426 PA |
10936 | 2017-07-17 Pedro Alves <palves@redhat.com> |
10937 | ||
10938 | * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and | |
10939 | CP_OPERATOR_STR. | |
10940 | * c-typeprint.c (is_type_conversion_operator): Use | |
10941 | CP_OPERATOR_STR. | |
10942 | * cp-support.c (LENGTH_OF_OPERATOR): Delete. | |
10943 | (cp_find_first_component_aux): Use CP_OPERATOR_STR and | |
10944 | CP_OPERATOR_LEN. | |
10945 | * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New. | |
10946 | * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR. | |
10947 | * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR. | |
10948 | * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and | |
10949 | CP_OPERATOR_STR. | |
10950 | * location.c: Include "cp-support.h". | |
10951 | (explicit_location_lex_one): Use CP_OPERATOR_LEN and | |
10952 | CP_OPERATOR_STR. | |
10953 | * symtab.c (operator_chars): Use CP_OPERATOR_STR and | |
10954 | CP_OPERATOR_LEN. | |
10955 | ||
6a2c1b87 PA |
10956 | 2017-07-17 Pedro Alves <palves@redhat.com> |
10957 | ||
10958 | * cli/cli-cmds.c (complete_command): Use a completion tracker | |
10959 | along with completion_find_completion_word for handle_brkchars | |
10960 | phase. | |
10961 | * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE) | |
10962 | (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New. | |
10963 | (struct gdb_rl_completion_word_info): New. | |
10964 | (gdb_rl_find_completion_word): New. | |
10965 | (completion_find_completion_word): New. | |
10966 | * completer.h (completion_find_completion_word): Declare. | |
10967 | ||
eb3ff9a5 PA |
10968 | 2017-07-17 Pedro Alves <palves@redhat.com> |
10969 | ||
10970 | * ada-lang.c (symbol_completion_match): Adjust comments. | |
10971 | (symbol_completion_add): Replace vector parameter with | |
10972 | completion_tracker parameter. Use it. | |
10973 | (ada_make_symbol_completion_list): Rename to... | |
10974 | (ada_collect_symbol_completion_matches): ... this. Add | |
10975 | completion_tracker parameter and use it. | |
10976 | (ada_language_defn): Adjust. | |
10977 | * break-catch-syscall.c (catch_syscall_completer): Adjust | |
10978 | prototype and work with completion_tracker instead of VEC. | |
10979 | * breakpoint.c (condition_completer): Adjust prototype and work | |
10980 | with completion_tracker instead of VEC. | |
10981 | * c-lang.c (c_language_defn, cplus_language_defn) | |
10982 | (asm_language_defn, minimal_language_defn): Adjust to renames. | |
10983 | * cli/cli-cmds.c (complete_command): Rework using | |
10984 | completion_tracker. Catch exceptions when completing. | |
10985 | * cli/cli-decode.c (integer_unlimited_completer) | |
10986 | (complete_on_cmdlist, complete_on_enum): Adjust prototype and work | |
10987 | with completion_tracker instead of VEC. | |
10988 | * command.h (struct completion_tracker): Forward declare. | |
10989 | (completer_ftype, completer_handle_brkchars_ftype): Change | |
10990 | types. | |
10991 | (complete_on_cmdlist, complete_on_enum): Adjust. | |
10992 | * completer.c: Include <algorithm>. | |
10993 | (struct gdb_completer_state): New. | |
10994 | (current_completion): New global. | |
10995 | (readline_line_completion_function): Delete. | |
10996 | (noop_completer, filename_completer) | |
10997 | (filename_completer_handle_brkchars, complete_files_symbols) | |
10998 | (linespec_location_completer): Adjust to work with a | |
10999 | completion_tracker instead of a VEC. | |
11000 | (string_or_empty): New. | |
11001 | (collect_explicit_location_matches): Adjust to work with a | |
11002 | completion_tracker instead of a VEC. | |
11003 | (explicit_location_completer): Rename to ... | |
11004 | (complete_explicit_location): ... this and adjust to work with a | |
11005 | completion_tracker instead of a VEC. | |
11006 | (location_completer): Adjust to work with a completion_tracker | |
11007 | instead of a VEC. | |
11008 | (add_struct_fields): Adjust to work with a completion_list instead | |
11009 | of VEC. | |
11010 | (expression_completer): Rename to ... | |
11011 | (complete_expression): ... this and adjust to work with a | |
11012 | completion_tracker instead of a VEC. Use complete_files_symbols. | |
11013 | (expression_completer): Reimplement on top of complete_expression. | |
11014 | (symbol_completer): Adjust to work with a completion_tracker | |
11015 | instead of a VEC. | |
11016 | (enum complete_line_internal_reason): Add describing comments. | |
11017 | (complete_line_internal_normal_command): Adjust to work with a | |
11018 | completion_tracker instead of a VEC. | |
11019 | (complete_line_internal): Rename to ... | |
11020 | (complete_line_internal_1): ... this and adjust to work with a | |
11021 | completion_tracker instead of a VEC. Assert TEXT is NULL in the | |
11022 | handle_brkchars phase. | |
11023 | (new_completion_tracker): Delete. | |
11024 | (complete_line_internal): Reimplement as TRY/CATCH wrapper around | |
11025 | complete_line_internal_1. | |
11026 | (free_completion_tracker): Delete. | |
11027 | (INITIAL_COMPLETION_HTAB_SIZE): New. | |
11028 | (completion_tracker::completion_tracker) | |
11029 | (completion_tracker::~completion_tracker): New. | |
11030 | (maybe_add_completion): Delete. | |
11031 | (completion_tracker::maybe_add_completion) | |
11032 | (completion_tracker::add_completion) | |
11033 | (completion_tracker::add_completions): New. | |
11034 | (throw_max_completions_reached_error): Delete. | |
11035 | (complete_line): Adjust to work with a completion_tracker instead | |
11036 | of a VEC. Don't create a completion_tracker_t or check for max | |
11037 | completions here. | |
11038 | (command_completer, command_completer_handle_brkchars) | |
11039 | (signal_completer, reg_or_group_completer_1) | |
11040 | (reg_or_group_completer, default_completer_handle_brkchars): | |
11041 | Adjust to work with a completion_tracker. | |
11042 | (gdb_completion_word_break_characters_throw): New. | |
11043 | (gdb_completion_word_break_characters): Reimplement. | |
11044 | (line_completion_function): Delete. | |
11045 | (completion_tracker::recompute_lowest_common_denominator) | |
11046 | (expand_preserving_ws) | |
11047 | (completion_tracker::build_completion_result) | |
11048 | (completion_result::completion_result) | |
11049 | (completion_result::completion_result) | |
11050 | (completion_result::~completion_result) | |
11051 | (completion_result::completion_result) | |
11052 | (completion_result::release_match_list, compare_cstrings) | |
11053 | (completion_result::sort_match_list) | |
11054 | (completion_result::reset_match_list) | |
11055 | (gdb_rl_attempted_completion_function_throw) | |
11056 | (gdb_rl_attempted_completion_function): New. | |
11057 | * completer.h (completion_list, struct completion_result) | |
11058 | (class completion_tracker): New. | |
11059 | (complete_line): Add completion_tracker parameter. | |
11060 | (readline_line_completion_function): Delete. | |
11061 | (gdb_rl_attempted_completion_function): New. | |
11062 | (noop_completer, filename_completer, expression_completer) | |
11063 | (location_completer, symbol_completer, command_completer) | |
11064 | (signal_completer, reg_or_group_completer): Update prototypes. | |
11065 | (completion_tracker_t, new_completion_tracker) | |
11066 | (make_cleanup_free_completion_tracker): Delete. | |
11067 | (enum maybe_add_completion_enum): Delete. | |
11068 | (maybe_add_completion): Delete. | |
11069 | (throw_max_completions_reached_error): Delete. | |
11070 | * corefile.c (complete_set_gnutarget): Adjust to work with a | |
11071 | completion_tracker instead of a VEC. | |
11072 | * cp-abi.c (cp_abi_completer): Adjust to work with a | |
11073 | completion_tracker instead of a VEC. | |
11074 | * d-lang.c (d_language_defn): Adjust. | |
11075 | * disasm.c (disassembler_options_completer): Adjust to work with a | |
11076 | completion_tracker instead of a VEC. | |
11077 | * f-lang.c (f_make_symbol_completion_list): Rename to ... | |
11078 | (f_collect_symbol_completion_matches): ... this. Adjust to work | |
11079 | with a completion_tracker instead of a VEC. | |
11080 | (f_language_defn): Adjust. | |
11081 | * go-lang.c (go_language_defn): Adjust. | |
11082 | * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer): | |
11083 | Adjust to work with a completion_tracker instead of a VEC. | |
11084 | * infrun.c (handle_completer): Likewise. | |
11085 | * interps.c (interpreter_completer): Likewise. | |
11086 | * interps.h (interpreter_completer): Likewise. | |
11087 | * language.c (unknown_language_defn, auto_language_defn) | |
11088 | (local_language_defn): Adjust. | |
11089 | * language.h (language_defn::la_make_symbol_completion_list): | |
11090 | Rename to ... | |
11091 | (language_defn::la_collect_symbol_completion_matches): ... this | |
11092 | and adjust to work with a completion_tracker instead of a VEC. | |
11093 | * m2-lang.c (m2_language_defn): Adjust. | |
11094 | * objc-lang.c (objc_language_defn): Adjust. | |
11095 | * opencl-lang.c (opencl_language_defn): Adjust. | |
11096 | * p-lang.c (pascal_language_defn): Adjust. | |
11097 | * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word. | |
11098 | (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work | |
11099 | with a completion_tracker. | |
11100 | * rust-lang.c (rust_language_defn): Adjust. | |
11101 | * symtab.c (free_completion_list, do_free_completion_list) | |
11102 | (return_val, completion_tracker): Delete. | |
11103 | (completion_list_add_name, completion_list_add_symbol) | |
11104 | (completion_list_add_msymbol, completion_list_objc_symbol) | |
11105 | (completion_list_add_fields, add_symtab_completions): Add | |
11106 | completion_tracker parameter and use it. | |
11107 | (default_make_symbol_completion_list_break_on_1): Rename to... | |
11108 | (default_collect_symbol_completion_matches_break_on): ... this. | |
11109 | Add completion_tracker parameter and use it instead of allocating | |
11110 | a completion tracker here. | |
11111 | (default_make_symbol_completion_list_break_on): Delete old | |
11112 | implementation. | |
11113 | (default_make_symbol_completion_list): Delete. | |
11114 | (default_collect_symbol_completion_matches): New. | |
11115 | (make_symbol_completion_list): Delete. | |
11116 | (collect_symbol_completion_matches): New. | |
11117 | (make_symbol_completion_type): Rename to ... | |
11118 | (collect_symbol_completion_matches_type): ... this. Add | |
11119 | completion_tracker parameter and use it instead of VEC. | |
11120 | (make_file_symbol_completion_list_1): Rename to... | |
11121 | (collect_file_symbol_completion_matches): ... this. Add | |
11122 | completion_tracker parameter and use it instead of VEC. | |
11123 | (make_file_symbol_completion_list): Delete. | |
11124 | (add_filename_to_list): Use completion_list instead of a VEC. | |
11125 | (add_partial_filename_data::list): Now a completion_list. | |
11126 | (make_source_files_completion_list): Work with a completion_list | |
11127 | instead of a VEC. | |
11128 | * symtab.h: Include "completer.h". | |
11129 | (default_make_symbol_completion_list_break_on) | |
11130 | (default_make_symbol_completion_list, make_symbol_completion_list) | |
11131 | (make_symbol_completion_type, make_file_symbol_completion_list) | |
11132 | (make_source_files_completion_list): Delete. | |
11133 | (default_collect_symbol_completion_matches_break_on) | |
11134 | (default_collect_symbol_completion_matches) | |
11135 | (collect_symbol_completion_matches) | |
11136 | (collect_symbol_completion_matches_type) | |
11137 | (collect_file_symbol_completion_matches) | |
11138 | (make_source_files_completion_list): New. | |
11139 | * top.c (init_main): Don't install a rl_completion_entry_function | |
11140 | hook. Install a rl_attempted_completion_function hook instead. | |
11141 | * tui/tui-layout.c (layout_completer): Adjust to work with a | |
11142 | completion_tracker. | |
11143 | * tui/tui-regs.c (tui_reggroup_completer): | |
11144 | * tui/tui-win.c (window_name_completer, focus_completer) | |
11145 | (winheight_completer): Adjust to work with a completion_tracker. | |
11146 | * value.c: Include "completer.h". | |
11147 | (complete_internalvar): Adjust to work with a completion_tracker. | |
11148 | * value.h (complete_internalvar): Likewise. | |
11149 | ||
6e1dbf8c PA |
11150 | 2017-07-17 Pedro Alves <palves@redhat.com> |
11151 | ||
11152 | * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to | |
11153 | renames. | |
11154 | * cli/cli-decode.h (struct cmd_list_element) <completer>: Move | |
11155 | comments to completer_ftype's declaration. | |
11156 | <completer_handle_brkchars>: Change type to | |
11157 | completer_handle_brkchars_ftype. | |
11158 | * command.h (completer_ftype): Add describing comment and give | |
11159 | names to parameters. | |
11160 | (completer_ftype_void): Rename to ... | |
11161 | (completer_handle_brkchars_ftype) ... this. Add describing comment. | |
11162 | (set_cmd_completer_handle_brkchars): Adjust. | |
11163 | * completer.c (filename_completer_handle_brkchars): New function. | |
11164 | (complete_line_internal_normal_command): New function, factored | |
11165 | out from ... | |
11166 | (complete_line_internal): ... here. | |
11167 | (command_completer_handle_brkchars) | |
11168 | (default_completer_handle_brkchars) | |
11169 | (completer_handle_brkchars_func_for_completer): New functions. | |
11170 | * completer.h (set_gdb_completion_word_break_characters): Delete | |
11171 | declaration. | |
11172 | (completer_handle_brkchars_func_for_completer): New declaration. | |
11173 | * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use | |
11174 | completer_handle_brkchars_func_for_completer. | |
11175 | ||
78b13106 PA |
11176 | 2017-07-17 Pedro Alves <palves@redhat.com> |
11177 | ||
11178 | * completer.c (symbol_completer): New function, based on | |
11179 | make_symbol_completion_list_fn. | |
11180 | * completer.h (symbol_completer): New declaration. | |
11181 | * guile/scm-cmd.c (cmdscm_completers): Adjust. | |
11182 | * python/py-cmd.c (completers): Adjust. | |
11183 | * symtab.c (make_symbol_completion_list_fn): Delete. | |
11184 | * symtab.h (make_symbol_completion_list_fn): Delete. | |
11185 | * cli/cli-decode.c (add_cmd): Adjust. | |
11186 | ||
bbf2f4df PA |
11187 | 2017-07-17 Pedro Alves <palves@redhat.com> |
11188 | ||
11189 | * Makefile.in (COMMON_OBS): Add filename-seen-cache.o. | |
11190 | * dwarf2read.c: Include "filename-seen-cache.h". | |
11191 | * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field. | |
11192 | (dw2_map_symbol_filenames): Build and use a filenames_seen_cache. | |
11193 | * filename-seen-cache.c: New file. | |
11194 | * filename-seen-cache.h: New file. | |
11195 | * symtab.c: Include "filename-seen-cache.h". | |
11196 | (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE) | |
11197 | (create_filename_seen_cache, clear_filename_seen_cache) | |
11198 | (delete_filename_seen_cache, filename_seen): Delete, parts moved | |
11199 | to filename-seen-cache.h/filename-seen-cache.c. | |
11200 | (output_source_filename, sources_info) | |
11201 | (maybe_add_partial_symtab_filename) | |
11202 | (make_source_files_completion_list): Adjust to use | |
11203 | filename_seen_cache. | |
11204 | ||
330cdd98 PA |
11205 | 2017-07-17 Pedro Alves <palves@redhat.com> |
11206 | ||
11207 | * dwarf2read.c (dwarf2_per_objfile): In-class initialize all | |
11208 | fields. | |
11209 | (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const | |
11210 | dwarf2_debug_sections*)): New. | |
11211 | (dwarf2_per_objfile::dwarf2_per_objfile(const | |
11212 | dwarf2_per_objfile&)): Declare as deleted. | |
11213 | (dwarf2_per_objfile::operator=): Declare as deleted. | |
11214 | (dwarf2_per_objfile::dwarf2_per_objfile) | |
11215 | (dwarf2_per_objfile::~dwarf2_per_objfile) | |
11216 | (dwarf2_per_objfile::free_cached_comp_units): New. | |
11217 | (dwarf2_has_info): dwarf2_per_objfile initialization code moved to | |
11218 | ctor. Call dwarf2_per_objfile's ctor manually. | |
11219 | (dwarf2_locate_sections): Deleted/refactored as ... | |
11220 | (dwarf2_per_objfile::locate_sections): ... this new method. | |
11221 | (free_cached_comp_units): Defer to | |
11222 | dwarf2_per_objfile::free_cached_comp_units. | |
11223 | (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually. | |
11224 | ||
8880f2a9 TT |
11225 | 2017-07-14 Tom Tromey <tom@tromey.com> |
11226 | ||
11227 | PR rust/21764: | |
11228 | * rust-exp.y (convert_ast_to_expression): Add "want_type" | |
11229 | parameter. | |
11230 | <UNOP_SIZEOF>: Split into separate case. | |
11231 | <UNOP_VAR_VALUE>: Handle want_type. Add error case. | |
11232 | ||
65547233 TT |
11233 | 2017-07-14 Tom Tromey <tom@tromey.com> |
11234 | ||
11235 | PR rust/21763: | |
11236 | * symtab.c (symbol_matches_domain): Add language_rust to special | |
11237 | case. | |
11238 | * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't | |
11239 | treat LOC_TYPEDEF symbols as variables. | |
11240 | ||
8f14146e PA |
11241 | 2017-07-14 Pedro Alves <palves@redhat.com> |
11242 | ||
11243 | * symtab.c (make_file_symbol_completion_list_1): Iterate over | |
11244 | symtabs matching all symtabs with SRCFILE as file name instead of | |
11245 | only considering the first hit, with lookup_symtab. | |
11246 | ||
2347965c SM |
11247 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
11248 | ||
11249 | * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and | |
11250 | operator_name parameters. | |
11251 | (gen_expr): Update function call. | |
11252 | ||
40f4af28 SM |
11253 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
11254 | ||
11255 | * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch | |
11256 | parameter. | |
11257 | * symtab.h (struct symbol_computed_ops::tracepoint_var_ref): | |
11258 | Likewise. | |
11259 | * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch | |
11260 | parameter, use agent_expr::gdbarch instead, update function | |
11261 | calls. | |
11262 | (locexpr_tracepoint_var_ref): Likewise. | |
11263 | (loclist_tracepoint_var_ref): Likewise. | |
11264 | * ax-gdb.c (gen_trace_static_fields): Likewise. | |
11265 | (gen_traced_pop): Likewise. | |
11266 | (gen_frame_args_address): Likewise. | |
11267 | (gen_frame_locals_address): Likewise. | |
11268 | (gen_var_ref): Likewise. | |
11269 | (gen_struct_ref_recursive): Likewise. | |
11270 | (gen_static_field): Likewise. | |
11271 | (gen_maybe_namespace_elt): Likewise. | |
11272 | (gen_expr): Likewise. | |
11273 | (gen_trace_for_var): Likewise. | |
11274 | (gen_trace_for_expr): Likewise. | |
11275 | (gen_trace_for_return_address): Likewise. | |
11276 | ||
053f8057 SM |
11277 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
11278 | ||
11279 | * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax | |
11280 | parameter. | |
11281 | (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call. | |
11282 | ||
6661ad48 SM |
11283 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
11284 | ||
11285 | * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch | |
11286 | from ax, update calls. | |
11287 | (gen_usual_arithmetic): Likewise. | |
11288 | (gen_integral_promotions): Likewise. | |
11289 | (gen_bitfield_ref): Likewise. | |
11290 | (gen_primitive_field): Likewise. | |
11291 | (gen_struct_ref_recursive): Likewise. | |
11292 | (gen_struct_ref): Likewise. | |
11293 | (gen_maybe_namespace_elt): Likewise. | |
11294 | (gen_struct_elt_for_reference): Likewise. | |
11295 | (gen_namespace_elt): Likewise. | |
11296 | (gen_aggregate_elt_ref): Likewise. | |
11297 | (gen_expr): Get gdbarch from ax, update calls. | |
11298 | (gen_expr_binop_rest): Likewise. | |
11299 | ||
c55a47e7 PA |
11300 | 2017-07-13 Pedro Alves <palves@redhat.com> |
11301 | ||
11302 | * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64 | |
11303 | as default tdesc. | |
11304 | * amd64-dicos-tdep.c (amd64_dicos_init_abi): | |
11305 | * amd64-fbsd-tdep.c (amd64fbsd_init_abi): | |
11306 | * amd64-linux-tdep.c (amd64_linux_init_abi): Pass | |
11307 | tdesc_amd64_linux as default tdesc. Get final tdesc from the | |
11308 | tdep. | |
11309 | (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc. | |
11310 | Get final tdesc from the tdep. | |
11311 | * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as | |
11312 | default tdesc. | |
11313 | * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise. | |
11314 | * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise. | |
11315 | * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter. | |
11316 | Use it as default tdesc. | |
11317 | (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it | |
11318 | down to amd_init_abi. No longer handle fallback tdesc here. | |
11319 | * amd64-tdep.h (tdesc_x32): Declare. | |
11320 | (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc' | |
11321 | parameter. | |
11322 | * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64 | |
11323 | as default tdesc. | |
11324 | ||
55efceab AA |
11325 | 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11326 | ||
11327 | * s390-linux-tdep.c (s390_process_record): Add support for | |
11328 | instructions new in arch12. | |
11329 | ||
0aa37b65 JB |
11330 | 2017-07-11 John Baldwin <jhb@FreeBSD.org> |
11331 | ||
11332 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use | |
11333 | PT_GETFSBASE and PT_GETGSBASE. | |
11334 | (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and | |
11335 | PT_SETGSBASE. | |
11336 | ||
48aeef91 JB |
11337 | 2017-07-11 John Baldwin <jhb@FreeBSD.org> |
11338 | ||
11339 | * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat) | |
11340 | (amd64-avx-mpx.dat, amd64-avx-avx512.dat) | |
11341 | (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in | |
11342 | those rules. | |
11343 | * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml. | |
11344 | * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml. | |
11345 | * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml. | |
11346 | * features/i386/amd64-avx.xml: Add 64bit-segments.xml. | |
11347 | * features/i386/amd64-mpx.xml: Add 64bit-segments.xml. | |
11348 | * features/i386/amd64.xml: Add 64bit-segments.xml. | |
11349 | * features/i386/amd64-avx-avx512.c: Regenerated. | |
11350 | * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated. | |
11351 | * features/i386/amd64-avx-mpx.c: Regenerated. | |
11352 | * features/i386/amd64-avx.c: Regenerated. | |
11353 | * features/i386/amd64-mpx.c: Regenerated. | |
11354 | * features/i386/amd64.c: Regenerated. | |
11355 | * regformats/i386/amd64-avx-avx512.dat: Regenerated. | |
11356 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated. | |
11357 | * regformats/i386/amd64-avx-mpx.dat: Regenerated. | |
11358 | * regformats/i386/amd64-avx.dat: Regenerated. | |
11359 | * regformats/i386/amd64-mpx.dat: Regenerated. | |
11360 | * regformats/i386/amd64.dat: Regenerated. | |
11361 | ||
77c501bc YQ |
11362 | 2017-07-10 Yao Qi <yao.qi@linaro.org> |
11363 | ||
11364 | * features/i386/amd64-avx-avx512-linux.c: Re-generated. | |
11365 | * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated. | |
11366 | ||
6dc8d757 AK |
11367 | 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com> |
11368 | ||
11369 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and | |
11370 | unsetenv. | |
11371 | * gnulib/aclocal.m4: Regenerate. | |
11372 | * gnulib/config.in: Regenerate. | |
11373 | * gnulib/configure: Regenerate. | |
11374 | * gnulib/import/Makefile.am: Regenerate. | |
11375 | * gnulib/import/Makefile.in: Regenerate. | |
11376 | * gnulib/import/m4/gnulib-cache.m4: Regenerate. | |
11377 | * gnulib/import/m4/gnulib-comp.m4: Regenerate. | |
11378 | * gnulib/import/m4/environ.m4: New file. | |
11379 | * gnulib/import/m4/setenv.m4: New file. | |
11380 | * gnulib/import/setenv.c: New file. | |
11381 | * gnulib/import/unsetenv.c: New file. | |
11382 | ||
266934d1 SM |
11383 | 2017-07-09 Simon Marchi <simon.marchi@ericsson.com> |
11384 | ||
11385 | * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read | |
11386 | address when op is DW_OP_addr. | |
11387 | ||
03278692 TT |
11388 | 2017-07-09 Tom Tromey <tom@tromey.com> |
11389 | ||
11390 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size | |
11391 | check and apply to outer type. | |
11392 | ||
4b654465 JB |
11393 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
11394 | ||
11395 | * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS) | |
11396 | (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI) | |
11397 | (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New. | |
11398 | (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method. | |
11399 | ||
2af9fc44 JB |
11400 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
11401 | ||
11402 | * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name. | |
11403 | ||
382b69bb JB |
11404 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
11405 | ||
11406 | * corelow.c (get_core_siginfo): Remove. | |
11407 | (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method | |
11408 | instead of get_core_siginfo. | |
11409 | * gdbarch.sh (core_xfer_siginfo): New gdbarch callback. | |
11410 | * gdbarch.h: Re-generate. | |
11411 | * gdbarch.c: Re-generate. | |
11412 | * linux-tdep.c (linux_core_xfer_siginfo): New. | |
11413 | (linux_init_abi): Install gdbarch "core_xfer_siginfo" method. | |
11414 | ||
6e5eab33 JB |
11415 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
11416 | ||
11417 | * corelow.c (thread_section_name): Move to ... | |
11418 | * gdbcore.h (thread_section_name): ... here. | |
11419 | ||
929edea9 JB |
11420 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
11421 | ||
11422 | * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32) | |
11423 | (struct siginfo32): New. | |
11424 | [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New. | |
11425 | (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO | |
11426 | via ptrace(PT_LWPINFO). | |
11427 | ||
762c974a JB |
11428 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
11429 | ||
11430 | * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data) | |
11431 | (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data) | |
11432 | (fbsd_get_siginfo_type): New. | |
11433 | (fbsd_init_abi): Install gdbarch "get_siginfo_type" method. | |
11434 | (_initialize_fbsd_tdep): New. | |
11435 | ||
33c5cd75 DB |
11436 | 2017-07-06 David Blaikie <dblaikie@gmail.com> |
11437 | ||
11438 | * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than | |
11439 | a singular dwo_unit*) to support multiple CUs in the same way that | |
11440 | multiple TUs are supported. | |
11441 | (create_cus_hash_table): Replace create_dwo_cu with a function for | |
11442 | parsing multiple CUs from a DWO file. | |
11443 | (open_and_init_dwo_file): Use create_cus_hash_table rather than | |
11444 | create_dwo_cu. | |
11445 | (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with | |
11446 | htab_find, rather than comparing the signature to a singleton CU in | |
11447 | the dwo_file. | |
11448 | ||
8455d262 PA |
11449 | 2017-07-06 Pedro Alves <palves@redhat.com> |
11450 | ||
11451 | * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition. | |
11452 | ||
4da3eb35 PA |
11453 | 2017-07-04 Pedro Alves <palves@redhat.com> |
11454 | ||
11455 | * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC. | |
11456 | * gdbtypes.h (TYPE_STATIC): Delete. | |
11457 | (struct fn_field) <is_public, is_abstract, is_static, is_final, | |
11458 | is_synchronized, is_native>: Delete. | |
11459 | <dummy>: Bump. | |
11460 | (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL) | |
11461 | (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE) | |
11462 | (TYPE_FN_FIELD_ABSTRACT): Delete. | |
11463 | ||
5bfd255c SM |
11464 | 2017-07-03 Simon Marchi <simon.marchi@ericsson.com> |
11465 | ||
11466 | * buffer.h (buffer_finish): Fix spelling mistakes. | |
11467 | ||
25c54127 EZ |
11468 | 2017-07-01 Eli Zaretskii <eliz@gnu.org> |
11469 | ||
11470 | * .dir-locals.el: Automatically switch to C-style comments in | |
11471 | versions of Emacs that support the feature. | |
11472 | ||
dc4bde35 SDJ |
11473 | 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com> |
11474 | Pedro Alves <palves@redhat.com> | |
11475 | ||
11476 | PR cli/21688 | |
11477 | * cli/cli-script.c (command_name_equals_not_inline): Remove function. | |
11478 | (process_next_line): New variable 'inline_cmd'. | |
11479 | Adjust 'if' clauses for "python", "compile" and "guile" to use | |
11480 | 'command_name_equals' and check for '!inline_cmd'. | |
11481 | ||
51ed89aa SDJ |
11482 | 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com> |
11483 | ||
11484 | PR cli/21688 | |
11485 | * cli/cli-script.c (command_name_equals_not_inline): New function. | |
11486 | (process_next_line): Adjust 'if' clauses for "python", "compile" | |
11487 | and "guile" to use command_name_equals_not_inline. | |
11488 | ||
eb17d413 PA |
11489 | 2017-06-29 Pedro Alves <palves@redhat.com> |
11490 | ||
11491 | * completer.c (expression_completer): Call | |
11492 | linespec_location_completer instead of location_completer. | |
11493 | ||
195bcdd5 PA |
11494 | 2017-06-29 Pedro Alves <palves@redhat.com> |
11495 | ||
11496 | * completer.c (expression_completer): Remove code that recomputes | |
11497 | 'text' from 'word'. | |
11498 | ||
adc764e7 YQ |
11499 | 2017-06-29 Yao Qi <yao.qi@linaro.org> |
11500 | ||
11501 | * regformats/regdat.sh: Generate code with | |
11502 | "ifndef IN_PROCESS_AGENT". | |
11503 | ||
6e75794e PA |
11504 | 2017-06-28 Pedro Alves <palves@redhat.com> |
11505 | ||
11506 | * command.h: Include "common/scoped_restore.h". | |
11507 | ||
bc491f2e YQ |
11508 | 2017-06-28 Yao Qi <yao.qi@linaro.org> |
11509 | ||
11510 | * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str | |
11511 | instead of obstack_grow. | |
11512 | ||
41664b45 DG |
11513 | 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com> |
11514 | ||
11515 | PR gdb/21337 | |
11516 | * symfile.c (reread_symbols): Call objfiles_changed just before | |
11517 | read_symbols. | |
11518 | ||
6da67eb1 PA |
11519 | 2017-06-27 Pedro Alves <palves@redhat.com> |
11520 | ||
11521 | * symtab.c (COMPLETION_LIST_ADD_SYMBOL) | |
11522 | (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ... | |
11523 | (completion_list_add_symbol, completion_list_add_msymbol): | |
11524 | ... these new functions. | |
11525 | (add_symtab_completions) | |
11526 | (default_make_symbol_completion_list_break_on_1): Adjust. | |
11527 | ||
23732b1e PA |
11528 | 2017-06-27 Pedro Alves <palves@redhat.com> |
11529 | ||
11530 | * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of | |
11531 | bfd_zalloc. Call objfile_per_bfd_storage's ctor. | |
11532 | (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's | |
11533 | dtor. | |
11534 | * objfiles.h (objfile_per_bfd_storage): Add ctor. Make | |
11535 | 'storage_obstack' field an auto_obstack. In-class initialize all | |
11536 | non-bitfield fields. Make minsyms_read bool. | |
11537 | * symfile.c (read_symbols): Adjust. | |
11538 | ||
a4d1e79a AH |
11539 | 2017-06-27 Alan Hayward <alan.hayward@arm.com> |
11540 | ||
11541 | * remote-sim.c (gdbsim_fetch_register): Use byte_vector. | |
11542 | (gdbsim_store_register): Likewise. | |
11543 | ||
8268c778 PA |
11544 | 2017-06-27 Pedro Alves <palves@redhat.com> |
11545 | ||
11546 | * c-exp.y (name_obstack): Now an auto_obstack. | |
11547 | (yylex): Use auto_obstack::clear. | |
11548 | (c_parse): Use auto_obstack::clear instead of reinitializing and | |
11549 | freeing the obstack. | |
11550 | * c-lang.c (evaluate_subexp_c): Use auto_obstack. | |
11551 | * d-exp.y (name_obstack): Now an auto_obstack. | |
11552 | (yylex): Use auto_obstack::clear. | |
11553 | (d_parse): Use auto_obstack::clear instead of reinitializing and | |
11554 | freeing the obstack. | |
11555 | * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use | |
11556 | auto_obstack. | |
11557 | * dwarf2read.c (create_addrmap_from_index) | |
11558 | (dwarf2_build_psymtabs_hard) | |
11559 | (update_enumeration_type_from_children): Likewise. | |
11560 | * gdb_obstack.h (auto_obstack): New type. | |
11561 | * go-exp.y (name_obstack): Now an auto_obstack. | |
11562 | (build_packaged_name): Use auto_obstack::clear. | |
11563 | (go_parse): Use auto_obstack::clear instead of reinitializing and | |
11564 | freeing the obstack. | |
11565 | * linux-tdep.c (linux_make_mappings_corefile_notes): Use | |
11566 | auto_obstack. | |
11567 | * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack. | |
11568 | * rust-exp.y (work_obstack): Now an auto_obstack. | |
11569 | (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of | |
11570 | reinitializing and freeing the obstack. | |
11571 | * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete. | |
11572 | (host_char_to_target): Use auto_obstack. | |
11573 | * utils.h (make_cleanup_obstack_free): Delete declaration. | |
11574 | * valprint.c (generic_emit_char, generic_printstr): Use | |
11575 | auto_obstack. | |
11576 | ||
db665f42 SM |
11577 | 2017-06-27 Simon Marchi <simon.marchi@ericsson.com> |
11578 | ||
11579 | * darwin-nat.c (darwin_check_new_threads): Don't handle dummy | |
11580 | thread. | |
11581 | (darwin_init_thread_list): Don't update dummy thread. | |
11582 | (darwin_create_inferior, darwin_attach): Don't add a dummy thread. | |
11583 | ||
873c0814 SM |
11584 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
11585 | ||
11586 | * record-full.c (netorder16): Remove. | |
11587 | ||
8b5a7a6e SM |
11588 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
11589 | ||
11590 | * common/diagnostics.h: Define macros for GCC. | |
11591 | (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro. | |
11592 | * common/vec.h: Include diagnostics.h. | |
11593 | (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro. | |
11594 | (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function | |
11595 | warning. | |
11596 | ||
d1435379 SM |
11597 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
11598 | ||
11599 | * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER): | |
11600 | New macro. | |
11601 | * ada-lex.l: Ignore deprecated register warnings. | |
11602 | ||
cc75e0fd SM |
11603 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
11604 | ||
11605 | * main.c (get_init_files): Replace "SYSTEM_GDBINIT + | |
11606 | datadir_len" with "&SYSTEM_GDBINIT[datadir_len]". | |
11607 | ||
07809eaf SM |
11608 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
11609 | ||
11610 | * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on | |
11611 | its own line. | |
11612 | ||
f076f034 SM |
11613 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
11614 | ||
11615 | * nat/x86-dregs.c (x86_show_dr): Print registers one per line. | |
11616 | ||
0dd5cbc5 AH |
11617 | 2017-06-23 Alan Hayward <alan.hayward@arm.com> |
11618 | ||
11619 | * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add. | |
11620 | (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE. | |
11621 | (xtensa_register_read_masked): Likewise. | |
11622 | ||
d4c6ce5b SDJ |
11623 | 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com> |
11624 | ||
11625 | * common/environ.c (gdb_environ::unset): Update comment. | |
11626 | ||
16892a03 AH |
11627 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
11628 | ||
11629 | * python/py-unwind.c (pyuw_sniffer): Allocate space for | |
11630 | registers. | |
11631 | ||
d7dcbefc AH |
11632 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
11633 | ||
11634 | * record-full.c (record_full_exec_insn): Use byte_vector. | |
11635 | ||
b30ff123 YQ |
11636 | 2017-06-22 Yao Qi <yao.qi@linaro.org> |
11637 | ||
11638 | * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated. | |
11639 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated. | |
11640 | ||
4fa847d7 AH |
11641 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
11642 | ||
11643 | * remote.c (cached_reg): Move from here... | |
11644 | * regcache.h (cached_reg): ...to here. | |
11645 | * python/py-unwind.c (struct reg_info): Remove. | |
11646 | (cached_frame_info): Use cached_reg_t. | |
11647 | (pyuw_prev_register): Likewise. | |
11648 | (pyuw_sniffer): Use cached_reg_t and allocate registers. | |
11649 | (pyuw_dealloc_cache): Free all registers. | |
11650 | ||
f4906a9a PA |
11651 | 2017-06-22 Pedro Alves <palves@redhat.com> |
11652 | Simon Marchi <simon.marchi@ericsson.com> | |
11653 | ||
11654 | * unittests/environ-selftests.c (run_tests): Ignore -Wself-move | |
11655 | warning. | |
11656 | * common/diagnostics.h: New file. | |
11657 | ||
b45a1208 PA |
11658 | 2017-06-22 Pedro Alves <palves@redhat.com> |
11659 | ||
11660 | * common/agent.h: Add include guards. | |
11661 | ||
e4da2c61 SM |
11662 | 2017-06-21 Simon Marchi <simon.marchi@ericsson.com> |
11663 | ||
11664 | * target.h (struct target_ops) <to_xfer_partial>: Update doc to | |
11665 | talk about addressable units instead of bytes. | |
11666 | ||
96160d60 SDJ |
11667 | 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com> |
11668 | ||
11669 | * common/environ.c (gdb_environ::unset): Use '::iterator' instead | |
11670 | of '::const_iterator'. | |
11671 | ||
9a6c7d9c SDJ |
11672 | 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com> |
11673 | ||
11674 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
11675 | 'unittests/environ-selftests.c'. | |
11676 | (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'. | |
11677 | * charset.c (find_charset_names): Declare object 'iconv_env'. | |
11678 | Update code to use 'iconv_env' object. Remove call to | |
11679 | 'free_environ'. | |
11680 | * common/environ.c: Include <utility>. | |
11681 | (make_environ): Delete function. | |
11682 | (free_environ): Delete function. | |
11683 | (gdb_environ::clear): New function. | |
11684 | (gdb_environ::operator=): New function. | |
11685 | (gdb_environ::get): Likewise. | |
11686 | (environ_vector): Delete function. | |
11687 | (set_in_environ): Delete function. | |
11688 | (gdb_environ::set): New function. | |
11689 | (unset_in_environ): Delete function. | |
11690 | (gdb_environ::unset): New function. | |
11691 | (gdb_environ::envp): Likewise. | |
11692 | * common/environ.h: Include <vector>. | |
11693 | (struct gdb_environ): Delete; transform into... | |
11694 | (class gdb_environ): ... this class. | |
11695 | (free_environ): Delete prototype. | |
11696 | (init_environ, get_in_environ, set_in_environ, unset_in_environ, | |
11697 | environ_vector): Likewise. | |
11698 | * infcmd.c (run_command_1): Update code to call | |
11699 | 'envp' from 'gdb_environ' class. | |
11700 | (environment_info): Update code to call methods from 'gdb_environ' | |
11701 | class. | |
11702 | (unset_environment_command): Likewise. | |
11703 | (path_info): Likewise. | |
11704 | (path_command): Likewise. | |
11705 | * inferior.c (inferior::~inferior): Delete call to 'free_environ'. | |
11706 | (inferior::inferior): Initialize 'environment' using the host's | |
11707 | information. | |
11708 | * inferior.h: Remove forward declaration of 'struct gdb_environ'. | |
11709 | Include "environ.h". | |
11710 | (class inferior) <environment>: Change type from 'struct | |
11711 | gdb_environ' to 'gdb_environ'. | |
11712 | * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call | |
11713 | methods from 'gdb_environ' class. | |
11714 | * solib.c (solib_find_1): Likewise | |
11715 | * unittests/environ-selftests.c: New file. | |
11716 | ||
75c554cf YQ |
11717 | 2017-06-20 Yao Qi <yao.qi@linaro.org> |
11718 | ||
11719 | * features/i386/i386-linux.xml: Exchange the order of including | |
11720 | 32bit-linux.xml and 32bit-sse.xml. | |
11721 | * features/i386/i386-linux.c: Regenerated. | |
11722 | ||
72ddacb7 YQ |
11723 | 2017-06-20 Yao Qi <yao.qi@linaro.org> |
11724 | ||
11725 | * target-descriptions.c (tdesc_reg): Add ctor, dtor. | |
11726 | Delete copy ctor and assignment operator. | |
11727 | (tdesc_type): Likewise. | |
11728 | (tdesc_feature): Likewise. | |
11729 | (tdesc_free_reg): Remove. | |
11730 | (tdesc_create_reg): Use new. | |
11731 | (tdesc_free_type): Remove. | |
11732 | (tdesc_create_vector): Use new. | |
11733 | (tdesc_create_union): Likewise. | |
11734 | (tdesc_create_flags): Likewise. | |
11735 | (tdesc_create_enum): Likewise. | |
11736 | (tdesc_free_feature): Delete. | |
11737 | (free_target_description): Use delete. | |
11738 | ||
325c9fd4 JB |
11739 | 2017-06-19 John Baldwin <jhb@FreeBSD.org> |
11740 | ||
11741 | * mips-tdep.c (print_gp_register_row): Don't error for unavailable | |
11742 | registers. | |
11743 | ||
16b7a719 PA |
11744 | 2017-06-19 Pedro Alves <palves@redhat.com> |
11745 | ||
11746 | * dwarf2read.c (write_psymtabs_to_index): Construct file_closer | |
11747 | after gdb::unlinker. | |
11748 | ||
1c8e01c9 SDJ |
11749 | 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com> |
11750 | ||
11751 | * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of | |
11752 | gdb_environ to access an environment variable. | |
11753 | ||
ffce45d2 TP |
11754 | 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
11755 | ||
11756 | * nat/linux-ptrace.c (linux_fork_to_function): Add cast to | |
11757 | gdb_byte*. | |
11758 | ||
1d4fbac9 SM |
11759 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
11760 | ||
11761 | * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF. | |
11762 | ||
8465943a SM |
11763 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
11764 | ||
11765 | * configure: Re-generate. | |
11766 | * warning.m4 (build_warnings): Add -Wno-mismatched-tags. | |
11767 | ||
3e019bdc SM |
11768 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
11769 | ||
11770 | * configure: Re-generate. | |
11771 | * warning.m4: Pass -Werror to compiler when checking for | |
11772 | supported warning flags. | |
11773 | ||
cf0dd6f0 SM |
11774 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
11775 | ||
11776 | * Makefile.in (COMPILE.pre): Add "-x c++". | |
11777 | ||
6f98355c YQ |
11778 | 2017-06-16 Alan Hayward <alan.hayward@arm.com> |
11779 | Pedro Alves <palves@redhat.com> | |
11780 | Yao Qi <yao.qi@linaro.org> | |
11781 | ||
11782 | * defs.h (RequireLongest): New. | |
11783 | (extract_integer): Declare function template. | |
11784 | (extract_signed_integer): Remove the declaration, but define it | |
11785 | static inline. | |
11786 | (extract_unsigned_integer): Likewise. | |
11787 | (store_integer): Declare function template. | |
11788 | (store_signed_integer): Remove the declaration, but define it | |
11789 | static inline. | |
11790 | (store_unsigned_integer): Likewise. | |
11791 | * findvar.c (extract_integer): New function template. | |
11792 | (extract_signed_integer): Remove. | |
11793 | (extract_unsigned_integer): Remove. | |
11794 | (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit | |
11795 | instantiations. | |
11796 | (store_integer): New function template. | |
11797 | (store_signed_integer): Remove. | |
11798 | (store_unsigned_integer): Remove. | |
11799 | (store_integer): Explicit instantiations. | |
11800 | * regcache.c (regcache_raw_read_signed): Update. | |
11801 | (regcache::raw_read): New function. | |
11802 | (regcache::raw_read_signed): Remove. | |
11803 | (regcache::raw_read_unsigned): Remove. | |
11804 | (regcache_raw_read_unsigned): Update. | |
11805 | (regcache_raw_write_unsigned): Update. | |
11806 | (regcache::raw_write_signed): Remove. | |
11807 | (regcache::raw_write): New function. | |
11808 | (regcache_cooked_read_signed): Update. | |
11809 | (regcache::raw_write_unsigned): Remove. | |
11810 | (regcache::cooked_read_signed): Remove. | |
11811 | (regcache_cooked_read_unsigned): Update. | |
11812 | (regcache::cooked_read_unsigned): Remove. | |
11813 | (regcache_cooked_write_signed): Update. | |
11814 | (regcache_cooked_write_unsigned): Update. | |
11815 | * regcache.h (regcache) <raw_read_signed>: Remove. | |
11816 | <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove. | |
11817 | <raw_read, raw_write>: New. | |
11818 | <cooked_read_signed, cooked_write_signed>: Remove. | |
11819 | <cooked_write_unsigned, cooked_read_unsigned>: Remove. | |
11820 | <cooked_read, cooked_write>: New. | |
11821 | * sh64-tdep.c (sh64_pseudo_register_read): Update. | |
11822 | (sh64_pseudo_register_write): Update. | |
11823 | ||
a87dc45a AK |
11824 | 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com> |
11825 | ||
11826 | * arc-tdep.c (arc_disassembler_options): New variable. | |
11827 | (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead | |
11828 | of default_print_insn. | |
11829 | (arc_delayed_print_insn): Set info->section when needed, | |
11830 | use default_print_insn to retrieve a disassembler. | |
11831 | ||
45159d6a SDJ |
11832 | 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com> |
11833 | ||
11834 | PR gdb/21574 | |
11835 | * infcmd.c (_initialize_infcmd): Expand "help run" documentation | |
11836 | to mention $SHELL and startup-with-shell. | |
11837 | ||
b46c4cf0 MF |
11838 | 2017-06-14 Max Filippov <jcmvbkbc@gmail.com> |
11839 | ||
11840 | * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers. | |
11841 | ||
6394c606 YQ |
11842 | 2017-06-14 Yao Qi <yao.qi@linaro.org> |
11843 | ||
11844 | * aarch64-tdep.c (aarch64_gdb_print_insn): Call | |
11845 | default_print_insn instead of print_insn_aarch64. | |
11846 | * arm-tdep.c (gdb_print_insn_arm): Call | |
11847 | default_print_insn instead of print_insn_big_arm | |
11848 | and print_insn_little_arm. | |
11849 | * i386-tdep.c (i386_print_insn): Call default_print_insn | |
11850 | instead of print_insn_i386. | |
11851 | * ia64-tdep.c (ia64_print_insn): Call | |
11852 | default_print_insn instead of print_insn_ia64. | |
11853 | * mips-tdep.c (gdb_print_insn_mips): Call | |
11854 | default_print_insn instead of print_insn_big_mips | |
11855 | and print_insn_little_mips. | |
11856 | * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn | |
11857 | instead of print_insn_spu. | |
11858 | ||
d5722aa2 PA |
11859 | 2017-06-14 Pedro Alves <palves@redhat.com> |
11860 | ||
11861 | * ada-lang.c: Include "common/byte-vector.h". | |
11862 | (ada_value_primitive_packed_val): Use gdb::byte_vector. | |
11863 | * charset.c (wchar_iterator::iterate): Resize the vector instead | |
11864 | of reserving it. | |
11865 | * common/byte-vector.h: Include "common/def-vector.h". | |
11866 | (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>. | |
11867 | * cli/cli-dump.c: Include "common/byte-vector.h". | |
11868 | (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector. | |
11869 | * common/byte-vector.h: New file. | |
11870 | * common/def-vector.h: New file. | |
11871 | * common/default-init-alloc.h: New file. | |
11872 | * dwarf2loc.c: Include "common/byte-vector.h". | |
11873 | (rw_pieced_value): Use gdb::byte_vector, and resize the vector | |
11874 | instead of reserving it. | |
11875 | * dwarf2read.c: Include "common/byte-vector.h". | |
11876 | (data_buf::m_vec): Now a gdb::byte_vector. | |
11877 | * gdb_regex.c: Include "common/def-vector.h". | |
11878 | (compiled_regex::compiled_regex): Use gdb::def_vector<char>. | |
11879 | * mi/mi-main.c: Include "common/byte-vector.h". | |
11880 | (mi_cmd_data_read_memory): Use gdb::byte_vector. | |
11881 | * printcmd.c: Include "common/byte-vector.h". | |
11882 | (print_scalar_formatted): Use gdb::byte_vector. | |
11883 | * valprint.c: Include "common/byte-vector.h". | |
11884 | (maybe_negate_by_bytes, print_decimal_chars): Use | |
11885 | gdb::byte_vector. | |
11886 | ||
01ec7a27 SM |
11887 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
11888 | ||
11889 | * darwin-nat.c: Include "nat/fork-inferior.h". | |
11890 | ||
848d9074 SM |
11891 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
11892 | ||
11893 | * configure.nat: Factor out Darwin bits that are not | |
11894 | architecture-specific. Add fork-inferior.o. | |
11895 | ||
3b912944 SM |
11896 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
11897 | ||
11898 | * configure.nat: Factor out AIX bits that are not | |
11899 | architecture-specific. Add fork-inferior.o. | |
11900 | ||
55acdf22 AA |
11901 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11902 | ||
11903 | * dwarf2loc.c (rw_pieced_value): New. Merge logic from... | |
11904 | (read_pieced_value, write_pieced_value): ...here. Reduce to | |
11905 | wrappers that just call rw_pieced_value. | |
11906 | ||
f65e2044 AA |
11907 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11908 | ||
11909 | * dwarf2loc.c (write_pieced_value): When writing the data for a | |
11910 | memory piece, use write_memory_with_notification instead of | |
11911 | write_memory. | |
11912 | ||
23f945bf AA |
11913 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11914 | ||
11915 | * valops.c (read_value_memory): Change embedded_offset to | |
11916 | represent a bit offset instead of a byte offset. | |
11917 | * value.h (read_value_memory): Adjust comment. | |
11918 | ||
f236533e AA |
11919 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11920 | ||
11921 | * dwarf2loc.c (read_pieced_value): Remove unnecessary variables | |
11922 | dest_offset_bits and source_offset_bits. | |
11923 | (write_pieced_value): Likewise. | |
11924 | ||
65d84b76 AA |
11925 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11926 | ||
11927 | * dwarf2loc.c (read_pieced_value): Respect the piece offset, as | |
11928 | given by DW_OP_bit_piece. | |
11929 | (write_pieced_value): Likewise. | |
11930 | ||
242d31ab AA |
11931 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11932 | ||
11933 | * dwarf2loc.c (read_pieced_value): Move the buffer allocation and | |
11934 | some other preparations to the places where sufficient information | |
11935 | is available. | |
11936 | (write_pieced_value): Likewise. | |
11937 | ||
03c8af18 AA |
11938 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11939 | ||
11940 | * dwarf2loc.c (bits_to_bytes): New function. | |
11941 | (read_pieced_value): Fix offset calculations for register pieces | |
11942 | on big-endian targets. | |
11943 | (write_pieced_value): Likewise. | |
11944 | ||
840989c1 AA |
11945 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11946 | ||
11947 | * dwarf2loc.c (read_pieced_value): Remove buffer_size variable. | |
11948 | (write_pieced_value): Likewise. | |
11949 | ||
359b19bb AA |
11950 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11951 | ||
11952 | * dwarf2loc.c (write_pieced_value): When writing to a bit-field, | |
11953 | transfer the source value's least significant bits, instead of its | |
11954 | lowest-addressed ones. Rename type_len to max_offset. | |
11955 | (read_pieced_value): Mirror above changes to write_pieced_value as | |
11956 | applicable. | |
11957 | ||
07c9ca3b AA |
11958 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11959 | ||
11960 | * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY, | |
11961 | truncate full bytes from dest_offset_bits before using it as an | |
11962 | offset into the buffer. | |
11963 | ||
f1cc9874 AA |
11964 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11965 | ||
11966 | * dwarf2loc.c (write_pieced_value): Include transfer size in | |
11967 | byte-wise check. | |
11968 | ||
cdaac320 AA |
11969 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11970 | ||
11971 | * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the | |
11972 | calculation of this_size. | |
11973 | ||
af547a96 AA |
11974 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11975 | ||
11976 | * dwarf2loc.c (read_pieced_value): Respect parent value's offset | |
11977 | when targeting a bit-field. | |
11978 | (write_pieced_value): Likewise. | |
11979 | ||
ddd7882a AA |
11980 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11981 | ||
11982 | * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field. | |
11983 | (allocate_piece_closure): Drop addr_size parameter. | |
11984 | (dwarf2_evaluate_loc_desc_full): Adjust call to | |
11985 | allocate_piece_closure. | |
11986 | ||
e9352324 AA |
11987 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11988 | ||
11989 | PR gdb/21226 | |
11990 | * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at | |
11991 | the LSB end, independent of endianness. | |
11992 | ||
d5d1163e AA |
11993 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11994 | ||
11995 | * dwarf2loc.c (write_pieced_value): Fix order of calculations for | |
11996 | size capping. | |
11997 | ||
032bb6ea YQ |
11998 | 2017-06-13 Yao Qi <yao.qi@linaro.org> |
11999 | ||
12000 | * mips-linux-nat.c: Move include features/mips*-linux.c to | |
12001 | mips-linux-tdep.c. | |
12002 | (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls | |
12003 | to mips-linux-tdep.c. | |
12004 | * mips-linux-tdep.c: Include features/mips*-linux.c | |
12005 | (_initialize_mips_linux_tdep): Call initialize_tdesc_mips* | |
12006 | functions. | |
12007 | * mips-linux-tdep.h (tdesc_mips_linux): Declare. | |
12008 | (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare. | |
12009 | (tdesc_mips64_dsp_linux): Declare. | |
12010 | ||
f12f6bad TT |
12011 | 2017-06-12 Tom Tromey <tom@tromey.com> |
12012 | ||
12013 | * valprint.h (val_print_type_code_int): Remove. | |
12014 | * valprint.c (generic_val_print_int): Always call | |
12015 | val_print_scalar_formatted. | |
12016 | (val_print_type_code_int): Remove. | |
12017 | * printcmd.c (print_scalar_formatted): Handle options->format==0. | |
12018 | * f-valprint.c (f_val_print): Use val_print_scalar_formatted. | |
12019 | * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted. | |
12020 | * ada-valprint.c (ada_val_print_num): Use | |
12021 | val_print_scalar_formatted. | |
12022 | ||
d9109c80 TT |
12023 | 2017-06-12 Tom Tromey <tom@tromey.com> |
12024 | ||
12025 | * printcmd.c (print_scalar_formatted): Unify the two switches. | |
12026 | Don't convert scalars to LONGEST. | |
12027 | ||
4ac0cb1c TT |
12028 | 2017-06-12 Tom Tromey <tom@tromey.com> |
12029 | ||
12030 | PR exp/16225: | |
12031 | * valprint.h (print_decimal_chars): Update. | |
12032 | * valprint.c (maybe_negate_by_bytes): New function. | |
12033 | (print_decimal_chars): Add "is_signed" argument. | |
12034 | * printcmd.c (print_scalar_formatted): Update. | |
12035 | ||
30a25466 TT |
12036 | 2017-06-12 Tom Tromey <tom@tromey.com> |
12037 | ||
12038 | PR exp/16225: | |
12039 | * valprint.h (print_binary_chars, print_hex_chars): Update. | |
12040 | * valprint.c (val_print_type_code_int): Update. | |
12041 | (print_binary_chars): Add "zero_pad" argument. | |
12042 | (emit_octal_digit): New function. | |
12043 | (print_octal_chars): Don't zero-pad. | |
12044 | (print_decimal_chars): Likewise. | |
12045 | (print_hex_chars): Add "zero_pad" argument. | |
12046 | * sh64-tdep.c (sh64_do_fp_register): Update. | |
12047 | * regcache.c (regcache::dump): Update. | |
12048 | * printcmd.c (print_scalar_formatted): Update. | |
12049 | * infcmd.c (default_print_one_register_info): Update. | |
12050 | ||
b3464d03 PA |
12051 | 2017-06-12 Pedro Alves <palves@redhat.com> |
12052 | Alan Hayward <alan.hayward@arm.com> | |
12053 | ||
12054 | * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New. | |
12055 | (mips_eabi_push_dummy_call): Rename local 'regsize' to | |
12056 | 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and | |
12057 | use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it. | |
12058 | Assert that abi_regsize bytes fit in 'ref_valbuf'. | |
12059 | ||
4b76cda9 PA |
12060 | 2017-06-12 Pedro Alves <palves@redhat.com> |
12061 | ||
12062 | * dwarf2read.c (mapped_symtab::data): Now a vector of | |
12063 | symtab_index_entry instead of vector of | |
12064 | std::unique_ptr<symtab_index_entry>. All users adjusted to check | |
12065 | whether an element's name is NULL instead of checking whether the | |
12066 | element itself is NULL. | |
12067 | (find_slot): Change return type. Adjust. | |
12068 | (hash_expand, , add_index_entry, uniquify_cu_indices) | |
12069 | (write_hash_table): Adjust. | |
12070 | ||
e8f8bcb3 PA |
12071 | 2017-06-12 Pedro Alves <palves@redhat.com> |
12072 | ||
12073 | * dwarf2read.c (recursively_count_psymbols): New function. | |
12074 | (write_psymtabs_to_index): Call it to compute number of psyms and | |
12075 | pass estimate size of psyms_seen to unordered_set's ctor. | |
12076 | ||
70a1152b PA |
12077 | 2017-06-12 Pedro Alves <palves@redhat.com> |
12078 | ||
12079 | * dwarf2read.c (write_hash_table): Check if key already exists | |
12080 | before emplacing. | |
12081 | ||
c2f134ac PA |
12082 | 2017-06-12 Pedro Alves <palves@redhat.com> |
12083 | ||
12084 | * dwarf2read.c (data_buf::append_space): Rename to... | |
12085 | (data_buf::grow): ... this, and make private. Adjust all callers. | |
12086 | (data_buf::append_uint): New method. | |
12087 | (add_address_entry, write_one_signatured_type) | |
12088 | (write_psymtabs_to_index): Use it. | |
12089 | ||
a81e6d4d PA |
12090 | 2017-06-12 Pedro Alves <palves@redhat.com> |
12091 | ||
12092 | * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete. | |
12093 | (file_write (FILE *, const std::vector<Elem>&)): Delete. | |
12094 | (data_buf::file_write): Call ::fwrite directly. | |
12095 | ||
6fd931f2 PA |
12096 | 2017-06-12 Pedro Alves <palves@redhat.com> |
12097 | ||
12098 | * dwarf2read.c (uniquify_cu_indices): Use std::unique and | |
12099 | std::vector::erase. | |
12100 | ||
bc8f2430 JK |
12101 | 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
12102 | ||
12103 | Code cleanup: C++ify .gdb_index producer. | |
12104 | * dwarf2read.c: Include <unordered_set> and <unordered_map>. | |
12105 | (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type. | |
12106 | (struct strtab_entry, hash_strtab_entry, eq_strtab_entry) | |
12107 | (create_strtab, add_string): Remove. | |
12108 | (file_write, data_buf): New. | |
12109 | (struct symtab_index_entry): Use std::vector for cu_indices. | |
12110 | (struct mapped_symtab): Use std::vector for data. | |
12111 | (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry) | |
12112 | (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab): | |
12113 | Remove. | |
12114 | (find_slot): Change return type. Update it to the new data structures. | |
12115 | (hash_expand, add_index_entry): Update it to the new data structures. | |
12116 | (offset_type_compare): Remove. | |
12117 | (uniquify_cu_indices): Update it to the new data structures. | |
12118 | (c_str_view, c_str_view_hasher, vector_hasher): New. | |
12119 | (add_indices_to_cpool): Remove. | |
12120 | (write_hash_table): Update it to the new data structures. | |
12121 | (struct psymtab_cu_index_map, hash_psymtab_cu_index) | |
12122 | (eq_psymtab_cu_index): Remove. | |
12123 | (psym_index_map): New typedef. | |
12124 | (struct addrmap_index_data): Change addr_obstack pointer to data_buf | |
12125 | reference and std::unordered_map for cu_index_htab. | |
12126 | (add_address_entry, add_address_entry_worker, write_address_map) | |
12127 | (write_psymbols): Update it to the new data structures. | |
12128 | (write_obstack): Remove. | |
12129 | (struct signatured_type_index_data): Change types_list to a data_buf | |
12130 | reference and psyms_seen to a std::unordered_set reference. | |
12131 | (write_one_signatured_type, recursively_write_psymbols) | |
12132 | (write_psymtabs_to_index): Update it to the new data structures. | |
12133 | ||
c4dcb155 SM |
12134 | 2017-06-11 Simon Marchi <simon.marchi@ericsson.com> |
12135 | ||
12136 | * NEWS (Changes since GDB 8.0): Announce {set,show} debug | |
12137 | separate-debug-file commands. | |
12138 | * symfile.h (separate_debug_file_debug): New global. | |
12139 | * symfile.c (separate_debug_file_debug): New global. | |
12140 | (separate_debug_file_exists, find_separate_debug_file): Add | |
12141 | debug output. | |
12142 | (_initialize_symfile): Add "set debug separate-debug-file" | |
12143 | command. | |
12144 | * build-id.c (build_id_to_debug_bfd, | |
12145 | find_separate_debug_file_by_buildid): Add debug output. | |
12146 | ||
6d45d4b4 SM |
12147 | 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca> |
12148 | ||
12149 | * gdbarch.sh (displaced_step_free_closure): Remove. | |
12150 | * gdbarch.h, gdbarch.c: Re-generate. | |
12151 | * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set | |
12152 | displaced_step_free_closure. | |
12153 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise. | |
12154 | * arm-linux-tdep.c (arm_linux_init_abi): Likewise. | |
12155 | * i386-linux-tdep.c (i386_linux_init_abi): Likewise. | |
12156 | * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise. | |
12157 | * rs6000-tdep.c (rs6000_gdbarch_init): Likewise. | |
12158 | * s390-linux-tdep.c (s390_gdbarch_init): Likewise. | |
12159 | * arch-utils.h (simple_displaced_step_free_closure): Remove. | |
12160 | * arch-utils.c (simple_displaced_step_free_closure): Remove. | |
12161 | * infrun.c (displaced_step_clear): Call xfree instead of | |
12162 | gdbarch_displaced_step_free_closure. | |
12163 | ||
2f91880f SDJ |
12164 | 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com> |
12165 | ||
12166 | * common/common-utils.c (stringify_argv): Check for "arg[0] != | |
12167 | NULL". | |
12168 | ||
b8b6e72f AH |
12169 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
12170 | ||
12171 | * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add. | |
12172 | (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE. | |
12173 | (mn10300_push_dummy_call): Likewise. | |
12174 | ||
5369082e AH |
12175 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
12176 | ||
12177 | * mi/mi-main.c (register_changed_p): Use value_contents_eq. | |
12178 | ||
ff4ca5ac AH |
12179 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
12180 | ||
12181 | * mi/mi-main.c (register_changed_p): Use cooked_read_value. | |
12182 | ||
aefd8b33 SDJ |
12183 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
12184 | ||
12185 | * NEWS (Changes since GDB 8.0): Announce that GDBserver is now | |
12186 | able to start inferiors using a shell. | |
12187 | (New remote packets): Announce new packet "QStartupWithShell". | |
12188 | * remote.c: Add PACKET_QStartupWithShell. | |
12189 | (extended_remote_create_inferior): Handle new | |
12190 | PACKET_QStartupWithShell. | |
12191 | (remote_protocol_features) <QStartupWithShell>: New entry for | |
12192 | PACKET_QStartupWithShell. | |
12193 | (_initialize_remote): Call "add_packet_config_cmd" for | |
12194 | QStartupShell. | |
12195 | ||
2090129c SDJ |
12196 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
12197 | Pedro Alves <palves@redhat.com> | |
12198 | ||
12199 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h" | |
12200 | and "nat/fork-inferior.h". | |
12201 | * common/common-inferior.h: New file, with contents from | |
12202 | "gdb/inferior.h". | |
12203 | * commom/common-utils.c: Include "common-utils.h". | |
12204 | (stringify_argv): New function. | |
12205 | * common/common-utils.h (stringify_argv): New prototype. | |
12206 | * configure.nat: Add "fork-inferior.o" as a dependency for | |
12207 | "*linux*", "fbsd*" and "nbsd*" hosts. | |
12208 | * corefile.c (get_exec_file): Update comment. | |
12209 | * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior" | |
12210 | instead of "startup_inferior". | |
12211 | (darwin_create_inferior): Call "add_thread_silent" after | |
12212 | "fork_inferior". | |
12213 | * fork-child.c: Cleanup unnecessary includes. | |
12214 | (SHELL_FILE): Move to "common/common-fork-child.c". | |
12215 | (environ): Likewise. | |
12216 | (exec_wrapper): Initialize. | |
12217 | (get_exec_wrapper): New function. | |
12218 | (breakup_args): Move to "common/common-fork-child.c"; rename to | |
12219 | "breakup_args_for_exec". | |
12220 | (escape_bang_in_quoted_argument): Move to | |
12221 | "common/common-fork-child.c". | |
12222 | (saved_ui): New variable. | |
12223 | (prefork_hook): New function. | |
12224 | (postfork_hook): Likewise. | |
12225 | (postfork_child_hook): Likewise. | |
12226 | (gdb_startup_inferior): Likewise. | |
12227 | (fork_inferior): Move to "common/common-fork-child.c". Update | |
12228 | function to support gdbserver. | |
12229 | (startup_inferior): Likewise. | |
12230 | * gdbcore.h (get_exec_file): Remove declaration. | |
12231 | * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior" | |
12232 | instead of "startup_inferior". Call "add_thread_silent" after | |
12233 | "fork_inferior". | |
12234 | * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h". | |
12235 | (inf_ptrace_create_inferior): Call "gdb_startup_inferior" | |
12236 | instead of "startup_inferior". Call "add_thread_silent" after | |
12237 | "fork_inferior". | |
12238 | * inferior.h: Include "common-inferior.h". | |
12239 | (trace_start_error): Move to "common/common-utils.h". | |
12240 | (trace_start_error_with_name): Likewise. | |
12241 | (fork_inferior): Move prototype to "nat/fork-inferior.h". | |
12242 | (startup_inferior): Likewise. | |
12243 | (gdb_startup_inferior): New prototype. | |
12244 | * nat/fork-inferior.c: New file, with contents from "fork-child.c". | |
12245 | * nat/fork-inferior.h: New file. | |
12246 | * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior" | |
12247 | instead of "startup_inferior". Call "add_thread_silent" after | |
12248 | "fork_inferior". | |
12249 | * target.h (target_terminal_init): Move prototype to | |
12250 | "target/target.h". | |
12251 | (target_terminal_inferior): Likewise. | |
12252 | (target_terminal_ours): Likewise. | |
12253 | * target/target.h (target_terminal_init): New prototype, moved | |
12254 | from "target.h". | |
12255 | (target_terminal_inferior): Likewise. | |
12256 | (target_terminal_ours): Likewise. | |
12257 | * utils.c (gdb_flush_out_err): New function. | |
12258 | ||
043a4934 SDJ |
12259 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
12260 | ||
12261 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h". | |
12262 | * common/common-gdbthread.h: New file, with parts from | |
12263 | "gdb/gdbthread.h". | |
12264 | * gdbthread.h: Include "common-gdbthread.h". | |
12265 | (switch_to_thread): Moved to "common/common-gdbthread.h". | |
12266 | ||
15652511 SDJ |
12267 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
12268 | ||
12269 | * Makefile.in (SFILES): Add "common/job-control.c". | |
12270 | (HFILES_NO_SRCDIR): Add "common/job-control.h". | |
12271 | (COMMON_OBS): Add "job-control.o". | |
12272 | * common/job-control.c: New file, with contents from | |
12273 | "gdb/inflow.c". | |
12274 | * common/job-control.h: New file, with contents from "terminal.h". | |
12275 | * fork-child.c: Include "job-control.h". | |
12276 | * inflow.c: Include "job-control.h". | |
12277 | (gdb_setpgid): Move to "common/common-inflow.c". | |
12278 | (_initialize_inflow): Move setting of "job_control" to | |
12279 | "handle_job_control". | |
12280 | * terminal.h (job_control): Moved to "common/common-terminal.h". | |
12281 | (gdb_setpgid): Likewise. | |
12282 | * top.c: Include "job_control.h". | |
12283 | * utils.c: Likewise. | |
12284 | (job_control): Moved to "job-control.c". | |
12285 | ||
2d7cc5c7 PA |
12286 | 2017-06-07 Pedro Alves <palves@redhat.com> |
12287 | ||
12288 | * Makefile.in (SFILES): Add gdb_regex.c. | |
12289 | (COMMON_OBS): Add gdb_regex.o. | |
12290 | * ada-lang.c (ada_add_standard_exceptions) | |
12291 | (ada_add_exceptions_from_frame, name_matches_regex) | |
12292 | (ada_add_global_exceptions, ada_exceptions_list_1): Change regex | |
12293 | parameter type to compiled_regex. Adjust. | |
12294 | (ada_exceptions_list): Use compiled_regex. | |
12295 | * break-catch-throw.c (exception_catchpoint::pattern): Now a | |
12296 | std::unique_ptr<compiled_regex>. | |
12297 | (exception_catchpoint::~exception_catchpoint): Remove regfree | |
12298 | call. | |
12299 | (check_status_exception_catchpoint): Adjust to use compiled_regex. | |
12300 | (handle_gnu_v3_exceptions): Adjust to use compiled_regex. | |
12301 | * breakpoint.c (solib_catchpoint::compiled): Now a | |
12302 | std::unique_ptr<compiled_regex>. | |
12303 | (solib_catchpoint::~solib_catchpoint): Remove regfree call. | |
12304 | (check_status_catch_solib): Adjust to use compiled_regex. | |
12305 | (add_solib_catchpoint): Adjust to use compiled_regex. | |
12306 | * cli/cli-cmds.c (apropos_command): Use compiled_regex. | |
12307 | * cli/cli-decode.c (apropos_cmd): Change regex parameter to | |
12308 | compiled_regex reference. Adjust to use it. | |
12309 | * cli/cli-decode.h: Remove struct re_pattern_buffer forward | |
12310 | declaration. Include "gdb_regex.h". | |
12311 | (apropos_cmd): Change regex parameter to compiled_regex reference. | |
12312 | * gdb_regex.c: New file. | |
12313 | * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete | |
12314 | declarations. | |
12315 | (class compiled_regex): New. | |
12316 | * linux-tdep.c: Include "common/gdb_optional.h". | |
12317 | (struct mapping_regexes): New, factored out from | |
12318 | mapping_is_anonymous_p, and adjusted to use compiled_regex. | |
12319 | (mapping_is_anonymous_p): Use mapping_regexes wrapped in a | |
12320 | gdb::optional and remove cleanups. Adjust to compiled_regex. | |
12321 | * probe.c: Include "common/gdb_optional.h". | |
12322 | (collect_probes): Use compiled_regex and gdb::optional and remove | |
12323 | cleanups. | |
12324 | * skip.c: Include "common/gdb_optional.h". | |
12325 | (skiplist_entry::compiled_function_regexp): Now a | |
12326 | gdb::optional<compiled_regex>. | |
12327 | (skiplist_entry::compiled_function_regexp_is_valid): Delete field. | |
12328 | (free_skiplist_entry): Remove regfree call. | |
12329 | (compile_skip_regexp, skip_rfunction_p): Adjust to use | |
12330 | compiled_regex and gdb::optional. | |
12331 | * symtab.c: Include "common/gdb_optional.h". | |
12332 | (search_symbols): Use compiled_regex and gdb::optional. | |
12333 | * utils.c (do_regfree_cleanup, make_regfree_cleanup) | |
12334 | (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved | |
12335 | to gdb_regex.c. | |
12336 | ||
50d6adef AH |
12337 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
12338 | ||
12339 | * regcache.c (regcache::save): Avoid buffer use. | |
12340 | (regcache::dump): Likewise. | |
12341 | ||
4a8a33c8 AH |
12342 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
12343 | ||
12344 | * sh-tdep.c (sh_pseudo_register_read): Remove | |
12345 | MAX_REGISTER_SIZE. | |
12346 | (sh_pseudo_register_write): Likewise. | |
12347 | * sh64-tdep.c (sh64_pseudo_register_read): Likewise. | |
12348 | (sh64_pseudo_register_write): Likewise | |
12349 | ||
d1be909e AH |
12350 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
12351 | ||
12352 | * aarch64-tdep.c (aarch64_store_return_value): Use | |
12353 | V_REGISTER_SIZE. | |
12354 | (aarch64_pseudo_read_value): Likewise. | |
12355 | (aarch64_pseudo_write): Likewise. | |
12356 | ||
f4a65042 YQ |
12357 | 2017-06-06 Yao Qi <yao.qi@linaro.org> |
12358 | ||
12359 | * regformats/regdef.h (set_register_cache): Remove the | |
12360 | declaration. | |
12361 | ||
9f7fb0aa AH |
12362 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
12363 | ||
12364 | * frame.c (frame_unwind_register_signed): Use | |
12365 | frame_unwind_register_value. | |
12366 | ||
e1e01040 PA |
12367 | 2017-06-06 Pedro Alves <palves@redhat.com> |
12368 | ||
12369 | PR breakpoints/21553 | |
12370 | * breakpoint.c (create_breakpoints_sal_default) | |
12371 | (init_breakpoint_sal, create_breakpoint_sal): Use | |
12372 | gdb::unique_xmalloc_ptr for string parameters. | |
12373 | (create_breakpoint): Constify 'extra_string' and 'cond_string' | |
12374 | parameters. Replace cleanups with gdb::unique_xmalloc_ptr. | |
12375 | (base_breakpoint_create_breakpoints_sal) | |
12376 | (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal) | |
12377 | (strace_marker_create_breakpoints_sal) | |
12378 | (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for | |
12379 | string parameters. | |
12380 | * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use | |
12381 | gdb::unique_xmalloc_ptr for string parameters. | |
12382 | (create_breakpoint): Constify 'extra_string' and 'cond_string' | |
12383 | parameters. | |
12384 | ||
fbe654c8 AH |
12385 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
12386 | ||
12387 | * alpha-tdep.c (alpha_register_to_value): Use | |
12388 | get_frame_register_value. | |
12389 | (alpha_value_to_register): Use ALPHA_REGISTER_SIZE. | |
12390 | ||
ae0d01d6 AH |
12391 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
12392 | ||
12393 | * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add. | |
12394 | (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE. | |
12395 | (ia64_value_to_register): Likewise. | |
12396 | (ia64_extract_return_value): Likewise. | |
12397 | (ia64_store_return_value): Likewise. | |
12398 | (ia64_push_dummy_call): Likewise. | |
12399 | ||
49cf576c JB |
12400 | 2017-06-04 Joel Brobecker <brobecker@adacore.com> |
12401 | ||
12402 | GDB 8.0 released. | |
12403 | ||
26b6a6ab SM |
12404 | 2017-06-03 Simon Marchi <simon.marchi@ericsson.com> |
12405 | ||
12406 | * x86-linux-nat.c (struct arch_lwp_info): Remove. | |
12407 | ||
22827c51 SM |
12408 | 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca> |
12409 | ||
12410 | * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST | |
12411 | parameter. | |
12412 | (linux_nat_attach): Adjust call to linux_nat_post_attach_wait. | |
12413 | ||
0e05cf3a SM |
12414 | 2017-06-02 Simon Marchi <simon.marchi@ericsson.com> |
12415 | ||
12416 | * event-loop.c (poll_timers): Unallocate timer using delete | |
12417 | instead of xfree. | |
12418 | ||
c1fc2657 SM |
12419 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
12420 | ||
12421 | * breakpoint.h (struct breakpoint_ops) <dtor>: Remove. | |
12422 | (struct breakpoint) <~breakpoint>: New. | |
12423 | (struct watchpoint): Inherit from breakpoint. | |
12424 | <~watchpoint>: New. | |
12425 | <base>: Remove. | |
12426 | (struct tracepoint): Inherit from breakpoint. | |
12427 | <base>: Remove. | |
12428 | * breakpoint.c (longjmp_breakpoint_ops): Remove. | |
12429 | (struct longjmp_breakpoint): Inherit from breakpoint. | |
12430 | <~longjmp_breakpoint>: New. | |
12431 | <base>: Remove. | |
12432 | (new_breakpoint_from_type): Remove casts. | |
12433 | (watchpoint_in_thread_scope): Remove reference to base field. | |
12434 | (watchpoint_del_at_next_stop): Likewise. | |
12435 | (update_watchpoint): Likewise. | |
12436 | (watchpoint_check): Likewise. | |
12437 | (bpstat_check_watchpoint): Likewise. | |
12438 | (set_longjmp_breakpoint): Likewise. | |
12439 | (struct fork_catchpoint): Inherit from breakpoint. | |
12440 | <base>: Remove. | |
12441 | (struct solib_catchpoint): Inherit from breakpoint. | |
12442 | <~solib_catchpoint>: New. | |
12443 | <base>: Remove. | |
12444 | (dtor_catch_solib): Change to ... | |
12445 | (solib_catchpoint::~solib_catchpoint): ... this. | |
12446 | (breakpoint_hit_catch_solib): Remove reference to base field. | |
12447 | (add_solib_catchpoint): Likewise. | |
12448 | (create_fork_vfork_event_catchpoint): Likewise. | |
12449 | (struct exec_catchpoint): Inherit from breakpoint. | |
12450 | <~exec_catchpoint>: New. | |
12451 | <base>: Remove. | |
12452 | (dtor_catch_exec): Change to ... | |
12453 | (exec_catchpoint::~exec_catchpoint): ... this. | |
12454 | (dtor_watchpoint): Change to ... | |
12455 | (watchpoint::~watchpoint): ... this. | |
12456 | (watch_command_1): Remove reference to base field. | |
12457 | (catch_exec_command_1): Likewise. | |
12458 | (base_breakpoint_dtor): Change to ... | |
12459 | (breakpoint::~breakpoint): ... this. | |
12460 | (base_breakpoint_ops): Remove dtor field value. | |
12461 | (longjmp_bkpt_dtor): Change to ... | |
12462 | (longjmp_breakpoint::~longjmp_breakpoint): ... this. | |
12463 | (strace_marker_create_breakpoints_sal): Remove reference to base | |
12464 | field. | |
12465 | (delete_breakpoint): Don't manually call breakpoint destructor. | |
12466 | (create_tracepoint_from_upload): Remove reference to base field. | |
12467 | (trace_pass_set_count): Likewise. | |
12468 | (initialize_breakpoint_ops): Don't initialize | |
12469 | momentary_breakpoint_ops, don't set dtors. | |
12470 | * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint. | |
12471 | <~ada_catchpoint>: New. | |
12472 | <base>: Remove. | |
12473 | (create_excep_cond_exprs): Remove reference to base field. | |
12474 | (dtor_exception): Change to ... | |
12475 | (ada_catchpoint::~ada_catchpoint): ... this. | |
12476 | (dtor_catch_exception): Remove. | |
12477 | (dtor_catch_exception_unhandled): Remove. | |
12478 | (dtor_catch_assert): Remove. | |
12479 | (create_ada_exception_catchpoint): Remove reference to base | |
12480 | field. | |
12481 | (initialize_ada_catchpoint_ops): Don't set dtors. | |
12482 | * break-catch-sig.c (struct signal_catchpoint): Inherit from | |
12483 | breakpoint. | |
12484 | <~signal_catchpoint>: New. | |
12485 | <base>: Remove. | |
12486 | (signal_catchpoint_dtor): Change to ... | |
12487 | (signal_catchpoint::~signal_catchpoint): ... this. | |
12488 | (create_signal_catchpoint): Remove reference to base field. | |
12489 | (initialize_signal_catchpoint_ops): Don't set dtor. | |
12490 | * break-catch-syscall.c (struct syscall_catchpoint): Inherit | |
12491 | from breakpoint. | |
12492 | <~syscall_catchpoint>: New. | |
12493 | <base>: Remove. | |
12494 | (dtor_catch_syscall): Change to ... | |
12495 | (syscall_catchpoint::~syscall_catchpoint): ... this. | |
12496 | (create_syscall_event_catchpoint): Remove reference to base | |
12497 | field. | |
12498 | (initialize_syscall_catchpoint_ops): Don't set dtor. | |
12499 | * break-catch-throw.c (struct exception_catchpoint): Inherit | |
12500 | from breakpoint. | |
12501 | <~exception_catchpoint>: New. | |
12502 | <base>: Remove. | |
12503 | (dtor_exception_catchpoint): Change to ... | |
12504 | (exception_catchpoint::~exception_catchpoint): ... this. | |
12505 | (handle_gnu_v3_exceptions): Remove reference to base field. | |
12506 | (initialize_throw_catchpoint_ops): Don't set dtor. | |
12507 | * ctf.c (ctf_get_traceframe_address): Remove reference to base | |
12508 | field. | |
12509 | * remote.c (remote_get_tracepoint_status): Likewise. | |
12510 | * tracefile-tfile.c (tfile_get_traceframe_address): Likewise. | |
12511 | * tracefile.c (tracefile_fetch_registers): Likewise. | |
12512 | * tracepoint.c (actions_command): Likewise. | |
12513 | (validate_actionline): Likewise. | |
12514 | (tfind_1): Likewise. | |
12515 | (get_traceframe_location): Likewise. | |
12516 | (find_matching_tracepoint_location): Likewise. | |
12517 | (parse_tracepoint_status): Likewise. | |
12518 | * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise. | |
12519 | ||
3b0871f4 SM |
12520 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
12521 | ||
12522 | * breakpoint.c (struct longjmp_breakpoint): New struct. | |
12523 | (is_tracepoint_type): Change return type to bool. | |
12524 | (is_longjmp_type): New function. | |
12525 | (new_breakpoint_from_type): Handle longjmp kinds of breakpoints. | |
12526 | (set_raw_breakpoint_without_location): Use | |
12527 | new_breakpoint_from_type. | |
12528 | (set_raw_breakpoint): Likewise. | |
12529 | ||
a5e364af SM |
12530 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
12531 | ||
12532 | * breakpoint.c (new_breakpoint_from_type): New function. | |
12533 | (create_breakpoint_sal): Use new_breakpoint_from_type and | |
12534 | unique_ptr. | |
12535 | (create_breakpoint): Likewise. | |
12536 | ||
ae3b3f34 SM |
12537 | 2017-05-31 Simon Marchi <simon.marchi@ericsson.com> |
12538 | ||
12539 | * memattr.c (mem_info_command): Rename to ... | |
12540 | (info_mem_command): ... this. | |
12541 | (mem_enable_command): Rename to ... | |
12542 | (enable_mem_command): ... this. | |
12543 | (mem_disable_command): Rename to ... | |
12544 | (disable_mem_command): ... this. | |
12545 | (mem_delete_command): Rename to ... | |
12546 | (delete_mem_command): ... this. | |
12547 | (_initialize_mem): Adjust function names. | |
12548 | ||
13ace077 MM |
12549 | 2017-05-31 Markus Metzger <markus.t.metzger@intel.com> |
12550 | ||
12551 | * btrace.c (handle_pt_insn_events): New. | |
12552 | (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into | |
12553 | STATUS. Split into this and ... | |
12554 | (handle_pt_insn_event_flags): ... this. | |
12555 | ||
c56ccc05 MM |
12556 | 2017-05-31 Markus Metzger <markus.t.metzger@intel.com> |
12557 | ||
12558 | * configure.ac: Check for pt_insn_event, struct pt_insn.enabled, | |
12559 | and struct pt_insn.resynced. | |
12560 | * configure: Regenerated. | |
12561 | * config.in: Regenerated. | |
12562 | ||
08c3f6d2 TW |
12563 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12564 | ||
12565 | * btrace.c (ftrace_find_call_by_number): New function. | |
12566 | (ftrace_new_function): Store objects, not pointers. | |
12567 | (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch, | |
12568 | ftrace_new_gap, ftrace_update_function, | |
12569 | ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear, | |
12570 | btrace_insn_get, btrace_insn_get_error, btrace_insn_end, | |
12571 | btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number, | |
12572 | btrace_ends_with_single_insn, btrace_call_get): Account for | |
12573 | btrace_thread_info::functions now storing objects. | |
12574 | * btrace.h (struct btrace_thread_info): Add constructor. | |
12575 | (struct btrace_thread_info) <functions>: Make std::vector. | |
12576 | (struct btrace_thread_info) <prev, next, up, insn, errcode, flags): | |
12577 | Initialize with default values. | |
12578 | * record-btrace.c (record_btrace_frame_sniffer): Account for | |
12579 | btrace_thread_info::functions now storing objects. | |
12580 | ||
8ffd39f2 TW |
12581 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12582 | ||
12583 | * btrace.c: Remove typedef bfun_s. | |
12584 | (ftrace_new_gap): Directly add gaps to the list of gaps. | |
12585 | (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags, | |
12586 | ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1, | |
12587 | btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector | |
12588 | instead of gdb VEC. | |
12589 | ||
4aeb0dfc TW |
12590 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12591 | ||
12592 | * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun, | |
12593 | ftrace_bridge_gap): Replace references to btrace_thread_info::segment | |
12594 | with btrace_thread_info::next_segment and | |
12595 | btrace_thread_info::prev_segment. | |
12596 | * btrace.h: Remove struct btrace_func_link. | |
12597 | (struct btrace_function): Replace pair of function segment pointers | |
12598 | with pair of indices. | |
12599 | * python/py-record-btrace.c (btpy_call_prev_sibling, | |
12600 | btpy_call_next_sibling): Replace references to | |
12601 | btrace_thread_info::segment with btrace_thread_info::next_segment and | |
12602 | btrace_thread_info::prev_segment. | |
12603 | * record-btrace.c (record_btrace_frame_this_id): Use | |
12604 | btrace_find_call_by_number. | |
12605 | ||
eb8f2b9c TW |
12606 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12607 | ||
12608 | * btrace.c (ftrace_new_function, ftrace_fixup_level, | |
12609 | ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps, | |
12610 | btrace_insn_next, btrace_insn_prev): Remove references to | |
12611 | btrace_thread_info::flow. | |
12612 | * btrace.h (struct btrace_function): Remove FLOW. | |
12613 | ||
42bfe59e TW |
12614 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12615 | ||
12616 | * btrace.c (ftrace_find_call_by_number): New function. | |
12617 | (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall, | |
12618 | ftrace_get_caller, ftrace_find_call, ftrace_new_return, | |
12619 | ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace, | |
12620 | ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an | |
12621 | index. | |
12622 | * btrace.h (struct btrace_function): Turn UP into an index. | |
12623 | * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up | |
12624 | as an index. | |
12625 | * record-btrace.c (record_btrace_frame_unwind_stop_reason, | |
12626 | record_btrace_frame_prev_register, record_btrace_frame_sniffer, | |
12627 | record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number. | |
12628 | ||
b54b03bd TW |
12629 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12630 | ||
12631 | * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall, | |
12632 | ftrace_new_return, ftrace_new_switch, ftrace_new_gap, | |
12633 | ftrace_update_function, ftrace_compute_global_level_offset, | |
12634 | btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt, | |
12635 | btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number, | |
12636 | btrace_insn_end, btrace_is_empty): Remove references to | |
12637 | btrace_thread_info::begin and btrace_thread_info::end. | |
12638 | * btrace.h (struct btrace_thread_info): Remove BEGIN and END. | |
12639 | (struct btrace_thread_info) <functions>: Adjust comment. | |
12640 | * record-btrace.c (record_btrace_start_replaying): Remove reference to | |
12641 | btrace_thread_info::begin. | |
12642 | ||
8286623c TW |
12643 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12644 | ||
12645 | * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall, | |
12646 | ftrace_new_return, ftrace_new_switch, ftrace_new_gap, | |
12647 | ftrace_update_function): Remove arguments that implicitly were always | |
12648 | BTINFO->END. | |
12649 | (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt): | |
12650 | Don't pass BTINFO->END. | |
12651 | ||
a0f1b963 TW |
12652 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12653 | ||
12654 | * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number, | |
12655 | btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev, | |
12656 | btrace_find_insn_by_number): Replace function segment pointer with | |
12657 | index. | |
12658 | (btrace_insn_cmp): Simplify. | |
12659 | * btrace.h: (struct btrace_insn_iterator) Rename index to | |
12660 | insn_index. Replace function segment pointer with index into function | |
12661 | segment vector. | |
12662 | * record-btrace.c (record_btrace_call_history): Replace function | |
12663 | segment pointer use with index. | |
12664 | (record_btrace_frame_sniffer): Retrieve function call segment through | |
12665 | vector. | |
12666 | (record_btrace_set_replay): Remove defunc't safety check. | |
12667 | ||
f158f208 TW |
12668 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12669 | ||
12670 | * btrace.c (btrace_ends_with_single_insn): New function. | |
12671 | (btrace_call_get, btrace_call_number, btrace_call_begin, | |
12672 | btrace_call_end, btrace_call_next, btrace_call_prev, | |
12673 | btrace_find_call_by_number): Use index into call segment vector | |
12674 | instead of pointer. | |
12675 | (btrace_call_cmp): Simplify. | |
12676 | * btrace.h (struct btrace_call_iterator): Replace function call segment | |
12677 | pointer with index into vector. | |
12678 | * record-btrace.c (record_btrace_call_history): Use index instead of | |
12679 | pointer. | |
12680 | ||
521103fd TW |
12681 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12682 | ||
12683 | * btrace.c (btrace_insn_begin, btrace_insn_end, | |
12684 | btrace_find_insn_by_number): Add btinfo to iterator. | |
12685 | * btrace.h (struct btrace_insn_iterator): Add btinfo. | |
12686 | ||
17b89b34 TW |
12687 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12688 | ||
12689 | * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments | |
12690 | and save pointers directly. | |
12691 | (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return, | |
12692 | ftrace_new_switch, ftrace_new_gap, ftrace_update_function, | |
12693 | ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for | |
12694 | changed signature of functions. | |
12695 | (btrace_compute_ftrace_pt): Adjust for changed signature of functions. | |
12696 | (btrace_fetch): Remove code that adds btrace_function pointers to | |
12697 | vector of btrace_functions. | |
12698 | (btrace_clear): Simplify freeing vector of btrace_functions. | |
12699 | ||
2b51eddc TW |
12700 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12701 | ||
12702 | * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number): | |
12703 | Replace VEC_* with std::vector functions. | |
12704 | * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P. | |
12705 | (struct btrace_thread_info)<functions>: Change type to std::vector. | |
12706 | ||
db6be0d5 SM |
12707 | 2017-05-30 Simon Marchi <simon.marchi@ericsson.com> |
12708 | ||
12709 | * NEWS (Changes in GDB 8.0): Remove extra empty line. Move | |
12710 | "Removed targets and native configurations" up. Merge duplicate | |
12711 | "New commands" sub-sections. Add "New options" sub-sections. | |
12712 | ||
b057297a AH |
12713 | 2017-05-26 Alan Hayward <alan.hayward@arm.com> |
12714 | ||
12715 | * defs.h (copy_integer_to_size): New declaration. | |
12716 | * findvar.c (copy_integer_to_size): New function. | |
12717 | (do_cint_test): New selftest function. | |
12718 | (copy_integer_to_size_test): Likewise. | |
12719 | (_initialize_findvar): Likewise. | |
12720 | * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer. | |
12721 | (mips_fbsd_collect_reg): Use raw_collect_integer. | |
12722 | * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer. | |
12723 | (mips64_fill_gregset): Use raw_collect_integer | |
12724 | (mips64_fill_fpregset): Use raw_supply_integer. | |
12725 | * regcache.c (regcache::raw_supply_integer): New function. | |
12726 | (regcache::raw_collect_integer): Likewise. | |
12727 | * regcache.h: (regcache::raw_supply_integer): New declaration. | |
12728 | (regcache::raw_collect_integer): Likewise. | |
12729 | ||
b77b02a5 YQ |
12730 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12731 | ||
12732 | * Makefile.in (SFILES): Add gdbarch-selftests.c. | |
12733 | (COMMON_OBS): Add gdbarch-selftests.o. | |
12734 | * frame.c [GDB_SELF_TESTS] (create_new_frame): New function. | |
12735 | * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare. | |
12736 | * gdbarch-selftests.c: New file. | |
12737 | * regcache.h (regcache) <~regcache>: Mark it virtual if | |
12738 | GDB_SELF_TEST. | |
12739 | <raw_write>: Likewise. | |
12740 | ||
e521e87e YQ |
12741 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12742 | ||
12743 | * regcache.c (current_regcache): Change it to | |
12744 | regcache::current_regcache. | |
12745 | (regcache_observer_target_changed): Update. | |
12746 | (regcache_thread_ptid_changed): Make it a regcache static | |
12747 | method. | |
12748 | (regcache_thread_ptid_changed): Update. | |
12749 | (class regcache_access): New. | |
12750 | (current_regcache_test): Update. | |
12751 | (_initialize_regcache): Update. | |
12752 | * regcache.h: Include forward_list. | |
12753 | (regcache): Declare regcache_thread_ptid_changed and declare | |
12754 | registers_changed_ptid as friend. | |
12755 | ||
d8e07dda YQ |
12756 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12757 | ||
12758 | * i387-tdep.c (i387_register_to_value): Use register_size | |
12759 | instead of TYPE_LENGTH. | |
12760 | * m68k-tdep.c (m68k_register_to_value): Likewise. | |
12761 | ||
8c8f9122 YQ |
12762 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12763 | ||
12764 | * i387-tdep.c (i387_convert_register_p): Return false if type | |
12765 | code isn't TYPE_CODE_FLT. | |
12766 | ||
68fce50f YQ |
12767 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12768 | ||
12769 | * alpha-tdep.c (alpha_convert_register_p): Return true if type | |
12770 | length is 4. | |
12771 | (alpha_register_to_value): Remove type length check. | |
12772 | (alpha_value_to_register): Likewise. | |
12773 | ||
88954b49 YQ |
12774 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12775 | ||
12776 | * ia64-tdep.c (ia64_convert_register_p): Check type's code is | |
12777 | TYPE_CODE_FLT. | |
12778 | ||
e3ec9b69 YQ |
12779 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12780 | ||
12781 | * m68k-tdep.c (m68k_convert_register_p): Check type's code is | |
12782 | TYPE_CODE_FLT or not. | |
12783 | ||
cdd238da YQ |
12784 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12785 | ||
12786 | * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW. | |
12787 | * avr-tdep.c (avr_gdbarch_init): Likewise. | |
12788 | * bfin-tdep.c (bfin_gdbarch_init): Likewise. | |
12789 | * cris-tdep.c (cris_gdbarch_init): Likewise. | |
12790 | * ft32-tdep.c (ft32_gdbarch_init): Likewise. | |
12791 | * lm32-tdep.c (lm32_gdbarch_init): Likewise. | |
12792 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. | |
12793 | * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise. | |
12794 | * mep-tdep.c (mep_gdbarch_init): Likewise. | |
12795 | * microblaze-tdep.c (microblaze_gdbarch_init): Likewise. | |
12796 | * mips-tdep.c (mips_gdbarch_init): Likewise. | |
12797 | * mn10300-tdep.c (mn10300_gdbarch_init): Likewise. | |
12798 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. | |
12799 | * msp430-tdep.c (msp430_gdbarch_init): Likewise. | |
12800 | * sh64-tdep.c (sh64_gdbarch_init): Likewise. | |
12801 | * v850-tdep.c (v850_gdbarch_init): Likewise. | |
12802 | ||
7a3929c4 YQ |
12803 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12804 | ||
12805 | * selftest-arch.c (tests_with_arch): Call registers_changed | |
12806 | and reinit_frame_cache. | |
12807 | * selftest.c (run_self_tests): Likewise. | |
12808 | ||
f4985dba YQ |
12809 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12810 | ||
12811 | * rs6000-tdep.c (gdb_print_insn_powerpc): Remove. | |
12812 | (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn. | |
12813 | ||
ab20fa4a YQ |
12814 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12815 | ||
12816 | * rl78-tdep.c (rl78_gdbarch_init): Don't call | |
12817 | set_gdbarch_print_insn. | |
12818 | ||
f532ab94 YQ |
12819 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12820 | ||
12821 | * h8300-tdep.c (h8300_gdbarch_init): Don't call | |
12822 | set_gdbarch_print_insn. | |
12823 | ||
39503f82 YQ |
12824 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12825 | ||
12826 | * alpha-tdep.c (alpha_gdbarch_init): Don't call | |
12827 | set_gdbarch_print_insn. | |
12828 | * arc-tdep.c (arc_gdbarch_init): Likewise. | |
12829 | * arch-utils.c: include dis-asm.h. | |
12830 | (default_print_insn): New function. | |
12831 | * arch-utils.h (default_print_insn): Declare. | |
12832 | * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn. | |
12833 | * bfin-tdep.c (bfin_gdbarch_init): Likewise. | |
12834 | * cris-tdep.c (cris_delayed_get_disassembler): Remove. | |
12835 | (cris_gdbarch_init): Don't call set_gdbarch_print_insn. | |
12836 | * frv-tdep.c (frv_gdbarch_init): Likewise. | |
12837 | * ft32-tdep.c (ft32_gdbarch_init): Likewise. | |
12838 | * gdbarch.sh (print_insn): Use default_print_insn. | |
12839 | * gdbarch.c: Regenerated. | |
12840 | * hppa-tdep.c (hppa_gdbarch_init): Likewise. | |
12841 | * iq2000-tdep.c (iq2000_gdbarch_init): Likewise. | |
12842 | * lm32-tdep.c (lm32_gdbarch_init): Likewise. | |
12843 | * m32c-tdep.c (m32c_gdbarch_init): Likewise. | |
12844 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. | |
12845 | * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove. | |
12846 | (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn. | |
12847 | * m68k-tdep.c (m68k_gdbarch_init): Likewise. | |
12848 | * m88k-tdep.c (m88k_gdbarch_init): Likewise. | |
12849 | * microblaze-tdep.c (microblaze_gdbarch_init): Likewise. | |
12850 | * mn10300-tdep.c (mn10300_gdbarch_init): Likewise. | |
12851 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. | |
12852 | * msp430-tdep.c (msp430_gdbarch_init): Likewise. | |
12853 | * mt-tdep.c (mt_gdbarch_init): Likewise. | |
12854 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. | |
12855 | * nios2-tdep.c (nios2_print_insn): Remove. | |
12856 | (nios2_gdbarch_init): Don't call set_gdbarch_print_insn. | |
12857 | * rx-tdep.c (rx_gdbarch_init): Likewise. | |
12858 | * s390-linux-tdep.c (s390_gdbarch_init): Likewise. | |
12859 | * score-tdep.c (score_print_insn): Remove. | |
12860 | (score_gdbarch_init): Don't call set_gdbarch_print_insn. | |
12861 | * sh-tdep.c (sh_gdbarch_init): Likewise. | |
12862 | * sh64-tdep.c (sh64_gdbarch_init): Likewise. | |
12863 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. | |
12864 | * tic6x-tdep.c (tic6x_print_insn): Remove. | |
12865 | (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn. | |
12866 | * tilegx-tdep.c (tilegx_gdbarch_init): Likewise. | |
12867 | * v850-tdep.c (v850_gdbarch_init): Likewise. | |
12868 | * vax-tdep.c (vax_gdbarch_init): Likewise. | |
12869 | * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise. | |
12870 | * xtensa-tdep.c (xtensa_gdbarch_init): Likewise. | |
12871 | ||
f7241d4f JB |
12872 | 2017-05-23 John Baldwin <jhb@FreeBSD.org> |
12873 | ||
12874 | * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove. | |
12875 | (MIPS_FP0_REGNUM): Remove. | |
12876 | (MIPS_FSR_REGNUM): Remove. | |
12877 | (mips_fbsd_supply_fpregs): Use mips_regnum. | |
12878 | (mips_fbsd_supply_gregs): Likewise. | |
12879 | (mips_fbsd_collect_fpregs): Likewise. | |
12880 | (mips_fbsd_collect_gregs): Likewise. | |
12881 | ||
d489d81d JB |
12882 | 2017-05-23 John Baldwin <jhb@FreeBSD.org> |
12883 | ||
12884 | * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison. | |
12885 | (getpfpregs_supplies): New function. | |
12886 | (mips_fbsd_fetch_inferior_registers): Remove early exit and use | |
12887 | getfpregs_supplies. | |
12888 | (mips_fbsd_store_inferior_registers): Likewise. | |
12889 | ||
e11b3cdc PA |
12890 | 2017-05-22 Pedro Alves <palves@redhat.com> |
12891 | ||
12892 | * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD | |
12893 | maintainer. | |
12894 | ||
0f068fb5 AH |
12895 | 2017-05-22 Alan Hayward <alan.hayward@arm.com> |
12896 | ||
12897 | * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE. | |
12898 | (store_register): Likewise. | |
12899 | * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise. | |
12900 | (get_decimal_float_return_value): Likewise. | |
12901 | (do_ppc_sysv_return_value): Likewise. | |
12902 | (ppc64_sysv_abi_push_integer): Likewise. | |
12903 | (ppc64_sysv_abi_push_freg): Likewise. | |
12904 | (ppc64_sysv_abi_return_value_base): Likewise. | |
12905 | (ppc64_sysv_abi_return_value): Likewise. | |
12906 | * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise. | |
12907 | * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise. | |
12908 | * rs6000-nat.c: Likewise. | |
12909 | * rs6000-tdep.c (rs6000_register_to_value): Likewise. | |
12910 | (rs6000_value_to_register): Likewise. | |
12911 | * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add. | |
12912 | ||
e6cf65f2 TT |
12913 | 2017-05-21 Tom Tromey <tom@tromey.com> |
12914 | ||
12915 | PR rust/21466: | |
12916 | * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized | |
12917 | arrays as "[T]", not "[T; ]". | |
12918 | ||
43cc5389 TT |
12919 | 2017-05-19 Tom Tromey <tom@tromey.com> |
12920 | ||
12921 | PR rust/21484: | |
12922 | * rust-lang.c (exp_descriptor_rust): New function. | |
12923 | (rust_language_defn): Use it. | |
12924 | * p-lang.c (pascal_language_defn): Update. | |
12925 | * opencl-lang.c (opencl_language_defn): Update. | |
12926 | * objc-lang.c (objc_language_defn): Update. | |
12927 | * m2-lang.c (m2_language_defn): Update. | |
12928 | * language.h (struct language_defn) | |
12929 | <la_watch_location_expression>: New member. | |
12930 | * language.c (unknown_language_defn, auto_language_defn) | |
12931 | (local_language_defn): Update. | |
12932 | * go-lang.c (go_language_defn): Update. | |
12933 | * f-lang.c (f_language_defn): Update. | |
12934 | * d-lang.c (d_language_defn): Update. | |
12935 | * c-lang.h (c_watch_location_expression): Declare. | |
12936 | * c-lang.c (c_watch_location_expression): New function. | |
12937 | (c_language_defn, cplus_language_defn, asm_language_defn) | |
12938 | (minimal_language_defn): Use it. | |
12939 | * breakpoint.c (watch_command_1): Call | |
12940 | la_watch_location_expression. | |
12941 | * ada-lang.c (ada_language_defn): Update. | |
12942 | ||
7a6e7fcc RO |
12943 | 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
12944 | ||
6e7e1744 RO |
12945 | PR tui/21482 |
12946 | * gdb_curses.h (NOMACROS): Define. | |
12947 | (NCURSES_NOMACROS): Define. | |
12948 | ||
12949 | 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
12950 | ||
12951 | PR tui/21482 | |
7a6e7fcc RO |
12952 | * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr |
12953 | arg to char *. | |
12954 | * tui/tui-wingeneral.c (box_win): Likewise. | |
12955 | * tui/tui-winsource.c (tui_erase_source_content): Likewise. | |
12956 | (tui_show_source_line): Likewise. | |
12957 | (tui_show_exec_info_content): Likewise. | |
12958 | ||
1933fd8e VM |
12959 | 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com> |
12960 | ||
12961 | * sparc-tdep.c (sparc_structure_return_p) | |
12962 | (sparc_arg_on_registers_p): New functions. | |
12963 | (sparc32_store_arguments): Use them. | |
12964 | * sparc64-tdep.c (sparc64_16_byte_align_p) | |
12965 | (sparc64_store_floating_fields, sparc64_extract_floating_fields): | |
12966 | Handle TYPE_CODE_ARRAY. | |
12967 | ||
21873064 YQ |
12968 | 2017-05-17 Yao Qi <yao.qi@linaro.org> |
12969 | ||
12970 | * cli/cli-decode.c (add_alias_cmd): New function. | |
12971 | * command.h (add_alias_cmd): Declare. | |
12972 | * infcmd.c (_initialize_infcmd): Don't call add_com_alias, | |
12973 | instead call add_alias_cmd. | |
12974 | ||
2b351b19 PA |
12975 | 2017-05-17 Pedro Alves <palves@redhat.com> |
12976 | ||
12977 | * Makefile.in (nat_extra_makefile_frag): Rename to ... | |
12978 | (nat_makefile_frag): ... this. All references updated. | |
12979 | * configure.ac: Likewise. | |
12980 | * configure.nat: Likewise. Enhance comments. | |
12981 | * configure: Regenerate. | |
12982 | ||
5f2ad7a3 RO |
12983 | 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
12984 | ||
12985 | * procfs.c (procfs_create_inferior): Change prototype to match | |
12986 | definition. | |
12987 | ||
adf3dde5 EZ |
12988 | 2017-05-13 Eli Zaretskii <eliz@gnu.org> |
12989 | ||
12990 | * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a | |
12991 | C++ compiler warning. | |
12992 | ||
6830f270 TT |
12993 | 2017-05-12 Tom Tromey <tom@tromey.com> |
12994 | ||
12995 | PR rust/21483: | |
12996 | * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't | |
12997 | recurse, just call value_struct_elt directly. | |
12998 | ||
68f2f2e3 TT |
12999 | 2017-05-12 Tom Tromey <tom@tromey.com> |
13000 | ||
13001 | * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS, | |
13002 | OP_RUST_ARRAY>: Fix. | |
13003 | ||
256afbc2 TT |
13004 | 2017-05-12 Tom Tromey <tom@tromey.com> |
13005 | ||
13006 | * rust-lang.c (rust_print_subexp): Replace "return" with "break". | |
13007 | ||
94bb8dfe YQ |
13008 | 2017-05-09 Yao Qi <yao.qi@linaro.org> |
13009 | ||
13010 | * regcache.c: Include <forward_list>. | |
13011 | (struct regcache_list): Remove. | |
13012 | (current_regcache): Update. | |
13013 | (get_thread_arch_aspace_regcache): Update for std::forward_list. | |
13014 | (regcache_thread_ptid_changed): Likewise. | |
13015 | (registers_changed_ptid): Likewise. | |
13016 | (current_regcache_size): Likewise. | |
13017 | ||
8248946c YQ |
13018 | 2017-05-09 Yao Qi <yao.qi@linaro.org> |
13019 | ||
13020 | * regcache.c [GDB_SELF_TEST]: Include selftest.h. | |
13021 | (current_regcache_size): New function. | |
13022 | (current_regcache_test): New function. | |
13023 | (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test. | |
13024 | ||
313c5961 AH |
13025 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
13026 | ||
13027 | * mips-tdep.c (mips_o32_return_value): Remove unused buffer. | |
13028 | (print_gp_register_row): Use get_frame_register_value. | |
13029 | ||
27bfc1d1 AH |
13030 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
13031 | ||
13032 | * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed. | |
13033 | (mips_supply_fpregset): Likewise. | |
13034 | (mips64_supply_gregset): Likewise. | |
13035 | ||
146e6c5c AH |
13036 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
13037 | ||
13038 | * mn10300-linux-tdep.c (am33_supply_gregset_method): Use | |
13039 | regcache->raw_supply_zeroed. | |
13040 | ||
e50f25ec SDJ |
13041 | 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com> |
13042 | ||
13043 | * configure.nat: Rearrange 'case' statements to match | |
13044 | host before cpu. | |
13045 | ||
21ea5acd SDJ |
13046 | 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com> |
13047 | ||
13048 | * Makefile.in: Remove "@host_makefile_frag@". Add variables | |
13049 | NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS, | |
13050 | NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add | |
13051 | "@nat_extra_makefile_frag@". | |
13052 | (Makefile): Remove dependency on "@frags@". | |
13053 | ($(GNULIB_BUILDDIR)/Makefile): Likewise. | |
13054 | (data-directory/Makefile): Likewise. | |
13055 | * config/aarch64/linux.mh: Deleted; moved contents to | |
13056 | "gdb/configure.nat". | |
13057 | * config/alpha/alpha-linux.mh: Likewise. | |
13058 | * config/alpha/nbsd.mh: Likewise. | |
13059 | * config/arm/linux.mh: Likewise. | |
13060 | * config/arm/nbsdelf.mh: Likewise. | |
13061 | * config/i386/cygwin.mh: Likewise. | |
13062 | * config/i386/cygwin64.mh: Likewise. | |
13063 | * config/i386/darwin.mh: Likewise. | |
13064 | * config/i386/fbsd.mh: Likewise. | |
13065 | * config/i386/fbsd64.mh: Likewise. | |
13066 | * config/i386/go32.mh: Likewise. | |
13067 | * config/i386/i386gnu.mh: Likewise. | |
13068 | * config/i386/i386sol2.mh: Likewise. | |
13069 | * config/i386/linux.mh: Likewise. | |
13070 | * config/i386/linux64.mh: Likewise. | |
13071 | * config/i386/mingw.mh: Likewise. | |
13072 | * config/i386/mingw64.mh: Likewise. | |
13073 | * config/i386/nbsd64.mh: Likewise. | |
13074 | * config/i386/nbsdelf.mh: Likewise. | |
13075 | * config/i386/nto.mh: Likewise. | |
13076 | * config/i386/obsd.mh: Likewise. | |
13077 | * config/i386/obsd64.mh: Likewise. | |
13078 | * config/i386/sol2-64.mh: Likewise. | |
13079 | * config/ia64/linux.mh: Likewise. | |
13080 | * config/m32r/linux.mh: Likewise. | |
13081 | * config/m68k/linux.mh: Likewise. | |
13082 | * config/m68k/nbsdelf.mh: Likewise. | |
13083 | * config/m68k/obsd.mh: Likewise. | |
13084 | * config/m88k/obsd.mh: Likewise. | |
13085 | * config/mips/fbsd.mh: Likewise. | |
13086 | * config/mips/linux.mh: Likewise. | |
13087 | * config/mips/nbsd.mh: Likewise. | |
13088 | * config/mips/obsd64.mh: Likewise. | |
13089 | * config/pa/linux.mh: Likewise. | |
13090 | * config/pa/nbsd.mh: Likewise. | |
13091 | * config/pa/obsd.mh: Likewise. | |
13092 | * config/powerpc/aix.mh: Likewise. | |
13093 | * config/powerpc/fbsd.mh: Likewise. | |
13094 | * config/powerpc/linux.mh: Likewise. | |
13095 | * config/powerpc/nbsd.mh: Likewise. | |
13096 | * config/powerpc/obsd.mh: Likewise. | |
13097 | * config/powerpc/ppc64-linux.mh: Likewise. | |
13098 | * config/powerpc/spu-linux.mh: Likewise. | |
13099 | * config/s390/linux.mh: Likewise. | |
13100 | * config/sh/nbsd.mh: Likewise. | |
13101 | * config/sparc/fbsd.mh: Likewise. | |
13102 | * config/sparc/linux.mh: Likewise. | |
13103 | * config/sparc/linux64.mh: Likewise. | |
13104 | * config/sparc/nbsd64.mh: Likewise. | |
13105 | * config/sparc/nbsdelf.mh: Likewise. | |
13106 | * config/sparc/obsd64.mh: Likewise. | |
13107 | * config/sparc/sol2.mh: Likewise. | |
13108 | * config/tilegx/linux.mh: Likewise. | |
13109 | * config/vax/nbsdelf.mh: Likewise. | |
13110 | * config/vax/obsd.mh: Likewise. | |
13111 | * config/xtensa/linux.mh: Likewise. | |
13112 | * config/i386/i386gnu.mn: New file, with excerpts from | |
13113 | "config/i386/i386gnu.mh". | |
13114 | * configure: Regenerate. | |
13115 | * configure.ac: Rewrite code to use "gdb/configure.nat" instead of | |
13116 | *.mh files under "gdb/config". | |
13117 | * configure.nat: New file, with contents from the | |
13118 | "gdb/config/*/*.mh" files. | |
13119 | ||
7ed1acaf TW |
13120 | 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com> |
13121 | ||
13122 | * btrace.c (btrace_clear): Free insn vector. | |
13123 | ||
e13cb306 PA |
13124 | 2017-05-05 Pedro Alves <palves@redhat.com> |
13125 | ||
13126 | * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized. | |
13127 | * configure: Regenerate. | |
13128 | ||
5ed8105e PA |
13129 | 2017-05-04 Pedro Alves <palves@redhat.com> |
13130 | ||
13131 | * Makefile.in (SFILES): Add progspace-and-thread.c. | |
13132 | (HFILES_NO_SRCDIR): Add progspace-and-thread.h. | |
13133 | (COMMON_OBS): Add progspace-and-thread.o. | |
13134 | * breakpoint.c: Include "progspace-and-thread.h". | |
13135 | (update_inserted_breakpoint_locations) | |
13136 | (insert_breakpoint_locations, create_longjmp_master_breakpoint): | |
13137 | Use scoped_restore_current_pspace_and_thread. | |
13138 | (create_std_terminate_master_breakpoint): Use | |
13139 | scoped_restore_current_program_space. | |
13140 | (remove_breakpoint): Use scoped_restore_current_pspace_and_thread. | |
13141 | (print_breakpoint_location): Use | |
13142 | scoped_restore_current_program_space. | |
13143 | (bp_loc_is_permanent): Use | |
13144 | scoped_restore_current_pspace_and_thread. | |
13145 | (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread. | |
13146 | (download_tracepoint_locations): Use | |
13147 | scoped_restore_current_pspace_and_thread. | |
13148 | (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread. | |
13149 | * exec.c (exec_close_1): Use scoped_restore_current_program_space. | |
13150 | (enum step_over_calls_kind): Moved from inferior.h. | |
13151 | (class scoped_restore_current_thread): New class. | |
13152 | * gdbthread.h (make_cleanup_restore_current_thread): Delete | |
13153 | declaration. | |
13154 | (scoped_restore_current_thread): New class. | |
13155 | * infcmd.c: Include "common/gdb_optional.h". | |
13156 | (continue_1, proceed_after_attach): Use | |
13157 | scoped_restore_current_thread. | |
13158 | (notice_new_inferior): Use scoped_restore_current_thread. | |
13159 | * inferior.c: Include "progspace-and-thread.h". | |
13160 | (restore_inferior, save_current_inferior): Delete. | |
13161 | (add_inferior_command, clone_inferior_command): Use | |
13162 | scoped_restore_current_pspace_and_thread. | |
13163 | * inferior.h (scoped_restore_current_inferior): New class. | |
13164 | * infrun.c: Include "progspace-and-thread.h" and | |
13165 | "common/gdb_optional.h". | |
13166 | (follow_fork_inferior): Use | |
13167 | scoped_restore_current_pspace_and_thread. | |
13168 | (scoped_restore_exited_inferior): New class. | |
13169 | (handle_vfork_child_exec_or_exit): Use | |
13170 | scoped_restore_exited_inferior, | |
13171 | scoped_restore_current_pspace_and_thread, | |
13172 | scoped_restore_current_thread and scoped_restore. | |
13173 | (fetch_inferior_event): Use scoped_restore_current_thread. | |
13174 | * linespec.c (decode_line_full, decode_line_1): Use | |
13175 | scoped_restore_current_program_space. | |
13176 | * mi/mi-main.c: Include "progspace-and-thread.h". | |
13177 | (exec_continue): Use scoped_restore_current_thread. | |
13178 | (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread. | |
13179 | (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread. | |
13180 | * proc-service.c (ps_pglobal_lookup): Use | |
13181 | scoped_restore_current_program_space. | |
13182 | * progspace-and-thread.c: New file. | |
13183 | * progspace-and-thread.h: New file. | |
13184 | * progspace.c (release_program_space, clone_program_space): Use | |
13185 | scoped_restore_current_program_space. | |
13186 | (restore_program_space, save_current_program_space) | |
13187 | (save_current_space_and_thread): Delete. | |
13188 | (switch_to_program_space_and_thread): Moved to | |
13189 | progspace-and-thread.c. | |
13190 | * progspace.h (save_current_program_space) | |
13191 | (save_current_space_and_thread): Delete declarations. | |
13192 | (scoped_restore_current_program_space): New class. | |
13193 | * remote.c (remote_btrace_maybe_reopen): Use | |
13194 | scoped_restore_current_thread. | |
13195 | * symtab.c: Include "progspace-and-thread.h". | |
13196 | (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread. | |
13197 | * thread.c (print_thread_info_1): Use | |
13198 | scoped_restore_current_thread. | |
13199 | (struct current_thread_cleanup): Delete. | |
13200 | (do_restore_current_thread_cleanup) | |
13201 | (restore_current_thread_cleanup_dtor): Rename/convert both to ... | |
13202 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
13203 | ... this new dtor. | |
13204 | (make_cleanup_restore_current_thread): Rename/convert to ... | |
13205 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
13206 | ... this new ctor. | |
13207 | (thread_apply_all_command): Use scoped_restore_current_thread. | |
13208 | (thread_apply_command): Use scoped_restore_current_thread. | |
13209 | * tracepoint.c (tdump_command): Use scoped_restore_current_thread. | |
13210 | * varobj.c (value_of_root_1): Use scoped_restore_current_thread. | |
13211 | ||
f6223dbb PA |
13212 | 2017-05-04 Pedro Alves <palves@redhat.com> |
13213 | ||
13214 | * thread.c (make_cleanup_restore_current_thread): Move | |
13215 | find_thread_ptid call before the is_stopped call. Assert that the | |
13216 | thread is found. Replace is_stopped call by checking the thread's | |
13217 | state directly. Remove unnecessary NULL-thread check. | |
13218 | ||
3c3ae77e PA |
13219 | 2017-05-04 Pedro Alves <palves@redhat.com> |
13220 | ||
13221 | * corelow.c (thread_section_name): New class. | |
13222 | (get_core_register_section, get_core_siginfo): Use it. | |
13223 | ||
45eba0ab AA |
13224 | 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
13225 | ||
13226 | * corelow.c (sniff_core_bfd): Remove extra semicolon. | |
13227 | (get_core_register_section): Remove xfree of NULL pointer. | |
13228 | ||
f81fdd35 AH |
13229 | 2017-05-03 Alan Hayward <alan.hayward@arm.com> |
13230 | ||
13231 | * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed. | |
13232 | * regcache.c (regcache::raw_supply_zeroed): New function. | |
13233 | * regcache.h (regcache::raw_supply_zeroed): New declaration. | |
13234 | ||
35837774 SM |
13235 | 2017-05-03 Simon Marchi <simon.marchi@ericsson.com> |
13236 | ||
13237 | * gdbarch.sh: Remove commented out definition of | |
13238 | TARGET_CHAR_BIT. | |
13239 | * gdbarch.h: Re-generate. | |
13240 | ||
c94fee56 SDJ |
13241 | 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com> |
13242 | ||
13243 | * configure: Regenerate. | |
13244 | ||
d17f7b36 SM |
13245 | 2017-05-02 Simon Marchi <simon.marchi@ericsson.com> |
13246 | ||
13247 | * solib-target.c (solib_target_relocate_section_addresses): | |
13248 | Remove num_section_bases, num_bases, segment_bases variables. | |
13249 | ||
b560ebd6 SM |
13250 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
13251 | ||
13252 | * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove. | |
13253 | ||
f2f46dfc SM |
13254 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
13255 | ||
13256 | * solib-target.c: Include <vector> | |
13257 | (struct lm_info_target) <~lm_info_target>: Remove. | |
13258 | <segment_bases, section_bases>: Change type to | |
13259 | std::vector<CORE_ADDR>. | |
13260 | (library_list_start_segment, library_list_start_section, | |
13261 | library_list_end_library, | |
13262 | solib_target_relocate_section_addresses): Adjust. | |
13263 | ||
a0ff9e1a SM |
13264 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
13265 | ||
13266 | * gdbarch.sh (software_single_step): Change return type to | |
13267 | std::vector<CORE_ADDR>. | |
13268 | * gdbarch.c, gdbarch.h: Re-generate. | |
13269 | * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw): | |
13270 | Adjust. | |
13271 | (arm_deal_with_atomic_sequence_raw): Adjust. | |
13272 | (thumb_get_next_pcs_raw): Adjust. | |
13273 | (arm_get_next_pcs_raw): Adjust. | |
13274 | (arm_get_next_pcs): Adjust. | |
13275 | * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust. | |
13276 | * aarch64-tdep.c (aarch64_software_single_step): Adjust. | |
13277 | * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust. | |
13278 | (alpha_software_single_step): Adjust. | |
13279 | * alpha-tdep.h (alpha_software_single_step): Adjust. | |
13280 | * arm-linux-tdep.c (arm_linux_software_single_step): Adjust. | |
13281 | * arm-tdep.c (arm_software_single_step): Adjust. | |
13282 | (arm_breakpoint_kind_from_current_state): Adjust. | |
13283 | * arm-tdep.h (arm_software_single_step): Adjust. | |
13284 | * breakpoint.c (insert_single_step_breakpoint): Adjust. | |
13285 | * cris-tdep.c (cris_software_single_step): Adjust. | |
13286 | * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust. | |
13287 | (micromips_deal_with_atomic_sequence): Adjust. | |
13288 | (deal_with_atomic_sequence): Adjust. | |
13289 | (mips_software_single_step): Adjust. | |
13290 | * mips-tdep.h (mips_software_single_step): Adjust. | |
13291 | * moxie-tdep.c (moxie_software_single_step): Adjust. | |
13292 | * nios2-tdep.c (nios2_software_single_step): Adjust. | |
13293 | * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust. | |
13294 | * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust. | |
13295 | * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust. | |
13296 | * s390-linux-tdep.c (s390_software_single_step): Adjust. | |
13297 | * sparc-tdep.c (sparc_software_single_step): Adjust. | |
13298 | * spu-tdep.c (spu_software_single_step): Adjust. | |
13299 | * tic6x-tdep.c (tic6x_software_single_step): Adjust. | |
13300 | ||
ea480a30 SM |
13301 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
13302 | ||
13303 | * gdbarch.sh: Use semi-colon as field separator instead of colon. | |
13304 | * gdbarch.h: Re-generate. | |
13305 | ||
d050f7d7 TW |
13306 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
13307 | ||
13308 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o. | |
13309 | (SUBDIR_PYTHON_SRCS): Add py-instruction.c. | |
13310 | * python/py-instruction.c, python/py-instruction.h: New file. | |
13311 | * python/py-record.c: Add py-instruction.h include. | |
13312 | (gdbpy_initialize_record): Make gdb.Instruction a super class of | |
13313 | gdb.RecordInstruction. | |
13314 | * python/python-internal.h: Add gdbpy_initialize_instruction | |
13315 | declaration. | |
13316 | * python/python.c (do_start_initialization): Add | |
13317 | gdbpy_initialize_instruction. | |
13318 | ||
14f819c8 TW |
13319 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
13320 | ||
13321 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type): | |
13322 | Remove. | |
13323 | (btrace_func_from_recpy_func): New function. | |
13324 | (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove. | |
13325 | (btpy_call_level, btpy_call_symbol, btpy_call_instructions, | |
13326 | btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ... | |
13327 | (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions, | |
13328 | recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This. | |
13329 | Also, use new helper functions. | |
13330 | (btpy_list_item): Use new helper functions. | |
13331 | (recpy_bt_function_call_history): Use new type name. | |
13332 | (btpy_call_getset): Remove. | |
13333 | (gdbpy_initialize_btrace): Remove code to initialize | |
13334 | gdb.BtraceFunctionCall. | |
13335 | * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level, | |
13336 | recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up, | |
13337 | recpy_bt_func_prev, recpy_bt_func_next): New export. | |
13338 | * python/py-record.c (recpy_func_type): New static object. | |
13339 | (recpy_func_new, recpy_func_level, recpy_func_symbol, | |
13340 | recpy_func_instructions, recpy_func_up, recpy_func_prev, | |
13341 | recpy_func_next): New function. | |
13342 | (recpy_element_hash, recpy_element_richcompare): Updated comment. | |
13343 | (recpy_func_getset): New static object. | |
13344 | (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction. | |
13345 | * python/py-record.h (recpy_func_type, recpy_func_new): New export. | |
13346 | ||
0ed5da75 TW |
13347 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
13348 | ||
13349 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove. | |
13350 | (btpy_object, btpy_insn_type, btpy_new): Remove. | |
13351 | (btpy_list_object): Use gdb.RecordInstruction type instead of | |
13352 | gdb.BtraceInstruction type. | |
13353 | (btrace_insn_from_recpy_insn): New function. | |
13354 | (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of | |
13355 | btpy_new. | |
13356 | (btpy_call_new, btpy_list_item): Do not use btpy_new anymore. | |
13357 | (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol, | |
13358 | btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling, | |
13359 | btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object | |
13360 | instead of btpy_object. | |
13361 | (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative, | |
13362 | btpy_insn_data, btpy_insn_decode): Rename to ... | |
13363 | (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size, | |
13364 | recpy_bt_insn_is_speculative, recpy_bt_insn_data, | |
13365 | recpy_bt_insn_decode): This. Also, use new helper functions. | |
13366 | (btpy_list_position, recpy_bt_goto): Use recpy_element_object and | |
13367 | recpy_insn_type. | |
13368 | (btpy_insn_getset): Remove. | |
13369 | (gdbpy_initialize_btrace): Remove code to initialize | |
13370 | gdb.BtraceInstruction. Use recpy_element_object. | |
13371 | * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal, | |
13372 | recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded, | |
13373 | recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export. | |
13374 | * python/py-record.c (recpy_insn_type): New static object. | |
13375 | (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data, | |
13376 | recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative, | |
13377 | recpy_element_number, recpy_element_hash, recpy_element_richcompare): | |
13378 | New function. | |
13379 | (recpy_insn_getset): New static object. | |
13380 | (gdbpy_initialize_record): Initialize gdb.RecordInstruction. | |
13381 | * python/py-record.h (recpy_element_object): New typedef. | |
13382 | (recpy_insn_type, recpy_insn_new): New export. | |
13383 | ||
913aeadd TW |
13384 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
13385 | ||
13386 | * py-record-btrace.c (btpy_insn_new): Removed. | |
13387 | (btpy_insn_or_gap_new): New function. | |
13388 | (btpy_insn_error): Removed. | |
13389 | (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative, | |
13390 | btpy_insn_data, btpy_insn_decode): Remove code path for gaps. | |
13391 | (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call | |
13392 | btpy_insn_or_gap_new instead of btpy_insn_new. | |
13393 | (btpy_insn_getset): Remove btpy_insn_error. | |
13394 | * py-record.c (recpy_gap_type): New static object. | |
13395 | (recpy_gap_object): New typedef. | |
13396 | (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code, | |
13397 | recpy_gap_reason_string): New function. | |
13398 | (recpy_gap_getset): New static object. | |
13399 | (gdbpy_initialize_record): Initialize gdb.RecordGap type. | |
13400 | * py-record.h (recpy_gap_new): New export. | |
13401 | ||
a3be24ad TW |
13402 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
13403 | ||
13404 | * python/py-record.c (recpy_ptid): Remove. | |
13405 | (recpy_record_getset): Remove recpy_ptid. | |
13406 | ||
ae20e79a TW |
13407 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
13408 | ||
13409 | * btrace.c (btrace_fetch): Set inferior_ptid. | |
13410 | * python/py-record-btrace.c: Add "py-record.h" include. | |
13411 | (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin, | |
13412 | recpy_bt_end, recpy_bt_instruction_history, | |
13413 | recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored | |
13414 | in gdb.Record object instead of current ptid. | |
13415 | * python/py-record.c: Include new "py-record.h" file. | |
13416 | (recpy_record_object): Moved to py-record.h. | |
13417 | * python/py-record.h: New file. | |
13418 | ||
8d0050ea TW |
13419 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
13420 | ||
13421 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN, | |
13422 | BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix | |
13423 | indentation. | |
13424 | ||
3f380b50 JB |
13425 | 2017-05-01 Joel Brobecker <brobecker@adacore.com> |
13426 | ||
13427 | * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to | |
13428 | the past maintainers section. | |
13429 | ||
07495424 YQ |
13430 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
13431 | ||
13432 | * infcmd.c (get_return_value): Use regcache ctor, and remove | |
13433 | cleanup. | |
13434 | ||
deb1fa3e YQ |
13435 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
13436 | Pedro Alves <palves@redhat.com> | |
13437 | ||
13438 | * regcache.c (regcache::regcache): New tag dispatch ctor. | |
13439 | (do_cooked_read): Moved above. | |
13440 | (regcache_dup): Use the tag dispatch ctor.. | |
13441 | * regcache.h (regcache): Declare ctor, delete copy ctor and | |
13442 | assignment operator, remove friend regcache_dup. | |
13443 | ||
b421c83c YQ |
13444 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
13445 | ||
13446 | * regcache.c (regcache_dup): Assert !src->m_readonly_p and | |
13447 | call method save instead of regcache_cpy. | |
13448 | * regcache.h (struct regcache): Make regcache_dup a friend. | |
13449 | ||
ef79d9a3 YQ |
13450 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
13451 | ||
13452 | * regcache.c (struct regcache): Move to regcache.h | |
13453 | (regcache::arch): New method. | |
13454 | (regcache_get_ptid): Update. | |
13455 | (get_regcache_arch): Call arch method. | |
13456 | (get_regcache_aspace): Call method aspace. | |
13457 | (register_buffer): Change it to method. | |
13458 | (regcache_save): Change it to regcache::save. | |
13459 | (regcache_restore): Likewise. | |
13460 | (regcache_cpy_no_passthrough): Remove the declaration. | |
13461 | (regcache_cpy): Call methods restore and cpy_no_passthrough. | |
13462 | (regcache_cpy_no_passthrough): Change it to method | |
13463 | cpy_no_passthrough. | |
13464 | (regcache_register_status): Change it to method | |
13465 | get_register_status. | |
13466 | (regcache_invalidate): Change it to method invalidate. | |
13467 | (regcache_thread_ptid_changed): Use methods ptid and set_ptid. | |
13468 | (regcache_raw_update): Change it to method raw_update. | |
13469 | (regcache_raw_read): Likewise. | |
13470 | (regcache_raw_read_signed): Likewise. | |
13471 | (regcache_raw_read_unsigned): Likewise. | |
13472 | (regcache_raw_write_signed): Likewise. | |
13473 | (regcache_raw_write_unsigned): Likewise. | |
13474 | (regcache_cooked_read): Likewise. | |
13475 | (regcache_cooked_read_value): Likewise. | |
13476 | (regcache_cooked_read_signed): Likewise. | |
13477 | (regcache_cooked_read_unsigned): Likewise. | |
13478 | (regcache_cooked_write_signed): Likewise. | |
13479 | (regcache_cooked_write_unsigned): Likewise. | |
13480 | (regcache_raw_set_cached_value): Likewise. | |
13481 | (regcache_raw_write): Likewise. | |
13482 | (regcache_cooked_write): Likewise. | |
13483 | (regcache_xfer_part): Likewise. | |
13484 | (regcache_raw_read_part): Likewise. | |
13485 | (regcache_raw_write_part): Likewise. | |
13486 | (regcache_cooked_read_part): Likewise. | |
13487 | (regcache_cooked_write_part): Likewise. | |
13488 | (regcache_raw_supply): Likewise. | |
13489 | (regcache_raw_collect): Likewise. | |
13490 | (regcache_transfer_regset): Likewise. | |
13491 | (regcache_supply_regset): Likewise. | |
13492 | (regcache_collect_regset): Likewise. | |
13493 | (regcache_debug_print_register): Likewise. | |
13494 | (enum regcache_dump_what): Move it to regcache.h. | |
13495 | (regcache_dump): Change it to method dump. | |
13496 | * regcache.h (enum regcache_dump_what): New. | |
13497 | (class regcache): New. | |
13498 | * target.c (target_fetch_registers): Call method | |
13499 | debug_print_register. | |
13500 | (target_store_registers): Likewise. | |
13501 | ||
f8fdb78e SM |
13502 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
13503 | ||
13504 | * windows-nat.c (struct lm_info_windows): Initialize field. | |
13505 | (windows_make_so): Allocate lm_info_windows with new. | |
13506 | (windows_free_so): Free lm_info_windows with delete. | |
13507 | ||
9ccbfd7b SM |
13508 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
13509 | ||
13510 | * solib-darwin.c (struct lm_info_darwin): Initialize field. | |
13511 | (darwin_current_sos): Allocate lm_info_darwin with new, remove | |
13512 | cleanup. | |
13513 | (darwin_free_so): Free lm_info_darwin with delete. | |
13514 | ||
76e75227 SM |
13515 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
13516 | ||
13517 | * solib-svr4.h (struct lm_info_svr4): Initialize fields. | |
13518 | <l_addr_p>: Change type to bool. | |
13519 | * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new. | |
13520 | (svr4_free_so): Free lm_info_svr4 with delete. | |
13521 | (svr4_copy_library_list): Replace memcpy with call to copy | |
13522 | constructor. | |
13523 | (library_list_start_library, svr4_default_sos): Allocate | |
13524 | lm_info_svr4 with new. | |
13525 | ||
51046d9e SM |
13526 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
13527 | ||
13528 | * solib-target.c (struct lm_info_target): Add destructor, | |
13529 | initialize fields. | |
13530 | <name>: Change type to std::string. | |
13531 | (library_list_start_library): Allocate lm_info_target with new. | |
13532 | (solib_target_free_library_list): Free lm_info_target with | |
13533 | delete. | |
13534 | (solib_target_current_sos): Adapt to std::string. | |
13535 | (solib_target_free_so): Free lm_info_target with delete. | |
13536 | ||
4023ae76 SM |
13537 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
13538 | ||
13539 | * solib-frv.c (struct lm_info_frv): Add destructor, initialize | |
13540 | fields. | |
13541 | (frv_current_sos): Allocate lm_info_frv with new. | |
13542 | (frv_relocate_main_executable): Free lm_info_frv with delete, | |
13543 | allocate with new. | |
13544 | (frv_clear_solib, frv_free_so): Free lm_info_frv with delete. | |
13545 | ||
af43057b SM |
13546 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
13547 | ||
13548 | * solib-frv.c (struct lm_info_frv): Fix indentation. | |
13549 | ||
b0911207 SM |
13550 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
13551 | ||
13552 | * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize | |
13553 | map field. | |
13554 | (dsbt_current_sos): Allocate lm_info_dsbt with new. | |
13555 | (dsbt_relocate_main_executable): Free lm_info_dsbt with delete | |
13556 | and allocate with new. | |
13557 | (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete. | |
13558 | ||
6c401f72 SM |
13559 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
13560 | ||
13561 | * solib-aix.c (struct lm_info_aix): Initialize fields in-class. | |
13562 | <filename, member_name>: Change type to std::string. | |
13563 | (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove. | |
13564 | (library_list_start_library): Allocate lm_info_aix with new. | |
13565 | (solib_aix_free_library_list, solib_aix_free_so): Free with delete. | |
13566 | (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix | |
13567 | with copy constructor. | |
13568 | ||
d0e449a1 SM |
13569 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
13570 | ||
13571 | * solist.h (struct lm_info): Remove. | |
13572 | (struct lm_info_base): New class. | |
13573 | (struct so_list) <lm_info>: Change type to lm_info_base *. | |
13574 | * nto-tdep.c (struct lm_info): Remove. | |
13575 | (lm_addr): Adjust. | |
13576 | * solib-aix.c (struct lm_info): Rename to ... | |
13577 | (struct lm_info_aix): ... this. Extend lm_info_base. | |
13578 | (lm_info_p): Rename to ... | |
13579 | (lm_info_aix_p): ... this, and adjust. | |
13580 | (solib_aix_new_lm_info, solib_aix_xfree_lm_info, | |
13581 | solib_aix_parse_libraries, library_list_start_library, | |
13582 | solib_aix_free_library_list, solib_aix_parse_libraries, | |
13583 | solib_aix_get_library_list, | |
13584 | solib_aix_relocate_section_addresses, solib_aix_free_so, | |
13585 | solib_aix_get_section_offsets, | |
13586 | solib_aix_solib_create_inferior_hook, solib_aix_current_sos): | |
13587 | Adjust. | |
13588 | (struct solib_aix_inferior_data) <library_list>: Adjust. | |
13589 | * solib-darwin.c (struct lm_info): Rename to ... | |
13590 | (struct lm_info_darwin): ... this. Extend lm_info_base. | |
13591 | (darwin_current_sos, darwin_relocate_section_addresses): Adjust. | |
13592 | * solib-dsbt.c (struct lm_info): Rename to ... | |
13593 | (struct lm_info_dsbt): ... this. Extend lm_info_base. | |
13594 | (struct dsbt_info) <main_executable_lm_info): Adjust. | |
13595 | (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so, | |
13596 | dsbt_relocate_section_addresses): Adjust. | |
13597 | * solib-frv.c (struct lm_info): Rename to ... | |
13598 | (struct lm_info_frv): ... this. Extend lm_info_base. | |
13599 | (main_executable_lm_info): Adjust. | |
13600 | (frv_current_sos, frv_relocate_main_executable, frv_free_so, | |
13601 | frv_relocate_section_addresses, frv_fdpic_find_global_pointer, | |
13602 | find_canonical_descriptor_in_load_object, | |
13603 | frv_fdpic_find_canonical_descriptor): Adjust. | |
13604 | * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed | |
13605 | to lm_info_svr4. | |
13606 | (lm_info_read, lm_addr_check, svr4_keep_data_in_core, | |
13607 | svr4_clear_so, svr4_copy_library_list, | |
13608 | library_list_start_library, svr4_default_sos, svr4_read_so_list, | |
13609 | svr4_current_sos, svr4_fetch_objfile_link_map, | |
13610 | solist_update_incremental): Adjust. | |
13611 | * solib-svr4.h (struct lm_info_svr4): Move here from | |
13612 | solib-svr4.c. | |
13613 | * solib-target.c (struct lm_info): Rename to ... | |
13614 | (struct lm_info_target): ... this. Extend lm_info_base. | |
13615 | (lm_info_p): Rename to ... | |
13616 | (lm_info_target_p): ... this. | |
13617 | (solib_target_parse_libraries, library_list_start_segment, | |
13618 | library_list_start_section, library_list_start_library, | |
13619 | library_list_end_library, solib_target_free_library_list, | |
13620 | solib_target_current_sos, solib_target_free_so, | |
13621 | solib_target_relocate_section_addresses): Adjust. | |
13622 | * windows-nat.c (struct lm_info): Rename to ... | |
13623 | (struct lm_info_windows): ... this. Extend lm_info_base. | |
13624 | (windows_make_so, handle_load_dll, handle_unload_dll, | |
13625 | windows_xfer_shared_libraries): Adjust. | |
13626 | ||
434a4023 SM |
13627 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
13628 | ||
13629 | * solib-darwin.c (struct darwin_so_list): Remove. | |
13630 | (darwin_current_sos): Allocate an so_list object instead of a | |
13631 | darwin_so_list, separately allocate an lm_info object. | |
13632 | (darwin_free_so): Free lm_info. | |
13633 | ||
428544e8 JB |
13634 | 2017-04-28 John Baldwin <jhb@FreeBSD.org> |
13635 | ||
13636 | * mips-tdep.c (print_gp_register_row): Replace printf_filtered | |
13637 | with fprintf_filtered. | |
13638 | ||
4621115f YQ |
13639 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
13640 | ||
13641 | * regcache.c (regcache::regcache): New function. | |
13642 | (regcache::~regcache): New function. | |
13643 | (regcache_xmalloc_1): Remove. | |
13644 | (regcache_xmalloc): Call new regcache. | |
13645 | (regcache_xfree): Call delete regcache. | |
13646 | (get_thread_arch_aspace_regcache): Call new regcache. | |
13647 | ||
339053c2 YQ |
13648 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
13649 | ||
13650 | * mips-linux-nat.c (mips_linux_new_thread): Use ptid method | |
13651 | lwp instead of ptid_get_lwp. | |
13652 | ||
7974a605 YQ |
13653 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
13654 | ||
13655 | * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from | |
13656 | lwp_info instead of getting from inferior_ptid. | |
13657 | ||
e15c3eb4 KS |
13658 | 2017-04-27 Keith Seitz <keiths@redhat.com> |
13659 | ||
13660 | * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS) | |
13661 | DIFFERENT_REFERENCE_TYPE_BADNESS): Remove. | |
13662 | (CV_CONVERSION_BADNESS): Define. | |
13663 | (rank_one_type): Remove overly restrictive rvalue reference | |
13664 | rank checks. | |
13665 | Add cv-qualifier checks and subranks for type equality. | |
13666 | * gdbtypes.h (REFERENCE_CONVERSION_RVALUE, | |
13667 | REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS, | |
13668 | CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare. | |
13669 | ||
72bc1d24 SM |
13670 | 2017-04-27 Simon Marchi <simon.marchi@ericsson.com> |
13671 | ||
13672 | * python/py-inferior.c (inferior_to_inferior_object): Increment reference | |
13673 | count when creating the object. | |
13674 | ||
55bcecda UW |
13675 | 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com> |
13676 | Ulrich Weigand <uweigand@de.ibm.com> | |
13677 | ||
13678 | * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary | |
13679 | entry if xlc -qfuncsect or gcc -ffunction-sections compiler option | |
13680 | is used in AIX. | |
13681 | (read_xcoff_symtab): Handle C_WEAKEXT storage class. | |
13682 | (process_xcoff_symbol): Likewise. | |
13683 | (scan_xcoff_symtab): Likewise. | |
13684 | ||
5c99fcf8 AH |
13685 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
13686 | ||
13687 | * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned. | |
13688 | (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer. | |
13689 | (ia64_access_reg): Use get_frame_register_unsigned. | |
13690 | (ia64_access_rse_reg): Likewise. | |
13691 | (ia64_libunwind_frame_prev_register): Likewise. | |
13692 | ||
b41c5a85 JW |
13693 | 2017-04-26 Jiong Wang <jiong.wang@arm.com> |
13694 | ||
13695 | * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op. | |
13696 | * gdbarch.c: Regenerated. | |
13697 | * gdbarch.h: Regenerated. | |
13698 | * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the | |
13699 | visibility external. | |
13700 | (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI | |
13701 | between DW_CFA_lo_user and DW_CFA_high_user inclusive. | |
13702 | (enum cfa_how_kind): Move to ... | |
13703 | (struct dwarf2_frame_state_reg_info): Likewise. | |
13704 | (struct dwarf2_frame_state): Likewise. | |
13705 | * dwarf2-frame.h: ... here. | |
13706 | (dwarf2_frame_state_alloc_regs): New declaration. | |
13707 | * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function. | |
13708 | (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook. | |
13709 | ||
c185f580 AH |
13710 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
13711 | ||
13712 | * xtensa-tdep.c (xtensa_pseudo_register_read): Use | |
13713 | regcache_raw_read_unsigned. | |
13714 | (xtensa_pseudo_register_write): Likewise. | |
13715 | ||
19c45594 AH |
13716 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
13717 | ||
13718 | * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors. | |
13719 | (nds32_pseudo_register_write): Likewise. | |
13720 | ||
4658f12e YQ |
13721 | 2017-04-25 Yao Qi <yao.qi@linaro.org> |
13722 | ||
13723 | * regcache.c (struct regcache) <readonly_p>: Change its type | |
13724 | to bool. | |
13725 | (regcache_xmalloc_1): Update parameter type and callers update. | |
13726 | ||
d581dda8 YQ |
13727 | 2017-04-25 Yao Qi <yao.qi@linaro.org> |
13728 | ||
13729 | * aarch64-tdep.c (aarch64_gdbarch_init): Don't call | |
13730 | set_gdbarch_wchar_bit. | |
13731 | * arm-tdep.c (arm_gdbarch_init): Likewise. | |
13732 | ||
debed3db PA |
13733 | 2017-04-25 Pedro Alves <palves@redhat.com> |
13734 | ||
13735 | * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable) | |
13736 | (BothAreRelocatable, memcopy, memmove): Don't define. | |
13737 | * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New | |
13738 | macros. | |
13739 | ||
b0b92aeb PA |
13740 | 2017-04-25 Pedro Alves <palves@redhat.com> |
13741 | ||
13742 | * common/common-defs.h: Include "common/poison.h". | |
13743 | * common/function-view.h: (Not, Or, Requires): Move to traits.h | |
13744 | and adjust. | |
13745 | * common/poison.h: New file. | |
13746 | * common/traits.h: Include <type_traits>. | |
13747 | (Not, Or, Requires): New, moved from common/function-view.h. | |
13748 | ||
16c4d54a PA |
13749 | 2017-04-25 Pedro Alves <palves@redhat.com> |
13750 | ||
13751 | * breakpoint.h (struct breakpoint): In-class initialize all | |
13752 | fields. Make boolean fields "bool". | |
13753 | * breakpoint.c (init_raw_breakpoint_without_location): Remove | |
13754 | memset call and initializations no longer necessary. | |
13755 | ||
b5c36682 PA |
13756 | 2017-04-25 Pedro Alves <palves@redhat.com> |
13757 | ||
13758 | * btrace.c (pt_btrace_insn_flags): Change parameter type to | |
13759 | reference. | |
13760 | (pt_btrace_insn): New function. | |
13761 | (ftrace_add_pt): Remove memset call and use pt_btrace_insn. | |
13762 | ||
5625a286 PA |
13763 | 2017-04-25 Pedro Alves <palves@redhat.com> |
13764 | ||
13765 | * ada-lang.c (ada_catchpoint_location): Now a "class". Remove | |
13766 | "base" field and inherit from "bp_location" instead. Add | |
13767 | non-default ctor. | |
13768 | (allocate_location_exception): Use new non-default ctor. | |
13769 | * breakpoint.c (get_first_locp_gte_addr): Remove memset call. | |
13770 | (init_bp_location): Convert to ... | |
13771 | (bp_location::bp_location): ... this new ctor, and remove memset | |
13772 | call. | |
13773 | (base_breakpoint_allocate_location): Use the new non-default ctor. | |
13774 | * breakpoint.h (bp_location): Now a class. Declare default and | |
13775 | non-default ctors. In-class initialize all members. | |
13776 | (init_bp_location): Remove declaration. | |
13777 | ||
23bcc18f PA |
13778 | 2017-04-25 Pedro Alves <palves@redhat.com> |
13779 | ||
13780 | * common/enum-flags.h (enum_flags): Don't implement copy ctor and | |
13781 | assignment operator. | |
13782 | ||
e1ba3053 YQ |
13783 | 2017-04-24 Yao Qi <yao.qi@linaro.org> |
13784 | ||
13785 | * doublest.c (convert_doublest_to_floatformat): Call | |
13786 | floatformat_totalsize_bytes. | |
13787 | ||
10f489e5 TT |
13788 | 2017-04-22 Tom Tromey <tom@tromey.com> |
13789 | ||
13790 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use | |
13791 | ui_out_emit_list. | |
13792 | * stack.c (print_frame): Use ui_out_emit_list. | |
13793 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use | |
13794 | ui_out_emit_list. | |
13795 | * mi/mi-main.c (print_one_inferior) | |
13796 | (mi_cmd_data_list_register_names) | |
13797 | (mi_cmd_data_list_register_values, mi_cmd_list_features) | |
13798 | (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use | |
13799 | ui_out_emit_list. | |
13800 | * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list. | |
13801 | (mi_output_solib_attribs): Use ui_out_emit_list, | |
13802 | ui_out_emit_tuple. | |
13803 | * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list. | |
13804 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames) | |
13805 | (mi_cmd_stack_list_args, list_args_or_locals): Use | |
13806 | ui_out_emit_list. | |
13807 | * disasm.c (do_assembly_only): Use ui_out_emit_list. | |
13808 | * breakpoint.c (print_solib_event, output_thread_groups): Use | |
13809 | ui_out_emit_list. | |
13810 | ||
0092b74d TT |
13811 | 2017-04-22 Tom Tromey <tom@tromey.com> |
13812 | ||
13813 | * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple. | |
13814 | * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple. | |
13815 | * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple. | |
13816 | ||
a14a62dd TT |
13817 | 2017-04-22 Tom Tromey <tom@tromey.com> |
13818 | ||
13819 | * tracepoint.c (tvariables_info_1) | |
13820 | (print_one_static_tracepoint_marker): Use ui_out_emit_tuple. | |
13821 | ||
46b9c129 TT |
13822 | 2017-04-22 Tom Tromey <tom@tromey.com> |
13823 | ||
13824 | * stack.c (print_frame_arg): Use ui_out_emit_tuple, | |
13825 | annotate_arg_emitter. | |
13826 | * breakpoint.c (print_mention_watchpoint) | |
13827 | (print_mention_masked_watchpoint): Use ui_out_emit_tuple. | |
13828 | * annotate.h (struct annotate_arg_emitter): New. | |
13829 | ||
2e783024 TT |
13830 | 2017-04-22 Tom Tromey <tom@tromey.com> |
13831 | ||
13832 | * record-btrace.c (record_btrace_insn_history) | |
13833 | (record_btrace_insn_history_range, record_btrace_call_history) | |
13834 | (record_btrace_call_history_range): Use ui_out_emit_tuple. | |
13835 | * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use | |
13836 | ui_out_emit_tuple. | |
13837 | * stack.c (print_frame_info): Use ui_out_emit_tuple. | |
13838 | * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple. | |
13839 | * skip.c (skip_info): Use ui_out_emit_tuple. | |
13840 | * remote.c (show_remote_cmd): Use ui_out_emit_tuple. | |
13841 | * progspace.c (print_program_space): Use ui_out_emit_tuple. | |
13842 | * probe.c (info_probes_for_ops): Use ui_out_emit_tuple. | |
13843 | * osdata.c (info_osdata): Use ui_out_emit_tuple. | |
13844 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use | |
13845 | ui_out_emit_tuple. | |
13846 | * mi/mi-main.c (print_one_inferior, list_available_thread_groups) | |
13847 | (output_register, mi_cmd_data_read_memory) | |
13848 | (mi_cmd_data_read_memory_bytes, mi_load_progress) | |
13849 | (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple. | |
13850 | * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one): | |
13851 | Use ui_out_emit_tuple. | |
13852 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use | |
13853 | ui_out_emit_tuple. | |
13854 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions) | |
13855 | (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple. | |
13856 | * linux-thread-db.c (info_auto_load_libthread_db): Use | |
13857 | ui_out_emit_tuple. | |
13858 | * inferior.c (print_inferior): Use ui_out_emit_tuple. | |
13859 | * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple. | |
13860 | * disasm.c (do_mixed_source_and_assembly_deprecated) | |
13861 | (do_mixed_source_and_assembly): Use ui_out_emit_tuple. | |
13862 | * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple. | |
13863 | * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple. | |
13864 | * breakpoint.c (print_one_breakpoint_location) | |
13865 | (print_one_breakpoint): Use ui_out_emit_tuple. | |
13866 | * auto-load.c (print_script, info_auto_load_cmd): Use | |
13867 | ui_out_emit_tuple. | |
13868 | * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple. | |
13869 | ||
9be21bb4 SM |
13870 | 2017-04-21 Simon Marchi <simon.marchi@ericsson.com> |
13871 | ||
13872 | * thread.c (print_thread_info_1): Remove dead code. | |
13873 | ||
0d4c07af JK |
13874 | 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
13875 | ||
13876 | * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if | |
13877 | GDB_SELF_TEST. | |
13878 | * arm-tdep.c (selftests::arm_record_test): Likewise. | |
13879 | ||
4daf993d YQ |
13880 | 2017-04-21 Yao Qi <yao.qi@linaro.org> |
13881 | ||
13882 | * regcache.c (regcache_restore): Remove argument 2. Replace | |
13883 | argument 3 with regcache. Get register status from | |
13884 | src->register_status and get register contents from | |
13885 | register_buffer (src, regnum). | |
13886 | (regcache_cpy): Update. | |
13887 | ||
a6c21d4a PA |
13888 | 2017-04-19 Pedro Alves <palves@redhat.com> |
13889 | ||
13890 | * gdbthread.h (thread): Add missing closing parenthesis in | |
13891 | comment. | |
13892 | ||
3a3fd0fd PA |
13893 | 2017-04-19 Pedro Alves <palves@redhat.com> |
13894 | ||
13895 | * common/refcounted-object.h: New file. | |
13896 | * gdbthread.h: Include "common/refcounted-object.h". | |
13897 | (thread_info): Inherit from refcounted_object and add comments. | |
13898 | (thread_info::incref, thread_info::decref) | |
13899 | (thread_info::m_refcount): Delete. | |
13900 | (thread_info::deletable): Use the refcounted_object::refcount() | |
13901 | method. | |
13902 | * inferior.c (current_inferior_): Add comment. | |
13903 | (set_current_inferior): Increment/decrement refcounts. | |
13904 | (prune_inferiors, remove_inferior_command): Skip inferiors marked | |
13905 | not-deletable instead of comparing with the current inferior. | |
13906 | (initialize_inferiors): Increment the initial inferior's refcount. | |
13907 | * inferior.h (struct inferior): Forward declare. | |
13908 | Include "common/refcounted-object.h". | |
13909 | (current_inferior, set_current_inferior): Move declaration to | |
13910 | before struct inferior's definition, and fix comment. | |
13911 | (inferior): Inherit from refcounted_object. Add comments. | |
13912 | * thread.c (switch_to_thread_no_regs): Reference the thread's | |
13913 | inferior pointer directly instead of doing a ptid lookup. | |
13914 | (switch_to_no_thread): New function. | |
13915 | (switch_to_thread(thread_info *)): New function, factored out | |
13916 | from ... | |
13917 | (switch_to_thread(ptid_t)): ... this. | |
13918 | (restore_current_thread): Delete. | |
13919 | (current_thread_cleanup): Remove 'inf_id' and 'was_removable' | |
13920 | fields, and add 'inf' field. | |
13921 | (do_restore_current_thread_cleanup): Check whether old->inf is | |
13922 | alive instead of looking up an inferior by ptid. Use | |
13923 | switch_to_thread and switch_to_no_thread. | |
13924 | (restore_current_thread_cleanup_dtor): Use old->inf directly | |
13925 | instead of lookup up an inferior by id. Decref the inferior. | |
13926 | Don't restore 'removable'. | |
13927 | (make_cleanup_restore_current_thread): Same the inferior pointer | |
13928 | in old, instead of the inferior number. Incref the inferior. | |
13929 | Don't save/clear 'removable'. | |
13930 | ||
9bcb1f16 PA |
13931 | 2017-04-19 Pedro Alves <palves@redhat.com> |
13932 | ||
13933 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
13934 | unittests/scoped_restore-selftests.c. | |
13935 | (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o. | |
13936 | * common/scoped_restore.h (scoped_restore_base): Make "class". | |
13937 | (scoped_restore_base::release): New public method. | |
13938 | (scoped_restore_base::scoped_restore_base): New protected ctor. | |
13939 | (scoped_restore_base::m_saved_var): New protected field. | |
13940 | (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the | |
13941 | scoped_restore_base base class instead of m_saved_var directly. | |
13942 | (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise. | |
13943 | (scoped_restore_tmpl::scoped_restore_tmpl(const | |
13944 | scoped_restore_tmpl<T>&)): Likewise. | |
13945 | (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var | |
13946 | method. | |
13947 | (scoped_restore_tmpl::saved_var): New method. | |
13948 | (scoped_restore_tmpl::m_saved_var): Delete. | |
13949 | * inferior.h (inferior::detaching): Now a bool. | |
13950 | * infrun.c (prepare_for_detach): Use a scoped_restore instead of a | |
13951 | cleanup. | |
13952 | * unittests/scoped_restore-selftests.c: New file. | |
13953 | ||
26fcd539 PA |
13954 | 2017-04-19 Pedro Alves <palves@redhat.com> |
13955 | ||
13956 | * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): | |
13957 | Re-sort in alphabetic order. | |
13958 | ||
fdd243b0 PA |
13959 | 2017-04-18 Pedro Alves <palves@redhat.com> |
13960 | ||
13961 | * xml-support.c (obstack_xml_printf): Delete. | |
13962 | * xml-support.h (obstack_xml_printf): Delete. | |
13963 | ||
4895cde2 PA |
13964 | 2017-04-18 Pedro Alves <palves@redhat.com> |
13965 | ||
13966 | * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse, | |
13967 | vdebug, verror, body_text, start_element, end_element, name, | |
13968 | user_data, set_is_xinclude, set_error, expat_parser>: New methods. | |
13969 | <name, user_data, expat_parser, scopes, error, last_line, dtd_name, | |
13970 | is_xinclude>: Make private and add m_ prefix. | |
13971 | (gdb_xml_parser::body_text): New method, based on ... | |
13972 | (gdb_xml_body_text): ... this. Adjust. | |
13973 | (gdb_xml_parser::vdebug): New method, based on ... | |
13974 | (gdb_xml_debug): ... this. Adjust. | |
13975 | (gdb_xml_parser::verror): New method, based on ... | |
13976 | (gdb_xml_error): ... this. Adjust. | |
13977 | (gdb_xml_parser::start_element): New method, based on ... | |
13978 | (gdb_xml_start_element): ... this. Adjust. | |
13979 | (gdb_xml_start_element_wrapper): Defer to | |
13980 | gdb_xml_parser::start_element and gdb_xml_parser::set_error. | |
13981 | (gdb_xml_parser::end_element): New method, based on ... | |
13982 | (gdb_xml_end_element_wrapper): ... this. Adjust. | |
13983 | (gdb_xml_parser::~gdb_xml_parser): Adjust. | |
13984 | (gdb_xml_parser::gdb_xml_parser): Adjust to field renames. | |
13985 | (gdb_xml_parser::use_dtd): New method, based on ... | |
13986 | (gdb_xml_use_dtd): ... this. Adjust. | |
13987 | (gdb_xml_parser::parse): New method, based on ... | |
13988 | (gdb_xml_parse): ... this. Adjust. | |
13989 | (gdb_xml_parse_quick): Adjust to call the parser's parse method. | |
13990 | (xinclude_start_include): Adjust to call the parser's name method. | |
13991 | (xml_xinclude_default, xml_xinclude_start_doctype) | |
13992 | (xml_xinclude_end_doctype): Adjust to call the parser's user_data | |
13993 | method. | |
13994 | (xml_process_xincludes): Adjust to call parser methods. | |
13995 | * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete | |
13996 | declarations. | |
13997 | ||
bd8a901f PA |
13998 | 2017-04-18 Pedro Alves <palves@redhat.com> |
13999 | ||
14000 | * tracefile-tfile.c (tfile_write_tdesc): Adjust to use | |
14001 | gdb::optional<std::string>. | |
14002 | * xml-support.c: Include <string>. | |
14003 | (scope_level::scope_level(scope_level &&)) | |
14004 | (scope_level::~scope_level): Delete. | |
14005 | (scope_level::body): Now a std::string. | |
14006 | (gdb_xml_body_text, gdb_xml_end_element): Adjust. | |
14007 | (xinclude_parsing_data::xinclude_parsing_data): Add 'output' | |
14008 | parameter. | |
14009 | (xinclude_parsing_data::~xinclude_parsing_data): Delete. | |
14010 | (xinclude_parsing_data::output): Now a std::string reference. | |
14011 | (xinclude_start_include): Adjust. | |
14012 | (xml_xinclude_default): Adjust. | |
14013 | (xml_process_xincludes): Add 'output' parameter, and return bool. | |
14014 | * xml-support.h (xml_process_xincludes): Add 'output' parameter, | |
14015 | and return bool. | |
14016 | * xml-tdesc.c: Include <unordered_map> and <string>. | |
14017 | (tdesc_xml_cache): Delete. | |
14018 | (tdesc_xml_cache_s): Delete. | |
14019 | (xml_cache): Now an std::unordered_map. | |
14020 | (tdesc_parse_xml): Adjust to use std::string and unordered_map. | |
14021 | (target_fetch_description_xml): Change return type to | |
14022 | gdb::optional<std::string>, and adjust. | |
14023 | * xml-tdesc.h: Include "common/gdb_optional.h" and <string>. | |
14024 | (target_fetch_description_xml): Change return type to | |
14025 | gdb::optional<std::string>. | |
14026 | ||
d35d1958 PA |
14027 | 2017-04-18 Pedro Alves <palves@redhat.com> |
14028 | ||
14029 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
14030 | unittests/optional-selftests.c. | |
14031 | (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o. | |
14032 | * unittests/optional-selftests.c: New file. | |
14033 | * unittests/optional/assignment/1.cc: New file. | |
14034 | * unittests/optional/assignment/2.cc: New file. | |
14035 | * unittests/optional/assignment/3.cc: New file. | |
14036 | * unittests/optional/assignment/4.cc: New file. | |
14037 | * unittests/optional/assignment/5.cc: New file. | |
14038 | * unittests/optional/assignment/6.cc: New file. | |
14039 | * unittests/optional/assignment/7.cc: New file. | |
14040 | * unittests/optional/cons/copy.cc: New file. | |
14041 | * unittests/optional/cons/default.cc: New file. | |
14042 | * unittests/optional/cons/move.cc: New file. | |
14043 | * unittests/optional/cons/value.cc: New file. | |
14044 | * unittests/optional/in_place.cc: New file. | |
14045 | * unittests/optional/observers/1.cc: New file. | |
14046 | * unittests/optional/observers/2.cc: New file. | |
14047 | ||
22796e97 PA |
14048 | 2017-04-18 Pedro Alves <palves@redhat.com> |
14049 | ||
14050 | * common/gdb_optional.h: Include common/traits.h. | |
14051 | (in_place_t): New type. | |
14052 | (in_place): New constexpr variable. | |
14053 | (optional::optional): Remove member initialization of | |
14054 | m_instantiated. | |
14055 | (optional::optional(in_place_t...)): New constructor. | |
14056 | (optional::~optional): Use reset. | |
14057 | (optional::optional(const optional&)): New. | |
14058 | (optional::optional(const optional&&)): New. | |
14059 | (optional::optional(T &)): New. | |
14060 | (optional::optional(T &&)): New. | |
14061 | (operator::operator=(const optional &)): New. | |
14062 | (operator::operator=(optional &&)): New. | |
14063 | (operator::operator= (const T &)) | |
14064 | (operator::operator= (T &&)) | |
14065 | (operator::emplace (Args &&... args)): Return a T&. Use reset. | |
14066 | (operator::reset): New. | |
14067 | (operator::m_instantiated):: Add in-class initializer. | |
14068 | * common/traits.h: Include <type_traits>. | |
14069 | (struct And): New types. | |
14070 | ||
a7fc9b61 PA |
14071 | 2017-04-18 Pedro Alves <palves@redhat.com> |
14072 | ||
14073 | * xml-support.c: Include <vector>. | |
14074 | (scope_level::scope_level(const gdb_xml_element *)) | |
14075 | (scope_level::scope_level(scope_level&&)): New. | |
14076 | (scope_level::~scope_level): New. | |
14077 | (scope_level_s): Delete. | |
14078 | (gdb_xml_parser::scopes): Now a std::vector. | |
14079 | (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element): | |
14080 | Use std::vector. | |
14081 | (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary | |
14082 | scope cleanup code. | |
14083 | (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization | |
14084 | of the scopes member. Use std::vector::emplace_back. | |
14085 | ||
010151c9 PA |
14086 | 2017-04-18 Pedro Alves <palves@redhat.com> |
14087 | ||
14088 | * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude | |
14089 | a bool. | |
14090 | (gdb_xml_end_element): Change type of first parameter. | |
14091 | (gdb_xml_cleanup): Rename to ... | |
14092 | (gdb_xml_parser::~gdb_xml_parser): ... this. | |
14093 | (gdb_xml_create_parser_and_cleanup): Delete with ... | |
14094 | (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out | |
14095 | to this new ctor. | |
14096 | (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of | |
14097 | using gdb_xml_create_parser_and_cleanup. | |
14098 | (xinclude_parsing_data): Add ctor/dtor. | |
14099 | (xml_xinclude_cleanup): Delete. | |
14100 | (xml_process_xincludes): Create a local xinclude_parsing_data | |
14101 | instead of heap-allocating one. Create a local gdb_xml_parser | |
14102 | instead of heap-allocating one with | |
14103 | gdb_xml_create_parser_and_cleanup. | |
14104 | ||
d56060f0 JB |
14105 | 2017-04-18 John Baldwin <jhb@FreeBSD.org> |
14106 | ||
14107 | PR threads/20743 | |
14108 | * fbsd-nat.c (resume_one_thread_cb): Remove. | |
14109 | (resume_all_threads_cb): Remove. | |
14110 | (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of | |
14111 | iterate_over_threads. | |
14112 | ||
305d16a9 JB |
14113 | 2017-04-17 Joel Brobecker <brobecker@adacore.com> |
14114 | ||
14115 | * NEWS: Create a new section for the next release branch. | |
14116 | Rename the section of the current branch, now that it has | |
14117 | been cut. | |
14118 | ||
8bb57231 JB |
14119 | 2017-04-17 Joel Brobecker <brobecker@adacore.com> |
14120 | ||
14121 | GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db): | |
14122 | * version.in: Bump version to 8.0.50.DATE-git. | |
14123 | ||
096c92dd SDJ |
14124 | 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com> |
14125 | ||
14126 | PR gdb/21385 | |
14127 | * windows-nat.c (windows_create_inferior): Declare 'allargs' | |
14128 | independently of the host, and fix build breakage on Cygwin. | |
14129 | ||
0550c955 PA |
14130 | 2017-04-13 Pedro Alves <palves@redhat.com> |
14131 | ||
14132 | * inferior.c (free_inferior): Convert to ... | |
14133 | (inferior::~inferior): ... this dtor. | |
14134 | (inferior::inferior): New ctor, factored out from ... | |
14135 | (add_inferior_silent): ... here. Allocate the inferior with a new | |
14136 | expression. | |
14137 | (delete_inferior): Call delete instead of free_inferior. | |
14138 | * inferior.h (gdb_environ, continuation): Forward declare. | |
14139 | (inferior): Now a class. Add in-class initialization to all | |
14140 | members. Make boolean fields bool, except 'detaching'. | |
14141 | (inferior::inferior): New explicit ctor. | |
14142 | (inferior::~inferior): New. | |
14143 | ||
e3d60dfc PA |
14144 | 2017-04-13 Pedro Alves <palves@redhat.com> |
14145 | ||
14146 | * inferior.c (init_inferior_list): Delete. | |
14147 | * inferior.h (init_inferior_list): Delete. | |
14148 | ||
5fd69d0a PA |
14149 | 2017-04-13 Pedro Alves <palves@redhat.com> |
14150 | ||
14151 | PR threads/13217 | |
14152 | * gdb.threads/threadapply.exp (thr_apply_detach): New procedure. | |
14153 | (top level): Call it twice, with different thread sets. | |
14154 | ||
c6609450 PA |
14155 | 2017-04-13 Pedro Alves <palves@redhat.com> |
14156 | ||
14157 | * thread.c: Include <algorithm>. | |
14158 | (thread_array_cleanup): Delete. | |
14159 | (scoped_inc_dec_ref): New class. | |
14160 | (live_threads_count): New function. | |
14161 | (set_thread_refcount): Delete. | |
14162 | (tp_array_compar_ascending): Now a bool. | |
14163 | (tp_array_compar): Convert to a std::sort comparison function. | |
14164 | (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref | |
14165 | and live_threads_count. | |
14166 | ||
2a00d7ce PA |
14167 | 2017-04-13 Pedro Alves <palves@redhat.com> |
14168 | ||
14169 | * infrun.c (follow_fork_inferior): Also switch the current | |
14170 | inferior. | |
14171 | ||
441d7c93 PA |
14172 | 2017-04-13 Pedro Alves <palves@redhat.com> |
14173 | ||
14174 | * breakpoint.c (watch_command_1): Save watchpoint-frame info | |
14175 | before calling create_internal_breakpoint. | |
14176 | ||
808480f6 PA |
14177 | 2017-04-13 Pedro Alves <palves@redhat.com> |
14178 | ||
14179 | * fork-child.c (execv_argv): New class. | |
14180 | (breakup_args): Refactored as ... | |
14181 | (execv_argv::init_for_no_shell): .. this method of execv_argv. | |
14182 | Copy arguments to storage and replace separators with NULL | |
14183 | terminators in place. | |
14184 | (escape_bang_in_quoted_argument): Adjust to return bool. | |
14185 | (execv_argv::execv_argv): New ctor. | |
14186 | (execv_argv::init_for_shell): New method, factored out from | |
14187 | fork_inferior. Don't strdup strings into the vector. | |
14188 | (fork_inferior): Eliminate "shell" local and use execv_argv. Use | |
14189 | Remove free_vector_argv call. | |
14190 | ||
ad3d022a YQ |
14191 | 2017-04-13 Yao Qi <yao.qi@linaro.org> |
14192 | ||
14193 | * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of | |
14194 | tdep->rx_psw_type. | |
14195 | ||
e6ddc3bf YQ |
14196 | 2017-04-13 Yao Qi <yao.qi@linaro.org> |
14197 | ||
14198 | * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW. | |
14199 | * rx-tdep.c (rx_gdbarch_init): Likewise. | |
14200 | ||
bfb8cf90 PA |
14201 | 2017-04-13 Pedro Alves <palves@redhat.com> |
14202 | ||
14203 | * breakpoint.h (struct breakpoint): Reindent. | |
14204 | ||
f5336ca5 PA |
14205 | 2017-04-13 Pedro Alves <palves@redhat.com> |
14206 | ||
14207 | * breakpoint.c (bp_location): Rename to ... | |
14208 | (bp_locations): ... this. All references updated. | |
14209 | (bp_location_count): Rename to ... | |
14210 | (bp_locations_count): ... this. All references updated. | |
14211 | (bp_location_placed_address_before_address_max): Rename to ... | |
14212 | (bp_locations_placed_address_before_address_max): ... this. All | |
14213 | references updated. | |
14214 | (bp_location_shadow_len_after_address_max): Rename to ... | |
14215 | (bp_locations_shadow_len_after_address_max): ... this. All | |
14216 | references updated. | |
14217 | (bp_location_compare_addrs): Rename to ... | |
14218 | (bp_locations_compare_addrs): ... this. All references updated. | |
14219 | (bp_location_compare):Rename to ... | |
14220 | (bp_locations_compare): ... this. All references updated. | |
14221 | (bp_location_target_extensions_update): Rename to ... | |
14222 | (bp_locations_target_extensions_update): ... this. All references | |
14223 | updated. | |
14224 | ||
be628ab8 SDJ |
14225 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
14226 | ||
14227 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h". | |
14228 | * common/common.m4: Check headers 'termios.h', 'termio.h' and | |
14229 | 'sgtty.h'. | |
14230 | * common/gdb_termios.h: New file, with parts of "terminal.h". | |
14231 | * inflow.c: Include "gdb_termios.h". | |
14232 | * ser-unix.c: Include "gdb_termios.h". | |
14233 | * terminal.h: Move terminal-related defines to | |
14234 | "common/gdb_termios.h". | |
14235 | ||
8e9e35b1 TT |
14236 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14237 | ||
14238 | * probe.c (parse_probes): Update. | |
14239 | * location.h (delete_event_location): Don't declare. | |
14240 | (event_location_deleter::operator()): Update. | |
14241 | * location.c (event_location_deleter::operator()): Rename from | |
14242 | delete_event_location. | |
14243 | * linespec.h (linespec_result) <location>: Change type to | |
14244 | event_location_up. | |
14245 | * linespec.c (canonicalize_linespec, event_location_to_sals) | |
14246 | (decode_objc): Update. | |
14247 | (linespec_result): Don't call delete_event_location. | |
14248 | * breakpoint.c (create_breakpoints_sal) | |
14249 | (bkpt_probe_create_sals_from_location) | |
14250 | (strace_marker_create_sals_from_location): Update. | |
14251 | ||
16e802b9 TT |
14252 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14253 | ||
14254 | * linespec.h (struct linespec_result): Add constructor and | |
14255 | destructor. | |
14256 | (init_linespec_result, destroy_linespec_result) | |
14257 | (make_cleanup_destroy_linespec_result): Don't declare. | |
14258 | * linespec.c (init_linespec_result): Remove. | |
14259 | (linespec_result::~linespec_result): Rename from | |
14260 | destroy_linespec_result. Update. | |
14261 | (cleanup_linespec_result, make_cleanup_destroy_linespec_result): | |
14262 | Remove. | |
14263 | * breakpoint.c (create_breakpoint, break_range_command) | |
14264 | (decode_location_default): Update. | |
14265 | * ax-gdb.c (agent_command_1): Update. | |
14266 | ||
d28cd78a TT |
14267 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14268 | ||
14269 | * remote.c (remote_download_tracepoint): Update. | |
14270 | * python/py-breakpoint.c (bppy_get_location): Update. | |
14271 | * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob) | |
14272 | (gdbscm_breakpoint_location): Update. | |
14273 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update. | |
14274 | * breakpoint.h (struct breakpoint) <location, location_range_end>: | |
14275 | Change type to event_location_up. | |
14276 | * breakpoint.c (create_overlay_event_breakpoint) | |
14277 | (create_longjmp_master_breakpoint) | |
14278 | (create_std_terminate_master_breakpoint) | |
14279 | (create_exception_master_breakpoint) | |
14280 | (breakpoint_event_location_empty_p, print_breakpoint_location) | |
14281 | (print_one_breakpoint_location, create_thread_event_breakpoint) | |
14282 | (init_breakpoint_sal, create_breakpoint) | |
14283 | (print_recreate_ranged_breakpoint, break_range_command) | |
14284 | (init_ada_exception_breakpoint, say_where): Update. | |
14285 | (base_breakpoint_dtor): Don't call delete_event_location. | |
14286 | (bkpt_print_recreate, tracepoint_print_recreate) | |
14287 | (dprintf_print_recreate, update_static_tracepoint) | |
14288 | (breakpoint_re_set_default): Update. | |
14289 | ||
711799d5 TT |
14290 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14291 | ||
14292 | * compile/compile-loc2c.c (compute_stack_depth_worker): Change | |
14293 | type of "to_do". Update. | |
14294 | (compute_stack_depth): Use std::vector. | |
14295 | ||
52d214d3 TT |
14296 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14297 | ||
14298 | * printcmd.c (find_instruction_backward): Use std::vector. | |
14299 | ||
4c404b8b TT |
14300 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14301 | ||
14302 | * symfile.c (objfilep): Remove typedef. | |
14303 | (reread_symbols): Use a std::vector. | |
14304 | ||
156d9eab TT |
14305 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14306 | ||
14307 | * mi/mi-main.c (exec_direction_forward): Remove. | |
14308 | (exec_reverse_continue, mi_execute_command): Use scoped_restore. | |
14309 | * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use | |
14310 | scoped_restore. | |
14311 | * guile/guile.c (guile_repl_command, guile_command) | |
14312 | (gdbscm_execute_gdb_command): Use scoped_restore. | |
14313 | * go-exp.y (go_parse): Use scoped_restore. | |
14314 | * d-exp.y (d_parse): Use scoped_restore. | |
14315 | * cli/cli-decode.c (cmd_func): Use scoped_restore. | |
14316 | * c-exp.y (c_parse): Use scoped_restore. | |
14317 | ||
4d89769a TT |
14318 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14319 | ||
14320 | * mi/mi-parse.h (struct mi_parse): Add constructor, destructor. | |
14321 | (mi_parse): Update return type. | |
14322 | (mi_parse_free): Remove. | |
14323 | * mi/mi-parse.c (mi_parse::mi_parse): New constructor. | |
14324 | (mi_parse::~mi_parse): Rename from mi_parse_free. | |
14325 | (mi_parse_cleanup): Remove. | |
14326 | (mi_parse): Return a unique_ptr. Use new. | |
14327 | * mi/mi-main.c (mi_execute_command): Update. | |
14328 | ||
4b217cc7 TT |
14329 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14330 | ||
14331 | * location.c (explicit_location_lex_one): Return a | |
14332 | unique_xmalloc_ptr. | |
14333 | (string_to_explicit_location): Update. Remove cleanups. | |
14334 | ||
59d3651b TT |
14335 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14336 | ||
14337 | * gnu-v3-abi.c (value_and_voffset_p): Remove typedef. | |
14338 | (compare_value_and_voffset): Change type. Update. | |
14339 | (compute_vtable_size): Change type of "offset_vec". | |
14340 | (gnuv3_print_vtable): Use std::vector. Remove cleanups. | |
14341 | (gnuv3_get_typeid): Remove extraneous declaration. | |
14342 | ||
b24b0d6c TT |
14343 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14344 | ||
14345 | * charset.h (wchar_iterator): Fix comment. | |
14346 | ||
80a3b8c5 TT |
14347 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14348 | ||
14349 | * charset.c (iconv_wrapper): New class. | |
14350 | (cleanup_iconv): Remove. | |
14351 | (convert_between_encodings): Use it. | |
14352 | ||
c83dd867 TT |
14353 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14354 | ||
14355 | * symfile.h (increment_reading_symtab): Update type. | |
14356 | * symfile.c (decrement_reading_symtab): Remove. | |
14357 | (increment_reading_symtab): Return a scoped_restore_tmpl<int>. | |
14358 | * psymtab.c (psymtab_to_symtab): Update. | |
14359 | * dwarf2read.c (dw2_instantiate_symtab): Update. | |
14360 | ||
0e8621a0 TT |
14361 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14362 | ||
14363 | * jit.c (struct jit_reader): Declare separately. Add constructor | |
14364 | and destructor. Change type of "handle". | |
14365 | (loaded_jit_reader): Define separately. | |
14366 | (jit_reader_load): Update. New "new". | |
14367 | (jit_reader_unload_command): Use "delete". | |
14368 | * gdb-dlfcn.h (struct dlclose_deleter): New. | |
14369 | (gdb_dlhandle_up): New typedef. | |
14370 | (gdb_dlopen, gdb_dlsym): Update types. | |
14371 | (gdb_dlclose): Remove. | |
14372 | * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up. | |
14373 | (gdb_dlsym): Change type of "handle". | |
14374 | (make_cleanup_dlclose): Remove. | |
14375 | (dlclose_deleter::operator()): Rename from gdb_dlclose. | |
14376 | * compile/compile-c-support.c (load_libcc): Update. | |
14377 | ||
67d89901 TT |
14378 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14379 | ||
14380 | * symtab.h (find_pcs_for_symtab_line): Change return type. | |
14381 | * symtab.c (find_pcs_for_symtab_line): Change return type. | |
14382 | * python/py-linetable.c (build_line_table_tuple_from_pcs): Change | |
14383 | type of "vec". Update. | |
14384 | (ltpy_get_pcs_for_line): Update. | |
14385 | * linespec.c (decode_digits_ordinary): Update. | |
14386 | ||
93921405 TT |
14387 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14388 | ||
14389 | * tracepoint.c (actions_command): Update. | |
14390 | * python/python.c (python_command, python_interactive_command): | |
14391 | Update. | |
14392 | * mi/mi-cmd-break.c (mi_cmd_break_commands): Update. | |
14393 | * guile/guile.c (guile_command): Update. | |
14394 | * defs.h (read_command_lines, read_command_lines_1): Return | |
14395 | command_line_up. | |
14396 | (command_lines_deleter): New struct. | |
14397 | (command_line_up): New typedef. | |
14398 | * compile/compile.c (compile_code_command) | |
14399 | (compile_print_command): Update. | |
14400 | * cli/cli-script.h (get_command_line, copy_command_lines): Return | |
14401 | command_line_up. | |
14402 | (make_cleanup_free_command_lines): Remove. | |
14403 | * cli/cli-script.c (get_command_line, read_command_lines_1) | |
14404 | (copy_command_lines): Return command_line_up. | |
14405 | (while_command, if_command, read_command_lines, define_command) | |
14406 | (document_command): Update. | |
14407 | (do_free_command_lines_cleanup, make_cleanup_free_command_lines): | |
14408 | Remove. | |
14409 | * breakpoint.h (breakpoint_set_commands): Change type of | |
14410 | "commands". | |
14411 | * breakpoint.c (breakpoint_set_commands): Change type of | |
14412 | "commands". Update. | |
14413 | (do_map_commands_command, update_dprintf_command_list) | |
14414 | (create_tracepoint_from_upload): Update. | |
14415 | ||
ffc2605c TT |
14416 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14417 | ||
14418 | * tracepoint.c (scope_info): Update. | |
14419 | * spu-tdep.c (spu_catch_start): Update. | |
14420 | * python/python.c (gdbpy_decode_line): Update. | |
14421 | * python/py-finishbreakpoint.c (bpfinishpy_init): Update. | |
14422 | * python/py-breakpoint.c (bppy_init): Update. | |
14423 | * probe.c (parse_probes): Update. | |
14424 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update. | |
14425 | * location.h (event_location_deleter): New struct. | |
14426 | (event_location_up): New typedef. | |
14427 | (new_linespec_location, new_address_location, new_probe_location) | |
14428 | (new_explicit_location, copy_event_location) | |
14429 | (string_to_event_location, string_to_event_location_basic) | |
14430 | (string_to_explicit_location): Update return type. | |
14431 | (make_cleanup_delete_event_location): Remove. | |
14432 | * location.c (new_linespec_location, new_address_location) | |
14433 | (new_probe_location, new_explicit_location, copy_event_location): | |
14434 | Return event_location_up. | |
14435 | (delete_event_location_cleanup) | |
14436 | (make_cleanup_delete_event_location): Remove. | |
14437 | (string_to_explicit_location, string_to_event_location_basic) | |
14438 | (string_to_event_location): Return event_location_up. | |
14439 | * linespec.c (canonicalize_linespec, event_location_to_sals) | |
14440 | (decode_line_with_current_source) | |
14441 | (decode_line_with_last_displayed, decode_objc): Update. | |
14442 | * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update. | |
14443 | * completer.c (location_completer): Update. | |
14444 | * cli/cli-cmds.c (edit_command, list_command): Update. | |
14445 | * breakpoint.c (create_overlay_event_breakpoint) | |
14446 | (create_longjmp_master_breakpoint) | |
14447 | (create_std_terminate_master_breakpoint) | |
14448 | (create_exception_master_breakpoint) | |
14449 | (create_thread_event_breakpoint): Update. | |
14450 | (init_breakpoint_sal): Update. Remove some dead code. | |
14451 | (create_breakpoint_sal): Change type of "location". Update. | |
14452 | (create_breakpoints_sal, create_breakpoint, break_command_1) | |
14453 | (dprintf_command, break_range_command, until_break_command) | |
14454 | (init_ada_exception_breakpoint) | |
14455 | (strace_marker_create_sals_from_location) | |
14456 | (update_static_tracepoint, trace_command, ftrace_command) | |
14457 | (strace_command, create_tracepoint_from_upload): Update. | |
14458 | * break-catch-throw.c (re_set_exception_catchpoint): Update. | |
14459 | * ax-gdb.c (agent_command_1): Update. | |
14460 | ||
8f10c932 PA |
14461 | 2017-04-12 Pedro Alves <palves@redhat.com> |
14462 | ||
14463 | * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o. | |
14464 | * configure.tgt: Handle i[34567]86-*-go32* and | |
14465 | i[34567]86-*-msdosdjgpp*. | |
14466 | * i386-tdep.c (i386_svr4_reg_to_regnum): | |
14467 | Make extern. | |
14468 | (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to | |
14469 | i386-go32-tdep.c. | |
14470 | (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c. | |
14471 | * i386-go32-tdep.c: New file. | |
14472 | * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New | |
14473 | declarations. | |
14474 | ||
0a31ccfb SM |
14475 | 2017-04-12 Simon Marchi <simon.marchi@ericsson.com> |
14476 | ||
14477 | * aix-thread.c (pd_status2str): Change return type to const char *. | |
14478 | ||
e9bb3fbb PA |
14479 | 2017-04-12 Pedro Alves <palves@redhat.com> |
14480 | ||
14481 | * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove | |
14482 | calls to set_gdbarch_gnu_triplet_regexp. | |
14483 | ||
53375380 PA |
14484 | 2017-04-12 Pedro Alves <palves@redhat.com> |
14485 | ||
14486 | PR gdb/21323 | |
14487 | * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>: | |
14488 | New enum value. | |
14489 | (cplus_language_arch_info): Register cplus_primitive_type_wchar_t. | |
14490 | * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field. | |
14491 | * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type. | |
14492 | * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values. | |
14493 | * gdbarch.h, gdbarch.c: Regenerate. | |
14494 | * aarch64-tdep.c (aarch64_gdbarch_init): Override | |
14495 | gdbarch_wchar_bit and gdbarch_wchar_signed. | |
14496 | * alpha-tdep.c (alpha_gdbarch_init): Likewise. | |
14497 | * arm-tdep.c (arm_gdbarch_init): Likewise. | |
14498 | * avr-tdep.c (avr_gdbarch_init): Likewise. | |
14499 | * h8300-tdep.c (h8300_gdbarch_init): Likewise. | |
14500 | * i386-nto-tdep.c (i386nto_init_abi): Likewise. | |
14501 | * i386-tdep.c (i386_go32_init_abi): Likewise. | |
14502 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. | |
14503 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. | |
14504 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. | |
14505 | * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise. | |
14506 | * sh-tdep.c (sh_gdbarch_init): Likewise. | |
14507 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. | |
14508 | * sparc64-tdep.c (sparc64_init_abi): Likewise. | |
14509 | * windows-tdep.c (windows_init_abi): Likewise. | |
14510 | * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise. | |
14511 | ||
53e710ac PA |
14512 | 2017-04-12 Pedro Alves <palves@redhat.com> |
14513 | ||
14514 | PR c++/21323 | |
14515 | * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t, | |
14516 | cplus_primitive_type_char32_t>: New enum values. | |
14517 | (cplus_language_arch_info): Register cplus_primitive_type_char16_t | |
14518 | and cplus_primitive_type_char32_t. | |
14519 | * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or | |
14520 | 32, use the archtecture's built-in type for char16_t and char32_t, | |
14521 | respectively. Otherwise, fallback to init_integer_type as before, | |
14522 | but make the type unsigned, and issue a complaint. | |
14523 | * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned. | |
14524 | ||
ab0538b8 AH |
14525 | 2017-04-12 Alan Hayward <alan.hayward@arm.com> |
14526 | ||
5e0e0422 | 14527 | * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added. |
ab0538b8 AH |
14528 | (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE. |
14529 | ||
5430098f SDJ |
14530 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
14531 | ||
14532 | * windows-nat.c (windows_create_inferior): Declare 'toexec' as | |
14533 | 'const char *'. | |
14534 | ||
7c5ded6a SDJ |
14535 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
14536 | ||
14537 | * common/common-utils.c (free_vector_argv): New function. | |
14538 | * common/common-utils.h: Include <vector>. | |
14539 | (free_vector_argv): New prototype. | |
14540 | * darwin-nat.c (darwin_create_inferior): Rewrite function | |
14541 | prototype in order to constify "exec_file" and accept a | |
14542 | "std::string" for "allargs". | |
14543 | * fork-child.c: Include <vector>. | |
14544 | (breakup_args): Rewrite function, using C++. | |
14545 | (fork_inferior): Rewrite function header, constify "exec_file_arg" | |
14546 | and accept "std::string" for "allargs". Update the code to | |
14547 | calculate "argv" based on "allargs". Update calls to "exec_fun" | |
14548 | and "execvp". | |
14549 | * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in | |
14550 | order to constify "exec_file" and accept a "std::string" for | |
14551 | "allargs". | |
14552 | * go32-nat.c (go32_create_inferior): Likewise. | |
14553 | * inf-ptrace.c (inf_ptrace_create_inferior): Likewise. | |
14554 | * infcmd.c (run_command_1): Constify "exec_file". Use | |
14555 | "std::string" for inferior arguments. | |
14556 | * inferior.h (fork_inferior): Update prototype. | |
14557 | * linux-nat.c (linux_nat_create_inferior): Rewrite function | |
14558 | prototype in order to constify "exec_file" and accept a | |
14559 | "std::string" for "allargs". | |
14560 | * nto-procfs.c (procfs_create_inferior): Likewise. | |
14561 | * procfs.c (procfs_create_inferior): Likewise. | |
14562 | * remote-sim.c (gdbsim_create_inferior): Likewise. | |
14563 | * remote.c (extended_remote_run): Update code to accept | |
14564 | "std::string" as argument. | |
14565 | (extended_remote_create_inferior): Rewrite function prototype in | |
14566 | order to constify "exec_file" and accept a "std::string" for | |
14567 | "allargs". | |
14568 | * rs6000-nat.c (super_create_inferior): Likewise. | |
14569 | (rs6000_create_inferior): Likewise. | |
14570 | * target.h (struct target_ops) <to_create_inferior>: Likewise. | |
14571 | * windows-nat.c (windows_create_inferior): Likewise. | |
14572 | ||
ae0eee42 PA |
14573 | 2017-04-11 Pedro Alves <palves@redhat.com> |
14574 | ||
14575 | * thread.c: Fix whitespace throughout. | |
14576 | ||
a6acac06 PR |
14577 | 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com> |
14578 | ||
14579 | * linux-nat.c (linux_nat_detach): Remove delete_lwp call. | |
14580 | ||
64403bd1 AH |
14581 | 2017-04-11 Alan Hayward <alan.hayward@arm.com> |
14582 | ||
14583 | * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE | |
14584 | ||
a5bef50f SDJ |
14585 | 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com> |
14586 | ||
14587 | PR gdb/21364 | |
14588 | * osdata.c (info_osdata): Check if 'type' is an empty string | |
14589 | instead of NULL. | |
14590 | ||
9295a5a9 PA |
14591 | 2017-04-10 Pedro Alves <palves@redhat.com> |
14592 | ||
14593 | * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid) | |
14594 | (ptid_to_global_thread_id, in_thread_list) | |
14595 | (do_captured_list_thread_ids, set_resumed, set_running) | |
14596 | (set_executing, set_stop_requested, finish_thread_state) | |
14597 | (validate_registers_access, can_access_registers_ptid) | |
14598 | (print_thread_info_1, switch_to_thread) | |
14599 | (do_restore_current_thread_cleanup) | |
14600 | (make_cleanup_restore_current_thread, thread_command) | |
14601 | (thread_name_command): Use operator== instead of ptid_equal. | |
14602 | ||
996812e3 PA |
14603 | 2017-04-10 Pedro Alves <palves@redhat.com> |
14604 | ||
14605 | * thread.c (struct current_thread_cleanup) <next>: Delete field. | |
14606 | (current_thread_cleanup_chain): Delete. | |
14607 | (restore_current_thread_cleanup_dtor) | |
14608 | (make_cleanup_restore_current_thread): Remove references to | |
14609 | current_thread_cleanup_chain. | |
14610 | ||
845b344f AH |
14611 | 2017-04-10 Alan Hayward <alan.hayward@arm.com> |
14612 | ||
14613 | * msp430-tdep.c (msp430_pseudo_register_read): Never return | |
14614 | REG_UNKNOWN. | |
14615 | ||
803bdfe4 YQ |
14616 | 2017-04-10 Yao Qi <yao.qi@linaro.org> |
14617 | ||
14618 | PR gdb/19942 | |
14619 | * gdbthread.h (thread_info::deletable): New method. | |
14620 | (thread_info::incref): New method. | |
14621 | (thread_info::decref): New method. | |
14622 | (thread_info::refcount): Move it to private. | |
14623 | * infrun.c (save_stop_context): Call inc_refcount. | |
14624 | (release_stop_context_cleanup): Likewise. | |
14625 | * thread.c (set_thread_exited): New function. | |
14626 | (init_thread_list): Delete "tp" only it is deletable, otherwise | |
14627 | call set_thread_exited. | |
14628 | (delete_thread_1): Call set_thread_exited. | |
14629 | (current_thread_cleanup) <inferior_pid>: Remove. | |
14630 | <thread>: New field. | |
14631 | (restore_current_thread_ptid_changed): Removed. | |
14632 | (do_restore_current_thread_cleanup): Adjust. | |
14633 | (restore_current_thread_cleanup_dtor): Don't call | |
14634 | find_thread_ptid. | |
14635 | (set_thread_refcount): Use dec_refcount. | |
14636 | (make_cleanup_restore_current_thread): Adjust. | |
14637 | (thread_apply_all_command): Call inc_refcount. | |
14638 | (_initialize_thread): Don't call | |
14639 | observer_attach_thread_ptid_changed. | |
14640 | ||
8c25b497 YQ |
14641 | 2017-04-10 Yao Qi <yao.qi@linaro.org> |
14642 | ||
14643 | * thread.c (delete_thread_1): Hoist code on marking thread as | |
14644 | exited. | |
14645 | ||
8473b447 SM |
14646 | 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
14647 | ||
14648 | * windows-nat.c (windows_detach): Initialize ptid with | |
14649 | minus_one_ptid. | |
14650 | ||
6670ec13 SM |
14651 | 2017-04-07 Simon Marchi <simon.marchi@ericsson.com> |
14652 | ||
14653 | * unittests/ptid-selftests.c: Fix erroneous assert messages. | |
14654 | ||
ba2f91bb AH |
14655 | 2017-04-07 Alan Hayward <alan.hayward@arm.com> |
14656 | ||
14657 | * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add. | |
14658 | (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE. | |
14659 | (bfin_pseudo_register_write): Likewise | |
14660 | ||
436252de SM |
14661 | 2017-04-06 Simon Marchi <simon.marchi@ericsson.com> |
14662 | ||
14663 | * common/ptid.h (struct ptid): Change to... | |
14664 | (class ptid_t): ... this. | |
14665 | <ptid_t>: New constructors. | |
14666 | <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=, | |
14667 | matches>: New methods. | |
14668 | <make_null, make_minus_one>: New static methods. | |
14669 | <pid>: Rename to... | |
14670 | <m_pid>: ...this. | |
14671 | <lwp>: Rename to... | |
14672 | <m_lwp>: ...this. | |
14673 | <tid>: Rename to... | |
14674 | <m_tid>: ...this. | |
14675 | (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, | |
14676 | ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments | |
14677 | as references, move comment to class ptid_t. | |
14678 | * common/ptid.c (null_ptid, minus_one_ptid): Initialize with | |
14679 | ptid_t static methods. | |
14680 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid, | |
14681 | ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): | |
14682 | Take ptid arguments as references, implement using ptid_t methods. | |
14683 | * unittests/ptid-selftests.c: New file. | |
14684 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
14685 | unittests/ptid-selftests.c. | |
14686 | (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o. | |
14687 | ||
0dedf377 TP |
14688 | 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com> |
14689 | ||
14690 | * python/python.c (python_run_simple_file): Cast mode literal to | |
14691 | non-const char pointer as expected by PyFile_FromString. | |
14692 | ||
4e9868d4 SM |
14693 | 2017-04-05 Simon Marchi <simon.marchi@ericsson.com> |
14694 | ||
14695 | * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with | |
14696 | minus_one_ptid and null_ptid. | |
14697 | ||
9bf2a700 PA |
14698 | 2017-04-05 Pedro Alves <palves@redhat.com> |
14699 | ||
14700 | * warning.m4 (build_warnings): Remove -Wno-write-strings. | |
14701 | * configure: Regenerate. | |
14702 | ||
a121b7c1 PA |
14703 | 2017-04-05 Pedro Alves <palves@redhat.com> |
14704 | ||
14705 | * ada-exp.y (yyerror): Constify. | |
14706 | * ada-lang.c (bound_name, get_selections) | |
14707 | (ada_variant_discrim_type) | |
14708 | (ada_variant_discrim_name, ada_value_struct_elt) | |
14709 | (ada_lookup_struct_elt_type, is_unchecked_variant) | |
14710 | (ada_which_variant_applies, standard_exc, ada_get_next_arg) | |
14711 | (catch_ada_exception_command_split) | |
14712 | (catch_ada_assert_command_split, catch_assert_command) | |
14713 | (ada_op_name): Constify. | |
14714 | * ada-lang.h (ada_yyerror, get_selections) | |
14715 | (ada_variant_discrim_name, ada_value_struct_elt): Constify. | |
14716 | * arc-tdep.c (arc_print_frame_cache): Constify. | |
14717 | * arm-tdep.c (arm_skip_stub): Constify. | |
14718 | * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref) | |
14719 | (gen_aggregate_elt_ref): Constify. | |
14720 | * bcache.c (print_bcache_statistics): Constify. | |
14721 | * bcache.h (print_bcache_statistics): Constify. | |
14722 | * break-catch-throw.c (catch_exception_command_1): | |
14723 | * breakpoint.c (struct ep_type_description::description): | |
14724 | Constify. | |
14725 | (add_solib_catchpoint): Constify. | |
14726 | (catch_fork_command_1): Add cast. | |
14727 | (add_catch_command): Constify. | |
14728 | * breakpoint.h (add_catch_command, add_solib_catchpoint): | |
14729 | Constify. | |
14730 | * bsd-uthread.c (bsd_uthread_state): Constify. | |
14731 | * buildsym.c (patch_subfile_names): Constify. | |
14732 | * buildsym.h (next_symbol_text_func, patch_subfile_names): | |
14733 | Constify. | |
14734 | * c-exp.y (yyerror): Constify. | |
14735 | (token::oper): Constify. | |
14736 | * c-lang.h (c_yyerror, cp_print_class_member): Constify. | |
14737 | * c-varobj.c (cplus_describe_child): Constify. | |
14738 | * charset.c (find_charset_names): Add cast. | |
14739 | (find_charset_names): Constify array and add const_cast. | |
14740 | * cli/cli-cmds.c (complete_command, cd_command): Constify. | |
14741 | (edit_command): Constify. | |
14742 | * cli/cli-decode.c (lookup_cmd): Constify. | |
14743 | * cli/cli-dump.c (dump_memory_command, dump_value_command): | |
14744 | Constify. | |
14745 | (struct dump_context): Constify. | |
14746 | (add_dump_command, restore_command): Constify. | |
14747 | * cli/cli-script.c (get_command_line): Constify. | |
14748 | * cli/cli-script.h (get_command_line): Constify. | |
14749 | * cli/cli-utils.c (check_for_argument): Constify. | |
14750 | * cli/cli-utils.h (check_for_argument): Constify. | |
14751 | * coff-pe-read.c (struct read_pe_section_data): Constify. | |
14752 | * command.h (lookup_cmd): Constify. | |
14753 | * common/print-utils.c (decimal2str): Constify. | |
14754 | * completer.c (gdb_print_filename): Constify. | |
14755 | * corefile.c (set_gnutarget): Constify. | |
14756 | * cp-name-parser.y (yyerror): Constify. | |
14757 | * cp-valprint.c (cp_print_class_member): Constify. | |
14758 | * cris-tdep.c (cris_register_name, crisv32_register_name): | |
14759 | Constify. | |
14760 | * d-exp.y (yyerror): Constify. | |
14761 | (struct token::oper): Constify. | |
14762 | * d-lang.h (d_yyerror): Constify. | |
14763 | * dbxread.c (struct header_file_location::name): Constify. | |
14764 | (add_old_header_file, add_new_header_file, last_function_name) | |
14765 | (dbx_next_symbol_text, add_bincl_to_list) | |
14766 | (find_corresponding_bincl_psymtab, set_namestring) | |
14767 | (find_stab_function_addr, read_dbx_symtab, start_psymtab) | |
14768 | (dbx_end_psymtab, read_ofile_symtab, process_one_symbol): | |
14769 | * defs.h (command_line_input, print_address_symbolic) | |
14770 | (deprecated_readline_begin_hook): Constify. | |
14771 | * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name): | |
14772 | Constify. | |
14773 | * event-top.c (handle_line_of_input): Constify and add cast. | |
14774 | * exceptions.c (catch_errors): Constify. | |
14775 | * exceptions.h (catch_errors): Constify. | |
14776 | * expprint.c (print_subexp_standard, op_string, op_name) | |
14777 | (op_name_standard, dump_raw_expression, dump_raw_expression): | |
14778 | * expression.h (op_name, op_string, dump_raw_expression): | |
14779 | Constify. | |
14780 | * f-exp.y (yyerror): Constify. | |
14781 | (struct token::oper): Constify. | |
14782 | (struct f77_boolean_val::name): Constify. | |
14783 | * f-lang.c (f_word_break_characters): Constify. | |
14784 | * f-lang.h (f_yyerror): Constify. | |
14785 | * fork-child.c (fork_inferior): Add cast. | |
14786 | * frv-tdep.c (struct gdbarch_tdep::register_names): Constify. | |
14787 | (new_variant): Constify. | |
14788 | * gdbarch.sh (pstring_ptr, pstring_list): Constify. | |
14789 | * gdbarch.c: Regenerate. | |
14790 | * gdbcore.h (set_gnutarget): Constify. | |
14791 | * go-exp.y (yyerror): Constify. | |
14792 | (token::oper): Constify. | |
14793 | * go-lang.h (go_yyerror): Constify. | |
14794 | * go32-nat.c (go32_sysinfo): Constify. | |
14795 | * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify. | |
14796 | * guile/scm-cmd.c (cmdscm_function): Constify. | |
14797 | * guile/scm-param.c (pascm_param_value): Constify. | |
14798 | * h8300-tdep.c (h8300_register_name, h8300s_register_name) | |
14799 | (h8300sx_register_name): Constify. | |
14800 | * hppa-tdep.c (hppa32_register_name, hppa64_register_name): | |
14801 | Constify. | |
14802 | * ia64-tdep.c (ia64_register_names): Constify. | |
14803 | * infcmd.c (construct_inferior_arguments): Constify. | |
14804 | (path_command, attach_post_wait): Constify. | |
14805 | * language.c (show_range_command, show_case_command) | |
14806 | (unk_lang_error): Constify. | |
14807 | * language.h (language_defn::la_error) | |
14808 | (language_defn::la_name_of_this): Constify. | |
14809 | * linespec.c (decode_line_2): Constify. | |
14810 | * linux-thread-db.c (thread_db_err_str): Constify. | |
14811 | * lm32-tdep.c (lm32_register_name): Constify. | |
14812 | * m2-exp.y (yyerror): Constify. | |
14813 | * m2-lang.h (m2_yyerror): Constify. | |
14814 | * m32r-tdep.c (m32r_register_names): Constify and make static. | |
14815 | * m68hc11-tdep.c (m68hc11_register_names): Constify. | |
14816 | * m88k-tdep.c (m88k_register_name): Constify. | |
14817 | * macroexp.c (appendmem): Constify. | |
14818 | * mdebugread.c (fdr_name, add_data_symbol, parse_type) | |
14819 | (upgrade_type, parse_external, parse_partial_symbols) | |
14820 | (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab) | |
14821 | (new_symbol): Constify. | |
14822 | * memattr.c (mem_info_command): Constify. | |
14823 | * mep-tdep.c (register_name_from_keyword): Constify. | |
14824 | * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env): | |
14825 | Constify. | |
14826 | * mi/mi-cmd-stack.c (list_args_or_locals): Constify. | |
14827 | * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify. | |
14828 | * mi/mi-main.c (captured_mi_execute_command): Constify and add | |
14829 | cast. | |
14830 | (mi_execute_async_cli_command): Constify. | |
14831 | * mips-tdep.c (mips_register_name): Constify. | |
14832 | * mn10300-tdep.c (register_name, mn10300_generic_register_name) | |
14833 | (am33_register_name, am33_2_register_name) | |
14834 | * moxie-tdep.c (moxie_register_names): Constify. | |
14835 | * nat/linux-osdata.c (osdata_type): Constify fields. | |
14836 | * nto-tdep.c (nto_parse_redirection): Constify. | |
14837 | * objc-lang.c (lookup_struct_typedef, lookup_objc_class) | |
14838 | (lookup_child_selector): Constify. | |
14839 | (objc_methcall::name): Constify. | |
14840 | * objc-lang.h (lookup_objc_class, lookup_child_selector) | |
14841 | (lookup_struct_typedef): Constify. | |
14842 | * objfiles.c (pc_in_section): Constify. | |
14843 | * objfiles.h (pc_in_section): Constify. | |
14844 | * p-exp.y (struct token::oper): Constify. | |
14845 | (yyerror): Constify. | |
14846 | * p-lang.h (pascal_yyerror): Constify. | |
14847 | * parser-defs.h (op_name_standard): Constify. | |
14848 | (op_print::string): Constify. | |
14849 | (exp_descriptor::op_name): Constify. | |
14850 | * printcmd.c (print_address_symbolic): Constify. | |
14851 | * psymtab.c (print_partial_symbols): Constify. | |
14852 | * python/py-breakpoint.c (stop_func): Constify. | |
14853 | (bppy_get_expression): Constify. | |
14854 | * python/py-cmd.c (cmdpy_completer::name): Constify. | |
14855 | (cmdpy_function): Constify. | |
14856 | * python/py-event.c (evpy_add_attribute) | |
14857 | (gdbpy_initialize_event_generic): Constify. | |
14858 | * python/py-event.h (evpy_add_attribute) | |
14859 | (gdbpy_initialize_event_generic): Constify. | |
14860 | * python/py-evts.c (add_new_registry): Constify. | |
14861 | * python/py-finishbreakpoint.c (outofscope_func): Constify. | |
14862 | * python/py-framefilter.c (get_py_iter_from_func): Constify. | |
14863 | * python/py-inferior.c (get_buffer): Add cast. | |
14864 | * python/py-param.c (parm_constant::name): Constify. | |
14865 | * python/py-unwind.c (fprint_frame_id): Constify. | |
14866 | * python/python.c (gdbpy_parameter_value): Constify. | |
14867 | * remote-fileio.c (remote_fio_func_map): Make 'name' const. | |
14868 | * remote.c (memory_packet_config::name): Constify. | |
14869 | (show_packet_config_cmd, remote_write_bytes) | |
14870 | (remote_buffer_add_string): | |
14871 | * reverse.c (exec_reverse_once): Constify. | |
14872 | * rs6000-tdep.c (variant::name, variant::description): Constify. | |
14873 | * rust-exp.y (rustyyerror): Constify. | |
14874 | * rust-lang.c (rust_op_name): Constify. | |
14875 | * rust-lang.h (rustyyerror): Constify. | |
14876 | * serial.h (serial_ops::name): Constify. | |
14877 | * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name) | |
14878 | (sh_sh3e_register_name, sh_sh2e_register_name) | |
14879 | (sh_sh2a_register_name, sh_sh2a_nofpu_register_name) | |
14880 | (sh_sh_dsp_register_name, sh_sh3_dsp_register_name) | |
14881 | (sh_sh4_register_name, sh_sh4_nofpu_register_name) | |
14882 | (sh_sh4al_dsp_register_name): Constify. | |
14883 | * sh64-tdep.c (sh64_register_name): Constify. | |
14884 | * solib-darwin.c (lookup_symbol_from_bfd): Constify. | |
14885 | * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify. | |
14886 | * stabsread.c (patch_block_stabs, read_type_number) | |
14887 | (ref_map::stabs, ref_add, process_reference) | |
14888 | (symbol_reference_defined, define_symbol, define_symbol) | |
14889 | (error_type, read_type, read_member_functions, read_cpp_abbrev) | |
14890 | (read_one_struct_field, read_struct_fields, read_baseclasses) | |
14891 | (read_tilde_fields, read_struct_type, read_array_type) | |
14892 | (read_enum_type, read_sun_builtin_type, read_sun_floating_type) | |
14893 | (read_huge_number, read_range_type, read_args, common_block_start) | |
14894 | (find_name_end): Constify. | |
14895 | * stabsread.h (common_block_start, define_symbol) | |
14896 | (process_one_symbol, symbol_reference_defined, ref_add): | |
14897 | * symfile.c (get_section_index, add_symbol_file_command): | |
14898 | * symfile.h (get_section_index): Constify. | |
14899 | * target-descriptions.c (tdesc_type::name): Constify. | |
14900 | (tdesc_free_type): Add cast. | |
14901 | * target.c (find_default_run_target): | |
14902 | (add_deprecated_target_alias, find_default_run_target) | |
14903 | (target_announce_detach): Constify. | |
14904 | (do_option): Constify. | |
14905 | * target.h (add_deprecated_target_alias): Constify. | |
14906 | * thread.c (print_thread_info_1): Constify. | |
14907 | * top.c (deprecated_readline_begin_hook, command_line_input): | |
14908 | Constify. | |
14909 | (init_main): Add casts. | |
14910 | * top.h (handle_line_of_input): Constify. | |
14911 | * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify. | |
14912 | * tracepoint.c (tvariables_info_1, trace_status_mi): Constify. | |
14913 | (tfind_command): Rename to ... | |
14914 | (tfind_command_1): ... this and constify. | |
14915 | (tfind_command): New function. | |
14916 | (tfind_end_command, tfind_start_command): Adjust. | |
14917 | (encode_source_string): Constify. | |
14918 | * tracepoint.h (encode_source_string): Constify. | |
14919 | * tui/tui-data.c (tui_partial_win_by_name): Constify. | |
14920 | * tui/tui-data.h (tui_partial_win_by_name): Constify. | |
14921 | * tui/tui-source.c (tui_set_source_content_nil): Constify. | |
14922 | * tui/tui-source.h (tui_set_source_content_nil): Constify. | |
14923 | * tui/tui-win.c (parse_scrolling_args): Constify. | |
14924 | * tui/tui-windata.c (tui_erase_data_content): Constify. | |
14925 | * tui/tui-windata.h (tui_erase_data_content): Constify. | |
14926 | * tui/tui-winsource.c (tui_erase_source_content): Constify. | |
14927 | * tui/tui.c (tui_enable): Add cast. | |
14928 | * utils.c (defaulted_query): Constify. | |
14929 | (init_page_info): Add cast. | |
14930 | (puts_debug, subset_compare): Constify. | |
14931 | * utils.h (subset_compare): Constify. | |
14932 | * varobj.c (varobj_format_string): Constify. | |
14933 | * varobj.h (varobj_format_string): Constify. | |
14934 | * vax-tdep.c (vax_register_name): Constify. | |
14935 | * windows-nat.c (windows_detach): Constify. | |
14936 | * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify. | |
14937 | * xml-support.c (gdb_xml_end_element): Constify. | |
14938 | * xml-tdesc.c (tdesc_start_reg): Constify. | |
14939 | * xstormy16-tdep.c (xstormy16_register_name): Constify. | |
14940 | * xtensa-tdep.c (xtensa_find_register_by_name): Constify. | |
14941 | * xtensa-tdep.h (xtensa_register_t::name): Constify. | |
14942 | ||
995816ba PA |
14943 | 2017-04-05 Pedro Alves <palves@redhat.com> |
14944 | ||
14945 | * proc-api.c (struct trans): Constify. | |
14946 | (procfs_note): Constify. | |
14947 | * proc-events.c (struct trans, syscall_table): | |
14948 | * proc-flags.c (struct trans): Constify. | |
14949 | * proc-utils.h (procfs_note): Constify. | |
14950 | * proc-why.c (struct trans): Constify. | |
14951 | * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error) | |
14952 | (procfs_detach): Constify. | |
14953 | * sol-thread.c (struct string_map): Constify. | |
14954 | (td_err_string, td_state_string): Constify. | |
14955 | ||
3e83a920 PA |
14956 | 2017-04-05 Pedro Alves <palves@redhat.com> |
14957 | ||
14958 | * proc-api.c (procfs_filename): Don't initialize | |
14959 | procfs_filename. | |
14960 | (prepare_to_trace): Assume procfs_filename is non-NULL. | |
14961 | (_initialize_proc_api): Give procfs_filename a default value here. | |
14962 | ||
63160a43 PA |
14963 | 2017-04-05 Pedro Alves <palves@redhat.com> |
14964 | ||
14965 | * break-catch-throw.c (handle_gnu_v3_exceptions): Constify | |
14966 | 'cond_string' parameter. | |
14967 | (extract_exception_regexp): Constify 'string' parameter. | |
14968 | (catch_exception_command_1): Constify. | |
14969 | * breakpoint.c (init_catchpoint) | |
14970 | (create_fork_vfork_event_catchpoint): Constify 'cond_string' | |
14971 | parameter. | |
14972 | (ep_parse_optional_if_clause, catch_fork_command_1) | |
14973 | (catch_exec_command_1): Constify. | |
14974 | * breakpoint.h (init_catchpoint): Constify 'cond_string' | |
14975 | parameter. | |
14976 | (ep_parse_optional_if_clause): Constify. | |
14977 | * cli/cli-utils.c (remove_trailing_whitespace) | |
14978 | (check_for_argument): Constify. | |
14979 | * cli/cli-utils.h (remove_trailing_whitespace): Constify and add | |
14980 | non-const overload. | |
14981 | (check_for_argument): Likewise. | |
14982 | ||
9b2eba3d PA |
14983 | 2017-04-05 Pedro Alves <palves@redhat.com> |
14984 | ||
14985 | * event-top.c (command_line_handler): Add cast to execute_command | |
14986 | call. | |
14987 | * record-btrace.c (cmd_record_btrace_bts_start) | |
14988 | (cmd_record_btrace_pt_start, cmd_record_btrace_start) | |
14989 | (cmd_record_btrace_start): Add cast to execute_command call. | |
14990 | * record-full.c (record_full_goto_insn): | |
14991 | * record.c (record_start, record_stop): Add cast to | |
14992 | execute_command_to_string calls. | |
14993 | (cmd_record_start): Add cast to execute_command calls. | |
14994 | ||
2adadf51 PA |
14995 | 2017-04-05 Pedro Alves <palves@redhat.com> |
14996 | ||
14997 | * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New | |
14998 | static inline function. | |
14999 | * python/py-arch.c (archpy_disassemble): Constify 'keywords' | |
15000 | array and use gdb_PyArg_ParseTupleAndKeywords. | |
15001 | * python/py-cmd.c (cmdpy_init): Likewise. | |
15002 | * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise. | |
15003 | * python/py-inferior.c (infpy_read_memory, infpy_write_memory) | |
15004 | (infpy_search_memory): Likewise. | |
15005 | * python/py-objfile.c (objfpy_add_separate_debug_file) | |
15006 | (gdbpy_lookup_objfile): Likewise. | |
15007 | * python/py-symbol.c (gdbpy_lookup_symbol) | |
15008 | (gdbpy_lookup_global_symbol): Likewise. | |
15009 | * python/py-type.c (gdbpy_lookup_type): Likewise. | |
15010 | * python/py-value.c (valpy_lazy_string, valpy_string): Likewise. | |
15011 | * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush): | |
15012 | Likewise. | |
15013 | ||
0d1f4ceb PA |
15014 | 2017-04-05 Pedro Alves <palves@redhat.com> |
15015 | ||
15016 | * python/python-internal.h (gdb_PyGetSetDef): New type. | |
15017 | * python/py-block.c (block_object_getset) | |
15018 | (breakpoint_object_getset): Now a gdb_PyGetSetDef array. | |
15019 | * python/py-event.c (event_object_getset) | |
15020 | (finish_breakpoint_object_getset): Likewise. | |
15021 | * python/py-inferior.c (inferior_object_getset): Likewise. | |
15022 | * python/py-infthread.c (thread_object_getset): Likewise. | |
15023 | * python/py-lazy-string.c (lazy_string_object_getset): Likewise. | |
15024 | * python/py-linetable.c (linetable_entry_object_getset): Likewise. | |
15025 | * python/py-objfile.c (objfile_getset): Likewise. | |
15026 | * python/py-progspace.c (pspace_getset): Likewise. | |
15027 | * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset): | |
15028 | Likewise. | |
15029 | * python/py-record.c (recpy_record_getset): Likewise. | |
15030 | * python/py-symbol.c (symbol_object_getset): Likewise. | |
15031 | * python/py-symtab.c (symtab_object_getset, sal_object_getset): | |
15032 | Likewise. | |
15033 | * python/py-type.c (type_object_getset, field_object_getset): | |
15034 | Likewise. | |
15035 | * python/py-value.c (value_object_getset): Likewise. | |
15036 | ||
4d759979 PA |
15037 | 2017-04-05 Pedro Alves <palves@redhat.com> |
15038 | ||
15039 | * python/python-internal.h (gdb_PyObject_CallMethod) | |
15040 | (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath): | |
15041 | New functions. | |
15042 | (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException) | |
15043 | (PySys_GetObject, PySys_SetPath): New macros. | |
15044 | ||
fdf9e36f PA |
15045 | 2017-04-05 Pedro Alves <palves@redhat.com> |
15046 | ||
15047 | * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of | |
15048 | info_osdata_command. | |
15049 | * osdata.c (info_osdata_command): Rename to ... | |
15050 | (info_osdata): ... this. Constify 'type' parameter, and remove | |
15051 | the 'from_tty' parameter. Accept NULL TYPE. | |
15052 | (info_osdata_command): New function. | |
15053 | * osdata.h (info_osdata_command): Remove declaration. | |
15054 | (info_osdata): New declaration. | |
15055 | ||
9f33b8b7 PA |
15056 | 2017-04-05 Pedro Alves <palves@redhat.com> |
15057 | ||
15058 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert) | |
15059 | (mi_cmd_dprintf_insert, mi_cmd_break_passcount) | |
15060 | (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command' | |
15061 | parameter. | |
15062 | * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception) | |
15063 | (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter. | |
15064 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command' | |
15065 | parameter. | |
15066 | * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path) | |
15067 | (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show) | |
15068 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file) | |
15069 | (mi_cmd_file_list_exec_source_files) | |
15070 | (mi_cmd_file_list_shared_libraries): Constify 'command' parameter. | |
15071 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions) | |
15072 | (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command' | |
15073 | parameter. | |
15074 | * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters) | |
15075 | (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth) | |
15076 | (mi_cmd_stack_list_locals, mi_cmd_stack_list_args) | |
15077 | (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame) | |
15078 | (mi_cmd_stack_info_frame): Constify 'command' parameter. | |
15079 | * mi/mi-cmd-target.c (mi_cmd_target_file_get) | |
15080 | (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify | |
15081 | 'command' parameter. | |
15082 | * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete) | |
15083 | (mi_cmd_var_set_format, mi_cmd_var_set_visualizer) | |
15084 | (mi_cmd_var_set_frozen, mi_cmd_var_show_format) | |
15085 | (mi_cmd_var_info_num_children, mi_cmd_var_list_children) | |
15086 | (mi_cmd_var_info_type, mi_cmd_var_info_path_expression) | |
15087 | (mi_cmd_var_info_expression, mi_cmd_var_show_attributes) | |
15088 | (mi_cmd_var_evaluate_expression, mi_cmd_var_assign) | |
15089 | (mi_cmd_var_update, mi_cmd_enable_pretty_printing) | |
15090 | (mi_cmd_var_set_update_range): Constify 'command' parameter. | |
15091 | * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter. | |
15092 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command' | |
15093 | parameter. | |
15094 | * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next) | |
15095 | (mi_cmd_exec_next_instruction, mi_cmd_exec_step) | |
15096 | (mi_cmd_exec_step_instruction, mi_cmd_exec_finish) | |
15097 | (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue) | |
15098 | (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach) | |
15099 | (mi_cmd_target_flash_erase, mi_cmd_thread_select) | |
15100 | (mi_cmd_thread_list_ids, mi_cmd_thread_info) | |
15101 | (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names) | |
15102 | (mi_cmd_data_list_changed_registers) | |
15103 | (mi_cmd_data_write_register_values) | |
15104 | (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory) | |
15105 | (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory) | |
15106 | (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings) | |
15107 | (mi_cmd_list_features, mi_cmd_list_target_features) | |
15108 | (mi_cmd_add_inferior, mi_cmd_remove_inferior) | |
15109 | (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables) | |
15110 | (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start) | |
15111 | (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info) | |
15112 | (mi_cmd_trace_frame_collected): Constify 'command' | |
15113 | parameter. | |
15114 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify | |
15115 | 'command' parameter. | |
15116 | ||
67cb5b2d PA |
15117 | 2017-04-05 Pedro Alves <palves@redhat.com> |
15118 | ||
15119 | * ada-lang.c (ada_completer_word_break_characters): Now a const | |
15120 | array. | |
15121 | (ada_get_gdb_completer_word_break_characters): Constify. | |
15122 | * completer.c (gdb_completer_command_word_break_characters) | |
15123 | (gdb_completer_file_name_break_characters) | |
15124 | (gdb_completer_quote_characters): Now const arrays. | |
15125 | (get_gdb_completer_quote_characters): Constify. | |
15126 | (set_rl_completer_word_break_characters): New function. | |
15127 | (set_gdb_completion_word_break_characters) | |
15128 | (complete_line_internal): Use it. | |
15129 | * completer.h (get_gdb_completer_quote_characters): Constify. | |
15130 | (set_rl_completer_word_break_characters): Declare. | |
15131 | * f-lang.c (f_word_break_characters): Constify. | |
15132 | * language.c (default_word_break_characters): Constify. | |
15133 | * language.h (language_defn::la_word_break_characters): Constify. | |
15134 | (default_word_break_characters): Constify. | |
15135 | * top.c (init_main): Use set_rl_completer_word_break_characters. | |
15136 | ||
7a114964 PA |
15137 | 2017-04-05 Pedro Alves <palves@redhat.com> |
15138 | ||
15139 | * aix-thread.c (aix_thread_pid_to_str) | |
15140 | (aix_thread_extra_thread_info): Constify. | |
15141 | * bsd-kvm.c (bsd_kvm_pid_to_str): Constify. | |
15142 | * bsd-uthread.c (bsd_uthread_extra_thread_info) | |
15143 | (bsd_uthread_pid_to_str): Constify. | |
15144 | * corelow.c (core_pid_to_str): Constify. | |
15145 | * darwin-nat.c (darwin_pid_to_str): Constify. | |
15146 | * fbsd-nat.c (fbsd_pid_to_str): Constify. | |
15147 | * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str): | |
15148 | Constify. | |
15149 | * gnu-nat.c (gnu_pid_to_str): Constify. | |
15150 | * go32-nat.c (go32_pid_to_str): Constify. | |
15151 | * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify. | |
15152 | * inf-ptrace.c (inf_ptrace_pid_to_str): Constify. | |
15153 | * inferior.c (inferior_pid_to_str): Constify. | |
15154 | * linux-nat.c (linux_nat_pid_to_str): Constify. | |
15155 | * linux-tdep.c (linux_core_pid_to_str): Constify. | |
15156 | * linux-thread-db.c (thread_db_pid_to_str) | |
15157 | (thread_db_extra_thread_info): Constify. | |
15158 | * nto-tdep.c (nto_extra_thread_info): Constify. | |
15159 | * nto-tdep.h (nto_extra_thread_info): Constify. | |
15160 | * obsd-nat.c (obsd_pid_to_str): Constify. | |
15161 | * procfs.c (procfs_pid_to_str): Constify. | |
15162 | * ravenscar-thread.c (ravenscar_extra_thread_info) | |
15163 | (ravenscar_pid_to_str): Constify. | |
15164 | * remote-sim.c (gdbsim_pid_to_str): Constify. | |
15165 | * remote.c (remote_threads_extra_info, remote_pid_to_str): | |
15166 | Constify. | |
15167 | * sol-thread.c (solaris_pid_to_str): Constify. | |
15168 | * sol2-tdep.c (sol2_core_pid_to_str): Constify. | |
15169 | * sol2-tdep.h (sol2_core_pid_to_str): Constify. | |
15170 | * target.c (default_pid_to_str, target_pid_to_str) | |
15171 | (normal_pid_to_str, default_pid_to_str): Constify. | |
15172 | * target.h (target_ops::to_pid_to_str) | |
15173 | (target_ops::to_extra_thread_info): Constify. | |
15174 | (target_pid_to_str, normal_pid_to_str): Constify. | |
15175 | * windows-nat.c (windows_pid_to_str): Constify. | |
15176 | * gdbarch.sh (core_pid_to_str): Constify. | |
15177 | * target-delegates.c: Regenerate. | |
15178 | * gdbarch.h, gdbarch.c: Regenerate. | |
15179 | ||
69bbf465 PA |
15180 | 2017-04-05 Pedro Alves <palves@redhat.com> |
15181 | ||
15182 | * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage | |
15183 | the memory of the temporary warning_pre_print override. | |
15184 | * utils.c (warning_pre_print): Constify. | |
15185 | * utils.h (warning_pre_print): Constify. | |
15186 | ||
be47f9e8 PA |
15187 | 2017-04-05 Pedro Alves <palves@redhat.com> |
15188 | ||
15189 | * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter. | |
15190 | (shell_command): New function. | |
15191 | (make_command): Use std::string. | |
15192 | (init_cli_cmds): Register shell_command instead of shell_escape. | |
15193 | ||
bde6261a PA |
15194 | 2017-04-05 Pedro Alves <palves@redhat.com> |
15195 | ||
15196 | * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize. | |
15197 | * tracepoint.c (default_collect): Don't initialize. | |
15198 | ||
b38ef47f PA |
15199 | 2017-04-05 Pedro Alves <palves@redhat.com> |
15200 | ||
15201 | * macroexp.c (macro_buffer::shared): Now a bool. | |
15202 | (init_buffer): Update. | |
15203 | (init_shared_buffer): Constify 'addr' parameter. | |
15204 | (substitute_args, expand, macro_expand, macro_expand_next): Remove | |
15205 | casts. | |
15206 | ||
f995bbe8 PA |
15207 | 2017-04-05 Pedro Alves <palves@redhat.com> |
15208 | ||
15209 | * arm-tdep.c (show_disassembly_style_sfunc): Constify local. | |
15210 | * disasm.c (set_disassembler_options): Constify local. | |
15211 | * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment. | |
15212 | ||
4a596fe2 SDJ |
15213 | 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com> |
15214 | ||
15215 | PR gdb/21352 | |
15216 | * tracefile.c (tsave_command): Fix argument parsing for '-r' | |
15217 | option. | |
15218 | ||
2cad08ea YQ |
15219 | 2017-04-05 Yao Qi <yao.qi@linaro.org> |
15220 | ||
15221 | * frame.c (frame_unwind_register_unsigned): Call | |
15222 | frame_unwind_register_value. | |
15223 | ||
55a98976 YQ |
15224 | 2017-04-05 Yao Qi <yao.qi@linaro.org> |
15225 | ||
15226 | * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint): | |
15227 | Use gdb_test_multiple, and don't match anchor. | |
15228 | ||
4ac40124 PA |
15229 | 2017-04-05 Pedro Alves <palves@redhat.com> |
15230 | ||
15231 | * MAINTAINERS (Global Maintainers): Add Simon Marchi. | |
15232 | (Write After Approval): Remove Simon Marchi. | |
15233 | ||
c053b654 PA |
15234 | 2017-04-05 Pedro Alves <palves@redhat.com> |
15235 | ||
15236 | * common/gdb_optional.h (optional::optional): Make constexpr and | |
15237 | initialize m_dummy. | |
15238 | ||
4c7bf4f9 JB |
15239 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
15240 | ||
15241 | * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include. | |
15242 | (amd64fbsd_jmp_buf_reg_offset): Remove. | |
15243 | (amd64fbsd_supply_uthread): Remove function. | |
15244 | (amd64fbsd_collect_uthread): Remove function. | |
15245 | (amd64fbsd_init_abi): Don't set bsd-uthread callbacks. | |
15246 | * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o. | |
15247 | (x86_64-*-freebsd*): Remove bsd-uthread.o. | |
15248 | (fbsd-nat.c): Update comment. | |
15249 | * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include. | |
15250 | (i386fbsd_jmp_buf_reg_offset): Remove. | |
15251 | (i386fbsd_supply_uthread): Remove function. | |
15252 | (i386fbsd_collect_uthread): Remove function. | |
15253 | (i386fbsd_init_abi): Don't set bsd-uthread callbacks. | |
15254 | ||
1e1a8bef JB |
15255 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
15256 | ||
15257 | * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o. | |
15258 | (ALLDEPFILES): Remove alpha-fbsd-tdep.c | |
15259 | * NEWS: Mention that support for FreeBSD/alpha was removed. | |
15260 | * alpha-fbsd-tdep.c: Delete file. | |
15261 | * config/alpha/fbsd.mh: Delete file. | |
15262 | * configure.host: Delete alpha*-*-freebsd* and | |
15263 | alpha*-*-kfreebsd*-gnu. | |
15264 | * configure.tgt: Delete alpha*-*-freebsd* and | |
15265 | alpha*-*-kfreebsd*-gnu. | |
15266 | ||
49907934 JB |
15267 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
15268 | ||
15269 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers, | |
15270 | amd64bsd_store_inferior_registers): Use ptid from regcache. | |
15271 | ||
6f77053d PA |
15272 | 2017-04-04 Pedro Alves <palves@redhat.com> |
15273 | ||
15274 | * dwarf2read.c (lnp_state_machine): Now a class. Initialize all | |
15275 | data fields, make them private and add "m_" prefixes. | |
15276 | (lnp_state_machine::lnp_state_machine): New ctor. | |
15277 | (record_line, check_line_address, handle_set_discriminator) | |
15278 | (handle_set_address, handle_advance_pc, handle_special_opcode) | |
15279 | (handle_advance_line, handle_set_file, handle_negate_stmt) | |
15280 | (handle_const_add_pc, handle_fixed_advance_pc, handle_copy) | |
15281 | (end_sequence, advance_line): New methods. | |
15282 | (m_gdbarch, m_record_lines_p): New fields. | |
15283 | (lnp_reader_state): Delete. | |
15284 | (dwarf_record_line): Rename to ... | |
15285 | (lnp_state_machine::record_line): ... adjust. | |
15286 | (init_lnp_state_machine): Delete. | |
15287 | (lnp_state_machine::lnp_state_machine): New. | |
15288 | (check_line_address): Rename to ... | |
15289 | (lnp_state_machine::check_line_address): This. | |
15290 | (dwarf_decode_lines_1): Remove reference to "reader_state". | |
15291 | Adjust lnp_state_machine having a non-default ctor. Use bool. | |
15292 | State machine internal state manipulation moved to | |
15293 | lnp_state_machine methods. | |
15294 | ||
9c541725 PA |
15295 | 2017-04-04 Pedro Alves <palves@redhat.com> |
15296 | ||
15297 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
15298 | unittests/offset-type-selftests.c. | |
15299 | (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o. | |
15300 | * common/offset-type.h: New file. | |
15301 | * common/preprocessor.h: New file. | |
15302 | * common/traits.h: New file. | |
15303 | * common/valid-expr.h: New file. | |
15304 | * dwarf2expr.c: Include "common/underlying.h". Adjust to use | |
15305 | sect_offset and cu_offset strong typedefs throughout. | |
15306 | * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong | |
15307 | typedefs throughout. | |
15308 | * dwarf2loc.c: Include "common/underlying.h". Adjust to use | |
15309 | sect_offset and cu_offset strong typedefs throughout. | |
15310 | * dwarf2read.c: Adjust to use sect_offset and cu_offset strong | |
15311 | typedefs throughout. | |
15312 | * gdbtypes.h: Include "common/offset-type.h". | |
15313 | (cu_offset): Now an offset type (strong typedef) instead of a | |
15314 | struct. | |
15315 | (sect_offset): Likewise. | |
15316 | (union call_site_parameter_u): Rename "param_offset" field to | |
15317 | "param_cu_off". | |
15318 | * unittests/offset-type-selftests.c: New file. | |
15319 | ||
ecfb656c PA |
15320 | 2017-04-04 Pedro Alves <palves@redhat.com> |
15321 | ||
15322 | * common/underlying.h: New file. | |
15323 | * dwarf2read.c: Include "common/gdb_optional.h" and | |
15324 | "common/underlying.h". | |
15325 | (dir_index, file_name_index): New types. | |
15326 | (file_entry): Use them. | |
15327 | (file_entry::include): Use to_underlying. | |
15328 | (line_header::add_file_name): Use dir_index. | |
15329 | (read_formatted_entries): Use gdb::optional. Read form before | |
15330 | writting to file_entry. | |
15331 | (dwarf_decode_line_header): Use dir_index. | |
15332 | (lnp_state_machine::current_file): Use to_underlying. | |
15333 | (lnp_state_machine::file): Change type to file_name_index. | |
15334 | (dwarf_record_line): Use to_underlying. | |
15335 | (init_lnp_state_machine): Use file_name_index. | |
15336 | (dwarf_decode_lines_1): Use dir_index and file_name_index. | |
15337 | ||
d194f1fe PA |
15338 | 2017-04-04 Pedro Alves <palves@redhat.com> |
15339 | ||
15340 | * common/gdb_optional.h (gdb::optiona): Add operator->, operator*, | |
15341 | operator bool, has_value and get methods. | |
15342 | ||
fff8551c PA |
15343 | 2017-04-04 Pedro Alves <palves@redhat.com> |
15344 | ||
15345 | * dwarf2read.c (struct file_entry): Add ctors, and initialize all | |
15346 | fields. | |
15347 | (line_header): Initialize all data fields. Change type of | |
15348 | standard_opcode_lengths to std::unique_ptr<unsigned char[]>. | |
15349 | Change type of include_dirs to std::vector<const char *>. Remove | |
15350 | num_include_dirs, include_dirs_size. Change type of file_names to | |
15351 | std::vector<file_entry>. Remove num_file_names, file_names_size. | |
15352 | (line_header::line_header): New. | |
15353 | (line_header::add_include_dir, line_header::add_file_name): New | |
15354 | methods. | |
15355 | (line_header::include_dir_at): Remove NULL check. | |
15356 | (line_header::file_name_at): Add const overload. | |
15357 | (line_header_up): New unique_ptr typedef. | |
15358 | (dw2_get_file_names_reader): Use line_header_up. Adjust to use | |
15359 | std::vector. Remove free_line_header call. | |
15360 | (dwarf2_build_include_psymtabs): Use line_header_up. Remove | |
15361 | free_line_header call. | |
15362 | (free_cu_line_header): Delete. | |
15363 | (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list) | |
15364 | (setup_type_unit_groups): Use line_header_up instead of cleanups. | |
15365 | Adjust to use std::vector. | |
15366 | (free_line_header): Delete. | |
15367 | (free_line_header_voidp): Use delete. | |
15368 | (add_include_dir): Replace with ... | |
15369 | (line_header::add_include_dir): ... this method. Use std::vector. | |
15370 | (add_file_name): Replace with ... | |
15371 | (line_header::add_file_name): ... this method. Use std::vector. | |
15372 | (add_include_dir_stub): Delete. | |
15373 | (read_formatted_entries): Remove memset. | |
15374 | (dwarf_decode_line_header): Return a line_header_up instead of a | |
15375 | raw pointer. Remove cleanup handling. Pass lambdas to | |
15376 | read_formatted_entries. Adjust to use line_header methods. | |
15377 | (dwarf_decode_lines_1): Adjust to use line_header methods. | |
15378 | (dwarf_decode_lines, file_file_name, file_full_name): Adjust to | |
15379 | use std::vector. | |
15380 | ||
d62a8ae2 SM |
15381 | 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca> |
15382 | ||
15383 | * remote.c (set_general_thread, set_continue_thread): Use ptid_t | |
15384 | instead of struct ptid. | |
15385 | ||
db3a1dc7 AH |
15386 | 2017-05-04 Alan Hayward <alan.hayward@arm.com> |
15387 | ||
15388 | * frame.c (get_frame_register_bytes): Unwind using value. | |
15389 | (put_frame_register_bytes): Likewise. | |
15390 | ||
b1b45502 IB |
15391 | 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org> |
15392 | ||
15393 | * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being | |
15394 | aggregate-like. | |
15395 | ||
ec13808e JK |
15396 | 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
15397 | ||
15398 | * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS. | |
15399 | ||
12316564 YQ |
15400 | 2017-03-29 Yao Qi <yao.qi@linaro.org> |
15401 | ||
15402 | * gdbthread.h (struct thread_info): Declare constructor and | |
15403 | destructor. Add some in-class member initializers. | |
15404 | * thread.c (free_thread): Remove. | |
15405 | (init_thread_list): Call delete instead of free_thread. | |
15406 | (new_thread): Call thread_info constructor. | |
15407 | (thread_info::thread_info): New function. | |
15408 | (thread_info::~thread_info): New function. | |
15409 | (delete_thread_1): Call delete instead of free_thread. | |
15410 | (make_cleanup_restore_current_thread): Move tp and frame to | |
15411 | inner block. | |
15412 | ||
fe5f7374 AK |
15413 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
15414 | ||
15415 | * arc-tdep.c (arc_frame_cache): Add support for prologue analysis. | |
15416 | (arc_skip_prologue): Likewise. | |
15417 | (arc_make_frame_cache): Likewise. | |
15418 | (arc_pv_get_operand): New function. | |
15419 | (arc_is_in_prologue): Likewise. | |
15420 | (arc_analyze_prologue): Likewise. | |
15421 | (arc_print_frame_cache): Likewise. | |
15422 | (MAX_PROLOGUE_LENGTH): New constant. | |
15423 | ||
eea78757 AK |
15424 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
15425 | ||
15426 | * configure.tgt: Add arc-insn.o. | |
15427 | * arc-tdep.c (arc_delayed_print_insn): Make non-static. | |
15428 | (dump_arc_instruction_command): New function. | |
15429 | (arc_fprintf_disasm): Likewise. | |
15430 | (arc_disassemble_info): Likewise. | |
15431 | (arc_insn_get_operand_value): Likewise. | |
15432 | (arc_insn_get_operand_value_signed): Likewise. | |
15433 | (arc_insn_get_memory_base_reg): Likewise. | |
15434 | (arc_insn_get_memory_offset): Likewise. | |
15435 | (arc_insn_get_branch_target): Likewise. | |
15436 | (arc_insn_dump): Likewise. | |
15437 | (arc_insn_get_linear_next_pc): Likewise. | |
15438 | * arc-tdep.h (arc_delayed_print_insn): Add function declaration. | |
15439 | (arc_disassemble_info): Likewise. | |
15440 | (arc_insn_get_branch_target): Likewise. | |
15441 | (arc_insn_get_linear_next_pc): Likewise. | |
15442 | * NEWS: Mention new "maint print arc arc-instruction". | |
15443 | ||
3be78afd AK |
15444 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
15445 | ||
15446 | * arc-tdep (maintenance_print_arc_list): New variable. | |
15447 | (maintenance_print_arc_command): New function. | |
15448 | ||
296ec4fa AK |
15449 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
15450 | ||
15451 | * arc-tdep.c (core_v2_register_names, core_arcompact_register_names) | |
15452 | Add "limm" and "reserved". | |
15453 | (arc_cannot_fetch_register, arc_cannot_store_register): Add | |
15454 | ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM. | |
15455 | * arc-tdep.h (arc_regnum): Likewise. | |
15456 | ||
f74f865e MF |
15457 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
15458 | ||
15459 | * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect | |
15460 | for THREADPTR register. | |
15461 | (supply_gregset_reg): Call regcache_raw_supply for THREADPTR | |
15462 | register. | |
15463 | * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition. | |
15464 | (xtensa_derive_tdep): Initialize tdep->threadptr_regnum. | |
15465 | * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field. | |
15466 | ||
0d0bf81a MF |
15467 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
15468 | ||
15469 | * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all | |
15470 | registers above gdbarch_num_regs (gdbarch) as privileged in | |
15471 | call0 ABI. | |
15472 | ||
0ce4291e MF |
15473 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
15474 | ||
15475 | * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect | |
15476 | for a single specified register or for all registers in | |
15477 | a0_base..a0_base + C0_NREGS range. | |
15478 | (supply_gregset_reg): Call regcache_raw_supply for a single | |
15479 | specified register or for all registers in a0_base..a0_base + | |
15480 | C0_NREGS range. | |
15481 | ||
c56054f9 MF |
15482 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
15483 | ||
15484 | * arch/xtensa.h (C0_NREGS): Add definition. | |
15485 | * xtensa-tdep.c (C0_NREGS): Remove definition. | |
15486 | ||
a4398628 MF |
15487 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
15488 | ||
15489 | * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue): | |
15490 | Drop xtensa_default_isa initialization. | |
15491 | (xtensa_gdbarch_init): Initialize xtensa_default_isa. | |
15492 | ||
8c43009f PA |
15493 | 2017-03-27 Pedro Alves <palves@redhat.com> |
15494 | ||
15495 | * dwarf2read.c (file_entry) <dir_index>: Add comment. | |
15496 | (file_entry::include_dir): New method. | |
15497 | (line_header::include_dir_at, line_header::file_name_at): New | |
15498 | methods. | |
15499 | (setup_type_unit_groups, setup_type_unit_groups) | |
15500 | (psymtab_include_file_name): Simplify using the new methods. | |
15501 | (lnp_state_machine) <the_line_header>: New field. | |
15502 | <file>: Add comment. | |
15503 | (lnp_state_machine::current_file): New method. | |
15504 | (dwarf_record_line): Simplify using the new methods. | |
15505 | (init_lnp_state_machine): Initialize the "the_line_header" field. | |
15506 | (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name): | |
15507 | Simplify using the new methods. | |
15508 | ||
a7e80b9e PA |
15509 | 2017-03-27 Pedro Alves <palves@redhat.com> |
15510 | ||
15511 | * cp-name-parser.y (make_empty): Delete. | |
15512 | (demangler_special, nested_name, ptr_operator, array_indicator) | |
15513 | (direct_declarator, declarator_1): Use fill_comp instead of | |
15514 | make_empty. | |
15515 | ||
21047726 PA |
15516 | 2017-03-27 Pedro Alves <palves@redhat.com> |
15517 | ||
15518 | * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument | |
15519 | to ATTRIBUTE_PRINTF. | |
15520 | * solib-target.c (library_list_start_list): Print "string" not | |
15521 | "version". | |
15522 | * xml-tdesc.c (tdesc_start_field): Pass "field_name" to | |
15523 | gdb_xml_error call. | |
15524 | ||
d721ba37 PA |
15525 | 2017-03-27 Pedro Alves <palves@redhat.com> |
15526 | ||
15527 | * dwarf2read.c (struct file_and_directory): New. | |
15528 | (dwarf2_get_dwz_file): Adjust to use std::string. | |
15529 | (dw2_get_file_names_reader): Adjust to use file_and_directory. | |
15530 | (find_file_and_directory): Adjust to return a file_and_directory | |
15531 | object. | |
15532 | (read_file_scope): Adjust to use file_and_directory. Remove | |
15533 | make_cleanup/do_cleanups calls. | |
15534 | (open_and_init_dwp_file): Adjust to use std::string. Remove | |
15535 | make_cleanup/do_cleanups calls. | |
15536 | * python/python.c (do_start_initialization): Adjust to ldirname | |
15537 | returning a std::string. | |
15538 | * utils.c (ldirname): Now returns a std::string. | |
15539 | * utils.h (ldirname): Change return type to std::string. | |
15540 | * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname | |
15541 | returning a std::string. | |
15542 | * xml-tdesc.c (file_read_description_xml): Likewise. | |
15543 | ||
ed771251 AH |
15544 | 2017-03-24 Alan Hayward <alan.hayward@arm.com> |
15545 | ||
15546 | * regcache.c (regcache_debug_print_register): New function. | |
15547 | * regcache.h (regcache_debug_print_register): New declaration. | |
15548 | * target.c (debug_print_register): Remove. | |
15549 | (target_fetch_registers): Call regcache_debug_print_register. | |
15550 | (target_store_registers): Likewise. | |
15551 | ||
568c1b9f PB |
15552 | 2017-03-24 Pádraig Brady <pbrady@fb.com> |
15553 | ||
15554 | * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't | |
15555 | reference beyond the 'lh->include_dirs' array before accessing to | |
15556 | it. | |
15557 | (psymtab_include_file_name): Likewise. | |
15558 | (dwarf_decode_lines_1): Likewise. | |
15559 | (dwarf_decode_lines): Likewise. | |
15560 | (file_file_name): Likewise. | |
15561 | ||
3e00d44f SM |
15562 | 2017-03-23 Simon Marchi <simon.marchi@ericsson.com> |
15563 | ||
15564 | * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore | |
15565 | inferior_ptid. | |
15566 | * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, | |
15567 | ps_lsetfpregs): Likewise. | |
15568 | * regcache.c (regcache_raw_update, regcache_raw_write): Likewise. | |
15569 | * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, | |
15570 | ps_lsetfpregs): Likewise. | |
15571 | * target.c (target_fetch_registers, target_store_registers): | |
15572 | Remove asserts. | |
15573 | ||
077ae656 AH |
15574 | 2017-03-23 Alan Hayward <alan.hayward@arm.com> |
15575 | ||
15576 | * sol-thread.c (sol_thread_store_registers): Remove regcache calls. | |
15577 | ||
1e2b521d YQ |
15578 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
15579 | ||
15580 | * aarch64-tdep.c (aarch64_process_record_test): Declare. | |
15581 | (_initialize_aarch64_tdep): Register it. | |
15582 | (aarch64_record_load_store): Handle PRFM instruction. | |
15583 | (aarch64_process_record_test): New function. | |
15584 | ||
33877125 YQ |
15585 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
15586 | ||
15587 | * aarch64-tdep.c (aarch64_record_load_store): Fix code | |
15588 | indentation. | |
15589 | ||
a0eef940 YQ |
15590 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
15591 | ||
15592 | * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE. | |
15593 | ||
3f2a3564 PR |
15594 | 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
15595 | ||
15596 | python/python.c (do_start_initialization): Fix memory leak. | |
15597 | ||
b67aeab0 SM |
15598 | 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca> |
15599 | ||
15600 | * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid | |
15601 | using get_ptrace_pid. | |
15602 | * linux-nat.c (linux_nat_xfer_partial): Don't set/restore | |
15603 | inferior_ptid. | |
15604 | (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of | |
15605 | inferior_ptid instead of pid. | |
15606 | ||
ffdbe864 YQ |
15607 | 2017-03-22 Yao Qi <yao.qi@linaro.org> |
15608 | ||
15609 | * aarch64-tdep.c: Wrap locally used classes in anonymous | |
15610 | namespace. | |
15611 | * arm-tdep.c: Likewise. | |
15612 | * linespec.c: Likewise. | |
15613 | * ui-out.c: Likewise. | |
15614 | ||
9d736fbf JG |
15615 | 2017-03-22 Jonah Graham <jonah@kichwacoders.com> |
15616 | ||
15617 | PR gdb/19637 | |
15618 | * python/lib/gdb/printer/bound_registers.py: Import sys. | |
15619 | ||
3de88e9a SM |
15620 | 2017-03-21 Simon Marchi <simon.marchi@ericsson.com> |
15621 | ||
15622 | * windows-nat.c (do_windows_fetch_inferior_registers): Add | |
15623 | windows_thread_info parameter and use it instead of | |
15624 | current_thread. | |
15625 | (windows_fetch_inferior_registers): Don't set current_thread, | |
15626 | pass the thread to do_windows_fetch_inferior_registers. Use | |
15627 | ptid from regcache instead of inferior_ptid. | |
15628 | (do_windows_store_inferior_registers): Add windows_thread_info | |
15629 | parameter and use it instead of current_thread. | |
15630 | (windows_store_inferior_registers): Don't set current_thread, | |
15631 | pass the thread to do_windows_store_inferior_registers. Use | |
15632 | ptid from regcache instead of inferior_ptid. | |
15633 | ||
0e7b8f61 SM |
15634 | 2017-03-21 Simon Marchi <simon.marchi@ericsson.com> |
15635 | ||
15636 | * ser-mingw.c (ser_windows_raw): Remove reference to | |
15637 | struct serial::current_timeout. | |
15638 | ||
5badf10a IR |
15639 | 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com> |
15640 | ||
15641 | PR tdep/20928 | |
15642 | * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field. | |
15643 | * gdb/sparc64-tdep.c (sparc64_ccr_type): New function. | |
15644 | (sparc64_fsr_type): Fix %fsr decoding. | |
15645 | ||
cee59b3f TW |
15646 | 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com> |
15647 | ||
15648 | * python/py-record-btrace.c (btpy_insn_data): Change return type | |
15649 | for Python 2. | |
15650 | ||
639a9038 SM |
15651 | 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca> |
15652 | ||
15653 | * spu-linux-nat.c (spu_fetch_inferior_registers, | |
15654 | spu_store_inferior_registers): Use ptid from regcache, set and | |
15655 | restore inferior_ptid. | |
15656 | * spu-multiarch.c (spu_fetch_registers, spu_store_registers): | |
15657 | Likewise. | |
15658 | ||
bcc0c096 SM |
15659 | 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca> |
15660 | ||
15661 | * i386-linux-nat.c (fetch_register, store_register, | |
15662 | i386_linux_fetch_inferior_registers, | |
15663 | i386_linux_store_inferior_registers): Use ptid from regcache. | |
15664 | * ia64-linux-nat.c (ia64_linux_fetch_register, | |
15665 | ia64_linux_store_register): Likewise. | |
15666 | * inf-ptrace.c (inf_ptrace_fetch_register, | |
15667 | inf_ptrace_store_register): Likewise. | |
15668 | * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers, | |
15669 | m32r_linux_store_inferior_registers): Likewise. | |
15670 | * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers, | |
15671 | m68kbsd_store_inferior_registers): Likewise. | |
15672 | * m68k-linux-nat.c (fetch_register, store_register, | |
15673 | m68k_linux_fetch_inferior_registers, | |
15674 | m68k_linux_store_inferior_registers): Likewise. | |
15675 | * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers, | |
15676 | m88kbsd_store_inferior_registers): Likewise. | |
15677 | * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers, | |
15678 | mips_fbsd_store_inferior_registers): Likewise. | |
15679 | * mips-linux-nat.c (mips64_linux_regsets_fetch_registers, | |
15680 | mips64_linux_regsets_store_registers): Likewise. | |
15681 | * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers, | |
15682 | mipsnbsd_store_inferior_registers): Likewise. | |
15683 | * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers, | |
15684 | mips64obsd_store_inferior_registers): Likewise. | |
15685 | * nto-procfs.c (procfs_fetch_registers, procfs_store_registers): | |
15686 | Likewise. | |
15687 | * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers, | |
15688 | ppcfbsd_store_inferior_registers): Likewise. | |
15689 | * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers, | |
15690 | ppc_linux_store_inferior_registers): Likewise. | |
15691 | * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers, | |
15692 | ppcnbsd_store_inferior_registers): Likewise. | |
15693 | * ppc-obsd-nat.c (ppcobsd_fetch_registers, | |
15694 | ppcobsd_store_registers): Likewise. | |
15695 | * procfs.c (procfs_fetch_registers, procfs_store_registers): | |
15696 | Likewise. | |
15697 | * ravenscar-thread.c (ravenscar_fetch_registers, | |
15698 | ravenscar_store_registers, ravenscar_prepare_to_store): | |
15699 | Likewise. | |
15700 | * record-btrace.c (record_btrace_fetch_registers, | |
15701 | record_btrace_store_registers, record_btrace_prepare_to_store): | |
15702 | Likewise. | |
15703 | * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): | |
15704 | Lookup inferior using ptid from regcache, instead of | |
15705 | current_inferior. | |
15706 | * remote.c (remote_fetch_registers, remote_store_registers): Use | |
15707 | ptid from regcache. | |
15708 | * rs6000-nat.c (fetch_register, store_register): Likewise. | |
15709 | * s390-linux-nat.c (s390_linux_fetch_inferior_registers, | |
15710 | s390_linux_store_inferior_registers): Likewise. | |
15711 | * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers, | |
15712 | shnbsd_store_inferior_registers): Likewise. | |
15713 | * sol-thread.c (sol_thread_fetch_registers, | |
15714 | sol_thread_store_registers): Likewise. | |
15715 | * sparc-nat.c (sparc_fetch_inferior_registers, | |
15716 | sparc_store_inferior_registers): Likewise. | |
15717 | * tilegx-linux-nat.c (fetch_inferior_registers, | |
15718 | store_inferior_registers): Likewise. | |
15719 | * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers, | |
15720 | vaxbsd_store_inferior_registers): Likewise. | |
15721 | * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs, | |
15722 | store_xtregs): Likewise. | |
15723 | ||
c0f55cc6 AV |
15724 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
15725 | ||
15726 | PR gdb/14441 | |
15727 | * NEWS: Mention support for rvalue references in GDB and python. | |
15728 | * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB | |
15729 | supports both lvalue and rvalue references. | |
15730 | ||
15c0a2a9 AV |
15731 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
15732 | ||
15733 | PR gdb/14441 | |
15734 | * gdbtypes.c (rank_one_type): Implement overloading | |
15735 | resolution rules regarding rvalue references. | |
15736 | ||
aa006118 AV |
15737 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
15738 | ||
15739 | PR gdb/14441 | |
15740 | * aarch64-tdep.c (aarch64_type_align) | |
15741 | (aarch64_extract_return_value, aarch64_store_return_value): Change | |
15742 | lvalue reference type checks to general reference type checks. | |
15743 | * amd64-tdep.c (amd64_classify): Likewise. | |
15744 | * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register): | |
15745 | Likewise. | |
15746 | * arm-tdep.c (arm_type_align, arm_extract_return_value) | |
15747 | (arm_store_return_value): Likewise. | |
15748 | * ax-gdb.c (gen_fetch, gen_cast): Likewise. | |
15749 | * c-typeprint.c (c_print_type): Likewise. | |
15750 | * c-varobj.c (adjust_value_for_child_access, c_value_of_variable) | |
15751 | (cplus_number_of_children, cplus_describe_child): Likewise. | |
15752 | * compile/compile-c-symbols.c (generate_vla_size): Likewise. | |
15753 | * completer.c (expression_completer): Likewise. | |
15754 | * cp-support.c (make_symbol_overload_list_adl_namespace): | |
15755 | Likewise. | |
15756 | * darwin-nat-info.c (info_mach_region_command): Likewise. | |
15757 | * dwarf2loc.c (entry_data_value_coerce_ref) | |
15758 | (value_of_dwarf_reg_entry): Likewise. | |
15759 | * eval.c (ptrmath_type_p, evaluate_subexp_standard) | |
15760 | (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): | |
15761 | Likewise. | |
15762 | * findvar.c (extract_typed_address, store_typed_address): | |
15763 | Likewise. | |
15764 | * gdbtypes.c (rank_one_type): Likewise. | |
15765 | * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise. | |
15766 | * infcall.c (value_arg_coerce): Likewise. | |
15767 | * language.c (pointer_type): Likewise. | |
15768 | * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer): | |
15769 | Likewise. | |
15770 | * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise. | |
15771 | * mn10300-tdep.c (mn10300_type_align): Likewise. | |
15772 | * msp430-tdep.c (msp430_push_dummy_call): Likewise. | |
15773 | * ppc-sysv-tdep.c (do_ppc_sysv_return_value) | |
15774 | (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value): | |
15775 | Likewise. | |
15776 | * printcmd.c (print_formatted, x_command): Likewise. | |
15777 | * python/py-type.c (typy_get_composite, typy_template_argument): | |
15778 | Likewise. | |
15779 | * python/py-value.c (valpy_referenced_value) | |
15780 | (valpy_get_dynamic_type, value_has_field): Likewise. | |
15781 | * s390-linux-tdep.c (s390_function_arg_integer): Likewise. | |
15782 | * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise. | |
15783 | * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise. | |
15784 | * spu-tdep.c (spu_scalar_value_p): Likewise. | |
15785 | * symtab.c (lookup_symbol_aux): Likewise. | |
15786 | * typeprint.c (whatis_exp, print_type_scalar): Likewise. | |
15787 | * valarith.c (binop_types_user_defined_p, unop_user_defined_p): | |
15788 | Likewise. | |
15789 | * valops.c (value_cast_pointers, value_cast) | |
15790 | (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp) | |
15791 | (value_struct_elt, value_struct_elt_bitpos) | |
15792 | (value_find_oload_method_list, find_overload_match) | |
15793 | (value_rtti_indirect_type): Likewise. | |
15794 | * valprint.c (val_print_scalar_type_p, generic_val_print): | |
15795 | Likewise. | |
15796 | * value.c (value_actual_type, value_as_address, unpack_long) | |
15797 | (pack_long, pack_unsigned_long, coerce_ref_if_computed) | |
15798 | (coerce_ref): Likewise. | |
15799 | * varobj.c (varobj_get_value_type): Likewise. | |
15800 | ||
3fcf899d AV |
15801 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
15802 | ||
15803 | PR gdb/14441 | |
15804 | * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to | |
15805 | table of constants. | |
15806 | * python/lib/gdb/command/explore.py: Support exploring values | |
15807 | of rvalue reference types. | |
15808 | * python/lib/gdb/types.py: Implement get_basic_type() for | |
15809 | rvalue reference types. | |
15810 | * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New | |
15811 | constant. | |
15812 | * python/py-value.c (valpy_getitem): Add an rvalue reference | |
15813 | check. | |
15814 | (valpy_reference_value): Add new parameter "refcode". | |
15815 | (valpy_lvalue_reference_value, valpy_rvalue_reference_value): | |
15816 | New wrappers for valpy_reference_value(). | |
15817 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type) | |
15818 | (gdbpy_invoke_xmethod): Likewise. | |
15819 | ||
4297a3f0 AV |
15820 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
15821 | ||
15822 | PR gdb/14441 | |
15823 | * dwarf2read.c (process_die, read_type_die_1): Handle the | |
15824 | DW_TAG_rvalue_reference_type DIE. | |
15825 | (read_tag_reference_type): Add new parameter "refcode". | |
15826 | ||
e1cb3213 AV |
15827 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
15828 | ||
15829 | PR gdb/14441 | |
15830 | * c-typeprint.c (c_print_type, c_type_print_varspec_prefix) | |
15831 | (c_type_print_modifier, c_type_print_varspec_suffix) | |
15832 | (c_type_print_base): Support printing rvalue reference types. | |
15833 | * c-valprint.c (c_val_print, c_value_print): Support printing | |
15834 | rvalue reference values. | |
15835 | ||
e4347c89 AV |
15836 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
15837 | ||
15838 | PR gdb/14441 | |
15839 | * cp-name-parser.y (ptr_operator): Handle the '&&' token in | |
15840 | typename. | |
15841 | * cp-support.c (replace_typedefs): Handle | |
15842 | DEMANGLE_COMPONENT_RVALUE_REFERENCE. | |
15843 | * python/py-type.c (typy_lookup_type): Likewise. | |
15844 | ||
53cc15f5 AV |
15845 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
15846 | ||
15847 | PR gdb/14441 | |
15848 | * c-exp.y (ptr_operator): Handle the '&&' token in the typename. | |
15849 | * parse.c (insert_type): Change assert statement. | |
15850 | (follow_types): Handle rvalue reference types. | |
15851 | * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New | |
15852 | constant. | |
15853 | ||
a65cfae5 AV |
15854 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
15855 | ||
15856 | PR gdb/14441 | |
15857 | * ada-lang.c (ada_evaluate_subexp): Adhere to the new | |
15858 | value_ref() interface. | |
15859 | * c-valprint.c (c_value_print): Likewise. | |
15860 | * infcall.c (value_arg_coerce): Likewise. | |
15861 | * python/py-value.c (valpy_reference_value): Likewise. | |
15862 | * valops.c (value_cast, value_reinterpret_cast) | |
15863 | (value_dynamic_cast, typecmp): Likewise. | |
15864 | (value_ref): Parameterize by kind of return value reference type. | |
15865 | * value.h (value_ref): Add new parameter "refcode". | |
15866 | ||
3b224330 AV |
15867 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
15868 | ||
15869 | PR gdb/14441 | |
15870 | * dwarf2read.c (read_tag_reference_type): Use | |
15871 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
15872 | * eval.c (evaluate_subexp_standard): Likewise. | |
15873 | * f-exp.y: Likewise. | |
15874 | * gdbtypes.c (make_reference_type, lookup_reference_type): | |
15875 | Generalize with rvalue reference types. | |
15876 | (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New | |
15877 | convenience wrappers for lookup_reference_type(). | |
15878 | * gdbtypes.h (make_reference_type, lookup_reference_type): Add a | |
15879 | reference kind parameter. | |
15880 | (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add | |
15881 | wrappers for lookup_reference_type(). | |
15882 | * guile/scm-type.c (gdbscm_type_reference): Use | |
15883 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
15884 | * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise. | |
15885 | * parse.c (follow_types): Likewise. | |
15886 | * python/py-type.c (typy_reference, typy_lookup_type): Likewise. | |
15887 | * python/py-value.c (valpy_get_dynamic_type, valpy_getitem): | |
15888 | Likewise. | |
15889 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type) | |
15890 | (gdbpy_invoke_xmethod): Likewise. | |
15891 | * stabsread.c: Provide extra argument to make_reference_type() | |
15892 | call. | |
15893 | * valops.c (value_ref, value_rtti_indirect_type): Use | |
15894 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
15895 | ||
f9aeb8d4 AV |
15896 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
15897 | ||
15898 | PR gdb/14441 | |
15899 | * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant. | |
15900 | (TYPE_IS_REFERENCE): New macro. | |
15901 | (struct type): Add rvalue_reference_type field. | |
15902 | (TYPE_RVALUE_REFERENCE_TYPE): New macro. | |
15903 | ||
51457a05 MAL |
15904 | 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com> |
15905 | ||
15906 | * NEWS: Add an entry about new '-file-list-shared-libraries' command. | |
15907 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): | |
15908 | New function definition. | |
15909 | * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command. | |
15910 | * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries): | |
15911 | New function declaration. | |
15912 | * mi/mi-interp.c (mi_output_solib_attribs): New Function. | |
15913 | * mi/mi-interp.h: New file. | |
15914 | * solib.c (info_sharedlibrary_command): Replace for loop with | |
15915 | ALL_SO_LIBS macro | |
15916 | * solib.h (update_solib_list): New function declaration. | |
15917 | (so_list_head): Move macro. | |
15918 | * solist.h (ALL_SO_LIBS): New macro. | |
15919 | ||
e696b3ad MAL |
15920 | 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com> |
15921 | ||
15922 | * infcmd.c (post_create_inferior): Remove unused argument in | |
15923 | call to solib_add. | |
15924 | * remote.c (remote_start_remote): Likewise. | |
15925 | * solib-frv.c (frv_fetch_objfile_link_map): Likewise. | |
15926 | * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise. | |
15927 | (enable_break): Likewise. | |
15928 | * solib.c (update_solib_list): Remove unused target argument | |
15929 | and its documentation. | |
15930 | (solib_add): Remove unused target argument. Remove unused | |
15931 | argument in call to update_solib_list. | |
15932 | (info_sharedlibrary_command): Remove unused argument in call | |
15933 | to update_solib_list. | |
15934 | (sharedlibrary_command): Remove unused argument in call to | |
15935 | solib_add. | |
15936 | (handle_solib_event): Likewise. | |
15937 | (reload_shared_libraries): Likewise. | |
15938 | * solib.h (solib_add): Remove unused target argument. | |
15939 | ||
dcb84eda AA |
15940 | 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com> |
15941 | ||
15942 | * s390-linux-tdep.c (is_rsi, is_rie): Remove functions. | |
15943 | (s390_displaced_step_fixup): Cover relative branches with the | |
15944 | default fixup handling. This fixes lack of support for some | |
15945 | relative branch instructions. | |
15946 | ||
d9cb6cdc SM |
15947 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
15948 | ||
15949 | * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use | |
15950 | ptid from regcache. | |
15951 | ||
1afaf9f4 SM |
15952 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
15953 | ||
15954 | * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers, | |
15955 | i386_darwin_store_inferior_registers): Use ptid from regcache. | |
15956 | ||
aac12e24 SM |
15957 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
15958 | ||
15959 | * i386-bsd-nat.c (i386bsd_fetch_inferior_registers, | |
15960 | i386bsd_store_inferior_registers): Use ptid from regcache. | |
15961 | ||
bbe1eef1 SM |
15962 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
15963 | ||
15964 | * hppa-obsd-nat.c (hppaobsd_fetch_registers, | |
15965 | hppaobsd_store_registers): Use ptid from regcache. | |
15966 | ||
10799020 SM |
15967 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
15968 | ||
15969 | * hppa-nbsd-nat.c (hppanbsd_fetch_registers, | |
15970 | hppanbsd_store_registers): Use ptid from regcache. | |
15971 | ||
00204cf7 SM |
15972 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
15973 | ||
15974 | * hppa-linux-nat.c (fetch_register, store_register): Use ptid | |
15975 | from regcache. Use get_ptrace_pid. | |
15976 | ||
11a33714 SM |
15977 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
15978 | ||
15979 | * corelow.c (get_core_register_section): Use ptid from regcache, | |
15980 | update doc. | |
15981 | ||
317cd492 SM |
15982 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
15983 | ||
15984 | * bsd-uthread.c (bsd_uthread_fetch_registers, | |
15985 | bsd_uthread_store_registers): Use ptid from regcache, set and | |
15986 | restore inferior_ptid. | |
15987 | ||
9ac8a7c2 SM |
15988 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
15989 | ||
15990 | * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register, | |
15991 | fetch_fp_regs, store_register, store_regs, store_fp_register, | |
15992 | store_fp_regs): Use ptid from regcache. | |
15993 | ||
4ac4bb6a SM |
15994 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
15995 | ||
15996 | * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs, | |
15997 | store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs, | |
15998 | store_vfp_regs): Use ptid from regcache. | |
15999 | ||
9bcbdca8 PA |
16000 | 2017-03-17 Pedro Alves <palves@redhat.com> |
16001 | ||
16002 | PR remote/21188 | |
16003 | * ser-base.c (ser_base_wait_for): Add comment. | |
16004 | (do_ser_base_readchar): Improve comment based on the ser-unix.c's | |
16005 | version. | |
16006 | * ser-unix.c (hardwire_raw): Remove reference to | |
16007 | scb->current_timeout. | |
16008 | (wait_for, do_hardwire_readchar, hardwire_readchar): Delete. | |
16009 | (hardwire_ops): Install ser_base_readchar instead of | |
16010 | hardwire_readchar. | |
16011 | * serial.h (struct serial) <current_timeout, timeout_remaining>: | |
16012 | Remove fields. | |
16013 | ||
7503099f JG |
16014 | 2017-03-17 Jonah Graham <jonah@kichwacoders.com> |
16015 | ||
16016 | PR gdb/19637 | |
16017 | * python/lib/gdb/printer/bound_registers.py: Add support for | |
16018 | Python 3. | |
16019 | ||
7942e96e AA |
16020 | 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com> |
16021 | ||
16022 | * dwarf2loc.c (indirect_synthetic_pointer): Get data type of | |
16023 | pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full. | |
16024 | (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename | |
16025 | byte_offset to subobj_byte_offset. Fix the handling of | |
16026 | DWARF_VALUE_STACK on big-endian targets when coming via an | |
16027 | implicit pointer. | |
16028 | (dwarf2_evaluate_loc_desc): Adjust call to | |
16029 | dwarf2_evaluate_loc_desc_full. | |
16030 | * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration. | |
16031 | * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function. | |
16032 | ||
ba14f379 YQ |
16033 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
16034 | ||
16035 | * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16, | |
16036 | and REVSH instructions. | |
16037 | ||
b121eeb9 YQ |
16038 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
16039 | ||
16040 | * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h". | |
16041 | (arm_record_test): Declare. | |
16042 | (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test. | |
16043 | (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to | |
16044 | align with the manual. | |
16045 | (thumb_record_misc): Adjust the code order to align with the | |
16046 | manual. | |
16047 | (thumb2_record_decode_insn_handler): Fix instruction matching. | |
16048 | (instruction_reader_thumb): New class. | |
16049 | (arm_record_test): New function. | |
16050 | ||
728a7913 YQ |
16051 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
16052 | ||
16053 | * arm-tdep.c (abstract_memory_reader): New class. | |
16054 | (instruction_reader): New class. | |
16055 | (extract_arm_insn): Add argument 'reader'. Callers updated. | |
16056 | (decode_insn): Likewise. | |
16057 | ||
34b43320 DE |
16058 | 2017-03-16 Doug Evans <dje@google.com> |
16059 | ||
a7c0469f DE |
16060 | * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH |
16061 | member. Change type of TYPE member to SCM. All uses updated. | |
16062 | (lsscm_make_lazy_string_smob): Add assert. | |
16063 | (lsscm_make_lazy_string): Flag bad length values. | |
16064 | (lsscm_elt_type): New function. | |
16065 | (gdbscm_lazy_string_to_value): Rewrite to use | |
16066 | lsscm_safe_lazy_string_to_value. | |
16067 | (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR. | |
16068 | * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length | |
16069 | values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs | |
16070 | in incoming type. | |
16071 | * guile/guile-internal.h (tyscm_scm_to_type): Declare. | |
16072 | * guile/scm-type.c (tyscm_scm_to_type): New function. | |
16073 | ||
16074 | 2017-03-15 Doug Evans <dje@google.com> | |
16075 | ||
34b43320 DE |
16076 | PR python/17728, python/18439, python/18779 |
16077 | * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH | |
16078 | member. Change type of TYPE member to PyObject *. All uses updated. | |
16079 | (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR. | |
16080 | (gdbpy_create_lazy_string_object): Flag bad length values. | |
16081 | Handle TYPE_CODE_ARRAY with possibly different user-provided length. | |
16082 | Handle typedefs in incoming type. | |
16083 | (stpy_lazy_string_elt_type): New function. | |
16084 | (gdbpy_extract_lazy_string): Call it. | |
16085 | * python/py-value.c (valpy_lazy_string): Flag bad length values. | |
16086 | Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle | |
16087 | typedefs in incoming type. | |
16088 | ||
a3a5fecc DE |
16089 | 2017-03-16 Doug Evans <dje@google.com> |
16090 | ||
16091 | * guile/guile-internal.h (tyscm_scm_to_type): Declare. | |
16092 | * guile/scm-type.c (tyscm_scm_to_type): New function. | |
16093 | ||
28f1c605 JW |
16094 | 2017-03-16 Jiong Wang <jiong.wang@arm.com> |
16095 | ||
16096 | * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to | |
16097 | "ULONGEST" for "skip". | |
16098 | ||
87c336f6 AA |
16099 | 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com> |
16100 | ||
16101 | PR gdb/21220 | |
16102 | * inf-ptrace.c (inf_ptrace_xfer_partial): In "case | |
16103 | TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke... | |
16104 | (inf_ptrace_peek_poke): ...here. New function. Now also loop | |
16105 | over ptrace peek/poke until end of buffer or error. | |
16106 | ||
cf81cf60 SM |
16107 | 2017-03-14 Simon Marchi <simon.marchi@ericsson.com> |
16108 | ||
16109 | * parse.c (length_of_subexp): Make static. | |
16110 | * parser-defs.h (length_of_subexp): Remove. | |
16111 | ||
a379284a AA |
16112 | 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com> |
16113 | ||
16114 | * linux-nat.c (linux_proc_xfer_partial): Handle write operations | |
16115 | as well. | |
16116 | ||
8a6200ba PA |
16117 | 2017-03-14 Pedro Alves <palves@redhat.com> |
16118 | ||
16119 | * cp-name-parser.y (cp_demangled_name_to_comp): Update comment. | |
16120 | (main): Use std::unique_ptr. Remove calls to | |
16121 | cp_demangled_name_parse_free. | |
16122 | ||
f79ec206 SM |
16123 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
16124 | ||
16125 | * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers, | |
16126 | alphabsd_store_inferior_registers): Use regcache->ptid instead | |
16127 | of inferior_ptid. | |
16128 | ||
edb5fb00 SM |
16129 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
16130 | ||
16131 | * aix-thread.c (aix_thread_fetch_registers, | |
16132 | aix_thread_store_registers): Use regcache->ptid instead of | |
16133 | inferior_ptid. | |
16134 | ||
55119686 SM |
16135 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
16136 | ||
16137 | * aarch64-linux-nat.c (fetch_gregs_from_thread, | |
16138 | store_gregs_to_thread, fetch_fpregs_from_thread, | |
16139 | store_fpregs_to_thread): Use regcache->ptid instead of | |
16140 | inferior_ptid. | |
16141 | ||
6a06fbb7 SM |
16142 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
16143 | ||
16144 | * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers, | |
16145 | amd64_linux_fetch_inferior_registers): Use regcache->ptid | |
16146 | instead of inferior_ptid. | |
16147 | ||
c6386875 SM |
16148 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
16149 | ||
16150 | * target.c (target_fetch_registers, target_store_registers): Add | |
16151 | assert. | |
16152 | ||
ddaaf0fb SM |
16153 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
16154 | ||
16155 | * regcache.h (regcache_get_ptid): New function. | |
16156 | * regcache.c (regcache_get_ptid): New function. | |
16157 | ||
b9da89d1 | 16158 | 2017-03-13 Mark Wielaard <mark@klomp.org> |
16159 | ||
16160 | * cp-name-parser.y (make_empty): Initialize d_printing to zero. | |
16161 | ||
5f4d1085 KS |
16162 | 2017-03-10 Keith Seitz <keiths@redhat.com> |
16163 | ||
16164 | PR c++/8218 | |
16165 | * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments. | |
16166 | ||
c65d6b55 PA |
16167 | 2017-03-08 Pedro Alves <palves@redhat.com> |
16168 | ||
16169 | PR gdb/18360 | |
16170 | * infrun.c (start_step_over, do_target_resume, resume) | |
16171 | (restart_threads): Assert we're not resuming a thread that is | |
16172 | meant to be stopped. | |
16173 | (infrun_thread_stop_requested_callback): Delete. | |
16174 | (infrun_thread_stop_requested): If the thread is internally | |
16175 | stopped, queue a pending stop event and clear the thread's | |
16176 | inline-frame state. | |
16177 | (handle_stop_requested): New function. | |
16178 | (handle_syscall_event, handle_inferior_event_1): Use | |
16179 | handle_stop_requested. | |
16180 | (handle_stop_requested): New function. | |
16181 | (handle_signal_stop): Set the thread's stop_signal here instead of | |
16182 | at caller. | |
16183 | (finish_step_over): Clear step over info unconditionally. | |
16184 | (handle_signal_stop): If the user had interrupted the event | |
16185 | thread, consider the stop a random signal. | |
16186 | (handle_signal_stop) <signal arrived while stepping over | |
16187 | breakpoint>: Don't restart threads here. | |
16188 | (stop_waiting): Don't clear step-over info here. | |
16189 | ||
15c22686 PA |
16190 | 2017-03-08 Pedro Alves <palves@redhat.com> |
16191 | ||
16192 | PR 21206 | |
16193 | * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull | |
16194 | goes to argument 2, not 1. | |
16195 | ||
6e5d74e7 PA |
16196 | 2017-03-08 Pedro Alves <palves@redhat.com> |
16197 | ||
16198 | PR cli/21218 | |
16199 | * top.c (gdb_readline_wrapper): Avoid passing NULL to | |
16200 | display_gdb_prompt. | |
16201 | (command_line_input): Add comment. | |
16202 | ||
9753a2f6 PA |
16203 | 2017-03-08 Pedro Alves <palves@redhat.com> |
16204 | ||
16205 | PR tui/21216 | |
16206 | * tui/tui-file.c (tui_file::write): New. | |
16207 | * tui/tui-file.h (tui_file): Override "write". | |
16208 | * tui/tui-io.c (do_tui_putc, update_start_line): New functions, | |
16209 | factored out from ... | |
16210 | (tui_puts): ... here. | |
16211 | (tui_putc): Use them. | |
16212 | (tui_write): New function. | |
16213 | * tui/tui-io.h (tui_write): Declare. | |
16214 | ||
1672e0d9 SDJ |
16215 | 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com> |
16216 | ||
16217 | * Makefile.in (SFILES): Replace "environ.c" with | |
16218 | "common/environ.c". | |
16219 | (HFILES_NO_SRCDIR): Likewise, for "environ.h". | |
16220 | * environ.c: Include "common-defs.h" instead of "defs.h. Moved | |
16221 | to... | |
16222 | * common/environ.c: ... here. | |
16223 | * environ.h: Moved to... | |
16224 | * common/environ.h: ... here. | |
16225 | ||
f7bb4e3a PB |
16226 | 2017-03-07 Peter Bergner <bergner@vnet.ibm.com> |
16227 | ||
16228 | * gdbarch.sh (pstring_ptr): New static function. | |
16229 | (gdbarch_disassembler_options): Use it. | |
16230 | (gdbarch_verify_disassembler_options): Print valid_disassembler_options, | |
16231 | not valid_disassembler_option->name. | |
16232 | * gdbarch.c: Regenerate. | |
16233 | ||
e45ced6c PB |
16234 | 2017-03-07 Peter Bergner <bergner@vnet.ibm.com> |
16235 | ||
16236 | * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete. | |
16237 | ||
5f6fd321 PA |
16238 | 2017-03-07 Pedro Alves <palves@redhat.com> |
16239 | ||
16240 | * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout. | |
16241 | ||
6dbb839a | 16242 | 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com> |
4a612d6f WT |
16243 | |
16244 | * i387-tdep.h (i387_reset_bnd_regs): Add function definition. | |
16245 | * i387-tdep.c (i387_reset_bnd_regs): Add function implementation. | |
16246 | * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs. | |
6dbb839a | 16247 | * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs. |
4a612d6f | 16248 | |
d274ecf4 SM |
16249 | 2017-03-06 Simon Marchi <simon.marchi@ericsson.com> |
16250 | ||
16251 | * xtensa-linux-nat.c (fetch_gregs): Remove const. | |
16252 | ||
df97be55 SM |
16253 | 2017-03-03 Simon Marchi <simon.marchi@ericsson.com> |
16254 | ||
16255 | * remote.c (remote_add_target_side_commands): Use range-based | |
16256 | for loop. | |
16257 | ||
7d45f3df YQ |
16258 | 2017-03-03 Yao Qi <yao.qi@linaro.org> |
16259 | ||
16260 | PR gdb/21165 | |
16261 | * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if | |
16262 | value is lazy. | |
16263 | * valprint.c (common_val_print): Likewise. | |
16264 | ||
65b48a81 PB |
16265 | 2017-02-28 Peter Bergner <bergner@vnet.ibm.com> |
16266 | ||
16267 | * NEWS: Mention new set/show disassembler-options commands. | |
16268 | * doc/gdb.texinfo: Document new set/show disassembler-options commands. | |
16269 | * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h". | |
16270 | (prospective_options): New static variable. | |
16271 | (gdb_disassembler::gdb_disassembler): Initialize | |
16272 | m_di.disassembler_options. | |
16273 | (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options. | |
16274 | (get_disassembler_options): New function. | |
16275 | (set_disassembler_options): Likewise. | |
16276 | (set_disassembler_options_sfunc): Likewise. | |
16277 | (show_disassembler_options_sfunc): Likewise. | |
16278 | (disassembler_options_completer): Likewise. | |
16279 | (_initialize_disasm): Likewise. | |
16280 | * disasm.h (get_disassembler_options): New prototype. | |
16281 | (set_disassembler_options): Likewise. | |
16282 | * gdbarch.sh (gdbarch_disassembler_options): New variable. | |
16283 | (gdbarch_verify_disassembler_options): Likewise. | |
16284 | * gdbarch.c: Regenerate. | |
16285 | * gdbarch.h: Likewise. | |
16286 | * arm-tdep.c (num_disassembly_options): Delete. | |
16287 | (set_disassembly_style): Likewise. | |
16288 | (arm_disassembler_options): New static variable. | |
16289 | (set_disassembly_style_sfunc): Convert short style name into long | |
16290 | option name. Call set_disassembler_options. | |
16291 | (show_disassembly_style_sfunc): New function. | |
16292 | (arm_gdbarch_init): Call set_gdbarch_disassembler_options and | |
16293 | set_gdbarch_verify_disassembler_options. | |
16294 | (_initialize_arm_tdep): Delete regnames variable and update callers. | |
16295 | (arm_disassembler_options): Initialize. | |
16296 | (disasm_options): New variable. | |
16297 | (num_disassembly_options): Rename from this... | |
16298 | (num_disassembly_styles): ...to this. Compute by scanning through | |
16299 | disasm_options. | |
16300 | (valid_disassembly_styles): Initialize using disasm_options. | |
16301 | Remove calls to parse_arm_disassembler_option, get_arm_regnames and | |
16302 | set_arm_regname_option. | |
16303 | Pass show_disassembly_style_sfunc to the "disassembler" setshow command. | |
16304 | * rs6000-tdep.c (powerpc_disassembler_options): New static variable. | |
16305 | (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and | |
16306 | set_gdbarch_verify_disassembler_options. | |
16307 | * s390-tdep.c (s390_disassembler_options): New static variable. | |
16308 | (s390_gdbarch_init):all set_gdbarch_disassembler_options and | |
16309 | set_gdbarch_verify_disassembler_options. | |
16310 | ||
d538e36d SM |
16311 | 2017-02-27 Simon Marchi <simon.marchi@ericsson.com> |
16312 | ||
16313 | * remote.c (remote_add_target_side_condition): Remove "struct" | |
16314 | keyword from range-based for loop. | |
16315 | ||
83621223 SM |
16316 | 2017-02-27 Simon Marchi <simon.marchi@ericsson.com> |
16317 | ||
16318 | * remote.c (remote_add_target_side_condition): Use range-based | |
16319 | for loop. Update comment. | |
16320 | ||
2123df0e YQ |
16321 | 2017-02-27 Yao Qi <yao.qi@linaro.org> |
16322 | ||
16323 | * f-typeprint.c (f_print_type): Check "varstring" is empty first. | |
16324 | ||
8e368124 AH |
16325 | 2017-02-26 Alan Hayward <alan.hayward@arm.com> |
16326 | ||
16327 | * regcache.c (regcache_raw_update): New function. | |
16328 | (regcache_raw_read): Move code to regcache_raw_update. | |
16329 | * regcache.h (regcache_raw_update): New declaration. | |
16330 | * remote.c (remote_prepare_to_store): Call regcache_raw_update. | |
16331 | ||
a49dd8dd JK |
16332 | 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
16333 | ||
16334 | * dwarf2read.c (create_debug_type_hash_table): Initialize | |
16335 | header.signature and header.type_offset_in_tu. | |
16336 | ||
34e4bae9 PA |
16337 | 2017-02-24 Pedro Alves <palves@redhat.com> |
16338 | ||
16339 | * symtab.c (make_file_symbol_completion_list_1): Use | |
16340 | add_symtab_completions. | |
16341 | ||
b0e4b369 AH |
16342 | 2017-02-24 Alan Hayward <alan.hayward@arm.com> |
16343 | ||
16344 | * stack.c (frame_info): Use frame_unwind_register_value to avoid buf. | |
16345 | ||
975c21ab AH |
16346 | 2017-02-24 Alan Hayward <alan.hayward@arm.com> |
16347 | ||
16348 | * i386-tdep.c (i386_pseudo_register_read_into_value): Use | |
16349 | I386_MAX_REGISTER_SIZE. | |
16350 | (i386_pseudo_register_write): Likewise. | |
16351 | (i386_process_record): Likewise. | |
16352 | * i387-tdep.c (i387_supply_xsave): Likewise. | |
16353 | * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE. | |
16354 | (store_register): Likewise. | |
16355 | ||
14bc53a8 PA |
16356 | 2017-02-23 Pedro Alves <palves@redhat.com> |
16357 | ||
16358 | * ada-lang.c: Include "common/function-view.h". | |
16359 | (ada_iterate_over_symbols): Adjust to use function_view as | |
16360 | callback type. | |
16361 | (struct add_partial_datum, ada_complete_symbol_matcher): Delete. | |
16362 | (ada_make_symbol_completion_list): Use a lambda. | |
16363 | (ada_exc_search_name_matches): Delete. | |
16364 | (name_matches_regex): New. | |
16365 | (ada_add_global_exceptions): Use a lambda and name_matches_regex. | |
16366 | * compile/compile-c-support.c: Include "common/function-view.h". | |
16367 | (print_one_macro): Change prototype to accept a ui_file pointer. | |
16368 | (write_macro_definitions): Use a lambda. | |
16369 | * dwarf2read.c: Include "common/function-view.h". | |
16370 | (dw2_map_expand_apply, dw2_map_symtabs_matching_filename) | |
16371 | (dw2_expand_symtabs_matching): Adjust to use function_view as | |
16372 | callback type. | |
16373 | * language.h: Include "common/function-view.h". | |
16374 | (struct language_defn) <la_iterate_over_symbols>: Adjust to use | |
16375 | function_view as callback type. | |
16376 | (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter. | |
16377 | * linespec.c: Include "common/function-view.h". | |
16378 | (collect_info::add_symbol): New method. | |
16379 | (struct symbol_and_data_callback, iterate_inline_only, struct | |
16380 | symbol_matcher_data, iterate_name_matcher): Delete. | |
16381 | (iterate_over_all_matching_symtabs): Adjust to use function_view | |
16382 | as callback type and lambdas. | |
16383 | (iterate_over_file_blocks): Adjust to use function_view as | |
16384 | callback type. | |
16385 | (decode_compound_collector): Now a class with private fields. | |
16386 | (decode_compound_collector::release_symbols): New method. | |
16387 | (collect_one_symbol): Rename to... | |
16388 | (decode_compound_collector::operator()): ... this and adjust. | |
16389 | (lookup_prefix_sym): decode_compound_collector construction bits | |
16390 | move to decode_compound_collector ctor. Pass the | |
16391 | decode_compound_collector object directly as callback. Remove | |
16392 | cleanups and use decode_compound_collector::release_symbols | |
16393 | instead. | |
16394 | (symtab_collector): Now a class with private fields. | |
16395 | (symtab_collector::release_symtabs): New method. | |
16396 | (add_symtabs_to_list): Rename to... | |
16397 | (symtab_collector::operator()): ... this and adjust. | |
16398 | (collect_symtabs_from_filename): symtab_collector construction | |
16399 | bits move to symtab_collector ctor. Pass the symtab_collector | |
16400 | object directly as callback. Remove cleanups and use | |
16401 | symtab_collector::release_symtabs instead. | |
16402 | (collect_symbols): Delete. | |
16403 | (add_matching_symbols_to_info): Use lambdas. | |
16404 | * macrocmd.c (print_macro_callback): Delete. | |
16405 | (info_macro_command): Use a lambda. | |
16406 | (info_macros_command): Pass print_macro_definition as callable | |
16407 | directly. | |
16408 | (print_one_macro): Remove 'ignore' parameter. | |
16409 | (macro_list_command): Adjust. | |
16410 | * macrotab.c (macro_for_each_data::fn): Now a function_view. | |
16411 | (macro_for_each_data::user_data): Delete field. | |
16412 | (foreach_macro): Adjust to call the function_view. | |
16413 | (macro_for_each): Adjust to use function_view as callback type. | |
16414 | (foreach_macro_in_scope): Adjust to call the function_view. | |
16415 | (macro_for_each_in_scope): Adjust to use function_view as callback | |
16416 | type. | |
16417 | * macrotab.h: Include "common/function-view.h". | |
16418 | (macro_callback_fn): Declare a prototype instead of a pointer. | |
16419 | Remove "user_data" parameter. | |
16420 | (macro_for_each, macro_for_each_in_scope): Adjust to use | |
16421 | function_view as callback type. | |
16422 | * psymtab.c (partial_map_expand_apply) | |
16423 | (psym_map_symtabs_matching_filename, recursively_search_psymtabs): | |
16424 | Adjust to use function_view as callback type and to return bool. | |
16425 | (psym_expand_symtabs_matching): Adjust to use function_view as | |
16426 | callback types. | |
16427 | * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust | |
16428 | to use function_view as callback type and to return bool. | |
16429 | (debug_qf_expand_symtabs_matching): Adjust to use function_view as | |
16430 | callback types. | |
16431 | * symfile.c (expand_symtabs_matching): Adjust to use function_view | |
16432 | as callback types. | |
16433 | * symfile.h: Include "common/function-view.h". | |
16434 | (expand_symtabs_file_matcher_ftype) | |
16435 | (expand_symtabs_symbol_matcher_ftype) | |
16436 | (expand_symtabs_exp_notify_ftype): Remove "data" parameter and | |
16437 | return bool. | |
16438 | (quick_symbol_functions::map_symtabs_matching_filename) | |
16439 | (quick_symbol_functions::expand_symtabs_matching): Adjust to use | |
16440 | function_view as callback type and return bool. | |
16441 | (expand_symtabs_matching): Adjust to use function_view as callback | |
16442 | type. | |
16443 | (maintenance_expand_name_matcher) | |
16444 | (maintenance_expand_file_matcher): Delete. | |
16445 | (maintenance_expand_symtabs): Use lambdas. | |
16446 | * symtab.c (iterate_over_some_symtabs): Adjust to use | |
16447 | function_view as callback types and return bool. | |
16448 | (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead | |
16449 | of a cleanup. | |
16450 | (lookup_symtab_callback): Delete. | |
16451 | (lookup_symtab): Use a lambda. | |
16452 | (iterate_over_symbols): Adjust to use function_view as callback | |
16453 | type. | |
16454 | (struct search_symbols_data, search_symbols_file_matches) | |
16455 | (search_symbols_name_matches): Delete. | |
16456 | (search_symbols): Use a pair of lambdas. | |
16457 | (struct add_name_data, add_macro_name, symbol_completion_matcher) | |
16458 | (symtab_expansion_callback): Delete. | |
16459 | (default_make_symbol_completion_list_break_on_1): Use lambdas. | |
16460 | * symtab.h: Include "common/function-view.h". | |
16461 | (iterate_over_some_symtabs): Adjust to use function_view as | |
16462 | callback type and return bool. | |
16463 | (iterate_over_symtabs): Adjust to use function_view as callback | |
16464 | type. | |
16465 | (symbol_found_callback_ftype): Remove 'data' parameter and return | |
16466 | bool. | |
16467 | (iterate_over_symbols): Adjust to use function_view as callback | |
16468 | type. | |
16469 | ||
07e253aa PA |
16470 | 2017-02-23 Pedro Alves <palves@redhat.com> |
16471 | ||
16472 | * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New. | |
16473 | (%.o) <unittests/%.c>: New pattern. | |
16474 | * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to | |
16475 | CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS. | |
16476 | * common/function-view.h: New file. | |
16477 | * unittests/function-view-selftests.c: New file. | |
16478 | * configure: Regenerate. | |
16479 | ||
8eaf5320 SM |
16480 | 2017-02-23 Simon Marchi <simon.marchi@ericsson.com> |
16481 | ||
16482 | * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of | |
16483 | inferior_ptid. | |
16484 | * go32-nat.c (go32_thread_alive): Likewise. | |
16485 | ||
38768751 YQ |
16486 | 2017-02-23 Yao Qi <yao.qi@linaro.org> |
16487 | ||
16488 | * varobj-iter.h (varobj_iter_delete): Call xfree instead of | |
16489 | delete. | |
16490 | ||
0a8beaba YQ |
16491 | 2017-02-23 Yao Qi <yao.qi@linaro.org> |
16492 | ||
16493 | * varobj.c (varobj_clear_saved_item): Use delete instead of | |
16494 | xfree. | |
16495 | (update_dynamic_varobj_children): Likewise. | |
16496 | ||
58fdfd2c JK |
16497 | 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
16498 | ||
16499 | * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR. | |
16500 | ||
1b90b139 SM |
16501 | 2017-02-21 Simon Marchi <simon.marchi@ericsson.com> |
16502 | ||
16503 | * common/enum-flags.h (enum_flags::enum_flags): Initialize | |
16504 | m_enum_value to 0 in default constructor. | |
16505 | ||
2039d74e EBM |
16506 | 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> |
16507 | ||
16508 | * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK. | |
16509 | (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK. | |
16510 | (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION, | |
16511 | STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines. | |
16512 | (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros. | |
16513 | (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN. | |
16514 | (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and | |
16515 | IS_STORE_CONDITIONAL_INSN. | |
16516 | ||
7814882a JK |
16517 | 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
16518 | ||
16519 | * dwarf2_rnglists_process: Initialize range_beginning and range_end. | |
16520 | ||
0ae60b63 JK |
16521 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
16522 | ||
16523 | * NEWS (Changes since GDB 7.12): Add DWARF-5. | |
16524 | ||
0224619f JK |
16525 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
16526 | ||
16527 | * dwarf2read.c (skip_one_die, read_attribute_value) | |
16528 | (dwarf2_const_value_attr, dump_die_shallow) | |
16529 | (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) | |
16530 | (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16. | |
16531 | ||
0af92d60 JK |
16532 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
16533 | ||
16534 | * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*. | |
16535 | (dwarf_parse_macro_header): Accept DWARF version 5. | |
16536 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*. | |
16537 | ||
216f72a1 JK |
16538 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
16539 | ||
16540 | * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and | |
16541 | DW_AT_GNU_*. | |
16542 | * common/common-exceptions.h (enum errors): Likewise. | |
16543 | * dwarf2-frame.c (class dwarf_expr_executor): Likewise. | |
16544 | * dwarf2expr.c (dwarf_block_to_dwarf_reg) | |
16545 | (dwarf_expr_context::execute_stack_op): Likewise. | |
16546 | * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece): | |
16547 | Likewise. | |
16548 | * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type) | |
16549 | (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value) | |
16550 | (show_entry_values_debug, call_site_to_target_addr) | |
16551 | (func_addr_to_tail_call_list, func_verify_no_selftailcall) | |
16552 | (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value) | |
16553 | (entry_data_value_free_closure, value_of_dwarf_reg_entry) | |
16554 | (value_of_dwarf_block_entry, indirect_pieced_value) | |
16555 | (symbol_needs_eval_context::push_dwarf_reg_entry_value): | |
16556 | (disassemble_dwarf_expression): Likewise. | |
16557 | * dwarf2read.c (process_die, inherit_abstract_dies) | |
16558 | (read_call_site_scope): Likewise. | |
16559 | * gdbtypes.h (struct func_type, struct call_site_parameter) | |
16560 | (struct call_site): Likewise. | |
16561 | * stack.c (read_frame_arg): Likewise. | |
16562 | * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise. | |
16563 | ||
43988095 JK |
16564 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
16565 | ||
16566 | * defs.h (read_unsigned_leb128): New declaration. | |
16567 | * dwarf2loc.c (decode_debug_loclists_addresses): New function. | |
16568 | (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*. | |
16569 | (dwarf2_find_location_expression): Call also | |
16570 | decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length. | |
16571 | * dwarf2loc.h (dwarf2_version): New declaration. | |
16572 | * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str, | |
16573 | rnglists. | |
16574 | (dwarf2_elf_names): Add .debug_loclists, .debug_line_str, | |
16575 | .debug_rnglists. | |
16576 | (struct dwop_section_names): Add loclists_dwo. | |
16577 | (dwop_section_names): Add .debug_loclists.dwo. | |
16578 | (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu. | |
16579 | (struct dwarf2_per_cu_data): Add dwarf_version. | |
16580 | (struct dwo_sections): Add loclists. | |
16581 | (struct attr_abbrev): Add implicit_const. | |
16582 | (read_indirect_line_string): New declaration. | |
16583 | (read_unsigned_leb128): Delete declaration. | |
16584 | (rcuh_kind): New definition. | |
16585 | (read_and_check_comp_unit_head): Change parameter | |
16586 | is_debug_types_section to section_kind. | |
16587 | (dwarf2_locate_sections): Handle loclists, line_str and rnglists. | |
16588 | (read_comp_unit_head): Change parameter abfd to section, add parameter | |
16589 | section_kind. Handle DWARF-5. | |
16590 | (error_check_comp_unit_head): Accept also DWARF version 5. | |
16591 | (read_and_check_comp_unit_head): Change parameter | |
16592 | is_debug_types_section to section_kind. | |
16593 | (read_and_check_type_unit_head): Delete function. | |
16594 | (read_abbrev_offset): Handle DWARF-5. | |
16595 | (create_debug_type_hash_table): Add parameter section_kind. Process | |
16596 | only DW_UT_type. Use signature and type_offset_in_tu from struct | |
16597 | comp_unit_head. | |
16598 | (create_debug_types_hash_table): Update create_debug_type_hash_table | |
16599 | caller. | |
16600 | (create_all_type_units): Call create_debug_type_hash_table. | |
16601 | (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change | |
16602 | read_and_check_type_unit_head caller to read_and_check_comp_unit_head | |
16603 | caller. | |
16604 | (skip_one_die): Handle DW_FORM_implicit_const. | |
16605 | (dwarf2_rnglists_process): New function. | |
16606 | (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5. | |
16607 | (abbrev_table_read_table): Handle DW_FORM_implicit_const. | |
16608 | (read_attribute_value): Handle DW_FORM_implicit_const, | |
16609 | DW_FORM_line_strp. | |
16610 | (read_attribute): Handle DW_FORM_implicit_const. | |
16611 | (read_indirect_string_at_offset_from): New function from | |
16612 | read_indirect_string_at_offset. | |
16613 | (read_indirect_string_at_offset): Call | |
16614 | read_indirect_string_at_offset_from. | |
16615 | (read_indirect_line_string_at_offset): New function. | |
16616 | (read_indirect_string): New function comment. | |
16617 | (read_indirect_line_string): New function. | |
16618 | (read_unsigned_leb128): Make it global. | |
16619 | (dwarf2_string_attr): Handle DWARF-5. | |
16620 | (add_include_dir_stub, read_formatted_entries): New functions. | |
16621 | (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section): | |
16622 | Handle DWARF-5. | |
16623 | (per_cu_header_read_in): Update read_comp_unit_head caller. | |
16624 | (dwarf2_version): New function. | |
16625 | * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and | |
16626 | rnglists. | |
16627 | * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections | |
16628 | fields. | |
16629 | ||
22d2f3ab JK |
16630 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
16631 | ||
16632 | * dwarf2read.c (abbrev_table_read_table): Read the data only once. | |
16633 | ||
5f46c5a5 JK |
16634 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
16635 | ||
16636 | * dwarf2read.c (dwarf2_ranges_process): New function from | |
16637 | dwarf2_ranges_read. | |
16638 | (dwarf2_ranges_read, dwarf2_record_block_ranges): Use | |
16639 | dwarf2_ranges_process. | |
16640 | ||
78d4d2c5 JK |
16641 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
16642 | ||
16643 | * dwarf2read.c (create_debug_type_hash_table): New function from | |
16644 | create_debug_types_hash_table. | |
16645 | (create_debug_types_hash_table): Call create_debug_type_hash_table. | |
16646 | (create_all_type_units, open_and_init_dwo_file): Update | |
16647 | create_debug_types_hash_table callers. | |
16648 | ||
1b076f25 SDJ |
16649 | 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
16650 | ||
16651 | PR gdb/16188 | |
16652 | * fork-child.c (trace_start_error): Fix thinko. va_end should | |
16653 | refer to 'ap', not 'args'. | |
16654 | ||
0db8980c SDJ |
16655 | 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
16656 | Pedro Alves <palves@redhat.com> | |
16657 | ||
16658 | PR gdb/16188 | |
16659 | * darwin-nat.c (darwin_ptrace_me): Check if calls to system | |
16660 | calls succeeded. | |
16661 | * fork-child.c (trace_start_error): New function. | |
16662 | (trace_start_error_with_name): Likewise. | |
16663 | * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded. | |
16664 | * inf-ptrace.c (inf_ptrace_me): Likewise. | |
16665 | * inferior.h (trace_start_error): New prototype. | |
16666 | (trace_start_error_with_name): Likewise. | |
16667 | ||
99e8a4f9 SDJ |
16668 | 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com> |
16669 | ||
16670 | PR gdb/21164 | |
16671 | * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not | |
16672 | NULL before using it. | |
16673 | * symmisc.c (maintenance_print_symbols): Likewise. | |
16674 | (maintenance_print_msymbols): Likewise. | |
16675 | ||
4e746bb6 TW |
16676 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
16677 | ||
16678 | * NEWS: Add record Python bindings entry. | |
16679 | ||
16680 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
16681 | ||
16682 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o, | |
16683 | py-record-full.o. | |
16684 | (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c. | |
16685 | * python/py-record-btrace.c, python/py-record-btrace.h, | |
16686 | python/py-record-full.c, python/py-record-full.h: New file. | |
16687 | * python/py-record.c: Add include for py-record-btrace.h and | |
16688 | py-record-full.h. | |
16689 | (recpy_method, recpy_format, recpy_goto, recpy_replay_position, | |
16690 | recpy_instruction_history, recpy_function_call_history, recpy_begin, | |
16691 | recpy_end): Use functions from py-record-btrace.c and py-record-full.c. | |
16692 | * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t): | |
16693 | New definition. | |
16694 | (gdbpy_initialize_btrace): New export. | |
16695 | * python/python.c (_initialize_python): Add gdbpy_initialize_btrace. | |
16696 | ||
16697 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
16698 | ||
16699 | * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o. | |
16700 | (SUBDIR_PYTHON_SRCS): Add python/py-record.c. | |
16701 | * python/py-record.c: New file. | |
16702 | * python/python-internal.h (gdbpy_start_recording, | |
16703 | gdbpy_current_recording, gdpy_stop_recording, | |
16704 | gdbpy_initialize_record): New export. | |
16705 | * python/python.c (_initialize_python): Add gdbpy_initialize_record. | |
16706 | (python_GdbMethods): Add gdbpy_start_recording, | |
16707 | gdbpy_current_recording and gdbpy_stop_recording. | |
16708 | ||
16709 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
16710 | ||
16711 | * record-btrace.c (record_btrace_record_method): New function. | |
16712 | (init_record_btrace_ops): Initialize to_record_method. | |
16713 | * record-full.c (record_full_record_method): New function. | |
16714 | (init_record_full_ops, init_record_full_core_ops): Add | |
16715 | record_full_record_method. | |
16716 | * record.h (enum record_method): New enum. | |
16717 | * target-debug.h (target_debug_print_enum_record_method: New define. | |
16718 | * target-delegates.c: Regenerate. | |
16719 | * target.c (target_record_method): New function. | |
16720 | * target.h: Include record.h. | |
16721 | (struct target_ops) <to_record_method>: New field. | |
16722 | (target_record_method): New export. | |
16723 | ||
16724 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
16725 | ||
16726 | * record.h (record_start, record_stop): New export. | |
16727 | * record.c (record_start, record_stop): New function. | |
16728 | ||
16729 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
16730 | ||
16731 | * btrace.c (btrace_fetch): Copy function call segments pointer | |
16732 | into a vector. | |
16733 | (btrace_clear): Clear the vector. | |
16734 | (btrace_find_insn_by_number): Use binary search to find the correct | |
16735 | function call segment. | |
16736 | * btrace.h (brace_fun_p): New typedef. | |
16737 | (struct btrace_thread_info) <functions>: New field. | |
16738 | ||
16739 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
16740 | ||
16741 | * record-btrace.c (btrace_ui_out_decode_error): Move most of it ... | |
16742 | * btrace.c (btrace_decode_error): ... here. New function. | |
16743 | * btrace.h (btrace_decode_error): New export. | |
16744 | ||
16745 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
16746 | ||
16747 | * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function. | |
16748 | (ftrace_new_function, btrace_insn_number, btrace_insn_cmp, | |
16749 | btrace_find_insn_by_number): Remove special case for gaps. | |
16750 | * btrace.h (btrace_insn_get_error): New export. | |
16751 | (btrace_insn_number, btrace_find_insn_by_number): Adjust comment. | |
16752 | * record-btrace.c (btrace_insn_history): Print number for gaps. | |
16753 | (record_btrace_info, record_btrace_goto): Handle gaps. | |
16754 | ||
3f77c769 TT |
16755 | 2017-02-14 Tom Tromey <tom@tromey.com> |
16756 | ||
16757 | PR python/13598: | |
16758 | * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt | |
16759 | event. | |
16760 | * python/py-evts.c (gdbpy_initialize_py_events): Add | |
16761 | before_prompt registry. | |
16762 | * python/py-events.h (events_object) <before_prompt>: New field. | |
16763 | ||
4c2c7ac6 MM |
16764 | 2017-02-14 Markus Metzger <markus.t.metzger@intel.com> |
16765 | ||
16766 | * btrace.c (ftrace_new_switch): Preserve up link and flags. | |
16767 | ||
5cf30ebf LM |
16768 | 2017-02-13 Luis Machado <lgustavo@codesourcery.com> |
16769 | ||
16770 | * symfile (_initialize_symfile): Add usage text to the load command's | |
16771 | help text. | |
16772 | ||
26a06916 SM |
16773 | 2017-02-10 Simon Marchi <simon.marchi@ericsson.com> |
16774 | ||
16775 | * utils.c (defaulted_query): Don't query on secondary UIs. | |
16776 | ||
0b145e37 TT |
16777 | 2017-02-10 Tom Tromey <tom@tromey.com> |
16778 | ||
16779 | * rust-lang.c (rust_get_disr_info): Remove unused variable. | |
16780 | ||
2d8365c4 TT |
16781 | 2017-02-10 Tom Tromey <tom@tromey.com> |
16782 | ||
16783 | * python/py-value.c (valpy_richcompare_throw): Remove unnecessary | |
16784 | "cleanup" local. | |
16785 | * python/py-type.c (typy_legacy_template_argument): Remove | |
16786 | unnecessary "cleanup" local. | |
16787 | ||
2bb8f231 TT |
16788 | 2017-02-10 Tom Tromey <tom@tromey.com> |
16789 | ||
16790 | * python/python.c (do_start_initialization): New function, from | |
16791 | _initialize_python. | |
16792 | (_initialize_python): Call do_start_initialization. | |
16793 | * python/py-linetable.c (ltpy_iternext): Use explicit returns, not | |
16794 | goto. | |
16795 | ||
1bdfaf42 TT |
16796 | 2017-02-10 Tom Tromey <tom@tromey.com> |
16797 | ||
16798 | * python/py-prettyprint.c (pretty_print_one_value): Use | |
16799 | gdbpy_ref. | |
16800 | ||
88b6faea TT |
16801 | 2017-02-10 Tom Tromey <tom@tromey.com> |
16802 | ||
16803 | * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref. | |
16804 | * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use | |
16805 | gdbpy_ref. | |
16806 | * python/py-type.c (field_new): Use gdbpy_ref. | |
16807 | * python/py-symtab.c (symtab_and_line_to_sal_object): Use | |
16808 | gdbpy_ref. | |
16809 | * python/py-progspace.c (pspy_new): Use gdbpy_ref. | |
16810 | (py_free_pspace): Likewise. | |
16811 | (pspace_to_pspace_object): Likewise. | |
16812 | * python/py-objfile.c (objfpy_new): Use gdbpy_ref. | |
16813 | (py_free_objfile): Likewise. | |
16814 | (objfile_to_objfile_object): Likewise. | |
16815 | * python/py-inferior.c (delete_thread_object): Use | |
16816 | gdbpy_ref. | |
16817 | (infpy_read_memory): Likewise. | |
16818 | (py_free_inferior): Likewise. | |
16819 | * python/py-evtregistry.c (create_eventregistry_object): Use | |
16820 | gdbpy_ref. | |
16821 | * python/py-event.c (create_event_object): Use gdbpy_ref. | |
16822 | ||
7780f186 TT |
16823 | 2017-02-10 Tom Tromey <tom@tromey.com> |
16824 | ||
16825 | * python/py-ref.h (gdbpy_ref_policy): Now a template. | |
16826 | (gdbpy_ref): Now a template; allow subclasses of PyObject to be | |
16827 | used. | |
16828 | * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c, | |
16829 | python/py-cmd.c, python/py-continueevent.c, python/py-event.c, | |
16830 | python/py-exitedevent.c, python/py-finishbreakpoint.c, | |
16831 | python/py-framefilter.c, python/py-function.c, | |
16832 | python/py-inferior.c, python/py-infevents.c, | |
16833 | python/py-linetable.c, python/py-newobjfileevent.c, | |
16834 | python/py-param.c, python/py-prettyprint.c, python/py-ref.h, | |
16835 | python/py-signalevent.c, python/py-stopevent.c, | |
16836 | python/py-symbol.c, python/py-threadevent.c, python/py-type.c, | |
16837 | python/py-unwind.c, python/py-utils.c, python/py-value.c, | |
16838 | python/py-varobj.c, python/py-xmethods.c, python/python.c, | |
16839 | varobj.c: Change gdbpy_ref to gdbpy_ref<>. | |
16840 | ||
d4b0bb18 TT |
16841 | 2017-02-10 Tom Tromey <tom@tromey.com> |
16842 | ||
16843 | * ui-out.h (ui_out_emit_type): New class. | |
16844 | (ui_out_emit_tuple, ui_out_emit_list): New typedefs. | |
16845 | * python/py-framefilter.c (py_print_single_arg): Use gdb::optional | |
16846 | and ui_out_emit_tuple. | |
16847 | (enumerate_locals): Likewise. | |
16848 | (py_mi_print_variables, py_print_locals, py_print_args): Use | |
16849 | ui_out_emit_list. | |
16850 | (py_print_frame): Use gdb::optional, ui_out_emit_tuple, | |
16851 | ui_out_emit_list. | |
16852 | * common/gdb_optional.h: New file. | |
16853 | ||
f67f945c MG |
16854 | 2017-02-10 Martin Galvan <martingalvan@sourceware.org> |
16855 | ||
16856 | * MAINTAINERS (Write After Approval): Update my e-mail address. | |
16857 | ||
18da0c51 MG |
16858 | 2017-02-10 Martin Galvan <martingalvan@sourceware.org> |
16859 | ||
16860 | PR gdb/21122 | |
16861 | * breakpoint.c (_initialize_breakpoint): Update the help description | |
16862 | of the 'commands' command to indicate that it takes a list argument. | |
16863 | ||
62c14536 SM |
16864 | 2017-02-09 Simon Marchi <simon.marchi@ericsson.com> |
16865 | ||
16866 | * interps.c (current_interp_set_logging): Remove "return". | |
16867 | ||
ff6fa247 GB |
16868 | 2017-02-09 Gary Benson <gbenson@redhat.com> |
16869 | ||
16870 | * symtab.c (add_symtab_completions): Prevent NULL pointer | |
16871 | dereference. | |
16872 | ||
a474bd8e PA |
16873 | 2017-02-08 Pedro Alves <palves@redhat.com> |
16874 | ||
16875 | * interps.c (interp::interp): Remove reference to quiet_p. | |
16876 | (interp_set): Make static. Remove dead "Switching to" output | |
16877 | code. | |
16878 | (interp_quiet_p, interp_set_quiet): Delete. | |
16879 | (interpreter_exec_cmd): Don't set the interpreter quiet. | |
16880 | * interps.h (interp_quiet_p): Make static. | |
16881 | (class interp) <quiet_p>: Remove field | |
16882 | ||
3d7b173c JG |
16883 | 2017-02-08 Jerome Guitton <guitton@adacore.com> |
16884 | ||
604c4576 JG |
16885 | * cli/cli-decode.c (find_command_name_length): Make it extern. |
16886 | * cli/cli-decode.h (find_command_name_length): Declare. | |
16887 | * cli/cli-script.c (command_name_equals, line_first_arg): | |
16888 | New functions. | |
16889 | (process_next_line): Use cli-decode to parse command names. | |
16890 | (build_command_line): Make args a constant pointer. | |
16891 | ||
16892 | 2017-02-08 Jerome Guitton <guitton@adacore.com> | |
6dbb839a | 16893 | |
3d7b173c JG |
16894 | * cli-decode.c (lookup_cmd_1, lookup_cmd_composition): |
16895 | Remove case-insensitive search. | |
16896 | ||
1291063d JM |
16897 | 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com> |
16898 | ||
16899 | * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator | |
16900 | at the end of the line. Avoids an ARI warning. | |
16901 | ||
20b477a7 LM |
16902 | 2017-02-06 Luis Machado <lgustavo@codesourcery.com> |
16903 | ||
16904 | * NEWS: Mention support for record/replay of Intel 64 rdrand and | |
16905 | rdseed instructions. | |
16906 | i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed. | |
16907 | ||
3f7b46f2 IR |
16908 | 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com> |
16909 | ||
16910 | PR tdep/20936 | |
16911 | Provide and use sparc32 and sparc64 target description XML files. | |
16912 | * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml, | |
16913 | features/sparc/sparc32-fpu.xml: New files for sparc 32-bit. | |
16914 | * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml, | |
16915 | features/sparc/sparc64-fpu.xml: New files for sparc 64-bit. | |
16916 | * features/sparc/sparc32-solaris.xml: New file. | |
16917 | * features/sparc/sparc64-solaris.xml: New file. | |
16918 | * features/sparc/sparc32-solaris.c: Generated. | |
16919 | * features/sparc/sparc64-solaris.c: Generated. | |
16920 | * sparc-tdep.h: Account for differences in target descriptions. | |
16921 | * sparc-tdep.c (sparc32_register_name): Use target provided registers. | |
16922 | (sparc32_register_type): Use target provided registers. | |
16923 | (validate_tdesc_registers): New function. | |
16924 | (sparc32_gdbarch_init): Use tdesc_has_registers. | |
16925 | Set pseudoregister functions. | |
16926 | * sparc64-tdep.c (sparc64_register_name): Use target provided registers. | |
16927 | (sparc64_register_type): Use target provided registers. | |
16928 | (sparc64_init_abi): Set pseudoregister functions. | |
16929 | ||
f0fd41c1 TT |
16930 | 2017-02-03 Tom Tromey <tom@tromey.com> |
16931 | ||
16932 | PR rust/21097: | |
16933 | * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums | |
16934 | with a single member. | |
16935 | ||
d6f9b0fb PA |
16936 | 2017-02-03 Pedro Alves <palves@redhat.com> |
16937 | ||
16938 | * cli/cli-interp.c (cli_interp_base::cli_interp_base) | |
16939 | (cli_interp_base::~cli_interp_base): New. | |
16940 | (cli_interp): New struct. | |
16941 | (as_cli_interp): Cast the interp itself to cli_interp. | |
16942 | (cli_interpreter_pre_command_loop): Rename to ... | |
16943 | (cli_interp_base::pre_command_loop): ... this. Remove 'self' | |
16944 | parameter. | |
16945 | (cli_interpreter_init): Rename to ... | |
16946 | (cli_interp::init): ... this. Remove 'self' parameter. Use | |
16947 | boolean. Make extern. | |
16948 | (cli_interpreter_resume): Rename to ... | |
16949 | (cli_interp::resume): ... this. Remove 'data' parameter. Make | |
16950 | extern. | |
16951 | (cli_interpreter_suspend): Rename to ... | |
16952 | (cli_interp::suspend): ... this. Remove 'data' parameter. Make | |
16953 | extern. | |
16954 | (cli_interpreter_exec): Rename to ... | |
16955 | (cli_interp::exec): ... this. Remove 'data' parameter. Make | |
16956 | extern. | |
16957 | (cli_interpreter_supports_command_editing): Rename to ... | |
16958 | (cli_interp_base::supports_command_editing): ... this. Remove | |
16959 | 'interp' parameter. Make extern. | |
16960 | (cli_ui_out): Rename to ... | |
16961 | (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter. | |
16962 | Make extern. | |
16963 | (cli_set_logging): Rename to ... | |
16964 | (cli_interp_base::set_logging): ... this. Remove 'interp' | |
16965 | parameter. Make extern. | |
16966 | (cli_interp_procs): Delete. | |
16967 | (cli_interp_factory): Adjust to use "new". | |
16968 | * cli/cli-interp.h: Include "interps.h". | |
16969 | (struct cli_interp_base): New struct. | |
16970 | * interps.c (struct interp): Delete. Fields moved to interps.h. | |
16971 | (interp_new): Delete. | |
16972 | (interp::interp, interp::~interp): New. | |
16973 | (interp_set): Use bool, and return void. Assume the interpreter | |
16974 | has suspend, init and resume methods, and that the all return | |
16975 | void. | |
16976 | (set_top_level_interpreter): interp_set returns void. | |
16977 | (interp_ui_out): Adapt. | |
16978 | (current_interp_set_logging): Adapt. | |
16979 | (interp_data): Delete. | |
16980 | (interp_pre_command_loop, interp_supports_command_editing): Adapt. | |
16981 | (interp_exec): Adapt. | |
16982 | (top_level_interpreter_data): Delete. | |
16983 | * interps.h (interp_init_ftype, interp_resume_ftype) | |
16984 | (interp_suspend_ftype, interp_exec_ftype) | |
16985 | (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete. | |
16986 | (class interp): New. | |
16987 | (interp_new): Delete. | |
16988 | (interp_set): Now returns void. Use bool. | |
16989 | (interp_data, top_level_interpreter_data): Delete. | |
16990 | * mi/mi-common.h: Include interps.h. | |
16991 | (class mi_interp): Inherit from interp. Define a ctor. Declare | |
16992 | init, resume, suspect, exec, interp_ui_out, set_logging and | |
16993 | pre_command_loop methods. | |
16994 | * mi/mi-interp.c (as_mi_interp): Cast the interp itself. | |
16995 | (mi_interpreter_init): Rename to ... | |
16996 | (mi_interp::init): ... this. Remove the 'interp' parameter, use | |
16997 | bool, return void and make extern. Adjust. | |
16998 | (mi_interpreter_resume): ... Rename to ... | |
16999 | (mi_interp::resume): ... this. Remove the 'data' parameter, | |
17000 | return void and make extern. Adjust. | |
17001 | (mi_interpreter_suspend): ... Rename to ... | |
17002 | (mi_interp::suspend): ... this. Remove the 'data' parameter, | |
17003 | return void and make extern. Adjust. | |
17004 | (mi_interpreter_exec): ... Rename to ... | |
17005 | (mi_interp::exec): ... this. Remove the 'data' parameter and make | |
17006 | extern. Adjust. | |
17007 | (mi_interpreter_pre_command_loop): ... Rename to ... | |
17008 | (mi_interp::pre_command_loop): ... this. Remove the 'self' | |
17009 | parameter and make extern. | |
17010 | (mi_on_normal_stop_1): Adjust. | |
17011 | (mi_ui_out): Rename to ... | |
17012 | (mi_interp::interp_ui_out): ... this. Remove the 'interp' | |
17013 | parameter and make extern. Adjust. | |
17014 | (mi_set_logging): Rename to ... | |
17015 | (mi_interp::set_logging): ... this. Remove the 'interp' | |
17016 | parameter and make extern. Adjust. | |
17017 | (mi_interp_procs): Delete. | |
17018 | (mi_interp_factory): Adjust to use 'new'. | |
17019 | * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command) | |
17020 | (mi_print_exception, mi_execute_command, mi_load_progress): | |
17021 | Adjust. | |
17022 | * tui/tui-interp.c (tui_interp): New class. | |
17023 | (as_tui_interp): Return a tui_interp pointer. | |
17024 | (tui_on_normal_stop, tui_on_signal_received) | |
17025 | (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited) | |
17026 | (tui_on_no_history, tui_on_user_selected_context_changed): Adjust | |
17027 | to use interp::interp_ui_out. | |
17028 | (tui_init): Rename to ... | |
17029 | (tui_interp::init): ... this. Remove the 'self' parameter, use | |
17030 | bool, return void and make extern. Adjust. | |
17031 | (tui_resume): Rename to ... | |
17032 | (tui_interp::resume): ... this. Remove the 'data' parameter, | |
17033 | return void and make extern. Adjust. | |
17034 | (tui_suspend): Rename to ... | |
17035 | (tui_interp::suspend): ... this. Remove the 'data' parameter, | |
17036 | return void and make extern. Adjust. | |
17037 | (tui_ui_out): Rename to ... | |
17038 | (tui_interp::interp_ui_out): ... this. Remove the 'self' | |
17039 | parameter, and make extern. Adjust. | |
17040 | (tui_exec): Rename to ... | |
17041 | (tui_interp::exec): ... this. Remove the 'data' parameter and | |
17042 | make extern. | |
17043 | (tui_interp_procs): Delete. | |
17044 | (tui_interp_factory): Use "new". | |
17045 | ||
65c40c95 TT |
17046 | 2017-02-02 Tom Tromey <tom@tromey.com> |
17047 | ||
17048 | * rust-exp.y (ends_raw_string, space_then_number) | |
17049 | (rust_identifier_start_p): Return bool. | |
17050 | * rust-lang.c (rust_tuple_type_p, rust_underscore_fields) | |
17051 | (rust_tuple_struct_type_p, rust_tuple_variant_type_p) | |
17052 | (rust_slice_type_p, rust_range_type_p, rust_u8_type_p) | |
17053 | (rust_chartype_p): Return bool. | |
17054 | (val_print_struct, rust_print_struct_def, rust_print_type): | |
17055 | Update. | |
17056 | * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p): | |
17057 | Return bool. | |
17058 | ||
b50f188d TT |
17059 | 2017-02-02 Tom Tromey <tom@tromey.com> |
17060 | ||
17061 | * rust-lang.c: Reindent. | |
17062 | ||
03c85b11 TT |
17063 | 2017-02-02 Tom Tromey <tom@tromey.com> |
17064 | ||
17065 | * rust-lang.h (rust_crate_for_block): Update. | |
17066 | * rust-lang.c (rust_crate_for_block): Return std::string. | |
17067 | (rust_get_disr_info): Use std:;string, not | |
17068 | gdb::unique_xmalloc_ptr. | |
17069 | * rust-exp.y (crate_name): Update. | |
17070 | ||
9b6da501 PA |
17071 | 2017-02-02 Pedro Alves <palves@redhat.com> |
17072 | ||
17073 | * disasm-selftests.c (print_one_insn_test): Move the "verbose" | |
17074 | field out of gdb_disassembler_test and make it static. | |
17075 | ||
ec4cb20b PA |
17076 | 2017-02-02 Pedro Alves <palves@redhat.com> |
17077 | ||
17078 | * mi/mi-common.h (struct mi_interp): Delete the mi2_interp, | |
17079 | mi1_interp and mi_interp fields. | |
17080 | ||
5be5dbf0 PA |
17081 | 2017-02-02 Pedro Alves <palves@redhat.com> |
17082 | ||
616268b6 PA |
17083 | * cli/cli-interp.c (struct saved_output_files, saved_output): |
17084 | Moved from cli/cli-logging.c. | |
17085 | (cli_set_logging): New function. | |
17086 | (cli_interp_procs): Install cli_set_logging. | |
17087 | * cli/cli-interp.h (make_logging_output, cli_set_logging): | |
17088 | Declare. | |
17089 | * cli/cli-logging.c (struct saved_output_files, saved_output): | |
17090 | Moved to cli/cli-interp.c. | |
17091 | (pop_output_files): Don't save outputs here. | |
17092 | (make_logging_output): New function. | |
17093 | (handle_redirections): Don't build tee nor save previous outputs | |
17094 | here. | |
17095 | * interps.c (current_interp_set_logging): Change prototype. | |
17096 | Assume there's always a set_logging_proc method installed. | |
17097 | * interps.h (interp_set_logging_ftype): Change prototype. | |
17098 | (current_interp_set_logging): Change prototype and adjust comment. | |
17099 | * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to | |
17100 | use make_logging_output. | |
17101 | * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging. | |
17102 | 2017-02-02 Pedro Alves <palves@redhat.com> | |
17103 | ||
5be5dbf0 PA |
17104 | * cli/cli-logging.c (maybe_warn_already_logging): New factored out |
17105 | from ... | |
17106 | (set_logging_overwrite): ... here. | |
17107 | (logging_no_redirect_file): Delete. | |
17108 | (set_logging_redirect): Don't handle redirection on the fly. | |
17109 | Instead warn that "logging off" / "logging on" is necessary. | |
17110 | (pop_output_files): Delete references to logging_no_redirect_file. | |
17111 | (show_logging_command): Always speak in terms of what will happen | |
17112 | once logging is reenabled. | |
17113 | ||
c99cc448 PA |
17114 | 2017-02-02 Pedro Alves <palves@redhat.com> |
17115 | ||
17116 | * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment. | |
17117 | ||
8b172ce7 PA |
17118 | 2017-02-02 Pedro Alves <palves@redhat.com> |
17119 | ||
17120 | * disasm.c (gdb_pretty_print_insn): Rename to ... | |
17121 | (gdb_pretty_print_disassembler::pretty_print_insn): ... this. | |
17122 | Remove gdbarch parameter. Adapt to clear the object's buffers | |
17123 | instead of allocating new buffers, and to print using the object's | |
17124 | gdb_disassembler instead of calling gdb_print_insn. | |
17125 | (dump_insns): Use gdb_pretty_print_disassembler. | |
17126 | * disasm.h (gdb_pretty_print_insn): Delete declaration. | |
17127 | (gdb_pretty_print_disassembler): New class. | |
17128 | * record-btrace.c (btrace_insn_history): Use | |
17129 | gdb_pretty_print_disassembler. | |
17130 | ||
d7e74731 PA |
17131 | 2017-02-02 Pedro Alves <palves@redhat.com> |
17132 | ||
17133 | * ada-lang.c (type_as_string): Use string_file. | |
17134 | * ada-valprint.c (ada_print_floating): Use string_file. | |
17135 | * ada-varobj.c (ada_varobj_scalar_image) | |
17136 | (ada_varobj_get_value_image): Use string_file. | |
17137 | * aix-thread.c (aix_thread_extra_thread_info): Use string_file. | |
17138 | * arm-tdep.c (_initialize_arm_tdep): Use string_printf. | |
17139 | * breakpoint.c (update_inserted_breakpoint_locations) | |
17140 | (insert_breakpoint_locations, reattach_breakpoints) | |
17141 | (print_breakpoint_location, print_one_detail_ranged_breakpoint) | |
17142 | (print_it_watchpoint): Use string_file. | |
17143 | (save_breakpoints): Use stdio_file. | |
17144 | * c-exp.y (oper): Use string_file. | |
17145 | * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and | |
17146 | tee_file. | |
17147 | (pop_output_files): Use delete. | |
17148 | (handle_redirections): Use stdio_file and tee_file. | |
17149 | * cli/cli-setshow.c (do_show_command): Use string_file. | |
17150 | * compile/compile-c-support.c (c_compute_program): Use | |
17151 | string_file. | |
17152 | * compile/compile-c-symbols.c (generate_vla_size): Take a | |
17153 | 'string_file &' instead of a 'ui_file *'. | |
17154 | (generate_c_for_for_one_variable): Take a 'string_file &' instead | |
17155 | of a 'ui_file *'. Use string_file. | |
17156 | (generate_c_for_variable_locations): Take a 'string_file &' | |
17157 | instead of a 'ui_file *'. | |
17158 | * compile/compile-internal.h (generate_c_for_for_one_variable): | |
17159 | Take a 'string_file &' instead of a 'ui_file *'. | |
17160 | * compile/compile-loc2c.c (push, pushf, unary, binary) | |
17161 | (print_label, pushf_register_address, pushf_register) | |
17162 | (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a | |
17163 | 'ui_file *'. Adjust. | |
17164 | * compile/compile.c (compile_to_object): Use string_file. | |
17165 | * compile/compile.h (compile_dwarf_expr_to_c) | |
17166 | (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a | |
17167 | 'ui_file *'. | |
17168 | * cp-support.c (inspect_type): Use string_file and obstack_copy0. | |
17169 | (replace_typedefs_qualified_name): Use string_file and | |
17170 | obstack_copy0. | |
17171 | * disasm.c (gdb_pretty_print_insn): Use string_file. | |
17172 | (gdb_disassembly): Adjust reference the null_stream global. | |
17173 | (do_ui_file_delete): Delete. | |
17174 | (gdb_insn_length): Use null_stream. | |
17175 | * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file. | |
17176 | * dwarf2loc.c (dwarf2_compile_property_to_c) | |
17177 | (locexpr_generate_c_location, loclist_generate_c_location): Take a | |
17178 | 'string_file &' instead of a 'ui_file *'. | |
17179 | * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise. | |
17180 | * dwarf2read.c (do_ui_file_peek_last): Delete. | |
17181 | (dwarf2_compute_name): Use string_file. | |
17182 | * event-top.c (gdb_setup_readline): Use stdio_file. | |
17183 | * gdbarch.sh (verify_gdbarch): Use string_file. | |
17184 | * gdbtypes.c (safe_parse_type): Use null_stream. | |
17185 | * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use | |
17186 | string_file. | |
17187 | * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a | |
17188 | 'string_file *' instead of a 'ui_file *'. | |
17189 | (gdbscm_arch_disassemble): Use string_file. | |
17190 | * guile/scm-frame.c (frscm_print_frame_smob): Use string_file. | |
17191 | * guile/scm-ports.c (class ioscm_file_port): Now a class that | |
17192 | inherits from ui_file. | |
17193 | (ioscm_file_port_delete, ioscm_file_port_rewind) | |
17194 | (ioscm_file_port_put): Delete. | |
17195 | (ioscm_file_port_write): Rename to ... | |
17196 | (ioscm_file_port::write): ... this. Remove file_port_magic | |
17197 | checks. | |
17198 | (ioscm_file_port_new): Delete. | |
17199 | (ioscm_with_output_to_port_worker): Use ioscm_file_port and | |
17200 | ui_file_up. | |
17201 | * guile/scm-type.c (tyscm_type_name): Use string_file. | |
17202 | * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print): | |
17203 | Use string_file. | |
17204 | * infcmd.c (print_return_value_1): Use string_file. | |
17205 | * infrun.c (print_target_wait_results): Use string_file. | |
17206 | * language.c (add_language): Use string_file. | |
17207 | * location.c (explicit_to_string_internal): Use string_file. | |
17208 | * main.c (captured_main_1): Use null_file. | |
17209 | * maint.c (maintenance_print_architecture): Use stdio_file. | |
17210 | * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file. | |
17211 | * mi/mi-common.h (struct mi_interp) <out, err, log, targ, | |
17212 | event_channel>: Change type to mi_console_file pointer. | |
17213 | * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush) | |
17214 | (mi_console_file_delete): Delete. | |
17215 | (struct mi_console_file): Delete. | |
17216 | (mi_console_file_magic): Delete. | |
17217 | (mi_console_file_new): Delete. | |
17218 | (mi_console_file::mi_console_file): New. | |
17219 | (mi_console_file_delete): Delete. | |
17220 | (mi_console_file_fputs): Delete. | |
17221 | (mi_console_file::write): New. | |
17222 | (mi_console_raw_packet): Delete. | |
17223 | (mi_console_file::flush): New. | |
17224 | (mi_console_file_flush): Delete. | |
17225 | (mi_console_set_raw): Rename to ... | |
17226 | (mi_console_file::set_raw): ... this. | |
17227 | * mi/mi-console.h (class mi_console_file): New class. | |
17228 | (mi_console_file_new, mi_console_set_raw): Delete. | |
17229 | * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file. | |
17230 | (mi_set_logging): Use delete and tee_file. Adjust. | |
17231 | * mi/mi-main.c (output_register): Use string_file. | |
17232 | (mi_cmd_data_evaluate_expression): Use string_file. | |
17233 | (mi_cmd_data_read_memory): Use string_file. | |
17234 | (mi_cmd_execute, print_variable_or_computed): Use string_file. | |
17235 | * mi/mi-out.c (mi_ui_out::main_stream): New. | |
17236 | (mi_ui_out::rewind): Use main_stream and | |
17237 | string_file. | |
17238 | (mi_ui_out::put): Use main_stream and string_file. | |
17239 | (mi_ui_out::mi_ui_out): Remove 'stream' parameter. | |
17240 | Allocate a 'string_file' instead. | |
17241 | (mi_out_new): Don't allocate a mem_fileopen stream here. | |
17242 | * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter. | |
17243 | (mi_ui_out::main_stream): Declare method. | |
17244 | * printcmd.c (eval_command): Use string_file. | |
17245 | * psymtab.c (maintenance_print_psymbols): Use stdio_file. | |
17246 | * python/py-arch.c (archpy_disassemble): Use string_file. | |
17247 | * python/py-breakpoint.c (bppy_get_commands): Use string_file. | |
17248 | * python/py-frame.c (frapy_str): Use string_file. | |
17249 | * python/py-framefilter.c (py_print_type, py_print_single_arg): | |
17250 | Use string_file. | |
17251 | * python/py-type.c (typy_str): Use string_file. | |
17252 | * python/py-unwind.c (unwind_infopy_str): Use string_file. | |
17253 | * python/py-value.c (valpy_str): Use string_file. | |
17254 | * record-btrace.c (btrace_insn_history): Use string_file. | |
17255 | * regcache.c (regcache_print): Use stdio_file. | |
17256 | * reggroups.c (maintenance_print_reggroups): Use stdio_file. | |
17257 | * remote.c (escape_buffer): Use string_file. | |
17258 | * rust-lang.c (rust_get_disr_info): Use string_file. | |
17259 | * serial.c (serial_open_ops_1): Use stdio_file. | |
17260 | (do_serial_close): Use delete. | |
17261 | * stack.c (print_frame_arg): Use string_file. | |
17262 | (print_frame_args): Remove local mem_fileopen stream, not used. | |
17263 | (print_frame): Use string_file. | |
17264 | * symmisc.c (maintenance_print_symbols): Use stdio_file. | |
17265 | * symtab.h (struct symbol_computed_ops) <generate_c_location>: | |
17266 | Take a 'string_file *' instead of a 'ui_file *'. | |
17267 | * top.c (new_ui): Use stdio_file and stderr_file. | |
17268 | (free_ui): Use delete. | |
17269 | (execute_command_to_string): Use string_file. | |
17270 | (quit_confirm): Use string_file. | |
17271 | * tracepoint.c (collection_list::append_exp): Use string_file. | |
17272 | * tui/tui-disasm.c (tui_disassemble): Use string_file. | |
17273 | * tui/tui-file.c: Don't include "ui-file.h". | |
17274 | (enum streamtype, struct tui_stream): Delete. | |
17275 | (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen) | |
17276 | (tui_file_isatty, tui_file_rewind, tui_file_put): Delete. | |
17277 | (tui_file::tui_file): New method. | |
17278 | (tui_file_fputs): Delete. | |
17279 | (tui_file_get_strbuf): Delete. | |
17280 | (tui_file::puts): New method. | |
17281 | (tui_file_adjust_strbuf): Delete. | |
17282 | (tui_file_flush): Delete. | |
17283 | (tui_file::flush): New method. | |
17284 | * tui/tui-file.h: Tweak intro comment. | |
17285 | Include ui-file.h. | |
17286 | (tui_fileopen, tui_sfileopen, tui_file_get_strbuf) | |
17287 | (tui_file_adjust_strbuf): Delete declarations. | |
17288 | (class tui_file): New class. | |
17289 | * tui/tui-io.c (tui_initialize_io): Use tui_file. | |
17290 | * tui/tui-regs.c (tui_restore_gdbout): Use delete. | |
17291 | (tui_register_format): Use string_stream. | |
17292 | * tui/tui-stack.c (tui_make_status_line): Use string_file. | |
17293 | (tui_get_function_from_frame): Use string_file. | |
17294 | * typeprint.c (type_to_string): Use string_file. | |
17295 | * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete. | |
17296 | (null_stream): New global. | |
17297 | (ui_file_delete): Delete. | |
17298 | (ui_file::ui_file): New. | |
17299 | (null_file_isatty): Delete. | |
17300 | (ui_file::~ui_file): New. | |
17301 | (null_file_rewind): Delete. | |
17302 | (ui_file::printf): New. | |
17303 | (null_file_put): Delete. | |
17304 | (null_file_flush): Delete. | |
17305 | (ui_file::putstr): New. | |
17306 | (null_file_write): Delete. | |
17307 | (ui_file::putstrn): New. | |
17308 | (null_file_read): Delete. | |
17309 | (ui_file::putc): New. | |
17310 | (null_file_fputs): Delete. | |
17311 | (null_file_write_async_safe): Delete. | |
17312 | (ui_file::vprintf): New. | |
17313 | (null_file_delete): Delete. | |
17314 | (null_file::write): New. | |
17315 | (null_file_fseek): Delete. | |
17316 | (null_file::puts): New. | |
17317 | (ui_file_data): Delete. | |
17318 | (null_file::write_async_safe): New. | |
17319 | (gdb_flush, ui_file_isatty): Adjust. | |
17320 | (ui_file_put, ui_file_rewind): Delete. | |
17321 | (ui_file_write): Adjust. | |
17322 | (ui_file_write_for_put): Delete. | |
17323 | (ui_file_write_async_safe, ui_file_read): Adjust. | |
17324 | (ui_file_fseek): Delete. | |
17325 | (fputs_unfiltered): Adjust. | |
17326 | (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind) | |
17327 | (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe) | |
17328 | (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek) | |
17329 | (set_ui_file_data): Delete. | |
17330 | (string_file::~string_file, string_file::write) | |
17331 | (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup) | |
17332 | (do_ui_file_as_string, ui_file_as_string): Delete. | |
17333 | (do_ui_file_obsavestring, ui_file_obsavestring): Delete. | |
17334 | (struct mem_file): Delete. | |
17335 | (mem_file_new): Delete. | |
17336 | (stdio_file::stdio_file): New. | |
17337 | (mem_file_delete): Delete. | |
17338 | (stdio_file::stdio_file): New. | |
17339 | (mem_fileopen): Delete. | |
17340 | (stdio_file::~stdio_file): New. | |
17341 | (mem_file_rewind): Delete. | |
17342 | (stdio_file::set_stream): New. | |
17343 | (mem_file_put): Delete. | |
17344 | (stdio_file::open): New. | |
17345 | (mem_file_write): Delete. | |
17346 | (stdio_file_magic, struct stdio_file): Delete. | |
17347 | (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete. | |
17348 | (stdio_file::flush): New. | |
17349 | (stdio_file_read): Rename to ... | |
17350 | (stdio_file::read): ... this. Adjust. | |
17351 | (stdio_file_write): Rename to ... | |
17352 | (stdio_file::write): ... this. Adjust. | |
17353 | (stdio_file_write_async_safe): Rename to ... | |
17354 | (stdio_file::write_async_safe) ... this. Adjust. | |
17355 | (stdio_file_fputs): Rename to ... | |
17356 | (stdio_file::puts) ... this. Adjust. | |
17357 | (stdio_file_isatty): Delete. | |
17358 | (stdio_file_fseek): Delete. | |
17359 | (stdio_file::isatty): New. | |
17360 | (stderr_file_write): Rename to ... | |
17361 | (stderr_file::write) ... this. Adjust. | |
17362 | (stderr_file_fputs): Rename to ... | |
17363 | (stderr_file::puts) ... this. Adjust. | |
17364 | (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete. | |
17365 | (stderr_file::stderr_file): New. | |
17366 | (tee_file_magic): Delete. | |
17367 | (struct tee_file): Delete. | |
17368 | (tee_file::tee_file): New. | |
17369 | (tee_file_new): Delete. | |
17370 | (tee_file::~tee_file): New. | |
17371 | (tee_file_delete): Delete. | |
17372 | (tee_file_flush): Rename to ... | |
17373 | (tee_file::flush): ... this. Adjust. | |
17374 | (tee_file_write): Rename to ... | |
17375 | (tee_file::write): ... this. Adjust. | |
17376 | (tee_file::write_async_safe): New. | |
17377 | (tee_file_fputs): Rename to ... | |
17378 | (tee_file::puts): ... this. Adjust. | |
17379 | (tee_file_isatty): Rename to ... | |
17380 | (tee_file::isatty): ... this. Adjust. | |
17381 | * ui-file.h (struct obstack, struct ui_file): Don't | |
17382 | forward-declare. | |
17383 | (ui_file_new, ui_file_flush_ftype, set_ui_file_flush) | |
17384 | (ui_file_write_ftype) | |
17385 | (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs) | |
17386 | (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe) | |
17387 | (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype) | |
17388 | (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind) | |
17389 | (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put) | |
17390 | (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype) | |
17391 | (set_ui_file_fseek): Delete. | |
17392 | (ui_file_data, ui_file_delete, ui_file_rewind) | |
17393 | (struct ui_file): New. | |
17394 | (ui_file_up): New. | |
17395 | (class null_file): New. | |
17396 | (null_stream): Declare. | |
17397 | (ui_file_write_for_put, ui_file_put): Delete. | |
17398 | (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring): | |
17399 | Delete. | |
17400 | (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen) | |
17401 | (gdb_fopen, tee_file_new): Delete. | |
17402 | (struct string_file): New. | |
17403 | (struct stdio_file): New. | |
17404 | (stdio_file_up): New. | |
17405 | (struct stderr_file): New. | |
17406 | (class tee_file): New. | |
17407 | * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead | |
17408 | of a 'ui_file *'. Adjust. | |
17409 | * ui-out.h (class ui_out) <field_stream>: Likewise. | |
17410 | * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete) | |
17411 | (null_stream): Delete. | |
17412 | (error_stream): Take a 'string_file &' instead of a 'ui_file *'. | |
17413 | Adjust. | |
17414 | * utils.h (struct ui_file): Delete forward declaration.. | |
17415 | (make_cleanup_ui_file_delete, null_stream): Delete declarations. | |
17416 | (error_stream): Take a 'string_file &' instead of a | |
17417 | 'ui_file *'. | |
17418 | * varobj.c (varobj_value_get_print_value): Use string_file. | |
17419 | * xtensa-tdep.c (xtensa_verify_config): Use string_file. | |
17420 | * gdbarch.c: Regenerate. | |
17421 | ||
187808b0 PA |
17422 | 2017-02-02 Pedro Alves <palves@redhat.com> |
17423 | ||
17424 | * disasm.c (gdb_disassembler::pretty_print_insn): Rename to... | |
17425 | (gdb_pretty_print_insn): ... this. Now a free function. Add back | |
17426 | a 'gdbarch' parameter. Allocate a mem_fileopen stream here. | |
17427 | Adjust to call gdb_print_insn instead of | |
17428 | gdb_disassembler::print_insn. | |
17429 | (dump_insns, do_mixed_source_and_assembly_deprecated) | |
17430 | (do_mixed_source_and_assembly, do_assembly_only): Add back a | |
17431 | 'gdbarch' parameter. Remove gdb_disassembler parameter. | |
17432 | (gdb_disassembly): Don't allocate a gdb_disassembler here. | |
17433 | * disasm.h (gdb_disassembler::pretty_print_insn): Delete | |
17434 | declaration. | |
17435 | (gdb_pretty_print_insn): Re-add declaration. | |
17436 | * record-btrace.c (btrace_insn_history): Don't allocate a | |
17437 | gdb_disassembler here. Adjust to call gdb_pretty_print_insn. | |
17438 | ||
7a8eb317 SM |
17439 | 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca> |
17440 | ||
17441 | * disasm.h (gdb_disassembly): Remove file_string parameter. | |
17442 | * disasm.c (gdb_disassembly): Likewise. | |
17443 | * cli/cli-cmds.c (print_disassembly): Adapt. | |
17444 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise. | |
17445 | * stack.c (do_gdb_disassembly): Likewise. | |
17446 | ||
7346ef59 AA |
17447 | 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com> |
17448 | ||
17449 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For | |
17450 | DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian | |
17451 | targets. And if the implicit value is longer than needed, extract | |
17452 | the first bytes instead of the "least significant" ones. | |
17453 | ||
cd4007e4 MM |
17454 | 2017-02-01 Markus Metzger <markus.t.metzger@intel.com> |
17455 | ||
17456 | * btrace.c (btrace_enable): Do not call btrace_add_pc for | |
17457 | BTRACE_FORMAT_PT or if can_access_registers_ptid returns false. | |
17458 | (btrace_fetch): Assert can_access_registers_ptid. | |
17459 | * record-btrace.c (require_btrace_thread, record_btrace_info): Call | |
17460 | validate_registers_access. | |
17461 | ||
cf77c34e MM |
17462 | 2017-02-01 Markus Metzger <markus.t.metzger@intel.com> |
17463 | ||
17464 | * gdbthread.h (can_access_registers_ptid): New. | |
17465 | * thread.c (can_access_registers_ptid): New. | |
17466 | ||
be85ce7d PA |
17467 | 2017-02-01 Pedro Alves <palves@redhat.com> |
17468 | ||
17469 | * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length. | |
17470 | ||
29b0b251 PA |
17471 | 2017-01-31 Pedro Alves <palves@redhat.com> |
17472 | ||
17473 | * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified): | |
17474 | Fix typos. | |
17475 | ||
289b5b24 PA |
17476 | 2017-01-31 Pedro Alves <palves@redhat.com> |
17477 | ||
17478 | * stack.c (print_frame_args): Remove local mem_fileopen stream, | |
17479 | not used. | |
17480 | ||
b47413b4 PA |
17481 | 2017-01-31 Pedro Alves <palves@redhat.com> |
17482 | ||
17483 | * varobj.c (varobj_value_get_print_value): Remove xstrdup call. | |
17484 | ||
60adb36c PA |
17485 | 2017-01-31 Pedro Alves <palves@redhat.com> |
17486 | ||
17487 | * common/scoped_restore.h | |
17488 | (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and | |
17489 | change the value's parameter type to T2. | |
17490 | (make_scoped_restore): Likewise. | |
17491 | ||
2735833d WT |
17492 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
17493 | Richard Henderson <rth@redhat.com> | |
17494 | ||
17495 | * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define. | |
17496 | (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE | |
17497 | GS_BASE for older kernels. | |
17498 | (amd64_linux_store_inferior_registers): Add case to store FS_BASE | |
17499 | GS_BASE for older kernels. | |
17500 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE | |
17501 | and GS_BASE to the offset table. | |
17502 | (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the | |
17503 | system register group. | |
17504 | * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case | |
17505 | for older kernels. | |
17506 | * amd64-tdep.c (amd64_init_abi): Add segment registers for the | |
17507 | amd64 ABI. | |
17508 | * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and | |
17509 | AMD64_GSBASE_REGNUM. | |
17510 | (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1. | |
17511 | * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat) | |
17512 | (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat) | |
17513 | (x32-avx-linux.dat, x32-avx512-linux.dat): Add | |
17514 | i386/64bit-segments.xml in those rules. | |
17515 | * features/i386/64bit-segments.xml: New file. | |
17516 | * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml. | |
17517 | * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml. | |
17518 | * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml. | |
17519 | * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml. | |
17520 | * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml. | |
17521 | * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml. | |
17522 | * features/i386/amd64-linux.xml: Add 64bit-segments.xml. | |
17523 | * features/i386/amd64-avx-linux.c: Regenerated. | |
17524 | * features/i386/amd64-avx-mpx-linux.c: Regenerated. | |
17525 | * features/i386/amd64-avx-mpx.c: Regenerated. | |
17526 | * features/i386/amd64-avx512-linux.c: Regenerated. | |
17527 | * features/i386/amd64-linux.c: Regenerated. | |
17528 | * features/i386/amd64-mpx-linux.c: Regenerated. | |
17529 | * features/i386/i386-avx-mpx-linux.c: Regenerated. | |
17530 | * features/i386/i386-avx-mpx.c: Regenerated. | |
17531 | * features/i386/x32-avx-linux.c: Regenerated. | |
17532 | * features/i386/x32-avx512-linux.c: Regenerated. | |
17533 | * regformats/i386/amd64-avx-linux.dat: Regenerated. | |
17534 | * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated. | |
17535 | * regformats/i386/amd64-avx512-linux.dat: Regenerated. | |
17536 | * regformats/i386/amd64-linux.dat: Regenerated. | |
17537 | * regformats/i386/amd64-mpx-linux.dat: Regenerated. | |
17538 | * regformats/i386/x32-avx-linux.dat: Regenerated. | |
17539 | * regformats/i386/x32-avx512-linux.dat: Regenerated. | |
17540 | * regformats/i386/x32-linux.dat: Regenerated. | |
17541 | ||
8884e97e WT |
17542 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
17543 | ||
17544 | * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): | |
17545 | Set to AMD64_NUM_REGS. | |
17546 | ||
7005d26a WT |
17547 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
17548 | ||
17549 | * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic | |
17550 | that checks validity of a register number. | |
17551 | ||
4bd2e1b2 KC |
17552 | 2017-01-27 Kees Cook <keescook@google.com> |
17553 | ||
17554 | * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call | |
17555 | fetch_fpregs if target has fpa registers. | |
17556 | (arm_linux_store_inferior_registers): Call store_fpregs if target | |
17557 | has fpa registers. | |
17558 | ||
7cf1de6c AA |
17559 | 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com> |
17560 | ||
17561 | * cris-tdep.c (cris_gdbarch_init): Remove check for | |
17562 | info.byte_order and force it to BFD_ENDIAN_LITTLE. | |
17563 | ||
874a1c8c AT |
17564 | 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com> |
17565 | ||
17566 | * corelow.c (get_core_register_section): Check for regset | |
17567 | existence before checking for REGSET_VARIABLE_SIZE. | |
17568 | ||
d8b49cf0 YQ |
17569 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
17570 | Pedro Alves <palves@redhat.com> | |
17571 | ||
17572 | PR gdb/20939 | |
17573 | * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't | |
17574 | call memory_error, save memaddr instead. | |
17575 | (gdb_disassembler::print_insn): If gdbarch_print_insn returns | |
17576 | negative, cal memory_error. | |
17577 | * disasm.h (gdb_disassembler) <m_err_memaddr>: New field. | |
17578 | ||
658ca58c YQ |
17579 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
17580 | ||
17581 | * disasm-selftests.c (memory_error_test): New function. | |
17582 | (_initialize_disasm_selftests): Register memory_error_test. | |
17583 | ||
79843d45 YQ |
17584 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
17585 | ||
17586 | * Makefile.in (SFILES): Add disasm-selftests.c and | |
17587 | selftest-arch.c. | |
17588 | (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o. | |
17589 | * disasm-selftests.c: New file. | |
17590 | * selftest-arch.c: New file. | |
17591 | * selftest-arch.h: New file. | |
17592 | ||
8cafda32 YQ |
17593 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
17594 | ||
17595 | * mep-tdep.c (mep_gdb_print_insn): Set info->arch | |
17596 | to bfd_arch_mep. Don't return 0 if section is not | |
17597 | found. Call print_insn_mep. | |
17598 | ||
e47ad6c0 YQ |
17599 | 2017-01-26 Pedro Alves <palves@redhat.com> |
17600 | Yao Qi <yao.qi@linaro.org> | |
17601 | ||
17602 | * arm-tdep.c: Include "disasm.h". | |
17603 | (gdb_print_insn_arm): Update code to get gdbarch. | |
17604 | * disasm.c (dis_asm_read_memory): Change it to | |
17605 | gdb_disassembler::dis_asm_read_memory. | |
17606 | (dis_asm_memory_error): Likewise. | |
17607 | (dis_asm_print_address): Likewise. | |
17608 | (gdb_pretty_print_insn): Change it to | |
17609 | gdb_disassembler::pretty_print_insn. | |
17610 | (dump_insns): Add one argument gdb_disassemlber. All | |
17611 | callers updated. | |
17612 | (do_mixed_source_and_assembly_deprecated): Likewise. | |
17613 | (do_mixed_source_and_assembly): Likewise. | |
17614 | (do_assembly_only): Likewise. | |
17615 | (gdb_disassembler::gdb_disassembler): New. | |
17616 | (gdb_disassembler::print_insn): New. | |
17617 | * disasm.h (class gdb_disassembler): New. | |
17618 | (gdb_pretty_print_insn): Remove declaration. | |
17619 | (gdb_disassemble_info): Likewise. | |
17620 | * guile/scm-disasm.c (class gdbscm_disassembler): New. | |
17621 | (gdbscm_disasm_read_memory_worker): Update. | |
17622 | (gdbscm_disasm_read_memory): Update. | |
17623 | (gdbscm_disasm_memory_error): Remove. | |
17624 | (gdbscm_disasm_print_address): Remove. | |
17625 | (gdbscm_disassembler::gdbscm_disassembler): New. | |
17626 | (gdbscm_print_insn_from_port): Update. | |
17627 | * mips-tdep.c: Include disasm.h. | |
17628 | (gdb_print_insn_mips): Update code to get gdbarch. | |
17629 | * record-btrace.c (btrace_insn_history): Update. | |
17630 | * spu-tdep.c: Include disasm.h. | |
17631 | (struct spu_dis_asm_data): Remove. | |
17632 | (struct spu_dis_asm_info): New. | |
17633 | (spu_dis_asm_print_address): Use spu_dis_asm_info to get | |
17634 | SPU id. | |
17635 | (gdb_print_insn_spu): Cast disassemble_info to | |
17636 | spu_dis_asm_info. | |
17637 | ||
80d75874 YQ |
17638 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
17639 | ||
17640 | * disasm.c (do_ui_file_delete): Delete. | |
17641 | (gdb_insn_length): Move code creating stream to ... | |
17642 | * utils.c (null_stream): ... here. New function. | |
17643 | * utils.h (null_stream): Declare. | |
17644 | ||
60685cd0 SM |
17645 | 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
17646 | ||
17647 | * python/py-inferior.c (find_thread_object): Return directly | |
17648 | from the loop. Remove "found" variable. | |
17649 | ||
eb1cdb62 JB |
17650 | 2017-01-21 Joel Brobecker <brobecker@adacore.com> |
17651 | ||
17652 | GDB 7.12.1 released. | |
17653 | ||
b1ce6568 SM |
17654 | 2017-01-20 Simon Marchi <simon.marchi@ericsson.com> |
17655 | ||
17656 | * python/py-function.c (fnpy_call): Reorder declarations to have | |
17657 | the gdbpy_enter object declared first. | |
17658 | * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise. | |
17659 | ||
6f8b0407 SM |
17660 | 2017-01-20 Simon Marchi <simon.marchi@ericsson.com> |
17661 | ||
fec93fb1 | 17662 | PR python/21068 |
6f8b0407 SM |
17663 | * python/python-internal.h (PyMem_RawMalloc): Define for |
17664 | Python < 3.4. | |
17665 | * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use | |
17666 | PyMem_RawMalloc instead of PyMem_Malloc. | |
17667 | ||
78cbbba8 LM |
17668 | 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com> |
17669 | Luis Machado <lgustavo@codesourcery.com> | |
17670 | ||
17671 | * NEWS (New commands): Mention flash-erase. | |
17672 | (New MI commands): Mention target-flash-erase. | |
17673 | * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI | |
17674 | command. | |
17675 | * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration. | |
17676 | * mi/mi-main.c (mi_cmd_target_flash_erase): New function. | |
17677 | * target.c (flash_erase_command): New function. | |
17678 | (initialize_targets): Add new flash-erase command. | |
17679 | * target.h (flash_erase_command): New declaration. | |
17680 | ||
2132fe85 JB |
17681 | 2017-01-20 Joel Brobecker <brobecker@adacore.com> |
17682 | ||
17683 | * nat/linux-ptrace.c: Only include <sys/procfs.h> if | |
17684 | HAVE_SYS_PROCFS_H is defined. | |
17685 | ||
d1dff226 AH |
17686 | 2017-01-18 Alan Hayward <alan.hayward@arm.com> |
17687 | ||
17688 | * remote.c (struct cached_reg): Change data into a pointer. | |
17689 | * (stop_reply_dtr): Free data pointers before deleting vector. | |
17690 | (process_stop_reply): Likewise. | |
17691 | (remote_parse_stop_reply): Allocate space for data | |
17692 | ||
9890e433 AH |
17693 | 2017-01-18 Alan Hayward <alan.hayward@arm.com> |
17694 | ||
17695 | * amd64-tdep.c (amd64_pseudo_register_read_value): remove | |
17696 | MAX_REGISTER_SIZE. | |
17697 | (amd64_pseudo_register_read_value): Likewise. | |
17698 | * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE. | |
17699 | (store_register_using_P): Likewise. | |
17700 | * regcache.c (regcache_xfer_part): Likewise. | |
17701 | ||
7a36499a IR |
17702 | 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com> |
17703 | ||
17704 | Split real and pseudo registers. | |
17705 | * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro. | |
17706 | (sparc32_pseudo_regnum): New enum. | |
17707 | * sparc64-tdep.h (sparc64_pseudo_regnum): New enum. | |
17708 | * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro. | |
17709 | (SPARC32_CP0_REGISTERS): New macro. | |
17710 | (sparc32_pseudo_register_name): New function. | |
17711 | (sparc32_register_name): Use sparc32_pseudo_register_name. | |
17712 | (sparc32_pseudo_register_type): New function. | |
17713 | (sparc32_register_type): Use sparc32_pseudo_register_type. | |
17714 | (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle | |
17715 | pseudo register numbers. | |
17716 | * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro. | |
17717 | (SPARC64_CP0_REGISTERS): New macro. | |
17718 | (sparc64_pseudo_register_name): New function. | |
17719 | (sparc64_register_name): Use sparc64_pseudo_register_name. | |
17720 | (sparc64_pseudo_register_type): New function. | |
17721 | (sparc64_register_type): Use sparc64_pseudo_register_type. | |
17722 | (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle | |
17723 | pseudo register numbers. | |
17724 | (sparc64_store_floating_fields, sparc64_extract_floating_fields, | |
17725 | sparc64_store_arguments): Handle pseudo register numbers. | |
17726 | ||
6f8976bf YQ |
17727 | 2017-01-13 Yao Qi <yao.qi@linaro.org> |
17728 | ||
17729 | * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro. | |
17730 | (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug | |
17731 | output. | |
17732 | (getpkt_or_notif_sane_1): Likewise. | |
17733 | ||
e4241ace YQ |
17734 | 2017-01-13 Yao Qi <yao.qi@linaro.org> |
17735 | ||
17736 | * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead | |
17737 | of CC. Pass "-x c++-header" instead of "-x c". | |
17738 | ||
3015c064 SM |
17739 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
17740 | ||
17741 | * remote.c (remote_can_async_p): Update comment. | |
17742 | ||
fde1b17d SM |
17743 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
17744 | ||
17745 | * linux-nat.c (linux_nat_can_async_p): Update comment. | |
17746 | ||
ca1ca08b SM |
17747 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
17748 | ||
17749 | * serial.c (serial_open): Forget about "pc" and "lpt" serial interface. | |
17750 | ||
4ad2da73 SM |
17751 | 2017-01-11 Simon Marchi <simon.marchi@ericsson.com> |
17752 | ||
17753 | * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment. | |
17754 | ||
c8b23b3f TT |
17755 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17756 | ||
17757 | * python/py-type.c (typy_legacy_template_argument): Update. | |
17758 | * cp-support.h (struct demangle_parse_info) (demangle_parse_info, | |
17759 | ~demangle_parse_info): Declare new members. | |
17760 | (cp_demangled_name_to_comp): Return unique_ptr. | |
17761 | (cp_demangled_name_parse_free) | |
17762 | (make_cleanup_cp_demangled_name_parse_free) | |
17763 | (cp_new_demangle_parse_info): Remove. | |
17764 | * cp-support.c (do_demangled_name_parse_free_cleanup) | |
17765 | (make_cleanup_cp_demangled_name_parse_free): Remove. | |
17766 | (inspect_type, cp_canonicalize_string_full) | |
17767 | (cp_canonicalize_string): Update. | |
17768 | (mangled_name_to_comp): Change return type. | |
17769 | (cp_class_name_from_physname, method_name_from_physname) | |
17770 | (cp_func_name, cp_remove_params): Update. | |
17771 | * cp-name-parser.y (demangle_parse_info): New constructor, from | |
17772 | cp_new_demangle_parse_info. | |
17773 | (~demangle_parse_info): New destructor, from | |
17774 | cp_demangled_name_parse_free. | |
17775 | (cp_merge_demangle_parse_infos): Update. | |
17776 | (cp_demangled_name_to_comp): Change return type. | |
17777 | ||
1ac32117 TT |
17778 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17779 | ||
17780 | * top.c (prevent_dont_repeat): Change return type. | |
17781 | * python/python.c (execute_gdb_command): Use std::string. | |
17782 | Update. | |
17783 | * guile/guile.c (gdbscm_execute_gdb_command): Update. | |
17784 | * command.h (prevent_dont_repeat): Change return type. | |
17785 | * breakpoint.c (bpstat_do_actions_1): Update. | |
17786 | ||
0cf08227 TT |
17787 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17788 | ||
17789 | * value.h (scoped_value_mark::~scoped_value_mark): Call | |
17790 | free_to_mark. | |
17791 | (scoped_value_mark::free_to_mark): New method. | |
17792 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use | |
17793 | scoped_value_mark. | |
17794 | ||
eb115069 TT |
17795 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17796 | ||
17797 | * python/py-value.c (valpy_dereference, valpy_referenced_value) | |
17798 | (valpy_reference_value, valpy_const_value, valpy_get_address) | |
17799 | (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast) | |
17800 | (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative) | |
17801 | (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark. | |
17802 | * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use | |
17803 | scoped_value_mark. | |
17804 | * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark. | |
17805 | * value.h (scoped_value_mark): New class. | |
17806 | ||
906768f9 TT |
17807 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17808 | ||
17809 | * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder. | |
17810 | * psympriv.h (make_cleanup_discard_psymtabs): Don't declare. | |
17811 | * psymtab.c (discard_psymtabs_upto): Remove. | |
17812 | (make_cleanup_discard_psymtabs): Remove. | |
17813 | (struct psymtab_state): Remove. | |
17814 | ||
bef155c3 TT |
17815 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17816 | ||
17817 | * record-full.c (record_full_save_cleanups): Remove. | |
17818 | (record_full_save): Use gdb::unlinker. | |
17819 | * gcore.c (do_bfd_delete_cleanup): Remove. | |
17820 | (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove | |
17821 | cleanups. | |
17822 | * dwarf2read.c (unlink_if_set): Remove. | |
17823 | (write_psymtabs_to_index): Use gdb::unlinker. | |
17824 | * common/gdb_unlinker.h: New file. | |
17825 | ||
192b62ce TT |
17826 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17827 | ||
17828 | * windows-tdep.c (windows_xfer_shared_library): Update. | |
17829 | * windows-nat.c (windows_make_so): Update. | |
17830 | * utils.h (make_cleanup_bfd_unref): Remove. | |
17831 | * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove. | |
17832 | * symfile.h (symfile_bfd_open) | |
17833 | (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr. | |
17834 | * symfile.c (read_symbols, symbol_file_add) | |
17835 | (separate_debug_file_exists): Update. | |
17836 | (symfile_bfd_open): Return gdb_bfd_ref_ptr. | |
17837 | (generic_load, reread_symbols): Update. | |
17838 | * symfile-mem.c (symbol_file_add_from_memory): Update. | |
17839 | * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr. | |
17840 | (spu_symbol_file_add_from_memory): Update. | |
17841 | * solist.h (struct target_so_ops) <bfd_open>: Return | |
17842 | gdb_bfd_ref_ptr. | |
17843 | (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr. | |
17844 | * solib.c (solib_bfd_fopen, solib_bfd_open): Return | |
17845 | gdb_bfd_ref_ptr. | |
17846 | (solib_map_sections, reload_shared_libraries_1): Update. | |
17847 | * solib-svr4.c (enable_break): Update. | |
17848 | * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr. | |
17849 | * solib-frv.c (enable_break2): Update. | |
17850 | * solib-dsbt.c (enable_break): Update. | |
17851 | * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return | |
17852 | gdb_bfd_ref_ptr. | |
17853 | (darwin_solib_get_all_image_info_addr_at_init): Update. | |
17854 | (darwin_bfd_open): Return gdb_bfd_ref_ptr. | |
17855 | * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr. | |
17856 | * record-full.c (record_full_save): Update. | |
17857 | * python/py-objfile.c (objfpy_add_separate_debug_file): Update. | |
17858 | * procfs.c (insert_dbx_link_bpt_in_file): Update. | |
17859 | * minidebug.c (find_separate_debug_file_in_section): Return | |
17860 | gdb_bfd_ref_ptr. | |
17861 | * machoread.c (macho_add_oso_symfile): Change abfd to | |
17862 | gdb_bfd_ref_ptr. | |
17863 | (macho_symfile_read_all_oso): Update. | |
17864 | (macho_check_dsym): Return gdb_bfd_ref_ptr. | |
17865 | (macho_symfile_read): Update. | |
17866 | * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr. | |
17867 | (jit_bfd_try_read_symtab): Update. | |
17868 | * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
17869 | (gdb_bfd_openw, gdb_bfd_openr_iovec) | |
17870 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return | |
17871 | gdb_bfd_ref_ptr. | |
17872 | (gdb_bfd_ref_policy): New struct. | |
17873 | (gdb_bfd_ref_ptr): New typedef. | |
17874 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
17875 | (gdb_bfd_openw, gdb_bfd_openr_iovec) | |
17876 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return | |
17877 | gdb_bfd_ref_ptr. | |
17878 | * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr. | |
17879 | * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr. | |
17880 | (gcore_command): Update. | |
17881 | * exec.c (exec_file_attach): Update. | |
17882 | * elfread.c (elf_symfile_read): Update. | |
17883 | * dwarf2read.c (dwarf2_get_dwz_file): Update. | |
17884 | (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr. | |
17885 | (open_and_init_dwo_file): Update. | |
17886 | (open_dwp_file): Return gdb_bfd_ref_ptr. | |
17887 | (open_and_init_dwp_file): Update. | |
17888 | * corelow.c (core_open): Update. | |
17889 | * compile/compile-object-load.c (compile_object_load): Update. | |
17890 | * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator. | |
17891 | * coffread.c (coff_symfile_read): Update. | |
17892 | * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return | |
17893 | gdb_bfd_ref_ptr. Rename. | |
17894 | (dump_bfd_file, restore_command): Update. | |
17895 | * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. | |
17896 | * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. | |
17897 | (find_separate_debug_file_by_buildid): Update. | |
17898 | ||
50315b21 TT |
17899 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17900 | ||
17901 | * common/gdb_ref_ptr.h: New file. | |
17902 | * python/py-ref.h (struct gdbpy_ref_policy): New. | |
17903 | (gdbpy_ref): Now a typedef. | |
17904 | ||
fc4007c9 TT |
17905 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17906 | ||
17907 | * utils.h (make_cleanup_htab_delete): Don't declare. | |
17908 | * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete): | |
17909 | Remove. | |
17910 | * linespec.c (decode_compound_collector): Add constructor, | |
17911 | destructor. | |
17912 | (lookup_prefix_sym): Remove cleanup. | |
17913 | (symtab_collector): Add constructor, destructor. | |
17914 | (collect_symtabs_from_filename): Remove cleanup. | |
17915 | * disasm.c (do_mixed_source_and_assembly): Use htab_up. | |
17916 | * compile/compile-c-symbols.c (generate_c_for_variable_locations): | |
17917 | Use htab_up. | |
17918 | * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up. | |
17919 | * dwarf2read.c (dw2_expand_symtabs_matching) | |
17920 | (dw2_map_symbol_filenames, dwarf_decode_macros) | |
17921 | (write_psymtabs_to_index): Use htab_up. | |
17922 | * dwarf2loc.c (func_verify_no_selftailcall) | |
17923 | (call_site_find_chain_1, func_verify_no_selftailcall) | |
17924 | (chain_candidate, call_site_find_chain_1): Use std::unordered_set, | |
17925 | std::vector, gdb::unique_xmalloc_ptr. | |
17926 | (call_sitep): Remove typedef. | |
17927 | (dwarf2_locexpr_baton_eval): Remove unused variable. | |
17928 | ||
8dbcee67 TT |
17929 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17930 | ||
17931 | * python/python-internal.h (make_cleanup_py_decref) | |
17932 | (make_cleanup_py_xdecref): Don't declare. | |
17933 | * python/py-utils.c (py_decref, make_cleanup_py_decref) | |
17934 | (py_xdecref, make_cleanup_py_xdecref): Remove. | |
17935 | ||
13df46cc TT |
17936 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17937 | ||
17938 | * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref. | |
17939 | (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref. | |
17940 | ||
06fc9bf7 TT |
17941 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17942 | ||
17943 | * python/py-framefilter.c (enumerate_args): Use gdbpy_ref. | |
17944 | ||
830a4934 TT |
17945 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17946 | ||
17947 | * python/py-utils.c (unicode_to_encoded_string) | |
17948 | (python_string_to_target_string) | |
17949 | (python_string_to_target_python_string) | |
17950 | (python_string_to_host_string, gdbpy_obj_to_string) | |
17951 | (get_addr_from_python): Use gdbpy_ref. | |
17952 | ||
4586d543 TT |
17953 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17954 | ||
17955 | * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use | |
17956 | gdbpy_ref. | |
17957 | ||
59876f8f TT |
17958 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17959 | ||
17960 | * python/python.c (eval_python_command, gdbpy_decode_line) | |
17961 | (gdbpy_run_events, gdbpy_start_type_printers) | |
17962 | (gdbpy_apply_type_printers): Use gdbpy_ref. | |
17963 | ||
97d83487 TT |
17964 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17965 | ||
17966 | * python/py-param.c (get_doc_string, compute_enum_values): Use | |
17967 | gdbpy_ref. | |
17968 | ||
9205649a TT |
17969 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17970 | ||
17971 | * python/py-inferior.c (find_thread_object, build_inferior_list): | |
17972 | Use gdbpy_ref. | |
17973 | ||
74c49d45 TT |
17974 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17975 | ||
17976 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. | |
17977 | ||
16361ffb TT |
17978 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17979 | ||
17980 | * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use | |
17981 | gdbpy_ref. | |
17982 | ||
905f2cca TT |
17983 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17984 | ||
17985 | * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove | |
17986 | extra incref. | |
17987 | (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init): | |
17988 | Use gdbpy_ref. | |
17989 | ||
64081434 TT |
17990 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17991 | ||
17992 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use | |
17993 | gdbpy_ref. | |
17994 | ||
59e9e831 TT |
17995 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17996 | ||
17997 | * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't | |
17998 | decref results of PyArg_ParseTupleAndKeywords. | |
17999 | ||
9de10f6d TT |
18000 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18001 | ||
18002 | * python/python.c (python_run_simple_file): Use | |
18003 | unique_xmalloc_ptr, gdbpy_ref. | |
18004 | ||
2bd5759d TT |
18005 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18006 | ||
18007 | * python/py-prettyprint.c (print_stack_unless_memory_error) | |
18008 | (print_string_repr, print_children): Use gdbpy_ref. | |
18009 | (dummy_python_frame): New class. | |
18010 | (dummy_python_frame::dummy_python_frame): Rename from | |
18011 | push_dummy_python_frame. | |
18012 | (py_restore_tstate): Remove. | |
18013 | ||
3b4e0e01 TT |
18014 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18015 | ||
18016 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. | |
18017 | ||
17a22718 TT |
18018 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18019 | ||
18020 | * python/python.c (ensure_python_env, restore_python_env): | |
18021 | Remove. | |
18022 | * python/python-internal.h (ensure_python_env): Don't declare. | |
18023 | * varobj.h (varobj_ensure_python_env): Don't declare. | |
18024 | * varobj.c (varobj_ensure_python_env): Remove. | |
18025 | ||
68cdc557 TT |
18026 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18027 | ||
18028 | * varobj.c (varobj_value_get_print_value): Use | |
18029 | gdbpy_enter_varobj. | |
18030 | ||
1eba6383 TT |
18031 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18032 | ||
18033 | * python/py-prettyprint.c (print_string_repr, print_children): | |
18034 | Update. | |
18035 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type | |
18036 | of "encoding". | |
18037 | * varobj.c (varobj_value_get_print_value): Update. | |
18038 | * python/python-internal.h (gdbpy_extract_lazy_string): Update. | |
18039 | ||
bde7b3e3 TT |
18040 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18041 | ||
18042 | * varobj.c (varobj_get_display_hint) | |
18043 | (dynamic_varobj_has_child_method, install_new_value_visualizer) | |
18044 | (varobj_set_visualizer, free_variable): Use | |
18045 | gdbpy_enter_varobj. | |
18046 | ||
a7785f8c TT |
18047 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18048 | ||
18049 | * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref. | |
18050 | (do_finish_initialization): New function. Use gdbpy_ref. | |
18051 | (gdbpy_finish_initialization): Use gdbpy_enter. Call | |
18052 | do_finish_initialization. | |
18053 | ||
2865bfce TT |
18054 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18055 | ||
18056 | * python/py-param.c (get_set_value, get_show_value): Use | |
18057 | gdbpy_enter, gdbpy_ref. | |
18058 | ||
0e9dcc75 TT |
18059 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18060 | ||
18061 | * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref. | |
18062 | ||
12a5cedd TT |
18063 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18064 | ||
18065 | * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref. | |
18066 | ||
788f2586 TT |
18067 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18068 | ||
18069 | * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next): | |
18070 | Use gdbpy_enter_varobj. | |
18071 | ||
6cd67bea TT |
18072 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18073 | ||
18074 | * varobj.c (gdbpy_enter_varobj): New constructor. | |
18075 | * python/python-internal.h (gdbpy_enter_varobj): New class. | |
18076 | * python/py-varobj.c (py_varobj_get_iterator): Use | |
18077 | gdbpy_enter_varobj. | |
18078 | ||
14b122bf TT |
18079 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18080 | ||
18081 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use | |
18082 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. | |
18083 | (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter. | |
18084 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, | |
18085 | unique_xmalloc_ptr. | |
18086 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter. | |
18087 | ||
bf1ca3b9 TT |
18088 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18089 | ||
18090 | * python/py-xmethods.c (invoke_match_method): Use | |
18091 | gdbpy_ref. | |
18092 | ||
572a5524 TT |
18093 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18094 | ||
18095 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use | |
18096 | gdbpy_enter, gdbpy_ref. | |
18097 | ||
396a78b6 TT |
18098 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18099 | ||
18100 | * python/python.c (python_interactive_command): Use gdbpy_enter. | |
18101 | ||
a88b13c7 TT |
18102 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18103 | ||
18104 | * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter, | |
18105 | gdbpy_ref. | |
18106 | ||
e9f0c363 TT |
18107 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18108 | ||
18109 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use | |
18110 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. | |
18111 | ||
6349f452 TT |
18112 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18113 | ||
18114 | * utils.h (htab_deleter): New struct. | |
18115 | (htab_up): New typedef. | |
18116 | * python/py-framefilter.c (gdbpy_apply_frame_filter): Use | |
18117 | gdbpy_enter, gdbpy_ref, htab_up. | |
18118 | ||
c0171de6 TT |
18119 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18120 | ||
18121 | * python/py-unwind.c (pending_frame_invalidate): Remove. | |
18122 | (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref. | |
18123 | ||
f18e226f TT |
18124 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18125 | ||
18126 | * python/py-xmethods.c (gdbpy_free_xmethod_worker_data) | |
18127 | (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter. | |
18128 | ||
c57af3f1 TT |
18129 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18130 | ||
18131 | * python/py-type.c (save_objfile_types): Use gdbpy_enter. | |
18132 | ||
60e600ec TT |
18133 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18134 | ||
18135 | * python/python.c (gdbpy_eval_from_control_command) | |
18136 | (gdbpy_source_script, gdbpy_run_events) | |
18137 | (gdbpy_source_objfile_script, gdbpy_execute_objfile_script) | |
18138 | (gdbpy_free_type_printers, gdbpy_finish_initialization): Use | |
18139 | gdbpy_enter. | |
18140 | ||
bf7da5b0 TT |
18141 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18142 | ||
18143 | * python/py-progspace.c (py_free_pspace): Use gdbpy_enter. | |
18144 | ||
2d38bced TT |
18145 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18146 | ||
18147 | * python/py-objfile.c (py_free_objfile): Use gdbpy_enter. | |
18148 | ||
07bc7329 TT |
18149 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18150 | ||
18151 | * python/py-inferior.c (python_on_normal_stop, python_on_resume) | |
18152 | (python_on_inferior_call_pre, python_on_inferior_call_post) | |
18153 | (python_on_memory_change, python_on_register_change) | |
18154 | (python_inferior_exit, python_new_objfile, add_thread_object) | |
18155 | (delete_thread_object, py_free_inferior): Use gdbpy_enter. | |
18156 | ||
6e7c365e TT |
18157 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18158 | ||
18159 | * python/py-finishbreakpoint.c (bpfinishpy_handle_stop) | |
18160 | (bpfinishpy_handle_exit): Use gdbpy_enter. | |
18161 | ||
6ba0cd40 TT |
18162 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18163 | ||
18164 | * python/py-cmd.c (cmdpy_destroyer) | |
18165 | (cmdpy_completer_handle_brkchars, cmdpy_completer): Use | |
18166 | gdbpy_enter. | |
18167 | ||
de2dc875 TT |
18168 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18169 | ||
18170 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use | |
18171 | gdbpy_enter. | |
18172 | (gdbpy_breakpoint_has_cond): Likewise. | |
18173 | ||
4ecee2c4 TT |
18174 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18175 | ||
18176 | * python/python.c (gdbpy_enter): New constructor. | |
18177 | (~gdbpy_enter): New destructor. | |
18178 | (restore_python_env, ensure_python_env): Rewrite. | |
18179 | * python/python-internal.h (gdbpy_enter): New class. | |
18180 | ||
37fce74f TT |
18181 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18182 | ||
18183 | * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref. | |
18184 | ||
53a0cca3 TT |
18185 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18186 | ||
18187 | * python/py-value.c (value_has_field, get_field_flag) | |
18188 | (get_field_type, valpy_getitem, convert_value_from_python): Use | |
18189 | gdbpy_ref. | |
18190 | ||
ff3724f5 TT |
18191 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18192 | ||
18193 | * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use | |
18194 | gdbpy_ref. | |
18195 | ||
0700aea5 TT |
18196 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18197 | ||
18198 | * python/py-prettyprint.c (search_pp_list) | |
18199 | (find_pretty_printer_from_objfiles) | |
18200 | (find_pretty_printer_from_progspace) | |
18201 | (find_pretty_printer_from_gdb, find_pretty_printer) | |
18202 | (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use | |
18203 | gdbpy_ref. | |
18204 | ||
1bb44c9f TT |
18205 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18206 | ||
18207 | * python/py-param.c (call_doc_function): Use gdbpy_ref. | |
18208 | ||
87ce03fd TT |
18209 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18210 | ||
18211 | * python/py-linetable.c (build_line_table_tuple_from_pcs) | |
18212 | (ltpy_get_all_source_lines): Use gdbpy_ref. | |
18213 | ||
ee0a3fb8 TT |
18214 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18215 | ||
18216 | * python/py-framefilter.c (extract_sym, extract_value) | |
18217 | (get_py_iter_from_func, bootstrap_python_frame_filters): Use | |
18218 | gdbpy_ref. | |
18219 | ||
bf2a52fa TT |
18220 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18221 | ||
18222 | * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref. | |
18223 | ||
f59fe7f8 TT |
18224 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18225 | ||
18226 | * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref. | |
18227 | ||
80bd970a TT |
18228 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18229 | ||
18230 | * python/py-function.c (convert_values_to_python, fnpy_init): Use | |
18231 | gdbpy_ref. | |
18232 | ||
d1b3de2e TT |
18233 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18234 | ||
18235 | * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref. | |
18236 | ||
3bb43384 TT |
18237 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18238 | ||
18239 | * python/py-type.c (convert_field, make_fielditem, typy_fields) | |
18240 | (typy_range): Use gdbpy_ref. | |
18241 | ||
abf5651e TT |
18242 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18243 | ||
18244 | * python/py-threadevent.c (create_thread_event_object): Use | |
18245 | gdbpy_ref. | |
18246 | * python/py-stopevent.c (create_stop_event_object): Simplify. | |
18247 | (emit_stop_event): Use gdbpy_ref. | |
18248 | * python/py-signalevent.c (create_signal_event_object): Use | |
18249 | gdbpy_ref. | |
18250 | * python/py-newobjfileevent.c (create_new_objfile_event_object) | |
18251 | (emit_new_objfile_event, create_clear_objfiles_event_object) | |
18252 | (emit_clear_objfiles_event): Use gdbpy_ref. | |
18253 | * python/py-infevents.c (create_inferior_call_event_object) | |
18254 | (create_register_changed_event_object) | |
18255 | (create_memory_changed_event_object, emit_inferior_call_event) | |
18256 | (emit_memory_changed_event, emit_register_changed_event): Use | |
18257 | gdbpy_ref. | |
18258 | * python/py-exitedevent.c (create_exited_event_object) | |
18259 | (emit_exited_event): Use gdbpy_ref. | |
18260 | * python/py-event.h (evpy_emit_event): Remove | |
18261 | CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation. | |
18262 | * python/py-event.c (evpy_emit_event): Use gdbpy_ref. | |
18263 | * python/py-continueevent.c (emit_continue_event): Use | |
18264 | gdbpy_ref. | |
18265 | * python/py-breakpoint.c (gdbpy_breakpoint_created) | |
18266 | (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use | |
18267 | gdbpy_ref. | |
18268 | * python/py-bpevent.c (create_breakpoint_event_object): Use | |
18269 | gdbpy_ref. | |
18270 | ||
a68ff33e TT |
18271 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18272 | ||
18273 | * python/py-ref.h: New file. | |
18274 | ||
7becfd03 SM |
18275 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
18276 | ||
18277 | * cli-out.c (cli_ui_out::do_redirect): Change return type to | |
18278 | void. | |
18279 | * cli-out.h (cli_ui_out::do_redirect): Likewise. | |
18280 | * mi/mi-out.c (mi_ui_out::do_redirect): Likewise. | |
18281 | * mi/mi-out.h (mi_ui_out::do_redirect): Likewise. | |
18282 | * ui-out.c (ui_out::redirect): Likewise. | |
18283 | * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise. | |
18284 | * cli/cli-logging.c (set_logging_redirect): Update call site of | |
18285 | ui_out::redirect. | |
18286 | (handle_redirections): Likewise. | |
18287 | * scm-ports.c (ioscm_with_output_to_port_worker): Likewise. | |
18288 | * top.c (execute_command_to_string): Likewise. | |
18289 | * utils.c (do_ui_out_redirect_pop): Likewise. | |
18290 | ||
df294654 SM |
18291 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
18292 | ||
18293 | * stack.c (_initialize_stack): Update "frame" command help message. | |
18294 | ||
f5e6296e IB |
18295 | 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org> |
18296 | ||
18297 | * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE. | |
18298 | ||
0e2d6fa6 YQ |
18299 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
18300 | ||
18301 | * x86-linux-nat.h: Include gdb_proc_service.h. | |
18302 | ||
44d6d3f9 YQ |
18303 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
18304 | ||
18305 | * ser-base.h: Include serial.h. | |
18306 | ||
656731fe YQ |
18307 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
18308 | ||
18309 | * ppc-linux-tdep.h: Include ppc-tdep.h. | |
18310 | ||
1ca8f924 YQ |
18311 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
18312 | ||
18313 | * nat/amd64-linux-siginfo.h: Include signal.h. | |
18314 | ||
bc3008c4 YQ |
18315 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
18316 | ||
18317 | * nat/aarch64-linux-hw-point.h: Include break-common.h. | |
18318 | ||
66c80d03 YQ |
18319 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
18320 | ||
18321 | * mi/mi-parse.h: Include mi-cmds.h. | |
18322 | ||
051d2dda YQ |
18323 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
18324 | ||
18325 | * inf-loop.c: Don't include "target.h". | |
18326 | * inf-loop.h: Include it here. | |
18327 | ||
8018d34f YQ |
18328 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
18329 | ||
18330 | * dfp.h: Include "dboulest.h" and "expression.h". | |
18331 | ||
c0b8369c YQ |
18332 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
18333 | ||
18334 | * ax-gdb.h: Include "ax.h". | |
18335 | ||
ad5cba2a YQ |
18336 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
18337 | ||
18338 | * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h | |
18339 | with nat/gdb_ptrace.h. | |
18340 | ||
1c33cd7f YQ |
18341 | 2017-01-05 Yao Qi <yao.qi@linaro.org> |
18342 | ||
18343 | * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to | |
18344 | new line. | |
18345 | (mips64_fbsd_sigframe_init): Likewise. | |
18346 | ||
c988ac1d JB |
18347 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
18348 | ||
18349 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use | |
18350 | GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF. | |
18351 | ||
b268007c JB |
18352 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
18353 | ||
18354 | * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c. | |
18355 | * NEWS: Mention new FreeBSD/mips native configuration. | |
18356 | * config/mips/fbsd.mh: New file. | |
18357 | * configure.host: Add mips*-*-freebsd*. | |
18358 | * mips-fbsd-nat.c: New file. | |
18359 | ||
387360da JB |
18360 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
18361 | ||
18362 | * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o. | |
18363 | (ALLDEPFILES): Add mips-fbsd-tdep.c. | |
18364 | * NEWS: Mention new FreeBSD/mips target. | |
18365 | * configure.tgt: Add mips*-*-freebsd*. | |
18366 | * mips-fbsd-tdep.c: New file. | |
18367 | * mips-fbsd-tdep.h: New file. | |
18368 | ||
2aaaf250 YQ |
18369 | 2017-01-04 Yao Qi <yao.qi@linaro.org> |
18370 | ||
18371 | * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to), | |
18372 | use c->frame_id when the piece location is DWARF_VALUE_REGISTER. | |
18373 | ||
61baf725 JB |
18374 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
18375 | ||
6dbb839a | 18376 | Update copyright year range in all GDB files. |
61baf725 | 18377 | |
c113e7ff | 18378 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
ce0db137 | 18379 | |
c113e7ff | 18380 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016. |
ce0db137 | 18381 | |
c113e7ff | 18382 | For older changes see ChangeLog-2016. |
c906108c SS |
18383 | \f |
18384 | Local Variables: | |
18385 | mode: change-log | |
18386 | left-margin: 8 | |
18387 | fill-column: 74 | |
18388 | version-control: never | |
57da7796 | 18389 | coding: utf-8 |
c906108c | 18390 | End: |