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