Commit | Line | Data |
---|---|---|
76761936 TT |
1 | 2018-04-30 Tom Tromey <tom@tromey.com> |
2 | ||
3 | * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of | |
4 | is_mi_like_p. | |
5 | ||
2d33446d TT |
6 | 2018-04-30 Tom Tromey <tom@tromey.com> |
7 | ||
8 | * breakpoint.c (mention): Remove use of is_mi_like_p. | |
9 | (print_mention_ranged_breakpoint): Likewise. | |
10 | * break-catch-throw.c (print_it_exception_catchpoint): Remove use | |
11 | of is_mi_like_p. | |
12 | ||
f3c6abab TT |
13 | 2018-04-30 Tom Tromey <tom@tromey.com> |
14 | ||
15 | * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p. | |
16 | ||
40c03530 TT |
17 | 2018-04-30 Tom Tromey <tom@tromey.com> |
18 | ||
19 | * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist) | |
20 | (info_spu_event_command): Remove some uses of is_mi_like_p. | |
21 | ||
2038b7fd TT |
22 | 2018-04-30 Tom Tromey <tom@tromey.com> |
23 | ||
24 | * python/py-framefilter.c (py_print_single_arg) | |
25 | (enumerate_locals, py_print_args, py_print_frame): Remove some | |
26 | uses of is_mi_like_p. | |
27 | ||
4904c3c6 TT |
28 | 2018-04-30 Tom Tromey <tom@tromey.com> |
29 | ||
30 | * ui-out.c: Update. | |
31 | * cli-out.h (cli_ui_out::do_is_mi_like_p): Update. | |
32 | * ui-out.h (ui_out::is_mi_like_p): Now const. | |
33 | (ui_out::do_is_mi_like_p): Now const. | |
34 | * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update. | |
35 | ||
7c66fffc TT |
36 | 2018-04-30 Tom Tromey <tom@tromey.com> |
37 | ||
38 | * varobj.c (varobj_set_visualizer): Use new_reference. | |
39 | * python/python.c (gdbpy_decode_line): Use new_reference. | |
40 | * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use | |
41 | new_reference. | |
42 | ||
bbfa6f00 TT |
43 | 2018-04-30 Tom Tromey <tom@tromey.com> |
44 | ||
45 | * varobj.c (install_new_value): Use new_reference. | |
46 | * value.h (value_incref): Return void. Swap intro comment with | |
47 | value_decref. | |
48 | * value.c (set_value_parent): Use new_reference. | |
49 | (value_incref): Return void. Update intro comment. | |
50 | (release_value): Use new_reference. | |
51 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference. | |
52 | ||
1831a9f9 TT |
53 | 2018-04-30 Tom Tromey <tom@tromey.com> |
54 | ||
55 | * symfile-mem.c (symbol_file_add_from_memory): Use new_reference. | |
56 | * gdb_bfd.h (new_bfd_ref): Remove. | |
57 | (gdb_bfd_open): Update comment. | |
58 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
59 | (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion) | |
60 | (gdb_bfd_fdopenr): Use new_reference. | |
61 | * exec.c (exec_file_attach): Use new_reference. | |
62 | ||
7c1b5f3d TT |
63 | 2018-04-30 Tom Tromey <tom@tromey.com> |
64 | ||
65 | * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static | |
66 | method. | |
67 | ||
e11fb955 TT |
68 | 2018-04-30 Tom Tromey <tom@tromey.com> |
69 | ||
70 | * jit.c (jit_read_code_entry): Use type_align. | |
71 | * i386-tdep.c (i386_gdbarch_init): Don't call | |
72 | set_gdbarch_long_long_align_bit. | |
73 | * gdbarch.sh: Remove long_long_align_bit. | |
74 | * gdbarch.c, gdbarch.h: Rebuild. | |
75 | * arc-tdep.c (arc_type_align): New function. | |
76 | (arc_gdbarch_init): Use arc_type_align. Don't call | |
77 | set_gdbarch_long_long_align_bit. | |
78 | ||
2fff16dd TT |
79 | 2018-04-30 Tom Tromey <tom@tromey.com> |
80 | ||
81 | * rust-lang.c (rust_type_alignment): Remove. | |
82 | (rust_composite_type): Use type_align. | |
83 | ||
6d7bb824 TT |
84 | 2018-04-30 Tom Tromey <tom@tromey.com> |
85 | ||
86 | * NEWS: Mention Type.align. | |
87 | * python/py-type.c (typy_get_alignof): New function. | |
88 | (type_object_getset): Add "alignof". | |
89 | ||
007e1530 TT |
90 | 2018-04-30 Tom Tromey <tom@tromey.com> |
91 | ||
92 | PR exp/17095: | |
93 | * NEWS: Update. | |
94 | * std-operator.def (UNOP_ALIGNOF): New operator. | |
95 | * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>: | |
96 | New. | |
97 | * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New. | |
98 | * c-lang.c (c_op_print_tab): Add alignof. | |
99 | * c-exp.y (ALIGNOF): New token. | |
100 | (exp): Add "ALIGNOF" production. | |
101 | (ident_tokens): Add _Alignof and alignof. | |
102 | ||
2b4424c3 TT |
103 | 2018-04-30 Tom Tromey <tom@tromey.com> |
104 | ||
105 | * i386-tdep.c (i386_type_align): New function. | |
106 | (i386_gdbarch_init): Update. | |
107 | * gdbarch.sh (type_align): New method. | |
108 | * gdbarch.c, gdbarch.h: Rebuild. | |
109 | * arch-utils.h (default_type_align): Declare. | |
110 | * arch-utils.c (default_type_align): New function. | |
111 | * gdbtypes.h (TYPE_ALIGN_BITS): New define. | |
112 | (struct type) <align_log2>: New field. | |
113 | <instance_flags>: Now a bitfield. | |
114 | (TYPE_RAW_ALIGN): New macro. | |
115 | (type_align, type_raw_align, set_type_align): Declare. | |
116 | * gdbtypes.c (type_align, type_raw_align, set_type_align): New | |
117 | functions. | |
118 | * dwarf2read.c (quirk_rust_enum): Set type alignment. | |
119 | (get_alignment, maybe_set_alignment): New functions. | |
120 | (read_structure_type, read_enumeration_type, read_array_type) | |
121 | (read_set_type, read_tag_pointer_type, read_tag_reference_type) | |
122 | (read_subrange_type, read_base_type): Set type alignment. | |
123 | ||
d33bc52e SM |
124 | 2018-04-30 Simon Marchi <simon.marchi@ericsson.com> |
125 | ||
126 | * dwarf2read.c (read_index_from_section): Use bool. | |
127 | ||
e28b63a9 FG |
128 | 2018-04-29 Fabian Groffen <grobian@gentoo.org> |
129 | ||
130 | PR gdb/22950 | |
131 | * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys | |
132 | with #ifdef. | |
133 | ||
cd8c76e4 JR |
134 | 2018-04-29 John Reiser <jreiser@BitWagon.com> |
135 | ||
136 | PR build/22873 | |
137 | * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the | |
138 | last step, and do it atomically. | |
139 | ||
476d250e AO |
140 | 2018-04-27 Alexandre Oliva <aoliva@redhat.com> |
141 | ||
142 | * compile/compile-c-types.c (convert_int, convert_float): | |
143 | Update for C FE v1. | |
144 | ||
6873858b TT |
145 | 2018-04-27 Tom Tromey <tom@tromey.com> |
146 | ||
147 | PR rust/22545: | |
148 | * rust-lang.c (rust_inclusive_range_type_p): New function. | |
149 | (rust_range): Handle inclusive ranges. | |
150 | (rust_compute_range): Likewise. | |
151 | * rust-exp.y (struct rust_op) <inclusive>: New field. | |
152 | (DOTDOTEQ): New constant. | |
153 | (range_expr): Add "..=" productions. | |
154 | (operator_tokens): Add "..=" token. | |
155 | (ast_range): Add "inclusive" parameter. | |
156 | (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive | |
157 | ranges. | |
158 | * parse.c (operator_length_standard) <case OP_RANGE>: Handle new | |
159 | bounds values. | |
160 | * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE, | |
161 | LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants. | |
162 | Update comments. | |
163 | * expprint.c (print_subexp_standard): Handle new bounds values. | |
164 | (dump_subexp_body_standard): Likewise. | |
165 | ||
632e107b TT |
166 | 2018-04-27 Tom Tromey <tom@tromey.com> |
167 | ||
168 | * configure: Rebuild. | |
169 | * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override. | |
170 | * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not | |
171 | "OVERRIDE". | |
172 | (class symbol_needs_eval_context): Likewise. | |
173 | * dwarf2read.c (mock_mapped_index::symbol_name_count) | |
174 | (mock_mapped_index::symbol_name_at): Use "override". Remove | |
175 | "virtual". | |
176 | * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use | |
177 | "override". | |
178 | (class dwarf_expr_executor): Use "override", not "OVERRIDE". | |
179 | * aarch64-tdep.c (instruction_reader::read): Use "override". | |
180 | (instruction_reader_test::read): Likewise. | |
181 | * arm-tdep.c (instruction_reader::read): Use "override". | |
182 | (instruction_reader_thumb::read): Likewise. | |
183 | ||
b75abf5b AK |
184 | 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl> |
185 | ||
186 | PR remote/9665 | |
187 | * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result | |
188 | instead of remote_send. | |
189 | (remote_send): Remove. | |
190 | ||
79188d8d PA |
191 | 2018-04-26 Pedro Alves <palves@redhat.com> |
192 | ||
193 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use | |
194 | find_function_start_sal instead of find_pc_line. | |
195 | ||
f50776aa PA |
196 | 2018-04-26 Pedro Alves <palves@redhat.com> |
197 | ||
198 | * breakpoint.c (set_breakpoint_location_function): Handle | |
199 | mst_data_gnu_ifunc. | |
200 | * c-exp.y (variable production): Handle mst_data_gnu_ifunc. | |
201 | * elfread.c (elf_symtab_read): Give data symbols with | |
202 | BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type. | |
203 | (elf_rel_plt_read): Update comment. | |
204 | * linespec.c (convert_linespec_to_sals): Handle | |
205 | mst_data_gnu_ifunc. | |
206 | (minsym_found): Handle mst_data_gnu_ifunc. | |
207 | * minsyms.c (msymbol_is_function, minimal_symbol_reader::record) | |
208 | (find_solib_trampoline_target): Handle mst_data_gnu_ifunc. | |
209 | * parse.c (find_minsym_type_and_address): Handle | |
210 | mst_data_gnu_ifunc. | |
211 | * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc. | |
212 | * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc. | |
213 | * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update | |
214 | comment. | |
215 | <mst_data_gnu_ifunc>: New enumerator. | |
216 | ||
20944a6e PA |
217 | 2018-04-26 Pedro Alves <palves@redhat.com> |
218 | ||
219 | * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ... | |
220 | (lookup_minimal_symbol_by_pc_section): ... this. Replace | |
221 | 'want_trampoline' parameter by a lookup_msym_prefer parameter. | |
222 | Handle it. | |
223 | (lookup_minimal_symbol_by_pc_section): Delete old implementation. | |
224 | (lookup_minimal_symbol_by_pc): Adjust. | |
225 | (in_gnu_ifunc_stub): Prefer GNU ifunc symbols. | |
226 | (lookup_solib_trampoline_symbol_by_pc): Adjust. | |
227 | * minsyms.h (lookup_msym_prefer): New enum. | |
228 | (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline' | |
229 | parameter by a lookup_msym_prefer parameter. | |
230 | ||
1adeb822 PA |
231 | 2018-04-26 Pedro Alves <palves@redhat.com> |
232 | ||
233 | * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name | |
234 | ends in "@plt" instead of looking at the symbol's section. | |
235 | ||
a0aca7b0 PA |
236 | 2018-04-26 Pedro Alves <palves@redhat.com> |
237 | ||
238 | * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove | |
239 | all references. | |
240 | (find_pc_partial_function_gnu_ifunc): Rename to ... | |
241 | (find_pc_partial_function): ... this, and remove references to | |
242 | 'is_gnu_ifunc_p'. | |
243 | (find_pc_partial_function): Delete old implementation. | |
244 | * symtab.h (find_pc_partial_function_gnu_ifunc): Delete. | |
245 | ||
76af0f26 PA |
246 | 2018-04-26 Pedro Alves <palves@redhat.com> |
247 | ||
248 | * linespec.c (struct bound_minimal_symbol_search_key): New. | |
249 | (convert_linespec_to_sals): Sort minimal symbols earlier. Don't | |
250 | skip first line if we found a GNU ifunc minimal symbol by name. | |
251 | (compare_msymbols): Change parameters to work with a destructured | |
252 | lhs minsym. | |
253 | (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New | |
254 | functions. | |
255 | ||
3467ec66 PA |
256 | 2018-04-26 Pedro Alves <palves@redhat.com> |
257 | ||
258 | * breakpoint.c (set_breakpoint_location_function): Don't resolve | |
259 | ifunc targets here. Instead, if we have an ifunc minsym, use its | |
260 | address/name. | |
261 | (add_location_to_breakpoint): Store the minsym and the objfile in | |
262 | the breakpoint location. | |
263 | * breakpoint.h (bp_location) <msymbol, objfile>: New fields. | |
264 | * linespec.c (minsym_found): Resolve GNU ifunc targets here. | |
265 | Record the minsym in the sal. | |
266 | * symtab.h (symtab_and_line) <msymbol>: New field. | |
267 | ||
28f4fa4d PA |
268 | 2018-04-26 Pedro Alves <palves@redhat.com> |
269 | ||
270 | * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P | |
271 | unless we actually resolved the ifunc. | |
272 | ||
ca31ab1d PA |
273 | 2018-04-26 Pedro Alves <palves@redhat.com> |
274 | ||
275 | * c-exp.y (variable production): Prefer ifunc minsyms over | |
276 | regular function symbols. | |
277 | * symtab.c (find_gnu_ifunc): New function. | |
278 | * minsyms.h (lookup_msym_prefer): New enum. | |
279 | (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline' | |
280 | parameter by a lookup_msym_prefer parameter. | |
281 | * symtab.h (find_gnu_ifunc): New declaration. | |
282 | ||
8388016d PA |
283 | 2018-04-26 Pedro Alves <palves@redhat.com> |
284 | ||
285 | * blockframe.c (find_gnu_ifunc_target_type): New function. | |
286 | (find_function_type): New. | |
287 | * eval.c (evaluate_var_msym_value): For GNU ifunc types, always | |
288 | return a value with a memory address. | |
289 | (eval_call): For calls to GNU ifunc functions, try to find the | |
290 | type of the target function from the type that the resolver | |
291 | returns. | |
292 | * gdbtypes.c (objfile_type): Don't install a return type for ifunc | |
293 | symbols. | |
294 | * infcall.c (find_function_return_type): Delete. | |
295 | (find_function_addr): Add 'function_type' parameter. For calls to | |
296 | GNU ifunc functions, try to find the type of the target function | |
297 | from the type that the resolver returns, and return it via | |
298 | FUNCTION_TYPE. | |
299 | (call_function_by_hand_dummy): Adjust to use the function type | |
300 | returned by find_function_addr. | |
301 | (find_function_addr): Add 'function_type' parameter and move | |
302 | description here. | |
303 | * symtab.h (find_function_type, find_gnu_ifunc_target_type): New | |
304 | declarations. | |
305 | ||
a376e11d PA |
306 | 2018-04-26 Pedro Alves <palves@redhat.com> |
307 | ||
308 | * c-exp.y (variable production): Skip finding an alias for ifunc | |
309 | symbols. | |
310 | ||
02e169e2 PA |
311 | 2018-04-26 Pedro Alves <palves@redhat.com> |
312 | ||
313 | * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too. | |
314 | ||
249b5733 PA |
315 | 2018-04-25 Pedro Alves <palves@redhat.com> |
316 | ||
317 | * infcmd.c (kill_command): Print the pid as string, not the whole | |
318 | thread's ptid. Add comment. s/has been killed/killed/ in output | |
319 | message. | |
320 | * remote.c (remote_detach_1): Print the pid as string, not the | |
321 | whole thread's ptid. | |
322 | ||
f67c0c91 SDJ |
323 | 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
324 | Sergio Durigan Junior <sergiodj@redhat.com> | |
325 | Pedro Alves <palves@redhat.com> | |
326 | ||
327 | * infcmd.c (kill_command): Print message when inferior has | |
328 | been killed. | |
329 | * inferior.c (print_inferior_events): Remove 'static'. Set as | |
330 | '1'. | |
331 | (add_inferior): Improve message printed when | |
332 | 'print_inferior_events' is on. | |
333 | (exit_inferior): Remove message printed when | |
334 | 'print_inferior_events' is on. | |
335 | (detach_inferior): Improve message printed when | |
336 | 'print_inferior_events' is on. | |
337 | (initialize_inferiors): Use 'add_inferior_silent' to set | |
338 | 'current_inferior_'. | |
339 | * inferior.h (print_inferior_events): Declare here as | |
340 | 'extern'. | |
341 | * infrun.c (follow_fork_inferior): Print '[Attaching...]' or | |
342 | '[Detaching...]' messages when 'print_inferior_events' is on. | |
343 | Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']' | |
344 | as prefix/suffix for messages. Remove periods. Fix erroneous | |
345 | 'Detaching after fork from child...', replace it by '... from | |
346 | parent...'. | |
347 | (handle_vfork_child_exec_or_exit): Add '[' and ']' as | |
348 | prefix/suffix when printing 'Detaching...' messages. Print | |
349 | them when 'print_inferior_events' is on. | |
350 | * remote.c (remote_detach_1): Print message when detaching | |
351 | from inferior and '!is_fork_parent'. | |
352 | ||
e427af18 TT |
353 | 2018-04-24 Tom Tromey <tom@tromey.com> |
354 | ||
355 | * cli-out.h: Reindent. | |
356 | ||
05b1d8d6 TT |
357 | 2018-04-24 Tom Tromey <tom@tromey.com> |
358 | ||
359 | * cli-out.c (cli_ui_out::out_field_fmt): Remove. | |
360 | (cli_ui_out::do_field_string): Use fputs_filtered. | |
361 | * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove. | |
362 | ||
a95c7dab TT |
363 | 2018-04-23 Tom Tromey <tom@tromey.com> |
364 | ||
365 | * guile/scm-frame.c (gdbscm_frame_read_var): Use | |
366 | gdb::unique_xmalloc_ptr. | |
367 | ||
458412c3 TT |
368 | 2018-04-23 Tom Tromey <tom@tromey.com> |
369 | ||
370 | * configure: Rebuild. | |
371 | ||
db86b02b RS |
372 | 2018-04-22 Rajendra SY <rajendra.sy@gmail.com> |
373 | ||
374 | PR gdb/23095 | |
375 | * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to | |
376 | prepare_for_testing. Set normal_bp to r_debug_state if target | |
377 | is bsd. | |
378 | ||
00aecdcf PA |
379 | 2018-04-21 Pedro Alves <palves@redhat.com> |
380 | Rajendra SY <rajendra.sy@gmail.com> | |
381 | ||
382 | * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing. | |
383 | * remote.c (extended_remote_attach): In all-stop mode, mark the | |
384 | thread as executing. | |
385 | ||
224608c3 PW |
386 | 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
387 | ||
388 | * thread.c (thread_apply_all_command): Fix comment. | |
389 | (thread_command): Fix comment. | |
390 | ||
3b74854b AH |
391 | 2018-04-10 Alan Hayward <alan.hayward@arm.com> |
392 | ||
393 | * common/tdesc.h (tdesc_create_feature): Remove xml filename | |
394 | parameter. | |
395 | * features/aarch64-core.c (create_feature_aarch64_core): | |
396 | Regenerate. | |
397 | * features/aarch64-fpu.c (create_feature_aarch64_fpu): | |
398 | Likewise. | |
399 | * features/i386/32bit-avx.c (create_feature_i386_32bit_avx): | |
400 | Likewise. | |
401 | * features/i386/32bit-avx512.c | |
402 | (create_feature_i386_32bit_avx512): Likewise. | |
403 | * features/i386/32bit-core.c (create_feature_i386_32bit_core): | |
404 | Likewise. | |
405 | * features/i386/32bit-linux.c (create_feature_i386_32bit_linux): | |
406 | Likewise. | |
407 | * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx): | |
408 | Likewise. | |
409 | * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys): | |
410 | Likewise. | |
411 | * features/i386/32bit-sse.c (create_feature_i386_32bit_sse): | |
412 | Likewise. | |
413 | * features/i386/64bit-avx.c (create_feature_i386_64bit_avx): | |
414 | Likewise. | |
415 | * features/i386/64bit-avx512.c | |
416 | (create_feature_i386_64bit_avx512): Likewise. | |
417 | * features/i386/64bit-core.c (create_feature_i386_64bit_core): | |
418 | Likewise. | |
419 | * features/i386/64bit-linux.c (create_feature_i386_64bit_linux): | |
420 | Likewise. | |
421 | * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx): | |
422 | Likewise. | |
423 | * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys): | |
424 | Likewise. | |
425 | * features/i386/64bit-segments.c | |
426 | (create_feature_i386_64bit_segments): Likewise. | |
427 | * features/i386/64bit-sse.c (create_feature_i386_64bit_sse): | |
428 | Likewise. | |
429 | * features/i386/x32-core.c | |
430 | (create_feature_i386_x32_core): Likewise. | |
431 | * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise. | |
432 | * features/tic6x-core.c (create_feature_tic6x_core): Likewise. | |
433 | * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise. | |
434 | * target-descriptions.c: In generated code, don't pass xml | |
435 | filename. | |
436 | ||
e98577a9 AH |
437 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
438 | ||
439 | * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing. | |
440 | (print_xml_feature::visit_post): Likewise. | |
441 | (print_xml_feature::visit): Likewise. | |
442 | * common/tdesc.h (tdesc_get_features_xml): Use const tdesc. | |
443 | (print_xml_feature): Add new class. | |
444 | * regformats/regdat.sh: Null xmltarget on feature targets. | |
445 | * target-descriptions.c (struct target_desc): Add xmltarget. | |
446 | (maintenance_check_tdesc_xml_convert): Add unittest function. | |
447 | (tdesc_get_features_xml): Add function to get xml. | |
448 | (maintenance_check_xml_descriptions): Test xml generation. | |
449 | * xml-tdesc.c (string_read_description_xml): Add function. | |
450 | * xml-tdesc.h (string_read_description_xml): Add declaration. | |
451 | ||
ad7fc756 AH |
452 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
453 | ||
454 | * features/Makefile: Add feature marker to targets with new style | |
455 | target descriptions. | |
456 | * regformats/aarch64.dat: Regenerate. | |
457 | * regformats/i386/amd64-avx-avx512-linux.dat: Likewise. | |
458 | * regformats/i386/amd64-avx-linux.dat: Likewise. | |
459 | * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise. | |
460 | * regformats/i386/amd64-avx-mpx-linux.dat: Likewise. | |
461 | * regformats/i386/amd64-linux.dat: Likewise. | |
462 | * regformats/i386/amd64-mpx-linux.dat: Likewise. | |
463 | * regformats/i386/amd64.dat: Likewise. | |
464 | * regformats/i386/i386-avx-avx512-linux.dat: Likewise. | |
465 | * regformats/i386/i386-avx-linux.dat: Likewise. | |
466 | * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise. | |
467 | * regformats/i386/i386-avx-mpx-linux.dat: Likewise. | |
468 | * regformats/i386/i386-linux.dat: Likewise. | |
469 | * regformats/i386/i386-mmx-linux.dat: Likewise. | |
470 | * regformats/i386/i386-mpx-linux.dat: Likewise. | |
471 | * regformats/i386/i386.dat: Likewise. | |
472 | * regformats/i386/x32-avx-avx512-linux.dat: Likewise. | |
473 | * regformats/i386/x32-avx-linux.dat: Likewise. | |
474 | * regformats/i386/x32-linux.dat: Likewise. | |
475 | * regformats/tic6x-c62x-linux.dat: Likewise. | |
476 | * regformats/tic6x-c64x-linux.dat: Likewise. | |
477 | * regformats/tic6x-c64xp-linux.dat: Likewise. | |
478 | * regformats/regdat.sh: Parse feature marker. | |
479 | ||
d278f585 AH |
480 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
481 | ||
482 | * common/tdesc.h (tdesc_architecture_name): Add new declaration. | |
483 | (tdesc_osabi_name): Likewise. | |
484 | * target-descriptions.c (tdesc_architecture_name): Add new | |
485 | function. | |
486 | (tdesc_osabi_name): Likewise. | |
487 | ||
eee8a18d AH |
488 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
489 | ||
490 | * common/tdesc.c (tdesc_predefined_type): Move to here. | |
491 | (tdesc_named_type): Likewise. | |
492 | (tdesc_create_vector): Likewise. | |
493 | (tdesc_create_struct): Likewise. | |
494 | (tdesc_set_struct_size): Likewise. | |
495 | (tdesc_create_union): Likewise. | |
496 | (tdesc_create_flags): Likewise. | |
497 | (tdesc_create_enum): Likewise. | |
498 | (tdesc_add_field): Likewise. | |
499 | (tdesc_add_typed_bitfield): Likewise. | |
500 | (tdesc_add_bitfield): Likewise. | |
501 | (tdesc_add_flag): Likewise. | |
502 | (tdesc_add_enum_value): Likewise. | |
503 | * common/tdesc.h (struct tdesc_type_builtin): Likewise. | |
504 | (struct tdesc_type_vector): Likewise. | |
505 | (struct tdesc_type_field): Likewise. | |
506 | (struct tdesc_type_with_fields): Likewise. | |
507 | (tdesc_create_enum): Add declaration. | |
508 | (tdesc_add_typed_bitfield): Likewise. | |
509 | (tdesc_add_enum_value): Likewise. | |
510 | * target-descriptions.c (tdesc_type_field): Move from here. | |
511 | (tdesc_type_builtin): Likewise. | |
512 | (tdesc_type_vector): Likewise. | |
513 | (tdesc_type_with_fields): Likewise. | |
514 | (tdesc_predefined_types): Likewise. | |
515 | (tdesc_named_type): Likewise. | |
516 | (tdesc_create_vector): Likewise. | |
517 | (tdesc_create_struct): Likewise. | |
518 | (tdesc_set_struct_size): Likewise. | |
519 | (tdesc_create_union): Likewise. | |
520 | (tdesc_create_flags): Likewise. | |
521 | (tdesc_create_enum): Likewise. | |
522 | (tdesc_add_field): Likewise. | |
523 | (tdesc_add_typed_bitfield): Likewise. | |
524 | (tdesc_add_bitfield): Likewise. | |
525 | (tdesc_add_flag): Likewise. | |
526 | (tdesc_add_enum_value): Likewise. | |
527 | * gdb/target-descriptions.h (tdesc_create_enum): Likewise. | |
528 | (tdesc_add_typed_bitfield): Likewise. | |
529 | (tdesc_add_enum_value): Likewise. | |
530 | ||
82ec9bc7 AH |
531 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
532 | ||
533 | * common/tdesc.c (tdesc_feature::accept): Move to here. | |
534 | (tdesc_feature::operator==): Likewise. | |
535 | (tdesc_create_reg): Likewise. | |
536 | * common/tdesc.h (tdesc_type_kind): Likewise. | |
537 | (struct tdesc_type): Likewise. | |
538 | (struct tdesc_feature): Likewise. | |
539 | * regformats/regdat.sh: Create a feature. | |
540 | * target-descriptions.c (tdesc_type_kind): Move from here. | |
541 | (tdesc_type): Likewise. | |
542 | (tdesc_type_up): Likewise. | |
543 | (tdesc_feature): Likewise. | |
544 | (tdesc_create_reg): Likewise. | |
545 | ||
ea3e7d71 AH |
546 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
547 | ||
548 | * Makefile.in: Add arch/tdesc.c | |
549 | * common/tdesc.c: New file. | |
550 | * common/tdesc.h (tdesc_element_visitor): Move to here. | |
551 | (tdesc_element): Likewise. | |
552 | (tdesc_reg): Likewise. | |
553 | (tdesc_reg_up): Likewise. | |
554 | * regformats/regdef.h (reg): Add offset to constructors. | |
555 | * target-descriptions.c (tdesc_element_visitor): Move from here. | |
556 | (tdesc_element): Likewise. | |
557 | (tdesc_reg): Likewise. | |
558 | (tdesc_reg_up): Likewise. | |
559 | ||
bedda9ac TT |
560 | 2018-04-17 Tom Tromey <tom@tromey.com> |
561 | ||
562 | * dwarf2read.c (quirk_rust_enum): Conditionally drop the | |
563 | discriminant field. | |
564 | ||
a037790e TT |
565 | 2018-04-17 Tom Tromey <tom@tromey.com> |
566 | ||
567 | * dwarf2read.c (quirk_rust_enum): Handle unions correctly. | |
568 | ||
c7dcbf88 AA |
569 | 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com> |
570 | ||
571 | * symtab.c (print_symbol_info): Skip printing filename and line | |
572 | number when `last' is NULL. | |
573 | (symtab_symbol_info): Use empty string instead of NULL for first | |
574 | invocation of print_symbol_info. | |
575 | (rbreak_command): Pass NULL to `last' parameter of | |
576 | print_symbol_info. | |
577 | ||
07d28c77 SM |
578 | 2018-04-16 Simon Marchi <simon.marchi@ericsson.com> |
579 | ||
580 | * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data | |
581 | instead of nullptr. | |
582 | ||
8a3de5e1 PA |
583 | 2018-04-16 Pedro Alves <palves@redhat.com> |
584 | ||
585 | * MAINTAINERS (sh): Remove. | |
586 | * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o. | |
587 | (HFILES_NO_SRCDIR): Remove sh64-tdep.h. | |
588 | (ALLDEPFILES): Remove sh64-tdep.c. | |
589 | * NEWS: Mentions that support for SH-5/SH64 is removed. | |
590 | * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o. | |
591 | (sh*-*-openbsd*): Ditto. | |
592 | (sh64-*-elf*): Remove. | |
593 | (sh*): Remove. | |
594 | * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case. | |
595 | * sh-linux-tdep.c: Remove reference to bfd_mach_sh5. | |
596 | * sh-tdep.c: No longer include "sh64-tdep.h". | |
597 | (sh_gdbarch_init): Remove reference to bfd_mach_sh5. | |
598 | * sh64-tdep.c, sh64-tdep.h: Remove files. | |
599 | ||
a2a79012 PA |
600 | 2018-04-16 Pedro Alves <palves@redhat.com> |
601 | ||
602 | * MAINTAINERS: Remove m88k. | |
603 | * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o. | |
604 | (HFILES_NO_SRCDIR): Remove m88k-tdep.h. | |
605 | (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c. | |
606 | * NEWS: Mention that support for m88k was removed. | |
607 | * configure.host (m88*-*-*): Remove support. | |
608 | * configure.nat (m88k-*-*): Remove support. | |
609 | * configure.tgt (m88*-*-openbsd*): Remove. | |
610 | * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete. | |
611 | ||
eda4efb1 SM |
612 | 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca> |
613 | ||
614 | * configure.tgt (x86_tobjs): New variable. | |
615 | (amd64_tobjs, i386_tobjs): Use it. | |
616 | ||
b744723f AA |
617 | 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
618 | ||
619 | * symtab.c (print_symbol_info): Precede the symbol definition by | |
620 | the line number when available. | |
621 | * NEWS: Advertise this enhancement. | |
622 | ||
4a4495d6 MM |
623 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
624 | ||
625 | * NEWS (New options): announce set/show record btrace cpu. | |
626 | * btrace.c: Include record-btrace.h. | |
627 | (btrace_compute_ftrace_pt): Skip enabling errata workarounds if | |
628 | the vendor is unknown. | |
629 | (btrace_compute_ftrace_1): Add cpu parameter. Update callers. | |
630 | Maybe overwrite the btrace configuration's cpu. | |
631 | (btrace_compute_ftrace): Add cpu parameter. Update callers. | |
632 | (btrace_fetch): Add cpu parameter. Update callers. | |
633 | (btrace_maint_update_pt_packets): Call record_btrace_get_cpu. | |
634 | Maybe overwrite the btrace configuration's cpu. Skip enabling | |
635 | errata workarounds if the vendor is unknown. | |
636 | * python/py-record-btrace.c: Include record-btrace.h. | |
637 | (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history) | |
638 | (recpy_bt_function_call_history): Call record_btrace_get_cpu. | |
639 | * record-btrace.c (record_btrace_cpu_state_kind): New. | |
640 | (record_btrace_cpu): New. | |
641 | (set_record_btrace_cpu_cmdlist): New. | |
642 | (record_btrace_get_cpu): New. | |
643 | (require_btrace_thread, record_btrace_info) | |
644 | (record_btrace_resume_thread): Call record_btrace_get_cpu. | |
645 | (cmd_set_record_btrace_cpu_none): New. | |
646 | (cmd_set_record_btrace_cpu_auto): New. | |
647 | (cmd_set_record_btrace_cpu): New. | |
648 | (cmd_show_record_btrace_cpu): New. | |
649 | (_initialize_record_btrace): Initialize set/show record btrace cpu | |
650 | commands. | |
651 | * record-btrace.h (record_btrace_get_cpu): New. | |
652 | ||
69f90c75 MM |
653 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
654 | ||
655 | * record.c (set_record_command): Fix typo in message. | |
656 | ||
b85310e1 MM |
657 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
658 | ||
659 | * record-btrace.c (cmd_set_record_btrace): Print sub-commands. | |
660 | ||
1d509aa6 MM |
661 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
662 | ||
663 | * infrun.c (process_event_stop_test): Call | |
664 | gdbarch_in_indirect_branch_thunk. | |
665 | * gdbarch.sh (in_indirect_branch_thunk): New. | |
666 | * gdbarch.c: Regenerated. | |
667 | * gdbarch.h: Regenerated. | |
668 | * x86-tdep.h: New. | |
669 | * x86-tdep.c: New. | |
670 | * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o. | |
671 | (HFILES_NO_SRCDIR): Add x86-tdep.h. | |
672 | (ALLDEPFILES): Add x86-tdep.c. | |
673 | * arch-utils.h (default_in_indirect_branch_thunk): New. | |
674 | * arch-utils.c (default_in_indirect_branch_thunk): New. | |
675 | * i386-tdep: Include x86-tdep.h. | |
676 | (i386_in_indirect_branch_thunk): New. | |
677 | (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch | |
678 | function. | |
679 | * amd64-tdep: Include x86-tdep.h. | |
680 | (amd64_in_indirect_branch_thunk): New. | |
681 | (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function. | |
682 | ||
b4be9bfd JK |
683 | 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
684 | ||
685 | PR gdb/23053 | |
686 | * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type) | |
687 | (recursively_write_psymbols) (debug_names::recursively_write_psymbols) | |
688 | (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG | |
689 | regression. | |
690 | ||
53d7df28 TT |
691 | 2018-04-12 Tom Tromey <tom@tromey.com> |
692 | ||
693 | * rust-lang.c (rust_print_struct_def): Remove univariant code. | |
694 | (rust_evaluate_subexp): Likewise. | |
695 | ||
70b33f19 PA |
696 | 2018-04-12 Pedro Alves <palves@redhat.com> |
697 | ||
698 | * procfs.c (procfs_detach): Make forward declaration's prototype | |
699 | match definition's protototype. | |
700 | (proc_get_LDT_entry): Remove stale do_cleanups call. | |
701 | ||
436411b1 PA |
702 | 2018-04-12 Pedro Alves <palves@redhat.com> |
703 | ||
704 | * target.h (target_ops::to_has_exited): Delete. | |
705 | (target_has_exited): Delete. | |
706 | * target-delegates.c: Regenerate. | |
707 | ||
20db9c52 PA |
708 | 2018-04-11 Pedro Alves <palves@redhat.com> |
709 | ||
710 | * target.c (fileio_fh_t::t): Add comment. | |
711 | (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat) | |
712 | (target_fileio_close): Handle a NULL target. | |
713 | (invalidate_fileio_fh): New. | |
714 | (target_close): Call it. | |
715 | * remote.c (remote_hostio_send_command): No longer check whether | |
716 | remote_desc is open. | |
717 | ||
5ff79300 PA |
718 | 2018-04-11 Pedro Alves <palves@redhat.com> |
719 | ||
720 | * target.c (fileio_fh_t): Make it a named struct instead of a | |
721 | typedef. | |
722 | (fileio_fh_t::is_closed): New method. | |
723 | (DEF_VEC_O (fileio_fh_t)): Remove. | |
724 | (fileio_fhandles): Now a std::vector. | |
725 | (is_closed_fileio_fh): Delete. | |
726 | (acquire_fileio_fd): Adjust. Rename parameters. | |
727 | (release_fileio_fd): Adjust. | |
728 | (fileio_fd_to_fh): Reimplement as a function instead of a macro. | |
729 | (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat) | |
730 | (target_fileio_close): Adjust. | |
731 | ||
6e22e10d SM |
732 | 2018-04-10 Simon Marchi <simon.marchi@ericsson.com> |
733 | ||
734 | * auto-load.c (auto_load_safe_path_vec_update): Iterate by | |
735 | index. | |
736 | ||
731f534f PA |
737 | 2018-04-10 Pedro Alves <palves@redhat.com> |
738 | ||
739 | * gdbthread.h (finish_thread_state_cleanup): Delete declaration. | |
740 | (scoped_finish_thread_state): New class. | |
741 | * infcmd.c (run_command_1): Use it instead of finish_thread_state | |
742 | cleanup. | |
743 | * infrun.c (proceed, prepare_for_detach, wait_for_inferior) | |
744 | (fetch_inferior_event, normal_stop): Likewise. | |
745 | * thread.c (finish_thread_state_cleanup): Delete. | |
746 | ||
d5f4488f SM |
747 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
748 | Pedro Alves <palves@redhat.com> | |
749 | ||
750 | * value.c: Include "selftest.h" and "common/array-view.h". | |
751 | (struct range) <operator ==>: New. | |
752 | (test_ranges_contain): New. | |
753 | (check_ranges_vector): New. | |
754 | (test_insert_into_bit_range_vector): New. | |
755 | (_initialize_values): Register selftests. | |
756 | * common/array-view.h (operator==, operator!=): New. | |
757 | ||
b24531ed SM |
758 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
759 | ||
760 | * common/gdb_vecs.h (unordered_remove): Add overload that takes | |
761 | an iterator. | |
762 | * inline-frame.c: Include <algorithm>. | |
763 | (struct inline_state): Add constructor. | |
764 | (inline_state_s): Remove. | |
765 | (DEF_VEC_O(inline_state_s)): Remove. | |
766 | (inline_states): Change type to std::vector. | |
767 | (find_inline_frame_state): Adjust to std::vector. | |
768 | (allocate_inline_frame_state): Remove. | |
769 | (clear_inline_frame_state): Adjust to std::vector. | |
770 | (skip_inline_frames): Adjust to std::vector. | |
771 | ||
c252925c SM |
772 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
773 | ||
774 | * tracepoint.h (struct trace_state_variable): Add constructor. | |
775 | <name>: Change type to std::string. | |
776 | * tracepoint.c (tsv_s): Remove. | |
777 | (DEF_VEC_O(tsv_s)): Remove. | |
778 | (tvariables): Change to std::vector. | |
779 | (create_trace_state_variable): Adjust to std::vector. | |
780 | (find_trace_state_variable): Likewise. | |
781 | (find_trace_state_variable_by_number): Likewise. | |
782 | (delete_trace_state_variable): Likewise. | |
783 | (trace_variable_command): Adjust to std::string. | |
784 | (delete_trace_variable_command): Likewise. | |
785 | (tvariables_info_1): Adjust to std::vector. | |
786 | (save_trace_state_variables): Likewise. | |
787 | (start_tracing): Likewise. | |
788 | (merge_uploaded_trace_state_variables): Adjust to std::vector | |
789 | and std::string. | |
790 | * target.h (struct target_ops) | |
791 | <to_download_trace_state_variable>: Pass reference to | |
792 | trace_state_variable. | |
793 | * target-debug.h (target_debug_print_const_trace_state_variable_r): New. | |
794 | * target-delegates.c: Re-generate. | |
795 | * mi/mi-interp.c (mi_tsv_created): Adjust to std::string. | |
796 | (mi_tsv_deleted): Likewise. | |
797 | * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise. | |
798 | * remote.c (remote_download_trace_state_variable): Change | |
799 | pointer to reference and adjust. | |
800 | * make-target-delegates (parse_argtypes): Handle references. | |
801 | (write_function_header): Likewise. | |
802 | (munge_type): Likewise. | |
803 | ||
c9638d26 SM |
804 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
805 | ||
806 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
807 | string_view-selftests.c. | |
808 | * unittests/basic_string_view/capacity/1.cc: Adapt to GDB | |
809 | testsuite. | |
810 | * unittests/basic_string_view/cons/char/1.cc: Likewise. | |
811 | * unittests/basic_string_view/cons/char/2.cc: Likewise. | |
812 | * unittests/basic_string_view/cons/char/3.cc: Likewise. | |
813 | * unittests/basic_string_view/element_access/char/1.cc: | |
814 | Likewise. | |
815 | * unittests/basic_string_view/element_access/char/empty.cc: | |
816 | Likewise. | |
817 | * unittests/basic_string_view/element_access/char/front_back.cc: | |
818 | Likewise. | |
819 | * unittests/basic_string_view/inserters/char/2.cc: Likewise. | |
820 | * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: | |
821 | Likewise. | |
822 | * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: | |
823 | Likewise. | |
824 | * unittests/basic_string_view/modifiers/swap/char/1.cc: | |
825 | Likewise. | |
826 | * unittests/basic_string_view/operations/compare/char/1.cc: | |
827 | Likewise. | |
828 | * unittests/basic_string_view/operations/compare/char/13650.cc: | |
829 | Likewise. | |
830 | * unittests/basic_string_view/operations/copy/char/1.cc: | |
831 | Likewise. | |
832 | * unittests/basic_string_view/operations/data/char/1.cc: | |
833 | Likewise. | |
834 | * unittests/basic_string_view/operations/find/char/1.cc: | |
835 | Likewise. | |
836 | * unittests/basic_string_view/operations/find/char/2.cc: | |
837 | Likewise. | |
838 | * unittests/basic_string_view/operations/find/char/3.cc: | |
839 | Likewise. | |
840 | * unittests/basic_string_view/operations/find/char/4.cc: | |
841 | Likewise. | |
842 | * unittests/basic_string_view/operations/rfind/char/1.cc: | |
843 | Likewise. | |
844 | * unittests/basic_string_view/operations/rfind/char/2.cc: | |
845 | Likewise. | |
846 | * unittests/basic_string_view/operations/rfind/char/3.cc: | |
847 | Likewise. | |
848 | * unittests/basic_string_view/operations/substr/char/1.cc: | |
849 | Likewise. | |
850 | * unittests/basic_string_view/operators/char/2.cc: Likewise. | |
851 | * unittests/string_view-selftests.c: New file. | |
852 | ||
fdc11678 SM |
853 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
854 | ||
855 | * unittests/basic_string_view/capacity/1.cc: New file. | |
856 | * unittests/basic_string_view/capacity/empty_neg.cc: New file. | |
857 | * unittests/basic_string_view/cons/char/1.cc: New file. | |
858 | * unittests/basic_string_view/cons/char/2.cc: New file. | |
859 | * unittests/basic_string_view/cons/char/3.cc: New file. | |
860 | * unittests/basic_string_view/cons/wchar_t/1.cc: New file. | |
861 | * unittests/basic_string_view/cons/wchar_t/2.cc: New file. | |
862 | * unittests/basic_string_view/cons/wchar_t/3.cc: New file. | |
863 | * unittests/basic_string_view/element_access/char/1.cc: New file. | |
864 | * unittests/basic_string_view/element_access/char/2.cc: New file. | |
865 | * unittests/basic_string_view/element_access/char/empty.cc: New file. | |
866 | * unittests/basic_string_view/element_access/char/front_back.cc: New file. | |
867 | * unittests/basic_string_view/element_access/wchar_t/1.cc: New file. | |
868 | * unittests/basic_string_view/element_access/wchar_t/2.cc: New file. | |
869 | * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file. | |
870 | * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file. | |
871 | * unittests/basic_string_view/include.cc: New file. | |
872 | * unittests/basic_string_view/inserters/char/1.cc: New file. | |
873 | * unittests/basic_string_view/inserters/char/2.cc: New file. | |
874 | * unittests/basic_string_view/inserters/char/3.cc: New file. | |
875 | * unittests/basic_string_view/inserters/pod/10081-out.cc: New file. | |
876 | * unittests/basic_string_view/inserters/wchar_t/1.cc: New file. | |
877 | * unittests/basic_string_view/inserters/wchar_t/2.cc: New file. | |
878 | * unittests/basic_string_view/inserters/wchar_t/3.cc: New file. | |
879 | * unittests/basic_string_view/literals/types.cc: New file. | |
880 | * unittests/basic_string_view/literals/values.cc: New file. | |
881 | * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file. | |
882 | * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file. | |
883 | * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file. | |
884 | * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file. | |
885 | * unittests/basic_string_view/modifiers/swap/char/1.cc: New file. | |
886 | * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file. | |
887 | * unittests/basic_string_view/operations/compare/char/1.cc: New file. | |
888 | * unittests/basic_string_view/operations/compare/char/13650.cc: New file. | |
889 | * unittests/basic_string_view/operations/compare/char/2.cc: New file. | |
890 | * unittests/basic_string_view/operations/compare/char/70483.cc: New file. | |
891 | * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file. | |
892 | * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file. | |
893 | * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file. | |
894 | * unittests/basic_string_view/operations/copy/char/1.cc: New file. | |
895 | * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file. | |
896 | * unittests/basic_string_view/operations/data/char/1.cc: New file. | |
897 | * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file. | |
898 | * unittests/basic_string_view/operations/find/char/1.cc: New file. | |
899 | * unittests/basic_string_view/operations/find/char/2.cc: New file. | |
900 | * unittests/basic_string_view/operations/find/char/3.cc: New file. | |
901 | * unittests/basic_string_view/operations/find/char/4.cc: New file. | |
902 | * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file. | |
903 | * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file. | |
904 | * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file. | |
905 | * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file. | |
906 | * unittests/basic_string_view/operations/rfind/char/1.cc: New file. | |
907 | * unittests/basic_string_view/operations/rfind/char/2.cc: New file. | |
908 | * unittests/basic_string_view/operations/rfind/char/3.cc: New file. | |
909 | * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file. | |
910 | * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file. | |
911 | * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file. | |
912 | * unittests/basic_string_view/operations/string_conversion/1.cc: New file. | |
913 | * unittests/basic_string_view/operations/substr/char/1.cc: New file. | |
914 | * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file. | |
915 | * unittests/basic_string_view/operators/char/2.cc: New file. | |
916 | * unittests/basic_string_view/operators/wchar_t/2.cc: New file. | |
917 | * unittests/basic_string_view/range_access/char/1.cc: New file. | |
918 | * unittests/basic_string_view/range_access/wchar_t/1.cc: New file. | |
919 | * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file. | |
920 | * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file. | |
921 | * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file. | |
922 | * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file. | |
923 | * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file. | |
924 | * unittests/basic_string_view/requirements/typedefs.cc: New file. | |
925 | * unittests/basic_string_view/typedefs.cc: New file. | |
926 | * unittests/basic_string_view/types/1.cc: New file. | |
927 | ||
8345c4a2 SM |
928 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
929 | ||
930 | * common/gdb_string_view.h: Remove libstdc++ implementation | |
931 | details, adjust to gdb reality. | |
932 | * common/gdb_string_view.tcc: Likewise. | |
933 | * cli/cli-script.c (struct string_view): Remove. | |
934 | (user_args) <m_args>: Change element type to gdb::string_view. | |
935 | (user_args::insert_args): Adjust. | |
936 | ||
7adcdf08 SM |
937 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
938 | ||
939 | * common/gdb_string_view.h: New file. | |
940 | * common/gdb_string_view.tcc: New file. | |
941 | ||
41260ac2 SM |
942 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
943 | ||
944 | * ax_cxx_compile_stdcxx.m4: Sync with upstream. | |
945 | * configure: Re-generate. | |
946 | ||
0bee6dd4 PA |
947 | 2018-04-09 Pedro Alves <palves@redhat.com> |
948 | ||
949 | * gdbarch.sh: Include "observable.h" instead of "observer.h". | |
950 | (set_target_gdbarch): Call | |
951 | gdb::observers::architecture_changed.notify instead of | |
952 | observer_notify_architecture_changed. | |
953 | ||
6f14adc5 SM |
954 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
955 | ||
956 | * tracepoint.c (struct current_traceframe_cleanup): Remove. | |
957 | (do_restore_current_traceframe_cleanup): Remove. | |
958 | (restore_current_traceframe_cleanup_dtor): Remove. | |
959 | (make_cleanup_restore_current_traceframe): Remove. | |
960 | (scoped_restore_current_traceframe::scoped_restore_current_traceframe): | |
961 | New. | |
962 | * tracepoint.h (struct scoped_restore_current_traceframe): New. | |
963 | * infrun.c (fetch_inferior_event): Use | |
964 | scoped_restore_current_traceframe. | |
965 | ||
b2bdb8cf SM |
966 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
967 | ||
968 | * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>: | |
969 | Remove. | |
970 | <n_allocated_type_units>: Remove. | |
971 | <all_type_units>: Change to std::vector. | |
972 | * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust | |
973 | to std::vector change. | |
974 | (dwarf2_per_objfile::get_cutu): Likewise. | |
975 | (dwarf2_per_objfile::get_tu): Likewise. | |
976 | (create_signatured_type_table_from_index): Likewise. | |
977 | (create_signatured_type_table_from_debug_names): Likewise. | |
978 | (dw2_symtab_iter_next): Likewise. | |
979 | (dw2_print_stats): Likewise. | |
980 | (dw2_expand_all_symtabs): Likewise. | |
981 | (dw2_expand_marked_cus): Likewise. | |
982 | (dw2_debug_names_iterator::next): Likewise. | |
983 | (dwarf2_initialize_objfile): Likewise. | |
984 | (add_signatured_type_cu_to_table): Likewise. | |
985 | (create_all_type_units): Likewise. | |
986 | (add_type_unit): Likewise. | |
987 | (struct tu_abbrev_offset): Add constructor. | |
988 | (build_type_psymtabs_1): Adjust to std::vector change. | |
989 | (print_tu_stats): Likewise. | |
990 | * dwarf-index-write.c (check_dwarf64_offsets): Likewise. | |
991 | (write_debug_names): Likewise. | |
992 | ||
b76e467d SM |
993 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
994 | ||
995 | * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise. | |
996 | Make an std::vector. | |
997 | <n_comp_units>: Remove. | |
998 | * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust | |
999 | to std::vector change. | |
1000 | (dwarf2_per_objfile::get_cutu): Likewise. | |
1001 | (dwarf2_per_objfile::get_cu): Likewise. | |
1002 | (create_cus_from_index): Likewise. | |
1003 | (create_addrmap_from_index): Likewise. | |
1004 | (create_addrmap_from_aranges): Likewise. | |
1005 | (dwarf2_read_index): Likewise. | |
1006 | (dw2_find_last_source_symtab): Likewise. | |
1007 | (dw2_map_symtabs_matching_filename): Likewise. | |
1008 | (dw2_symtab_iter_next): Likewise. | |
1009 | (dw2_print_stats): Likewise. | |
1010 | (dw2_expand_all_symtabs): Likewise. | |
1011 | (dw2_expand_symtabs_with_fullname): Likewise. | |
1012 | (dw2_expand_marked_cus): Likewise. | |
1013 | (dw2_map_symbol_filenames): Likewise. | |
1014 | (create_cus_from_debug_names): Likewise. | |
1015 | (dwarf2_read_debug_names): Likewise. | |
1016 | (dw2_debug_names_iterator::next): Likewise. | |
1017 | (dwarf2_initialize_objfile): Likewise. | |
1018 | (set_partial_user): Likewise. | |
1019 | (dwarf2_build_psymtabs_hard): Likewise. | |
1020 | (read_comp_units_from_section): Remove arguments, adjust to | |
1021 | std::vector change. | |
1022 | (create_all_comp_units): Adjust to std::vector and | |
1023 | read_comp_units_from_section changes. | |
1024 | (dwarf2_find_containing_comp_unit): Adjust to std::vector | |
1025 | change. | |
1026 | * dwarf-index-write.c (check_dwarf64_offsets): Likewise. | |
1027 | (psyms_seen_size): Likewise. | |
1028 | (write_gdbindex): Likewise. | |
1029 | (write_debug_names): Likewise. | |
1030 | ||
12359b5e SM |
1031 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
1032 | ||
1033 | * dwarf2read.c (create_cus_from_index_list): Replace objfile arg | |
1034 | with dwarf2_per_objfile. | |
1035 | (create_cus_from_index): Likewise. | |
1036 | (create_signatured_type_table_from_index): Likewise. | |
1037 | (dwarf2_read_index): Likewise. | |
1038 | (dwarf2_initialize_objfile): Likewise. | |
1039 | (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from | |
1040 | per_cu rather than get_dwarf2_per_objfile. | |
1041 | ||
ff4c9fec SM |
1042 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
1043 | ||
1044 | * dwarf2read.h (struct signatured_type): Forward declare. | |
1045 | (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>: | |
1046 | New methods. | |
1047 | * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from... | |
1048 | (dw2_get_cutu): ...this. | |
1049 | (dwarf2_per_objfile::get_cu): Rename from... | |
1050 | (dw2_get_cu): ...this. | |
1051 | (dwarf2_per_objfile::get_tu): New. | |
1052 | (create_addrmap_from_index): Adjust. | |
1053 | (create_addrmap_from_aranges): Adjust. | |
1054 | (dw2_find_last_source_symtab): Adjust. | |
1055 | (dw2_map_symtabs_matching_filename): Adjust. | |
1056 | (dw2_symtab_iter_next): Adjust. | |
1057 | (dw2_print_stats): Adjust. | |
1058 | (dw2_expand_all_symtabs): Adjust. | |
1059 | (dw2_expand_symtabs_with_fullname): Adjust. | |
1060 | (dw2_expand_marked_cus): Adjust. | |
1061 | (dw_expand_symtabs_matching_file_matcher): Adjust. | |
1062 | (dw2_map_symbol_filenames): Adjust. | |
1063 | (dw2_debug_names_iterator::next): Adjust. | |
1064 | (dwarf2_initialize_objfile): Adjust. | |
1065 | (set_partial_user): Adjust. | |
1066 | (dwarf2_build_psymtabs_hard): Adjust. | |
1067 | ||
5ca3fcb6 SM |
1068 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
1069 | ||
1070 | * dwarf2read.c (create_signatured_type_table_from_debug_names): | |
1071 | Remove unused variables. | |
1072 | (dw2_map_symtabs_matching_filename): Likewise. | |
1073 | (dwarf2_record_block_ranges): Likewise. | |
1074 | (dwarf2_read_addr_index): Likewise. | |
1075 | (follow_die_offset): Likewise. | |
1076 | ||
b2e586e8 SM |
1077 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
1078 | ||
1079 | * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET | |
1080 | to symbol_file_add_main. | |
1081 | ||
7c4e78cf SM |
1082 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
1083 | ||
1084 | PR mi/22299 | |
1085 | * mi/mi-console.c (do_fputc_async_safe): New. | |
1086 | (mi_console_file::write_async_safe): New. | |
1087 | (mi_console_file::flush): Adjust calls to fputstrn_unfiltered. | |
1088 | * mi/mi-console.h (class mi_console_file) <write_async_safe>: | |
1089 | New. | |
1090 | * ui-file.c (ui_file::putstrn): Adjust call to | |
1091 | fputstrn_unfiltered. | |
1092 | * utils.c (printchar): Replace do_fputs and do_fprintf | |
1093 | parameters by do_fputc. | |
1094 | (fputstr_filtered): Adjust call to printchar. | |
1095 | (fputstr_unfiltered): Likewise. | |
1096 | (fputstrn_filtered): Likewise. | |
1097 | (fputstrn_unfiltered): Add do_fputc parameter, pass to | |
1098 | printchar. | |
1099 | * utils.h (do_fputc_ftype): New typedef. | |
1100 | (fputstrn_unfiltered): Add do_fputc parameter. | |
1101 | ||
5dc026d3 SM |
1102 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
1103 | ||
1104 | * regformats/i386/i386-avx.dat: Remove. | |
1105 | ||
c912f608 SM |
1106 | 2018-04-07 Simon Marchi <simon.marchi@ericsson.com> |
1107 | ||
1108 | PR gdb/22979 | |
1109 | * amd64-tdep.c (amd64_none_init_abi): New function. | |
1110 | (amd64_x32_none_init_abi): New function. | |
1111 | (_initialize_amd64_tdep): Register handlers for x86-64 and | |
1112 | x64_32 with GDB_OSABI_NONE. | |
1113 | * osabi.c (gdbarch_init_osabi): Allow running handlers for the | |
1114 | GDB_OSABI_NONE osabi. | |
1115 | ||
26540402 SM |
1116 | 2018-04-07 Simon Marchi <simon.marchi@ericsson.com> |
1117 | ||
1118 | PR gdb/22980 | |
1119 | * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add | |
1120 | GDB_OSABI_NONE. | |
1121 | * arch-utils.c (gdbarch_info_init): Don't set info->osabi. | |
1122 | * osabi.c (gdb_osabi_names): Add "unknown" entry. | |
1123 | ||
9018be22 SM |
1124 | 2018-04-07 Simon Marchi <simon.marchi@ericsson.com> |
1125 | ||
1126 | * common/byte-vector.h (char_vector): New type. | |
1127 | * target.h (target_read_alloc): Return | |
1128 | gdb::optional<byte_vector>. | |
1129 | (target_read_stralloc): Return gdb::optional<char_vector>. | |
1130 | (target_get_osdata): Return gdb::optional<char_vector>. | |
1131 | * target.c (target_read_alloc_1): Templatize. Replacement | |
1132 | manual memory management with vector. | |
1133 | (target_read_alloc): Change return type, adjust. | |
1134 | (target_read_stralloc): Change return type, adjust. | |
1135 | (target_get_osdata): Change return type, adjust. | |
1136 | * auxv.c (struct auxv_info) <length>: Remove. | |
1137 | <data>: Change type to gdb::optional<byte_vector>. | |
1138 | (auxv_inferior_data_cleanup): Free auxv_info with delete. | |
1139 | (get_auxv_inferior_data): Allocate auxv_info with new, adjust. | |
1140 | (target_auxv_search): Adjust. | |
1141 | (fprint_target_auxv): Adjust. | |
1142 | * avr-tdep.c (avr_io_reg_read_command): Adjust. | |
1143 | * linux-tdep.c (linux_spu_make_corefile_notes): Adjust. | |
1144 | (linux_make_corefile_notes): Adjust. | |
1145 | * osdata.c (get_osdata): Adjust. | |
1146 | * remote.c (remote_get_threads_with_qxfer): Adjust. | |
1147 | (remote_memory_map): Adjust. | |
1148 | (remote_traceframe_info): Adjust. | |
1149 | (btrace_read_config): Adjust. | |
1150 | (remote_read_btrace): Adjust. | |
1151 | (remote_pid_to_exec_file): Adjust. | |
1152 | * solib-aix.c (solib_aix_get_library_list): Adjust. | |
1153 | * solib-dsbt.c (decode_loadmap): Don't free buf. | |
1154 | (dsbt_get_initial_loadmaps): Adjust. | |
1155 | * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust. | |
1156 | * solib-target.c (solib_target_current_sos): Adjust. | |
1157 | * tracepoint.c (sdata_make_value): Adjust. | |
1158 | * xml-support.c (xinclude_start_include): Adjust. | |
1159 | (xml_fetch_content_from_file): Adjust. | |
1160 | * xml-support.h (xml_fetch_another): Change return type. | |
1161 | (xml_fetch_content_from_file): Change return type. | |
1162 | * xml-syscall.c (xml_init_syscalls_info): Adjust. | |
1163 | * xml-tdesc.c (file_read_description_xml): Adjust. | |
1164 | (fetch_available_features_from_target): Change return type. | |
1165 | (target_fetch_description_xml): Adjust. | |
1166 | (target_read_description_xml): Adjust. | |
1167 | ||
14c88955 TT |
1168 | 2018-04-06 Tom Tromey <tom@tromey.com> |
1169 | ||
1170 | * value.c (~value): Update. | |
1171 | (struct value) <contents>: Now unique_xmalloc_ptr. | |
1172 | (value_contents_bits_eq, allocate_value_contents) | |
1173 | (value_contents_raw, value_contents_all_raw) | |
1174 | (value_contents_for_printing, value_contents_for_printing_const) | |
1175 | (set_value_enclosing_type): Update. | |
1176 | ||
0c7e6dd8 TT |
1177 | 2018-04-06 Tom Tromey <tom@tromey.com> |
1178 | ||
1179 | * value.c (range_s): Remove typedef, VEC. | |
1180 | (struct range): Add operator<. | |
1181 | (range_lessthan): Remove. | |
1182 | (ranges_contain): Change type. | |
1183 | (~value): Update. | |
1184 | (struct value) <unavailable, optimized_out>: Now std::vector. | |
1185 | (value_entirely_available) | |
1186 | (value_entirely_covered_by_range_vector) | |
1187 | (value_entirely_unavailable, value_entirely_optimized_out): | |
1188 | Update. | |
1189 | (insert_into_bit_range_vector): Change argument type. | |
1190 | (find_first_range_overlap): Likewise. | |
1191 | (struct ranges_and_idx, value_contents_bits_eq) | |
1192 | (require_not_optimized_out, require_available): Update. | |
1193 | (ranges_copy_adjusted): Change argument types. | |
1194 | (value_optimized_out, value_copy, value_fetch_lazy): Update. | |
1195 | ||
2c8331b9 TT |
1196 | 2018-04-06 Tom Tromey <tom@tromey.com> |
1197 | ||
1198 | * value.c (~value): Update. | |
1199 | (struct value) <parent>: Now a value_ref_ptr. | |
1200 | (value_parent, set_value_parent, value_address, value_copy): | |
1201 | Update. | |
1202 | ||
466ce3ae TT |
1203 | 2018-04-06 Tom Tromey <tom@tromey.com> |
1204 | ||
1205 | * value.c (struct value): Add constructor, destructor, and member | |
1206 | initializers. | |
1207 | (allocate_value_lazy, value_decref): Update. | |
1208 | ||
062d818d TT |
1209 | 2018-04-06 Tom Tromey <tom@tromey.com> |
1210 | ||
1211 | * value.c (struct value) <released, next>: Remove. | |
1212 | (all_values): Now a std::vector. | |
1213 | (allocate_value_lazy): Update. | |
1214 | (value_next): Remove. | |
1215 | (value_mark, value_free_to_mark, release_value) | |
1216 | (value_release_to_mark): Update. | |
1217 | ||
a6535de1 TT |
1218 | 2018-04-06 Tom Tromey <tom@tromey.com> |
1219 | ||
1220 | * value.h (fetch_subexp_value, value_release_to_mark): Update. | |
1221 | (free_value_chain): Remove. | |
1222 | * value.c (free_value_chain): Remove. | |
1223 | (value_release_to_mark): Return a std::vector. | |
1224 | * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a | |
1225 | std::vector. | |
1226 | (check_condition): Update. | |
1227 | * eval.c (fetch_subexp_value): Change "val_chain" to a | |
1228 | std::vector. | |
1229 | * breakpoint.c (update_watchpoint): Update. | |
1230 | (can_use_hardware_watchpoint): Change "vals" to a std::vector. | |
1231 | ||
b5621201 TT |
1232 | 2018-04-06 Tom Tromey <tom@tromey.com> |
1233 | ||
1234 | * value.h (free_all_values): Remove. | |
1235 | * value.c (free_all_values): Remove. | |
1236 | ||
4d0266a0 TT |
1237 | 2018-04-06 Tom Tromey <tom@tromey.com> |
1238 | ||
1239 | * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk) | |
1240 | (value_history_chain, value_history_count): Remove. | |
1241 | (value_history): New global. | |
1242 | (record_latest_value, access_value_history, show_values) | |
1243 | (preserve_values): Update. | |
1244 | ||
b4d61099 TT |
1245 | 2018-04-06 Tom Tromey <tom@tromey.com> |
1246 | ||
1247 | * varobj.h (struct varobj) <value>: Now a value_ref_ptr. | |
1248 | * varobj.c (varobj_set_display_format, varobj_set_value) | |
1249 | (install_default_visualizer, construct_visualizer) | |
1250 | (install_new_value, ~varobj, varobj_get_value_type) | |
1251 | (my_value_of_variable, varobj_editable_p): Update. | |
1252 | * c-varobj.c (c_describe_child, c_value_of_variable) | |
1253 | (cplus_number_of_children, cplus_describe_child): Update. | |
1254 | * ada-varobj.c (ada_number_of_children, ada_name_of_child) | |
1255 | (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child) | |
1256 | (ada_value_of_variable, ada_value_is_changeable_p): Update. | |
1257 | ||
9b558729 TT |
1258 | 2018-04-06 Tom Tromey <tom@tromey.com> |
1259 | ||
1260 | * printcmd.c (last_examine_address): Change type to | |
1261 | value_ref_ptr. | |
1262 | (do_examine, x_command): Update. | |
1263 | ||
850645cf TT |
1264 | 2018-04-06 Tom Tromey <tom@tromey.com> |
1265 | ||
1266 | * value.c (release_value): Update. | |
1267 | * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr. | |
1268 | (struct bpstats) <val>: Now a value_ref_ptr. | |
1269 | * breakpoint.c (update_watchpoint, breakpoint_init_inferior) | |
1270 | (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check) | |
1271 | (~watchpoint, print_it_watchpoint, watch_command_1) | |
1272 | (invalidate_bp_value_on_memory_change): Update. | |
1273 | ||
22bc8444 TT |
1274 | 2018-04-06 Tom Tromey <tom@tromey.com> |
1275 | ||
1276 | * varobj.c (varobj_clear_saved_item) | |
1277 | (update_dynamic_varobj_children, install_new_value, ~varobj): | |
1278 | Update. | |
1279 | * value.h (value_incref): Move declaration earlier. | |
1280 | (value_decref): Rename from value_free. | |
1281 | (struct value_ref_policy): New. | |
1282 | (value_ref_ptr): New typedef. | |
1283 | (struct value_deleter): Remove. | |
1284 | (gdb_value_up): Remove typedef. | |
1285 | (release_value): Change return type. | |
1286 | (release_value_or_incref): Remove. | |
1287 | * value.c (set_value_parent): Update. | |
1288 | (value_incref): Change return type. | |
1289 | (value_decref): Rename from value_free. | |
1290 | (value_free_to_mark, free_all_values, free_value_chain): Update. | |
1291 | (release_value): Return value_ref_ptr. | |
1292 | (release_value_or_incref): Remove. | |
1293 | (record_latest_value, set_internalvar, clear_internalvar): | |
1294 | Update. | |
1295 | * stack.c (info_frame_command): Don't call value_free. | |
1296 | * python/py-value.c (valpy_dealloc, valpy_new) | |
1297 | (value_to_value_object): Update. | |
1298 | * printcmd.c (do_examine): Update. | |
1299 | * opencl-lang.c (lval_func_free_closure): Update. | |
1300 | * mi/mi-main.c (register_changed_p): Don't call value_free. | |
1301 | * mep-tdep.c (mep_frame_prev_register): Don't call value_free. | |
1302 | * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free. | |
1303 | * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call | |
1304 | value_free. | |
1305 | * guile/scm-value.c (vlscm_free_value_smob) | |
1306 | (vlscm_scm_from_value): Update. | |
1307 | * frame.c (frame_register_unwind, frame_unwind_register_signed) | |
1308 | (frame_unwind_register_unsigned, get_frame_register_bytes) | |
1309 | (put_frame_register_bytes): Don't call value_free. | |
1310 | * findvar.c (address_from_register): Don't call value_free. | |
1311 | * dwarf2read.c (dwarf2_compute_name): Don't call value_free. | |
1312 | * dwarf2loc.c (entry_data_value_free_closure) | |
1313 | (value_of_dwarf_reg_entry, free_pieced_value_closure) | |
1314 | (dwarf2_evaluate_loc_desc_full): Update. | |
1315 | * breakpoint.c (update_watchpoint, breakpoint_init_inferior) | |
1316 | (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check) | |
1317 | (~watchpoint, watch_command_1) | |
1318 | (invalidate_bp_value_on_memory_change): Update. | |
1319 | * alpha-tdep.c (alpha_register_to_value): Don't call value_free. | |
1320 | ||
7f8a5d38 SM |
1321 | 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca> |
1322 | ||
1323 | PR gdb/23022 | |
1324 | * warning.m4: Add -Wno-error=deprecated-register. | |
1325 | * configure: Re-generate. | |
1326 | ||
8a76bd3b TT |
1327 | 2018-04-05 Tom Tromey <tom@tromey.com> |
1328 | ||
1329 | * linespec.h: Remove include of "vec.h". | |
1330 | ||
8e8d776e TT |
1331 | 2018-04-05 Tom Tromey <tom@tromey.com> |
1332 | ||
1333 | * linespec.c (typep): Remove typedef. | |
1334 | (find_methods, find_superclass_methods): Take a std::vector. | |
1335 | (find_method): Use std::vector. | |
1336 | ||
9b2f8581 TT |
1337 | 2018-04-05 Tom Tromey <tom@tromey.com> |
1338 | ||
1339 | * utils.c (compare_strings): Remove. | |
1340 | * utils.h (compare_strings): Remove. | |
1341 | * objc-lang.h (find_imps): Update. | |
1342 | * objc-lang.c (find_methods): Take a std::vector. | |
1343 | (uniquify_strings, find_imps): Likewise. | |
1344 | * linespec.c (find_methods): Take a std::vector. | |
1345 | (decode_objc): Use std::vector. | |
1346 | (add_all_symbol_names_from_pspace, find_superclass_methods): Take | |
1347 | a std::vector. | |
1348 | (find_method, find_function_symbols): Use std::vector. | |
1349 | ||
459a2e4c TT |
1350 | 2018-04-05 Tom Tromey <tom@tromey.com> |
1351 | ||
1352 | * completer.c (completion_tracker::completion_tracker): Remove | |
1353 | cast. | |
1354 | (completion_tracker::discard_completions): Likewise. | |
1355 | * breakpoint.c (ambiguous_names_p): Remove cast. | |
1356 | * ada-lang.c (_initialize_ada_language): Remove cast. | |
1357 | * utils.h (streq): Update. | |
1358 | (streq_hash): Add new declaration. | |
1359 | * utils.c (streq): Return bool. | |
1360 | (streq_hash): New function. | |
1361 | ||
9be2c17a TT |
1362 | 2018-04-05 Tom Tromey <tom@tromey.com> |
1363 | ||
1364 | * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>: | |
1365 | Remove a string copy. | |
1366 | ||
f73c6ece TT |
1367 | 2018-04-05 Tom Tromey <tom@tromey.com> |
1368 | ||
1369 | * linespec.c (filter_results): Use std::vector. | |
1370 | (decode_line_2, decode_line_full): Update. | |
1371 | ||
53a0f8a2 TT |
1372 | 2018-04-05 Tom Tromey <tom@tromey.com> |
1373 | ||
1374 | * linespec.c (canonical_to_fullform): Return std::string. | |
1375 | (filter_results): Update. | |
1376 | (struct decode_line_2_item): Add constructor. | |
1377 | <fullform, displayform>: Now std::string. | |
1378 | (decode_line_2_compare_items): Now a std::sort comparator. | |
1379 | (decode_line_2): Update. | |
1380 | ||
a5b5adf5 TT |
1381 | 2018-04-05 Tom Tromey <tom@tromey.com> |
1382 | ||
1383 | * linespec.c (copy_token_string): Return a unique_xmalloc_ptr. | |
1384 | (unexpected_linespec_error): Update. | |
1385 | (linespec_parse_basic, parse_linespec): Update. | |
1386 | ||
6a307fc5 TT |
1387 | 2018-04-05 Tom Tromey <tom@tromey.com> |
1388 | ||
1389 | * linespec.c (linespec_parse_basic): Reindent. | |
1390 | ||
41c1efc6 TT |
1391 | 2018-04-05 Tom Tromey <tom@tromey.com> |
1392 | ||
1393 | * minsyms.h (iterate_over_minimal_symbols): Update. | |
1394 | * minsyms.c (iterate_over_minimal_symbols): Take a | |
1395 | gdb::function_view. | |
1396 | * linespec.c (struct collect_minsyms): Remove. | |
1397 | (compare_msyms): Now a std::sort comparator. | |
1398 | (add_minsym): Add parameters. | |
1399 | (search_minsyms_for_name): Update. Use std::vector. | |
1400 | ||
c5edbf3d TT |
1401 | 2018-04-03 Tom Tromey <tom@tromey.com> |
1402 | ||
1403 | * mipsread.c (read_alphacoff_dynamic_symtab): Use | |
1404 | gdb::byte_vector. | |
1405 | ||
b39efc48 WP |
1406 | 2018-04-02 Weimin Pan <weimin.pan@oracle.com> |
1407 | ||
1408 | * MAINTAINERS (Write After Approval): Add Weimin Pan. | |
1409 | ||
121ad66c | 1410 | 2018-04-02 Weimin Pan <weimin.pan@oracle.com> |
79f18731 WP |
1411 | |
1412 | PR gdb/16959 | |
1413 | * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when | |
1414 | printing static type. | |
1415 | ||
09473be8 TT |
1416 | 2018-04-01 Tom Tromey <tom@tromey.com> |
1417 | ||
1418 | * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector. | |
1419 | (rs6000_xfer_shared_libraries): Update. | |
1420 | ||
ec1f2d91 SM |
1421 | 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca> |
1422 | ||
1423 | * common/gdb_vecs.h (char_ptr): Remove. | |
1424 | * tracepoint.c (encode_actions_1): Remove usage of char_ptr. | |
1425 | ||
d8611974 SM |
1426 | 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca> |
1427 | ||
1428 | * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC | |
1429 | with std::vector. | |
1430 | * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove. | |
1431 | ||
a18ba4e4 SM |
1432 | 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca> |
1433 | ||
1434 | * tracepoint.h (struct uploaded_tp): Initialize fields. | |
1435 | <actions, step_actions, cmd_strings>: Change type to | |
1436 | std::vector<char *>. | |
1437 | * tracepoint.c (get_uploaded_tp): Allocate with new. | |
1438 | (free_uploaded_tps): Free with delete. | |
1439 | (parse_tracepoint_definition): Adjust to std::vector change. | |
1440 | * breakpoint.c (read_uploaded_action): Likewise. | |
1441 | (create_tracepoint_from_upload): Likewise. | |
1442 | * ctf.c (ctf_write_uploaded_tp): Likewise. | |
1443 | (SET_ARRAY_FIELD): Likewise. | |
1444 | * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise. | |
1445 | ||
a7961323 TT |
1446 | 2018-03-30 Tom Tromey <tom@tromey.com> |
1447 | ||
1448 | * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return | |
1449 | std::unique_ptr. | |
1450 | (svr4_keep_data_in_core): Update. | |
1451 | (svr4_read_so_list): Update. | |
1452 | ||
e83e4e24 TT |
1453 | 2018-03-30 Tom Tromey <tom@tromey.com> |
1454 | ||
1455 | * windows-nat.c (handle_output_debug_string, handle_exception): | |
1456 | Update. | |
1457 | * target.h (target_read_string): Update. | |
1458 | * target.c (target_read_string): Change "string" to | |
1459 | unique_xmalloc_ptr. | |
1460 | * solib-svr4.c (open_symbol_file_object, svr4_read_so_list): | |
1461 | Update. | |
1462 | * solib-frv.c (frv_current_sos): Update. | |
1463 | * solib-dsbt.c (dsbt_current_sos): Update. | |
1464 | * solib-darwin.c (darwin_current_sos): Update. | |
1465 | * linux-thread-db.c (inferior_has_bug): Update. | |
1466 | * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>: | |
1467 | Update. Remove alloca. | |
1468 | * ada-lang.c (ada_main_name): Update. | |
1469 | ||
263db9a1 TT |
1470 | 2018-03-30 Tom Tromey <tom@tromey.com> |
1471 | ||
1472 | * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove. | |
1473 | (struct dwo_file_deleter): New. | |
1474 | (dwo_file_up): New typedef. | |
1475 | (open_and_init_dwo_file): Use dwo_file_up. | |
1476 | (free_dwo_file_cleanup): Remove. | |
1477 | ||
5dafb3d1 TT |
1478 | 2018-03-30 Tom Tromey <tom@tromey.com> |
1479 | ||
1480 | * dwarf2read.c (free_dwo_file): Remove "objfile" parameter. | |
1481 | (free_dwo_file_cleanup, free_dwo_file_from_slot): Update. | |
1482 | ||
11ed8cad TT |
1483 | 2018-03-30 Tom Tromey <tom@tromey.com> |
1484 | ||
1485 | * dwarf2read.c (class free_cached_comp_units): New class. | |
1486 | (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it. | |
1487 | (free_cached_comp_units): Remove function. | |
1488 | ||
9ae79dac TT |
1489 | 2018-03-30 Tom Tromey <tom@tromey.com> |
1490 | ||
1491 | * utils.h (make_cleanup_unpush_target): Remove. | |
1492 | * inf-ptrace.c (struct target_unpusher): New. | |
1493 | (target_unpush_up) New typedef. | |
1494 | (inf_ptrace_create_inferior, inf_ptrace_attach): Use | |
1495 | target_unpush_up. | |
1496 | * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove. | |
1497 | ||
5aa89276 TT |
1498 | 2018-03-27 Tom Tromey <tom@tromey.com> |
1499 | ||
1500 | * utils.c (prompt_for_continue): Use unique_xmalloc_ptr. | |
1501 | ||
1dbeed45 TT |
1502 | 2018-03-27 Pedro Alves <palves@redhat.com> |
1503 | Tom Tromey <tom@tromey.com> | |
1504 | ||
1505 | * top.c (class gdb_readline_wrapper_cleanup): Add constructor, | |
1506 | destructor. Now a class. | |
1507 | (gdb_readline_wrapper_cleanup): Remove function. | |
1508 | (gdb_readline_wrapper): Remove cleanups. | |
1509 | ||
c819b2c0 TT |
1510 | 2018-03-27 Tom Tromey <tom@tromey.com> |
1511 | ||
1512 | * typeprint.h (struct type_print_options) <local_typedefs, | |
1513 | global_typedefs>: Remove "struct" keyword. | |
1514 | (class typedef_hash_table): New class. | |
1515 | (recursively_update_typedef_hash, add_template_parameters) | |
1516 | (create_typedef_hash, free_typedef_hash, copy_typedef_hash) | |
1517 | (find_typedef_in_hash): Don't declare. | |
1518 | * typeprint.c (struct typedef_hash_table): Move to typeprint.h. | |
1519 | (typedef_hash_table::recursively_update): Rename from | |
1520 | recursively_update_typedef_hash. Now a member. | |
1521 | (typedef_hash_table::add_template_parameters): Rename from | |
1522 | add_template_parameters. Now a member. | |
1523 | (typedef_hash_table::typedef_hash_table): Now a constructor; | |
1524 | rename from create_typedef_hash. | |
1525 | (typedef_hash_table::~typedef_hash_table): Now a destructor; | |
1526 | rename from free_typedef_hash. | |
1527 | (do_free_typedef_hash, make_cleanup_free_typedef_hash) | |
1528 | (do_free_global_table): Remove. | |
1529 | (typedef_hash_table::typedef_hash_table): New constructor; renamed | |
1530 | from copy_type_recursive. | |
1531 | (create_global_typedef_table): Remove. | |
1532 | (typedef_hash_table::find_global_typedef): Now a member of | |
1533 | typedef_hash_table. | |
1534 | (typedef_hash_table::find_typedef): Rename from | |
1535 | find_typedef_in_hash; now a member. | |
1536 | (whatis_exp): Update. | |
1537 | * extension.h (struct ext_lang_type_printers): Add constructor and | |
1538 | destructor. | |
1539 | (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't | |
1540 | declare. | |
1541 | * extension.c (ext_lang_type_printers::ext_lang_type_printers): | |
1542 | Now a constructor; rename from start_ext_lang_type_printers. | |
1543 | (ext_lang_type_printers): Now a destructor; rename from | |
1544 | free_ext_lang_type_printers. | |
1545 | * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1): | |
1546 | Update. | |
1547 | (c_type_print_base_struct_union): Update. Remove cleanups. | |
1548 | ||
608219fb TT |
1549 | 2018-03-27 Tom Tromey <tom@tromey.com> |
1550 | ||
1551 | * dwarf-index-write.c: Include <cmath>. | |
1552 | ||
3fcded8f JB |
1553 | 2018-03-27 Joel Brobecker <brobecker@adacore.com> |
1554 | ||
1555 | * NEWS: Add entry describing new "set|show varsize-limit" command. | |
1556 | * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit" | |
1557 | command. | |
1558 | * printcmd.c (_initialize_printcmd): Add "set var" alias of | |
1559 | "set variable". | |
1560 | ||
cd4fb1b2 SM |
1561 | 2018-03-27 Simon Marchi <simon.marchi@ericsson.com> |
1562 | ||
1563 | * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and | |
1564 | dwarf-index-write.c | |
1565 | (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h. | |
1566 | * dwarf-index-common.c: New file. | |
1567 | * dwarf-index-common.h: New file. | |
1568 | * dwarf-index-write.c: New file. | |
1569 | * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h. | |
1570 | (struct dwarf2_section_info): Move from here. | |
1571 | (dwarf2_section_info_def): Likewise. | |
1572 | (DEF_VEC_O (dwarf2_section_info_def)): Likewise. | |
1573 | (offset_type): Likewise. | |
1574 | (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise. | |
1575 | (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise. | |
1576 | (DW2_GDB_INDEX_CU_SET_VALUE): Likewise. | |
1577 | (byte_swap): Likewise. | |
1578 | (MAYBE_SWAP): Likewise. | |
1579 | (dwarf2_per_cu_ptr): Likewise. | |
1580 | (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise. | |
1581 | (struct tu_stats): Likewise. | |
1582 | (struct dwarf2_per_objfile): Likewise. | |
1583 | (struct dwarf2_per_cu_data): Likewise. | |
1584 | (struct signatured_type): Likewise. | |
1585 | (sig_type_ptr): Likewise. | |
1586 | (DEF_VEC_P (sig_type_ptr)): Likewise. | |
1587 | (INDEX4_SUFFIX): Likewise. | |
1588 | (INDEX5_SUFFIX): Likewise. | |
1589 | (DEBUG_STR_SUFFIX): Likewise. | |
1590 | (dwarf2_read_section): Make non-static. | |
1591 | (mapped_index_string_hash): Move from here. | |
1592 | (dwarf5_djb_hash): Likewise. | |
1593 | (file_write): Likewise. | |
1594 | (class data_buf): Likewise. | |
1595 | (struct symtab_index_entry): Likewise. | |
1596 | (struct mapped_symtab): Likewise. | |
1597 | (find_slot): Likewise. | |
1598 | (hash_expand): Likewise. | |
1599 | (add_index_entry): Likewise. | |
1600 | (uniquify_cu_indices): Likewise. | |
1601 | (class c_str_view): Likewise. | |
1602 | (class c_str_view_hasher): Likewise. | |
1603 | (class vector_hasher): Likewise. | |
1604 | (write_hash_table): Likewise. | |
1605 | (psym_index_map): Likewise. | |
1606 | (struct addrmap_index_data): Likewise. | |
1607 | (add_address_entry): Likewise. | |
1608 | (add_address_entry_worker): Likewise. | |
1609 | (write_address_map): Likewise. | |
1610 | (symbol_kind): Likewise. | |
1611 | (write_psymbols): Likewise. | |
1612 | (struct signatured_type_index_data): Likewise. | |
1613 | (write_one_signatured_type): Likewise. | |
1614 | (recursively_count_psymbols): Likewise. | |
1615 | (recursively_write_psymbols): Likewise. | |
1616 | (class debug_names): Likewise. | |
1617 | (check_dwarf64_offsets): Likewise. | |
1618 | (psyms_seen_size): Likewise. | |
1619 | (write_gdbindex): Likewise. | |
1620 | (write_debug_names): Likewise. | |
1621 | (assert_file_size): Likewise. | |
1622 | (write_psymtabs_to_index): Likewise. | |
1623 | (save_gdb_index_command): Likewise. | |
1624 | (_initialize_dwarf2_read): Don't register the "save gdb-index" | |
1625 | command. | |
1626 | * dwarf2read.h: New file. | |
1627 | ||
59cc4834 JB |
1628 | 2018-03-27 Joel Brobecker <brobecker@adacore.com> |
1629 | ||
1630 | PR gdb/22670 | |
1631 | * dwarf2read.c (dwarf2_physname): Do not return the demangled | |
1632 | symbol name if the CU's language stores symbol names in linkage | |
1633 | format. | |
1634 | * language.h (struct language_defn) | |
1635 | <la_store_sym_names_in_linkage_form_p>: New field. Adjust | |
1636 | all instances of this struct. | |
1637 | ||
67501539 TT |
1638 | 2018-03-26 Tom Tromey <tom@tromey.com> |
1639 | ||
1640 | * stack.c (backtrace_command_1): Remove verbose code. | |
1641 | ||
76c939ac TT |
1642 | 2018-03-26 Tom Tromey <tom@tromey.com> |
1643 | ||
1644 | * python/py-framefilter.c (py_print_type): Don't catch | |
1645 | exceptions. Return void. | |
1646 | (py_print_value): Likewise. | |
1647 | (py_print_single_arg): Likewise. | |
1648 | (enumerate_args): Don't catch exceptions. | |
1649 | (py_print_args): Likewise. | |
1650 | (py_print_frame): Likewise. | |
1651 | (gdbpy_apply_frame_filter): Catch exceptions here. | |
1652 | ||
9507b29c TT |
1653 | 2018-03-26 Tom Tromey <tom@tromey.com> |
1654 | ||
1655 | * stack.c (_initialize_stack): Remove trailing newlines from help | |
1656 | text. Add "Usage" line to "backtrace" help. | |
1657 | ||
eb68e487 TT |
1658 | 2018-03-26 Tom Tromey <tom@tromey.com> |
1659 | ||
1660 | PR python/16486: | |
1661 | * python/py-framefilter.c (py_print_args): Call wrap_hint. | |
1662 | ||
1f111921 TT |
1663 | 2018-03-26 Tom Tromey <tom@tromey.com> |
1664 | ||
1665 | * python/py-framefilter.c (py_print_single_arg): Return | |
1666 | EXT_LANG_BT_ERROR from catch. | |
1667 | ||
fb7eb8b5 TT |
1668 | 2018-03-26 Tom Tromey <tom@tromey.com> |
1669 | ||
1670 | PR backtrace/15584: | |
1671 | * stack.c (backtrace_command_1): Move some code into no-filters | |
1672 | "if". | |
1673 | ||
4ca59a9f TT |
1674 | 2018-03-26 Tom Tromey <tom@tromey.com> |
1675 | ||
1676 | * python/py-framefilter.c (throw_quit_or_print_exception): New | |
1677 | function. | |
1678 | (gdbpy_apply_frame_filter): Use it. | |
1679 | ||
92256134 TT |
1680 | 2018-03-26 Tom Tromey <tom@tromey.com> |
1681 | ||
1682 | PR cli/17716: | |
1683 | * python/py-framefilter.c (py_print_type, py_print_value) | |
1684 | (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use | |
1685 | RETURN_MASK_ERROR. | |
1686 | ||
7a630bc2 TT |
1687 | 2018-03-26 Tom Tromey <tom@tromey.com> |
1688 | ||
1689 | * python/py-framefilter.c (enumerate_args): Use | |
1690 | gdb::unique_xmalloc_ptr. | |
1691 | ||
63283d4a TT |
1692 | 2018-03-26 Tom Tromey <tom@tromey.com> |
1693 | ||
1694 | * python/py-framefilter.c (py_print_frame): Return | |
1695 | EXT_LANG_BT_OK. | |
1696 | (gdbpy_apply_frame_filter): Update comment. | |
1697 | * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>: | |
1698 | Remove. | |
1699 | <EXT_LANG_BT_NO_FILTERS>: Change value. | |
1700 | ||
978d6c75 TT |
1701 | 2018-03-26 Tom Tromey <tom@tromey.com> |
1702 | ||
1703 | PR backtrace/15582: | |
1704 | * stack.c (backtrace_command): Parse "hide" argument. | |
1705 | * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE. | |
1706 | * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New | |
1707 | constant. | |
1708 | ||
1cf7e640 TT |
1709 | 2018-03-26 Tom Tromey <tom@tromey.com> |
1710 | ||
1711 | * stack.c (backtrace_command_1): Remove "show_locals" parameter, | |
1712 | add "flags". | |
1713 | (backtrace_command): Remove "fulltrace", add "flags". | |
1714 | ||
ea3b0687 TT |
1715 | 2018-03-26 Tom Tromey <tom@tromey.com> |
1716 | ||
1717 | * stack.c (backtrace_command): Rewrite command line parsing. | |
1718 | ||
9f034d75 SM |
1719 | 2018-03-26 Simon Marchi <simon.marchi@ericsson.com> |
1720 | ||
1721 | * dwarf2read.c (DEF_VEC_I(offset_type)): Remove. | |
1722 | ||
ce1459e5 SM |
1723 | 2018-03-26 Simon Marchi <simon.marchi@ericsson.com> |
1724 | ||
1725 | * filename-seen-cache.h: Add include guard. | |
1726 | ||
4f7ae6f5 KS |
1727 | 2018-03-26 Keith Seitz <keiths@redhat.com> |
1728 | ||
1729 | * symfile.c (place_section): Remove "struct" from section_addr_info | |
1730 | in comment. | |
1731 | * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove | |
1732 | "struct" keyword from section_addr_info. | |
1733 | ||
5cd3e386 AH |
1734 | 2018-03-26 Alan Hayward <alan.hayward@arm.com> |
1735 | ||
1736 | * regformats/regdef.h (reg): Add constructors. | |
1737 | ||
3e5ef9a4 PA |
1738 | 2018-03-25 Pedro Alves <palves@redhat.com> |
1739 | ||
1740 | * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE | |
1741 | if then/else bodies in var_func_name extraction. | |
1742 | ||
c88d2fcc | 1743 | 2018-03-23 Weimin Pan <weimin.pan@oracle.com> |
bce02d88 WP |
1744 | |
1745 | * minsyms.c (lookup_minimal_symbol_and_objfile): Use | |
1746 | lookup_minimal_symbol() to find symbol entry. | |
1747 | * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment. | |
1748 | ||
b7fee5a3 KS |
1749 | 2018-03-23 Keith Seitz <keiths@redhat.com> |
1750 | ||
1751 | PR c++/22968 | |
1752 | * dwarf2read.c (scan_partial_symbols): Scan structs/classes for | |
1753 | nested type definitions for C++, too. | |
1754 | ||
2cc9b304 TT |
1755 | 2018-03-23 Tom Tromey <tom@tromey.com> |
1756 | ||
1757 | * machoread.c (struct oso_el): Add a constructor. Don't define as | |
1758 | a typedef. | |
1759 | (macho_register_oso): Remove. | |
1760 | (macho_symtab_read): Take a std::vector. | |
1761 | (oso_el_compare_name): Now a std::sort comparator. | |
1762 | (macho_symfile_read_all_oso): Take a std::vector. | |
1763 | (macho_symfile_read): Use std::vector. Remove cleanups. | |
1764 | ||
a2b2bc12 TT |
1765 | 2018-03-22 Tom Tromey <tom@tromey.com> |
1766 | ||
1767 | * record-full.c (record_full_exec_insn): Use gdb::byte_vector. | |
1768 | (record_full_goto_bookmark): Use std::string. | |
1769 | ||
7a8f494c PFC |
1770 | 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
1771 | ||
1772 | PR tdep/18295 | |
1773 | * rs6000-tdep.c (skip_prologue): Match both stwux and stdux | |
1774 | a single mask. | |
1775 | ||
dd6d677f PFC |
1776 | 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
1777 | ||
1778 | * rs6000-tdep.c (store_insn_p): New function. | |
1779 | (skip_prologue): New variable alloca_reg_offset. Set lr_reg | |
1780 | and cr_reg to their unshifted values. Use store_insn_p to | |
1781 | match LR saves using either R1 or fdata->alloca_reg. Use | |
1782 | store_insn_p to match CR saves. Set alloca_reg_offset | |
1783 | when alloca_reg and framep are set. Remove lr_reg shift | |
1784 | when assigning to fdata->lr_register. | |
1785 | ||
26d6cec4 AA |
1786 | 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com> |
1787 | ||
1788 | * linux-tdep.c (linux_info_proc): For "info proc cmdline", print | |
1789 | command line args instead of emitting a warning. | |
1790 | ||
5d9310c4 SM |
1791 | 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca> |
1792 | ||
1793 | * tracepoint.h (struct static_tracepoint_marker): Initialize | |
1794 | fields, define default constructor, move constructor and move | |
1795 | assignment, disable the rest. | |
1796 | <str_id, extra>: Make std::string. | |
1797 | (release_static_tracepoint_marker): Remove. | |
1798 | (free_current_marker): Remove. | |
1799 | * tracepoint.c (free_current_marker): Remove. | |
1800 | (parse_static_tracepoint_marker_definition): Adjust to | |
1801 | std::string, use new hex2str overload. | |
1802 | (release_static_tracepoint_marker): Remove. | |
1803 | (print_one_static_tracepoint_marker): Get marker by reference | |
1804 | and adjust to std::string. | |
1805 | (info_static_tracepoint_markers_command): Adjust to std::vector | |
1806 | changes | |
1807 | * target.h (static_tracepoint_marker_p): Remove typedef. | |
1808 | (DEF_VEC_P(static_tracepoint_marker_p)): Remove. | |
1809 | (struct target_ops) <to_static_tracepoint_marker_at>: Return | |
1810 | bool. | |
1811 | <to_static_tracepoint_markers_by_strid>: Return std::vector. | |
1812 | * target-debug.h | |
1813 | (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove. | |
1814 | (target_debug_print_std_vector_static_tracepoint_marker): New. | |
1815 | (target_debug_print_struct_static_tracepoint_marker_p): Rename | |
1816 | to... | |
1817 | (target_debug_print_static_tracepoint_marker_p): ... this. | |
1818 | * target-delegates.c: Re-generate. | |
1819 | * breakpoint.h (struct tracepoint) <static_trace_marker_id>: | |
1820 | Make std::string. | |
1821 | * breakpoint.c (init_breakpoint_sal): Adjust to std::string. | |
1822 | (decode_static_tracepoint_spec): Adjust to std::vector. | |
1823 | (tracepoint_print_one_detail): Adjust to std::string. | |
1824 | (strace_marker_decode_location): Adjust to std::string. | |
1825 | (update_static_tracepoint): Adjust to std::string, remove call | |
1826 | to release_static_tracepoint_marker. | |
1827 | * linux-nat.c (linux_child_static_tracepoint_markers_by_strid): | |
1828 | Adjust to std::vector. | |
1829 | * remote.c (remote_static_tracepoint_marker_at): Return bool. | |
1830 | (remote_static_tracepoint_markers_by_strid): Adjust to | |
1831 | std::vector. | |
1832 | * common/rsp-low.h (hex2str): New overload with explicit count | |
1833 | of bytes. | |
1834 | * common/rsp-low.c (hex2str): New overload with explicit count | |
1835 | of bytes. | |
1836 | * unittests/rsp-low-selftests.c (test_hex2str): New function. | |
1837 | (_initialize_rsp_low_selftests): Add test_hex2str test. | |
1838 | * unittests/tracepoint-selftests.c | |
1839 | (test_parse_static_tracepoint_marker_definition): Adjust to | |
1840 | std::string. | |
1841 | ||
62c222b6 SM |
1842 | 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca> |
1843 | ||
1844 | * tracepoint.c (parse_static_tracepoint_marker_definition): | |
1845 | Consider case where the definition is followed by more | |
1846 | definitions. | |
1847 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
1848 | tracepoint-selftests.c. | |
1849 | * unittests/tracepoint-selftests.c: New. | |
1850 | ||
7eb2418f PFC |
1851 | 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
1852 | ||
1853 | * MAINTAINERS (Write After Approval): Add Pedro Franco de | |
1854 | Carvalho. | |
1855 | ||
7cbe16e9 SR |
1856 | 2018-03-20 Stephen Roberts <stephen.roberts@arm.com> |
1857 | ||
3d6b3b82 | 1858 | * symtab.c (find_pc_sect_line): fixed indentation. |
7cbe16e9 | 1859 | |
4ee89e90 SR |
1860 | 2018-03-20 Stephen Roberts <stephen.roberts@arm.com> |
1861 | ||
3d6b3b82 | 1862 | * symtab.c (find_pc_sect_line): now uses binary search. |
4ee89e90 | 1863 | |
92630041 TT |
1864 | 2018-03-19 Tom Tromey <tom@tromey.com> |
1865 | ||
1866 | * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain | |
1867 | "IDENT" production. | |
1868 | ||
76727919 TT |
1869 | 2018-03-19 Pedro Alves <palves@redhat.com> |
1870 | Tom Tromey <tom@tromey.com> | |
1871 | ||
1872 | * unittests/observable-selftests.c: New file. | |
1873 | * common/observable.h: New file. | |
1874 | * observable.h: New file. | |
1875 | * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c, | |
1876 | arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c, | |
1877 | breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c, | |
1878 | corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c, | |
1879 | extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c, | |
1880 | infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c, | |
1881 | linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c, | |
1882 | mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c, | |
1883 | ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c, | |
1884 | python/py-breakpoint.c, python/py-finishbreakpoint.c, | |
1885 | python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c, | |
1886 | record-btrace.c, record-full.c, record.c, regcache.c, remote.c, | |
1887 | riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c, | |
1888 | spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c, | |
1889 | symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c, | |
1890 | tui/tui-interp.c, valops.c: Update all users. | |
1891 | * tui/tui-hooks.c (tui_bp_created_observer) | |
1892 | (tui_bp_deleted_observer, tui_bp_modified_observer) | |
1893 | (tui_inferior_exit_observer, tui_before_prompt_observer) | |
1894 | (tui_normal_stop_observer, tui_register_changed_observer): | |
1895 | Remove. | |
1896 | (tui_observers_token): New global. | |
1897 | (attach_or_detach, tui_attach_detach_observers): New functions. | |
1898 | (tui_install_hooks, tui_remove_hooks): Use | |
1899 | tui_attach_detach_observers. | |
1900 | * record-btrace.c (record_btrace_thread_observer): Remove. | |
1901 | (record_btrace_thread_observer_token): New global. | |
1902 | * observer.sh: Remove. | |
1903 | * observer.c: Rename to observable.c. | |
1904 | * observable.c (namespace gdb_observers): Define new objects. | |
1905 | (observer_debug): Move into gdb_observers namespace. | |
1906 | (struct observer, struct observer_list, xalloc_observer_list_node) | |
1907 | (xfree_observer_list_node, generic_observer_attach) | |
1908 | (generic_observer_detach, generic_observer_notify): Remove. | |
1909 | (_initialize_observer): Update. | |
1910 | Don't include observer.inc. | |
1911 | * Makefile.in (generated_files): Remove observer.h, observer.inc. | |
1912 | (clean mostlyclean): Likewise. | |
1913 | (observer.h, observer.inc): Remove targets. | |
1914 | (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c. | |
1915 | (COMMON_SFILES): Use observable.c, not observer.c. | |
1916 | * .gitignore: Remove observer.h. | |
1917 | ||
1cb1f3da TT |
1918 | 2018-03-18 Tom Tromey <tom@tromey.com> |
1919 | ||
1920 | * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use | |
1921 | gdb::def_vector. | |
1922 | (bfd_lookup_symbol_from_dyn_symtab): Likewise. | |
1923 | ||
a06ab151 TT |
1924 | 2018-03-17 Tom Tromey <tom@tromey.com> |
1925 | ||
1926 | * auto-load.c (auto_load_objfile_script_1): Use std::string. | |
1927 | ||
770623f7 TT |
1928 | 2018-03-17 Tom Tromey <tom@tromey.com> |
1929 | ||
1930 | * target.c (class scoped_target_fd): New. | |
1931 | (target_fileio_close_cleanup): Remove. | |
1932 | (target_fileio_read_alloc_1): Use scoped_target_fd. | |
1933 | ||
39be3c7e SM |
1934 | 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca> |
1935 | ||
1936 | * silent-rules.mk: New. | |
1937 | * Makefile.in: Include silent-rules.mk | |
1938 | (srcdir, VPATH, top_srcdir): Move up. | |
1939 | (COMPILE): Add ECHO_CXX. | |
1940 | (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD. | |
1941 | (init.c): Add ECHO_INIT_C. | |
1942 | (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD. | |
1943 | (version.c): Add ECHO_GEN. | |
1944 | (printcmd.o): Add ECHO_CXX. | |
1945 | (target-float.o): Add ECHO_CXX. | |
1946 | (ada-exp.o): Add ECHO_CXX. | |
1947 | (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN. | |
1948 | (insight$(EXEEXT)): Add ECHO_CXXLD. | |
1949 | * gnulib/configure.ac: Add AM_SILENT_RULES. | |
1950 | * gnulib/aclocal.m4: Re-generate. | |
1951 | * gnulib/configure: Re-generate. | |
1952 | * gnulib/import/Makefile.in: Re-generate. | |
1953 | ||
37e136b1 TT |
1954 | 2018-03-16 Tom Tromey <tom@tromey.com> |
1955 | ||
1956 | * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs". | |
1957 | * utils.h (make_cleanup_free_section_addr_info): Don't declare. | |
1958 | * utils.c (do_free_section_addr_info) | |
1959 | (make_cleanup_free_section_addr_info): Remove. | |
1960 | * symfile.h (struct other_sections): Add constructor. | |
1961 | (struct section_addr_info): Remove. | |
1962 | (section_addr_info): New typedef. | |
1963 | (struct sym_fns) <sym_offsets>: Change type of parameter. | |
1964 | (build_section_addr_info_from_objfile) | |
1965 | (relative_addr_info_to_section_offsets, addr_info_make_relative) | |
1966 | (default_symfile_offsets, symbol_file_add) | |
1967 | (symbol_file_add_from_bfd) | |
1968 | (build_section_addr_info_from_section_table): Update. | |
1969 | (alloc_section_addr_info, free_section_addr_info): Don't declare. | |
1970 | * symfile.c (alloc_section_addr_info): Remove. | |
1971 | (build_section_addr_info_from_section_table): Change return type. | |
1972 | Update. | |
1973 | (build_section_addr_info_from_bfd) | |
1974 | (build_section_addr_info_from_objfile): Likewise. | |
1975 | (free_section_addr_info): Remove. | |
1976 | (relative_addr_info_to_section_offsets): Change type of "addrs". | |
1977 | (addrs_section_compar): Now a std::sort comparator. | |
1978 | (addrs_section_sort): Change return type. | |
1979 | (addr_info_make_relative): Change type of "addrs". Update. | |
1980 | (default_symfile_offsets, syms_from_objfile_1) | |
1981 | (syms_from_objfile, symbol_file_add_with_addrs): Likewise. | |
1982 | (symbol_file_add_separate): Update. | |
1983 | (symbol_file_add): Change type of "addrs". Update. | |
1984 | (add_symbol_file_command): Update. Remove cleanups. | |
1985 | * symfile-mem.c (symbol_file_add_from_memory): Update. Remove | |
1986 | cleanups. | |
1987 | * symfile-debug.c (debug_sym_offsets): Change type of "info". | |
1988 | * solib.c (solib_read_symbols): Update. | |
1989 | * objfiles.c (objfile_relocate): Update. Remove cleanups. | |
1990 | * machoread.c (macho_symfile_offsets): Update. | |
1991 | * jit.c (jit_bfd_try_read_symtab): Update. | |
1992 | ||
03afa6ef SM |
1993 | 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca> |
1994 | ||
1995 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
1996 | unittests/utils-selftests.c. | |
1997 | * unittests/utils-selftests.c: New file. | |
1998 | ||
3ae9ce5d TT |
1999 | 2018-03-14 Tom Tromey <tom@tromey.com> |
2000 | ||
2001 | PR cli/14977: | |
2002 | * printcmd.c (printf_c_string, printf_wide_c_string): Special case | |
2003 | for NULL. | |
2004 | ||
b8c2339b TT |
2005 | 2018-03-14 Tom Tromey <tom@tromey.com> |
2006 | ||
2007 | PR cli/19918: | |
2008 | * printcmd.c (printf_pointer): Allow "-" in format. | |
2009 | ||
80ae639d TT |
2010 | 2018-03-14 Tom Tromey <tom@tromey.com> |
2011 | ||
2012 | * printcmd.c (_initialize_printcmd): Add usage to printf. | |
2013 | ||
0d671d99 YQ |
2014 | 2018-03-14 Yao Qi <qiyao@sourceware.org> |
2015 | ||
2016 | * MAINTAINERS: Update my email address. | |
2017 | ||
b577b6af TT |
2018 | 2018-03-13 Tom Tromey <tom@tromey.com> |
2019 | ||
2020 | * machoread.c (macho_check_dsym): Change filenamep to a | |
2021 | std::string*. | |
2022 | (macho_symfile_read): Update. | |
2023 | * symfile.c (load_command): Use std::string. | |
2024 | ||
89a3b63e AB |
2025 | 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com> |
2026 | ||
2027 | * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization | |
2028 | to error message string. | |
2029 | (riscv_register_name): Use xsnprintf instead of sprintf. | |
2030 | (riscv_insn::fetch_instruction): Use gdb_assert instead of | |
2031 | internal_error. | |
2032 | (riscv_print_arg_location): Use gdb_assert_not_reached instead of | |
2033 | error. | |
2034 | (riscv_push_dummy_call): Likewise. | |
2035 | ||
984c7238 TT |
2036 | 2018-03-12 Tom Tromey <tom@tromey.com> |
2037 | ||
2038 | * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix): | |
2039 | Use gdb::byte_vector. | |
2040 | * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector. | |
2041 | ||
933522d1 YQ |
2042 | 2018-03-12 Yao Qi <yao.qi@linaro.org> |
2043 | ||
2044 | * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change | |
2045 | parameter type to readable_regcache. | |
2046 | * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update | |
2047 | the declaration. | |
2048 | ||
be2daae6 TT |
2049 | 2018-03-11 Tom Tromey <tom@tromey.com> |
2050 | ||
2051 | * dwarf2read.c (struct nextfield): Add initializers. | |
2052 | (struct nextfnfield): Remove. | |
2053 | (struct fnfieldlist): Add initializers. Remove "length" and | |
2054 | "head", use std::vector. | |
2055 | (struct decl_field_list): Remove. | |
2056 | (struct field_info): Add initializers. | |
2057 | <fields, baseclasses>: Now std::vector. | |
2058 | <nbaseclasses, nfnfields, typedef_field_list_count, | |
2059 | nested_types_list_count>: Remove. | |
2060 | (dwarf2_add_field, dwarf2_add_type_defn) | |
2061 | (dwarf2_attach_fields_to_type, dwarf2_add_member_fn) | |
2062 | (dwarf2_attach_fn_fields_to_type, handle_struct_member_die) | |
2063 | (process_structure_scope): Update. | |
2064 | ||
484cf504 TT |
2065 | 2018-03-11 Tom Tromey <tom@tromey.com> |
2066 | ||
2067 | * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable | |
2068 | for use by std::sort. | |
2069 | (build_type_psymtabs_1): Use std::vector. | |
2070 | ||
9bd8e0b0 EZ |
2071 | 2018-03-09 Eli Zaretskii <eliz@gnu.org> |
2072 | ||
2073 | * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK, | |
2074 | and LIBMPFR in the printed configuration. | |
2075 | ||
5dc1a704 TT |
2076 | 2018-03-08 Tom Tromey <tom@tromey.com> |
2077 | ||
2078 | * source.c (get_filename_and_charpos): Use scoped_fd. | |
2079 | * nto-procfs.c (procfs_open_1): Use scoped_fd. | |
2080 | (procfs_pidlist): Likewise. | |
2081 | * procfs.c (proc_get_LDT_entry): Use scoped_fd. | |
2082 | (iterate_over_mappings): Likewise. | |
2083 | ||
fdf07f3a TT |
2084 | 2018-03-08 Tom Tromey <tom@tromey.com> |
2085 | ||
2086 | * infcall.c (struct call_return_meta_info) | |
2087 | <stack_temporaries_enabled>: Remove. | |
2088 | (get_call_return_value, call_function_by_hand_dummy): Update. | |
2089 | * thread.c (disable_thread_stack_temporaries): Remove. | |
2090 | (enable_thread_stack_temporaries): Remove. | |
2091 | (thread_stack_temporaries_enabled_p): Return bool. | |
2092 | (push_thread_stack_temporary, value_in_thread_stack_temporaries) | |
2093 | (get_last_thread_stack_temporary): Update. | |
2094 | * eval.c (evaluate_subexp): Update. | |
2095 | * gdbthread.h (class enable_thread_stack_temporaries): Now a | |
2096 | class, not a function. | |
2097 | (value_ptr, value_vec): Remove typedefs. | |
2098 | (class thread_info) <stack_temporaries_enabled>: Now bool. | |
2099 | <stack_temporaries>: Now a std::vector. | |
2100 | (thread_stack_temporaries_enabled_p) | |
2101 | (value_in_thread_stack_temporaries): Return bool. | |
2102 | ||
567a3e54 SM |
2103 | 2018-03-08 Simon Marchi <simon.marchi@ericsson.com> |
2104 | ||
2105 | * remote.c (putpkt_binary): Fix omitted bytes reporting. | |
2106 | (getpkt_or_notif_sane_1): Likewise. | |
2107 | ||
00b40057 SM |
2108 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
2109 | ||
2110 | * build-id.c (build_id_to_debug_bfd): Use std::string. | |
2111 | ||
a8dbfd58 SM |
2112 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
2113 | ||
2114 | * build-id.c (find_separate_debug_file_by_buildid): Return | |
2115 | std::string. | |
2116 | * build-id.h (find_separate_debug_file_by_buildid): Return | |
2117 | std::string. | |
2118 | * coffread.c (coff_symfile_read): Adjust to std::string. | |
2119 | * elfread.c (elf_symfile_read): Adjust to std::string. | |
2120 | * symfile.c (separate_debug_file_exists): Change parameter to | |
2121 | std::string. | |
2122 | (find_separate_debug_file): Return std::string. | |
2123 | (find_separate_debug_file_by_debuglink): Return std::string. | |
2124 | * symfile.h (find_separate_debug_file_by_debuglink): Return | |
2125 | std::string. | |
2126 | ||
e6a58aa8 SM |
2127 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
2128 | ||
2129 | * common/xml-utils.c (xml_escape_text): Move code to... | |
2130 | (xml_escape_text_append): ... this new function. | |
2131 | * common/xml-utils.h (xml_escape_text_append): New declaration. | |
2132 | * unittests/xml-utils-selftests.c (test_xml_escape_text_append): | |
2133 | New function. | |
2134 | (_initialize_xml_utils): register test_xml_escape_text_append as | |
2135 | a selftest. | |
2136 | ||
4ef0bef6 AH |
2137 | 2018-03-07 Alan Hayward <alan.hayward@arm.com> |
2138 | ||
2139 | * defs.h: Remove MAX_REGISTER_SIZE. | |
2140 | * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE | |
2141 | asserts. | |
2142 | * python/py-unwind.c (pyuw_sniffer): Likewise. | |
2143 | ||
e0d3522b TT |
2144 | 2018-03-07 Tom Tromey <tom@tromey.com> |
2145 | ||
2146 | * linux-tdep.c (linux_info_proc): Update. | |
2147 | * target.h (struct target_ops) <to_fileio_readlink>: Return | |
2148 | optional<string>. | |
2149 | (target_fileio_readlink): Return optional<string>. | |
2150 | * remote.c (remote_hostio_readlink): Return optional<string>. | |
2151 | * inf-child.c (inf_child_fileio_readlink): Return | |
2152 | optional<string>. | |
2153 | * target.c (target_fileio_readlink): Return optional<string>. | |
2154 | ||
ea005f31 AB |
2155 | 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com> |
2156 | ||
2157 | * regcache.c (cooked_read_test): Add riscv to the list of | |
2158 | architectures that have a save_reggroup. | |
2159 | ||
e95a97d4 AA |
2160 | 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2161 | ||
2162 | * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given | |
2163 | value is not a dynamic class object. | |
2164 | ||
d8344f3d TT |
2165 | 2018-03-06 Tom Tromey <tom@tromey.com> |
2166 | ||
2167 | * rust-exp.y: Formatting fixes. | |
2168 | ||
9add17f2 AB |
2169 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
2170 | ||
2171 | * riscv-tdep.c (riscv_register_name): Remove target description | |
2172 | support. | |
2173 | (riscv_gdbarch_init): Remove target description check. | |
2174 | ||
c9486dfe AB |
2175 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
2176 | ||
2177 | * riscv-tdep.c: Remove 'Contributed by ...' lines from header | |
2178 | comment. | |
2179 | * riscv-tdep.h: Likewise. | |
2180 | ||
d74aff3d AB |
2181 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
2182 | ||
2183 | * riscv-tdep.c (riscv_pseudo_register_read): Delete. | |
2184 | (riscv_pseudo_register_write): Delete. | |
2185 | (riscv_gdbarch_init): Remove all use of pseudo registers. | |
2186 | ||
7ea78b59 SM |
2187 | 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
2188 | ||
2189 | * record-btrace.c (btrace_print_lines): Replace cleanup | |
2190 | parameter with RAII equivalents. | |
2191 | (btrace_insn_history): Replace cleanup with RAII equivalents. | |
2192 | * ui-out.h (make_cleanup_ui_out_list_begin_end, | |
2193 | make_cleanup_ui_out_tuple_begin_end): Remove. | |
2194 | * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end, | |
2195 | make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end, | |
2196 | make_cleanup_ui_out_list_begin_end): Remove. | |
2197 | ||
53127008 SM |
2198 | 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
2199 | ||
2200 | * record-btrace.c (record_btrace_maybe_mark_async_event): Change | |
2201 | parameter types to std::vector. Use bool. | |
2202 | (record_btrace_wait): Replace VEC(tp_t) with | |
2203 | std::vector<thread_info *>. | |
2204 | * common/gdb_vecs.h (unordered_remove, ordered_remove): New. | |
2205 | ||
228f1508 SM |
2206 | 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
2207 | ||
2208 | * record-btrace.c (record_btrace_disable_callback): Remove. | |
2209 | (struct scoped_btrace_disable): New. | |
2210 | (record_btrace_open): Use scoped_btrace_disable. | |
2211 | ||
b2970c23 AB |
2212 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
2213 | ||
2214 | * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for | |
2215 | reading values from registers. | |
2216 | ||
fb294655 AB |
2217 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
2218 | ||
2219 | * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz | |
2220 | where appropriate. | |
2221 | ||
cab5bb9d AB |
2222 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
2223 | ||
2224 | * riscv-tdep.c (riscv_print_arg_location): Add header comment, | |
2225 | change parameter type. Use GDB's print functions, and use | |
2226 | core_addr_to_string where appropriate. | |
2227 | (riscv_push_dummy_call): Use core_addr_to_string where | |
2228 | appropriate, update call to riscv_print_arg_location, and reindent | |
2229 | a few lines. | |
2230 | (riscv_return_value): Update call to riscv_print_arg_location. | |
2231 | ||
dbbb1059 AB |
2232 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
2233 | Tim Newsome <tim@sifive.com> | |
2234 | Albert Ou <a0u@eecs.berkeley.edu> | |
2235 | Darius Rad <darius@bluespec.com> | |
2236 | ||
2237 | * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o | |
2238 | (HFILES_NO_SRCDIR): Add riscv-tdep.h. | |
2239 | (ALLDEPFILES): Add riscv-tdep.c | |
2240 | * configure.tgt: Add riscv support. | |
2241 | * riscv-tdep.c: New file. | |
2242 | * riscv-tdep.h: New file. | |
2243 | * NEWS: Mention new target. | |
2244 | * MAINTAINERS: Add entry for riscv. | |
2245 | ||
5dc43913 AB |
2246 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
2247 | ||
2248 | * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized | |
2249 | fields within aggregates. | |
2250 | ||
3dea1ef7 SM |
2251 | 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca> |
2252 | ||
2253 | * record-btrace.c (btrace_print_lines): Change type of flags to | |
2254 | gdb_disassembly_flags. | |
2255 | ||
7efba073 JB |
2256 | 2018-03-04 John Baldwin <jhb@FreeBSD.org> |
2257 | ||
2258 | * fbsd-nat.c: Include "inf-ptrace.h". | |
2259 | (USE_SIGTRAP_SIGINFO): Conditionally define. | |
2260 | [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function. | |
2261 | (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap". | |
2262 | [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New | |
2263 | function. | |
2264 | [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint): | |
2265 | Likewise. | |
2266 | [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint): | |
2267 | Likewise. | |
2268 | (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set | |
2269 | "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint", | |
2270 | "supports_stopped_by_hw_breakpoint" target methods. | |
2271 | ||
386a8676 JB |
2272 | 2018-03-04 John Baldwin <jhb@FreeBSD.org> |
2273 | ||
2274 | * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat". | |
2275 | * fbsd-nat.c (debug_fbsd_nat): New variable. | |
2276 | (show_fbsd_nat_debug): New function. | |
2277 | (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled. | |
2278 | (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command. | |
2279 | ||
12279366 JB |
2280 | 2018-03-04 John Baldwin <jhb@FreeBSD.org> |
2281 | ||
2282 | * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function. | |
2283 | * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New | |
2284 | prototype. | |
2285 | * x86-nat.c (x86_stopped_by_hw_breakpoint): New function. | |
2286 | (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target | |
2287 | method. | |
2288 | ||
54693cf5 SM |
2289 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
2290 | ||
2291 | * common/gdb_vecs.c (free_char_ptr_vec): Remove. | |
2292 | * common/gdb_vecs.h (free_char_ptr_vec): Remove. | |
2293 | ||
ccb2231c SM |
2294 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
2295 | ||
2296 | * charset.c (struct charset_vector): New. | |
2297 | (charsets): Change type to charset_vector. | |
2298 | (find_charset_names): Adjust. | |
2299 | (add_one): Adjust. | |
2300 | (_initialize_charset): Adjust. | |
2301 | ||
6fb16ce6 SM |
2302 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
2303 | ||
2304 | * progspace.h (struct program_space) <deleted_solibs>: Change | |
2305 | type to std::vector<std::string>. | |
2306 | * progspace.c (clear_program_space_solib_cache): Adjust. | |
2307 | * breakpoint.c (print_solib_event): Adjust. | |
2308 | (check_status_catch_solib): Adjust. | |
2309 | * solib.c (update_solib_list): Adjust. | |
2310 | * ui-out.h (class ui_out) <field_string>: New overload. | |
2311 | * ui-out.c (ui_out::field_string): New overload. | |
2312 | ||
564b1e3f SM |
2313 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
2314 | ||
2315 | * progspace.h (struct program_space): Add constructor and | |
2316 | destructor, initialize fields. | |
2317 | (add_program_space): Remove. | |
2318 | * progspace.c (add_program_space): Rename to... | |
2319 | (program_space::program_space): ... this. | |
2320 | (release_program_space): Rename to... | |
2321 | (program_space::~program_space): ... this. | |
2322 | (delete_program_space): Use delete to delete program_space. | |
2323 | (initialize_progspace): Use new to allocate program_space. | |
2324 | * inferior.c (add_inferior_with_spaces): Likewise. | |
2325 | (clone_inferior_command): Likewise. | |
2326 | * infrun.c (follow_fork_inferior): Likewise. | |
2327 | (handle_vfork_child_exec_or_exit): Likewise. | |
2328 | ||
e80aaf61 SM |
2329 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
2330 | ||
2331 | * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove. | |
2332 | (delim_string_to_char_ptr_vec): Return std::vector of | |
2333 | gdb::unique_xmalloc_ptr. | |
2334 | (dirnames_to_char_ptr_vec_append): Take std::vector of | |
2335 | gdb::unique_xmalloc_ptr. | |
2336 | (dirnames_to_char_ptr_vec): Return std::vector of | |
2337 | gdb::unique_xmalloc_ptr. | |
2338 | * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): | |
2339 | Take std::vector of gdb::unique_xmalloc_ptr, adjust the code. | |
2340 | (delim_string_to_char_ptr_vec): Return an std::vector of | |
2341 | gdb::unique_xmalloc_ptr, adjust the code. | |
2342 | (dirnames_to_char_ptr_vec_append): Take an std::vector of | |
2343 | gdb::unique_xmalloc_ptr, adjust the code. | |
2344 | (dirnames_to_char_ptr_vec): Return an std::vector of | |
2345 | gdb::unique_xmalloc_ptr, adjust the code. | |
2346 | * auto-load.c (auto_load_safe_path_vec): Change type to | |
2347 | std::vector of gdb::unique_xmalloc_ptr. | |
2348 | (auto_load_expand_dir_vars): Return an std::vector of | |
2349 | gdb::unique_xmalloc_ptr, adjust the code. | |
2350 | (auto_load_safe_path_vec_update): Adjust. | |
2351 | (filename_is_in_auto_load_safe_path_vec): Adjust. | |
2352 | (auto_load_objfile_script_1): Adjust. | |
2353 | * build-id.c (build_id_to_debug_bfd): Adjust. | |
2354 | * linux-thread-db.c (thread_db_load_search): Adjust. | |
2355 | * source.c (add_path): Adjust. | |
2356 | (openp): Adjust. | |
2357 | * symfile.c (find_separate_debug_file): Adjust. | |
2358 | * utils.c (do_free_char_ptr_vec): Remove. | |
2359 | (make_cleanup_free_char_ptr_vec): Remove. | |
2360 | ||
ab818ade SDJ |
2361 | 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com> |
2362 | ||
2363 | PR gdb/22907 | |
2364 | * common/pathstuff.c: Conditionally include "<windows.h>". | |
2365 | ||
e1e6f073 GS |
2366 | 2018-03-01 Georg Sauthoff <mail@georg.so> |
2367 | ||
2368 | PR gdb/22888 | |
2369 | * gcore.in: Quote variables and switch interpreter to bash. | |
2370 | ||
c7b15a66 TT |
2371 | 2018-03-01 Tom Tromey <tom@tromey.com> |
2372 | ||
2373 | * dwarf2read.c (alloc_discriminant_info): Fix default_index | |
2374 | assertion. Add assertion for discriminant_index. | |
2375 | (quirk_rust_enum): Use correct base type name in univariant case. | |
2376 | ||
0cb7c7b0 SM |
2377 | 2018-03-01 Simon Marchi <simon.marchi@ericsson.com> |
2378 | ||
2379 | * record.c (get_call_history_modifiers): Return a | |
2380 | record_print_flags. | |
2381 | (cmd_record_call_history): Adjust. | |
2382 | * record-btrace.c (record_btrace_call_history): Adjust. | |
2383 | (record_btrace_call_history_range): Adjust. | |
2384 | (record_btrace_call_history_from): Adjust. | |
2385 | * target-debug.h (target_debug_print_record_print_flags): New. | |
2386 | * target-delegates.c: Re-generate. | |
2387 | * target.c (target_call_history): Change flags type. | |
2388 | (target_call_history_from): Likewise. | |
2389 | (target_call_history_range): Likewise. | |
2390 | * target.h (struct target_ops) <target_call_history>: Likewise. | |
2391 | (target_call_history_from): Likewise. | |
2392 | (target_call_history_range): Likewise. | |
2393 | ||
25e3c82c SDJ |
2394 | 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> |
2395 | Simon Marchi <simon.marchi@polymtl.ca> | |
2396 | ||
2397 | * common/common-utils.c: Include "sys/stat.h". | |
2398 | (is_regular_file): Move here from "source.c"; change return | |
2399 | type to "bool". | |
2400 | * common/common-utils.h (is_regular_file): New prototype. | |
2401 | * common/pathstuff.c (contains_dir_separator): New function. | |
2402 | * common/pathstuff.h (contains_dir_separator): New prototype. | |
2403 | * source.c: Don't include "sys/stat.h". | |
2404 | (is_regular_file): Move to "common/common-utils.c". | |
2405 | ||
b4987c95 SDJ |
2406 | 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> |
2407 | ||
2408 | * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c". | |
2409 | (HFILES_NO_SRCDIR): Add "common/pathstuff.h". | |
2410 | * auto-load.c: Include "common/pathstuff.h". | |
2411 | * common/common-def.h (current_directory): Move here. | |
2412 | * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New | |
2413 | function. | |
2414 | * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New | |
2415 | prototype. | |
2416 | * common/pathstuff.c: New file. | |
2417 | * common/pathstuff.h: New file. | |
2418 | * compile/compile.c: Include "common/pathstuff.h". | |
2419 | * defs.h (current_directory): Move to "common/common-defs.h". | |
2420 | * dwarf2read.c: Include "common/pathstuff.h". | |
2421 | * exec.c: Likewise. | |
2422 | * guile/scm-safe-call.c: Likewise. | |
2423 | * linux-thread-db.c: Likewise. | |
2424 | * main.c: Likewise. | |
2425 | * nto-tdep.c: Likewise. | |
2426 | * objfiles.c: Likewise. | |
2427 | * source.c: Likewise. | |
2428 | * symtab.c: Likewise. | |
2429 | * utils.c: Include "common/pathstuff.h". | |
2430 | (gdb_realpath): Move to "common/pathstuff.c". | |
2431 | (gdb_realpath_keepfile): Likewise. | |
2432 | (gdb_abspath): Likewise. | |
2433 | * utils.h (gdb_realpath): Move to "common/pathstuff.h". | |
2434 | (gdb_realpath_keepfile): Likewise. | |
2435 | (gdb_abspath): Likewise. | |
2436 | ||
f169cfdc JB |
2437 | 2018-02-28 John Baldwin <jhb@FreeBSD.org> |
2438 | ||
2439 | * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a | |
2440 | wildcard process pid for super_resume for kernels with a | |
2441 | specific bug. | |
2442 | ||
e05cac70 PM |
2443 | 2018-02-27 Phil Muldoon <pmuldoon@redhat.com> |
2444 | ||
2445 | * compile/compile.c (get_args): Add additional comments | |
2446 | explaining function. | |
2447 | ||
55089490 TT |
2448 | 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca> |
2449 | Tom Tromey <tom@tromey.com> | |
2450 | ||
2451 | * target.h (memory_write_request_s): Remove typedef. Don't define | |
2452 | VEC. | |
2453 | (target_write_memory_blocks): Change argument to std::vector. | |
2454 | (struct memory_write_request): Add constructor. | |
2455 | * target-memory.c (compare_block_starting_address): Return bool. | |
2456 | Change argument types. | |
2457 | (claim_memory): Change arguments to use std::vector. | |
2458 | (split_regular_and_flash_blocks, blocks_to_erase) | |
2459 | (compute_garbled_blocks): Likewise. | |
2460 | (cleanup_request_data, cleanup_write_requests_vector): Remove. | |
2461 | (target_write_memory_blocks): Change argument to std::vector. | |
2462 | * symfile.c (struct load_section_data): Add constructor and | |
2463 | destructor. Use std::vector for "requests". | |
2464 | (struct load_progress_data): Add initializers. | |
2465 | (load_section_callback): Update. Use "new". | |
2466 | (clear_memory_write_data): Remove. | |
2467 | (generic_load): Update. | |
2468 | ||
0c305b61 AH |
2469 | 2018-02-27 Alan Hayward <alan.hayward@arm.com> |
2470 | ||
2471 | * arch/aarch64.h: Use common/tdesc.h. | |
2472 | ||
c5196c92 MR |
2473 | 2018-02-26 Maciej W. Rozycki <macro@mips.com> |
2474 | ||
2475 | * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD | |
2476 | architecture with a 64-bit ABI. | |
2477 | ||
37c33887 MR |
2478 | 2018-02-26 Maciej W. Rozycki <macro@mips.com> |
2479 | ||
2480 | * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination | |
2481 | ahead of target description loading. | |
2482 | ||
d4dd3282 TT |
2483 | 2018-02-26 Tom Tromey <tom@tromey.com> |
2484 | ||
2485 | * stack.c (backtrace_command_1): Update. | |
2486 | * python/python-internal.h (gdbpy_apply_frame_filter): Change type | |
2487 | of "flags". | |
2488 | * python/py-framefilter.c (py_print_frame) | |
2489 | (gdbpy_apply_frame_filter): Change type of "flags". | |
2490 | * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type | |
2491 | of "flags". | |
2492 | (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals) | |
2493 | (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update. | |
2494 | * extension.h (enum frame_filter_flag): Rename from | |
2495 | frame_filter_flags. | |
2496 | (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE. | |
2497 | (apply_ext_lang_frame_filter): Change type of "flags". | |
2498 | * extension.c (apply_ext_lang_frame_filter): Change type of | |
2499 | "flags". | |
2500 | * extension-priv.h (struct extension_language_ops) | |
2501 | <apply_frame_filter>: Change type of "flags". | |
2502 | ||
6893c19a TT |
2503 | 2018-02-26 Tom Tromey <tom@tromey.com> |
2504 | ||
2505 | PR python/16497: | |
2506 | * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix | |
2507 | off-by-one in py_end computation. | |
2508 | * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle | |
2509 | PRINT_MORE_FRAMES. | |
2510 | * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New | |
2511 | constant. | |
2512 | ||
2ddeaf8a TT |
2513 | 2018-02-26 Tom Tromey <tom@tromey.com> |
2514 | ||
2515 | * dwarf2read.c (struct variant_field): New. | |
2516 | (struct nextfield) <variant>: New field. | |
2517 | (dwarf2_add_field): Handle DW_TAG_variant_part. | |
2518 | (dwarf2_attach_fields_to_type): Attach a discriminant_info to a | |
2519 | discriminated union. | |
2520 | (read_structure_type): Handle DW_TAG_variant_part. | |
2521 | (handle_struct_member_die): New function, extracted from | |
2522 | process_structure_scope. Handle DW_TAG_variant. | |
2523 | (process_structure_scope): Handle discriminated unions. Call | |
2524 | handle_struct_member_die. | |
2525 | ||
c9317f21 TT |
2526 | 2018-02-26 Tom Tromey <tom@tromey.com> |
2527 | ||
2528 | * rust-lang.h (rust_last_path_segment): Declare. | |
2529 | * rust-lang.c (rust_last_path_segment): Now public. Change | |
2530 | contract. | |
2531 | (struct disr_info): Remove. | |
2532 | (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL) | |
2533 | (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged) | |
2534 | (rust_get_disr_info, rust_tuple_variant_type_p): Remove. | |
2535 | (rust_enum_p, rust_enum_variant): New function. | |
2536 | (rust_underscore_fields): Remove "offset" parameter. | |
2537 | (rust_print_enum): New function. | |
2538 | (rust_val_print) <TYPE_CODE_UNION>: Remove enum code. | |
2539 | <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate. | |
2540 | (rust_print_struct_def): Add "for_rust_enum" parameter. Handle | |
2541 | enums. | |
2542 | (rust_internal_print_type): New function, from rust_print_type. | |
2543 | Remove enum code. | |
2544 | (rust_print_type): Call rust_internal_print_type. | |
2545 | (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>: | |
2546 | Update enum handling. | |
2547 | * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field. | |
2548 | (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum) | |
2549 | (rust_union_quirks): New functions. | |
2550 | (process_full_comp_unit, process_full_type_unit): Call | |
2551 | rust_union_quirks. | |
2552 | (process_structure_scope): Update rust_unions if necessary. | |
2553 | ||
7c22600a TT |
2554 | 2018-02-26 Tom Tromey <tom@tromey.com> |
2555 | ||
2556 | * value.h (value_union_variant): Declare. | |
2557 | * valops.c (value_union_variant): New function. | |
2558 | * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro. | |
2559 | (struct discriminant_info): New. | |
2560 | (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New | |
2561 | enumerator. | |
2562 | (struct main_type) <flag_discriminated_union>: New field. | |
2563 | ||
15ce8941 TT |
2564 | 2018-02-26 Tom Tromey <tom@tromey.com> |
2565 | ||
2566 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
2567 | unittests/unpack-selftests.c. | |
2568 | * unittests/unpack-selftests.c: New file. | |
2569 | * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases. | |
2570 | ||
48fbe735 YQ |
2571 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
2572 | ||
2573 | * dwarf2read.c (struct partial_die_info) <read>: New method. | |
2574 | (read_partial_die): Remove the declaration. | |
2575 | (load_partial_dies): Update. | |
2576 | (partial_die_info::partial_die_info): | |
2577 | (read_partial_die): Change it to partial_die_info::read. | |
2578 | ||
52356b79 YQ |
2579 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
2580 | ||
2581 | * dwarf2read.c (struct partial_die_info) <fixup>: New method. | |
2582 | (fixup_partial_die): Remove declaration. | |
2583 | (scan_partial_symbols): Update. | |
2584 | (partial_die_parent_scope): Likewise. | |
2585 | (partial_die_full_name): Likewise. | |
2586 | (fixup_partial_die): Change it to partial_die_info::fixup. | |
2587 | ||
35cc7ed7 YQ |
2588 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
2589 | ||
2590 | * dwarf2read.c (read_partial_die): Update the declaration. | |
2591 | (load_partial_dies): Caller update. | |
2592 | (read_partial_die): Remove one argument abbrev_len. | |
2593 | ||
6f06d47b YQ |
2594 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
2595 | ||
2596 | * dwarf2read.c (struct partial_die_info): Add ctor, delete | |
2597 | assignment operator. | |
2598 | (load_partial_dies): Use ctor and copy ctor. | |
2599 | (read_partial_die): Update. | |
2600 | (dwarf2_cu::find_partial_die): Use ctor. | |
2601 | ||
d590ff25 YQ |
2602 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
2603 | ||
2604 | * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method. | |
2605 | (find_partial_die_in_comp_unit): Change it to | |
2606 | dwarf2_cu::find_partial_die. | |
2607 | (find_partial_die): Update. | |
2608 | ||
fd0a254f YQ |
2609 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
2610 | ||
2611 | * dwarf2read.c (read_partial_die): Remove the code checking abbrev | |
2612 | is NULL. | |
2613 | ||
cd9983dd YQ |
2614 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
2615 | ||
2616 | * dwarf2read.c (load_partial_dies): Move the location of XOBNEW. | |
2617 | ||
f46cd62a AH |
2618 | 2018-02-26 Alan Hayward <alan.hayward@arm.com> |
2619 | ||
2620 | * arch/amd64.h: Use common/tdesc.h. | |
2621 | * arch/i386.c: Likewise. | |
2622 | * arch/i386.h: Likewise. | |
2623 | * arch/tic6x.c: Likewise. | |
2624 | * arch/tdesc.h: Move file from here... | |
2625 | * common/tdesc.h: ...to here. | |
2626 | * features/aarch64-core.c: Regenerate. | |
2627 | * features/aarch64-fpu.c: Regenerate. | |
2628 | * features/i386/32bit-avx.c: Regenerate. | |
2629 | * features/i386/32bit-avx512.c: Regenerate. | |
2630 | * features/i386/32bit-core.c: Regenerate. | |
2631 | * features/i386/32bit-linux.c: Regenerate. | |
2632 | * features/i386/32bit-mpx.c: Regenerate. | |
2633 | * features/i386/32bit-pkeys.c: Regenerate. | |
2634 | * features/i386/32bit-sse.c: Regenerate. | |
2635 | * features/i386/64bit-avx.c: Regenerate. | |
2636 | * features/i386/64bit-avx512.c: Regenerate. | |
2637 | * features/i386/64bit-core.c: Regenerate. | |
2638 | * features/i386/64bit-linux.c: Regenerate. | |
2639 | * features/i386/64bit-mpx.c: Regenerate. | |
2640 | * features/i386/64bit-pkeys.c: Regenerate. | |
2641 | * features/i386/64bit-segments.c: Regenerate. | |
2642 | * features/i386/64bit-sse.c: Regenerate. | |
2643 | * features/i386/x32-core.c: Regenerate. | |
2644 | * features/tic6x-c6xp.c: Regenerate. | |
2645 | * features/tic6x-core.c: Regenerate. | |
2646 | * features/tic6x-gp.c: Regenerate. | |
2647 | * target-descriptions.c: Use common/tdesc.h. | |
2648 | * target-descriptions.h: Likewise. | |
2649 | ||
9b292f68 TT |
2650 | 2018-02-24 Tom Tromey <tom@tromey.com> |
2651 | ||
2652 | * linux-thread-db.c (try_thread_db_load_from_pdir_1) | |
2653 | (try_thread_db_load_from_dir, thread_db_load_search): Use | |
2654 | std::string. | |
2655 | (info_auto_load_libthread_db_compare): Return bool. Change | |
2656 | argument types. | |
2657 | (info_auto_load_libthread_db): Use std::vector, std::string. | |
2658 | Remove cleanups. | |
2659 | ||
281d762b TT |
2660 | 2018-02-24 Tom Tromey <tom@tromey.com> |
2661 | ||
2662 | * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a | |
2663 | std::string. | |
2664 | * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a | |
2665 | std::string*. | |
2666 | * gdbarch.c: Rebuild. | |
2667 | * gdbarch.h: Rebuild. | |
2668 | * breakpoint.c (check_fast_tracepoint_sals): Use std::string. | |
2669 | * arch-utils.h (default_fast_tracepoint_valid_at): Update. | |
2670 | * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a | |
2671 | std::string*. | |
2672 | ||
9d8780f0 SM |
2673 | 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca> |
2674 | ||
2675 | * gdbtypes.h (sect_offset): Change type to uint64_t. | |
2676 | (sect_offset_str): New function. | |
2677 | * dwarf2read.c (create_addrmap_from_aranges): Use | |
2678 | sect_offset_str. | |
2679 | (error_check_comp_unit_head): Likewise. | |
2680 | (create_debug_type_hash_table): Likewise. | |
2681 | (read_cutu_die_from_dwo): Likewise. | |
2682 | (init_cutu_and_read_dies): Likewise. | |
2683 | (init_cutu_and_read_dies_no_follow): Likewise. | |
2684 | (process_psymtab_comp_unit_reader): Likewise. | |
2685 | (partial_die_parent_scope): Likewise. | |
2686 | (peek_die_abbrev): Likewise. | |
2687 | (process_queue): Likewise. | |
2688 | (dwarf2_physname): Likewise. | |
2689 | (read_namespace_alias): Likewise. | |
2690 | (read_import_statement): Likewise. | |
2691 | (create_dwo_cu_reader): Likewise. | |
2692 | (create_cus_hash_table): Likewise. | |
2693 | (lookup_dwo_cutu): Likewise. | |
2694 | (inherit_abstract_dies): Likewise. | |
2695 | (read_func_scope): Likewise. | |
2696 | (read_call_site_scope): Likewise. | |
2697 | (dwarf2_add_member_fn): Likewise. | |
2698 | (read_common_block): Likewise. | |
2699 | (read_module_type): Likewise. | |
2700 | (read_typedef): Likewise. | |
2701 | (read_subrange_type): Likewise. | |
2702 | (load_partial_dies): Likewise. | |
2703 | (read_partial_die): Likewise. | |
2704 | (find_partial_die): Likewise. | |
2705 | (read_str_index): Likewise. | |
2706 | (dwarf2_string_attr): Likewise. | |
2707 | (build_error_marker_type): Likewise. | |
2708 | (lookup_die_type): Likewise. | |
2709 | (dump_die_shallow): Likewise. | |
2710 | (follow_die_ref): Likewise. | |
2711 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
2712 | (dwarf2_fetch_constant_bytes): Likewise. | |
2713 | (follow_die_sig): Likewise. | |
2714 | (get_signatured_type): Likewise. | |
2715 | (get_DW_AT_signature_type): Likewise. | |
2716 | (dwarf2_find_containing_comp_unit): Likewise. | |
2717 | (set_die_type): Likewise. | |
2718 | ||
8ec57239 JB |
2719 | 2018-02-21 John Baldwin <jhb@FreeBSD.org> |
2720 | ||
2721 | * arch/aarch64.c: Include "common-defs.h". | |
2722 | * arch/amd64.c: Likewise. | |
2723 | * arch/i386.c: Likewise. | |
2724 | ||
3eac2b65 TT |
2725 | 2018-02-21 Tom Tromey <tom@tromey.com> |
2726 | ||
2727 | * value.h: (extract_field_op): Update. | |
2728 | * eval.c (extract_field_op): Return a const char *. | |
2729 | * expression.h (parse_expression_for_completion): Update. | |
2730 | * completer.c (complete_expression): Update. | |
2731 | (add_struct_fields): Make fieldname const. | |
2732 | * parse.c (expout_completion_name): Now a unique_xmalloc_ptr. | |
2733 | (mark_completion_tag, parse_exp_in_context_1): Update. | |
2734 | (parse_expression_for_completion): Change "name" to | |
2735 | unique_xmalloc_ptr*. | |
2736 | ||
6ccb583f TT |
2737 | 2018-02-21 Tom Tromey <tom@tromey.com> |
2738 | ||
2739 | * infcall.c (call_function_by_hand_dummy): Use std::vector. | |
2740 | ||
c113ed0c YQ |
2741 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
2742 | ||
2743 | * avr-tdep.c (avr_read_pc): Change parameter type to | |
2744 | readable_regcache. | |
2745 | * gdbarch.sh (read_pc): Likewise. | |
2746 | * gdbarch.c: Re-generated. | |
2747 | * gdbarch.h: Re-generated. | |
2748 | * hppa-tdep.c (hppa_read_pc): Change parameter type to | |
2749 | readable_regcache. | |
2750 | * ia64-tdep.c (ia64_read_pc): Likewise. | |
2751 | * mips-tdep.c (mips_read_pc): Likewise. | |
2752 | * spu-tdep.c (spu_read_pc): Likewise. | |
2753 | ||
4c74fe6b YQ |
2754 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
2755 | ||
2756 | * Makefile.in (COMMON_SFILES): Add regcache-dump.c | |
2757 | * regcache-dump.c: New file. | |
2758 | * regcache.c: Move register_dump to regcache-dump.c. | |
2759 | (maintenance_print_registers): Likewise. | |
2760 | (maintenance_print_raw_registers): Likewise. | |
2761 | (maintenance_print_cooked_registers): Likewise. | |
2762 | (maintenance_print_register_groups): Likewise. | |
2763 | (maintenance_print_remote_registers): Likewise. | |
2764 | (_initialize_regcache): Likewise. | |
2765 | * regcache.h (register_dump): Moved from regcache.c. | |
2766 | ||
796bb026 YQ |
2767 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
2768 | ||
2769 | * regcache.c (regcache::regcache): Update. | |
2770 | (regcache::invalidate): Move it to detached_regcache::invalidate. | |
2771 | (get_thread_arch_aspace_regcache): Update. | |
2772 | (regcache::raw_update): Update. | |
2773 | (regcache::cooked_read): Remove some code. | |
2774 | (regcache::cooked_read_value): Likewise. | |
2775 | (regcache::raw_write): Remove assert on m_readonly_p. | |
2776 | (regcache::raw_supply_integer): Move it to | |
2777 | detached_regcache::raw_supply_integer. | |
2778 | (regcache::raw_supply_zeroed): Likewise. | |
2779 | * regcache.h (detached_regcache) <raw_supply_integer>: New | |
2780 | declaration. | |
2781 | <raw_supply_zeroed, invalidate>: Likewise. | |
2782 | (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed. | |
2783 | <invalidate>: Likewise. | |
2784 | <m_readonly_p>: Removed. | |
2785 | ||
215c69dc YQ |
2786 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
2787 | ||
2788 | * infcmd.c (get_return_value): Let stop_regs point to | |
2789 | get_current_regcache. | |
2790 | * regcache.c (regcache::regcache): Remove. | |
2791 | (register_dump_reg_buffer): New class. | |
2792 | (regcache_print): Adjust. | |
2793 | * regcache.h (regcache): Remove constructors. | |
2794 | ||
f3384e66 YQ |
2795 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
2796 | ||
2797 | * regcache.c (class register_dump): New class. | |
2798 | (register_dump_regcache, register_dump_none): New class. | |
2799 | (register_dump_remote, register_dump_groups): New class. | |
2800 | (regcache_print): Update. | |
2801 | * regcache.h (regcache_dump_what): Move it to regcache.c. | |
2802 | (regcache) <dump>: Remove. | |
2803 | ||
c8ec2f33 YQ |
2804 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
2805 | ||
2806 | * jit.c (struct jit_unwind_private) <regcache>: Change its type to | |
2807 | reg_buffer_rw *. | |
2808 | (jit_unwind_reg_set_impl): Call raw_supply. | |
2809 | (jit_frame_sniffer): Use reg_buffer_rw. | |
2810 | * record-full.c (record_full_core_regbuf): Change its type. | |
2811 | (record_full_core_open_1): Use reg_buffer_rw. | |
2812 | (record_full_close): Likewise. | |
2813 | (record_full_core_fetch_registers): Use regcache->raw_supply. | |
2814 | (record_full_core_store_registers): Likewise. | |
2815 | * regcache.c (regcache::get_register_status): Move it to | |
2816 | reg_buffer. | |
2817 | (regcache_raw_set_cached_value): Remove. | |
2818 | (regcache::raw_set_cached_value): Remove. | |
2819 | (regcache::raw_write): Call raw_supply. | |
2820 | (regcache::raw_supply): Move it to reg_buffer_rw. | |
2821 | * regcache.h (regcache_raw_set_cached_value): Remove. | |
2822 | (reg_buffer_rw): New class. | |
2823 | ||
daf6667d YQ |
2824 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
2825 | ||
2826 | * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use | |
2827 | readonly_detached_regcache. | |
2828 | (dummy_frame_prev_register): Use regcache->cooked_read. | |
2829 | * frame.c (frame_save_as_regcache): Change return type. | |
2830 | (frame_pop): Update. | |
2831 | * frame.h (frame_save_as_regcache): Update declaration. | |
2832 | * inferior.h (get_infcall_suspend_state_regcache): Update | |
2833 | declaration. | |
2834 | * infrun.c (infcall_suspend_state) <registers>: use | |
2835 | readonly_detached_regcache. | |
2836 | (save_infcall_suspend_state): Don't use regcache_dup. | |
2837 | (get_infcall_suspend_state_regcache): Change return type. | |
2838 | * linux-fork.c (struct fork_info) <savedregs>: Change to | |
2839 | readonly_detached_regcache. | |
2840 | <pc>: New field. | |
2841 | (fork_save_infrun_state): Don't use regcache_dup. | |
2842 | (info_checkpoints_command): Adjust. | |
2843 | * mi/mi-main.c (register_changed_p): Update declaration. | |
2844 | (mi_cmd_data_list_changed_registers): Use | |
2845 | readonly_detached_regcache. | |
2846 | (register_changed_p): Change parameter type to | |
2847 | readonly_detached_regcache. | |
2848 | * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use | |
2849 | readonly_detached_regcache. | |
2850 | (ppu2spu_sniffer): Construct a new readonly_detached_regcache. | |
2851 | * regcache.c (readonly_detached_regcache::readonly_detached_regcache): | |
2852 | New. | |
2853 | (regcache::save): Move it to reg_buffer. | |
2854 | (regcache::restore): Change parameter type. | |
2855 | (regcache_dup): Remove. | |
2856 | * regcache.h (reg_buffer) <save>: New method. | |
2857 | (readonly_detached_regcache): New class. | |
2858 | * spu-tdep.c (spu2ppu_cache) <regcache>: Use | |
2859 | readonly_detached_regcache. | |
2860 | (spu2ppu_sniffer): Construct a new readonly_detached_regcache. | |
2861 | ||
fc5b8736 YQ |
2862 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
2863 | ||
2864 | * frame.c (frame_save_as_regcache): Use regcache method save. | |
2865 | (frame_pop): Use regcache method restore. | |
2866 | * infrun.c (restore_infcall_suspend_state): Likewise. | |
2867 | * linux-fork.c (fork_load_infrun_state): Likewise. | |
2868 | * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method | |
2869 | save. | |
2870 | * regcache.c (regcache_save): Remove. | |
2871 | (regcache::restore): More asserts. | |
2872 | (regcache_cpy): Remove. | |
2873 | * regcache.h (regcache_save): Remove the declaration. | |
2874 | (regcache::restore): Move from private to public. | |
2875 | Remove the friend declaration of regcache_cpy. | |
2876 | (regcache_cpy): Remove declaration. | |
2877 | ||
849d0ba8 YQ |
2878 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
2879 | ||
2880 | * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change | |
2881 | parameter type to 'readable_regcache *'. | |
2882 | * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise. | |
2883 | * arm-tdep.c (arm_neon_quad_read): Likewise. | |
2884 | (arm_pseudo_read): Likewise. | |
2885 | * avr-tdep.c (avr_pseudo_register_read): Likewise. | |
2886 | * bfin-tdep.c (bfin_pseudo_register_read): Likewise. | |
2887 | * frv-tdep.c (frv_pseudo_register_read): Likewise. | |
2888 | * gdbarch.c: Re-generated. | |
2889 | * gdbarch.h: Re-generated. | |
2890 | * gdbarch.sh (pseudo_register_read): Change parameter type to | |
2891 | 'readable_regcache *'. | |
2892 | (pseudo_register_read_value): Likewise. | |
2893 | * h8300-tdep.c (pseudo_from_raw_register): Likewise. | |
2894 | (h8300_pseudo_register_read): Likewise. | |
2895 | * hppa-tdep.c (hppa_pseudo_register_read): Likewise. | |
2896 | * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. | |
2897 | (i386_pseudo_register_read_into_value): Likewise. | |
2898 | (i386_pseudo_register_read_value): Likewise. | |
2899 | * i386-tdep.h (i386_pseudo_register_read_into_value): Update | |
2900 | declaration. | |
2901 | * ia64-tdep.c (ia64_pseudo_register_read): Likewise. | |
2902 | * m32c-tdep.c (m32c_raw_read): Likewise. | |
2903 | (m32c_read_flg): Likewise. | |
2904 | (m32c_banked_register): Likewise. | |
2905 | (m32c_banked_read): Likewise. | |
2906 | (m32c_sb_read): Likewise. | |
2907 | (m32c_part_read): Likewise. | |
2908 | (m32c_cat_read): Likewise. | |
2909 | (m32c_r3r2r1r0_read): Likewise. | |
2910 | (m32c_pseudo_register_read): Likewise. | |
2911 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise. | |
2912 | * mep-tdep.c (mep_pseudo_cr32_read): Likewise. | |
2913 | (mep_pseudo_cr64_read): Likewise. | |
2914 | (mep_pseudo_register_read): Likewise. | |
2915 | * mips-tdep.c (mips_pseudo_register_read): Likewise. | |
2916 | * msp430-tdep.c (msp430_pseudo_register_read): Likewise. | |
2917 | * nds32-tdep.c (nds32_pseudo_register_read): Likewise. | |
2918 | * regcache.c (regcache::raw_read): Move it to readable_regcache. | |
2919 | (regcache::cooked_read): Likewise. | |
2920 | (regcache::cooked_read_value): Likewise. | |
2921 | (regcache_cooked_read_signed): | |
2922 | (regcache::cooked_read): Likewise. | |
2923 | * regcache.h (readable_regcache): New class. | |
2924 | (regcache): Inherit readable_regcache. Move some methods to | |
2925 | readable_regcache. | |
2926 | * rl78-tdep.c (rl78_pseudo_register_read): Change | |
2927 | parameter type to 'readable_regcache *'. | |
2928 | * rs6000-tdep.c (do_regcache_raw_read): Remove. | |
2929 | (e500_pseudo_register_read): Change parameter type to | |
2930 | 'readable_regcache *'. | |
2931 | (dfp_pseudo_register_read): Likewise. | |
2932 | (vsx_pseudo_register_read): Likewise. | |
2933 | (efpr_pseudo_register_read): Likewise. | |
2934 | * s390-tdep.c (s390_pseudo_register_read): Likewise. | |
2935 | * sh-tdep.c (sh_pseudo_register_read): Likewise. | |
2936 | * sh64-tdep.c (pseudo_register_read_portions): Likewise. | |
2937 | (sh64_pseudo_register_read): Likewise. | |
2938 | * sparc-tdep.c (sparc32_pseudo_register_read): Likewise. | |
2939 | * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise. | |
2940 | * spu-tdep.c (spu_pseudo_register_read_spu): Likewise. | |
2941 | (spu_pseudo_register_read): Likewise. | |
2942 | * xtensa-tdep.c (xtensa_register_read_masked): Likewise. | |
2943 | (xtensa_pseudo_register_read): Likewise. | |
2944 | ||
31716595 YQ |
2945 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
2946 | ||
2947 | * regcache.c (regcache::regcache): Call reg_buffer ctor. | |
2948 | (regcache::arch): Move it to reg_buffer::arch. | |
2949 | (regcache::register_buffer): Likewise. | |
2950 | (regcache::assert_regnum): Likewise. | |
2951 | (regcache::num_raw_registers): Likewise. | |
2952 | * regcache.h (reg_buffer): New class. | |
2953 | (regcache): Inherit reg_buffer. | |
2954 | ||
7104e59b SM |
2955 | 2018-02-20 Simon Marchi <simon.marchi@ericsson.com> |
2956 | ||
2957 | * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered, | |
2958 | gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF. | |
2959 | ||
2d8adcbd MM |
2960 | 2018-02-20 Markus Metzger <markus.t.metzger@intel.com> |
2961 | ||
2962 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp. | |
2963 | ||
b5884fa7 AH |
2964 | 2018-02-19 Alan Hayward <alan.hayward@arm.com> |
2965 | ||
2966 | * Makefile.in: (COMMON_SFILES): Add common/*.c files. | |
2967 | (SFILES): Remove common/*.c files. | |
2968 | (COMMON_OBS): Remove some *.o files built from common/*.c files. | |
2969 | * common/common.host: Add common reference. | |
2970 | * configure.ac: Likewise. | |
2971 | * configure: Regenerate. | |
2972 | ||
fd90ace4 YQ |
2973 | 2018-02-16 Yao Qi <yao.qi@linaro.org> |
2974 | ||
2975 | * block.c (block_namespace_info): Inherit allocate_on_obstack. | |
2976 | (block_initialize_namespace): Use new. | |
2977 | * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack. | |
2978 | (dwarf2_free_objfile): Use delete. | |
2979 | * gdbtypes.c (type_pair): Inherit allocate_on_obstack. | |
2980 | (copy_type_recursive): Use new. | |
2981 | * gdb_obstack.h (allocate_on_obstack): New. | |
2982 | ||
85046ae2 YQ |
2983 | 2018-02-15 Yao Qi <yao.qi@linaro.org> |
2984 | ||
2985 | PR gdb/22849 | |
2986 | * inferior.c (exit_inferior_1): Reset inf->control. | |
2987 | ||
355c559b JB |
2988 | 2018-02-15 Joel Brobecker <brobecker@adacore.com> |
2989 | ||
2990 | * ada-lang.c (ada_to_fixed_value_create): Delete advance | |
2991 | declaration. | |
2992 | ||
980548fd PA |
2993 | 2018-02-14 Pedro Alves <palves@redhat.com> |
2994 | ||
2995 | * frame-unwind.c (frame_unwind_try_unwinder): Always call | |
2996 | frame_cleanup_after_sniffer on exception. | |
2997 | ||
692d6f97 TT |
2998 | 2018-02-14 Tom Tromey <tom@tromey.com> |
2999 | ||
3000 | * solist.h (struct target_so_ops) <bfd_open>: Make pathname | |
3001 | const. | |
3002 | (solib_bfd_open): Make pathname const. | |
3003 | * solib.c (solib_bfd_open): Make pathname const. | |
3004 | * solib-spu.c (spu_bfd_fopen): Make name const. | |
3005 | (spu_bfd_open): Make pathname const. | |
3006 | * solib-darwin.c (darwin_bfd_open): Make pathname const. | |
3007 | * solib-aix.c (solib_aix_bfd_open): Make pathname const. | |
3008 | ||
e0cc99a6 TT |
3009 | 2018-02-14 Tom Tromey <tom@tromey.com> |
3010 | ||
3011 | * symfile.c (symfile_bfd_open): Update. | |
3012 | * source.h (openp, source_full_path_of, find_and_open_source): | |
3013 | Change argument type to unique_xmalloc_ptr. | |
3014 | * source.c (openp): Take a unique_xmalloc_ptr. | |
3015 | (source_full_path_of, find_and_open_source): Likewise. | |
3016 | (open_source_file, symtab_to_fullname): Update. | |
3017 | * solist.h (struct target_so_ops) <find_and_open_solib>: Take a | |
3018 | unique_xmalloc_ptr. | |
3019 | * solib.c (solib_find_1): Use unique_xmalloc_ptr. | |
3020 | (exec_file_find): Update. | |
3021 | * psymtab.c (psymtab_to_fullname): Update. | |
3022 | * nto-tdep.h (nto_find_and_open_solib): Update. | |
3023 | * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a | |
3024 | unique_xmalloc_ptr. | |
3025 | * exec.c (exec_file_attach): Update. | |
3026 | * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr. | |
3027 | * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr. | |
3028 | ||
b46a8d7c TT |
3029 | 2018-02-14 Tom Tromey <tom@tromey.com> |
3030 | ||
3031 | * solib.c: Include source.h. | |
3032 | * nto-tdep.c: Include source.h. | |
3033 | * mi/mi-cmd-env.c: Include source.h. | |
3034 | * infcmd.c: Include source.h. | |
3035 | * exec.c: Include source.h. | |
3036 | * defs.h (enum openp_flag, openp, source_full_path_of, mod_path) | |
3037 | (add_path, directory_switch, source_path, init_source_path): Move | |
3038 | declarations... | |
3039 | * source.h (enum openp_flag, openp, source_full_path_of, mod_path) | |
3040 | (add_path, directory_switch, source_path, init_source_path): | |
3041 | ...here. | |
3042 | ||
797bc1cb TT |
3043 | 2018-02-14 Tom Tromey <tom@tromey.com> |
3044 | ||
3045 | * solist.h (exec_file_find, solib_find): Return | |
3046 | unique_xmalloc_ptr. | |
3047 | (solib_bfd_fopen): Take a const char *. | |
3048 | * solib.c (solib_find_1): Return unique_xmalloc_ptr. | |
3049 | (exec_file_find, solib_find): Likewise. | |
3050 | (solib_bfd_fopen): Do not take ownership of "pathname". | |
3051 | (solib_bfd_open): Use unique_xmalloc_ptr. | |
3052 | * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr. | |
3053 | * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr. | |
3054 | * infrun.c (follow_exec): Use unique_xmalloc_ptr. | |
3055 | * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr. | |
3056 | ||
f98b2e33 JB |
3057 | 2018-02-14 Joel Brobecker <brobecker@adacore.com> |
3058 | ||
3059 | * ada-lang.c (name_match_type_from_name): Remove reference to | |
3060 | ada_name_for_lookup in function's documentation. | |
3061 | * ada-lang.h (ada_name_for_lookup): Delete declaration. | |
3062 | ||
24b9144d SM |
3063 | 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca> |
3064 | ||
3065 | * defs.h (enum openp_flags): New enum. | |
3066 | (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH): | |
3067 | Move to enum openp_flags. | |
3068 | (openp_flags): New enum flags. | |
3069 | (openp): Change parameter type to openp_flags. | |
3070 | * source.c (openp): Change parameter type to openp_flags. | |
3071 | * cli/cli-cmds.c (find_and_open_script): Use openp_flags. | |
3072 | * dwarf2read.c (try_open_dwop_file): Use openp_flags. | |
3073 | ||
387cd15b SM |
3074 | 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca> |
3075 | ||
3076 | * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show | |
3077 | per-command. | |
3078 | ||
b303c6f6 AB |
3079 | 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com> |
3080 | ||
3081 | * dwarf2read.c (dwarf2_release_queue): Delete function, move body | |
3082 | into... | |
3083 | (class dwarf2_queue_guard): ...the destructor of this new class. | |
3084 | (dw2_do_instantiate_symtab): Create instance of the new class | |
3085 | dwarf2_queue_guard, remove cleanup. | |
3086 | ||
9c3630e9 TT |
3087 | 2018-02-09 Tom Tromey <tom@tromey.com> |
3088 | ||
3089 | * source.c (find_source_lines): Don't reference past the end of | |
3090 | the vector. | |
3091 | ||
c4e12631 MM |
3092 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
3093 | ||
3094 | * remote.c (remote_btrace_maybe_reopen): Change error message. | |
3095 | * btrace.c (btrace_enable): Likewise. | |
3096 | (parse_xml_btrace): Likewise. | |
3097 | (parse_xml_btrace_conf): Likewise. | |
3098 | ||
88711fbf MM |
3099 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
3100 | ||
3101 | * nat/linux-btrace.c (diagnose_perf_event_open_fail): New. | |
3102 | (linux_enable_pt, linux_enable_bts): Call | |
3103 | diagnose_perf_event_open_fail. | |
3104 | ||
17ad2a4f MM |
3105 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
3106 | ||
3107 | * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message. | |
3108 | Remove parameter and change return type. Update callers. Move it. | |
3109 | (linux_enable_bts, linux_enable_pt): Improve error message. | |
3110 | (linux_enable_pt): Remove zero buffer size check. | |
3111 | (linux_enable_btrace): Improve error messages. Remove NULL return | |
3112 | check. | |
3113 | ||
de6242d3 MM |
3114 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
3115 | ||
3116 | * btrace.c (btrace_enable): Remove target_supports_btrace call. | |
3117 | * nat/linux-btrace.c (perf_event_pt_event_type): Move. | |
3118 | (kernel_supports_bts, kernel_supports_pt, linux_supports_bts) | |
3119 | (linux_supports_pt, linux_supports_btrace): Remove. | |
3120 | (linux_enable_bts): Call cpu_supports_bts. | |
3121 | * nat/linux-btrace.h (linux_supports_btrace): Remove. | |
3122 | * remote.c (remote_supports_btrace): Remove. | |
3123 | (init_remote_ops): Remove remote_supports_btrace. | |
3124 | * target-delegates.c: Regenerated. | |
3125 | * target.c (target_supports_btrace): Remove. | |
3126 | * target.h (target_ops) <to_supports_btrace>: Remove | |
3127 | (target_supports_btrace): Remove. | |
3128 | * x86-linux-nat.c (x86_linux_create_target): Remove | |
3129 | linux_supports_btrace. | |
3130 | ||
9ee23a85 MM |
3131 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
3132 | ||
3133 | * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling | |
3134 | btrace failed. | |
3135 | * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling | |
3136 | exception and use message in own exception. | |
3137 | ||
5c3284c1 MM |
3138 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
3139 | ||
3140 | * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h. | |
3141 | (perf_event_pt_event_type): Use gdb_file_up. | |
3142 | (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr, | |
3143 | scoped_fd, and scoped_mmap. | |
3144 | ||
84696f37 MM |
3145 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
3146 | ||
3147 | * common/scoped_mmap.h: New. | |
3148 | * unittests/scoped_mmap-selftest.c: New. | |
3149 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
3150 | unittests/scoped_mmap-selftest.c. | |
3151 | ||
ea4a0888 MM |
3152 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
3153 | ||
3154 | * common/scoped_fd.h: New. | |
3155 | * unittests/scoped_fd-selftest.c: New. | |
3156 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
3157 | unittests/scoped_fd-selftest.c. | |
3158 | ||
869e8290 TT |
3159 | 2018-02-09 Tom Tromey <tom@tromey.com> |
3160 | ||
3161 | * auto-load.c (auto_load_section_scripts): Use | |
3162 | gdb::unique_xmalloc_ptr. | |
3163 | ||
a37a2ae7 TT |
3164 | 2018-02-09 Tom Tromey <tom@tromey.com> |
3165 | ||
3166 | * auto-load.c (execute_script_contents): Use std::string. | |
3167 | ||
4e725347 JB |
3168 | 2018-02-09 Joel Brobecker <brobecker@adacore.com> |
3169 | ||
3170 | * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new | |
3171 | Python function, rather than a new command. | |
3172 | ||
9a897d43 TT |
3173 | 2018-02-08 Tom Tromey <tom@tromey.com> |
3174 | ||
3175 | * solib.c (solib_find_1): Use std::string. | |
3176 | (solib_bfd_fopen): Use unique_xmalloc_ptr. | |
3177 | ||
58ef3771 TT |
3178 | 2018-02-08 Tom Tromey <tom@tromey.com> |
3179 | ||
3180 | * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr. | |
3181 | ||
a9abc434 TT |
3182 | 2018-02-08 Tom Tromey <tom@tromey.com> |
3183 | ||
3184 | * source.c (find_source_lines): Use gdb::def_vector. | |
3185 | ||
84f27c6f TT |
3186 | 2018-02-08 Tom Tromey <tom@tromey.com> |
3187 | ||
3188 | * macrocmd.c (struct temporary_macro_definition): New. | |
3189 | (macro_define_command): Use temporary_macro_definition. Remove | |
3190 | cleanups. | |
3191 | (free_macro_definition_ptr): Remove. | |
3192 | ||
0354904b TT |
3193 | 2018-02-08 Tom Tromey <tom@tromey.com> |
3194 | ||
3195 | * macroexp.c (maybe_expand): Use std::string. | |
3196 | ||
1739cf24 TT |
3197 | 2018-02-08 Tom Tromey <tom@tromey.com> |
3198 | ||
3199 | * macroexp.c (struct macro_buffer): Add initializers for some | |
3200 | members. | |
3201 | (init_buffer, init_shared_buffer, free_buffer) | |
3202 | (free_buffer_return_text): Remove. | |
3203 | (macro_buffer): New constructors. | |
3204 | (~macro_buffer): New destructor. | |
3205 | (macro_buffer::set_shared): New method. | |
3206 | (macro_buffer::resize_buffer, macro_buffer::appendc) | |
3207 | (macro_buffer::appendmem): Now methods, not free functions. | |
3208 | (set_token, append_tokens_without_splicing, stringify) | |
3209 | (macro_stringify): Update. | |
3210 | (gather_arguments): Change return type. Remove argc_p argument, | |
3211 | add args_ptr argument. Use std::vector. | |
3212 | (substitute_args): Remove argc argument. Accept std::vector. | |
3213 | (expand): Update. Use std::vector. | |
3214 | (scan, macro_expand, macro_expand_next): Update. | |
3215 | ||
f6c2623e TT |
3216 | 2018-02-08 Tom Tromey <tom@tromey.com> |
3217 | ||
3218 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
3219 | Use unique_xmalloc_ptr. | |
3220 | * macroscope.h: (sal_macro_scope, user_macro_scope) | |
3221 | (default_macro_scope): Return unique_xmalloc_ptr. | |
3222 | * macroscope.c (sal_macro_scope, user_macro_scope) | |
3223 | (default_macro_scope): Return unique_xmalloc_ptr. | |
3224 | * macroexp.h (macro_expand, macro_expand_once): Return | |
3225 | unique_xmalloc_ptr. | |
3226 | * macroexp.c (macro_expand, macro_expand_once): Return | |
3227 | unique_xmalloc_ptr. | |
3228 | * macrocmd.c (macro_expand_command, macro_expand_once_command) | |
3229 | (info_macro_command, info_macros_command): Use | |
3230 | unique_xmalloc_ptr. | |
3231 | * compile/compile-c-support.c (write_macro_definitions): Use | |
3232 | unique_xmalloc_ptr. | |
3233 | * c-exp.y (c_parse): Use unique_xmalloc_ptr. | |
3234 | ||
c2e0e465 SM |
3235 | 2018-02-07 Simon Marchi <simon.marchi@ericsson.com> |
3236 | ||
3237 | * value.c (value_static_field): Assign field type instead of | |
3238 | containing type when returning an optimized out value. | |
3239 | ||
3f8c94b4 YQ |
3240 | 2018-02-06 Yao Qi <yao.qi@linaro.org> |
3241 | ||
3242 | * ft32-tdep.c (ft32_read_pc): Remove. | |
3243 | (ft32_write_pc): Remove. | |
3244 | (ft32_gdbarch_init): Update. | |
3245 | * m32r-tdep.c (m32r_read_pc): Remove. | |
3246 | (m32r_gdbarch_init): Update. | |
3247 | * mep-tdep.c (mep_read_pc): Remove. | |
3248 | (mep_gdbarch_init): Update. | |
3249 | * microblaze-tdep.c (microblaze_write_pc): Remove. | |
3250 | (microblaze_gdbarch_init): Update. | |
3251 | * mn10300-tdep.c (mn10300_read_pc): Remove. | |
3252 | (mn10300_write_pc): Remove. | |
3253 | (mn10300_gdbarch_init): Update. | |
3254 | * moxie-tdep.c (moxie_read_pc): Remove. | |
3255 | (moxie_write_pc): Remove. | |
3256 | (moxie_gdbarch_init): Update. | |
3257 | ||
bca65a23 YQ |
3258 | 2018-02-06 Yao Qi <yao.qi@linaro.org> |
3259 | ||
3260 | * expprint.c (print_subexp_standard): Handle | |
3261 | OP_F77_UNDETERMINED_ARGLIST. | |
3262 | (dump_subexp_body_standard): Likewise. | |
3263 | ||
583e3f90 | 3264 | 2018-02-05 Alan Hayward <alan.hayward@arm.com> |
b8df6ca7 | 3265 | |
583e3f90 YQ |
3266 | * target-descriptions.c (tdesc_element_visitor) Add empty |
3267 | implementations. | |
b8df6ca7 AH |
3268 | (tdesc_type): Move make_gdb_type from here. |
3269 | (tdesc_type_builtin): Likewise. | |
3270 | (tdesc_type_vector): Likewise. | |
3271 | (tdesc_type_with_fields): Move make_gdb_type_ functions from here. | |
3272 | (make_gdb_type_struct): Move from tdesc_type_with_fields. | |
3273 | (make_gdb_type_union): Likewise. | |
3274 | (make_gdb_type_flags): Likewise. | |
3275 | (make_gdb_type_enum): Likewise. | |
3276 | (make_gdb_type): New function. | |
3277 | (tdesc_register_type): Use static make_gdb_type. | |
3278 | ||
e813d34a RK |
3279 | 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com> |
3280 | ||
3281 | * infcmd.c (default_print_one_register_info): Align natural-format | |
3282 | column values consistently one under another. | |
3283 | (pad_to_column): New function. | |
3284 | ||
0eb876f5 JB |
3285 | 2018-02-05 Joel Brobecker <brobecker@adacore.com> |
3286 | ||
3287 | * dwarf2read.c (dwarf2_physname): Move commment. | |
3288 | ||
0625771b LS |
3289 | 2018-02-01 Leszek Swirski <leszeks@google.com> |
3290 | ||
3291 | * varobj.c (varobj_formatted_print_options): Allow recursive | |
3292 | pretty printing if pretty printing is enabled. | |
3293 | ||
59498c30 LS |
3294 | 2018-02-01 Leszek Swirski <leszeks@google.com> |
3295 | ||
3296 | * c-exp.y (lex_one_token, classify_name, yylex): Don't classify | |
3297 | names after a structop as a filename. | |
3298 | ||
2d9e6acb YQ |
3299 | 2018-02-01 Yao Qi <yao.qi@linaro.org> |
3300 | ||
3301 | * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it. | |
3302 | (arm_record_coproc_data_proc): Likewise. | |
3303 | ||
df95a9cf YQ |
3304 | 2018-02-01 Yao Qi <yao.qi@linaro.org> |
3305 | ||
3306 | * arm-tdep.c (arm_record_extension_space): Change ret to signed. | |
3307 | ||
07e5f5cf NP |
3308 | 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com> |
3309 | ||
3310 | * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and | |
3311 | assign shifted lr_reg to fdata->lr_register when lr_reg is set. | |
3312 | ||
3045b475 PA |
3313 | 2018-01-31 Pedro Alves <palves@redhat.com> |
3314 | ||
3315 | * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter. | |
3316 | * inflow.c (child_terminal_save_inferior): Wrap reference to | |
3317 | tcgetpgrp in HAVE_TERMIOS_H. | |
3318 | (child_interrupt, child_pass_ctrlc): Wrap references to signal in | |
3319 | _WIN32. | |
3320 | * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and | |
3321 | always iterate over all inferiors. | |
3322 | (gdbsim_cntrl_c): Adjust. | |
3323 | * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter. | |
3324 | ||
929b5ad4 JB |
3325 | 2018-01-31 Joel Brobecker <brobecker@adacore.com> |
3326 | ||
3327 | * gdbtypes.c (lookup_array_range_type): Make sure the array's | |
3328 | index type is objfile-owned if the element type is as well. | |
3329 | ||
29236ca2 JB |
3330 | 2018-01-31 Joel Brobecker <brobecker@adacore.com> |
3331 | ||
3332 | GDB 8.1 released. | |
3333 | ||
c81e8879 PR |
3334 | 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com> |
3335 | ||
3336 | * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and | |
3337 | "features/s390x-linux64.c". | |
3338 | (_initialize_s390_linux_tdep): Remove initialization of tdescs | |
3339 | s390_linux32 and s390x_linux64. | |
3340 | (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set | |
3341 | default tdesc. | |
3342 | * s390-tdep.c: Include "features/s390-linux32.c" and | |
3343 | "features/s390x-linux64.c". | |
3344 | (s390_tdesc_valid): Add check for tdesc_has_registers. | |
3345 | (s390_gdbarch_init): Make sure there is always a valid tdesc. | |
3346 | (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and | |
3347 | tdesc_s390x_linux64. | |
3348 | * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and | |
3349 | tdesc_s390x_linux64 to... | |
3350 | * s390-tdep.h: ...here. | |
3351 | ||
e671cd59 PA |
3352 | 2018-01-30 Pedro Alves <palves@redhat.com> |
3353 | ||
3354 | PR gdb/13211 | |
3355 | * config.in, configure: Regenerate. | |
3356 | * configure.ac: Check for getpgid. | |
3357 | * go32-nat.c (go32_pass_ctrlc): New. | |
3358 | (go32_target): Install it. | |
3359 | * inf-child.c (inf_child_target): Install | |
3360 | child_terminal_save_inferior, child_pass_ctrlc and | |
3361 | child_interrupt. | |
3362 | * inf-ptrace.c (inf_ptrace_interrupt): Delete. | |
3363 | (inf_ptrace_target): No longer install it. | |
3364 | * infcmd.c (interrupt_target_1): Adjust. | |
3365 | * inferior.h (child_terminal_save_inferior, child_pass_ctrlc) | |
3366 | (child_interrupt): Declare. | |
3367 | (inferior::terminal_state): New. | |
3368 | * inflow.c (struct terminal_info): Update comments. | |
3369 | (inferior_process_group): Delete. | |
3370 | (terminal_is_ours): Delete. | |
3371 | (gdb_tty_state): New. | |
3372 | (child_terminal_init): Adjust. | |
3373 | (is_gdb_terminal, sharing_input_terminal_1) | |
3374 | (sharing_input_terminal): New functions. | |
3375 | (child_terminal_inferior): Adjust. Use sharing_input_terminal. | |
3376 | Set the process's actual process group in the foreground if | |
3377 | possible. Handle is_ours_for_output/is_ours distinction. Don't | |
3378 | mark terminal as the inferior's if not sharing GDB's terminal. | |
3379 | Don't check attach_flag. | |
3380 | (child_terminal_ours_for_output, child_terminal_ours): Adjust to | |
3381 | pass down a target_terminal_state. | |
3382 | (child_terminal_save_inferior): New, factored out from ... | |
3383 | (child_terminal_ours_1): ... this. Handle | |
3384 | target_terminal_state::is_ours_for_output. | |
3385 | (child_interrupt, child_pass_ctrlc): New. | |
3386 | (inflow_inferior_exit): Clear the inferior's terminal_state. | |
3387 | (copy_terminal_info): Copy the inferior's terminal state. | |
3388 | (_initialize_inflow): Remove reference to terminal_is_ours. | |
3389 | * inflow.h (inferior_process_group): Delete. | |
3390 | * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust. | |
3391 | * procfs.c (procfs_target): Don't install procfs_interrupt. | |
3392 | (procfs_interrupt): Delete. | |
3393 | * remote.c (remote_serial_quit_handler): Adjust. | |
3394 | (remote_interrupt): Remove ptid parameter. Adjust. | |
3395 | * target-delegates.c: Regenerate. | |
3396 | * target.c: Include "terminal.h". | |
3397 | (target_terminal::terminal_state): Rename to ... | |
3398 | (target_terminal::m_terminal_state): ... this. | |
3399 | (target_terminal::init): Adjust. | |
3400 | (target_terminal::inferior): Adjust to per-inferior | |
3401 | terminal_state. | |
3402 | (target_terminal::restore_inferior, target_terminal_is_ours_kind): New. | |
3403 | (target_terminal::ours, target_terminal::ours_for_output): Use | |
3404 | target_terminal_is_ours_kind. | |
3405 | (target_interrupt): Remove ptid parameter. Adjust. | |
3406 | (default_target_pass_ctrlc): Adjust. | |
3407 | * target.h (target_ops::to_terminal_save_inferior): New field. | |
3408 | (target_ops::to_interrupt): Remove ptid_t parameter. | |
3409 | (target_interrupt): Remove ptid_t parameter. Update comment. | |
3410 | (target_pass_ctrlc): Update comment. | |
3411 | * target/target.h (target_terminal_state): New scoped enum, | |
3412 | factored out of ... | |
3413 | (target_terminal::terminal_state): ... here. | |
3414 | (target_terminal::inferior): Update comments. | |
3415 | (target_terminal::restore_inferior): New. | |
3416 | (target_terminal::is_inferior, target_terminal::is_ours) | |
3417 | (target_terminal::is_ours_for_output): Adjust. | |
3418 | (target_terminal::scoped_restore_terminal_state): Adjust to | |
3419 | rename, and call restore_inferior() instead of inferior(). | |
3420 | (target_terminal::scoped_restore_terminal_state::m_state): Change | |
3421 | type. | |
3422 | (target_terminal::terminal_state): Rename to ... | |
3423 | (target_terminal::m_terminal_state): ... this and change type. | |
3424 | ||
9c3a5d93 PA |
3425 | 2018-01-30 Pedro Alves <palves@redhat.com> |
3426 | ||
3427 | * linux-nat.c (wait_for_signal): New function. | |
3428 | (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend | |
3429 | directly. | |
3430 | (async_terminal_is_ours) | |
3431 | (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete. | |
3432 | (linux_nat_add_target): Don't override | |
3433 | to_terminal_inferior/to_terminal_ours. | |
3434 | ||
69ab5edb SDJ |
3435 | 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com> |
3436 | ||
3437 | * remote.c (remote_follow_fork): Don't call "detach_inferior". | |
3438 | ||
fc8e7e75 SM |
3439 | 2018-01-28 Simon Marchi <simon.marchi@ericsson.com> |
3440 | ||
3441 | * dwarf2read.c (free_dwo_files): Add forward-declaration. | |
3442 | (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from | |
3443 | dwarf2_per_objfile_free here. | |
3444 | (dwarf2_per_objfile_free): Remove. | |
3445 | (_initialize_dwarf2_read): Don't register | |
3446 | dwarf2_per_objfile_free as a registry cleanup. | |
3447 | ||
b2a426e2 EZ |
3448 | 2018-01-27 Eli Zaretskii <eliz@gnu.org> |
3449 | ||
3450 | Avoid compilation errors in MinGW native builds | |
3451 | ||
3452 | The error is triggered by including python-internal.h, and the | |
3453 | error message is: | |
3454 | ||
3455 | In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0, | |
3456 | from build-gnulib/import/math.h:27, | |
3457 | from d:/usr/Python26/include/pyport.h:235, | |
3458 | from d:/usr/Python26/include/Python.h:58, | |
3459 | from python/python-internal.h:94, | |
3460 | from python/py-arch.c:24: | |
3461 | d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared | |
3462 | using ::hypot; | |
3463 | ^~~~~ | |
3464 | ||
3465 | This happens because Python headers define 'hypot' to expand t | |
3466 | '_hypot' in the Windows builds. | |
3467 | * python/python-internal.h (_hypot) [__MINGW32__]: Define back to | |
3468 | 'hypoth'. This avoids a compilation error. | |
3469 | ||
0bdd8eac AH |
3470 | 2018-01-26 Alan Hayward <alan.hayward@arm.com> |
3471 | ||
3472 | * MAINTAINERS (Write After Approval): Fix ordering. | |
3473 | ||
56ae9dc3 AH |
3474 | 2018-01-26 Alan Hayward <alan.hayward@arm.com> |
3475 | ||
3476 | * MAINTAINERS (Write After Approval): Add Alan Hayward. | |
3477 | ||
7433498b AM |
3478 | 2018-01-26 Alan Modra <amodra@gmail.com> |
3479 | ||
3480 | * ppc-linux-tdep.c (powerpc32_plt_stub): Make const. | |
3481 | (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so. | |
3482 | Remove nop. Make const. Comment. | |
3483 | (powerpc32_plt_stub_so_2): New. | |
3484 | (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN. | |
3485 | Correct count. Update uses. | |
3486 | (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too. | |
3487 | Move common code reading PLT entry word. Correct | |
3488 | powerpc32_plt_stub PLT address calculation. | |
3489 | * ppc64-tdep.c (ppc64_standard_linkage1): Make const. | |
3490 | (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise. | |
3491 | (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise. | |
3492 | (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise. | |
3493 | (ppc64_standard_linkage8): Likewise. | |
3494 | * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const. | |
3495 | Correct insns description. | |
3496 | * ppc-tdep.h (ppc_insns_match_pattern): Update prototype. | |
3497 | ||
0f59d5fc PA |
3498 | 2018-01-24 Pedro Alves <palves@redhat.com> |
3499 | ||
3500 | GCC PR libstdc++/83906 | |
3501 | * gdbtypes.c (operator==(const dynamic_prop &, | |
3502 | const dynamic_prop &)): New. | |
3503 | (operator==(const range_bounds &, const range_bounds &)): New. | |
3504 | (check_types_equal): Use them instead of memcmp. | |
3505 | * gdbtypes.h (operator==(const dynamic_prop &, | |
3506 | const dynamic_prop &)): Declare. | |
3507 | (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare. | |
3508 | (operator==(const range_bounds &, const range_bounds &)): Declare. | |
3509 | (operator!=(const range_bounds &, const range_bounds &)): Declare. | |
3510 | ||
ef8914a4 PR |
3511 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
3512 | ||
3513 | * s390-linux-tdep.c (s390_record_address_mask) | |
3514 | (s390_record_calc_disp_common, s390_record_calc_disp) | |
3515 | (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt) | |
3516 | (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr) | |
3517 | (s390_process_record): Move to s390-tdep.c. | |
3518 | (s390_linux_init_abi_any): Adjust. | |
3519 | * s390-tdep.c (s390_record_address_mask) | |
3520 | (s390_record_calc_disp_common, s390_record_calc_disp) | |
3521 | (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt) | |
3522 | (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr) | |
3523 | (s390_process_record): Moved from s390-linux-tdep.c | |
3524 | (s390_gdbarch_init): Adjust. | |
3525 | ||
d6e58945 PR |
3526 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
3527 | ||
3528 | * s390-linux-nat.c (s390-tdep.h): New include. | |
3529 | * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o. | |
3530 | (HFILES_NO_SRCDIR): Add s390-tdep.h. | |
3531 | (ALLDEPFILES): Add s390-tdep.c. | |
3532 | * configure.tgt (s390*-*-linux*): Add s390-tdep.o. | |
3533 | * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to... | |
3534 | * s390-tdep.h: ...this. New file. | |
3535 | * s390-linux-tdep.c (s390-tdep.h): New include. | |
3536 | (_initialize_s390_tdep): Rename to... | |
3537 | (_initialize_s390_linux_tdep): ...this and adjust. | |
3538 | (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep) | |
3539 | (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to | |
3540 | s390-tdep.h. | |
3541 | (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri) | |
3542 | (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy) | |
3543 | (s390_is_partial_instruction, s390_software_single_step) | |
3544 | (is_non_branch_ril, s390_displaced_step_copy_insn) | |
3545 | (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep) | |
3546 | (s390_prologue_data, s390_addr, s390_store, s390_load) | |
3547 | (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue) | |
3548 | (s390_register_call_saved, s390_guess_tracepoint_registers) | |
3549 | (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum) | |
3550 | (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register) | |
3551 | (s390_pseudo_register_name, s390_pseudo_register_type) | |
3552 | (s390_pseudo_register_read, s390_pseudo_register_write) | |
3553 | (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect) | |
3554 | (s390_ax_pseudo_register_push_stack, s390_gen_return_address) | |
3555 | (s390_addr_bits_remove, s390_address_class_type_flags) | |
3556 | (s390_address_class_type_flags_to_name) | |
3557 | (s390_address_class_name_to_type_flags, s390_effective_inner_type) | |
3558 | (s390_function_arg_float, s390_function_arg_vector) | |
3559 | (is_power_of_two, s390_function_arg_integer, s390_arg_state) | |
3560 | (s390_handle_arg, s390_push_dummy_call, s390_dummy_id) | |
3561 | (s390_frame_align, s390_register_return_value, s390_return_value) | |
3562 | (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp) | |
3563 | (s390_unwind_pseudo_register, s390_adjust_frame_regnum) | |
3564 | (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg) | |
3565 | (s390_trad_frame_prev_register, s390_unwind_cache) | |
3566 | (s390_prologue_frame_unwind_cache) | |
3567 | (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache) | |
3568 | (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind) | |
3569 | (s390_stub_unwind_cache, s390_stub_frame_unwind_cache) | |
3570 | (s390_stub_frame_this_id, s390_stub_frame_prev_register) | |
3571 | (s390_stub_frame_sniffer, s390_stub_frame_unwind) | |
3572 | (s390_frame_base_address, s390_local_base_address) | |
3573 | (s390_frame_base, s390_gcc_target_options) | |
3574 | (s390_gnu_triplet_regexp, s390_stap_is_single_operand) | |
3575 | (s390_validate_reg_range, s390_tdesc_valid) | |
3576 | (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to... | |
3577 | * s390-tdep.c: ...this. New file. | |
3578 | ||
9c0b896e PR |
3579 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
3580 | ||
3581 | * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook. | |
3582 | (s390_process_record, s390_gdbarch_tdep_alloc) | |
3583 | (s390_linux_init_abi_any): Use/set new hook. | |
3584 | ||
7042632b PR |
3585 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
3586 | ||
3587 | * s390-linux-tdep.c (osabi.h): New include. | |
3588 | (s390_linux_init_abi_31, s390_linux_init_abi_64) | |
3589 | (s390_linux_init_abi_any): New functions. | |
3590 | (s390_gdbarch_init, _initialize_s390_tdep): Adjust. | |
3591 | ||
650f5e13 PR |
3592 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
3593 | ||
3594 | * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for | |
3595 | tdesc_has_registers check | |
3596 | ||
47c9317e PR |
3597 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
3598 | ||
3599 | * s390-linux-tdep.c (s390_tdesc_valid): New function. | |
3600 | (s390_validate_reg_range): New macro. | |
3601 | (s390_gdbarch_init): Adjust. | |
3602 | ||
095085d8 PR |
3603 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
3604 | ||
3605 | * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field. | |
3606 | (s390_gdbarch_tdep_alloc): Adjust. | |
3607 | (s390_gdbarch_init): Adjust. | |
3608 | ||
ab9bcc67 PR |
3609 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
3610 | ||
3611 | * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2> | |
3612 | <have_tdb>: Change type to bool. | |
3613 | (s390_gdbarch_tdep_alloc): Adjust. | |
3614 | (s390_gdbarch_init): Adjust. | |
3615 | ||
21f6f5ff PR |
3616 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
3617 | ||
3618 | * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field. | |
3619 | (gdbarch_tdep) <have_upper, have_vx>: New fields. | |
3620 | (s390_gdbarch_tdep_alloc): New function. | |
3621 | (s390_gdbarch_init): Allocate tdep at start and use its fields | |
3622 | instead of separate variables. | |
3623 | ||
0eb97953 PR |
3624 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
3625 | ||
3626 | * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks | |
3627 | when looking for cached gdbarch and add comment for remaining. | |
3628 | ||
5c319bb2 PA |
3629 | 2018-01-22 Pedro Alves <palves@redhat.com> |
3630 | Sergio Durigan Junior <sergiodj@redhat.com> | |
3631 | ||
3632 | * typeprint.c (whatis_exp): Initialize "val" in the "whatis type" | |
3633 | case. | |
3634 | ||
d65ce302 MR |
3635 | 2018-01-22 Maciej W. Rozycki <macro@mips.com> |
3636 | ||
3637 | * MAINTAINERS: Update my company e-mail address. | |
3638 | ||
ec7a5fcb YQ |
3639 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
3640 | ||
3641 | * regcache.c (cooked_write_test): New function. | |
3642 | (_initialize_regcache): Register the test. | |
3643 | ||
11f57cb6 YQ |
3644 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
3645 | ||
3646 | * ia64-tdep.c (ia64_pseudo_register_read): Call | |
3647 | regcache->cooked_read instead of regcache_cooked_read_unsigned. | |
3648 | * m32c-tdep.c (m32c_cat_read): Likewise. | |
3649 | (m32c_r3r2r1r0_read): Likewise. | |
3650 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise. | |
3651 | * xtensa-tdep.c (xtensa_register_read_masked): Likewise. | |
3652 | ||
03f50fc8 YQ |
3653 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
3654 | ||
3655 | * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache | |
3656 | method raw_read instead of regcache_raw_read. | |
3657 | * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise. | |
3658 | * arm-tdep.c (arm_neon_quad_read): Likewise. | |
3659 | * avr-tdep.c (avr_pseudo_register_read): Likewise. | |
3660 | * bfin-tdep.c (bfin_pseudo_register_read): Likewise. | |
3661 | * frv-tdep.c (frv_pseudo_register_read): Likewise. | |
3662 | * h8300-tdep.c (h8300_pseudo_register_read): Likewise. | |
3663 | * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. | |
3664 | (i386_pseudo_register_read_into_value): Likewise. | |
3665 | * mep-tdep.c (mep_pseudo_cr32_read): Likewise. | |
3666 | * msp430-tdep.c (msp430_pseudo_register_read): Likewise. | |
3667 | * nds32-tdep.c (nds32_pseudo_register_read): Likewise. | |
3668 | * rl78-tdep.c (rl78_pseudo_register_read): Likewise. | |
3669 | * s390-linux-tdep.c (s390_pseudo_register_read): Likewise. | |
3670 | * sparc-tdep.c (sparc32_pseudo_register_read): Likewise. | |
3671 | * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise. | |
3672 | * spu-tdep.c (spu_pseudo_register_read_spu): Likewise. | |
3673 | * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise. | |
3674 | ||
dc711524 YQ |
3675 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
3676 | ||
3677 | * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o. | |
3678 | * configure.tgt: Remove target mt. | |
3679 | * mt-tdep.c: Remove. | |
3680 | * regcache.c (cooked_read_test): Remove the check for mt. | |
3681 | ||
3f5a868b YQ |
3682 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
3683 | ||
3684 | * jit.c (jit_frame_prev_register): Call regcache::cooked_read | |
3685 | instead of gdbarch_pseudo_register_read_value. | |
3686 | ||
de4cb04a JB |
3687 | 2018-01-22 Joel Brobecker <brobecker@adacore.com> |
3688 | ||
3689 | * dwarf2read.c (need_gnat_info): Return nonzero if the cu's | |
3690 | language is Ada. | |
3691 | ||
a9e40818 JB |
3692 | 2018-01-22 Joel Brobecker <brobecker@adacore.com> |
3693 | ||
3694 | * linespec.c (create_sals_line_offset): Remove code that preserved | |
3695 | the symtab_and_line's line number. | |
3696 | ||
e707fc44 AB |
3697 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
3698 | ||
3699 | * varobj.c (varobj_create): Don't set valid_block when creating a | |
3700 | floating varobj. | |
3701 | ||
03d0bf7b AB |
3702 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
3703 | ||
3704 | * varobj.c (varobj_create): Remove out of date comment. | |
3705 | ||
ae451627 AB |
3706 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
3707 | ||
3708 | PR mi/20395 | |
3709 | * ada-exp.y (write_var_from_sym): Pass extra parameter when | |
3710 | updating innermost block. | |
3711 | * parse.c (innermost_block_tracker::update): Take extra type | |
3712 | parameter, and check types match before updating innermost block. | |
3713 | (write_dollar_variable): Update innermost block for registers. | |
3714 | * parser-defs.h (enum innermost_block_tracker_type): New enum. | |
3715 | (innermost_block_tracker::innermost_block_tracker): Initialise | |
3716 | m_types member. | |
3717 | (innermost_block_tracker::reset): Take type parameter. | |
3718 | (innermost_block_tracker::update): Take type parameter, and pass | |
3719 | type through as needed. | |
3720 | (innermost_block_tracker::m_types): New member. | |
3721 | * varobj.c (varobj_create): Pass type when reseting innermost | |
3722 | block. | |
3723 | ||
aee1fcdf AB |
3724 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
3725 | ||
3726 | * ada-exp.y (write_var_from_sym): Switch to innermost_block API. | |
3727 | * ada-lang.c (resolve_subexp): Likewise. | |
3728 | * breakpoint.c (set_breakpoint_condition) Likewise. | |
3729 | (watch_command_1) Likewise. | |
3730 | * c-exp.y (variable): Likewise. | |
3731 | * d-exp.y (PrimaryExpression): Likewise. | |
3732 | * f-exp.y (variable): Likewise. | |
3733 | * go-exp.y (variable): Likewise. | |
3734 | * m2-exp.y (variable): Likewise. | |
3735 | * objfiles.c (objfile::~objfile): Likewise. | |
3736 | * p-exp.y (variable): Likewise. | |
3737 | * parse.c (innermost_block): Change type. | |
3738 | * parser-defs.h (class innermost_block_tracker): New. | |
3739 | (innermost_block): Change to innermost_block_tracker. | |
3740 | * printcmd.c (display_command): Switch to innermost_block API. | |
3741 | (do_one_display): Likewise. | |
3742 | * rust-exp.y (do_one_display): Likewise. | |
3743 | * symfile.c (clear_symtab_users): Likewise. | |
3744 | * varobj.c (varobj_create): Switch to innermost_block API, replace | |
3745 | use of innermost_block with block stored on varobj object. | |
3746 | ||
396af9a1 AB |
3747 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
3748 | ||
3749 | * expression.h (innermost_block): Remove declaration. | |
3750 | * varobj.c: Add 'parser-defs.h' include. | |
3751 | ||
fcfcc376 TT |
3752 | 2018-01-19 Tom Tromey <tom@tromey.com> |
3753 | ||
3754 | * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified | |
3755 | symbols in the static and global blocks. | |
3756 | ||
5a6c3296 JC |
3757 | 2018-01-19 James Clarke <jrtc27@jrtc27.com> |
3758 | ||
3759 | * nat/linux-ptrace.c: Remove unnecessary reinclusion of | |
3760 | gdb_ptrace.h, and move including gdb_wait.h ... | |
3761 | * nat/linux-ptrace.h: ... to here. | |
3762 | ||
bc09b0c1 SM |
3763 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
3764 | ||
3765 | * inf-ptrace.c (inf_ptrace_detach): Adjust call to | |
3766 | inf_ptrace_detach_success. | |
3767 | (inf_ptrace_detach_success): Add inferior parameter, use it | |
3768 | instead of inferior_ptid, pass it to detach_inferior. | |
3769 | * inf-ptrace.h (inf_ptrace_detach_success): Add inferior | |
3770 | parameter. | |
3771 | * inferior.c (detach_inferior): Add overload that takes an | |
3772 | inferior object. | |
3773 | * inferior.h (detach_inferior): Likewise. | |
3774 | * linux-nat.c (linux_nat_detach): Use the inf parameter, don't | |
3775 | use inferior_ptid, adjust call to inf_ptrace_detach_success. | |
3776 | * linux-thread-db.c (thread_db_detach): Use inf parameter. | |
3777 | ||
6e1e1966 SM |
3778 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
3779 | ||
3780 | * target.h (struct target_ops) <to_detach>: Add inferior | |
3781 | parameter. | |
3782 | (target_detach): Likewise. | |
3783 | * target.c (dispose_inferior): Pass inferior down. | |
3784 | (target_detach): Pass inferior down. Assert that it is equal to | |
3785 | the current inferior. | |
3786 | * aix-thread.c (aix_thread_detach): Pass inferior down. | |
3787 | * corefile.c (core_file_command): Pass current_inferior() down. | |
3788 | * corelow.c (core_detach): Add inferior parameter. | |
3789 | * darwin-nat.c (darwin_detach): Likewise. | |
3790 | * gnu-nat.c (gnu_detach): Likewise. | |
3791 | * inf-ptrace.c (inf_ptrace_detach): Likewise. | |
3792 | * infcmd.c (detach_command): Pass current_inferior() down to | |
3793 | target_detach. | |
3794 | * infrun.c (follow_fork_inferior): Pass parent_inf to | |
3795 | target_detach. | |
3796 | (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to | |
3797 | target_detach. | |
3798 | * linux-nat.c (linux_nat_detach): Add inferior parameter. | |
3799 | * linux-thread-db.c (thread_db_detach): Likewise. | |
3800 | * nto-procfs.c (procfs_detach): Likewise. | |
3801 | * procfs.c (procfs_detach): Likewise. | |
3802 | * record.c (record_detach): Likewise. | |
3803 | * record.h (struct inferior): Forward-declare. | |
3804 | (record_detach): Add inferior parameter. | |
3805 | * remote-sim.c (gdbsim_detach): Likewise. | |
3806 | * remote.c (remote_detach_1): Likewise. | |
3807 | (remote_detach): Likewise. | |
3808 | (extended_remote_detach): Likewise. | |
3809 | * sol-thread.c (sol_thread_detach): Likewise. | |
3810 | * target-debug.h (target_debug_print_inferior_p): New macro. | |
3811 | * target-delegates.c: Re-generate. | |
3812 | * top.c (kill_or_detach): Pass inferior down to target_detach. | |
3813 | * windows-nat.c (windows_detach): Add inferior parameter. | |
3814 | ||
6bd6f3b6 SM |
3815 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
3816 | ||
3817 | * target.h (struct target_ops) <to_detach>: Remove args | |
3818 | parameter. | |
3819 | (target_detach): Likewise. | |
3820 | * target.c (dispose_inferior): Adjust. | |
3821 | (target_detach): Remove args parameter, adjust. | |
3822 | * aix-thread.c (aix_thread_detach): Adjust. | |
3823 | * corefile.c (core_file_command): Adjust. | |
3824 | * corelow.c (core_detach): Adjust. | |
3825 | * darwin-nat.c (darwin_detach): Adjust. | |
3826 | * gnu-nat.c (gnu_detach): Adjust. | |
3827 | * inf-ptrace.c (inf_ptrace_detach): Adjust. | |
3828 | * infcmd.c (detach_command): Adjust | |
3829 | * infrun.c (follow_fork_inferior): Adjust. | |
3830 | (handle_vfork_child_exec_or_exit): Adjust. | |
3831 | * linux-fork.c (linux_fork_detach): Remove args parameter. | |
3832 | * linux-fork.h (linux_fork_detach): Likewise. | |
3833 | * linux-nat.c (linux_nat_detach): Likewise, and adjust. | |
3834 | * linux-thread-db.c (thread_db_detach): Likewise. | |
3835 | * nto-procfs.c (procfs_detach): Likewise. | |
3836 | * procfs.c (procfs_detach): Likewise. | |
3837 | (do_detach): Remove signo parameter. | |
3838 | * record.c (record_detach): Remove args parameter. | |
3839 | * record.h (record_detach): Likewise. | |
3840 | * remote-sim.c (gdbsim_detach): Likewise. | |
3841 | * remote.c (remote_detach_1): Likewise. | |
3842 | (remote_detach): Likewise. | |
3843 | (extended_remote_detach): Likewise. | |
3844 | * sol-thread.c (sol_thread_detach): Likewise. | |
3845 | * target-delegates.c: Re-generate. | |
3846 | * top.c (struct qt_args) <args>: Remove field. | |
3847 | (kill_or_detach): Don't pass args. | |
3848 | (quit_force): Don't set args. | |
3849 | * windows-nat.c (windows_detach): Remove args parameter. | |
3850 | ||
88af8ea8 YQ |
3851 | 2018-01-19 Yao Qi <yao.qi@linaro.org> |
3852 | ||
3853 | * arm-linux-tdep.c (arm_linux_gcc_target_options): New function. | |
3854 | (arm_linux_init_abi): Install it. | |
3855 | ||
dea445b9 YQ |
3856 | 2018-01-19 Yao Qi <yao.qi@linaro.org> |
3857 | ||
3858 | * osabi.c (gdb_osabi_names): Extend the regexp for | |
3859 | arm-linux-gnueabihf. | |
3860 | ||
4a17f768 YQ |
3861 | 2018-01-18 Yao Qi <yao.qi@linaro.org> |
3862 | ||
3863 | * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to | |
3864 | m_abbrevs. | |
3865 | (abbrev_table::add_abbrev): Update. | |
3866 | (abbrev_table::lookup_abbrev): Update. | |
3867 | ||
d679c21a YQ |
3868 | 2018-01-18 Yao Qi <yao.qi@linaro.org> |
3869 | ||
3870 | * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read. | |
3871 | ||
7d937cad SDJ |
3872 | 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com> |
3873 | ||
3874 | * compile/compile.c (compile_to_object): Convert "triplet_rx" | |
3875 | to "std::string". | |
3876 | ||
9e14690d TT |
3877 | 2018-01-17 Tom Tromey <tom@tromey.com> |
3878 | ||
3879 | * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC. | |
3880 | ||
50a82047 TT |
3881 | 2018-01-17 Tom Tromey <tom@tromey.com> |
3882 | ||
3883 | * gdbtypes.h (add_dyn_prop): Remove objfile parameter. | |
3884 | * gdbtypes.c (add_dyn_prop): Remove objfile parameter. | |
3885 | (create_array_type_with_stride): Update. | |
3886 | * dwarf2read.c (set_die_type): Update. | |
3887 | ||
c89b44cd TT |
3888 | 2018-01-17 Tom Tromey <tom@tromey.com> |
3889 | ||
3890 | * dwarf2read.c (delayed_method_info): Remove typedef. | |
3891 | (dwarf2_cu::method_info): Now a std::vector. | |
3892 | (add_to_method_list): Update. | |
3893 | (free_delayed_list): Remove. | |
3894 | (compute_delayed_physnames): Update. | |
3895 | (process_full_comp_unit, process_full_type_unit): Clear the method | |
3896 | list. Remove cleanups. | |
3897 | (psymtab_include_file_name): Add name_holder parameter. Use | |
3898 | unique_xmalloc_ptr. | |
3899 | (dwarf_decode_lines): Update. | |
3900 | ||
fcd3b13d SM |
3901 | 2018-01-17 Tom Tromey <tom@tromey.com> |
3902 | Simon Marchi <simon.marchi@ericsson.com> | |
3903 | ||
3904 | * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor. | |
3905 | (dwarf2_per_objfile::free_cached_comp_units) | |
3906 | (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) | |
3907 | (init_cutu_and_read_dies_no_follow): Update. | |
3908 | (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit. | |
3909 | (dwarf2_cu::~dwarf2_cu): New. | |
3910 | (free_heap_comp_unit, free_stack_comp_unit): Remove. | |
3911 | (age_cached_comp_units, free_one_cached_comp_unit): Update. | |
3912 | ||
685af9cd TT |
3913 | 2018-01-17 Tom Tromey <tom@tromey.com> |
3914 | Simon Marchi <simon.marchi@ericsson.com> | |
3915 | ||
3916 | * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove. | |
3917 | (struct die_reader_specs) <abbrev_table>: New member. | |
3918 | (struct abbrev_table): Add constructor. | |
3919 | <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare. | |
3920 | <abbrev_obstack>: Now an auto_obstack. | |
3921 | (abbrev_table_up): New typedef. | |
3922 | (init_cu_die_reader): Add abbrev_table parameter. | |
3923 | (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter. | |
3924 | Add result_dwo_abbrev_table. | |
3925 | (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) | |
3926 | (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1): | |
3927 | Update. | |
3928 | (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as | |
3929 | parameter. | |
3930 | (skip_children): Update. | |
3931 | (abbrev_table::alloc_abbrev): Rename from | |
3932 | abbrev_table_alloc_abbrev. | |
3933 | (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev. | |
3934 | (abbrev_table::lookup_abbrev): Rename from | |
3935 | abbrev_table_lookup_abbrev. | |
3936 | (abbrev_table_read_table): Return abbrev_table_up. | |
3937 | (abbrev_table_free, abbrev_table_free_cleanup) | |
3938 | (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove. | |
3939 | (load_partial_dies): Update. | |
3940 | ||
5e2db402 TT |
3941 | 2018-01-17 Tom Tromey <tom@tromey.com> |
3942 | ||
3943 | * dwarf2read.c (dwarf2_compute_name): Update comment. | |
3944 | (read_func_scope, read_variable): Update. | |
3945 | (new_symbol): Remove. | |
3946 | (new_symbol_full): Rename to new_symbol. | |
3947 | ||
ee7f689e | 3948 | 2018-01-17 Mike Gulick <mgulick@mathworks.com> |
41667530 MG |
3949 | |
3950 | PR gdb/16577 | |
3951 | * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue | |
3952 | a warning instead of throwing an error, set section size to 0 and return | |
3953 | NULL. | |
3954 | * gdb_bfd.h (gdb_bfd_map_section): Update description. | |
3955 | ||
4d9b86e1 SM |
3956 | 2018-01-17 Simon Marchi <simon.marchi@ericsson.com> |
3957 | ||
3958 | * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return | |
3959 | std::string. | |
3960 | (linux_ptrace_attach_fail_reason_string): Likewise. | |
3961 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): | |
3962 | Likewise. | |
3963 | (linux_ptrace_attach_fail_reason_string): Likewise. | |
3964 | * linux-nat.c (attach_proc_task_lwp_callback): Adjust. | |
3965 | ||
a7b2d0fb SM |
3966 | 2018-01-17 Simon Marchi <simon.marchi@ericsson.com> |
3967 | ||
3968 | * linux-nat.c (linux_nat_attach): Remove xstrdup. | |
3969 | ||
f517c180 EA |
3970 | 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com> |
3971 | ||
3972 | PR gdb/21559 | |
3973 | * configure.ac: Include <sys/types.h> prior to <sys/user.h> when | |
3974 | checking for fs_base/gs_base fields in struct user_regs_struct. | |
3975 | * configure: Regenerate. | |
3976 | ||
7045b1ca YQ |
3977 | 2018-01-17 Yao Qi <yao.qi@linaro.org> |
3978 | ||
3979 | * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New | |
3980 | function. | |
3981 | (aarch64_linux_init_abi): Install it to gdbarch hook | |
3982 | gcc_target_options. | |
3983 | ||
db422fb2 PA |
3984 | 2018-01-15 Pedro Alves <palves@redhat.com> |
3985 | ||
3986 | * common/signals-state-save-restore.c | |
3987 | (save_original_signals_state): Fix typos. | |
3988 | ||
ba643918 SDJ |
3989 | 2017-01-12 Tom Tromey <tom@tromey.com> |
3990 | Sergio Durigan Junior <sergiodj@redhat.com> | |
3991 | ||
3992 | * Makefile.in (install-only): Install gdb-add-index. | |
3993 | ||
906b4aac JB |
3994 | 2018-01-12 John Baldwin <jhb@FreeBSD.org> |
3995 | ||
3996 | * fbsd-tdep.c (KVE_PROTECTION): Correct value. | |
3997 | ||
bdf2a94a AA |
3998 | 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
3999 | ||
4000 | * infrun.c (keep_going_pass_signal): Clear step-over info when | |
4001 | insert_breakpoints fails. | |
4002 | ||
71d378ae PA |
4003 | 2018-01-11 Pedro Alves <palves@redhat.com> |
4004 | ||
4005 | PR gdb/22583 | |
4006 | * infrun.c (resume): Rename to ... | |
4007 | (resume_1): ... this. | |
4008 | (resume): Reimplement as wrapper around resume_1. | |
4009 | ||
3cada740 PA |
4010 | 2018-01-11 Pedro Alves <palves@redhat.com> |
4011 | ||
4012 | PR remote/22597 | |
4013 | * remote.c (remote_parse_stop_reply): Default to the last-set | |
4014 | general thread instead of to 'magic_null_ptid'. | |
4015 | ||
618daa93 PA |
4016 | 2018-01-10 Pedro Alves <palves@redhat.com> |
4017 | ||
4018 | * language.h (language_get_symbol_name_matcher): Rename ... | |
4019 | (get_symbol_name_matcher): ... this. | |
4020 | * language.c (language_get_symbol_name_matcher): Ditto. | |
4021 | * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All | |
4022 | callers adjusted. | |
4023 | ||
c63d3e8d PA |
4024 | 2018-01-10 Pedro Alves <palves@redhat.com> |
4025 | ||
4026 | PR gdb/22670 | |
4027 | * dwarf2read.c | |
4028 | (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher): | |
4029 | Adjust to use language_get_symbol_name_matcher instead of | |
4030 | language_defn::la_get_symbol_name_matcher. | |
4031 | * language.c (language_get_symbol_name_matcher): If in Ada mode | |
4032 | and the lookup name is a verbatim match, return Ada's matcher. | |
4033 | * language.h (language_get_symbol_name_matcher): Adjust comment. | |
4034 | (ada_lookup_name_info::verbatim_p):: New method. | |
4035 | ||
d4c2a405 PA |
4036 | 2018-01-10 Pedro Alves <palves@redhat.com> |
4037 | ||
4038 | PR gdb/22670 | |
4039 | * ada-lang.c (ada_collect_symbol_completion_matches): If the | |
4040 | minsym's language is language_auto or language_cplus, pass down | |
4041 | language_ada instead. | |
4042 | * symtab.c (compare_symbol_name): Don't frob symbol language here. | |
4043 | ||
8825213e PA |
4044 | 2018-01-10 Pedro Alves <palves@redhat.com> |
4045 | ||
4046 | PR gdb/22670 | |
4047 | * minsyms.c (linkage_name_str): New function. | |
4048 | (iterate_over_minimal_symbols): Use it. | |
4049 | ||
2d97a5d9 JB |
4050 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
4051 | ||
4052 | * NEWS: Document that 'info proc' now works on FreeBSD. | |
4053 | ||
92fce24d JB |
4054 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
4055 | ||
4056 | * configure.ac: Check for kinfo_getfile in libutil. | |
4057 | * configure: Regenerate. | |
4058 | * config.in: Regenerate. | |
4059 | * fbsd-nat.c: Include "fbsd-tdep.h". | |
4060 | (fbsd_fetch_cmdline): New. | |
4061 | (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool | |
4062 | rather than calling error. | |
4063 | (fbsd_info_proc): New. | |
4064 | (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails. | |
4065 | (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails. | |
4066 | (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc". | |
4067 | ||
262f62f5 JB |
4068 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
4069 | ||
4070 | * fbsd-nat.c (struct free_deleter): Remove. | |
4071 | (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>. | |
4072 | ||
b999e203 JB |
4073 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
4074 | ||
4075 | * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return | |
4076 | NULL for an empty pathname. | |
4077 | ||
d2176225 JB |
4078 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
4079 | ||
4080 | * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET) | |
4081 | (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ) | |
4082 | (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW) | |
4083 | (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP) | |
4084 | (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP) | |
4085 | (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD) | |
4086 | (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD) | |
4087 | (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout) | |
4088 | (kinfo_proc_layout_32, kinfo_proc_layout_i386) | |
4089 | (kinfo_proc_layout_64, fbsd_vm_map_entry_flags) | |
4090 | (fbsd_core_info_proc_mappings, fbsd_core_vnode_path) | |
4091 | (fbsd_core_fetch_timeval, fbsd_print_sigset) | |
4092 | (fbsd_core_info_proc_status, fbsd_core_info_proc): New. | |
4093 | (fbsd_init_abi): Install gdbarch "core_info_proc" method. | |
4094 | * fbsd-tdep.h (fbsd_vm_map_entry_flags): New. | |
4095 | ||
9c4ac400 ST |
4096 | 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org> |
4097 | ||
4098 | * gdb/gnu-nat.c: Include <elf.h> and <link.h>. | |
4099 | (gnu_xfer_auxv): New function. | |
4100 | (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is | |
4101 | TARGET_OBJECT_AUXV. | |
4102 | ||
1e5ded6c YQ |
4103 | 2018-01-08 Yao Qi <yao.qi@linaro.org> |
4104 | Simon Marchi <simon.marchi@ericsson.com> | |
4105 | ||
4106 | * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and | |
4107 | common/selftest.c. | |
4108 | (COMMON_OBS): Remove selftest.o. | |
4109 | * configure.ac: Append selftest-arch.c and common/selftest.c to | |
4110 | CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS. | |
4111 | * configure: Re-generated. | |
4112 | * maint.c (maintenance_selftest): Wrap selftests::run_tests with | |
4113 | GDB_SELF_TEST. | |
4114 | (maintenance_info_selftests): Likewise. | |
4115 | ||
04bafb1e XR |
4116 | 2018-01-08 Xavier Roirand <roirand@adacore.com> |
4117 | ||
4118 | * ada-valprint.c (val_print_packed_array_elements): Use | |
4119 | proper number of elements when printing an array indexed | |
4120 | by an enumeration type. | |
4121 | ||
518817b3 SM |
4122 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
4123 | ||
4124 | * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove. | |
4125 | (dw2_get_file_names_reader): Adjust. | |
4126 | (lookup_dwo_signatured_type): Adjust. | |
4127 | (lookup_dwp_signatured_type): Adjust. | |
4128 | (lookup_signatured_type): Adjust. | |
4129 | (create_type_unit_group): Adjust. | |
4130 | (get_type_unit_group): Adjust. | |
4131 | (process_psymtab_comp_unit_reader): Adjust. | |
4132 | (build_type_psymtabs_reader): Adjust. | |
4133 | (scan_partial_symbols): Adjust. | |
4134 | (add_partial_symbol): Adjust. | |
4135 | (add_partial_subprogram): Adjust. | |
4136 | (peek_die_abbrev): Adjust. | |
4137 | (fixup_go_packaging): Adjust. | |
4138 | (process_imported_unit_die): Adjust. | |
4139 | (dwarf2_compute_name): Adjust. | |
4140 | (dwarf2_physname): Adjust. | |
4141 | (read_import_statement): Adjust. | |
4142 | (handle_DW_AT_stmt_list): Adjust. | |
4143 | (read_file_scope): Adjust. | |
4144 | (read_func_scope): Adjust. | |
4145 | (read_lexical_block_scope): Adjust. | |
4146 | (read_call_site_scope): Adjust. | |
4147 | (read_variable): Adjust. | |
4148 | (dwarf2_rnglists_process): Adjust. | |
4149 | (dwarf2_ranges_process): Adjust. | |
4150 | (dwarf2_ranges_read): Adjust. | |
4151 | (dwarf2_get_pc_bounds): Adjust. | |
4152 | (dwarf2_record_block_ranges): Adjust. | |
4153 | (dwarf2_add_field): Adjust. | |
4154 | (dwarf2_add_member_fn): Adjust. | |
4155 | (read_structure_type): Adjust. | |
4156 | (process_structure_scope): Adjust. | |
4157 | (read_enumeration_type): Adjust. | |
4158 | (read_array_type): Adjust. | |
4159 | (mark_common_block_symbol_computed): Adjust. | |
4160 | (read_common_block): Adjust. | |
4161 | (read_namespace_type): Adjust. | |
4162 | (read_namespace): Adjust. | |
4163 | (read_module_type): Adjust. | |
4164 | (read_tag_pointer_type): Adjust. | |
4165 | (read_tag_ptr_to_member_type): Adjust. | |
4166 | (read_tag_string_type): Adjust. | |
4167 | (read_subroutine_type): Adjust. | |
4168 | (read_typedef): Adjust. | |
4169 | (read_base_type): Adjust. | |
4170 | (attr_to_dynamic_prop): Adjust. | |
4171 | (read_subrange_type): Adjust. | |
4172 | (read_unspecified_type): Adjust. | |
4173 | (dwarf2_read_abbrevs): Adjust. | |
4174 | (load_partial_dies): Adjust. | |
4175 | (read_partial_die): Adjust. | |
4176 | (find_partial_die): Adjust. | |
4177 | (guess_partial_die_structure_name): Adjust. | |
4178 | (fixup_partial_die): Adjust. | |
4179 | (read_attribute_value): Adjust. | |
4180 | (read_addr_index): Adjust. | |
4181 | (read_addr_index_from_leb128): Adjust. | |
4182 | (read_str_index): Adjust. | |
4183 | (dwarf2_string_attr): Adjust. | |
4184 | (get_debug_line_section): Adjust. | |
4185 | (dwarf_decode_line_header): Adjust. | |
4186 | (lnp_state_machine::check_line_address): Adjust. | |
4187 | (dwarf_decode_lines_1): Adjust. | |
4188 | (dwarf_decode_lines): Adjust. | |
4189 | (dwarf2_start_symtab): Adjust. | |
4190 | (var_decode_location): Adjust. | |
4191 | (new_symbol_full): Adjust. | |
4192 | (dwarf2_const_value_data): Adjust. | |
4193 | (dwarf2_const_value_attr): Adjust. | |
4194 | (dwarf2_const_value): Adjust. | |
4195 | (die_type): Adjust. | |
4196 | (die_containing_type): Adjust. | |
4197 | (build_error_marker_type): Adjust. | |
4198 | (lookup_die_type): Adjust. | |
4199 | (guess_full_die_structure_name): Adjust. | |
4200 | (anonymous_struct_prefix): Adjust. | |
4201 | (determine_prefix): Adjust. | |
4202 | (dwarf2_name): Adjust. | |
4203 | (follow_die_ref_or_sig): Adjust. | |
4204 | (follow_die_offset): Adjust. | |
4205 | (follow_die_ref): Adjust. | |
4206 | (follow_die_sig_1): Adjust. | |
4207 | (follow_die_sig): Adjust. | |
4208 | (get_signatured_type): Adjust. | |
4209 | (get_DW_AT_signature_type): Adjust. | |
4210 | (decode_locdesc): Adjust. | |
4211 | (dwarf_decode_macros): Adjust. | |
4212 | (cu_debug_loc_section): Adjust. | |
4213 | (fill_in_loclist_baton): Adjust. | |
4214 | (dwarf2_symbol_mark_computed): Adjust. | |
4215 | (init_one_comp_unit): Don't assign | |
4216 | dwarf2_cu::dwarf2_per_objfile. | |
4217 | (set_die_type): Adjust. | |
4218 | ||
ed2dc618 SM |
4219 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
4220 | ||
4221 | * dwarf2read.c (struct mapped_debug_names): Add constructor. | |
4222 | <dwarf2_per_objfile>: New field. | |
4223 | (dwarf2_per_objfile): Remove global. | |
4224 | (get_dwarf2_per_objfile): New function. | |
4225 | (set_dwarf2_per_objfile): New function. | |
4226 | (dwarf2_build_psymtabs_hard): Change objfile parameter to | |
4227 | dwarf2_per_objfile. | |
4228 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
4229 | (read_abbrev_offset): Likewise. | |
4230 | (read_indirect_string): Likewise. | |
4231 | (read_indirect_line_string): Likewise. | |
4232 | (read_indirect_string_at_offset): Likewise. | |
4233 | (read_indirect_string_from_dwz): Likewise. | |
4234 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
4235 | dwarf2_per_objfile. | |
4236 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
4237 | (create_all_comp_units): Change objfile parameter to | |
4238 | dwarf2_per_objfile. | |
4239 | (create_all_type_units): Likewise. | |
4240 | (process_queue): Add dwarf2_per_objfile parameter. | |
4241 | (read_and_check_comp_unit_head): Likewise. | |
4242 | (lookup_dwo_unit_in_dwp): Likewise. | |
4243 | (get_dwp_file): Likewise. | |
4244 | (process_cu_includes): Likewise. | |
4245 | (struct free_dwo_file_cleanup_data): New struct. | |
4246 | (dwarf2_has_info): Use get_dwarf2_per_objfile and | |
4247 | set_dwarf2_per_objfile. | |
4248 | (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter. | |
4249 | (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from | |
4250 | context, adjust calls. | |
4251 | (dw2_instantiate_symtab): Likewise. | |
4252 | (dw2_get_cutu): Add dwarf2_per_objfile parameter. | |
4253 | (dw2_get_cu): Likewise. | |
4254 | (create_cu_from_index_list): Change objfile parameter to | |
4255 | dwarf2_per_objfile. | |
4256 | (create_cus_from_index_list): Get dwarf2_per_objfile from | |
4257 | context, adjust calls. | |
4258 | (create_cus_from_index): Likewise. | |
4259 | (create_signatured_type_table_from_index): Change objfile | |
4260 | parameter to dwarf2_per_objfile. | |
4261 | (create_signatured_type_table_from_debug_names): Change objfile | |
4262 | parameter to dwarf2_per_objfile. | |
4263 | (create_addrmap_from_index): Likewise. | |
4264 | (create_addrmap_from_aranges): Likewise. | |
4265 | (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls. | |
4266 | (dw2_setup): Remove. | |
4267 | (dw2_get_file_names_reader): Get dwarf2_per_objfile from | |
4268 | context. | |
4269 | (dw2_find_last_source_symtab): Get dwarf2_per_objfile using | |
4270 | get_dwarf2_per_objfile. | |
4271 | (dw2_forget_cached_source_info): Likewise. | |
4272 | (dw2_map_symtabs_matching_filename): Likewise. | |
4273 | (struct dw2_symtab_iterator) <index>: Remove. | |
4274 | <dwarf2_per_objfile>: New field. | |
4275 | (dw2_symtab_iter_init): Replace index parameter with | |
4276 | dwarf2_per_objfile. | |
4277 | (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter. | |
4278 | (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust. | |
4279 | (dw2_print_stats): Likewise. | |
4280 | (dw2_dump): Likewise. | |
4281 | (dw2_expand_symtabs_for_function): Likewise. | |
4282 | (dw2_expand_all_symtabs): Likewise. | |
4283 | (dw2_expand_symtabs_with_fullname): Likewise. | |
4284 | (dw2_expand_marked_cus): Replace index and objfile parameters | |
4285 | with dwarf2_per_objfile. | |
4286 | (dw_expand_symtabs_matching_file_matcher): Add | |
4287 | dwarf2_per_objfile parameter and adjust calls. | |
4288 | (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and | |
4289 | adjust calls. | |
4290 | (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup. | |
4291 | (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and | |
4292 | adjust calls. | |
4293 | (create_cus_from_debug_names_list): Replace objfile parameter | |
4294 | with dwarf2_per_objfile and adjust calls. | |
4295 | (create_cus_from_debug_names): Likewise. | |
4296 | (dwarf2_read_debug_names): Likewise. | |
4297 | (mapped_debug_names::namei_to_name): Adjust call. | |
4298 | (dw2_debug_names_iterator::next): Likewise. | |
4299 | (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise. | |
4300 | (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile. | |
4301 | (dw2_debug_names_dump): Likewise. | |
4302 | (dw2_debug_names_expand_symtabs_for_function): Likewise. | |
4303 | (dw2_debug_names_expand_symtabs_matching): Likewise. | |
4304 | (dwarf2_initialize_objfile): Likewise. | |
4305 | (dwarf2_build_psymtabs): Likewise. | |
4306 | (get_abbrev_section_for_cu): Get dwarf2_per_objfile from | |
4307 | this_cu. | |
4308 | (error_check_comp_unit_head): Add dwarf2_per_objfile parameter. | |
4309 | (read_and_check_comp_unit_head): Likewise. | |
4310 | (read_abbrev_offset): Likewise. | |
4311 | (create_debug_type_hash_table): Likewise. | |
4312 | (create_debug_types_hash_table): Likewise. | |
4313 | (create_all_type_units): Replace objfile parameter with | |
4314 | dwarf2_per_objfile. | |
4315 | (add_type_unit): Add dwarf2_per_objfile parameter. | |
4316 | (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter | |
4317 | with dwarf2_per_objfile. | |
4318 | (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu. | |
4319 | (lookup_dwp_signatured_type): Likewise. | |
4320 | (lookup_signatured_type): Likewise. | |
4321 | (read_cutu_die_from_dwo): Likewise. | |
4322 | (init_tu_and_read_dwo_dies): Likewise. | |
4323 | (init_cutu_and_read_dies): Likewise. | |
4324 | (init_cutu_and_read_dies_no_follow): Likewise. | |
4325 | (allocate_type_unit_groups_table): Add objfile parameter. | |
4326 | (create_type_unit_group): Use dwarf2_per_objfile from cu. | |
4327 | (get_type_unit_group): Likewise. | |
4328 | (process_psymtab_comp_unit): Update call. | |
4329 | (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu. | |
4330 | (build_type_psymtabs_1): Add dwarf2_per_objfile parameter. | |
4331 | (print_tu_stats): Likewise. | |
4332 | (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed | |
4333 | in void* parameter. | |
4334 | (build_type_psymtabs): Change objfile parameter to | |
4335 | dwarf2_per_objfile. | |
4336 | (process_skeletonless_type_unit): Use dwarf2_per_objfile | |
4337 | passed in void* parameter. | |
4338 | (process_skeletonless_type_units): Change objfile parameter to | |
4339 | dwarf2_per_objfile. | |
4340 | (set_partial_user): Likewise. | |
4341 | (dwarf2_build_psymtabs_hard): Likewise. | |
4342 | (read_comp_units_from_section): Likewise. | |
4343 | (create_all_comp_units): Likewise. | |
4344 | (scan_partial_symbols): Update calls. | |
4345 | (add_partial_symbol): Likewise. | |
4346 | (dwarf2_read_symtab): Use get_dwarf2_per_objfile. | |
4347 | (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu. | |
4348 | (process_queue): Add dwarf2_per_objfile parameter. | |
4349 | (get_compunit_symtab): Use dwarf2_per_objfile from cu. | |
4350 | (compute_compunit_symtab_includes): Likewise. | |
4351 | (process_cu_includes): Add dwarf2_per_objfile parameter. | |
4352 | (process_full_comp_unit): Use dwarf2_per_objfile from cu. | |
4353 | (process_full_type_unit): Likewise. | |
4354 | (process_imported_unit_die): Update call. | |
4355 | (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu. | |
4356 | (read_file_scope): Likewise. | |
4357 | (allocate_dwo_file_hash_table): Add objfile parameter. | |
4358 | (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter. | |
4359 | (create_cus_hash_table): Likewise. | |
4360 | (create_dwp_hash_table): Likewise. | |
4361 | (create_dwo_unit_in_dwp_v1): Likewise. | |
4362 | (create_dwp_v2_section): Likewise. | |
4363 | (create_dwo_unit_in_dwp_v2): Likewise. | |
4364 | (lookup_dwo_unit_in_dwp): Likewise. | |
4365 | (try_open_dwop_file): Likewise. | |
4366 | (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu. | |
4367 | (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update | |
4368 | cleanup to include a reference to dwarf2_per_objfile. | |
4369 | (open_dwp_file): Add dwarf2_per_objfile parameter. | |
4370 | (open_and_init_dwp_file): Likewise. | |
4371 | (get_dwp_file): Likewise. | |
4372 | (lookup_dwo_cutu): Use dwarf2_per_objfile from cu. | |
4373 | (queue_and_load_all_dwo_tus): Update call. | |
4374 | (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup | |
4375 | data. | |
4376 | (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu. | |
4377 | (dwarf2_ranges_process): Likewise. | |
4378 | (dwarf2_get_pc_bounds): Likewise. | |
4379 | (mark_common_block_symbol_computed): Likewise. | |
4380 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
4381 | (dwarf2_read_abbrevs): Update call. | |
4382 | (read_partial_die): Use dwarf2_per_objfile from cu. | |
4383 | (find_partial_die): Likewise. | |
4384 | (fixup_partial_die): Likewise. | |
4385 | (read_attribute_value): Likewise. | |
4386 | (read_indirect_string_at_offset_from): Add objfile parameter. | |
4387 | (read_indirect_string_at_offset): Add dwarf2_per_objfile | |
4388 | parameter. | |
4389 | (read_indirect_string_from_dwz): Add objfile parameter. | |
4390 | (read_indirect_string): Add objfile parameter. | |
4391 | (read_addr_index_1): Add dwarf2_per_objfile parameter. | |
4392 | (read_addr_index): Use dwarf2_per_objfile from cu. | |
4393 | (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't | |
4394 | call dw2_setup. | |
4395 | (read_str_index): Use dwarf2_per_objfile from cu. | |
4396 | (get_debug_line_section): Likewise. | |
4397 | (read_formatted_entries): Add dwarf2_per_objfile parameter. | |
4398 | (dwarf_decode_line_header): Use dwarf2_per_objfile from cu. | |
4399 | (new_symbol_full): Use dwarf2_per_objfile from cu. | |
4400 | (build_error_marker_type): Likewise. | |
4401 | (lookup_die_type): Likewise. | |
4402 | (determine_prefix): Likewise. | |
4403 | (follow_die_offset): Likewise. | |
4404 | (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile. | |
4405 | (dwarf2_fetch_constant_bytes): Don't call dw2_setup. | |
4406 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
4407 | (dwarf2_get_die_type): Likewise. | |
4408 | (follow_die_sig_1): Use dwarf2_per_objfile from cu. | |
4409 | (get_signatured_type): Likewise. | |
4410 | (get_DW_AT_signature_type): Likewise. | |
4411 | (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter. | |
4412 | (dwarf_decode_macros): Use dwarf2_per_objfile from cu. | |
4413 | (cu_debug_loc_section): Likewise. | |
4414 | (fill_in_loclist_baton): Likewise. | |
4415 | (dwarf2_symbol_mark_computed): Likewise. | |
4416 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
4417 | dwarf2_per_objfile. | |
4418 | (free_cached_comp_units): Use dwarf2_per_objfile passed in void* | |
4419 | parameter. | |
4420 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
4421 | (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu. | |
4422 | (dwarf2_free_objfile): Use get_dwarf2_per_objfile. | |
4423 | (set_die_type): Use dwarf2_free_objfile from cu. | |
4424 | (get_die_type_at_offset): Likewise. | |
4425 | (dwarf2_per_objfile_free): Don't assign global variable. | |
4426 | (debug_names) <constructor>: Add dwarf2_per_objfile | |
4427 | parameter, update m_debugstrlookup construction. | |
4428 | (debug_names::debug_str_lookup): Add dwarf2_per_objfile | |
4429 | parameter. | |
4430 | <m_dwarf2_per_objfile>: New field. | |
4431 | <lookup>: Use m_dwarf2_per_objfile. | |
4432 | (check_dwarf64_offsets): Add dwarf2_per_objfile parameter. | |
4433 | (psyms_seen_size): Likewise. | |
4434 | (write_gdbindex): Replace objfile parameter with | |
4435 | dwarf2_per_objfile. | |
4436 | (write_debug_names): Likewise. | |
4437 | (write_psymtabs_to_index): Likewise. | |
4438 | (save_gdb_index_command): Use get_dwarf2_per_objfile, update | |
4439 | calls. | |
4440 | ||
e3b94546 SM |
4441 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
4442 | ||
4443 | * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove. | |
4444 | <dwarf2_per_objfile>: New field. | |
4445 | (struct dwarf2_per_cu_data) <objfile>: Remove. | |
4446 | <dwarf2_per_objfile>: New field. | |
4447 | (create_cu_from_index_list): Assign dwarf2_per_objfile instead | |
4448 | of objfile. | |
4449 | (create_signatured_type_table_from_index): Likewise. | |
4450 | (create_debug_type_hash_table): Likewise. | |
4451 | (fill_in_sig_entry_from_dwo_entry): Likewise. | |
4452 | (lookup_dwo_unit): Access objfile through dwarf2_per_objfile. | |
4453 | (create_type_unit_group): Assign dwarf2_per_objfile instead of | |
4454 | objfile. | |
4455 | (create_partial_symtab): Access objfile through | |
4456 | dwarf2_per_objfile. | |
4457 | (process_psymtab_comp_unit_reader): Likewise. | |
4458 | (read_comp_units_from_section): Likewise. | |
4459 | (scan_partial_symbols): Likewise. | |
4460 | (add_partial_symbol): Likewise. | |
4461 | (add_partial_subprogram): Likewise. | |
4462 | (peek_die_abbrev): Likewise. | |
4463 | (fixup_go_packaging): Likewise. | |
4464 | (process_full_comp_unit): Likewise. | |
4465 | (process_full_type_unit): Likewise. | |
4466 | (process_imported_unit_die): Likewise. | |
4467 | (dwarf2_compute_name): Likewise. | |
4468 | (dwarf2_physname): Likewise. | |
4469 | (read_import_statement): Likewise. | |
4470 | (create_cus_hash_table): Assign dwarf2_physname instead of | |
4471 | objfile. | |
4472 | (read_func_scope): Access objfile through dwarf2_per_objfile. | |
4473 | (read_lexical_block_scope): Likewise. | |
4474 | (read_call_site_scope): Likewise. | |
4475 | (read_variable): Likewise. | |
4476 | (dwarf2_rnglists_process): Likewise. | |
4477 | (dwarf2_ranges_process): Likewise. | |
4478 | (dwarf2_ranges_read): Likewise. | |
4479 | (dwarf2_record_block_ranges): Likewise. | |
4480 | (dwarf2_add_field): Likewise. | |
4481 | (dwarf2_add_member_fn): Likewise. | |
4482 | (read_structure_type): Likewise. | |
4483 | (process_structure_scope): Likewise. | |
4484 | (read_enumeration_type): Likewise. | |
4485 | (read_array_type): Likewise. | |
4486 | (read_common_block): Likewise. | |
4487 | (read_namespace_type): Likewise. | |
4488 | (read_namespace): Likewise. | |
4489 | (read_module_type): Likewise. | |
4490 | (read_tag_pointer_type): Likewise. | |
4491 | (read_tag_ptr_to_member_type): Likewise. | |
4492 | (read_tag_string_type): Likewise. | |
4493 | (read_subroutine_type): Likewise. | |
4494 | (read_typedef): Likewise. | |
4495 | (read_base_type): Likewise. | |
4496 | (attr_to_dynamic_prop): Likewise. | |
4497 | (read_subrange_type): Likewise. | |
4498 | (read_unspecified_type): Likewise. | |
4499 | (load_partial_dies): Likewise. | |
4500 | (read_partial_die): Likewise. | |
4501 | (find_partial_die): Likewise. | |
4502 | (guess_partial_die_structure_name): Likewise. | |
4503 | (fixup_partial_die): Likewise. | |
4504 | (read_attribute_value): Likewise. | |
4505 | (read_addr_index_from_leb128): Likewise. | |
4506 | (dwarf2_read_addr_index): Likewise. | |
4507 | (dwarf2_string_attr): Likewise. | |
4508 | (lnp_state_machine::check_line_address): Likewise. | |
4509 | (dwarf_decode_lines_1): Likewise. | |
4510 | (dwarf_decode_lines): Likewise. | |
4511 | (dwarf2_start_symtab): Likewise. | |
4512 | (var_decode_location): Likewise. | |
4513 | (new_symbol_full): Likewise. | |
4514 | (dwarf2_const_value_data): Likewise. | |
4515 | (dwarf2_const_value_attr): Likewise. | |
4516 | (dwarf2_const_value): Likewise. | |
4517 | (die_type): Likewise. | |
4518 | (die_containing_type): Likewise. | |
4519 | (lookup_die_type): Likewise. | |
4520 | (guess_full_die_structure_name): Likewise. | |
4521 | (anonymous_struct_prefix): Likewise. | |
4522 | (dwarf2_name): Likewise. | |
4523 | (follow_die_ref_or_sig): Likewise. | |
4524 | (follow_die_offset): Likewise. | |
4525 | (follow_die_ref): Likewise. | |
4526 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
4527 | (dwarf2_fetch_constant_bytes): Likewise. | |
4528 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
4529 | (dwarf2_get_die_type): Likewise. | |
4530 | (follow_die_sig): Likewise. | |
4531 | (decode_locdesc): Likewise. | |
4532 | (dwarf2_per_cu_objfile): Likewise. | |
4533 | (dwarf2_per_cu_text_offset): Likewise. | |
4534 | (init_one_comp_unit): Assign dwarf2_per_objfile instead of | |
4535 | objfile. | |
4536 | (set_die_type): Access objfile through | |
4537 | dwarf2_per_objfile. | |
4538 | ||
b01ba14d SM |
4539 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
4540 | ||
4541 | * valprint.c (converted_character_d): Remove typedef. | |
4542 | (DEF_VEC_O (converted_character_d)): Remove. | |
4543 | (count_next_character): Use std::vector. | |
4544 | (print_converted_chars_to_obstack): Likewise. | |
4545 | (generic_printstr): Likewise. | |
4546 | ||
4d0fdd9b SM |
4547 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
4548 | ||
4549 | * xml-support.h (struct gdb_xml_value): Add constructor. | |
4550 | <value>: Change type to unique_xmalloc_ptr. | |
4551 | (gdb_xml_value_s): Remove typedef. | |
4552 | (DEF_VEC_O (gdb_xml_value_s)): Remove. | |
4553 | (gdb_xml_element_start_handler): Change parameter type to | |
4554 | std::vector. | |
4555 | (xml_find_attribute): Likewise. | |
4556 | * xml-support.c (xml_find_attribute): Change parameter type to | |
4557 | std::vector and adjust. | |
4558 | (gdb_xml_values_cleanup): Remove. | |
4559 | (gdb_xml_parser::start_element): Adjust to std::vector. | |
4560 | (xinclude_start_include): Change paraeter type to std::vector | |
4561 | and adjust. | |
4562 | * btrace.c (check_xml_btrace_version): Likewise. | |
4563 | (parse_xml_btrace_block): Likewise. | |
4564 | (parse_xml_btrace_pt_config_cpu): Likewise. | |
4565 | (parse_xml_btrace_pt): Likewise. | |
4566 | (parse_xml_btrace_conf_bts): Likewise. | |
4567 | (parse_xml_btrace_conf_pt): Likewise. | |
4568 | * memory-map.c (memory_map_start_memory): Likewise. | |
4569 | (memory_map_start_property): Likewise. | |
4570 | * osdata.c (osdata_start_osdata): Likewise. | |
4571 | (osdata_start_item): Likewise. | |
4572 | (osdata_start_column): Likewise. | |
4573 | * remote.c (start_thread): Likewise. | |
4574 | * solib-aix.c (library_list_start_library): Likewise. | |
4575 | (library_list_start_list): Likewise. | |
4576 | * solib-svr4.c (library_list_start_library): Likewise. | |
4577 | (svr4_library_list_start_list): Likewise. | |
4578 | * solib-target.c (library_list_start_segment): Likewise. | |
4579 | (library_list_start_section): Likewise. | |
4580 | (library_list_start_library): Likewise. | |
4581 | (library_list_start_list): Likewise. | |
4582 | * tracepoint.c (traceframe_info_start_memory): Likewise. | |
4583 | (traceframe_info_start_tvar): Likewise. | |
4584 | * xml-syscall.c (syscall_start_syscall): Likewise. | |
4585 | * xml-tdesc.c (tdesc_start_target): Likewise. | |
4586 | (tdesc_start_feature): Likewise. | |
4587 | (tdesc_start_reg): Likewise. | |
4588 | (tdesc_start_union): Likewise. | |
4589 | (tdesc_start_struct): Likewise. | |
4590 | (tdesc_start_flags): Likewise. | |
4591 | (tdesc_start_enum): Likewise. | |
4592 | (tdesc_start_field): Likewise. | |
4593 | (tdesc_start_enum_value): Likewise. | |
4594 | (tdesc_start_vector): Likewise. | |
4595 | ||
f979c73f SM |
4596 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
4597 | ||
4598 | * extension.h (struct xmethod_worker) <clone>: Remove. | |
4599 | * python/py-xmethods.c (struct python_xmethod_worker) <clone>: | |
4600 | Remove. | |
4601 | (python_xmethod_worker::clone): Remove. | |
4602 | * valops.c (find_overload_match): Use std::move instead of | |
4603 | clone. | |
4604 | ||
ba18742c SM |
4605 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
4606 | ||
4607 | * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h. | |
4608 | (struct extension_language_ops) <clone_xmethod_worker_data>: Remove. | |
4609 | <free_xmethod_worker_data>: Remove. | |
4610 | <get_matching_xmethod_workers>: Chance VEC to std::vector. | |
4611 | <get_xmethod_arg_types>: Remove. | |
4612 | <get_xmethod_result_type>: Remove. | |
4613 | <invoke_xmethod>: Remove. | |
4614 | * extension.c (new_xmethod_worker): Remove. | |
4615 | (clone_xmethod_worker): Remove. | |
4616 | (get_matching_xmethod_workers): Return void, pass std::vector by | |
4617 | pointer. | |
4618 | (get_xmethod_arg_types): Rename to... | |
4619 | (xmethod_worker::get_arg_types): ... this, and adjust. | |
4620 | (get_xmethod_result_type): Rename to... | |
4621 | (xmethod_worker::get_result_type): ... this, and adjust. | |
4622 | (invoke_xmethod): Remove. | |
4623 | (free_xmethod_worker): Remove. | |
4624 | (free_xmethod_worker_vec): Remove. | |
4625 | * extension.h (enum ext_lang_rc): Move here from | |
4626 | extension-priv.h. | |
4627 | (struct xmethod_worker): Add constructor and destructor. | |
4628 | <data>: Remove. | |
4629 | <value>: Remove. | |
4630 | <invoke, clone, do_get_result_type, do_get_arg_types>: New | |
4631 | virtual pure methods. | |
4632 | <get_arg_types, get_result_type>: New methods. | |
4633 | (xmethod_worker_ptr): Remove typedef. | |
4634 | (DEF_VEC_P (xmethod_worker_ptr)): Remove. | |
4635 | (xmethod_worker_vec): Remove typedef. | |
4636 | (xmethod_worker_up): New typedef. | |
4637 | (invoke_xmethod): Remove. | |
4638 | (clone_xmethod_worker): Remove. | |
4639 | (free_xmethod_worker): Remove. | |
4640 | (free_xmethod_worker_vec): Remove. | |
4641 | (get_xmethod_arg_types): Remove. | |
4642 | (get_xmethod_result_type): Remove. | |
4643 | * valops.c (find_method_list): Use std::vector, don't use | |
4644 | intermediate vector. | |
4645 | (value_find_oload_method_list): Use std::vector. | |
4646 | (find_overload_match): Use std::vector. | |
4647 | (find_oload_champ): Use std::vector. | |
4648 | * value.c (value_free): Use operator delete. | |
4649 | (value_of_xmethod): Rename to... | |
4650 | (value_from_xmethod): ... this. Don't assign | |
4651 | xmethod_worker::value, take rvalue-reference. | |
4652 | (result_type_of_xmethod): Adjust. | |
4653 | (call_xmethod): Adjust. | |
4654 | * value.h: Include extension.h. | |
4655 | (struct xmethod_worker): Don't forward-declare. | |
4656 | (value_of_xmethod): Rename to... | |
4657 | (value_from_xmethod): ... this, take rvalue-reference. | |
4658 | * python/py-xmethods.c (struct gdbpy_worker_data): Rename to... | |
4659 | (struct python_xmethod_worker): ... this, add constructor and | |
4660 | destructor. | |
4661 | <invoke, clone, do_get_arg_types, do_get_result_type>: Implement. | |
4662 | (gdbpy_free_xmethod_worker_data): Rename to... | |
4663 | (python_xmethod_worker::~python_xmethod_worker): ... this and | |
4664 | adjust. | |
4665 | (gdbpy_clone_xmethod_worker_data): Rename to... | |
4666 | (python_xmethod_worker::clone): ... this and adjust. | |
4667 | (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use | |
4668 | temporary vector. | |
4669 | (gdbpy_get_xmethod_arg_types): Rename to... | |
4670 | (python_xmethod_worker::do_get_arg_types): ... this and adjust. | |
4671 | (gdbpy_get_xmethod_result_type): Rename to... | |
4672 | (python_xmethod_worker::do_get_result_type): ... this and | |
4673 | adjust. | |
4674 | (gdbpy_invoke_xmethod): Rename to... | |
4675 | (python_xmethod_worker::invoke): ... this and adjust. | |
4676 | (new_python_xmethod_worker): Rename to... | |
4677 | (python_xmethod_worker::python_xmethod_worker): ... this and | |
4678 | adjust. | |
4679 | * python/python-internal.h (gdbpy_clone_xmethod_worker_data): | |
4680 | Remove. | |
4681 | (gdbpy_free_xmethod_worker_data): Remove. | |
4682 | (gdbpy_get_matching_xmethod_workers): Use std::vector. | |
4683 | (gdbpy_get_xmethod_arg_types): Remove. | |
4684 | (gdbpy_get_xmethod_result_type): Remove. | |
4685 | (gdbpy_invoke_xmethod): Remove. | |
4686 | * python/python.c (python_extension_ops): Remove obsolete | |
4687 | callbacks. | |
4688 | ||
e379cee6 PA |
4689 | 2018-01-05 Pedro Alves <palves@redhat.com> |
4690 | ||
4691 | PR gdb/18653 | |
4692 | * common/signals-state-save-restore.c | |
4693 | (save_original_signals_state): New parameter 'quiet'. Warn if we | |
4694 | find a custom handler preinstalled, instead of internal erroring. | |
4695 | But only warn if !quiet. | |
4696 | * common/signals-state-save-restore.h | |
4697 | (save_original_signals_state): New parameter 'quiet'. | |
4698 | * main.c (captured_main_1): Move save_original_signals_state call | |
4699 | after option handling, and pass QUIET. | |
4700 | ||
a655456c PA |
4701 | 2018-01-05 Pedro Alves <palves@redhat.com> |
4702 | ||
4703 | * spu-tdep.c (spu_catch_start): Pass | |
4704 | symbol_name_match_type::SEARCH_NAME to block_lookup_symbol. | |
4705 | ||
de63c46b PA |
4706 | 2018-01-05 Pedro Alves <palves@redhat.com> |
4707 | ||
4708 | PR gdb/22670 | |
4709 | * ada-lang.c (literal_symbol_name_matcher): New function. | |
4710 | (ada_get_symbol_name_matcher): Use it for | |
4711 | symbol_name_match_type::SEARCH_NAME. | |
4712 | * block.c (block_lookup_symbol): New parameter 'match_type'. Pass | |
4713 | it down instead of assuming symbol_name_match_type::FULL. | |
4714 | * block.h (block_lookup_symbol): New parameter 'match_type'. | |
4715 | * c-valprint.c (print_unpacked_pointer): Use | |
4716 | lookup_symbol_search_name instead of lookup_symbol. | |
4717 | * compile/compile-object-load.c (get_out_value_type): Pass down | |
4718 | symbol_name_match_type::SEARCH_NAME. | |
4719 | * cp-namespace.c (cp_basic_lookup_symbol): Pass down | |
4720 | symbol_name_match_type::FULL. | |
4721 | * cp-support.c (cp_get_symbol_name_matcher): Handle | |
4722 | symbol_name_match_type::SEARCH_NAME. | |
4723 | * infrun.c (insert_exception_resume_breakpoint): Use | |
4724 | lookup_symbol_search_name. | |
4725 | * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name. | |
4726 | * psymtab.c (maintenance_check_psymtabs): Use | |
4727 | symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME. | |
4728 | * stack.c (print_frame_args): Use lookup_symbol_search_name and | |
4729 | SYMBOL_SEARCH_NAME. | |
4730 | * symtab.c (lookup_local_symbol): Don't demangle the lookup name | |
4731 | if symbol_name_match_type::SEARCH_NAME. | |
4732 | (lookup_symbol_in_language): Pass down | |
4733 | symbol_name_match_type::FULL. | |
4734 | (lookup_symbol_search_name): New. | |
4735 | (lookup_language_this): Pass down | |
4736 | symbol_name_match_type::SEARCH_NAME. | |
4737 | (lookup_symbol_aux, lookup_local_symbol): New parameter | |
4738 | 'match_type'. Pass it down. | |
4739 | * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator. | |
4740 | (lookup_symbol_search_name): New declaration. | |
4741 | (lookup_symbol_in_block): New 'match_type' parameter. | |
4742 | ||
f98fc17b PA |
4743 | 2018-01-05 Pedro Alves <palves@redhat.com> |
4744 | ||
4745 | PR gdb/22670 | |
4746 | * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of | |
4747 | ada_lookup_symbol. | |
4748 | (ada_lookup_symbol): Reimplement in terms of | |
4749 | ada_lookup_symbol_list, bits factored out from | |
4750 | ada_lookup_encoded_symbol. | |
4751 | ||
342f8240 JB |
4752 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
4753 | ||
4754 | * ada-exp.y (write_object_renaming): When subscripting an array | |
4755 | using a symbol as the index, pass the block in call to | |
4756 | ada_lookup_encoded_symbol when looking that symbol up. | |
4757 | ||
7150d33c JG |
4758 | 2018-01-05 Jerome Guitton <guitton@adacore.com> |
4759 | ||
4760 | * ada-lang.c (ada_array_length): Use ada_index_type instead of | |
4761 | TYPE_INDEX_TYPE. | |
4762 | ||
cc0e770c JB |
4763 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
4764 | ||
4765 | * ada-lang.c (ada_to_fixed_value_create): Add handling of | |
4766 | the case where VALUE_LVAL (val0) is not lval_memory. | |
4767 | ||
f79da888 | 4768 | 2018-01-05 Xavier Roirand <roirand@adacore.com> |
e3861a03 XR |
4769 | |
4770 | * ada-valprint.c (print_optional_low_bound): Handle | |
4771 | character-indexed array printing like boolean-indexed array | |
4772 | printing. | |
4773 | ||
cd385f94 JB |
4774 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
4775 | ||
4776 | * NEWS: Create a new section for the next release branch. | |
4777 | Rename the section of the current branch, now that it has | |
4778 | been cut. | |
4779 | ||
09aca949 JB |
4780 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
4781 | ||
4782 | GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7): | |
4783 | * version.in: Bump version to 8.1.50.DATE-git. | |
4784 | ||
9f757bf7 XR |
4785 | 2018-01-03 Xavier Roirand <roirand@adacore.com> |
4786 | ||
4787 | * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>: | |
4788 | Add field. | |
4789 | * ada-lang.c (struct exception_support_info) <catch_handlers_sym>: | |
4790 | Add field. | |
4791 | (default_exception_support_info) <catch_handlers_sym>: Add field. | |
4792 | (exception_support_info_fallback) <catch_handlers_sym>: Add field. | |
4793 | (ada_exception_name_addr_1): Add "catch handlers" handling. | |
4794 | (ada_exception_catchpoint_cond_string) <ex>: New parameter. | |
4795 | Update all callers. | |
4796 | (create_excep_cond_exprs) <ex>: Add parameter. | |
4797 | (re_set_exception): Update create_excep_cond_exprs call. | |
4798 | (print_it_exception, print_one_exception, print_mention_exception) | |
4799 | (print_recreate_exception): Add "catch handler" handling. | |
4800 | (allocate_location_catch_handlers, re_set_catch_handlers) | |
4801 | (check_status_catch_handlers, print_it_catch_handlers) | |
4802 | (print_one_catch_handlers, print_mention_catch_handlers) | |
4803 | (print_recreate_catch_handlers): New function. | |
4804 | (catch_handlers_breakpoint_ops): New variable. | |
4805 | (catch_ada_exception_command_split) <is_catch_handlers_cmd>: | |
4806 | Add parameter. Add "catch handler" handling. | |
4807 | (ada_exception_sym_name, ada_exception_breakpoint_ops): | |
4808 | Add "catch handler" handling. | |
4809 | (ada_exception_catchpoint_cond_string): Add "catch handler" | |
4810 | handling. | |
4811 | (create_ada_exception_catchpoint): Update create_excep_cond_exprs | |
4812 | call. | |
4813 | (catch_ada_handlers_command): New function. | |
4814 | (initialize_ada_catchpoint_ops): Initialize "catch handlers" | |
4815 | operations structure. | |
4816 | (_initialize_ada_language): Add "catch handlers" command entry. | |
4817 | * NEWS: Document "catch handlers" feature. | |
4818 | ||
9fe561ab JB |
4819 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
4820 | ||
4821 | * ada-lang.c (ada_value_slice_from_ptr): Take array stride into | |
4822 | account when creating the array type of the slice. | |
4823 | (ada_value_slice): Likewise. | |
4824 | ||
a405673c JB |
4825 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
4826 | ||
4827 | * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>: | |
4828 | New enum value. | |
4829 | (create_array_type_with_stride): Add byte_stride_prop parameter. | |
4830 | * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>: | |
4831 | New parameter. Update all callers in this file. | |
4832 | (array_type_has_dynamic_stride): New function. | |
4833 | (is_dynamic_type_internal, resolve_dynamic_array): Add handling | |
4834 | of arrays with dynamic byte strides. | |
4835 | * dwarf2read.c (read_array_type): Add support for dynamic | |
4836 | DW_AT_byte_stride attributes. | |
4837 | ||
74a2f8ff JB |
4838 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
4839 | ||
4840 | * dwarf2read.c (read_unspecified_type): Treat | |
4841 | DW_TAG_enumeration_type DIEs from Ada units as stubs. | |
4842 | ||
e2882c85 JB |
4843 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
4844 | ||
4845 | Update copyright year range in all GDB files. | |
4846 | ||
1690bb24 JB |
4847 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
4848 | ||
4849 | * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp | |
4850 | and gdb/testsuite/gdb.base/step-line.c. | |
4851 | ||
0f0c98a8 JB |
4852 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
4853 | ||
4854 | * copyright.py (main): Dump the contents of | |
4855 | MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND, | |
4856 | even if BY_HAND is empty. | |
4857 | ||
82e1e79a JB |
4858 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
4859 | ||
4860 | * top.c (print_gdb_version): Update Copyright year in version | |
4861 | message. | |
4862 | ||
053f54e5 | 4863 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
47fea877 | 4864 | |
053f54e5 | 4865 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017. |
47fea877 | 4866 | |
053f54e5 | 4867 | For older changes see ChangeLog-2017. |
c906108c SS |
4868 | \f |
4869 | Local Variables: | |
4870 | mode: change-log | |
4871 | left-margin: 8 | |
4872 | fill-column: 74 | |
4873 | version-control: never | |
57da7796 | 4874 | coding: utf-8 |
c906108c | 4875 | End: |