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