Commit | Line | Data |
---|---|---|
96a5a1d3 UW |
1 | 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
2 | ||
3 | * arm-tdep.c: (convert_from_extended): Remove. | |
4 | (convert_to_extended): Likewise. | |
5 | (arm_extract_return_value): Use convert_typed_floating. | |
6 | (arm_store_return_value): Likewise. | |
7 | ||
8 | * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type. | |
9 | * sh-tdep.c: Do not include "floatformat.h". | |
10 | (sh_littlebyte_bigword_type): New function. | |
11 | (sh_register_convert_to_virtual): Use convert_typed_floating. | |
12 | (sh_register_convert_to_raw): Likewise. | |
13 | * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type. | |
14 | (sh64_littlebyte_bigword_type): New function. | |
15 | (sh64_extract_return_value): Use convert_typed_floating. | |
16 | (sh64_register_convert_to_virtual): Likewise. | |
17 | (sh64_register_convert_to_raw): Likewise. | |
18 | ||
0db7851f UW |
19 | 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
20 | ||
21 | * doublest.h (floatformat_from_type): Move to gdbtypes.h. | |
22 | * doublest.c (floatformat_from_type): Move to gdbtypes.c. | |
23 | ||
24 | * gdbtypes.h (union type_specific): Make field floatformat hold | |
25 | just a single struct floatformat, not an array. | |
26 | (floatformat_from_type): Move here. | |
27 | * gdbtypes.c (floatformat_from_type): Move here. Update to | |
28 | changed TYPE_FLOATFORMAT definition. | |
29 | (verify_floatformat): Update to changed TYPE_FLOATFORMAT. | |
30 | (recursive_dump_type): Likewise. | |
31 | (init_float_type): Install correct floatformat for byte order. | |
32 | (arch_float_type): Likewise. | |
33 | ||
77b7c781 UW |
34 | 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
35 | ||
36 | * gdbtypes.c (init_type): Change incoming argument from | |
37 | length-in-bytes to length-in-bits. Assert length is a | |
38 | multiple of TARGET_CHAR_BITS. | |
39 | (arch_type, arch_flags_type): Likewise. | |
40 | (init_integer_type): Update call to init_type. | |
41 | (init_character_type): Likewise. | |
42 | (init_boolean_type): Likewise. | |
43 | (init_float_type): Likewise. | |
44 | (init_decfloat_type): Likewise. | |
45 | (init_complex_type): Likewise. | |
46 | (init_pointer_type): Likewise. | |
47 | (objfile_type): Likewise. | |
48 | (arch_integer_type): Update call to arch_type. | |
49 | (arch_character_type): Likewise. | |
50 | (arch_boolean_type): Likewise. | |
51 | (arch_float_type): Likewise. | |
52 | (arch_decfloat_type): Likewise. | |
53 | (arch_complex_type): Likewise. | |
54 | (arch_pointer_type): Likewise. | |
55 | (gdbtypes_post_init): Likewise. | |
56 | ||
57 | * dwarf2read.c (dwarf2_init_float_type): Update call to init_type. | |
58 | (read_base_type): Likewise. | |
59 | * mdebugread.c (basic_type): Likewise. | |
60 | * stabsread.c (dbx_init_float_type): Likewise. | |
61 | (rs6000_builtin_type): Likewise. | |
62 | (read_range_type): Likewise. Also, fix call to init_integer_type | |
63 | with erroneous length argument. | |
64 | ||
65 | * ada-lang.c (ada_language_arch_info): Update call to arch_type. | |
66 | * d-lang.c (build_d_types): Likewise. | |
67 | * f-lang.c (build_fortran_types): Likewise. | |
68 | * go-lang.c (build_go_types): Likewise. | |
69 | * opencl-lang.c (build_opencl_types): Likewise. | |
70 | * jit.c (finalize_symtab): Likewise. | |
71 | * gnu-v3-abi.c (build_gdb_vtable_type): Likewise. | |
72 | (build_std_type_info_type): Likewise. | |
73 | * target-descriptions.c (tdesc_gdb_type): Likewise. Also, | |
74 | update call to arch_flags_type. | |
75 | ||
76 | * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to | |
77 | arch_type. | |
78 | * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise. | |
79 | * windows-tdep.c (windows_get_tlb_type): Likewise. | |
80 | ||
81 | * avr-tdep.c (avr_gdbarch_init): Update call to arch_type. | |
82 | * ft32-tdep.c (ft32_gdbarch_init): Likewise. | |
83 | * m32c-tdep.c (make_types): Likewise. | |
84 | * rl78-tdep.c (rl78_gdbarch_init): Likewise. | |
85 | (rl78_psw_type): Update call to arch_flags_type. | |
86 | * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type. | |
87 | * rx-tdep.c (rx_psw_type): Likewise. | |
88 | (rx_fpsw_type): Likewise. | |
89 | * sparc-tdep.c (sparc_psr_type): Likewise. | |
90 | (sparc_fsr_type): Likewise. | |
91 | * sparc64-tdep.c (sparc64_pstate_type): Likewise. | |
92 | (sparc64_ccr_type): Likewise. | |
93 | (sparc64_fsr_type): Likewise. | |
94 | (sparc64_fprs_type): Likewise. | |
95 | ||
f21b4d5c TT |
96 | 2017-09-27 Tom Tromey <tom@tromey.com> |
97 | ||
98 | * findcmd.c (find_command): Constify. | |
99 | ||
643c2ffa TT |
100 | 2017-09-27 Tom Tromey <tom@tromey.com> |
101 | ||
102 | * ada-tasks.c (task_command_1, task_command): Constify. | |
103 | ||
510e5e56 TT |
104 | 2017-09-27 Tom Tromey <tom@tromey.com> |
105 | ||
106 | * symtab.c (maintenance_print_symbol_cache) | |
107 | (maintenance_flush_symbol_cache) | |
108 | (maintenance_print_symbol_cache_statistics): Constify. | |
109 | ||
e503b191 TT |
110 | 2017-09-27 Tom Tromey <tom@tromey.com> |
111 | ||
112 | * inferior.c (detach_inferior_command, kill_inferior_command) | |
113 | (inferior_command): Constify. | |
114 | ||
4e001312 TT |
115 | 2017-09-27 Tom Tromey <tom@tromey.com> |
116 | ||
117 | * regcache.c (regcache_print, maintenance_print_registers) | |
118 | (maintenance_print_raw_registers) | |
119 | (maintenance_print_cooked_registers) | |
120 | (maintenance_print_register_groups) | |
121 | (maintenance_print_remote_registers): Constify. | |
122 | ||
77763700 TT |
123 | 2017-09-27 Tom Tromey <tom@tromey.com> |
124 | ||
125 | * printcmd.c (map_display_numbers, undisplay_command) | |
126 | (enable_disable_display_command, enable_display_command) | |
127 | (disable_display_command): Constify. | |
128 | ||
4495129a TT |
129 | 2017-09-27 Tom Tromey <tom@tromey.com> |
130 | ||
131 | * breakpoint.h (delete_command): Don't declare. | |
132 | * breakpoint.c (delete_command, enable_once_command) | |
133 | (enable_count_command, enable_delete_command, breakpoint_1) | |
134 | (maintenance_info_breakpoints, stopin_command, stopat_command) | |
135 | (delete_command, delete_trace_command, save_breakpoints) | |
136 | (save_breakpoints_command, save_tracepoints_command): Constify. | |
137 | ||
3088cf40 TT |
138 | 2017-09-27 Tom Tromey <tom@tromey.com> |
139 | ||
140 | * macrocmd.c (macro_expand_command, macro_expand_once_command) | |
141 | (skip_ws, extract_identifier, macro_define_command) | |
142 | (macro_undef_command, macro_list_command): Constify. | |
143 | ||
69f476a3 TT |
144 | 2017-09-27 Tom Tromey <tom@tromey.com> |
145 | ||
146 | * infcmd.c (environment_info, set_environment_command) | |
147 | (unset_environment_command, path_info, info_proc_cmd_1) | |
148 | (info_proc_cmd_mappings, info_proc_cmd_stat) | |
149 | (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline) | |
150 | (info_proc_cmd_exe, info_proc_cmd_all): Constify. | |
151 | ||
c4a3e68e TT |
152 | 2017-09-27 Tom Tromey <tom@tromey.com> |
153 | ||
154 | * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds): | |
155 | Constify. | |
156 | ||
c9d31bd6 TT |
157 | 2017-09-27 Tom Tromey <tom@tromey.com> |
158 | ||
159 | * symfile-mem.c (add_symbol_file_from_memory_command): Constify. | |
160 | ||
1f3f85eb TT |
161 | 2017-09-27 Tom Tromey <tom@tromey.com> |
162 | ||
163 | * demangle.c (demangle_command): Constify. | |
164 | ||
9c504b5d TT |
165 | 2017-09-27 Tom Tromey <tom@tromey.com> |
166 | ||
167 | * progspace.c (maintenance_info_program_spaces_command): | |
168 | Constify. | |
169 | ||
6663cf91 TT |
170 | 2017-09-27 Tom Tromey <tom@tromey.com> |
171 | ||
172 | * compile/compile.c (check_raw_argument, compile_file_command) | |
173 | (compile_code_command, compile_print_command): Constify. | |
174 | ||
34e5fa26 TT |
175 | 2017-09-27 Tom Tromey <tom@tromey.com> |
176 | ||
177 | * reggroups.c (maintenance_print_reggroups): Constify. | |
178 | ||
8384c356 TT |
179 | 2017-09-27 Tom Tromey <tom@tromey.com> |
180 | ||
181 | * dwarf2read.c (save_gdb_index_command): Constify. | |
182 | ||
884beb0c TT |
183 | 2017-09-27 Tom Tromey <tom@tromey.com> |
184 | ||
185 | * stap-probe.c (info_probes_stap_command): Constify. | |
186 | ||
e0b2930c TT |
187 | 2017-09-27 Tom Tromey <tom@tromey.com> |
188 | ||
189 | * fork-child.c (unset_exec_wrapper_command): Constify. | |
190 | ||
f938677d TT |
191 | 2017-09-27 Tom Tromey <tom@tromey.com> |
192 | ||
193 | * btrace.c (get_uint, get_context_size, no_chunk) | |
194 | (maint_btrace_packet_history_cmd) | |
195 | (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd) | |
196 | (maint_info_btrace_cmd): Constify. | |
197 | ||
8949cb87 TT |
198 | 2017-09-27 Tom Tromey <tom@tromey.com> |
199 | ||
200 | * reverse.c (delete_bookmark_command): Constify. | |
201 | ||
ac88e2de TT |
202 | 2017-09-27 Tom Tromey <tom@tromey.com> |
203 | ||
204 | * remote.c (set_memory_packet_size) | |
205 | (set_memory_write_packet_size, show_memory_write_packet_size) | |
206 | (set_memory_read_packet_size, show_memory_read_packet_size) | |
207 | (compare_sections_command, packet_command, remote_put_command) | |
208 | (remote_get_command, remote_delete_command): Constify. | |
209 | ||
bd4c9dfe TT |
210 | 2017-09-27 Tom Tromey <tom@tromey.com> |
211 | ||
212 | * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command) | |
213 | (set_mipsfpu_double_command, set_mipsfpu_none_command) | |
214 | (set_mipsfpu_auto_command): Constify. | |
215 | ||
5e93d4c6 TT |
216 | 2017-09-27 Tom Tromey <tom@tromey.com> |
217 | ||
218 | * cli/cli-cmds.h (cd_command): Constify. | |
219 | * cli/cli-cmds.c (cd_command): Constify. | |
220 | ||
fc41a75b TT |
221 | 2017-09-27 Tom Tromey <tom@tromey.com> |
222 | ||
223 | * thread.c (thread_name_command, thread_find_command): Constify. | |
224 | ||
67810076 TT |
225 | 2017-09-27 Tom Tromey <tom@tromey.com> |
226 | ||
227 | * probe.c (enable_probes_command, disable_probes_command): | |
228 | Constify. | |
229 | ||
1d8b34a7 TT |
230 | 2017-09-27 Tom Tromey <tom@tromey.com> |
231 | ||
232 | * symfile.c (symbol_file_command): Constify. | |
233 | * gdbcore.h (deprecated_file_changed_hook): Constify. | |
234 | * exec.c (deprecated_file_changed_hook, exec_file_command) | |
235 | (file_command): Constify. | |
236 | * defs.h (symbol_file_command): Constify. | |
237 | ||
442019e1 TT |
238 | 2017-09-27 Tom Tromey <tom@tromey.com> |
239 | ||
240 | * remote-fileio.c (set_system_call_allowed) | |
241 | (show_system_call_allowed): Constify. | |
242 | ||
2983f7cb TT |
243 | 2017-09-27 Tom Tromey <tom@tromey.com> |
244 | ||
245 | * tracepoint.c (delete_trace_variable_command) | |
246 | (tfind_end_command, tfind_start_command, tfind_pc_command) | |
247 | (tfind_tracepoint_command, tfind_line_command) | |
248 | (tfind_range_command, tfind_outside_command): Constify. | |
249 | ||
4fd41b24 TT |
250 | 2017-09-27 Tom Tromey <tom@tromey.com> |
251 | ||
252 | * ax-gdb.c (maint_agent_printf_command, agent_command) | |
253 | (agent_eval_command): Constify. | |
254 | ||
f2fc3015 TT |
255 | 2017-09-27 Tom Tromey <tom@tromey.com> |
256 | ||
257 | * tracepoint.c (info_scope_command): Constify. | |
258 | * python/python.c (gdbpy_decode_line): Constify. | |
259 | * python/py-breakpoint.c (bppy_init): Constify. | |
260 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify. | |
261 | * location.h: (new_linespec_location) | |
262 | (string_to_event_location_basic, string_to_event_location): | |
263 | Constify. | |
264 | * location.c (new_linespec_location) | |
265 | (string_to_event_location_basic, string_to_event_location): | |
266 | Constify. | |
267 | * linespec.h (decode_line_with_current_source) | |
268 | (decode_line_with_last_displayed, linespec_lex_to_end): Constify. | |
269 | * linespec.c (linespec_lex_to_end) | |
270 | (decode_line_with_current_source) | |
271 | (decode_line_with_last_displayed): Constify. | |
272 | * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): | |
273 | Constify. | |
274 | * cli/cli-cmds.c (edit_command, list_command): Constify. | |
275 | * breakpoint.h (until_break_command, watch_command_wrapper) | |
276 | (awatch_command_wrapper, rwatch_command_wrapper) | |
277 | (init_ada_exception_breakpoint): Constify. | |
278 | * breakpoint.c (break_command_1, dprintf_command) | |
279 | (break_range_command, watch_command_wrapper) | |
280 | (rwatch_command_wrapper, awatch_command_wrapper) | |
281 | (until_break_command, init_ada_exception_breakpoint) | |
282 | (strace_marker_create_sals_from_location, trace_command) | |
283 | (ftrace_command, strace_command, struct tracepoint): Constify. | |
284 | * ax-gdb.c (agent_command_1): Constify. | |
285 | * ada-lang.c (ada_exception_sal): Constify. | |
286 | ||
8c2f95f4 TT |
287 | 2017-09-27 Tom Tromey <tom@tromey.com> |
288 | ||
289 | * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save) | |
290 | (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number) | |
291 | (get_context_size, no_chunk, get_insn_history_modifiers) | |
292 | (cmd_record_insn_history, get_call_history_modifiers) | |
293 | (cmd_record_call_history): Constify. | |
294 | ||
a0d65762 TT |
295 | 2017-09-27 Tom Tromey <tom@tromey.com> |
296 | ||
297 | * source.c (show_substitute_path_command) | |
298 | (unset_substitute_path_command, set_substitute_path_command): | |
299 | Constify. | |
300 | ||
58971144 TT |
301 | 2017-09-27 Tom Tromey <tom@tromey.com> |
302 | ||
303 | * typeprint.c (maintenance_print_type): Constify. | |
304 | * maint.c (maintenance_dump_me, maintenance_demangle) | |
305 | (maintenance_time_display, maintenance_info_sections) | |
306 | (maintenance_print_statistics, maintenance_deprecate) | |
307 | (maintenance_undeprecate): Constify. | |
308 | (maintenance_do_deprecate): Constify. Use std::string. | |
309 | (maintenance_selftest): Constify. | |
310 | * gdbtypes.h (maintenance_print_type): Constify. | |
311 | ||
c482f52c TT |
312 | 2017-09-27 Tom Tromey <tom@tromey.com> |
313 | ||
314 | * hppa-tdep.c (unwind_command): Constify. | |
315 | ||
e100df1a TT |
316 | 2017-09-27 Tom Tromey <tom@tromey.com> |
317 | ||
318 | * target-descriptions.c (unset_tdesc_filename_cmd) | |
319 | (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions): | |
320 | Constify. | |
321 | ||
31d56ade TT |
322 | 2017-09-27 Tom Tromey <tom@tromey.com> |
323 | ||
324 | * dummy-frame.c (maintenance_print_dummy_frames): Constify. | |
325 | ||
b961da0b TT |
326 | 2017-09-27 Tom Tromey <tom@tromey.com> |
327 | ||
328 | * tui/tui.c (tui_enable_command, tui_disable_command): Constify. | |
329 | ||
e2d8ae16 TT |
330 | 2017-09-27 Tom Tromey <tom@tromey.com> |
331 | ||
332 | * tui/tui-regs.c (tui_reg_command): Constify. | |
333 | ||
863779b0 TT |
334 | 2017-09-27 Tom Tromey <tom@tromey.com> |
335 | ||
336 | * skip.c (skip_file_command, skip_function_command) | |
337 | (skip_enable_command, skip_disable_command, skip_delete_command): | |
338 | Constify. | |
339 | ||
cdb34d4a TT |
340 | 2017-09-27 Tom Tromey <tom@tromey.com> |
341 | ||
342 | * record-btrace.c (cmd_record_btrace_bts_start) | |
343 | (cmd_record_btrace_pt_start): Constify. | |
344 | ||
e99c83e7 TT |
345 | 2017-09-27 Tom Tromey <tom@tromey.com> |
346 | ||
347 | * symmisc.c (maintenance_print_symbols) | |
348 | (maintenance_print_msymbols, maintenance_print_objfiles) | |
349 | (maintenance_info_symtabs, maintenance_check_symtabs) | |
350 | (maintenance_expand_symtabs, maintenance_info_line_tables): | |
351 | Constify. | |
352 | ||
32faf971 TT |
353 | 2017-09-27 Tom Tromey <tom@tromey.com> |
354 | ||
355 | * top.c (new_ui_command): Constify. | |
356 | ||
2cf311eb TT |
357 | 2017-09-27 Tom Tromey <tom@tromey.com> |
358 | ||
359 | * symfile.c (add_symbol_file_command) | |
360 | (remove_symbol_file_command, list_overlays_command) | |
361 | (map_overlay_command, unmap_overlay_command) | |
362 | (overlay_auto_command, overlay_manual_command) | |
363 | (overlay_off_command, overlay_load_command): Constify. | |
364 | ||
e6738699 TT |
365 | 2017-09-27 Tom Tromey <tom@tromey.com> |
366 | ||
367 | * spu-tdep.c (info_spu_event_command, info_spu_signal_command) | |
368 | (info_spu_mailbox_command, info_spu_dma_command) | |
369 | (info_spu_proxydma_command): Constify. | |
370 | ||
aa360cd5 TT |
371 | 2017-09-27 Tom Tromey <tom@tromey.com> |
372 | ||
373 | * cli/cli-logging.c (set_logging_on, set_logging_off): Constify. | |
374 | ||
898241a5 TT |
375 | 2017-09-27 Tom Tromey <tom@tromey.com> |
376 | ||
377 | * cli/cli-script.c (user_defined_command): Constify. | |
378 | ||
2d0ac106 TT |
379 | 2017-09-27 Tom Tromey <tom@tromey.com> |
380 | ||
381 | * cli/cli-dump.c (dump_memory_command, dump_value_command) | |
382 | (dump_srec_memory, dump_srec_value, dump_ihex_memory) | |
383 | (dump_ihex_value, dump_verilog_memory, dump_verilog_value) | |
384 | (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory) | |
385 | (dump_binary_value, append_binary_memory, append_binary_value): | |
386 | Constify. | |
387 | (struct dump_context) <func>: Constify. | |
388 | (add_dump_command): Update. | |
389 | ||
dede02ce TT |
390 | 2017-09-27 Tom Tromey <tom@tromey.com> |
391 | ||
392 | * cli/cli-cmds.c (show_version, show_configuration) | |
393 | (source_command, show_user): Constify. | |
394 | ||
d3cb6b99 TT |
395 | 2017-09-27 Tom Tromey <tom@tromey.com> |
396 | ||
397 | * target.c (maintenance_print_target_stack): Constify. | |
398 | ||
1970a12f TT |
399 | 2017-09-27 Tom Tromey <tom@tromey.com> |
400 | ||
401 | * interps.c (interpreter_exec_cmd): Constify. | |
402 | ||
41243651 TT |
403 | 2017-09-27 Tom Tromey <tom@tromey.com> |
404 | ||
405 | * record-full.c (cmd_record_full_restore): Constify. | |
406 | ||
4465d9db TT |
407 | 2017-09-27 Tom Tromey <tom@tromey.com> |
408 | ||
409 | * memattr.c (enable_mem_command, disable_mem_command) | |
410 | (delete_mem_command): Constify. | |
411 | ||
ad25e423 TT |
412 | 2017-09-27 Tom Tromey <tom@tromey.com> |
413 | ||
414 | * value.c (show_convenience): Constify. | |
415 | ||
d64097b1 TT |
416 | 2017-09-27 Tom Tromey <tom@tromey.com> |
417 | ||
418 | * gdbcore.h (core_file_command): Update. | |
419 | * corefile.c (core_file_command): Constify. | |
420 | ||
4d4589ef TT |
421 | 2017-09-27 Tom Tromey <tom@tromey.com> |
422 | ||
423 | * user-regs.c (maintenance_print_user_registers): Constify. | |
424 | ||
32a7bf17 TT |
425 | 2017-09-27 Tom Tromey <tom@tromey.com> |
426 | ||
427 | * cp-namespace.c (maintenance_cplus_namespace): Constify. | |
428 | ||
4a475551 TT |
429 | 2017-09-27 Tom Tromey <tom@tromey.com> |
430 | ||
431 | * cp-support.c (first_component_command): Constify. | |
432 | ||
990b9f9f TT |
433 | 2017-09-27 Tom Tromey <tom@tromey.com> |
434 | ||
435 | * psymtab.c (maintenance_print_psymbols) | |
436 | (maintenance_info_psymtabs, maintenance_check_psymtabs): | |
437 | Constify. | |
438 | ||
c281872e TT |
439 | 2017-09-27 Tom Tromey <tom@tromey.com> |
440 | ||
441 | * windows-tdep.c (display_tib): Constify. | |
442 | ||
5b64bf74 TT |
443 | 2017-09-27 Tom Tromey <tom@tromey.com> |
444 | ||
445 | * linux-fork.c (delete_checkpoint_command) | |
446 | (detach_checkpoint_command): Constify. | |
447 | ||
4ada038f TT |
448 | 2017-09-27 Tom Tromey <tom@tromey.com> |
449 | ||
450 | * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify. | |
451 | ||
57f5a81b TT |
452 | 2017-09-27 Tom Tromey <tom@tromey.com> |
453 | ||
454 | * arc-tdep.c (dump_arc_instruction_command): Constify. | |
455 | ||
b0a8e6c4 TT |
456 | 2017-09-27 Tom Tromey <tom@tromey.com> |
457 | ||
458 | * valprint.c (set_radix, show_radix): Constify. | |
459 | ||
8d97dc1c TT |
460 | 2017-09-27 Tom Tromey <tom@tromey.com> |
461 | ||
462 | * dtrace-probe.c (info_probes_dtrace_command): Constify. | |
463 | ||
eb7c454d TT |
464 | 2017-09-27 Tom Tromey <tom@tromey.com> |
465 | ||
466 | * command.h (not_just_help_class_command): Update. | |
467 | * cli/cli-decode.h (not_just_help_class_command): Update. | |
468 | * cli/cli-decode.c (not_just_help_class_command): Constify. | |
469 | ||
e4e33335 TT |
470 | 2017-09-27 Tom Tromey <tom@tromey.com> |
471 | ||
472 | * gdb_bfd.c (maintenance_info_bfds): Constify. | |
473 | ||
0450cc4c TT |
474 | 2017-09-27 Tom Tromey <tom@tromey.com> |
475 | ||
476 | * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function | |
477 | overloads. | |
478 | (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc. | |
479 | (do_const_cfunc): New function. | |
480 | (cmd_cfunc_eq): New overload. | |
481 | (cli_user_command_p): Check do_const_cfunc. | |
482 | * cli/cli-decode.h (struct cmd_list_element) <function>: New field | |
483 | const_cfunc. | |
484 | * command.h (add_cmd): Add const overload and no-function | |
485 | overload. | |
486 | (set_cmd_cfunc): Add const overload. | |
487 | (cmd_const_cfunc_ftype): Declare. | |
488 | (cmd_cfunc_eq): Add const overload. | |
489 | * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c, | |
490 | python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd | |
491 | overload. | |
492 | ||
a9bbfbd8 TT |
493 | 2017-09-27 Tom Tromey <tom@tromey.com> |
494 | ||
495 | * macroexp.c (get_next_token_for_substitution): New function. | |
496 | (substitute_args): Call it. Check for __VA_OPT__. | |
497 | ||
5230b05a WT |
498 | 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com> |
499 | Pedro Alves <palves@redhat.com> | |
500 | ||
501 | * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add | |
502 | producer_is_icc_lt_14. | |
503 | (producer_is_icc_lt_14): New function. | |
504 | (check_producer): Add code for checking version of ICC. | |
505 | (producer_is_icc): Move to producer.c. | |
506 | (read_structure_type): Restrict ICC workaround to ICC<14. | |
507 | * producer.c: Include selftest.h. | |
508 | (producer_is_icc, producer_parsing_tests, _initialize_producer): | |
509 | New functions. | |
510 | * producer.h (producer_is_icc): New declaration. | |
511 | ||
b32b108a WT |
512 | 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com> |
513 | ||
514 | * Makefile.in (SFILES): Add producer.c. | |
515 | (COMMON_OBS): Add producer.o | |
516 | * amd64-tdep.c (producer.h): Add new include. | |
517 | * dwarf2read.c (producer.h): Add new include. | |
518 | * producer.c: New file. | |
519 | * producer.h: New file. | |
520 | * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to | |
521 | producer.c. | |
522 | * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to | |
523 | producer.h. | |
524 | ||
5007d765 MK |
525 | 2017-09-26 Matthias Klose <doko@ubuntu.com> |
526 | ||
527 | * configure.ac: Search ncursesw before ncurses. | |
528 | Check ncursesw/ncurses.h before ncurses/ncurses.h. | |
529 | * gdb_curses.h: Include <ncursesw/ncurses.h> | |
530 | * config.in, configure: Regenerate. | |
531 | ||
281c4447 RO |
532 | 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
533 | ||
534 | PR gdb/22185 | |
535 | * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as | |
536 | obsolete. | |
537 | Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*. | |
538 | Remove i386sol2 support. | |
539 | * configure.nat <i386sol2>: Remove. | |
540 | <sol2-64>: Fold into ... | |
541 | <sol2>: ... this. | |
542 | Move common settings to default section. | |
543 | Add sol-thread.o. | |
544 | * configure.tgt <i[34567]86-*-solaris2.1[0-9]*, | |
545 | x86_64-*-solaris2.1[0-9]*>: Rename to ... | |
546 | <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this. | |
547 | <i[34567]86-*-solaris*>: Remove. | |
548 | <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove. | |
549 | ||
550 | * configure.ac: Remove wctype in libw check. | |
551 | (_MSE_INT_H): Don't define on Solaris 7-9. | |
552 | <solaris*>: Remove libthread_db.so.1 check. | |
553 | * configure: Regenerate. | |
554 | * config.in: Regenerate. | |
555 | ||
556 | * proc-service.c: Remove PROC_SERVICE_IS_OLD handling. | |
557 | (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t) | |
558 | (gdb_ps_size_t): Remove. | |
559 | Use base types in users. | |
560 | * sol-thread.c: Likewise, also for gdb_ps_addr_t. | |
561 | ||
562 | * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal. | |
563 | ||
39b06c20 RO |
564 | 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
565 | ||
566 | PR build/22206 | |
567 | * sparc64-tdep.c (adi_tag_fd): Print pid as long. | |
568 | (adi_is_addr_mapped): Likewise. | |
569 | (PSR_ICC): Don't redefine. | |
570 | (PSR_IMPL): Likewise. | |
571 | ||
6c3e20f1 TT |
572 | 2017-09-25 Tom Tromey <tom@tromey.com> |
573 | ||
574 | * regcache.c (regcache::dump): Use string_printf. | |
575 | ||
b292235f TT |
576 | 2017-09-25 Tom Tromey <tom@tromey.com> |
577 | ||
578 | * regcache.c (class regcache_invalidator): New. | |
579 | (struct register_to_invalidate): Remove. | |
580 | (make_cleanup_regcache_invalidate): Remove. | |
581 | (regcache::raw_write): Use regcache_invalidator. | |
582 | ||
9ac86b52 TT |
583 | 2017-09-25 Tom Tromey <tom@tromey.com> |
584 | ||
585 | * spu-tdep.c (spu2ppu_sniffer): Update. | |
586 | * regcache.h (make_cleanup_regcache_xfree): Don't declare. | |
587 | * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree): | |
588 | Remove. | |
589 | * ppc-linux-tdep.c (ppu2spu_sniffer): Update. | |
590 | * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update. | |
591 | * frame.h (frame_save_as_regcache): Return std::unique_ptr. | |
592 | * frame.c (frame_save_as_regcache): Return std::unique_ptr. | |
593 | (frame_pop): Update. | |
594 | ||
c0e383c6 TT |
595 | 2017-09-25 Tom Tromey <tom@tromey.com> |
596 | ||
597 | * spu-tdep.c (spu2ppu_dealloc_cache): Use delete. | |
598 | * regcache.h (regcache_xfree): Don't declare. | |
599 | * regcache.c (regcache_xfree): Remove. | |
600 | (do_regcache_xfree): Use delete. | |
601 | * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete. | |
602 | * linux-fork.c (free_fork): Use delete. | |
603 | (fork_save_infrun_state): Likewise. | |
604 | * jit.c (jit_dealloc_cache): Use delete. | |
605 | * infrun.c (discard_infcall_suspend_state): Use delete. | |
606 | ||
791199cc TT |
607 | 2017-09-25 Tom Tromey <tom@tromey.com> |
608 | ||
609 | * regcache.h (regcache_xmalloc): Don't declare. | |
610 | (regcache_raw_set_cached_value): Update comment. | |
611 | * regcache.c (regcache_xmalloc): Remove. | |
612 | * ppc-linux-tdep.c (ppu2spu_sniffer): Use new. | |
613 | * jit.c (jit_frame_sniffer): Use new. | |
614 | * frame.c (frame_save_as_regcache): Use new. | |
615 | ||
289e23aa AA |
616 | 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com> |
617 | ||
618 | * NEWS: Advertise support for guarded-storage registers on IBM z. | |
619 | ||
1b63490c AA |
620 | 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com> |
621 | ||
622 | * s390-linux-nat.c (have_regset_gs): New static variable. | |
623 | (s390_linux_fetch_inferior_registers): Handle guarded-storage | |
624 | control block and guarded-storage broadcast control regsets. | |
625 | (s390_read_description): Detect whether the target has | |
626 | guarded-storage support, return appropriate tdesc. | |
627 | * s390-linux-tdep.c (features/s390-gs-linux64.c): New include. | |
628 | (features/s390x-gs-linux64.c): Likewise. | |
629 | (struct gdbarch_tdep) <have_gs>: New field. | |
630 | (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset) | |
631 | (s390_gsbc_regset): New variables. | |
632 | (s390_iterate_over_regset_sections): Iterate over s390_gs_regset | |
633 | and s390_gsbc_regset, if applicable. | |
634 | (s390_core_read_description): Check whether core file was from a | |
635 | target with guarded-storage support; include appropriate regsets. | |
636 | (s390_gdbarch_init): Add registers for guarded-storage support. | |
637 | (_initialize_s390_tdep): Initialize new target descriptions that | |
638 | include registers for guarded-storage support. | |
639 | * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM) | |
640 | (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM) | |
641 | (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines. | |
642 | (S390_NUM_REGS): Adjust macro definition. | |
643 | (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64) | |
644 | (tdesc_s390x_gs_linux64): New declarations. | |
645 | ||
96235dc1 AA |
646 | 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com> |
647 | ||
648 | * features/s390-gs-linux64.xml: New file. | |
649 | * features/s390-gs.xml: New file. | |
650 | * features/s390-gsbc.xml: New file. | |
651 | * features/s390x-gs-linux64.xml: New file. | |
652 | * features/Makefile (WHICH): Add s390-gs-linux64 and | |
653 | s390x-gs-linux64. | |
654 | (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros. | |
655 | (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml. | |
656 | * features/s390-gs-linux64.c: New generated file. | |
657 | * features/s390x-gs-linux64.c: New file. | |
658 | * regformats/s390-gs-linux64.dat: New file. | |
659 | * regformats/s390x-gs-linux64.dat: New file. | |
660 | ||
b4a7c699 TT |
661 | 2017-09-23 Tom Tromey <tom@tromey.com> |
662 | ||
663 | * defs.h (make_cleanup_override_quit_handler): Don't declare. | |
664 | ||
c2f97536 TT |
665 | 2017-09-22 Tom Tromey <tom@tromey.com> |
666 | ||
667 | * utils.c (class scoped_input_handler) <m_quit_handler>: Change | |
668 | type to scoped_restore_tmpl. | |
669 | <scoped_input_handler>: Initialize m_quit_handler directly. | |
670 | ||
43573013 SDJ |
671 | 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com> |
672 | ||
673 | * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)". | |
674 | (cd_command): Likewise. Free "current_directory" before | |
675 | assigning to it. | |
676 | * main.c (captured_main_1): Use "getcwd (NULL, 0)". | |
677 | * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise. | |
678 | * top.c (gdb_dirbuf): Remove global declaration. | |
679 | * top.h (gdb_dirbuf): Likewise. | |
680 | ||
6ec2e0f5 SDJ |
681 | 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com> |
682 | ||
683 | * gnulib/aclocal.m4: Regenerate. | |
684 | * gnulib/config.in: Regenerate. | |
685 | * gnulib/configure: Regenerate. | |
686 | * gnulib/import/Makefile.am: Regenerate. | |
687 | * gnulib/import/Makefile.in: Regenerate. | |
688 | * gnulib/import/assure.h: New file. | |
689 | * gnulib/import/at-func.c: Likewise | |
690 | * gnulib/import/chdir-long.c: New file. | |
691 | * gnulib/import/chdir-long.h: New file. | |
692 | * gnulib/import/cloexec.c: New file. | |
693 | * gnulib/import/cloexec.h: New file. | |
694 | * gnulib/import/close.c: New file. | |
695 | * gnulib/import/closedir.c: New file. | |
696 | * gnulib/import/dirent-private.h: New file. | |
697 | * gnulib/import/dup-safer.c: New file. | |
698 | * gnulib/import/dup.c: New file. | |
699 | * gnulib/import/dup2.c: New file. | |
700 | * gnulib/import/error.c: New file. | |
701 | * gnulib/import/error.h: New file. | |
702 | * gnulib/import/exitfail.c: New file. | |
703 | * gnulib/import/exitfail.h: New file. | |
704 | * gnulib/import/fchdir.c: New file. | |
705 | * gnulib/import/fcntl.c: New file. | |
706 | * gnulib/import/fcntl.in.h: New file. | |
707 | * gnulib/import/fd-hook.c: New file. | |
708 | * gnulib/import/fd-hook.h: New file. | |
709 | * gnulib/import/fd-safer.c: New file. | |
710 | * gnulib/import/fdopendir.c: New file. | |
711 | * gnulib/import/filename.h: New file. | |
712 | * gnulib/import/filenamecat-lgpl.c: New file. | |
713 | * gnulib/import/filenamecat.h: New file. | |
714 | * gnulib/import/fstat.c: New file. | |
715 | * gnulib/import/fstatat.c: New file. | |
716 | * gnulib/import/getcwd-lgpl.c: New file. | |
717 | * gnulib/import/getcwd.c: New file. | |
718 | * gnulib/import/getdtablesize.c: New file. | |
719 | * gnulib/import/getlogin_r.c: New file. | |
720 | * gnulib/import/getprogname.c: New file. | |
721 | * gnulib/import/getprogname.h: New file. | |
722 | * gnulib/import/gettext.h: New file. | |
723 | * gnulib/import/glob-libc.h: New file. | |
724 | * gnulib/import/glob.c: New file. | |
725 | * gnulib/import/glob.in.h: New file. | |
726 | * gnulib/import/intprops.h: New file. | |
727 | * gnulib/import/m4/chdir-long.m4: New file. | |
728 | * gnulib/import/m4/close.m4: New file. | |
729 | * gnulib/import/m4/closedir.m4: New file. | |
730 | * gnulib/import/m4/d-ino.m4: New file. | |
731 | * gnulib/import/m4/d-type.m4: New file. | |
732 | * gnulib/import/m4/dup.m4: New file. | |
733 | * gnulib/import/m4/dup2.m4: New file. | |
734 | * gnulib/import/m4/error.m4: New file. | |
735 | * gnulib/import/m4/fchdir.m4: New file. | |
736 | * gnulib/import/m4/fcntl.m4: New file. | |
737 | * gnulib/import/m4/fcntl_h.m4: New file. | |
738 | * gnulib/import/m4/fdopendir.m4: New file. | |
739 | * gnulib/import/m4/filenamecat.m4: New file. | |
740 | * gnulib/import/m4/fstat.m4: New file. | |
741 | * gnulib/import/m4/fstatat.m4: New file. | |
742 | * gnulib/import/m4/getcwd-abort-bug.m4: New file. | |
743 | * gnulib/import/m4/getcwd-path-max.m4: New file. | |
744 | * gnulib/import/m4/getcwd.m4: New file. | |
745 | * gnulib/import/m4/getdtablesize.m4: New file. | |
746 | * gnulib/import/m4/getlogin_r.m4: New file. | |
747 | * gnulib/import/m4/getprogname.m4: New file. | |
748 | * gnulib/import/m4/glob.m4: New file. | |
749 | * gnulib/import/m4/gnulib-cache.m4: Regenerate. | |
750 | * gnulib/import/m4/gnulib-comp.m4: Regenerate. | |
751 | * gnulib/import/m4/mempcpy.m4: New file. | |
752 | * gnulib/import/m4/memrchr.m4: New file. | |
753 | * gnulib/import/m4/mode_t.m4: New file. | |
754 | * gnulib/import/m4/msvc-inval.m4: New file. | |
755 | * gnulib/import/m4/msvc-nothrow.m4: New file. | |
756 | * gnulib/import/m4/open.m4: New file. | |
757 | * gnulib/import/m4/openat.m4: New file. | |
758 | * gnulib/import/m4/opendir.m4: New file. | |
759 | * gnulib/import/m4/readdir.m4: New file. | |
760 | * gnulib/import/m4/realloc.m4: New file. | |
761 | * gnulib/import/m4/rewinddir.m4: New file. | |
762 | * gnulib/import/m4/save-cwd.m4: New file. | |
763 | * gnulib/import/m4/strdup.m4: New file. | |
764 | * gnulib/import/m4/strerror.m4: New file. | |
765 | * gnulib/import/m4/unistd-safer.m4: New file. | |
766 | * gnulib/import/mempcpy.c: New file. | |
767 | * gnulib/import/memrchr.c: New file. | |
768 | * gnulib/import/msvc-inval.c: New file. | |
769 | * gnulib/import/msvc-inval.h: New file. | |
770 | * gnulib/import/msvc-nothrow.c: New file. | |
771 | * gnulib/import/msvc-nothrow.h: New file. | |
772 | * gnulib/import/open.c: New file. | |
773 | * gnulib/import/openat-die.c: New file. | |
774 | * gnulib/import/openat-priv.h: New file. | |
775 | * gnulib/import/openat-proc.c: New file. | |
776 | * gnulib/import/openat.c: New file. | |
777 | * gnulib/import/openat.h: New file. | |
778 | * gnulib/import/opendir.c: New file. | |
779 | * gnulib/import/pipe-safer.c: New file. | |
780 | * gnulib/import/readdir.c: New file. | |
781 | * gnulib/import/realloc.c: New file. | |
782 | * gnulib/import/rewinddir.c: New file. | |
783 | * gnulib/import/save-cwd.c: New file. | |
784 | * gnulib/import/save-cwd.h: New file. | |
785 | * gnulib/import/strdup.c: New file. | |
786 | * gnulib/import/strerror-override.c: New file. | |
787 | * gnulib/import/strerror-override.h: New file. | |
788 | * gnulib/import/strerror.c: New file. | |
789 | * gnulib/import/unistd--.h: New file. | |
790 | * gnulib/import/unistd-safer.h: New file. | |
791 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add | |
792 | "getcwd" and "glob". | |
793 | * ser-tcp.c: Undefine "close" before redefining it. | |
794 | ||
432ae719 SM |
795 | 2017-09-21 Simon Marchi <simon.marchi@ericsson.com> |
796 | ||
797 | * guile/scm-value.c (gdbscm_value_address): Initialize address, | |
798 | get rid of res_val. | |
799 | ||
4fa7574e RO |
800 | 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
801 | ||
802 | * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES. | |
803 | <sol2,sparc>: Likewise. | |
804 | <sol2-64,i386>: Likewise. | |
805 | ||
806 | * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas, | |
807 | -Wdeprecated-declarations on *-*-solaris*. | |
808 | * configure: Regenerate. | |
809 | ||
810 | * procfs.c: Include "nat/inferior.h". | |
811 | (procfs_info_proc): Fix typo. | |
812 | ||
f6327dcb KB |
813 | 2017-09-21 Kevin Buettner <kevinb@redhat.com> |
814 | ||
815 | * remote.c (vector): Include. | |
816 | (struct private_thread_info): Add field, thread_handle. | |
817 | (free_private_thread_info): Deallocate storage associated with | |
818 | thread handle. | |
819 | (get_private_info_thread): Initialize `thread_handle' field. | |
820 | (struct thread_item): Add field, thread_handle. | |
821 | (clear_threads_listing_context): Deallocate storage associated | |
822 | with thread handle. | |
823 | (start_thread): Add support for "handle" attribute. | |
824 | (thread_attributes): Add "handle". | |
825 | (remote_get_threads_with_qthreadinfo): Initialize thread_handle | |
826 | field. | |
827 | (remote_update_thread_list): Update thread_handle. | |
828 | (remote_thread_handle_to_thread_info): New function. | |
829 | (init_remote_ops): Initialize to_thread_handle_to_thread_info. | |
830 | ||
fbbe5337 KB |
831 | 2017-09-21 Kevin Buettner <kevinb@redhat.com> |
832 | ||
833 | * python/py-inferior.c (gdbpy_thread_from_thread_handle): New | |
834 | function. | |
835 | (inferior_object_methods): Add gdbpy_thread_from_thread_handle. | |
836 | * python/python-internal.h (thread_object_type): Declare. | |
837 | ||
e04ee09e KB |
838 | 2017-09-21 Kevin Buettner <kevinb@redhat.com> |
839 | ||
840 | * target.h (struct target_ops): Add to_thread_handle_to_thread_info. | |
841 | (target_thread_handle_to_thread_info): Declare. | |
842 | * target.c (target_thread_handle_to_thread_info): New function. | |
843 | * target-delegates.c: Regenerate. | |
844 | * gdbthread.h (find_thread_by_handle): Declare. | |
845 | * thread.c (find_thread_by_handle): New function. | |
846 | * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New | |
847 | function. | |
848 | (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info. | |
849 | ||
1e5b66ed SM |
850 | 2017-09-21 Simon Marchi <simon.marchi@ericsson.com> |
851 | ||
852 | * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF. | |
853 | ||
ebe48ba0 SM |
854 | 2017-09-21 Simon Marchi <simon.marchi@ericsson.com> |
855 | ||
856 | * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF. | |
857 | ||
0a0bf5dc YQ |
858 | 2017-09-21 Yao Qi <yao.qi@linaro.org> |
859 | ||
860 | * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o | |
861 | to gdb_target_obs. | |
862 | ||
d1b0a7bf TT |
863 | 2017-09-20 Tom Tromey <tom@tromey.com> |
864 | ||
865 | * breakpoint.c (struct counted_command_line): Remove. | |
866 | (breakpoint_commands): Update. | |
867 | (alloc_counted_command_line, incref_counted_command_line) | |
868 | (decref_counted_command_line, do_cleanup_counted_command_line) | |
869 | (make_cleanup_decref_counted_command_line): Remove. | |
870 | (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats) | |
871 | (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check) | |
872 | (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint) | |
873 | (save_breakpoints): Update. | |
874 | * breakpoint.h (counted_command_line): Now a typedef to | |
875 | shared_ptr. | |
876 | (struct breakpoint) <commands>: Now a counted_command_line. | |
877 | (struct bpstats) <command>: Likewise. | |
878 | ||
48649e1b TT |
879 | 2017-09-20 Tom Tromey <tom@tromey.com> |
880 | ||
881 | * breakpoint.c (struct commands_info, do_map_commands_command): | |
882 | Remove. | |
883 | (commands_command_1): Update. | |
884 | (iterate_over_related_breakpoints): Take a function_view. | |
885 | (do_delete_breakpoint, do_map_delete_breakpoint): Remove. | |
886 | (delete_command): Update. | |
887 | (map_breakpoint_numbers): Take a function_view. | |
888 | (do_disable_breakpoint, do_map_delete_breakpoint): Remove. | |
889 | (disable_command): Update. | |
890 | (do_enable_breakpoint, do_map_enable_breakpoint): Remove. | |
891 | (enable_command): Update. | |
892 | (struct disp_data, do_enable_breakpoint_disp) | |
893 | (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint) | |
894 | (do_map_enable_delete_breakpoint): Remove. | |
895 | (enable_once_command, enable_count_command, enable_delete_command) | |
896 | (delete_trace_variable_command): Update. | |
897 | ||
04afa70c TT |
898 | 2017-09-20 Tom Tromey <tom@tromey.com> |
899 | ||
900 | * breakpoint.c (~bpstats): Rename from bpstat_free. Update. | |
901 | (bpstat_clear): Use delete. | |
902 | (bpstats): New constructors. | |
903 | (bpstat_copy, bpstat_stop_status): Use new. | |
904 | (dprintf_after_condition_true): Update. | |
905 | * breakpoint.h (bpstats::bpstats): Add constructors. | |
906 | (bpstats::~bpstats): Add destructor. | |
907 | ||
c83833f4 PA |
908 | 2017-09-20 Pedro Alves <palves@redhat.com> |
909 | ||
910 | * eval.c (make_params): Delete, refactored as ... | |
911 | (class fake_method): ... this new type's ctor. | |
912 | (fake_method::~fake_method): New. | |
913 | (evaluate_subexp_standard): Use 'fake_method'. | |
914 | ||
223ffa71 TT |
915 | 2017-09-20 Tom Tromey <tom@tromey.com> |
916 | ||
917 | * windows-nat.c (get_windows_debug_event, windows_wait) | |
918 | (do_initial_windows_stuff, windows_attach): Update. | |
919 | * utils.c (vwarning, internal_vproblem): Update. | |
920 | (ui_unregister_input_event_handler_cleanup) | |
921 | (prepare_to_handle_input): Remove. | |
922 | (class scoped_input_handler): New. | |
923 | (defaulted_query, prompt_for_continue): Update. | |
924 | * tui/tui-hooks.c (tui_refresh_frame_and_register_information): | |
925 | Update. | |
926 | * top.c (undo_terminal_modifications_before_exit): Update. | |
927 | * target/target.h (target_terminal_init, target_terminal_inferior) | |
928 | (target_terminal_ours): Don't declare. | |
929 | (class target_terminal): New. | |
930 | * target.h (target_terminal_is_inferior, target_terminal_is_ours) | |
931 | (target_terminal_ours_for_output) | |
932 | (make_cleanup_restore_target_terminal): Don't declare. | |
933 | (target_terminal_info): Remove. | |
934 | * target.c (enum terminal_state, terminal_state): Remove. | |
935 | (target_terminal::terminal_state): Define. | |
936 | (target_terminal::init): Rename from target_terminal_init. | |
937 | (target_terminal::inferior): Rename from | |
938 | target_terminal_inferior. | |
939 | (target_terminal::ours): Rename from target_terminal_ours. | |
940 | (target_terminal::ours_for_output): Rename from | |
941 | target_terminal_ours_for_output. | |
942 | (target_terminal::info): New method. | |
943 | (cleanup_restore_target_terminal) | |
944 | (make_cleanup_restore_target_terminal): Remove. | |
945 | * solib.c (handle_solib_event): Update. | |
946 | * remote.c (remote_serial_quit_handler): Update. | |
947 | (remote_terminal_inferior, remote_wait_as): Update. | |
948 | * record-full.c (record_full_wait_1): Update. | |
949 | * nto-procfs.c (procfs_create_inferior): Update. | |
950 | * nat/fork-inferior.c (startup_inferior): Update. | |
951 | * mi/mi-interp.c (mi_new_thread, mi_thread_exit) | |
952 | (mi_record_changed, mi_inferior_added, mi_inferior_appeared) | |
953 | (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed) | |
954 | (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified) | |
955 | (mi_breakpoint_created, mi_breakpoint_deleted) | |
956 | (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded) | |
957 | (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed) | |
958 | (mi_user_selected_context_changed, report_initial_inferior): | |
959 | Update. | |
960 | * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours) | |
961 | (linux_nat_terminal_inferior): Update. | |
962 | * infrun.c (follow_fork_inferior) | |
963 | (handle_vfork_child_exec_or_exit, do_target_resume) | |
964 | (check_curr_ui_sync_execution_done, handle_inferior_event_1) | |
965 | (handle_signal_stop, maybe_remove_breakpoints, normal_stop): | |
966 | Update. | |
967 | * inflow.c (child_terminal_init, info_terminal_command): Update. | |
968 | * infcmd.c (post_create_inferior, continue_1, prepare_one_step) | |
969 | (attach_command): Update. | |
970 | * infcall.c (call_thread_fsm_should_stop): Update. | |
971 | * gnu-nat.c (gnu_attach): Update. | |
972 | * extension.c (struct active_ext_lang_state) | |
973 | (restore_active_ext_lang): Update. | |
974 | * exceptions.c (print_flush): Update. | |
975 | * event-top.c (async_enable_stdin, default_quit_handler): Update. | |
976 | (struct quit_handler_cleanup_data, restore_quit_handler) | |
977 | (restore_quit_handler_dtor, make_cleanup_override_quit_handler): | |
978 | Remove. | |
979 | * cp-support.c (gdb_demangle): Update. | |
980 | * breakpoint.c (update_inserted_breakpoint_locations) | |
981 | (insert_breakpoint_locations, handle_jit_event) | |
982 | (disable_breakpoints_in_unloaded_shlib): Update. | |
983 | * annotate.c (annotate_breakpoints_invalid) | |
984 | (annotate_frames_invalid): Update. | |
985 | ||
013af3fc TT |
986 | 2017-09-20 Tom Tromey <tom@tromey.com> |
987 | ||
988 | * main.c (catch_command_errors): Rename from | |
989 | catch_command_errors_const. | |
990 | (captured_main_1): Update. | |
991 | ||
06871ae8 PA |
992 | 2017-09-20 Pedro Alves <palves@redhat.com> |
993 | ||
994 | * cli/cli-cmds.c (list_command): Use print_sal_location. | |
995 | (print_sal_location): New function. | |
996 | (ambiguous_line_spec): Use print_sal_location. | |
997 | * linespec.c (symbol_to_sal): Record the symbol in the sal. | |
998 | * symtab.c (find_function_start_sal): Likewise. | |
999 | * symtab.h (symtab_and_line::symbol): New field. | |
1000 | ||
e5f25bc5 PA |
1001 | 2017-09-20 Pedro Alves <palves@redhat.com> |
1002 | ||
1003 | * linespec.c (minsym_found): Handle non-text minsyms. | |
1004 | (symbol_to_sal): Record a sal.pc for non-block, non-label symbols. | |
1005 | ||
1b7fa39e WT |
1006 | 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com> |
1007 | ||
1008 | * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing | |
1009 | backslash. | |
1010 | ||
37dd0825 WT |
1011 | 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com> |
1012 | ||
1013 | * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use | |
1014 | vmovups instead vmovaps. | |
1015 | (move_zmm_data_to_memory): Use vmovups instead vmovaps. | |
1016 | ||
4e5a4f58 JB |
1017 | 2017-09-19 John Baldwin <jhb@FreeBSD.org> |
1018 | ||
1019 | * NEWS (Changes since GDB 8.0): Add starti. | |
1020 | * infcmd.c (enum run_break): New. | |
1021 | (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN | |
1022 | case. | |
1023 | (run_command): Use enum run_how. | |
1024 | (start_command): Likewise. | |
1025 | (starti_command): New function. | |
1026 | (RUN_ARGS_HELP): New macro. | |
1027 | (_initialize_infcmd): Use RUN_ARGS_HELP for run and start | |
1028 | commands. Add starti command. | |
1029 | ||
aa70c9f1 YQ |
1030 | 2017-09-19 Yao Qi <yao.qi@linaro.org> |
1031 | ||
1032 | * Makefile.in (monitor.o): Remove the rule. | |
1033 | ||
d6541620 YQ |
1034 | 2017-09-19 Yao Qi <yao.qi@linaro.org> |
1035 | ||
1036 | * annotate.h (struct annotate_arg_emitter): Use | |
1037 | DISABLE_COPY_AND_ASSIGN. | |
1038 | * common/refcounted-object.h (refcounted_object): Likewise. | |
1039 | * completer.h (struct completion_result): Likewise. | |
1040 | * dwarf2read.c (struct dwarf2_per_objfile): Likewise. | |
1041 | * filename-seen-cache.h (filename_seen_cache): Likewise. | |
1042 | * gdbcore.h (thread_section_name): Likewise. | |
1043 | * gdb_regex.h (compiled_regex): Likewise. | |
1044 | * gdbthread.h (scoped_restore_current_thread): Likewise. | |
1045 | * inferior.h (scoped_restore_current_inferior): Likewise. | |
1046 | * jit.c (jit_reader): Likewise. | |
1047 | * linespec.h (struct linespec_result): Likewise. | |
1048 | * mi/mi-parse.h (struct mi_parse): Likewise. | |
1049 | * nat/fork-inferior.c (execv_argv): Likewise. | |
1050 | * progspace.h (scoped_restore_current_program_space): Likewise. | |
1051 | * python/python-internal.h (class gdbpy_enter): Likewise. | |
1052 | * regcache.h (regcache): Likewise. | |
1053 | * target-descriptions.c (struct tdesc_reg): Likewise. | |
1054 | (struct tdesc_type): Likewise. | |
1055 | (struct tdesc_feature): Likewise. | |
1056 | * ui-out.h (ui_out_emit_type): Likewise. | |
1057 | ||
0615127c SM |
1058 | 2017-09-18 Simon Marchi <simon.marchi@ericsson.com> |
1059 | ||
1060 | * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove | |
1061 | label abort_expression. | |
1062 | ||
5e187554 SM |
1063 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
1064 | ||
1065 | * common/buffer.c (buffer_xml_printf): Adjust. | |
1066 | * common/xml-utils.c (xml_escape_text): Change return type to | |
1067 | std::string, update code accordingly. | |
1068 | * common/xml-utils.h (xml_escape_text): Change return type to | |
1069 | std::string. | |
1070 | * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust. | |
1071 | * windows-tdep.c (windows_xfer_shared_library): Adjust. | |
1072 | * unittests/xml-utils-selftests.c (test_xml_escape_text): | |
1073 | Adjust. | |
1074 | ||
c3d7b541 SM |
1075 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
1076 | ||
1077 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file. | |
1078 | (SUBDIR_UNITTESTS_OBS): Add new object file. | |
1079 | * unittests/xml-utils-selftests.c: New file. | |
1080 | ||
1526853e SM |
1081 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
1082 | ||
1083 | * common/selftest.h (selftest): New struct/interface. | |
1084 | (register_test): Add name parameter, add new overload. | |
1085 | (run_tests): Add filter parameter. | |
1086 | (for_each_selftest_ftype): New typedef. | |
1087 | (for_each_selftest): New declaration. | |
1088 | * common/selftest.c (tests): Change type to | |
1089 | map<string, unique_ptr<selftest>>. | |
1090 | (simple_selftest): New struct. | |
1091 | (register_test): New function. | |
1092 | (register_test): Add name parameter and use it. | |
1093 | (run_tests): Add filter parameter and use it. Add prints. | |
1094 | Adjust to vector -> map change. | |
1095 | * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when | |
1096 | registering selftests. | |
1097 | * arm-tdep.c (_initialize_arm_tdep): Likewise. | |
1098 | * disasm-selftests.c (_initialize_disasm_selftests): Likewise. | |
1099 | * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise. | |
1100 | * dwarf2loc.c (_initialize_dwarf2loc): Likewise. | |
1101 | * findvar.c (_initialize_findvar): Likewise. | |
1102 | * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise. | |
1103 | * maint.c (maintenance_selftest): Update call to run_tests. | |
1104 | (maintenance_info_selftests): New function. | |
1105 | (_initialize_maint_cmds): Register "maintenance info selftests" | |
1106 | command. Update "maintenance selftest" doc. | |
1107 | * regcache.c (_initialize_regcache): Add names when registering | |
1108 | selftests. | |
1109 | * rust-exp.y (_initialize_rust_exp): Likewise. | |
1110 | * selftest-arch.c (gdbarch_selftest): New struct. | |
1111 | (gdbarch_tests): Remove. | |
1112 | (register_test_foreach_arch): Add name parameter. Call | |
1113 | register_test. | |
1114 | (tests_with_arch): Remove, move most content to | |
1115 | gdbarch_selftest::operator(). | |
1116 | (_initialize_selftests_foreach_arch): Remove. | |
1117 | * selftest-arch.h (register_test_foreach_arch): Add name | |
1118 | parameter. | |
1119 | (run_tests_with_arch): New declaration. | |
1120 | * utils-selftests.c (_initialize_utils_selftests): Add names | |
1121 | when registering selftests. | |
1122 | * utils.c (_initialize_utils): Likewise. | |
1123 | * unittests/array-view-selftests.c | |
1124 | (_initialize_array_view_selftests): Likewise. | |
1125 | * unittests/environ-selftests.c (_initialize_environ_selftests): | |
1126 | Likewise. | |
1127 | * unittests/function-view-selftests.c | |
1128 | (_initialize_function_view_selftests): Likewise. | |
1129 | * unittests/offset-type-selftests.c | |
1130 | (_initialize_offset_type_selftests): Likewise. | |
1131 | * unittests/optional-selftests.c | |
1132 | (_initialize_optional_selftests): Likewise. | |
1133 | * unittests/scoped_restore-selftests.c | |
1134 | (_initialize_scoped_restore_selftests): Likewise. | |
1135 | * NEWS: Document "maintenance selftest" and "maint info | |
1136 | selftests". | |
1137 | ||
5846367a SM |
1138 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
1139 | ||
1140 | * mi/mi-main.c (mi_load_progress): Restore current_uiout using a | |
1141 | scoped_restore. | |
1142 | ||
bd77e8ff SM |
1143 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
1144 | ||
1145 | * mi/mi-main.c (mi_load_progress): Make uiout variable | |
1146 | a unique_ptr. | |
1147 | ||
26a67918 PA |
1148 | 2017-09-15 Pedro Alves <palves@redhat.com> |
1149 | ||
1150 | * compile/compile-c-types.c (convert_enum, convert_int) | |
1151 | (convert_float): Adjust to refer to int_type_v0 and float_type_v0. | |
1152 | ||
3f8a7804 SM |
1153 | 2017-09-15 Simon Marchi <simon.marchi@ericsson.com> |
1154 | ||
1155 | * dwarf2read.c (copy_string): Remove. | |
1156 | (parse_macro_definition): Replace copy_string with savestring. | |
1157 | ||
8d200706 YQ |
1158 | 2017-09-15 Yao Qi <yao.qi@linaro.org> |
1159 | ||
1160 | * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to | |
1161 | gdb_target_obs. | |
1162 | (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*): | |
1163 | Likewise. | |
1164 | (i[34567]86-*-linux*): Likewise. | |
1165 | ||
d185219d SM |
1166 | 2017-09-14 Simon Marchi <simon.marchi@ericsson.com> |
1167 | ||
1168 | * dwarf2expr.h (dwarf_stack_value): Add constructor. | |
1169 | (dwarf_expr_context) <~dwarf_expr_context>: Define as default. | |
1170 | <stack>: Change type to std::vector. | |
1171 | <stack_len, stack_allocated>: Remove. | |
1172 | <grow_stack>: Remove. | |
1173 | * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust. | |
1174 | (dwarf_expr_context::~dwarf_expr_context): Remove. | |
1175 | (dwarf_expr_context::grow_stack): Remove. | |
1176 | (dwarf_expr_context::push): Adjust. | |
1177 | (dwarf_expr_context::pop): Adjust. | |
1178 | (dwarf_expr_context::fetch): Adjust. | |
1179 | (dwarf_expr_context::fetch_in_stack_memory): Adjust. | |
1180 | (dwarf_expr_context::stack_empty_p): Adjust. | |
1181 | (dwarf_expr_context::execute_stack_op): Adjust. | |
1182 | ||
eccd80d6 SM |
1183 | 2017-09-14 Simon Marchi <simon.marchi@ericsson.com> |
1184 | ||
1185 | * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change | |
1186 | return type to bool. | |
1187 | * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise. | |
1188 | ||
69009882 SM |
1189 | 2017-09-14 Simon Marchi <simon.marchi@ericsson.com> |
1190 | ||
1191 | * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>: | |
1192 | Change type to bool. | |
1193 | (dwarf_stack_value) <in_stack_memory>: Likewise. | |
1194 | (dwarf_expr_context) <push_address>: Change parameter type to | |
1195 | bool. | |
1196 | <fetch_in_stack_memory>: Change return type to bool. | |
1197 | <push>: Change parameter type to bool. | |
1198 | * dwarf2expr.c (dwarf_expr_context::push): Change parameter type | |
1199 | to bool. | |
1200 | (dwarf_expr_context::push_address): Likewise. | |
1201 | (dwarf_expr_context::fetch_in_stack_memory): Change return type | |
1202 | to bool. | |
1203 | (dwarf_expr_context::execute_stack_op): Adjust. | |
1204 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust. | |
1205 | ||
1e467161 SM |
1206 | 2017-09-14 Simon Marchi <simon.marchi@ericsson.com> |
1207 | ||
1208 | * dwarf2expr.h (struct dwarf_expr_piece): Move up. | |
1209 | (struct dwarf_expr_context) <n_pieces>: Remove. | |
1210 | <pieces>: Change type to std::vector. | |
1211 | * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust. | |
1212 | (dwarf_expr_context::~dwarf_expr_context): Don't manually free | |
1213 | pieces. | |
1214 | (dwarf_expr_context::add_piece): Adjust. | |
1215 | * dwarf2loc.c (struct piece_closure): Initialize fields. | |
1216 | <n_pieces>: Remove. | |
1217 | <pieces>: Change type to std::vector. | |
1218 | (allocate_piece_closure): Adjust, change parameter to | |
1219 | std::vector rvalue and std::move it to piece_closure. | |
1220 | (rw_pieced_value): Adjust. | |
1221 | (check_pieced_synthetic_pointer): Adjust. | |
1222 | (indirect_synthetic_pointer): Adjust. | |
1223 | (coerce_pieced_ref): Adjust. | |
1224 | (free_pieced_value_closure): Adjust. Use delete to free | |
1225 | piece_closure. | |
1226 | (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces | |
1227 | to allocate_piece_closure. | |
1228 | (dwarf2_loc_desc_get_symbol_read_needs): Adjust. | |
1229 | ||
0782db84 SM |
1230 | 2017-09-12 Simon Marchi <simon.marchi@ericsson.com> |
1231 | ||
1232 | * probe.h (probe_ops_cp): Remove typedef. | |
1233 | (DEF_VEC_P (probe_ops_cp)): Remove. | |
1234 | (all_probe_ops): Change type to std::vector. | |
1235 | * probe.c (info_probes_for_ops): Adjust to vector change. | |
1236 | (probe_linespec_to_ops): Likewise. | |
1237 | (all_probe_ops): Change type to std::vector. | |
1238 | (_initialize_probe): Adjust to vector change. | |
1239 | * dtrace-probe.c (_initialize_dtrace_probe): Likewise. | |
1240 | * elfread.c (elf_get_probes): Likewise. | |
1241 | * stap-probe.c (_initialize_stap_probe): Likewise. | |
1242 | ||
1eac6bea SM |
1243 | 2017-09-12 Simon Marchi <simon.marchi@ericsson.com> |
1244 | ||
1245 | * probe.h (struct bound_probe): Define constructors. | |
1246 | * probe.c (bound_probe_s): Remove typedef. | |
1247 | (DEF_VEC_O (bound_probe_s)): Remove VEC. | |
1248 | (collect_probes): Change return type to std::vector, remove | |
1249 | cleanup. | |
1250 | (compare_probes): Return bool, change parameter type. Change | |
1251 | semantic to "less than". | |
1252 | (gen_ui_out_table_header_info): Change parameter to std::vector | |
1253 | and update. | |
1254 | (exists_probe_with_pops): Likewise. | |
1255 | (info_probes_for_ops): Update to std::vector change. | |
1256 | (enable_probes_command): Likewise. | |
1257 | (disable_probes_command): Likewise. | |
1258 | ||
aaa63a31 SM |
1259 | 2017-09-12 Simon Marchi <simon.marchi@ericsson.com> |
1260 | ||
1261 | * probe.h (struct probe_ops) <get_probes>: Change parameter from | |
1262 | vec to std::vector. | |
1263 | * probe.c (parse_probes_in_pspace): Update. | |
1264 | (find_probes_in_objfile): Update. | |
1265 | (find_probe_by_pc): Update. | |
1266 | (collect_probes): Update. | |
1267 | (probe_any_get_probes): Update. | |
1268 | * symfile.h (struct sym_probe_fns) <sym_get_probes> Change | |
1269 | return type to reference to std::vector. | |
1270 | * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to | |
1271 | std::vector and update. | |
1272 | (dtrace_process_dof): Likewise. | |
1273 | (dtrace_get_probes): Likewise. | |
1274 | * elfread.c (elf_get_probes): Change return type to std::vector, | |
1275 | store an std::vector in bfd_data. | |
1276 | (probe_key_free): Update to std::vector. | |
1277 | * stap-probe.c (handle_stap_probe): Change parameter to | |
1278 | std::vector and update. | |
1279 | (stap_get_probes): Likewise. | |
1280 | * symfile-debug.c (debug_sym_get_probes): Change return type to | |
1281 | std::vector and update. | |
1282 | ||
cb85b21b TT |
1283 | 2017-09-11 Tom Tromey <tom@tromey.com> |
1284 | ||
1285 | * breakpoint.c (program_breakpoint_here_p): Update. | |
1286 | * target.c (make_scoped_restore_show_memory_breakpoints): Rename | |
1287 | from make_show_memory_breakpoints_cleanup. Return a | |
1288 | scoped_restore_tmpl<int>. | |
1289 | (restore_show_memory_breakpoints): Remove. | |
1290 | * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update. | |
1291 | * mem-break.c (memory_validate_breakpoint): Update. | |
1292 | * ia64-tdep.c (ia64_memory_insert_breakpoint): Update. | |
1293 | (ia64_memory_remove_breakpoint): Update. | |
1294 | (ia64_breakpoint_from_pc): Update. | |
1295 | * target.h (make_scoped_restore_show_memory_breakpoints): Rename | |
1296 | from make_show_memory_breakpoints_cleanup. | |
1297 | ||
8fbc99ef TT |
1298 | 2017-09-11 Tom Tromey <tom@tromey.com> |
1299 | ||
1300 | * d-namespace.c (d_lookup_symbol): Use std::string. | |
1301 | (find_symbol_in_baseclass): Likewise. | |
1302 | ||
50feb4bd TT |
1303 | 2017-09-11 Tom Tromey <tom@tromey.com> |
1304 | ||
1305 | * ctf.c (ctf_start): Use std::string. | |
1306 | ||
c6dc63a1 TT |
1307 | 2017-09-11 Tom Tromey <tom@tromey.com> |
1308 | ||
1309 | * ada-lang.c (is_known_support_routine): Update. | |
1310 | (ada_unhandled_exception_name_addr_from_raise): Update. | |
1311 | * guile/scm-frame.c (gdbscm_frame_name): Update. | |
1312 | * python/py-frame.c (frapy_name): Update. | |
1313 | (frapy_function): Update. | |
1314 | * stack.h (find_frame_funname): Update. | |
1315 | * stack.c (find_frame_funname): Return unique_xmalloc_ptr. | |
1316 | (print_frame): Update. | |
1317 | ||
d6b9b80f TT |
1318 | 2017-09-11 Tom Tromey <tom@tromey.com> |
1319 | ||
1320 | * findcmd.c (put_bits): Take a gdb::byte_vector. | |
1321 | (parse_find_args): Return gdb::byte_vector. "args" now const. | |
1322 | Remove "pattern_bufp" and "pattern_lenp" parameters. Remove | |
1323 | cleanups. | |
1324 | (find_command): Update. | |
1325 | ||
a9921622 TT |
1326 | 2017-09-11 Tom Tromey <tom@tromey.com> |
1327 | ||
1328 | * cli/cli-script.c (class scoped_restore_hook_in): New. | |
1329 | (clear_hook_in_cleanup): Remove. | |
1330 | (execute_cmd_pre_hook, execute_cmd_post_hook): Use | |
1331 | scoped_restore_hook_in. | |
1332 | ||
be0d7abb TT |
1333 | 2017-09-11 Tom Tromey <tom@tromey.com> |
1334 | ||
1335 | * cli/cli-script.c (restore_interp): Remove. | |
1336 | (read_command_lines): Use scoped_restore_interp. | |
1337 | * interps.c (scoped_restore_interp::set_temp): Rename from | |
1338 | interp_set_temp. | |
1339 | * interps.h (class scoped_restore_interp): New. | |
1340 | (interp_set_temp): Remove. | |
1341 | ||
00f675ff TT |
1342 | 2017-09-11 Tom Tromey <tom@tromey.com> |
1343 | ||
1344 | * mi/mi-cmd-catch.c (mi_cmd_catch_assert) | |
1345 | (mi_cmd_catch_exception, mi_catch_load_unload): Update. | |
1346 | * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a | |
1347 | scoped_restore. | |
1348 | (mi_cmd_break_insert_1): Update. | |
1349 | * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a | |
1350 | scoped_restore. | |
1351 | ||
cb791d59 TT |
1352 | 2017-09-11 Tom Tromey <tom@tromey.com> |
1353 | ||
1354 | * demangle.c (demangle_command): Update. | |
1355 | * breakpoint.c (disable_command): Update. | |
1356 | (enable_command): Update. | |
1357 | (find_location_by_number): Make "number" const. Use | |
1358 | get_number_trailer. | |
1359 | * cli/cli-utils.c (extract_arg): Return std::string. | |
1360 | * probe.c (parse_probe_linespec): Update. Change types. | |
1361 | (collect_probes): Take string arguments. | |
1362 | (parse_probe_linespec): Likewise. | |
1363 | (info_probes_for_ops): Update. | |
1364 | (enable_probes_command): Update. | |
1365 | (disable_probes_command): Update. | |
1366 | * break-catch-sig.c (catch_signal_split_args): Update. | |
1367 | * mi/mi-parse.c (mi_parse): Update. | |
1368 | ||
2039bd9f TT |
1369 | 2017-09-11 Tom Tromey <tom@tromey.com> |
1370 | ||
1371 | * language.h (language_enum): Make argument const. | |
1372 | * language.c (language_enum): Make argument const. | |
1373 | ||
f1735a53 TT |
1374 | 2017-09-11 Tom Tromey <tom@tromey.com> |
1375 | ||
1376 | * common/common-utils.h (skip_to_space): Remove macro, redeclare | |
1377 | as function. | |
1378 | (skip_to_space): Rename from skip_to_space_const. | |
1379 | * common/common-utils.c (skip_to_space): New function. | |
1380 | (skip_to_space): Rename from skip_to_space_const. | |
1381 | * cli/cli-utils.h (get_number): Rename from get_number_const. | |
1382 | (extract_arg): Rename from extract_arg_const. | |
1383 | * cli/cli-utils.c (get_number): Rename from get_number_const. | |
1384 | (extract_arg): Rename from extract_arg_const. | |
1385 | (number_or_range_parser::get_number): Use ::get_number. | |
1386 | * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c, | |
1387 | break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c, | |
1388 | cli/cli-script.c, cli/cli-setshow.c, compile/compile.c, | |
1389 | completer.c, demangle.c, disasm.c, findcmd.c, linespec.c, | |
1390 | linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c, | |
1391 | minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c, | |
1392 | python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c, | |
1393 | stap-probe.c, tid-parse.c, tracepoint.c: Update all callers. | |
1394 | ||
7d221d74 TT |
1395 | 2017-09-11 Tom Tromey <tom@tromey.com> |
1396 | ||
1397 | * python/python.c (do_start_initialization): Use | |
1398 | py-event-types.def to initialize types. | |
1399 | Define all object type structures. | |
1400 | * python/python-internal.h: Don't declare event initialization | |
1401 | functions. | |
1402 | * python/py-threadevent.c (thread_event_object_type): Don't | |
1403 | define. | |
1404 | * python/py-stopevent.c (stop_event_object_type): Don't define. | |
1405 | * python/py-signalevent.c (signal_event_object_type): Don't | |
1406 | declare or define. | |
1407 | * python/py-newobjfileevent.c (new_objfile_event_object_type) | |
1408 | (clear_objfiles_event_object_type): Don't declare or define. | |
1409 | * python/py-infevents.c (inferior_call_pre_event_object_type) | |
1410 | (inferior_call_post_event_object_type) | |
1411 | (register_changed_event_object_type) | |
1412 | (memory_changed_event_object_type): Don't declare or define. | |
1413 | * python/py-inferior.c (new_thread_event_object_type) | |
1414 | (new_inferior_event_object_type) | |
1415 | (inferior_deleted_event_object_type): Don't declare or define. | |
1416 | * python/py-exitedevent.c (exited_event_object_type): Don't | |
1417 | declare or define. | |
1418 | * python/py-evts.c (gdbpy_initialize_py_events): Use | |
1419 | py-all-events.def. | |
1420 | * python/py-events.h (thread_event_object_type): Don't declare. | |
1421 | (events_object): Use py-all-events.def. | |
1422 | * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use | |
1423 | py-event-types.def. | |
1424 | * python/py-event-types.def: New file. | |
1425 | * python/py-continueevent.c (create_continue_event_object): Don't | |
1426 | declare or define. | |
1427 | * python/py-bpevent.c (breakpoint_event_object_type): Don't | |
1428 | declare or define. | |
1429 | * python/py-all-events.def: New file. | |
1430 | ||
35c61a1d TT |
1431 | 2017-09-11 Tom Tromey <tom@tromey.com> |
1432 | ||
1433 | * python/py-threadevent.c (create_thread_event_object): Return | |
1434 | gdbpy_ref. | |
1435 | * python/py-stopevent.h (create_stop_event_object) | |
1436 | (create_breakpoint_event_object, create_signal_event_object): | |
1437 | Update. | |
1438 | * python/py-stopevent.c (create_stop_event_object): Return | |
1439 | gdbpy_ref. | |
1440 | (emit_stop_event): Update. | |
1441 | * python/py-signalevent.c (create_signal_event_object): Return | |
1442 | gdbpy_ref. | |
1443 | * python/py-infevents.c (create_inferior_call_event_object): | |
1444 | Update. | |
1445 | * python/py-event.h (create_event_object) | |
1446 | (create_thread_event_object): Update. | |
1447 | * python/py-event.c (create_event_object): Return gdbpy_ref. | |
1448 | * python/py-continueevent.c: Return gdbpy_ref. | |
1449 | * python/py-bpevent.c (create_breakpoint_event_object): Return | |
1450 | gdbpy_ref. | |
1451 | ||
7c96f8c1 TT |
1452 | 2017-09-11 Tom Tromey <tom@tromey.com> |
1453 | ||
1454 | PR python/15622: | |
1455 | * NEWS: Add entry. | |
1456 | * python/python.c (do_start_initialization): Initialize new event | |
1457 | types. | |
1458 | * python/python-internal.h (gdbpy_initialize_new_inferior_event) | |
1459 | (gdbpy_initialize_inferior_deleted_event) | |
1460 | (gdbpy_initialize_new_thread_event): Declare. | |
1461 | * python/py-threadevent.c (create_thread_event_object): Add option | |
1462 | "thread" parameter. | |
1463 | * python/py-inferior.c (new_thread_event_object_type) | |
1464 | (new_inferior_event_object_type) | |
1465 | (inferior_deleted_event_object_type): Declare. | |
1466 | (python_new_inferior, python_inferior_deleted): New functions. | |
1467 | (add_thread_object): Emit new_thread event. | |
1468 | (gdbpy_initialize_inferior): Attach new functions to corresponding | |
1469 | observers. | |
1470 | (new_thread, new_inferior, inferior_deleted): Define new event | |
1471 | types. | |
1472 | * python/py-evts.c (gdbpy_initialize_py_events): Add new | |
1473 | registries. | |
1474 | * python/py-events.h (events_object) <new_inferior, | |
1475 | inferior_deleted, new_thread>: New fields. | |
1476 | * python/py-event.h (create_thread_event_breakpoint): Add optional | |
1477 | "thread" parameter. | |
1478 | ||
72542b8e AB |
1479 | 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com> |
1480 | ||
1481 | * utils.c (abort_with_message): Don't compare gdb_stderr to NULL, | |
1482 | check current_ui instead. | |
1483 | (internal_vproblem): Likewise. | |
1484 | ||
0d64823e SM |
1485 | 2017-09-09 Simon Marchi <simon.marchi@ericsson.com> |
1486 | ||
1487 | * thread.c (print_thread_info_1): Remove unnecessary calls to | |
1488 | uiout->is_mi_like_p. | |
1489 | ||
eb1e02fd TT |
1490 | 2017-09-09 Tom Tromey <tom@tromey.com> |
1491 | ||
1492 | * namespace.h (add_using_directive): Update. | |
1493 | * namespace.c (add_using_directive): Change type of excludes to | |
1494 | std::vector. | |
1495 | * dwarf2read.c (read_import_statement): Use std::vector. | |
1496 | (read_namespace): Update. | |
1497 | * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update. | |
1498 | ||
0fc21fd8 TT |
1499 | 2017-09-09 Tom Tromey <tom@tromey.com> |
1500 | ||
1501 | * linespec.c (create_sals_line_offset): Use gdb::def_vector. | |
1502 | ||
49663d05 TT |
1503 | 2017-09-09 Tom Tromey <tom@tromey.com> |
1504 | ||
1505 | * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector. | |
1506 | ||
0b868b60 TT |
1507 | 2017-09-09 Tom Tromey <tom@tromey.com> |
1508 | ||
1509 | * stack.c (func_command): Use gdb::def_vector. | |
1510 | ||
c0470d48 TT |
1511 | 2017-09-09 Tom Tromey <tom@tromey.com> |
1512 | ||
1513 | * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional, | |
1514 | ui_out_emit_list, ui_out_emit_tuple. | |
1515 | (mi_cmd_var_update): Likewise. | |
1516 | ||
ca5909c7 TT |
1517 | 2017-09-09 Tom Tromey <tom@tromey.com> |
1518 | ||
1519 | * mi/mi-interp.c (mi_user_selected_context_changed): Use | |
1520 | ui_out_redirect_pop. | |
1521 | * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use | |
1522 | ui_out_redirect_pop. | |
1523 | * utils.c (do_ui_out_redirect_pop) | |
1524 | (make_cleanup_ui_out_redirect_pop): Remove. | |
1525 | * top.c (execute_command_to_string): Use ui_out_redirect_pop. | |
1526 | * utils.h (make_cleanup_ui_out_redirect_pop): Remove. | |
1527 | * ui-out.h (ui_out_redirect_pop): New class. | |
1528 | ||
e6a2252a TT |
1529 | 2017-09-09 Tom Tromey <tom@tromey.com> |
1530 | ||
1531 | * mi/mi-main.c (output_cores): Use ui_out_emit_list. | |
1532 | (list_available_thread_groups, mi_cmd_list_thread_groups) | |
1533 | (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory) | |
1534 | (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected): | |
1535 | Likewise. | |
1536 | ||
393702cd TT |
1537 | 2017-09-09 Tom Tromey <tom@tromey.com> |
1538 | ||
1539 | * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use | |
1540 | ui_out_emit_tuple. | |
1541 | ||
76f9c9cf TT |
1542 | 2017-09-09 Tom Tromey <tom@tromey.com> |
1543 | ||
1544 | * target.c (flash_erase_command): Use ui_out_emit_tuple. | |
1545 | * stack.c (print_frame): Use ui_out_emit_tuple. | |
1546 | * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple. | |
1547 | (info_spu_mailbox_command, info_spu_dma_command) | |
1548 | (info_spu_proxydma_command): Likewise. | |
1549 | * mi/mi-main.c (mi_cmd_trace_frame_collected): Use | |
1550 | ui_out_emit_tuple, gdb::byte_vector, bin2hex. | |
1551 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use | |
1552 | ui_out_emit_tuple. | |
1553 | * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple. | |
1554 | ||
dc9fe180 TT |
1555 | 2017-09-09 Tom Tromey <tom@tromey.com> |
1556 | ||
1557 | * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove. | |
1558 | (class ui_out_emit_table): Update comment. | |
1559 | * ui-out.c (do_cleanup_table_end) | |
1560 | (make_cleanup_ui_out_table_begin_end): Remove. | |
1561 | * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table. | |
1562 | (info_spu_dma_cmdlist): Likewise. | |
1563 | * probe.c (info_probes_for_ops): Use ui_out_emit_table. | |
1564 | * darwin-nat-info.c (darwin_debug_regions_recurse): Use | |
1565 | ui_out_emit_table. | |
1566 | ||
f8cc3da6 TT |
1567 | 2017-09-09 Tom Tromey <tom@tromey.com> |
1568 | ||
1569 | * thread.c (print_thread_info_1): Use ui_out_emit_table, | |
1570 | ui_out_emit_list, gdb::optional. | |
1571 | ||
481695ed JB |
1572 | 2017-09-09 John Baldwin <jhb@FreeBSD.org> |
1573 | ||
1574 | * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat | |
1575 | prototype. | |
1576 | * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep | |
1577 | prototype. | |
1578 | * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep | |
1579 | prototype. | |
1580 | * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype. | |
1581 | * ada-exp.y: Remove _initialize_ada_exp prototype. | |
1582 | * ada-lang.c: Remove _initialize_ada_language prototype. | |
1583 | * ada-tasks.c: Remove _initialize_tasks prototype. | |
1584 | * addrmap.c: Remove _initialize_addrmap prototype. | |
1585 | * agent.c: Remove _initialize_agent prototype. | |
1586 | * aix-thread.c: Remove _initialize_aix_thread prototype. | |
1587 | * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype. | |
1588 | * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype. | |
1589 | * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep | |
1590 | prototype. | |
1591 | * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype. | |
1592 | * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype. | |
1593 | * alpha-tdep.c: Remove _initialize_alpha_tdep prototype. | |
1594 | * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep | |
1595 | prototype. | |
1596 | * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep | |
1597 | prototype. | |
1598 | * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype. | |
1599 | * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype. | |
1600 | * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype. | |
1601 | * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep | |
1602 | prototype. | |
1603 | * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype. | |
1604 | * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype. | |
1605 | * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype. | |
1606 | * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype. | |
1607 | * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype. | |
1608 | * amd64-tdep.c: Remove _initialize_amd64_tdep prototype. | |
1609 | * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat | |
1610 | prototype. | |
1611 | * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep | |
1612 | prototype. | |
1613 | * annotate.c: Remove _initialize_annotate prototype. | |
1614 | * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype. | |
1615 | * arc-tdep.c: Remove _initialize_arc_tdep prototype. | |
1616 | * arch-utils.c: Remove _initialize_gdbarch_utils prototype. | |
1617 | * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype. | |
1618 | * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype. | |
1619 | * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype. | |
1620 | * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype. | |
1621 | * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep | |
1622 | prototype. | |
1623 | * arm-tdep.c: Remove _initialize_arm_tdep prototype. | |
1624 | * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype. | |
1625 | * auto-load.c: Remove _initialize_auto_load prototype. | |
1626 | * auxv.c: Remove _initialize_auxv prototype. | |
1627 | * avr-tdep.c: Remove _initialize_avr_tdep prototype. | |
1628 | * ax-gdb.c: Remove _initialize_ax_gdb prototype. | |
1629 | * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype. | |
1630 | * bfin-tdep.c: Remove _initialize_bfin_tdep prototype. | |
1631 | * break-catch-sig.c: Remove _initialize_break_catch_sig prototype. | |
1632 | * break-catch-syscall.c: Remove _initialize_break_catch_syscall | |
1633 | prototype. | |
1634 | * break-catch-throw.c: Remove _initialize_break_catch_throw | |
1635 | prototype. | |
1636 | * breakpoint.c: Remove _initialize_breakpoint prototype. | |
1637 | * bsd-uthread.c: Remove _initialize_bsd_uthread prototype. | |
1638 | * btrace.c: Remove _initialize_btrace prototype. | |
1639 | * charset.c: Remove _initialize_charset prototype. | |
1640 | * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype. | |
1641 | * cli/cli-dump.c: Remove _initialize_cli_dump prototype. | |
1642 | * cli/cli-interp.c: Remove _initialize_cli_interp prototype. | |
1643 | * cli/cli-logging.c: Remove _initialize_cli_logging prototype. | |
1644 | * cli/cli-script.c: Remove _initialize_cli_script prototype. | |
1645 | * coff-pe-read.c: Remove _initialize_coff_pe_read prototype. | |
1646 | * coffread.c: Remove _initialize_coffread prototype. | |
1647 | * compile/compile.c: Remove _initialize_compile prototype. | |
1648 | * complaints.c: Remove _initialize_complaints prototype. | |
1649 | * completer.c: Remove _initialize_completer prototype. | |
1650 | * copying.awk: Remove _initialize_copying prototype. | |
1651 | * copying.c: Regenerate. | |
1652 | * core-regset.c: Remove _initialize_core_regset prototype. | |
1653 | * corefile.c: Remove _initialize_core prototype. | |
1654 | * corelow.c: Remove _initialize_corelow prototype. | |
1655 | * cp-abi.c: Remove _initialize_cp_abi prototype. | |
1656 | * cp-namespace.c: Remove _initialize_cp_namespace prototype. | |
1657 | * cp-support.c: Remove _initialize_cp_support prototype. | |
1658 | * cp-valprint.c: Remove _initialize_cp_valprint prototype. | |
1659 | * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype. | |
1660 | * cris-tdep.c: Remove _initialize_cris_tdep prototype. | |
1661 | * ctf.c: Remove _initialize_ctf prototype. | |
1662 | * d-lang.c: Remove _initialize_d_language prototype. | |
1663 | * darwin-nat-info.c: Remove _initialize_darwin_info_commands | |
1664 | prototype. | |
1665 | * darwin-nat.c: Remove _initialize_darwin_inferior prototype. | |
1666 | * dbxread.c: Remove _initialize_dbxread prototype. | |
1667 | * dcache.c: Remove _initialize_dcache prototype. | |
1668 | * demangle.c: Remove _initialize_demangler prototype. | |
1669 | * disasm-selftests.c: Remove _initialize_disasm_selftests | |
1670 | prototype. | |
1671 | * disasm.c: Remove _initialize_disasm prototype. | |
1672 | * dtrace-probe.c: Remove _initialize_dtrace_probe prototype. | |
1673 | * dummy-frame.c: Remove _initialize_dummy_frame prototype. | |
1674 | * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame | |
1675 | prototype. | |
1676 | * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype. | |
1677 | * dwarf2expr.c: Remove _initialize_dwarf2expr prototype. | |
1678 | * dwarf2loc.c: Remove _initialize_dwarf2loc prototype. | |
1679 | * dwarf2read.c: Remove _initialize_dwarf2_read prototype. | |
1680 | * elfread.c: Remove _initialize_elfread prototype. | |
1681 | * exec.c: Remove _initialize_exec prototype. | |
1682 | * extension.c: Remove _initialize_extension prototype. | |
1683 | * f-lang.c: Remove _initialize_f_language prototype. | |
1684 | * f-valprint.c: Remove _initialize_f_valprint prototype. | |
1685 | * fbsd-nat.c: Remove _initialize_fbsd_nat prototype. | |
1686 | * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype. | |
1687 | * filesystem.c: Remove _initialize_filesystem prototype. | |
1688 | * findcmd.c: Remove _initialize_mem_search prototype. | |
1689 | * fork-child.c: Remove _initialize_fork_child prototype. | |
1690 | * frame-base.c: Remove _initialize_frame_base prototype. | |
1691 | * frame-unwind.c: Remove _initialize_frame_unwind prototype. | |
1692 | * frame.c: Remove _initialize_frame prototype. | |
1693 | * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype. | |
1694 | * frv-tdep.c: Remove _initialize_frv_tdep prototype. | |
1695 | * ft32-tdep.c: Remove _initialize_ft32_tdep prototype. | |
1696 | * gcore.c: Remove _initialize_gcore prototype. | |
1697 | * gdb_bfd.c: Remove _initialize_gdb_bfd prototype. | |
1698 | * gdbarch.c: Regenerate. | |
1699 | * gdbarch.sh: Remove _initialize_gdbarch prototype. | |
1700 | * gdbtypes.c: Remove _initialize_gdbtypes prototype. | |
1701 | * gnu-nat.c: Remove _initialize_gnu_nat prototype. | |
1702 | * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype. | |
1703 | * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype. | |
1704 | * go-lang.c: Remove _initialize_go_language prototype. | |
1705 | * go32-nat.c: Remove _initialize_go32_nat prototype. | |
1706 | * guile/guile.c: Remove _initialize_guile prototype. | |
1707 | * h8300-tdep.c: Remove _initialize_h8300_tdep prototype. | |
1708 | * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype. | |
1709 | * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype. | |
1710 | * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype. | |
1711 | * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype. | |
1712 | * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype. | |
1713 | * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype. | |
1714 | * hppa-tdep.c: Remove _initialize_hppa_tdep prototype. | |
1715 | * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype. | |
1716 | * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep | |
1717 | prototype. | |
1718 | * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep | |
1719 | prototype. | |
1720 | * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype. | |
1721 | * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype. | |
1722 | * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype. | |
1723 | * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype. | |
1724 | * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype. | |
1725 | * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype. | |
1726 | * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype. | |
1727 | * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype. | |
1728 | * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype. | |
1729 | * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype. | |
1730 | * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype. | |
1731 | * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype. | |
1732 | * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype. | |
1733 | * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype. | |
1734 | * i386-tdep.c: Remove _initialize_i386_tdep prototype. | |
1735 | * i386-windows-nat.c: Remove _initialize_i386_windows_nat | |
1736 | prototype. | |
1737 | * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame | |
1738 | prototype. | |
1739 | * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype. | |
1740 | * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype. | |
1741 | * ia64-tdep.c: Remove _initialize_ia64_tdep prototype. | |
1742 | * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype. | |
1743 | * infcall.c: Remove _initialize_infcall prototype. | |
1744 | * infcmd.c: Remove _initialize_infcmd prototype. | |
1745 | * inferior.c: Remove _initialize_inferiors prototype. | |
1746 | * inflow.c: Remove _initialize_inflow prototype. | |
1747 | * infrun.c: Remove _initialize_infrun prototype. | |
1748 | * interps.c: Remove _initialize_interpreter prototype. | |
1749 | * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype. | |
1750 | * jit.c: Remove _initialize_jit prototype. | |
1751 | * language.c: Remove _initialize_language prototype. | |
1752 | * linux-fork.c: Remove _initialize_linux_fork prototype. | |
1753 | * linux-nat.c: Remove _initialize_linux_nat prototype. | |
1754 | * linux-tdep.c: Remove _initialize_linux_tdep prototype. | |
1755 | * linux-thread-db.c: Remove _initialize_thread_db prototype. | |
1756 | * lm32-tdep.c: Remove _initialize_lm32_tdep prototype. | |
1757 | * m2-lang.c: Remove _initialize_m2_language prototype. | |
1758 | * m32c-tdep.c: Remove _initialize_m32c_tdep prototype. | |
1759 | * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype. | |
1760 | * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype. | |
1761 | * m32r-tdep.c: Remove _initialize_m32r_tdep prototype. | |
1762 | * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype. | |
1763 | * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype. | |
1764 | * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype. | |
1765 | * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype. | |
1766 | * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype. | |
1767 | * m68k-tdep.c: Remove _initialize_m68k_tdep prototype. | |
1768 | * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype. | |
1769 | * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype. | |
1770 | * machoread.c: Remove _initialize_machoread prototype. | |
1771 | * macrocmd.c: Remove _initialize_macrocmd prototype. | |
1772 | * macroscope.c: Remove _initialize_macroscope prototype. | |
1773 | * maint.c: Remove _initialize_maint_cmds prototype. | |
1774 | * mdebugread.c: Remove _initialize_mdebugread prototype. | |
1775 | * memattr.c: Remove _initialize_mem prototype. | |
1776 | * mep-tdep.c: Remove _initialize_mep_tdep prototype. | |
1777 | * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype. | |
1778 | * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype. | |
1779 | * mi/mi-interp.c: Remove _initialize_mi_interp prototype. | |
1780 | * mi/mi-main.c: Remove _initialize_mi_main prototype. | |
1781 | * microblaze-linux-tdep.c: Remove | |
1782 | _initialize_microblaze_linux_tdep prototype. | |
1783 | * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype. | |
1784 | * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype. | |
1785 | * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype. | |
1786 | * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype. | |
1787 | * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype. | |
1788 | * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype. | |
1789 | * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype. | |
1790 | * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype. | |
1791 | * mips-tdep.c: Remove _initialize_mips_tdep prototype. | |
1792 | * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype. | |
1793 | * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep | |
1794 | prototype. | |
1795 | * mipsread.c: Remove _initialize_mipsread prototype. | |
1796 | * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep | |
1797 | prototype. | |
1798 | * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype. | |
1799 | * moxie-tdep.c: Remove _initialize_moxie_tdep prototype. | |
1800 | * msp430-tdep.c: Remove _initialize_msp430_tdep prototype. | |
1801 | * mt-tdep.c: Remove _initialize_mt_tdep prototype. | |
1802 | * nds32-tdep.c: Remove _initialize_nds32_tdep prototype. | |
1803 | * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep | |
1804 | prototype. | |
1805 | * nios2-tdep.c: Remove _initialize_nios2_tdep prototype. | |
1806 | * nto-procfs.c: Remove _initialize_procfs prototype. | |
1807 | * nto-tdep.c: Remove _initialize_nto_tdep prototype. | |
1808 | * objc-lang.c: Remove _initialize_objc_language prototype. | |
1809 | * objfiles.c: Remove _initialize_objfiles prototype. | |
1810 | * observer.c: Remove observer_test_first_notification_function, | |
1811 | observer_test_second_notification_function, | |
1812 | observer_test_third_notification_function, and | |
1813 | _initialize_observer prototypes. | |
1814 | * opencl-lang.c: Remove _initialize_opencl_language prototypes. | |
1815 | * osabi.c: Remove _initialize_gdb_osabi prototype. | |
1816 | * osdata.c: Remove _initialize_osdata prototype. | |
1817 | * p-valprint.c: Remove _initialize_pascal_valprint prototype. | |
1818 | * parse.c: Remove _initialize_parse prototype. | |
1819 | * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype. | |
1820 | * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype. | |
1821 | * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype. | |
1822 | * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype. | |
1823 | * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype. | |
1824 | * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype. | |
1825 | * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype. | |
1826 | * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype. | |
1827 | * printcmd.c: Remove _initialize_printcmd prototype. | |
1828 | * probe.c: Remove _initialize_probe prototype. | |
1829 | * proc-api.c: Remove _initialize_proc_api prototype. | |
1830 | * proc-events.c: Remove _initialize_proc_events prototype. | |
1831 | * proc-service.c: Remove _initialize_proc_service prototype. | |
1832 | * procfs.c: Remove _initialize_procfs prototype. | |
1833 | * psymtab.c: Remove _initialize_psymtab prototype. | |
1834 | * python/python.c: Remove _initialize_python prototype. | |
1835 | * ravenscar-thread.c: Remove _initialize_ravenscar prototype. | |
1836 | * record-btrace.c: Remove _initialize_record_btrace prototype. | |
1837 | * record-full.c: Remove _initialize_record_full prototype. | |
1838 | * record.c: Remove _initialize_record prototype. | |
1839 | * regcache.c: Remove _initialize_regcache prototype. | |
1840 | * reggroups.c: Remove _initialize_reggroup prototype. | |
1841 | * remote-notif.c: Remove _initialize_notif prototype. | |
1842 | * remote-sim.c: Remove _initialize_remote_sim prototype. | |
1843 | * remote.c: Remove _initialize_remote prototype. | |
1844 | * reverse.c: Remove _initialize_reverse prototype. | |
1845 | * rl78-tdep.c: Remove _initialize_rl78_tdep prototype. | |
1846 | * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype. | |
1847 | * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep | |
1848 | prototype. | |
1849 | * rs6000-nat.c: Remove _initialize_rs6000_nat prototype. | |
1850 | * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype. | |
1851 | * rust-exp.y: Remove _initialize_rust_exp prototype. | |
1852 | * rx-tdep.c: Remove _initialize_rx_tdep prototype. | |
1853 | * s390-linux-nat.c: Remove _initialize_s390_nat prototype. | |
1854 | * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype. | |
1855 | * score-tdep.c: Remove _initialize_score_tdep prototype. | |
1856 | * selftest-arch.c: Remove _initialize_selftests_foreach_arch | |
1857 | prototype. | |
1858 | * ser-go32.c: Remove _initialize_ser_dos prototype. | |
1859 | * ser-mingw.c: Remove _initialize_ser_windows prototype. | |
1860 | * ser-pipe.c: Remove _initialize_ser_pipe prototype. | |
1861 | * ser-tcp.c: Remove _initialize_ser_tcp prototype. | |
1862 | * ser-unix.c: Remove _initialize_ser_hardwire prototype. | |
1863 | * serial.c: Remove _initialize_serial prototype. | |
1864 | * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype. | |
1865 | * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype. | |
1866 | * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype. | |
1867 | * sh-tdep.c: Remove _initialize_sh_tdep prototype. | |
1868 | * skip.c: Remove _initialize_step_skip prototype. | |
1869 | * sol-thread.c: Remove _initialize_sol_thread prototype. | |
1870 | * solib-aix.c: Remove _initialize_solib_aix prototype. | |
1871 | * solib-darwin.c: Remove _initialize_darwin_solib prototype. | |
1872 | * solib-dsbt.c: Remove _initialize_dsbt_solib prototype. | |
1873 | * solib-frv.c: Remove _initialize_frv_solib prototype. | |
1874 | * solib-spu.c: Remove _initialize_spu_solib prototype. | |
1875 | * solib-svr4.c: Remove _initialize_svr4_solib prototype. | |
1876 | * solib-target.c: Remove _initialize_solib_target prototype. | |
1877 | * solib.c: Remove _initialize_solib prototype. | |
1878 | * source.c: Remove _initialize_source prototype. | |
1879 | * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype. | |
1880 | * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep | |
1881 | prototype. | |
1882 | * sparc-nat.c: Remove _initialize_sparc_nat prototype. | |
1883 | * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype. | |
1884 | * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype. | |
1885 | * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep | |
1886 | prototype. | |
1887 | * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype. | |
1888 | * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype. | |
1889 | * sparc-tdep.c: Remove _initialize_sparc_tdep prototype. | |
1890 | * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat | |
1891 | prototype. | |
1892 | * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep | |
1893 | prototype. | |
1894 | * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat | |
1895 | prototype. | |
1896 | * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep | |
1897 | prototype. | |
1898 | * sparc64-nat.c: Remove _initialize_sparc64_nat prototype. | |
1899 | * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat | |
1900 | prototype. | |
1901 | * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep | |
1902 | prototype. | |
1903 | * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat | |
1904 | prototype. | |
1905 | * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep | |
1906 | prototype. | |
1907 | * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep | |
1908 | prototype. | |
1909 | * spu-linux-nat.c: Remove _initialize_spu_nat prototype. | |
1910 | * spu-multiarch.c: Remove _initialize_spu_multiarch prototype. | |
1911 | * spu-tdep.c: Remove _initialize_spu_tdep prototype. | |
1912 | * stabsread.c: Remove _initialize_stabsread prototype. | |
1913 | * stack.c: Remove _initialize_stack prototype. | |
1914 | * stap-probe.c: Remove _initialize_stap_probe prototype. | |
1915 | * std-regs.c: Remove _initialize_frame_reg prototype. | |
1916 | * symfile-debug.c: Remove _initialize_symfile_debug prototype. | |
1917 | * symfile-mem.c: Remove _initialize_symfile_mem prototype. | |
1918 | * symfile.c: Remove _initialize_symfile prototype. | |
1919 | * symmisc.c: Remove _initialize_symmisc prototype. | |
1920 | * symtab.c: Remove _initialize_symtab prototype. | |
1921 | * target-dcache.c: Remove _initialize_target_dcache prototype. | |
1922 | * target-descriptions.c: Remove _initialize_target_descriptions | |
1923 | prototype. | |
1924 | * thread.c: Remove _initialize_thread prototype. | |
1925 | * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep | |
1926 | prototype. | |
1927 | * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype. | |
1928 | * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype. | |
1929 | * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep | |
1930 | prototype. | |
1931 | * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype. | |
1932 | * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype. | |
1933 | * tracefile.c: Remove _initialize_tracefile prototype. | |
1934 | * tracepoint.c: Remove _initialize_tracepoint prototype. | |
1935 | * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype. | |
1936 | * tui/tui-interp.c: Remove _initialize_tui_interp prototype. | |
1937 | * tui/tui-layout.c: Remove _initialize_tui_layout prototype. | |
1938 | * tui/tui-regs.c: Remove _initialize_tui_regs prototype. | |
1939 | * tui/tui-stack.c: Remove _initialize_tui_stack prototype. | |
1940 | * tui/tui-win.c: Remove _initialize_tui_win prototype. | |
1941 | * tui/tui.c: Remove _initialize_tui prototype. | |
1942 | * typeprint.c: Remove _initialize_typeprint prototype. | |
1943 | * user-regs.c: Remove _initialize_user_regs prototype. | |
1944 | * utils.c: Remove _initialize_utils prototype. | |
1945 | * v850-tdep.c: Remove _initialize_v850_tdep prototype. | |
1946 | * valarith.c: Remove _initialize_valarith prototype. | |
1947 | * valops.c: Remove _initialize_valops prototype. | |
1948 | * valprint.c: Remove _initialize_valprint prototype. | |
1949 | * value.c: Remove _initialize_values prototype. | |
1950 | * varobj.c: Remove _initialize_varobj prototype. | |
1951 | * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype. | |
1952 | * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype. | |
1953 | * vax-tdep.c: Remove _initialize_vax_tdep prototype. | |
1954 | * windows-nat.c: Remove _initialize_windows_nat, | |
1955 | _initialize_check_for_gdb_ini, and _initialize_loadable | |
1956 | prototypes. | |
1957 | * windows-tdep.c: Remove _initialize_windows_tdep prototype. | |
1958 | * xcoffread.c: Remove _initialize_xcoffread prototype. | |
1959 | * xml-support.c: Remove _initialize_xml_support prototype. | |
1960 | * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype. | |
1961 | * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat | |
1962 | prototype. | |
1963 | * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep | |
1964 | prototype. | |
1965 | * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype. | |
1966 | ||
a611b5cb KS |
1967 | 2017-09-08 Keith Seitz <keiths@redhat.com> |
1968 | ||
1969 | * dwarf2read.c (struct field_info) <fnfields>: Remove unused | |
1970 | field. | |
1971 | ||
469412dd CW |
1972 | 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com> |
1973 | ||
1974 | * f-valprint.c (f_val_print): Remove check for one byte | |
1975 | sized integers. Remove printing of character type. | |
1976 | ||
a5ad232b FP |
1977 | 2017-09-08 Frank Penczek <frank.penczek@intel.com> |
1978 | Christoph Weinmann <christoph.t.weinmann@intel.com> | |
1979 | Bernhard Heckel <bernhard.heckel@intel.com> | |
1980 | ||
1981 | * f-typeprint.c (f_type_print_base): Use fprintfi_filtered | |
1982 | to maintain proper indentation when printing pointers/refs. | |
1983 | ||
e5014227 JB |
1984 | 2017-09-07 Joel Brobecker <brobecker@adacore.com> |
1985 | ||
1986 | GDB 8.0.1 released. | |
1987 | ||
63c99141 JB |
1988 | 2017-09-07 Joel Brobecker <brobecker@adacore.com> |
1989 | ||
1990 | * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell. | |
1991 | ||
69c1e056 TT |
1992 | 2017-09-05 Tom Tromey <tom@tromey.com> |
1993 | ||
1994 | * parse.c (funcall_chain): Now a std::vector. | |
1995 | (start_arglist, end_arglist): Simplify. | |
1996 | (free_funcalls): Remove. | |
1997 | (parse_exp_in_context_1): Remove cleanup. | |
1998 | ||
fef704bf TT |
1999 | 2017-09-05 Tom Tromey <tom@tromey.com> |
2000 | ||
2001 | * go-exp.y (go_parse): Don't create a cleanup. | |
2002 | ||
5613c585 TT |
2003 | 2017-09-05 Tom Tromey <tom@tromey.com> |
2004 | ||
2005 | * d-exp.y (PrimaryExpression): Use std::string. | |
2006 | (d_parse): Don't create a cleanup. | |
2007 | ||
eae49211 TT |
2008 | 2017-09-05 Tom Tromey <tom@tromey.com> |
2009 | ||
2010 | * utils.c (do_clear_parser_state): Remove. | |
2011 | (make_cleanup_clear_parser_state): Remove. | |
2012 | * p-exp.y (pascal_parse): Use scoped_restore. | |
2013 | * m2-exp.y (m2_parse): Use scoped_restore. | |
2014 | * f-exp.y (f_parse): Use scoped_restore. | |
2015 | * d-exp.y (d_parse): Use scoped_restore. | |
2016 | * c-exp.y (c_parse): Use scoped_restore. | |
2017 | * ada-exp.y (ada_parse): Use scoped_restore. | |
2018 | * utils.h (make_cleanup_clear_parser_state): Remove. | |
2019 | ||
73b9be8b KS |
2020 | 2017-09-06 Keith Seitz <keiths@redhat.com> |
2021 | ||
2022 | * dwarf2read.c (dw2_linkage_name_attr): New function. | |
2023 | (dw2_linkage_name): New function. | |
2024 | (dwarf2_compute_name, dwarf2_physname, read_call_site_scope) | |
2025 | (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name. | |
2026 | (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr. | |
2027 | ||
a102602b KR |
2028 | 2017-09-06 Kamil Rytarowski <n54@gmx.com> |
2029 | ||
2030 | * config/djgpp/djconfig.sh: Correct shell portability issue. | |
2031 | ||
28ad437d KR |
2032 | 2017-09-06 Kamil Rytarowski <n54@gmx.com> |
2033 | ||
2034 | * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD. | |
2035 | ||
351787dd JB |
2036 | 2017-09-06 John Baldwin <jhb@FreeBSD.org> |
2037 | ||
2038 | * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c. | |
2039 | * NEWS: Mention new FreeBSD/mips native configuration. | |
2040 | * configure.host: Add aarch64*-*-freebsd*. | |
2041 | * configure.nat: Likewise. | |
2042 | * aarch64-fbsd-nat.c: New file. | |
2043 | ||
c0f84956 JB |
2044 | 2017-09-06 John Baldwin <jhb@FreeBSD.org> |
2045 | ||
2046 | * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o. | |
2047 | (ALLDEPFILES): Add aarch64-fbsd-tdep.c. | |
2048 | * NEWS: Mention new FreeBSD/aarch64 target. | |
2049 | * configure.tgt: Add aarch64*-*-freebsd*. | |
2050 | * aarch64-fbsd-tdep.c: New file. | |
2051 | * aarch64-fbsd-tdep.h: New file. | |
2052 | ||
7610297a KR |
2053 | 2017-09-06 Kamil Rytarowski <n54@gmx.com> |
2054 | ||
2055 | * MAINTAINERS (Write After Approval): Add Kamil Rytarowski. | |
2056 | ||
fbd1b771 JK |
2057 | 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
2058 | ||
2059 | * parse.c (find_minsym_type_and_address): Don't relocate addresses | |
2060 | of TLS symbols. | |
2061 | ||
5ca79eae PW |
2062 | 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2063 | ||
2064 | * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init | |
2065 | call. | |
2066 | ||
bf93d7ba SM |
2067 | 2017-09-05 Simon Marchi <simon.marchi@ericsson.com> |
2068 | ||
2069 | * infrun.c (follow_exec): Call add_thread after | |
2070 | target_find_description. | |
2071 | ||
1bb7c059 SM |
2072 | 2017-09-05 Simon Marchi <simon.marchi@ericsson.com> |
2073 | ||
2074 | * infrun.c (handle_inferior_event_1): When exec'ing, read | |
2075 | stop_pc after follow_exec. | |
2076 | ||
fc809827 SM |
2077 | 2017-09-05 Simon Marchi <simon.marchi@ericsson.com> |
2078 | ||
2079 | * remote.c (process_g_packet): Update error message. | |
2080 | ||
d2fcdd85 YQ |
2081 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2082 | ||
2083 | * configure.tgt (gdb_target_obs): Add i386.o for x86_64-* | |
2084 | targets. | |
2085 | ||
e69570ee PA |
2086 | 2017-09-05 Pedro Alves <palves@redhat.com> |
2087 | ||
2088 | * eval.c (eval_call, evaluate_funcall): New functions, factored | |
2089 | out from ... | |
2090 | (evaluate_subexp_standard): ... this. | |
2091 | ||
22916b07 YQ |
2092 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2093 | ||
2094 | * amd64-tdep.c (amd64_target_description): Create target | |
2095 | descriptions. | |
2096 | (_initialize_amd64_tdep): Don't call functions | |
2097 | initialize_tdesc_amd64_*. Add self tests. | |
2098 | * arch/amd64.c (amd64_create_target_description): Add parameter | |
2099 | is_linux. Call set_tdesc_osabi if is_linux is true. | |
2100 | * arch/amd64.h (amd64_create_target_description): Update the | |
2101 | declaration. | |
2102 | * arch/i386.c (i386_create_target_description): Add parameter | |
2103 | is_linux. Call set_tdesc_osabi if is_linux is true. | |
2104 | * arch/i386.h (i386_create_target_description): Update | |
2105 | declaration. | |
2106 | * configure.tgt: Add i386.o to gdb_target_obs. | |
2107 | * features/Makefile (XMLTOC): Remove i386/*.xml. | |
2108 | * features/i386/amd64-avx-avx512.c: Remove. | |
2109 | * features/i386/amd64-avx-mpx-avx512-pku.c: Remove. | |
2110 | * features/i386/amd64-avx-mpx.c: Remove. | |
2111 | * features/i386/amd64-avx.c: Remove. | |
2112 | * features/i386/amd64-mpx.c: Remove. | |
2113 | * features/i386/amd64.c: Remove. | |
2114 | * features/i386/i386-avx-avx512.c: Remove. | |
2115 | * features/i386/i386-avx-mpx-avx512-pku.c: Remove. | |
2116 | * features/i386/i386-avx-mpx.c: Remove. | |
2117 | * features/i386/i386-avx.c: Remove. | |
2118 | * features/i386/i386-mmx.c: Remove. | |
2119 | * features/i386/i386-mpx.c: Remove. | |
2120 | * features/i386/i386.c: Remove. | |
2121 | * i386-tdep.c: Don't include features/i386/i386*.c., include | |
2122 | target-descriptions.h and arch/i386.h. | |
2123 | (i386_target_description): Create target descriptions. | |
2124 | (i386_gdbarch_init): Don't call initialize_tdesc_i386_* | |
2125 | functions. Do self tests. | |
2126 | ||
0854b7b1 YQ |
2127 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2128 | ||
2129 | * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml. | |
2130 | * features/i386/amd64-avx-avx512-linux.c: Removed. | |
2131 | * features/i386/amd64-avx-linux.c: Removed. | |
2132 | * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed. | |
2133 | * features/i386/amd64-avx-mpx-linux.c: Removed. | |
2134 | * features/i386/amd64-linux.c: Removed. | |
2135 | * features/i386/amd64-mpx-linux.c: Removed. | |
2136 | * features/i386/x32-avx-avx512-linux.c: Removed. | |
2137 | * features/i386/x32-avx-linux.c: Removed. | |
2138 | * features/i386/x32-linux.c: Removed. | |
2139 | ||
b4570e4b YQ |
2140 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2141 | ||
2142 | * amd64-linux-tdep.c: Include arch/amd64.h. Don't include | |
2143 | features/i386/*.c. | |
2144 | (amd64_linux_read_description): Call | |
2145 | amd64_create_target_description. | |
2146 | * arch/amd64.c: New file. | |
2147 | * arch/amd64.h: New file. | |
2148 | * configure.tgt (x86_64-*-linux*): Append amd64.o. | |
2149 | * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o. | |
2150 | ||
6c73f67f YQ |
2151 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2152 | ||
2153 | * amd64-linux-tdep.c: Don't include amd64-XXX-linux and | |
2154 | x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c. | |
2155 | (amd64_linux_read_description): Create target descriptions. | |
2156 | (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX | |
2157 | functions. Add unit tests. | |
2158 | * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and | |
2159 | x32-core.xml. | |
2160 | * features/i386/64bit-avx.c: Generated. | |
2161 | * features/i386/64bit-avx512.c: Generated. | |
2162 | * features/i386/64bit-core.c: Generated. | |
2163 | * features/i386/64bit-linux.c: Generated. | |
2164 | * features/i386/64bit-mpx.c: Generated. | |
2165 | * features/i386/64bit-pkeys.c: Generated. | |
2166 | * features/i386/64bit-segments.c: Generated. | |
2167 | * features/i386/64bit-sse.c: Generated. | |
2168 | * features/i386/x32-core.c: Generated. | |
2169 | * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature | |
2170 | c files for amd64-linux and x32-linux. | |
2171 | ||
9d3d478b YQ |
2172 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2173 | ||
2174 | * amd64-linux-tdep.c (amd64_linux_read_description): New | |
2175 | function. | |
2176 | (amd64_linux_core_read_description): Call | |
2177 | amd64_linux_read_description. | |
2178 | (amd64_linux_init_abi): Likewise. | |
2179 | (amd64_x32_linux_init_abi): Likewise. | |
2180 | * amd64-linux-tdep.h (amd64_linux_read_description): Declare. | |
2181 | * x86-linux-nat.c (x86_linux_read_description): Call | |
2182 | amd64_linux_read_description. | |
2183 | ||
b9f1d50f YQ |
2184 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2185 | ||
2186 | * amd64-linux-tdep.c (amd64_linux_core_read_description): Update | |
2187 | comments. | |
2188 | ||
188c9e6d YQ |
2189 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2190 | ||
2191 | * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml. | |
2192 | * features/i386/i386-avx-avx512-linux.c: Remove. | |
2193 | * features/i386/i386-avx-linux.c: Remove. | |
2194 | * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove. | |
2195 | * features/i386/i386-avx-mpx-linux.c: Remove. | |
2196 | * features/i386/i386-linux.c: Remove. | |
2197 | * features/i386/i386-mmx-linux.c: Remove. | |
2198 | * features/i386/i386-mpx-linux.c: Remove. | |
2199 | ||
5f035c07 YQ |
2200 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2201 | ||
2202 | * Makefile.in (ALL_TARGET_OBS): Add i386.o. | |
2203 | (SFILES): Add arch/i386.c. | |
2204 | (HFILES_NO_SRCDIR): Add arch/i386.h. | |
2205 | * arch/i386.c: New file. | |
2206 | * arch/i386.h: New file. | |
2207 | * arch/tdesc.h (allocate_target_description): Declare. | |
2208 | (set_tdesc_architecture): Declare. | |
2209 | (set_tdesc_osabi): Declare. | |
2210 | * configure.tgt (i[34567]86-*-linux*): Add i386.o. | |
2211 | * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c. | |
2212 | include arch/i386.h. | |
2213 | (i386_linux_read_description): Remove code and call | |
2214 | i386_create_target_description. | |
2215 | (set_tdesc_architecture): New function. | |
2216 | (set_tdesc_osabi): New function. | |
2217 | * target-descriptions.h (allocate_target_description): Remove. | |
2218 | ||
0abe8a89 YQ |
2219 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2220 | ||
2221 | * arch/tdesc.h (tdesc_create_feature): Add an argument xml. | |
2222 | * target-descriptions.c (tdesc_create_feature): Likewise, and | |
2223 | adjust code. | |
2224 | * features/i386/32bit-avx.c: Re-generated. | |
2225 | * features/i386/32bit-avx512.c: Re-generated. | |
2226 | * features/i386/32bit-core.c: Re-generated. | |
2227 | * features/i386/32bit-linux.c: Re-generated. | |
2228 | * features/i386/32bit-mpx.c: Re-generated. | |
2229 | * features/i386/32bit-pkeys.c: Re-generated. | |
2230 | * features/i386/32bit-sse.c: Re-generated. | |
2231 | ||
0a188386 YQ |
2232 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2233 | ||
2234 | * regformats/regdef.h (struct reg): Override operator == and !=. | |
2235 | ||
f49ff000 YQ |
2236 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2237 | ||
2238 | * arch/tdesc.h: New file. | |
2239 | * regformats/regdat.sh: Generate code using tdesc_create_reg. | |
2240 | * target-descriptions.c: Update comments. | |
2241 | * target-descriptions.h: Include "arch/tdesc.h". Remove the | |
2242 | declarations. | |
2243 | * features/i386/32bit-avx.c: Re-generated. | |
2244 | * features/i386/32bit-avx512.c: Re-generated. | |
2245 | * features/i386/32bit-core.c: Re-generated. | |
2246 | * features/i386/32bit-linux.c: Re-generated. | |
2247 | * features/i386/32bit-mpx.c: Re-generated. | |
2248 | * features/i386/32bit-pkeys.c: Re-generated. | |
2249 | * features/i386/32bit-sse.c: Re-generated. | |
2250 | ||
f7000548 YQ |
2251 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2252 | ||
2253 | * regformats/regdat.sh: Update generated code. | |
2254 | ||
c9a5e2a5 YQ |
2255 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2256 | ||
2257 | * regformats/regdat.sh: Adjust code order. | |
2258 | ||
d6b687ac SM |
2259 | 2017-09-05 Simon Marchi <simon.marchi@ericsson.com> |
2260 | ||
2261 | * expprint.c (dump_subexp_body_standard): Use constant format | |
2262 | string in fprintf_filtered call. | |
2263 | ||
a379bfd0 JB |
2264 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
2265 | ||
2266 | * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and | |
2267 | NetBSD/i386. | |
2268 | * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX. | |
2269 | ||
f7efc967 JB |
2270 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
2271 | ||
2272 | * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H. | |
2273 | ||
c49fbc6c JB |
2274 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
2275 | ||
2276 | * bsd-kvm.o: Define _KMEMUSER. | |
2277 | * configure.ac: Define _KMEMUSER when checking for "struct lwp". | |
2278 | * configure: Regenerate. | |
2279 | ||
26562e73 JB |
2280 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
2281 | ||
2282 | * amd64-fbsd-nat.c: Add include of "x86-xstate.h". | |
2283 | * i386-fbsd-nat.c: Likewise. | |
2284 | ||
31cf1487 JB |
2285 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
2286 | ||
2287 | * unittests/array-view-selftests.c: Add include of <array>. | |
2288 | ||
5b9f8a7c JB |
2289 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
2290 | ||
2291 | * spu-tdep.c (flush_ea_cache): Add missing argument to | |
2292 | call_function_by_hand. | |
2293 | ||
d69cf9b2 PA |
2294 | 2017-09-04 Pedro Alves <palves@redhat.com> |
2295 | ||
2296 | * NEWS (Safer support for debugging with no debug info): New. | |
2297 | ||
3693fdb3 PA |
2298 | 2017-09-04 Pedro Alves <palves@redhat.com> |
2299 | ||
2300 | * c-exp.y (function_method, function_method_void): Add current | |
2301 | instance flags to TYPE_INSTANCE. | |
2302 | * dwarf2read.c (check_modifier): New. | |
2303 | (compute_delayed_physnames): Assert that only C++ adds delayed | |
2304 | physnames. Mark fn_fields as const/volatile depending on | |
2305 | physname. | |
2306 | * eval.c (make_params): New type_instance_flags parameter. Use | |
2307 | it as the new type's instance flags. | |
2308 | (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance | |
2309 | flags element and pass it to make_params. | |
2310 | * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle | |
2311 | instance flags element. | |
2312 | (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise. | |
2313 | * gdbtypes.h: Include "enum-flags.h". | |
2314 | (type_instance_flags): New enum-flags type. | |
2315 | (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC) | |
2316 | (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean. | |
2317 | * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust. | |
2318 | (follow_type_instance_flags): New function. | |
2319 | (operator_check_standard) <TYPE_INSTANCE>: Adjust. | |
2320 | * parser-defs.h (follow_type_instance_flags): Declare. | |
2321 | * valops.c (value_struct_elt_for_reference): const/volatile must | |
2322 | match too. | |
2323 | ||
e68cb8e0 PA |
2324 | 2017-09-04 Pedro Alves <palves@redhat.com> |
2325 | ||
2326 | * cp-namespace.c (cp_search_static_and_baseclasses): Handle | |
2327 | function/method scopes; lookup the nested name as a function local | |
2328 | static variable. | |
2329 | ||
858be34c PA |
2330 | 2017-09-04 Pedro Alves <palves@redhat.com> |
2331 | ||
2332 | (%type <voidval>): Add function_method. | |
2333 | * c-exp.y (exp): New production for calls with no arguments. | |
2334 | (function_method, function_method_void_or_typelist): New | |
2335 | productions. | |
2336 | (exp): New production for "method()::static_var". | |
2337 | * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR. | |
2338 | * expprint.c (print_subexp_standard, dump_subexp_body_standard): | |
2339 | Handle OP_FUNC_STATIC_VAR. | |
2340 | * parse.c (operator_length_standard): | |
2341 | Handle OP_FUNC_STATIC_VAR. | |
2342 | ||
dd5901a6 PA |
2343 | 2017-09-04 Pedro Alves <palves@redhat.com> |
2344 | ||
2345 | * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS | |
2346 | handling. | |
2347 | * expprint.c (print_subexp_standard, dump_subexp_body_standard): | |
2348 | Ditto. | |
2349 | * parse.c (operator_length_standard, operator_check_standard): | |
2350 | Ditto. | |
2351 | * std-operator.def (UNOP_MEMVAL_TLS): Delete. | |
2352 | ||
46a4882b PA |
2353 | 2017-09-04 Pedro Alves <palves@redhat.com> |
2354 | ||
2355 | * ax-gdb.c: Include "typeprint.h". | |
2356 | (gen_expr_for_cast): New function. | |
2357 | (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it. | |
2358 | <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's | |
2359 | type is unknown. | |
2360 | * dwarf2read.c (new_symbol_full): Fallback to int instead of | |
2361 | nodebug_data_symbol. | |
2362 | * eval.c: Include "typeprint.h". | |
2363 | (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>: | |
2364 | Error out if symbol has unknown type. | |
2365 | <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to | |
2366 | evaluate_subexp_for_cast. | |
2367 | (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle | |
2368 | OP_VAR_MSYM_VALUE. | |
2369 | (evaluate_subexp_for_cast): New function. | |
2370 | * gdbtypes.c (init_nodebug_var_type): New function. | |
2371 | (objfile_type): Use it to initialize types of variables with no | |
2372 | debug info. | |
2373 | * typeprint.c (error_unknown_type): New. | |
2374 | * typeprint.h (error_unknown_type): New declaration. | |
2375 | * compile/compile-c-types.c (convert_type_basic): Handle | |
2376 | TYPE_CODE_ERROR; warn and fallback to int for variables with | |
2377 | unknown type. | |
2378 | ||
fe13dfec PA |
2379 | 2017-09-04 Pedro Alves <palves@redhat.com> |
2380 | ||
2381 | * eval.c (evaluate_var_value): New function, factored out from ... | |
2382 | (evaluate_subexp_standard): ... here. | |
2383 | ||
d008ee21 PA |
2384 | 2017-09-04 Pedro Alves <palves@redhat.com> |
2385 | ||
2386 | * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>: | |
2387 | Remove useless assignments to 'op'. | |
2388 | ||
827d0c51 PA |
2389 | 2017-09-04 Pedro Alves <palves@redhat.com> |
2390 | ||
2391 | * eval.c (eval_skip_value): New function. | |
2392 | (evaluate_subexp_standard): Use it. | |
2393 | ||
2c5a2be1 PA |
2394 | 2017-09-04 Pedro Alves <palves@redhat.com> |
2395 | ||
2396 | * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract | |
2397 | function name from symbol/minsym and pass it to | |
2398 | error_call_unknown_return_type. | |
2399 | ||
74ea4be4 PA |
2400 | 2017-09-04 Pedro Alves <palves@redhat.com> |
2401 | ||
2402 | * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE. | |
2403 | * ax-gdb.c (gen_msym_var_ref): New function. | |
2404 | (gen_expr): Handle OP_VAR_MSYM_VALUE. | |
2405 | * eval.c (evaluate_var_msym_value): New function. | |
2406 | * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE. | |
2407 | <OP_FUNCALL>: Extract function name from symbol/minsym and pass it | |
2408 | to call_function_by_hand. | |
2409 | * expprint.c (print_subexp_standard, dump_subexp_body_standard): | |
2410 | Handle OP_VAR_MSYM_VALUE. | |
2411 | (union exp_element) <msymbol>: New field. | |
2412 | * minsyms.h (struct type): Forward declare. | |
2413 | (find_minsym_type_and_address): Declare. | |
2414 | * parse.c (write_exp_elt_msym): New function. | |
2415 | (write_exp_msymbol): Delete, refactored as ... | |
2416 | (find_minsym_type_and_address): ... this new function. | |
2417 | (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE. | |
2418 | (operator_length_standard, operator_check_standard): Handle | |
2419 | OP_VAR_MSYM_VALUE. | |
2420 | * std-operator.def (OP_VAR_MSYM_VALUE): New. | |
2421 | ||
7022349d PA |
2422 | 2017-09-04 Pedro Alves <palves@redhat.com> |
2423 | ||
2424 | * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle | |
2425 | TYPE_GNU_IFUNC specially here. Throw error if return type is | |
2426 | unknown. | |
2427 | * ada-typeprint.c (print_func_type): Handle functions with unknown | |
2428 | return type. | |
2429 | * c-typeprint.c (c_type_print_base): Handle functions and methods | |
2430 | with unknown return type. | |
2431 | * compile/compile-c-symbols.c (convert_symbol_bmsym) | |
2432 | <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol. | |
2433 | * compile/compile-c-types.c: Include "objfiles.h". | |
2434 | (convert_func): For functions with unknown return type, warn and | |
2435 | default to int. | |
2436 | * compile/compile-object-run.c (compile_object_run): Adjust call | |
2437 | to call_function_by_hand_dummy. | |
2438 | * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to | |
2439 | call_function_by_hand. | |
2440 | * eval.c (evaluate_subexp_standard): Adjust calls to | |
2441 | call_function_by_hand. Handle functions and methods with unknown | |
2442 | return type. Pass expect_type to call_function_by_hand. | |
2443 | * f-typeprint.c (f_type_print_base): Handle functions with unknown | |
2444 | return type. | |
2445 | * gcore.c (call_target_sbrk): Adjust call to | |
2446 | call_function_by_hand. | |
2447 | * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL | |
2448 | return type instead of int. Make nodebug_text_gnu_ifunc_symbol be | |
2449 | an integer address type instead of nodebug. | |
2450 | * guile/scm-value.c (gdbscm_value_call): Adjust call to | |
2451 | call_function_by_hand. | |
2452 | * infcall.c (error_call_unknown_return_type): New function. | |
2453 | (call_function_by_hand): New "default_return_type" parameter. | |
2454 | Pass it down. | |
2455 | (call_function_by_hand_dummy): New "default_return_type" | |
2456 | parameter. Use it instead of defaulting to int. If there's no | |
2457 | default and the return type is unknown, throw an error. If | |
2458 | there's a default return type, and the called function has no | |
2459 | debug info, then assume the function is prototyped. | |
2460 | * infcall.h (call_function_by_hand, call_function_by_hand_dummy): | |
2461 | New "default_return_type" parameter. | |
2462 | (error_call_unknown_return_type): New declaration. | |
2463 | * linux-fork.c (call_lseek): Cast return type of lseek. | |
2464 | (inferior_call_waitpid, checkpoint_command): Adjust calls to | |
2465 | call_function_by_hand. | |
2466 | * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust | |
2467 | calls to call_function_by_hand. | |
2468 | * m2-typeprint.c (m2_procedure): Handle functions with unknown | |
2469 | return type. | |
2470 | * objc-lang.c (lookup_objc_class, lookup_child_selector) | |
2471 | (value_nsstring, print_object_command): Adjust calls to | |
2472 | call_function_by_hand. | |
2473 | * p-typeprint.c (pascal_type_print_varspec_prefix): Handle | |
2474 | functions with unknown return type. | |
2475 | (pascal_type_print_func_varspec_suffix): New function. | |
2476 | (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC, | |
2477 | TYPE_CODE_METHOD>: Use it. | |
2478 | * python/py-value.c (valpy_call): Adjust call to | |
2479 | call_function_by_hand. | |
2480 | * rust-lang.c (rust_evaluate_funcall): Adjust call to | |
2481 | call_function_by_hand. | |
2482 | * valarith.c (value_x_binop, value_x_unop): Adjust calls to | |
2483 | call_function_by_hand. | |
2484 | * valops.c (value_allocate_space_in_inferior): Adjust call to | |
2485 | call_function_by_hand. | |
2486 | * typeprint.c (type_print_unknown_return_type): New function. | |
2487 | * typeprint.h (type_print_unknown_return_type): New declaration. | |
2488 | ||
54990598 PA |
2489 | 2017-09-04 Pedro Alves <palves@redhat.com> |
2490 | ||
2491 | * gdbtypes.c (lookup_function_type_with_arguments): Mark function | |
2492 | types with more than one parameter as prototyped. | |
2493 | ||
9a24775b PA |
2494 | 2017-09-04 Pedro Alves <palves@redhat.com> |
2495 | ||
2496 | * cli/cli-cmds.c (print_disassembly, disassemble_current_function) | |
2497 | (disassemble_command): Use gdb_disassembly_flags instead of bare | |
2498 | int. | |
2499 | * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn) | |
2500 | (dump_insns, do_mixed_source_and_assembly_deprecated) | |
2501 | (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly): | |
2502 | Use gdb_disassembly_flags instead of bare int. | |
2503 | * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN) | |
2504 | (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME) | |
2505 | (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE) | |
2506 | (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're... | |
2507 | (enum gdb_disassembly_flag): ... values of this new enumeration. | |
2508 | (gdb_disassembly_flags): Define. | |
2509 | (gdb_disassembly) | |
2510 | (gdb_pretty_print_disassembler::pretty_print_insn): Use it. | |
2511 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use | |
2512 | gdb_disassembly_flags instead of bare int. | |
2513 | * record-btrace.c (btrace_insn_history) | |
2514 | (record_btrace_insn_history, record_btrace_insn_history_range) | |
2515 | (record_btrace_insn_history_from): Use gdb_disassembly_flags | |
2516 | instead of bare int. | |
2517 | * record.c (get_insn_history_modifiers, cmd_record_insn_history): | |
2518 | Use gdb_disassembly_flags instead of bare int. | |
2519 | * target-debug.h (target_debug_print_gdb_disassembly_flags): | |
2520 | Define. | |
2521 | * target-delegates.c: Regenerate. | |
2522 | * target.c (target_insn_history, target_insn_history_from) | |
2523 | (target_insn_history_range): Use gdb_disassembly_flags instead of | |
2524 | bare int. | |
2525 | * target.h: Include "disasm.h". | |
2526 | (struct target_ops) <to_insn_history, to_insn_history_from, | |
2527 | to_insn_history_range>: Use gdb_disassembly_flags instead of bare | |
2528 | int. | |
2529 | (target_insn_history, target_insn_history_from) | |
2530 | (target_insn_history_range): Use gdb_disassembly_flags instead of | |
2531 | bare int. | |
2532 | ||
80a65e9b SM |
2533 | 2017-09-04 Simon Marchi <simon.marchi@ericsson.com> |
2534 | ||
2535 | * cli/cli-script.c (build_command_line): For if/while commands, | |
2536 | check whether args is empty. | |
2537 | ||
6b66338c SM |
2538 | 2017-09-04 Simon Marchi <simon.marchi@ericsson.com> |
2539 | ||
2540 | * cli/cli-script.h (enum misc_command_type): Move from defs.h. | |
2541 | (enum command_control_type): Likewise. | |
2542 | (struct command_line): Likewise. | |
2543 | (free_command_lines): Likewise. | |
2544 | (struct command_lines_deleter): Likewise. | |
2545 | (command_line_up): Likewise. | |
2546 | (read_command_lines): Likewise. | |
2547 | (read_command_lines_1): Likewise. | |
2548 | * defs.h (enum misc_command_type): Move to cli/cli-script.h. | |
2549 | (enum command_control_type): Likewise. | |
2550 | (struct command_line): Likewise. | |
2551 | (free_command_lines): Likewise. | |
2552 | (struct command_lines_deleter): Likewise. | |
2553 | (command_line_up): Likewise. | |
2554 | (read_command_lines): Likewise. | |
2555 | (read_command_lines_1): Likewise. | |
2556 | * breakpoint.h: Include cli/cli-script.h. | |
2557 | * extension-priv.h: Likewise. | |
2558 | * gdbcmd.h: Likewise. | |
2559 | ||
51abb421 PA |
2560 | 2017-09-04 Pedro Alves <palves@redhat.com> |
2561 | ||
2562 | * ada-lang.c (is_known_support_routine): Move sal declaration to | |
2563 | where it is initialized. | |
2564 | * breakpoint.c (create_internal_breakpoint, init_catchpoint) | |
2565 | (parse_breakpoint_sals, decode_static_tracepoint_spec) | |
2566 | (clear_command, update_static_tracepoint): Remove init_sal | |
2567 | references. Move declarations closer to initializations. | |
2568 | * cli/cli-cmds.c (list_command): Move sal declarations closer to | |
2569 | initializations. | |
2570 | * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal | |
2571 | references. Move sal declarations closer to initializations. | |
2572 | * frame.c (find_frame_sal): Return a symtab_and_line via function | |
2573 | return instead of output parameter. Remove init_sal references. | |
2574 | * frame.h (find_frame_sal): Return a symtab_and_line via function | |
2575 | return instead of output parameter. | |
2576 | * guile/scm-frame.c (gdbscm_frame_sal): Adjust. | |
2577 | * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new | |
2578 | instead of memset. | |
2579 | (gdbscm_find_pc_line): Remove init_sal reference. | |
2580 | * infcall.c (call_function_by_hand_dummy): Remove init_sal | |
2581 | references. Move declarations closer to initializations. | |
2582 | * infcmd.c (set_step_frame): Update. Move declarations closer to | |
2583 | initializations. | |
2584 | (finish_backward): Remove init_sal references. Move declarations | |
2585 | closer to initializations. | |
2586 | * infrun.c (process_event_stop_test, handle_step_into_function) | |
2587 | (insert_hp_step_resume_breakpoint_at_frame) | |
2588 | (insert_step_resume_breakpoint_at_caller): Likewise. | |
2589 | * linespec.c (create_sals_line_offset, decode_digits_ordinary) | |
2590 | (symbol_to_sal): Likewise. | |
2591 | * probe.c (parse_probes_in_pspace): Remove init_sal reference. | |
2592 | * python/py-frame.c (frapy_find_sal): Move sal declaration closer | |
2593 | to its initialization. | |
2594 | * reverse.c (save_bookmark_command): Use new/delete. Remove | |
2595 | init_sal references. Move declarations closer to initializations. | |
2596 | * source.c (get_current_source_symtab_and_line): Remove brace | |
2597 | initialization. | |
2598 | (set_current_source_symtab_and_line): Now takes the sal by const | |
2599 | reference. Remove brace initialization. | |
2600 | (line_info): Remove init_sal reference. | |
2601 | * source.h (set_current_source_symtab_and_line): Now takes a | |
2602 | symtab_and_line via const reference. | |
2603 | * stack.c (set_current_sal_from_frame): Adjust. | |
2604 | (print_frame_info): Adjust. | |
2605 | (get_last_displayed_sal): Return the sal via function return | |
2606 | instead of via output parameter. Simplify. | |
2607 | (frame_info): Adjust. | |
2608 | * stack.h (get_last_displayed_sal): Return the sal via function | |
2609 | return instead of via output parameter. | |
2610 | * symtab.c (init_sal): Delete. | |
2611 | (find_pc_sect_line): Remove init_sal references. Move | |
2612 | declarations closer to initializations. | |
2613 | (find_function_start_sal): Remove init_sal references. Move | |
2614 | declarations closer to initializations. | |
2615 | * symtab.h (struct symtab_and_line): In-class initialize all | |
2616 | fields. | |
2617 | * tracepoint.c (set_traceframe_context) | |
2618 | (print_one_static_tracepoint_marker): Remove init_sal references. | |
2619 | Move declarations closer to initializations. | |
2620 | * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust. | |
2621 | * tui/tui-stack.c (tui_show_frame_info): Adjust. Move | |
2622 | declarations closer to initializations. | |
2623 | * tui/tui-winsource.c (tui_update_source_window_as_is): Remove | |
2624 | init_sal references. Adjust. | |
2625 | ||
6c5b2ebe PA |
2626 | 2017-09-04 Pedro Alves <palves@redhat.com> |
2627 | ||
2628 | * ax-gdb.c (agent_command_1): Use range-for. | |
2629 | * break-catch-throw.c (re_set_exception_catchpoint): Update. | |
2630 | * breakpoint.c: Include "common/array-view.h". | |
2631 | (init_breakpoint_sal, create_breakpoint_sal): Change sals | |
2632 | parameter from struct symtabs_and_lines to | |
2633 | array_view<symtab_and_line>. Adjust. Use range-for. Update. | |
2634 | (breakpoint_sals_to_pc): Change sals parameter from struct | |
2635 | symtabs_and_lines to std::vector reference. | |
2636 | (check_fast_tracepoint_sals): Change sals parameter from struct | |
2637 | symtabs_and_lines to std::array_view. Use range-for. | |
2638 | (decode_static_tracepoint_spec): Return a std::vector instead of | |
2639 | symtabs_and_lines. Update. | |
2640 | (create_breakpoint): Update. | |
2641 | (break_range_command, until_break_command, clear_command): Update. | |
2642 | (base_breakpoint_decode_location, bkpt_decode_location) | |
2643 | (bkpt_probe_create_sals_from_location) | |
2644 | (bkpt_probe_decode_location, tracepoint_decode_location) | |
2645 | (tracepoint_probe_decode_location) | |
2646 | (strace_marker_create_sals_from_location): Return a std::vector | |
2647 | instead of symtabs_and_lines. | |
2648 | (strace_marker_create_breakpoints_sal): Update. | |
2649 | (strace_marker_decode_location): Return a std::vector instead of | |
2650 | symtabs_and_lines. Update. | |
2651 | (update_breakpoint_locations): Change struct symtabs_and_lines | |
2652 | parameters to gdb::array_view. Adjust. | |
2653 | (location_to_sals): Return a std::vector instead of | |
2654 | symtabs_and_lines. Update. | |
2655 | (breakpoint_re_set_default): Use std::vector instead of struct | |
2656 | symtabs_and_lines. | |
2657 | (decode_location_default): Return a std::vector instead of | |
2658 | symtabs_and_lines. Update. | |
2659 | * breakpoint.h: Include "common/array-view.h". | |
2660 | (struct breakpoint_ops) <decode_location>: Now returns a | |
2661 | std::vector instead of returning a symtabs_and_lines via output | |
2662 | parameter. | |
2663 | (update_breakpoint_locations): Change sals parameters to use | |
2664 | gdb::array_view. | |
2665 | * cli/cli-cmds.c (edit_command, list_command): Update to use | |
2666 | std::vector and gdb::array_view. | |
2667 | (ambiguous_line_spec): Adjust to use gdb::array_view and | |
2668 | range-for. | |
2669 | (compare_symtabs): Rename to ... | |
2670 | (cmp_symtabs): ... this. Change parameters to symtab_and_line | |
2671 | const reference and adjust. | |
2672 | (filter_sals): Rewrite using std::vector and standard algorithms. | |
2673 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify. | |
2674 | (jump_command): Update to use std::vector. | |
2675 | * linespec.c (struct linespec_state) <canonical_names>: Update | |
2676 | comment. | |
2677 | (add_sal_to_sals_basic): Delete. | |
2678 | (add_sal_to_sals, filter_results, convert_results_to_lsals) | |
2679 | (decode_line_2, create_sals_line_offset) | |
2680 | (convert_address_location_to_sals, convert_linespec_to_sals) | |
2681 | (convert_explicit_location_to_sals, parse_linespec) | |
2682 | (event_location_to_sals, decode_line_full, decode_line_1) | |
2683 | (decode_line_with_current_source) | |
2684 | (decode_line_with_last_displayed, decode_objc) | |
2685 | (decode_digits_list_mode, decode_digits_ordinary, minsym_found) | |
2686 | (linespec_result::~linespec_result): Adjust to use std::vector | |
2687 | instead of symtabs_and_lines. | |
2688 | * linespec.h (linespec_sals::sals): Now a std::vector. | |
2689 | (struct linespec_result): Use std::vector, bool, and in-class | |
2690 | initialization. | |
2691 | (decode_line_1, decode_line_with_current_source) | |
2692 | (decode_line_with_last_displayed): Return std::vector. | |
2693 | * macrocmd.c (info_macros_command): Use std::vector. | |
2694 | * mi/mi-main.c (mi_cmd_trace_find): Use std::vector. | |
2695 | * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use | |
2696 | std::vector. | |
2697 | * probe.h (parse_probes): Return a std::vector. | |
2698 | * python/python.c (gdbpy_decode_line): Use std::vector and | |
2699 | gdb::array_view. | |
2700 | * source.c (select_source_symtab, line_info): Use std::vector. | |
2701 | * stack.c (func_command): Use std::vector. | |
2702 | * symtab.h (struct symtabs_and_lines): Delete. | |
2703 | * tracepoint.c (tfind_line_command, scope_info): Use std::vector. | |
2704 | ||
7c44b49c PA |
2705 | 2017-09-04 Pedro Alves <palves@redhat.com> |
2706 | ||
2707 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
2708 | unittests/array-view-selftests.c. | |
2709 | (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o. | |
2710 | * common/array-view.h: New file. | |
2711 | * unittests/array-view-selftests.c: New file. | |
2712 | ||
e439fa14 PA |
2713 | 2017-09-04 Pedro Alves <palves@redhat.com> |
2714 | ||
2715 | * cli/cli-cmds.c (edit_command): Pass message to | |
2716 | ambiguous_line_spec. | |
2717 | (list_command): Pass message to ambiguous_line_spec. Say | |
2718 | "first"/"last" instead of "start" and "end" to be consistent with | |
2719 | the manual. | |
2720 | (ambiguous_line_spec): Add 'format' and vararg parameters. Use | |
2721 | them to print formatted message. | |
2722 | ||
7525b645 PA |
2723 | 2017-09-04 Pedro Alves <palves@redhat.com> |
2724 | ||
2725 | * btrace.c (ftrace_add_pt): Pass btrace_insn to | |
2726 | ftrace_update_insns by reference instead of pointer. | |
2727 | ||
badc0020 YQ |
2728 | 2017-09-04 Yao Qi <yao.qi@linaro.org> |
2729 | ||
2730 | * i386-go32-tdep.c: Include x86-xstate.h. | |
2731 | (i386_go32_init_abi): Call i386_target_description. | |
2732 | * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx | |
2733 | if xcr0 is X86_XSTATE_X87_MASK. | |
2734 | * i386-tdep.h (tdesc_i386): Remove the declaration. | |
2735 | (tdesc_i386_mmx): Likewise. | |
2736 | ||
d78bdb54 YQ |
2737 | 2017-09-04 Yao Qi <yao.qi@linaro.org> |
2738 | ||
2739 | * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return | |
2740 | X86_XSTATE_SSE_MASK instead of 0. | |
2741 | ||
ca1fa5ee YQ |
2742 | 2017-09-04 Yao Qi <yao.qi@linaro.org> |
2743 | ||
2744 | * amd64-fbsd-nat.c (amd64fbsd_read_description): Call | |
2745 | i386_target_description. | |
2746 | * i386-fbsd-nat.c (i386fbsd_read_description): Call | |
2747 | i386_target_description. | |
2748 | * i386-tdep.c (i386_gdbarch_init): Likewise. | |
2749 | ||
2434b019 YQ |
2750 | 2017-09-04 Yao Qi <yao.qi@linaro.org> |
2751 | ||
2752 | * amd64-darwin-tdep.c: Include "x86-xstate.h". | |
2753 | (x86_darwin_init_abi_64): Call amd64_target_description. | |
2754 | * amd64-dicos-tdep.c: Likewise. | |
2755 | * amd64-fbsd-nat.c: Likewise. | |
2756 | * amd64-fbsd-tdep.c: Likewise. | |
2757 | * amd64-nbsd-tdep.c: Likewise. | |
2758 | * amd64-obsd-tdep.c: Likewise. | |
2759 | * amd64-sol2-tdep.c: Likewise. | |
2760 | * amd64-windows-tdep.c: Likewise. | |
2761 | * amd64-tdep.h (tdesc_amd64): Remove the declaration. | |
2762 | ||
0860c437 SM |
2763 | 2017-09-04 Simon Marchi <simon.marchi@ericsson.com> |
2764 | ||
2765 | * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove. | |
2766 | (btrace_function) <insn>: Change type to use std::vector. | |
2767 | * btrace.c (ftrace_debug, ftrace_call_num_insn, | |
2768 | ftrace_find_call, ftrace_new_gap, ftrace_update_function, | |
2769 | ftrace_update_insns, ftrace_compute_global_level_offset, | |
2770 | btrace_stitch_bts, btrace_clear, btrace_insn_get, | |
2771 | btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to | |
2772 | change to std::vector. | |
2773 | (ftrace_update_insns): Adjust to change to std::vector, change | |
2774 | type of INSN parameter. | |
2775 | (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns. | |
2776 | * record-btrace.c (btrace_call_history_insn_range, | |
2777 | btrace_compute_src_line_range, | |
2778 | record_btrace_frame_prev_register): Adjust to change to | |
2779 | std::vector. | |
2780 | * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust | |
2781 | to change to std::vector. | |
2782 | ||
0638b7f9 TT |
2783 | 2017-09-03 Tom Tromey <tom@tromey.com> |
2784 | ||
2785 | * corefile.c (reopen_exec_file): Use std::string. | |
2786 | ||
8f84fb0e TT |
2787 | 2017-09-03 Tom Tromey <tom@tromey.com> |
2788 | ||
2789 | * compile/compile.c (compile_register_name_mangled): Return | |
2790 | std::string. | |
2791 | * compile/compile-loc2c.c (pushf_register_address): Update. | |
2792 | (pushf_register): Update. | |
2793 | * compile/compile-c-types.c (convert_array): Update. | |
2794 | * compile/compile-c-symbols.c (generate_vla_size): Update. | |
2795 | (error_symbol_once): Use a gdb::unique_xmalloc_ptr. | |
2796 | (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr. | |
2797 | (convert_one_symbol): Update. | |
2798 | (generate_c_for_for_one_variable): Update. | |
2799 | * compile/compile-c-support.c (c_get_range_decl_name): Return a | |
2800 | std::string. | |
2801 | (generate_register_struct): Update. | |
2802 | * compile/compile-internal.h (c_get_range_decl_name): Return a | |
2803 | std::string. | |
2804 | (compile_register_name_mangled): Return std::string. | |
2805 | ||
18e9961f TT |
2806 | 2017-09-03 Tom Tromey <tom@tromey.com> |
2807 | ||
2808 | * utils.c (perror_string): Return a std::string. | |
2809 | (throw_perror_with_name, perror_warning_with_name): Update. | |
2810 | ||
45343786 TT |
2811 | 2017-09-03 Tom Tromey <tom@tromey.com> |
2812 | ||
2813 | * demangle.c (demangle_command): Use std::string, | |
2814 | unique_xmalloc_ptr. | |
2815 | ||
b57af503 TT |
2816 | 2017-09-03 Tom Tromey <tom@tromey.com> |
2817 | ||
2818 | * cli/cli-setshow.c (do_set_command): Use std::string. | |
2819 | ||
6eecf35f TT |
2820 | 2017-09-03 Tom Tromey <tom@tromey.com> |
2821 | ||
2822 | * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr. | |
2823 | ||
56496dd4 TT |
2824 | 2017-09-03 Tom Tromey <tom@tromey.com> |
2825 | ||
2826 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string. | |
2827 | ||
e91a1fa7 TT |
2828 | 2017-09-03 Tom Tromey <tom@tromey.com> |
2829 | ||
2830 | * mi/mi-cmd-env.c (env_execute_cli_command): Use | |
2831 | gdb::unique_xmalloc_ptr. | |
2832 | ||
7ffd83d7 TT |
2833 | 2017-09-03 Tom Tromey <tom@tromey.com> |
2834 | ||
2835 | * thread.c (print_thread_info_1): Use string_printf. | |
2836 | (thread_apply_command, thread_apply_all_command): Use | |
2837 | std::string. | |
2838 | ||
1ccbe998 TT |
2839 | 2017-09-03 Tom Tromey <tom@tromey.com> |
2840 | ||
2841 | * valprint.c (val_print_string): Update. | |
2842 | * gdbcore.h (memory_error_message): Return std::string. | |
2843 | * corefile.c (memory_error_message): Return std::string. | |
2844 | (memory_error): Update. | |
2845 | * breakpoint.c (insert_bp_location): Update. | |
2846 | ||
23fdd69e SM |
2847 | 2017-09-03 Simon Marchi <simon.marchi@ericsson.com> |
2848 | ||
2849 | * target/waitstatus.h (target_waitstatus_to_string): Change | |
2850 | return type to std::string. | |
2851 | * target/waitstatus.c (target_waitstatus_to_string): Return | |
2852 | std::string. | |
2853 | * target.h (target_waitstatus_to_string): Remove declaration. | |
2854 | * infrun.c (resume, clear_proceed_status_thread, | |
2855 | print_target_wait_results, do_target_wait, save_waitstatus, | |
2856 | stop_all_threads): Adjust. | |
2857 | * record-btrace.c (record_btrace_wait): Adjust. | |
2858 | * target-debug.h | |
2859 | (target_debug_print_struct_target_waitstatus_p): Adjust. | |
2860 | ||
5c811d30 JK |
2861 | 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
2862 | ||
2863 | PR gdb/22046 | |
2864 | * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED | |
2865 | detection. | |
2866 | ||
0a2dde4a SDJ |
2867 | 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com> |
2868 | ||
2869 | * NEWS (Changes since GDB 8.0): Add entry mentioning new support | |
2870 | for setting/unsetting environment variables on the remote target. | |
2871 | (New remote packets): Add entries for QEnvironmentHexEncoded, | |
2872 | QEnvironmentUnset and QEnvironmentReset. | |
2873 | * common/environ.c (gdb_environ::operator=): Extend method to | |
2874 | handle m_user_set_env_list and m_user_unset_env_list. | |
2875 | (gdb_environ::clear): Likewise. | |
2876 | (match_var_in_string): Change type of first parameter from 'char | |
2877 | *' to 'const char *'. | |
2878 | (gdb_environ::set): Extend method to handle | |
2879 | m_user_set_env_list and m_user_unset_env_list. | |
2880 | (gdb_environ::unset): Likewise. | |
2881 | (gdb_environ::clear_user_set_env): New method. | |
2882 | (gdb_environ::user_set_envp): Likewise. | |
2883 | (gdb_environ::user_unset_envp): Likewise. | |
2884 | * common/environ.h (gdb_environ): Handle m_user_set_env_list and | |
2885 | m_user_unset_env_list on move constructor/assignment. | |
2886 | (unset): Add new default parameter 'update_unset_list = true'. | |
2887 | (clear_user_set_env): New method. | |
2888 | (user_set_envp): Likewise. | |
2889 | (user_unset_envp): Likewise. | |
2890 | (m_user_set_env_list): New std::set. | |
2891 | (m_user_unset_env_list): Likewise. | |
2892 | * common/rsp-low.c (hex2str): New function. | |
2893 | (bin2hex): New overload for bin2hex function. | |
2894 | * common/rsp-low.c (hex2str): New prototype. | |
2895 | (str2hex): New overload prototype. | |
2896 | * remote.c: Include "environ.h". Add QEnvironmentHexEncoded, | |
2897 | QEnvironmentUnset and QEnvironmentReset. | |
2898 | (remote_protocol_features): Add QEnvironmentHexEncoded, | |
2899 | QEnvironmentUnset and QEnvironmentReset packets. | |
2900 | (send_environment_packet): New function. | |
2901 | (extended_remote_environment_support): Likewise. | |
2902 | (extended_remote_create_inferior): Call | |
2903 | extended_remote_environment_support. | |
2904 | (_initialize_remote): Add QEnvironmentHexEncoded, | |
2905 | QEnvironmentUnset and QEnvironmentReset packet configs. | |
2906 | * unittests/environ-selftests.c (gdb_selftest_env_var): | |
2907 | New variable. | |
2908 | (test_vector_initialization): New function. | |
2909 | (test_init_from_host_environ): Likewise. | |
2910 | (test_reinit_from_host_environ): Likewise. | |
2911 | (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B): | |
2912 | Likewise. | |
2913 | (test_unset_set_empty_vector): Likewise. | |
2914 | (test_vector_clear): Likewise. | |
2915 | (test_std_move): Likewise. | |
2916 | (test_move_constructor): | |
2917 | (test_self_move): Likewise. | |
2918 | (test_set_unset_reset): Likewise. | |
2919 | (run_tests): Rewrite in terms of the functions above. | |
2920 | ||
654670a4 WP |
2921 | 2017-08-31 Weimin Pan <weimin.pan@oracle.com> |
2922 | ||
2923 | * sparc64-tdep.c (adi_stat_t): Fix comment formatting. | |
2924 | (adi_available): Use a temp variable of type CORE_ADDR as argument | |
2925 | 3 when calling target_auxv_search. | |
2926 | (adi_normalize_address): Use masks and xor operators to calculate | |
2927 | normalized address. | |
2928 | (adi_read_versions, adi_write_versions, adi_print_versions) | |
2929 | (do_examine, do_assign): Use paddress. | |
2930 | ||
7755ddb7 JB |
2931 | 2017-08-29 John Baldwin <jhb@FreeBSD.org> |
2932 | ||
2933 | * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR. | |
2934 | * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR | |
2935 | out of loop and add supply of FIR. | |
2936 | (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and | |
2937 | add collect of FIR. | |
2938 | ||
fd437cbc SM |
2939 | 2017-08-28 Simon Marchi <simon.marchi@ericsson.com> |
2940 | ||
3804a343 | 2941 | PR gdb/21827 |
fd437cbc SM |
2942 | * cli/cli-script.c (define_command): Don't convert command name |
2943 | to lower case. | |
2944 | ||
988f6b3d JB |
2945 | 2017-08-25 Joel Brobecker <brobecker@adacore.com> |
2946 | ||
2947 | * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp". | |
2948 | Update all callers accordingly. Remove all code blocks handling | |
2949 | the case where DISPP is not NULL. | |
2950 | ||
663c44ac JK |
2951 | 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
2952 | ||
2953 | PR symtab/22003 | |
2954 | * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow) | |
2955 | (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) | |
2956 | (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const. | |
2957 | ||
f1902523 JK |
2958 | 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
2959 | ||
2960 | * dwarf2read.c (build_type_psymtabs_reader): New prototype. | |
2961 | (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES. | |
2962 | (read_comp_units_from_section): New parameter abbrev_section, use | |
2963 | read_and_check_comp_unit_head, allocate signatured_type if needed. | |
2964 | (create_all_comp_units): Update read_comp_units_from_section caller. | |
2965 | ||
87215ad1 SDJ |
2966 | 2017-08-23 Pedro Alves <palves@redhat.com> |
2967 | ||
2968 | PR remote/21852 | |
2969 | * remote.c (add_current_inferior_and_thread): Set inferior_ptid | |
2970 | to null_ptid and switch to thread without reading the registers | |
2971 | after adding the inferior. | |
2972 | ||
6e41ddec JK |
2973 | 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
2974 | ||
2975 | * NEWS (Changes since GDB 8.0): Add set compile-gcc and show | |
2976 | compile-gcc. | |
2977 | * compile/compile.c (compile_gcc, show_compile_gcc): New. | |
2978 | (compile_to_object): Implement compile_gcc. | |
2979 | (_initialize_compile): Install "set compile-gcc". Initialize | |
2980 | compile_gcc. | |
2981 | ||
e68c32d5 JK |
2982 | 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
2983 | ||
2984 | * compile/compile.c (compile_to_object): Conditionally call | |
2985 | set_verbose. Conditionally call compile or compile_v0. | |
2986 | ||
58afddc6 WP |
2987 | 2017-08-07 Weimin Pan <weimin.pan@oracle.com> |
2988 | ||
2989 | * sparc64-tdep.h: (adi_normalize_address): New export. | |
2990 | * sparc-nat.h: (open_adi_tag_fd): New export. | |
2991 | * sparc64-linux-nat.c: (open_adi_tag_fd): New function. | |
2992 | * sparc64-linux-tdep.c: | |
2993 | (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines. | |
2994 | (sparc64_linux_handle_segmentation_fault): New function. | |
2995 | (sparc64_linux_init_abi): Register | |
2996 | sparc64_linux_handle_segmentation_fault | |
2997 | * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h. | |
2998 | (sparc64_addr_bits_remove): New function. | |
2999 | (sparc64_init_abi): Register sparc64_addr_bits_remove. | |
3000 | (MAX_PROC_NAME_SIZE): New macro. | |
3001 | (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines. | |
3002 | (sparc64adilist): New variable. | |
3003 | (adi_proc_list): New variable. | |
3004 | (find_adi_info): New function. | |
3005 | (add_adi_info): New function. | |
3006 | (get_adi_info_proc): New function. | |
3007 | (get_adi_info): New function. | |
3008 | (info_adi_command): New function. | |
3009 | (read_maps_entry): New function. | |
3010 | (adi_available): New function. | |
3011 | (adi_normalize_address): New function. | |
3012 | (adi_align_address): New function. | |
3013 | (adi_convert_byte_count): New function. | |
3014 | (adi_tag_fd): New function. | |
3015 | (adi_is_addr_mapped): New function. | |
3016 | (adi_read_versions): New function. | |
3017 | (adi_write_versions): New function. | |
3018 | (adi_print_versions): New function. | |
3019 | (do_examine): New function. | |
3020 | (do_assign): New function. | |
3021 | (adi_examine_command): New function. | |
3022 | (adi_assign_command): New function. | |
3023 | (_initialize_sparc64_adi_tdep): New function. | |
3024 | ||
11db9430 SM |
3025 | 2017-08-22 Simon Marchi <simon.marchi@ericsson.com> |
3026 | ||
3027 | * breakpoint.c (breakpoints_info): Rename to ... | |
3028 | (info_breakpoints_command): ... this. | |
3029 | (watchpoints_info): Rename to ... | |
3030 | (info_watchpoints_command): ... this. | |
3031 | (tracepoints_info): Rename to ... | |
3032 | (info_tracepoints_command): ... this. | |
3033 | (_initialize_breakpoint): Adjust. | |
3034 | * dcache.c (dcache_info): Rename to ... | |
3035 | (info_display_command): ... this. | |
3036 | (_initialize_dcache): Adjust. | |
3037 | * frame.h (args_info): Rename to ... | |
3038 | (info_args_command): ... this. | |
3039 | (locals_info): Rename to ... | |
3040 | (info_locals_command): ... this. | |
3041 | * infcmd.c (nofp_registers_info): Rename to ... | |
3042 | (info_registers_command): ... this. | |
3043 | (float_info): Rename to ... | |
3044 | (info_float_command): ... this. | |
3045 | (program_info): Rename to ... | |
3046 | (info_program_command): ... this. | |
3047 | (all_registers_info): Rename to ... | |
3048 | (info_all_registers_command): ... this. | |
3049 | (vector_info): Rename to ... | |
3050 | (info_vector_command): ... this. | |
3051 | (float_info): Rename to ... | |
3052 | (info_float_command): ... this. | |
3053 | (_initialize_infcmd): Adjust. | |
3054 | * inferior.h (term_info): Rename to ... | |
3055 | (info_terminal_command): ... this. | |
3056 | * inflow.c (term_info): Rename to ... | |
3057 | (info_terminal_command): ... this. | |
3058 | (_initialize_inflow): Adjust. | |
3059 | * infrun.c (signals_info): Rename to ... | |
3060 | (info_signals_command): ... this. | |
3061 | (_initialize_infrun): Adjust. | |
3062 | * objc-lang.c (classes_info): Rename to ... | |
3063 | (info_classes_command): ... this. | |
3064 | (selectors_info): Rename to ... | |
3065 | (info_selectors_command): ... this. | |
3066 | (_initialize_objc_language): Adjust. | |
3067 | * printcmd.c (sym_info): Rename to ... | |
3068 | (info_symbol_command): ... this. | |
3069 | (address_info): Rename to ... | |
3070 | (info_address_command): ... this. | |
3071 | (display_info): Rename to ... | |
3072 | (info_display_command): ... this. | |
3073 | (_initialize_printcmd): Adjust. | |
3074 | * reverse.c (bookmarks_info): Rename to ... | |
3075 | (info_breakpoints_command): ... this. | |
3076 | (_initialize_reverse): Adjust. | |
3077 | * ser-go32.c (dos_info): Rename to ... | |
3078 | (info_serial_command): ... this. | |
3079 | (_initialize_ser_dos): Adjust. | |
3080 | * skip.c (skip_info): Rename to ... | |
3081 | (info_skip_command): ... this. | |
3082 | (_initialize_step_skip): Adjust. | |
3083 | * source.c (line_info): Rename to ... | |
3084 | (info_line_command): ... this. | |
3085 | (source_info): Rename to ... | |
3086 | (info_source_command) | |
3087 | * stack.c (frame_info): Rename to ... | |
3088 | (info_frame_command): ... this. | |
3089 | (locals_info): Rename to ... | |
3090 | (info_locals_command): ... this. | |
3091 | (args_info): Rename to ... | |
3092 | (info_args_command): ... this. | |
3093 | (_initialize_stack): Adjust. | |
3094 | * symtab.c (sources_info): Rename to ... | |
3095 | (info_sources_command): ... this. | |
3096 | (variables_info): Rename to ... | |
3097 | (info_variables_command): ... this. | |
3098 | (functions_info): Rename to ... | |
3099 | (info_functions_command): ... this. | |
3100 | (types_info): Rename to ... | |
3101 | (info_types_command): ... this. | |
3102 | (_initialize_symtab): Adjust. | |
3103 | * target.c (target_info): Rename to ... | |
3104 | (info_target_command): ... this. | |
3105 | (initialize_targets): Adjust. | |
3106 | * tracepoint.c (tvariables_info): Rename to ... | |
3107 | (info_tvariables_command): ... this. | |
3108 | (scope_info): Rename to ... | |
3109 | (info_scope_command): ... this. | |
3110 | (trace_dump_actions): Adjust. | |
3111 | (_initialize_tracepoint): Adjust. | |
3112 | ||
b270e6f9 TT |
3113 | 2017-08-22 Tom Tromey <tom@tromey.com> |
3114 | ||
3115 | * breakpoint.h (install_breakpoint): Update. | |
3116 | * breakpoint.c (add_solib_catchpoint): Update. | |
3117 | (install_breakpoint): Change argument to a std::unique_ptr. | |
3118 | (create_fork_vfork_event_catchpoint): Use std::unique_ptr. | |
3119 | (create_breakpoint_sal, create_breakpoint): Update. | |
3120 | (watch_command_1, catch_exec_command_1) | |
3121 | (strace_marker_create_breakpoints_sal): Use std::unique_ptr. | |
3122 | (add_to_breakpoint_chain): Change argument to a std::unique_ptr. | |
3123 | Return the breakpoint. | |
3124 | (set_raw_breakpoint_without_location, set_raw_breakpoint) | |
3125 | (new_single_step_breakpoint): Update. | |
3126 | * break-catch-throw.c (handle_gnu_v3_exceptions): Use | |
3127 | std::unique_ptr. | |
3128 | * break-catch-syscall.c (create_syscall_event_catchpoint): Use | |
3129 | std::unique_ptr. | |
3130 | * break-catch-sig.c (create_signal_catchpoint): Use | |
3131 | std::unique_ptr. | |
3132 | * ada-lang.c (create_ada_exception_catchpoint): Use | |
3133 | std::unique_ptr. | |
3134 | ||
36bd8eaa TT |
3135 | 2017-08-22 Tom Tromey <tom@tromey.com> |
3136 | ||
3137 | * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr. | |
3138 | ||
56f37645 TT |
3139 | 2017-08-22 Tom Tromey <tom@tromey.com> |
3140 | ||
3141 | * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr. | |
3142 | (lookup_partial_symbol): Update. | |
3143 | ||
0b581c69 TT |
3144 | 2017-08-22 Tom Tromey <tom@tromey.com> |
3145 | ||
3146 | * source.h (rewrite_source_path): Return a unique_xmalloc_ptr. | |
3147 | * source.c (rewrite_source_path): Return a unique_xmalloc_ptr. | |
3148 | (find_and_open_source, symtab_to_fullname): Update. | |
3149 | * psymtab.c (psymtab_to_fullname): Update. | |
3150 | ||
14278e1f TT |
3151 | 2017-08-22 Tom Tromey <tom@tromey.com> |
3152 | ||
3153 | * exec.c (exec_file_attach): Update. | |
3154 | * linux-thread-db.c (try_thread_db_load): Update. | |
3155 | * guile/scm-safe-call.c (gdbscm_safe_source_script): Update. | |
3156 | * utils.c (gdb_realpath): Change return type. | |
3157 | (gdb_realpath_keepfile): Update. | |
3158 | (gdb_realpath_check_trailer, gdb_realpath_tests): New functions. | |
3159 | (_initialize_utils): Register the new self test. | |
3160 | * source.c (openp): Update. | |
3161 | (find_and_open_source): Update. | |
3162 | * nto-tdep.c (nto_find_and_open_solib): Update. | |
3163 | * main.c (set_gdb_data_directory): Update. | |
3164 | (captured_main_1): Update. | |
3165 | * dwarf2read.c (dwarf2_get_dwz_file): Update | |
3166 | (dw2_map_symbol_filenames): Update. | |
3167 | * auto-load.c (auto_load_safe_path_vec_update): Update. | |
3168 | (filename_is_in_auto_load_safe_path_vec): Change type of | |
3169 | "filename_realp". | |
3170 | (auto_load_objfile_script): Update. | |
3171 | (file_is_auto_load_safe): Update. Use std::string. | |
3172 | * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr. | |
3173 | ||
4971c9a7 TT |
3174 | 2017-08-22 Tom Tromey <tom@tromey.com> |
3175 | ||
3176 | * utils.c (gdb_realpath_keepfile): Return a | |
3177 | gdb::unique_xmalloc_ptr. | |
3178 | * exec.c (exec_file_attach): Update. | |
3179 | * utils.h (gdb_realpath_keepfile): Return a | |
3180 | gdb::unique_xmalloc_ptr. | |
3181 | ||
e3e41d58 TT |
3182 | 2017-08-22 Tom Tromey <tom@tromey.com> |
3183 | ||
3184 | * compile/compile.c (compile_file_command): Use | |
3185 | gdb::unique_xmalloc_ptr, std::string. | |
3186 | * utils.c (gdb_abspath): Change return type. | |
3187 | * source.c (openp): Update. | |
3188 | * objfiles.c (allocate_objfile): Update. | |
3189 | * main.c (set_gdb_data_directory): Update. | |
3190 | * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr. | |
3191 | ||
0d999a6e ZZ |
3192 | 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com> |
3193 | ||
3194 | * cli-cmds.c (list_commands): List actual code around more than | |
3195 | one location. | |
3196 | ||
329d5e7e JB |
3197 | 2017-08-21 John Baldwin <jhb@FreeBSD.org> |
3198 | ||
3199 | * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'. | |
3200 | ||
bf223d3e PA |
3201 | 2017-08-21 Pedro Alves <palves@redhat.com> |
3202 | ||
3203 | PR gdb/19487 | |
3204 | * c-exp.y (variable production): Handle function aliases. | |
3205 | * minsyms.c (msymbol_is_text): New function. | |
3206 | * minsyms.h (msymbol_is_text): Declare. | |
3207 | * symtab.c (find_function_alias_target): New function. | |
3208 | * symtab.h (find_function_alias_target): Declare. | |
3209 | ||
c973d0aa PA |
3210 | 2017-08-21 Pedro Alves <palves@redhat.com> |
3211 | ||
3212 | * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past | |
3213 | typedefs. | |
3214 | * typeprint.c (whatis_exp): If handling "whatis", and expression | |
3215 | is OP_TYPE, strip one typedef level. Otherwise don't strip | |
3216 | typedefs here. | |
3217 | * valops.c (value_cast): Save "to" type before resolving | |
3218 | stubs/typedefs. Use that type as resulting value's type. | |
3219 | ||
2989a365 TT |
3220 | 2017-08-18 Tom Tromey <tom@tromey.com> |
3221 | Pedro Alves <palves@redhat.com> | |
3222 | ||
3223 | * spu-multiarch.c (parse_spufs_run): Use scoped_restore. | |
3224 | * sol-thread.c (sol_thread_resume, sol_thread_wait) | |
3225 | (sol_thread_xfer_partial, rw_common): Use scoped_restore. | |
3226 | * procfs.c (procfs_do_thread_registers): Use scoped_restore. | |
3227 | * proc-service.c (ps_xfer_memory): Use scoped_restore. | |
3228 | * linux-tdep.c (linux_corefile_thread): Remove a cleanup. | |
3229 | (linux_get_siginfo_data): Add "thread" argument. Use | |
3230 | scoped_restore. | |
3231 | * linux-nat.c (linux_child_follow_fork) | |
3232 | (check_stopped_by_watchpoint): Use scoped_restore. | |
3233 | * infrun.c (displaced_step_prepare_throw, write_memory_ptid) | |
3234 | (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore. | |
3235 | (restore_inferior_ptid, save_inferior_ptid): Remove. | |
3236 | * btrace.c (btrace_fetch): Use scoped_restore. | |
3237 | * bsd-uthread.c (bsd_uthread_fetch_registers) | |
3238 | (bsd_uthread_store_registers): Use scoped_restore. | |
3239 | * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use | |
3240 | scoped_restore. | |
3241 | * aix-thread.c (aix_thread_resume, aix_thread_wait) | |
3242 | (aix_thread_xfer_partial): Use scoped_restore. | |
3243 | * inferior.h (save_inferior_ptid): Remove. | |
3244 | ||
e60eb288 YQ |
3245 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
3246 | ||
3247 | PR tdep/21818 | |
3248 | * arm-tdep.c (gdb_print_insn_arm): Mark | |
3249 | USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL. | |
3250 | ||
6d580b63 YQ |
3251 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
3252 | ||
3253 | * NEWS: Mention GDBserver's new option "--selftest". | |
3254 | * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c. | |
3255 | * selftest.c: Move it to common/selftest.c. | |
3256 | * selftest.h: Move it to common/selftest.h. | |
3257 | * selftest-arch.c (reset): New function. | |
3258 | (tests_with_arch): Call reset. | |
3259 | ||
86dcbf50 YQ |
3260 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
3261 | ||
3262 | * selftest.c (run_tests): Don't call QUIT. Call debug_printf | |
3263 | instead of exception_fprintf and printf_filtered. | |
3264 | ||
7649770c YQ |
3265 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
3266 | ||
3267 | * selftest.c (register_self_test): Rename it to | |
3268 | selftests::register_test. | |
3269 | (run_self_tests): selftest::run_tests. | |
3270 | * selftest.h: Update declarations. | |
3271 | * selftest-arch.c (register_self_test_foreach_arch): Rename it to | |
3272 | selftests::register_test_foreach_arch. | |
3273 | * selftest-arch.h: Update declaration. | |
3274 | * aarch64-tdep.c: Update. | |
3275 | * arm-tdep.c: Likewise. | |
3276 | * disasm-selftests.c: Likewise. | |
3277 | * dwarf2loc.c: Likewise. | |
3278 | * dwarf2-frame.c: Likewise. | |
3279 | * findvar.c: Likewise. | |
3280 | * gdbarch-selftests.c: Likewise. | |
3281 | * maint.c (maintenance_selftest): Likewise. | |
3282 | * regcache.c: Likewise. | |
3283 | * rust-exp.y: Likewise. | |
3284 | * selftest-arch.c: Likewise. | |
3285 | * unittests/environ-selftests.c: Likewise. | |
3286 | * unittests/function-view-selftests.c: Likewise. | |
3287 | * unittests/offset-type-selftests.c: Likewise. | |
3288 | * unittests/optional-selftests.c: Likewise. | |
3289 | * unittests/scoped_restore-selftests.c: Likewise. | |
3290 | * utils-selftests.c: Likewise. | |
3291 | ||
b0cba12e PA |
3292 | 2017-08-17 Pedro Alves <palves@redhat.com> |
3293 | ||
3294 | * cli/cli-cmds.c (source_command): Delete 'old_source_verbose' | |
3295 | local. | |
3296 | ||
4c8aa72d PA |
3297 | 2017-08-17 Pedro Alves <palves@redhat.com> |
3298 | ||
3299 | * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New | |
3300 | field. | |
3301 | (reset_die_in_process): Delete, replaced by ... | |
3302 | (process_die_scope): ... this new class. Make it responsible for | |
3303 | freeing cu->line_header too. | |
3304 | (process_die): Use process_die_scope. | |
3305 | (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in | |
3306 | cu->line_header_die_owner. Don't release the line header if it's | |
3307 | owned by the CU. | |
3308 | (setup_type_unit_groups): Make the CU/DIE own the line header. | |
3309 | Don't release the line header here. | |
3310 | ||
ba713918 AL |
3311 | 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change) |
3312 | ||
3313 | * elfread.c (elf_read_minimal_symbols): xfree synthsyms. | |
3314 | ||
44d0fb3a RK |
3315 | 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com> |
3316 | ||
3317 | * NEWS: Mention new shortcuts for nexti and stepi in TUI | |
3318 | Single-Key mode | |
3319 | ||
a5afdb16 RK |
3320 | 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com> |
3321 | ||
3322 | * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key | |
3323 | mode command list. | |
3324 | ||
47613aeb SH |
3325 | 2017-08-15 Stafford Horne <shorne@gmail.com> |
3326 | ||
3327 | * MAINTAINERS (Write After Approval): Add Stafford Horne. | |
3328 | ||
9c3cc999 SH |
3329 | 2017-08-15 Stafford Horne <shorne@gmail.com> |
3330 | ||
3331 | * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname. | |
3332 | ||
206726fb SDJ |
3333 | 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com> |
3334 | ||
3335 | PR gdb/21954 | |
3336 | * infcmd.c (unset_environment_command): Use the 'clear' method on | |
3337 | the environment instead of resetting it. | |
3338 | ||
0335ac6d JB |
3339 | 2017-08-15 John Baldwin <jhb@FreeBSD.org> |
3340 | ||
3341 | * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian | |
3342 | platforms. | |
3343 | ||
d3abe1c8 TT |
3344 | 2017-08-14 Tom Tromey <tom@tromey.com> |
3345 | ||
3346 | * valprint.c (print_octal_chars): Use HOST_CHAR_BIT. | |
3347 | (print_binary_chars): Likewise. | |
3348 | (BITS_IN_BYTES): Remove. | |
3349 | ||
d6382fff TT |
3350 | 2017-08-14 Tom Tromey <tom@tromey.com> |
3351 | ||
3352 | PR gdb/21675 | |
3353 | * valprint.c (LOW_ZERO): Change value to 034. | |
3354 | (print_octal_chars): Add static_asserts for octal constants. | |
3355 | * printcmd.c (print_scalar_formatted): Add 'd' case. | |
3356 | ||
f978cb06 TT |
3357 | 2017-08-11 Tom Tromey <tom@tromey.com> |
3358 | ||
3359 | * symfile.c (add_symbol_file_command): Use std::vector. | |
3360 | ||
2f5404b3 TT |
3361 | 2017-08-14 Tom Tromey <tom@tromey.com> |
3362 | ||
3363 | * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move. | |
3364 | * break-catch-syscall.c (create_syscall_event_catchpoint): Use | |
3365 | std::move. | |
3366 | * break-catch-sig.c (create_signal_catchpoint): Use std::move. | |
3367 | ||
de7985c3 PA |
3368 | 2017-08-11 Pedro Alves <palves@redhat.com> |
3369 | ||
3370 | * infrun.c (process_event_stop_test): Adjust | |
3371 | function_name_is_marked_for_skip call. | |
3372 | * skip.c: Include <list>. | |
3373 | (skiplist_entry): Make it a class with private fields, and | |
3374 | getters/setters. | |
3375 | (skiplist_entry_chain): Delete. | |
3376 | (skiplist_entries): New. | |
3377 | (skiplist_entry_count): Delete. | |
3378 | (highest_skiplist_entry_num): New. | |
3379 | (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete. | |
3380 | (add_skiplist_entry): Delete. | |
3381 | (skiplist_entry::skiplist_entry): New. | |
3382 | (skiplist_entry::add_entry): New. | |
3383 | (skip_file_command, skip_function): Adjust. | |
3384 | (compile_skip_regexp): Delete. | |
3385 | (skip_command): Don't compile regexp here. Adjust to use | |
3386 | skiplist_entry::add_entry. | |
3387 | (skip_info): Adjust to use range-for and getters. | |
3388 | (skip_enable_command, skip_disable_command): Adjust to use | |
3389 | range-for and setters. | |
3390 | (skip_delete_command): Adjust to use std::list. | |
3391 | (add_skiplist_entry): Delete. | |
3392 | (skip_file_p): Delete, refactored as ... | |
3393 | (skiplist_entry::do_skip_file_p): ... this new method. | |
3394 | (skip_gfile_p): Delete, refactored as ... | |
3395 | (skiplist_entry::do_gskip_file_p): ... this new method. | |
3396 | (skip_function_p, skip_rfunction_p): Delete, refactored as ... | |
3397 | (skiplist_entry::skip_function_p): ... this new method. | |
3398 | (function_name_is_marked_for_skip): Now returns bool, and takes | |
3399 | the function sal by const reference. Adjust to use range-for and | |
3400 | skiplist_entry methods. | |
3401 | (_initialize_step_skip): Remove references to | |
3402 | skiplist_entry_chain, skiplist_entry_count. | |
3403 | * skip.h (function_name_is_marked_for_skip): Now returns bool, and | |
3404 | takes the function sal by const reference. | |
3405 | ||
be7d3cd5 YQ |
3406 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
3407 | ||
3408 | * dwarf2-frame.c (clear_pointer_cleanup): Remove. | |
3409 | (dwarf2_frame_cache): Remove reset_cache_cleanup. | |
3410 | (dwarf2_frame_cache): | |
3411 | * frame-unwind.c (frame_unwind_try_unwinder): Catch | |
3412 | RETURN_MASK_ALL and set *this_case to NULL. | |
3413 | * frame-unwind.h: Update comments. | |
3414 | ||
1c90d9f0 YQ |
3415 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
3416 | ||
3417 | * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove. | |
3418 | (dwarf2_frame_state_copy_regs): Remove. | |
3419 | (dwarf2_frame_state_free_regs): Remove. | |
3420 | (dwarf2_frame_state::~dwarf2_frame_state): Remove. | |
3421 | (dwarf2_restore_rule): Call method .alloc_regs instead of | |
3422 | dwarf2_frame_state_alloc_regs. | |
3423 | (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info | |
3424 | constructor. Call std::move. | |
3425 | (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs. | |
3426 | (dwarf2_frame_cache): Likewise. | |
3427 | ||
3428 | [GDB_SELF_TEST]: Include selftest.h and | |
3429 | selftest-arch.h. | |
3430 | [GDB_SELF_TEST] (execute_cfa_program_test): New function. | |
3431 | (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register | |
3432 | execute_cfa_program_test. | |
3433 | ||
3434 | * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor, | |
3435 | copy ctor, assignment operator, move assignment. | |
3436 | <alloc_regs>: New method. | |
3437 | <swap>: New method. | |
3438 | (struct dwarf2_frame_state): Delete dtor. | |
3439 | (dwarf2_frame_state_alloc_regs): Remove declaration. | |
3440 | * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call | |
3441 | dwarf2_frame_state_alloc_regs, use .alloc_regs instead. | |
3442 | ||
afe37d6b YQ |
3443 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
3444 | ||
3445 | * dwarf2-frame.c (dwarf2_frame_state_free): Remove. | |
3446 | (dwarf2_frame_state::dwarf2_frame_state): New. | |
3447 | (dwarf2_frame_state::~dwarf2_frame_state): New. | |
3448 | (dwarf2_fetch_cfa_info): Update. | |
3449 | (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object | |
3450 | rather than a pointer. Update code. | |
3451 | * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and | |
3452 | dtor. | |
3453 | <data_align, code_align, retaddr_column>: Change them to const. | |
3454 | <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them | |
3455 | to bool. | |
3456 | ||
b348037f YQ |
3457 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
3458 | ||
3459 | * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove. | |
3460 | <loc.exp>: New field. | |
3461 | * dwarf2-frame.c (execute_cfa_program): Update. | |
3462 | (dwarf2_frame_prev_register): Update. | |
3463 | ||
e7c9de26 PA |
3464 | 2017-08-10 Pedro Alves <palves@redhat.com> |
3465 | ||
3466 | * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define. | |
3467 | ||
e8c6b620 JB |
3468 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
3469 | ||
3470 | * fbsd-nat.c (struct fbsd_fork_info): Remove. | |
3471 | (fbsd_pending_children): Use std::list. | |
3472 | (fbsd_remember_child): Likewise. | |
3473 | (fbsd_is_child_pending): Likewise. | |
3474 | (fbsd_pending_vfork_done): Use std::forward_list. | |
3475 | (fbsd_add_vfork_done): Likewise. | |
3476 | (fbsd_is_vfork_done_pending): Likewise. | |
3477 | (fbsd_next_vfork_done): Likewise. | |
3478 | ||
e4a26669 JB |
3479 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
3480 | ||
3481 | * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New. | |
3482 | (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr. | |
3483 | [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string | |
3484 | for `mapfilename'. | |
3485 | (fbsd_xfer_partial): Use gdb::byte_vector. | |
af3881e6 | 3486 | (fbsd_add_threads): Use gdb::unique_xmalloc_ptr. |
e4a26669 | 3487 | |
142311d3 JB |
3488 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
3489 | ||
3490 | * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and | |
3491 | "filestuff.h". | |
3492 | (fbsd_find_memory_regions): Fix `mapfile' initialization. | |
3493 | ||
42fa2e0e TT |
3494 | 2017-08-09 Tom Tromey <tom@tromey.com> |
3495 | ||
3496 | * skip.c (skiplist_entry): New constructor. | |
3497 | (skiplist_entry::enabled, skiplist_entry::function_is_regexp) | |
3498 | (skiplist_entry::file_is_glob): Now bool. | |
3499 | (skiplist_entry::file, skiplist_entry::function): Now | |
3500 | std::string. | |
3501 | (make_skip_entry): Return a unique_ptr. Use new. | |
3502 | (free_skiplist_entry, free_skiplist_entry_cleanup) | |
3503 | (make_free_skiplist_entry_cleanup): Remove. | |
3504 | (skip_command, skip_disable_command, add_skiplist_entry) | |
3505 | (skip_form_bytes, compile_skip_regexp, skip_command, skip_info) | |
3506 | (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p) | |
3507 | (function_name_is_marked_for_skip): Update. | |
3508 | (skip_delete_command): Update. Use delete. | |
3509 | ||
cd3af38d JW |
3510 | 2017-08-09 Jiong Wang <jiong.wang@arm.com> |
3511 | ||
3512 | * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h". | |
3513 | (aarch64_linux_core_read_description): New function. | |
3514 | (aarch64_linux_init_abi): Register gdbarch_core_read_description. | |
3515 | ||
29592bde PA |
3516 | 2017-08-09 Pedro Alves <palves@redhat.com> |
3517 | ||
3518 | * cp-name-parser.y (cp_comp_to_string): Return a | |
3519 | gdb::unique_xmalloc_ptr<char>. | |
3520 | * cp-support.c (replace_typedefs_qualified_name) | |
3521 | (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>. | |
3522 | (cp_canonicalize_string_full): Use op= instead of explicit | |
3523 | convertion. | |
3524 | (cp_class_name_from_physname, method_name_from_physname) | |
3525 | (cp_func_name, cp_remove_params): Adjust to use | |
3526 | gdb::unique_xmalloc_ptr<char>. | |
3527 | * cp-support.h (cp_comp_to_string): Return a | |
3528 | gdb::unique_xmalloc_ptr<char>. | |
3529 | * python/py-type.c (typy_lookup_type): Adjust to use | |
3530 | gdb::unique_xmalloc_ptr<char>. | |
3531 | ||
b3340438 L |
3532 | 2017-08-09 H.J. Lu <hongjiu.lu@intel.com> |
3533 | ||
3534 | * dwarf2read.c (dwarf2_string_attr): Fix a typo. | |
3535 | ||
e88e8651 YQ |
3536 | 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com> |
3537 | Yao Qi <yao.qi@linaro.org> | |
3538 | ||
3539 | * cp-support.c (cp_canonicalize_string_full): Use | |
3540 | gdb::unique_xmalloc_ptr<char>. | |
3541 | (cp_canonicalize_string): Likewise. | |
3542 | ||
f5a29eb0 YQ |
3543 | 2017-08-09 Yao Qi <yao.qi@linaro.org> |
3544 | ||
3545 | * features/Makefile (WHICH): Remove i386/ non-linux stuff. | |
3546 | * regformats/i386/amd64-avx-avx512.dat: Remove. | |
3547 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove. | |
3548 | * regformats/i386/amd64-avx-mpx.dat:Remove. | |
3549 | * regformats/i386/amd64-avx.dat: Remove. | |
3550 | * regformats/i386/amd64-mpx.dat: Remove. | |
3551 | * regformats/i386/i386-avx-avx512.dat: Remove. | |
3552 | * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove. | |
3553 | * regformats/i386/i386-avx-mpx.dat: Remove. | |
3554 | * regformats/i386/i386-mmx.dat: Remove. | |
3555 | * regformats/i386/i386-mpx.dat: Remove. | |
3556 | ||
57757c2f YQ |
3557 | 2017-08-09 Yao Qi <yao.qi@linaro.org> |
3558 | ||
3559 | * amd64-tdep.h (tdesc_x32): Remove the declaration. | |
3560 | * amd64-tdep.c: Don't include features/i386/x32*.c. | |
3561 | (_initialize_amd64_tdep): Don't call initialize_tdesc_x32* | |
3562 | functions. | |
3563 | * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx, | |
3564 | and i386/x32-avx-avx512. | |
3565 | (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml, | |
3566 | and i386/x32.xml. | |
3567 | * features/i386/x32-avx-avx512.c: Removed. | |
3568 | * features/i386/x32-avx-avx512.xml: Removed. | |
3569 | * features/i386/x32-avx.c: Removed. | |
3570 | * features/i386/x32-avx.xml: Removed. | |
3571 | * features/i386/x32.c: Removed. | |
3572 | * features/i386/x32.xml: Removed. | |
3573 | * regformats/i386/x32-avx-avx512.dat: Removed. | |
3574 | * regformats/i386/x32-avx.dat: Removed. | |
3575 | * regformats/i386/x32.dat: Removed. | |
3576 | ||
ba7b109b MR |
3577 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
3578 | ||
3579 | PR breakpoints/21886 | |
3580 | * mem-break.c (default_memory_insert_breakpoint): Use | |
3581 | `->placed_address' rather than `->reqstd_address' for the | |
3582 | breakpoint location. | |
3583 | ||
e347efc3 MR |
3584 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
3585 | ||
3586 | * arch-utils.c (default_print_insn): Remove arch/mach/endian | |
3587 | assertions. | |
3588 | ||
0dba2a6c MR |
3589 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
3590 | ||
3591 | * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with | |
3592 | a union of `tdep_info', `tdesc_data' and `id'. | |
3593 | * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data' | |
3594 | rather than `info.tdep_info'. | |
3595 | * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise. | |
3596 | * i386-linux-tdep.c (i386_linux_init_abi): Likewise. | |
3597 | * i386-tdep.c (i386_gdbarch_init): Likewise. | |
3598 | * mips-linux-tdep.c (mips_linux_init_abi): Likewise. | |
3599 | * mips-tdep.c (mips_gdbarch_init): Likewise. | |
3600 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. | |
3601 | * rs6000-tdep.c (rs6000_gdbarch_init): Likewise. | |
3602 | * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than | |
3603 | `info.tdep_info'. | |
3604 | (ppc_linux_init_abi): Use `info.tdesc_data' rather than | |
3605 | `info.tdep_info'. | |
3606 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. | |
3607 | * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than | |
3608 | `info.tdep_info'. | |
3609 | * spu-tdep.c (spu_gdbarch_init): Likewise. | |
3610 | * gdbarch.h: Regenerate. | |
3611 | ||
16eb6b2d LS |
3612 | 2017-08-07 Leszek Swirski <leszeks@google.com> |
3613 | ||
7b005726 | 3614 | PR symtab/20899 |
16eb6b2d LS |
3615 | * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt. |
3616 | ||
74cbb09e SM |
3617 | 2017-08-07 Simon Marchi <simon.marchi@ericsson.com> |
3618 | ||
3619 | * remote-sim.c (gdbsim_load): Remove char **argv local variable. | |
3620 | (gdbsim_open): Rename gdb_argv args object to argv. | |
3621 | ||
ee0c3293 TT |
3622 | 2017-08-05 Tom Tromey <tom@tromey.com> |
3623 | ||
3624 | * compile/compile-object-load.c (compile_object_load): Use | |
3625 | gdb::unique_xmalloc_ptr. | |
3626 | * cli/cli-dump.c (scan_filename): Rename from | |
3627 | scan_filename_with_cleanup. Change return type. | |
3628 | (scan_expression): Rename from scan_expression_with_cleanup. | |
3629 | Change return type. | |
3630 | (dump_memory_to_file, dump_value_to_file, restore_command): | |
3631 | Use gdb::unique_xmalloc_ptr. Update. | |
3632 | * cli/cli-cmds.c (find_and_open_script): Use | |
3633 | gdb::unique_xmalloc_ptr. | |
3634 | * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr. | |
3635 | * symmisc.c (maintenance_print_symbols) | |
3636 | (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr. | |
3637 | * symfile.c (symfile_bfd_open, generic_load) | |
3638 | (add_symbol_file_command, remove_symbol_file_command): Use | |
3639 | gdb::unique_xmalloc_ptr. | |
3640 | * source.c (openp): Use gdb::unique_xmalloc_ptr. | |
3641 | * psymtab.c (maintenance_print_psymbols): Use | |
3642 | gdb::unique_xmalloc_ptr. | |
3643 | * corelow.c (core_open): Use gdb::unique_xmalloc_ptr. | |
3644 | * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr. | |
3645 | * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr. | |
3646 | (reload_shared_libraries_1): Likewise. | |
3647 | ||
3232fabd TT |
3648 | 2017-08-05 Tom Tromey <tom@tromey.com> |
3649 | ||
3650 | * rust-exp.y (rust_op_ptr, set_field): Remove typedefs. | |
3651 | (rust_op_vector, rust_set_vector): New typedefs. | |
3652 | (current_parser): New global. | |
3653 | (work_obstack): Change to pointer type. Update all users. | |
3654 | (rust_ast, pstate): Remove globals. | |
3655 | (struct rust_parser): New. | |
3656 | (%union) <params, field_inits>: Change type. | |
3657 | (start, tuple_expr, unit_expr, struct_expr_list, literal) | |
3658 | (field_expr, expr_list, maybe_expr_list, type_list): Update. | |
3659 | (ast_call_ish, ast_path, ast_function_type, ast_tuple_type) | |
3660 | (convert_params_to_types, convert_params_to_expression): Change | |
3661 | type of "params". | |
3662 | (ast_string): Change type of "fields". | |
3663 | (rust_parse): Make a rust_parser. Remove cleanups. | |
3664 | (rust_lex_tests): Make and install an auto_obstack. | |
3665 | ||
f02fd774 YQ |
3666 | 2017-08-04 Yao Qi <yao.qi@linaro.org> |
3667 | ||
3668 | * configure.srv (ipa_x32_linux_regobj): New. | |
3669 | * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512 | |
3670 | instead of X86_TDESC_AVX512. | |
3671 | (initialize_low_tracepoint): Call | |
3672 | init_registers_x32_avx_avx512_linux. | |
3673 | ||
91975afd YQ |
3674 | 2017-08-04 Yao Qi <yao.qi@linaro.org> |
3675 | ||
3676 | * utils.h (gdb_argv): Add namespace std for nullptr_t. | |
3677 | ||
2331fa3a RK |
3678 | 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com> |
3679 | ||
3680 | * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev. | |
3681 | ||
744e4fe1 TT |
3682 | 2017-08-03 Tom Tromey <tom@tromey.com> |
3683 | ||
3684 | * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv): | |
3685 | Remove. | |
3686 | * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove. | |
3687 | ||
1c034b67 TT |
3688 | 2017-08-03 Tom Tromey <tom@tromey.com> |
3689 | ||
3690 | * python/py-param.c (compute_enum_values): Use gdb_argv. | |
3691 | ||
773a1edc TT |
3692 | 2017-08-03 Tom Tromey <tom@tromey.com> |
3693 | ||
3694 | * utils.h (struct gdb_argv_deleter): New. | |
3695 | (gdb_argv): New class. | |
3696 | * utils.c (gdb_argv::reset): New method. | |
3697 | * tracepoint.c (delete_trace_variable_command): Use gdb_argv. | |
3698 | * tracefile.c (tsave_command): Use gdb_argv. | |
3699 | * top.c (new_ui_command): Use gdb_argv. | |
3700 | * symmisc.c (maintenance_print_symbols) | |
3701 | (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv. | |
3702 | * symfile.c (symbol_file_command, generic_load) | |
3703 | (remove_symbol_file_command): Use gdb_argv. | |
3704 | * stack.c (backtrace_command): Use gdb_argv. | |
3705 | * source.c (add_path, show_substitute_path_command) | |
3706 | (unset_substitute_path_command, set_substitute_path_command): | |
3707 | Use gdb_argv. | |
3708 | * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv. | |
3709 | * ser-mingw.c (pipe_windows_open): Use gdb_argv. | |
3710 | * remote.c (extended_remote_run, remote_put_command) | |
3711 | (remote_get_command, remote_delete_command): Use gdb_argv. | |
3712 | * remote-sim.c (gdbsim_load, gdbsim_create_inferior) | |
3713 | (gdbsim_open): Use gdb_argv. | |
3714 | * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv. | |
3715 | * psymtab.c (maintenance_print_psymbols): Use gdb_argv. | |
3716 | * procfs.c (procfs_info_proc): Use gdb_argv. | |
3717 | * interps.c (interpreter_exec_cmd): Use gdb_argv. | |
3718 | * infrun.c (handle_command): Use gdb_argv. | |
3719 | * inferior.c (add_inferior_command, clone_inferior_command): | |
3720 | Use gdb_argv. | |
3721 | * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv. | |
3722 | * exec.c (exec_file_command): Use gdb_argv. | |
3723 | * cli/cli-cmds.c (alias_command): Use gdb_argv. | |
3724 | * compile/compile.c (build_argc_argv): Use gdb_argv. | |
3725 | ||
0d50bde3 TT |
3726 | 2017-08-03 Tom Tromey <tom@tromey.com> |
3727 | ||
3728 | * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr. | |
3729 | ||
7f968c89 TT |
3730 | 2017-08-03 Tom Tromey <tom@tromey.com> |
3731 | ||
3732 | * python/python.c (compute_python_string): Return std::string. | |
3733 | (gdbpy_eval_from_control_command): Update. | |
3734 | (do_start_initialization): Use std::string. | |
3735 | * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not | |
3736 | xstrprintf. | |
3737 | * python/py-breakpoint.c (local_setattro): Use string_printf, not | |
3738 | xstrprintf. | |
3739 | ||
3c9ebddd TT |
3740 | 2017-08-03 Tom Tromey <tom@tromey.com> |
3741 | ||
3742 | * top.h (do_restore_instream_cleanup): Remove. | |
3743 | * top.c (do_restore_instream_cleanup): Remove. | |
3744 | (read_command_file): Use scoped_restore. | |
3745 | * cli/cli-script.c (execute_user_command): Use scoped_restore. | |
3746 | ||
b51b225e TT |
3747 | 2017-08-03 Tom Tromey <tom@tromey.com> |
3748 | ||
3749 | * cli/cli-script.c (execute_user_command) | |
3750 | (execute_control_command): Use scoped_restore. | |
3751 | ||
ac991630 TT |
3752 | 2017-08-03 Tom Tromey <tom@tromey.com> |
3753 | ||
3754 | * cli/cli-script.c (do_restore_user_call_depth): Remove. | |
3755 | (execute_user_command): Remove user_call_depth; use | |
3756 | user_args_stack's size instead. | |
3757 | ||
898e0c8e TT |
3758 | 2017-08-03 Tom Tromey <tom@tromey.com> |
3759 | ||
3760 | * top.h (in_user_command): Remove. | |
3761 | * top.c (in_user_command): Remove. | |
3762 | * cli/cli-script.c (do_restore_user_call_depth) | |
3763 | (execute_user_command): Update. | |
3764 | ||
26fcd5d7 TT |
3765 | 2017-08-03 Tom Tromey <tom@tromey.com> |
3766 | ||
3767 | * valops.c (search_struct_method): Use gdb::byte_vector. | |
3768 | * valarith.c (value_concat): Use std::vector. | |
3769 | * target.c (memory_xfer_partial): Use gdb::byte_vector. | |
3770 | (simple_search_memory): Likewise. | |
3771 | * printcmd.c (find_string_backward): Use gdb::byte_vector. | |
3772 | * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector. | |
3773 | * gcore.c (gcore_copy_callback): Use gdb::byte_vector. | |
3774 | * elfread.c (elf_rel_plt_read): Use std::string. | |
3775 | * cp-valprint.c (cp_print_value): Use gdb::byte_vector. | |
3776 | * cli/cli-dump.c (restore_section_callback): Use | |
3777 | gdb::byte_vector. | |
3778 | ||
7c218e6c TT |
3779 | 2017-08-03 Tom Tromey <tom@tromey.com> |
3780 | ||
3781 | * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr. | |
3782 | ||
31b68d4a TT |
3783 | 2017-08-03 Tom Tromey <tom@tromey.com> |
3784 | ||
3785 | * tui/tui-regs.c (tui_restore_gdbout): Remove. | |
3786 | (tui_register_format): Use scoped_restore. | |
3787 | ||
2ec845e7 TT |
3788 | 2017-08-03 Tom Tromey <tom@tromey.com> |
3789 | ||
3790 | * reverse.c (exec_direction_default): Remove. | |
3791 | (exec_reverse_once): Use scoped_restore. | |
3792 | * remote.c (restore_remote_timeout): Remove. | |
3793 | (remote_flash_erase, remote_flash_write, remote_flash_done) | |
3794 | (readchar, remote_serial_write): Use scoped_restore. | |
3795 | * cli/cli-script.c (struct source_cleanup_lines_args) | |
3796 | (source_cleanup_lines): Remove. | |
3797 | (script_from_file): Use scoped_restore. | |
3798 | * cli/cli-cmds.c (source_verbose_cleanup): Remove. | |
3799 | (source_command): Use scoped_restore. | |
3800 | ||
b3bc8453 TT |
3801 | 2017-08-03 Tom Tromey <tom@tromey.com> |
3802 | ||
3803 | * utils.h (make_cleanup_free_so): Remove. | |
3804 | * utils.c (do_free_so, make_cleanup_free_so): Remove. | |
3805 | * solist.h (struct so_deleter): New. | |
3806 | (so_list_up): New typedef. | |
3807 | * solib-svr4.c (svr4_read_so_list): Use so_list_up. | |
3808 | ||
e3ad2841 TT |
3809 | 2017-08-03 Tom Tromey <tom@tromey.com> |
3810 | ||
3811 | * utils.h (make_cleanup_restore_current_language): Remove. | |
3812 | * utils.c (do_restore_current_language) | |
3813 | (make_cleanup_restore_current_language): Remove. | |
3814 | * parse.c (parse_exp_in_context_1) | |
3815 | (parse_expression_with_language): Use | |
3816 | scoped_restore_current_language. | |
3817 | * mi/mi-main.c (mi_cmd_execute): Use | |
3818 | scoped_restore_current_language. | |
3819 | * language.h (scoped_restore_current_language): New class. | |
3820 | ||
b80cf838 TT |
3821 | 2017-08-03 Tom Tromey <tom@tromey.com> |
3822 | ||
3823 | * compile/compile.c (cleanup_unlink_file): Remove. | |
3824 | (compile_to_object): Use gdb::unlinker. | |
3825 | (eval_compile_command): Likewise. | |
3826 | ||
fad0444a TT |
3827 | 2017-08-03 Tom Tromey <tom@tromey.com> |
3828 | ||
3829 | * utils.h (make_cleanup_fclose): Remove. | |
3830 | * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove. | |
3831 | ||
6e7bc05c TT |
3832 | 2017-08-03 Tom Tromey <tom@tromey.com> |
3833 | ||
3834 | * top.c (open_terminal_stream): Return gdb_file_up. | |
3835 | (new_ui_command): Update. | |
3836 | ||
4a45905b TT |
3837 | 2017-08-03 Tom Tromey <tom@tromey.com> |
3838 | ||
3839 | * source.c (print_source_lines_base, forward_search_command) | |
3840 | (reverse_search_command): Use gdb_file_up. | |
3841 | ||
7cd06d6e TT |
3842 | 2017-08-03 Tom Tromey <tom@tromey.com> |
3843 | ||
3844 | * fbsd-nat.c (fbsd_find_memory_regions): Update. | |
3845 | ||
ed166945 TT |
3846 | 2017-08-03 Tom Tromey <tom@tromey.com> |
3847 | ||
3848 | * cli/cli-cmds.c (find_and_open_script): Change return type. | |
3849 | Remove "streamp" and "full_path" parameters. | |
3850 | (source_script_with_search): Update. | |
3851 | * auto-load.c (source_script_file): Update. | |
3852 | * cli/cli-cmds.h (find_and_open_script): Change type. | |
3853 | (open_script): New struct. | |
3854 | ||
d419f42d TT |
3855 | 2017-08-03 Tom Tromey <tom@tromey.com> |
3856 | ||
3857 | * xml-support.c (xml_fetch_content_from_file): Update. | |
3858 | * ui-file.c (stdio_file::open): Update. | |
3859 | * tracefile-tfile.c (tfile_start): Update. | |
3860 | * remote.c (remote_file_put, remote_file_get): Update. | |
3861 | * nat/linux-procfs.c (linux_proc_get_int) | |
3862 | (linux_proc_pid_get_state, linux_proc_tid_get_name): Update. | |
3863 | * nat/linux-osdata.c (linux_common_core_of_thread): Update. | |
3864 | (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus) | |
3865 | (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem) | |
3866 | (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update. | |
3867 | * nat/linux-btrace.c (linux_determine_kernel_start): Update. | |
3868 | * linux-nat.c (linux_proc_pending_signals): Update. | |
3869 | * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up. | |
3870 | (file_closer): Remove. | |
3871 | * compile/compile.c (compile_to_object): Update. | |
3872 | * common/filestuff.h (struct gdb_file_deleter): New. | |
3873 | (gdb_file_up): New typedef. | |
3874 | (gdb_fopen_cloexec): Change return type. | |
3875 | * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up. | |
3876 | * cli/cli-dump.c (fopen_with_cleanup): Remove. | |
3877 | (dump_binary_file, restore_binary_file): Update. | |
3878 | * auto-load.c (auto_load_objfile_script_1): Update. | |
3879 | ||
4a2b031d TT |
3880 | 2017-08-03 Tom Tromey <tom@tromey.com> |
3881 | ||
3882 | * tracepoint.c (tvariables_info_1): Use ui_out_emit_table. | |
3883 | (info_static_tracepoint_markers_command): Likewise. | |
3884 | * solib.c (info_sharedlibrary_command): Use ui_out_emit_table. | |
3885 | * skip.c (skip_info): Use ui_out_emit_table. | |
3886 | * progspace.c (print_program_space): Use ui_out_emit_table. | |
3887 | * osdata.c (info_osdata): Use ui_out_emit_table. | |
3888 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use | |
3889 | ui_out_emit_table. | |
3890 | * linux-thread-db.c (info_auto_load_libthread_db): Use | |
3891 | ui_out_emit_table. | |
3892 | * inferior.c (print_inferior): Use ui_out_emit_table. | |
3893 | * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table. | |
3894 | * breakpoint.c (breakpoint_1): Use ui_out_emit_table. | |
3895 | * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table. | |
3896 | * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table. | |
3897 | * ui-out.h (class ui_out_emit_table): New. | |
3898 | ||
a4f320fd MR |
3899 | 2017-08-02 Maciej W. Rozycki <macro@imgtec.com> |
3900 | ||
3901 | * mips-tdep.c (mips_fpu_type_str): New function. | |
3902 | (mips_dump_tdep): Call it. | |
3903 | ||
a2f1f308 MR |
3904 | 2017-08-01 Maciej W. Rozycki <macro@imgtec.com> |
3905 | ||
3906 | * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access | |
3907 | `->mips_fpu_type'. | |
3908 | ||
7e5ed83b XR |
3909 | 2017-07-31 Xavier Roirand <roirand@adacore.com> |
3910 | ||
3911 | * solib-darwin.c (DYLD_VERSION_MAX): Increase value. | |
3912 | ||
4c9dc811 XR |
3913 | 2017-07-27 Xavier Roirand <roirand@adacore.com> |
3914 | ||
3915 | * MAINTAINERS (Write After Approval): Add Xavier Roirand. | |
3916 | ||
27d41eac YQ |
3917 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
3918 | ||
3919 | * cli/cli-cmds.c (maintenancechecklist): New variable. | |
3920 | * gdbcmd.h (maintenancechecklist): Declare it. | |
3921 | * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]: | |
3922 | Call i386_linux_read_description with different masks. | |
3923 | * maint.c (maintenance_check_command): New function. | |
3924 | (_initialize_maint_cmds): Call add_prefix_cmd. | |
3925 | * target-descriptions.c (tdesc_reg): override operator != and ==. | |
3926 | (tdesc_type): Likewise. | |
3927 | (tdesc_feature): Likewise. | |
3928 | (target_desc): Likewise. | |
3929 | [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function. | |
3930 | (maintenance_check_xml_descriptions): New function. | |
3931 | (_initialize_target_descriptions) Add command "xml-descriptions". | |
3932 | * target-descriptions.h (selftests::record_xml_tdesc): Declare. | |
3933 | ||
ea03d0d3 YQ |
3934 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
3935 | ||
3936 | * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c. | |
3937 | Include features/i386/32bit-*.c. | |
3938 | (i386_linux_read_description): Generate target description if it | |
3939 | doesn't exist. | |
3940 | (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386 | |
3941 | functions. | |
3942 | * features/i386/32bit-linux.c: Re-generated. | |
3943 | * features/i386/32bit-sse.c: Likewise. | |
3944 | * target-descriptions.c (print_c_feature::visit): Print code to | |
3945 | set register number if needed. | |
3946 | (print_c_feature) <m_next_regnum>: New field. | |
3947 | ||
25aa13e5 YQ |
3948 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
3949 | ||
3950 | * features/Makefile (CFILES): Rename with TDESC_CFILES. | |
3951 | (FEATURE_XMLFILES): New. | |
3952 | (FEATURE_CFILES): New. | |
3953 | New rules. | |
3954 | (clean-cfiles): Remove generated c files. | |
3955 | * features/i386/32bit-avx.c: Generated. | |
3956 | * features/i386/32bit-avx512.c: Generated. | |
3957 | * features/i386/32bit-core.c: Generated. | |
3958 | * features/i386/32bit-linux.c: Generated. | |
3959 | * features/i386/32bit-mpx.c: Generated. | |
3960 | * features/i386/32bit-pkeys.c: Generated. | |
3961 | * features/i386/32bit-sse.c: Generated. | |
3962 | * target-descriptions.c: Include algorithm. | |
3963 | (tdesc_element_visitor): Add method visit_end. | |
3964 | (print_c_tdesc): Implement visit_end. | |
3965 | (print_c_tdesc:: m_filename_after_features): Move it to | |
3966 | protected. | |
3967 | (print_c_feature): New class. | |
3968 | (maint_print_c_tdesc_cmd): Use print_c_feature if XML file | |
3969 | name starts with "i386/32bit-". | |
3970 | ||
6eb1e6a8 YQ |
3971 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
3972 | ||
3973 | * target-descriptions.c (tdesc_element_visitor): New class. | |
3974 | (tdesc_element): New class. | |
3975 | (tdesc_reg): Inherit from tdesc_element. | |
3976 | (tdesc_reg::accept): New function. | |
3977 | (tdesc_type): Inherit from tdesc_element. | |
3978 | (tdesc_type::accept): New function. | |
3979 | (tdesc_feature): Inherit from tdesc_element. | |
3980 | (tdesc_feature::accept): New function. | |
3981 | (target_desc): Inherit from tdesc_element. | |
3982 | (target_desc::target_desc): New. | |
3983 | (target_desc::~target_desc): New. | |
3984 | (target_desc::accept): New. | |
3985 | (allocate_target_description): Use new. | |
3986 | (free_target_description): Use delete. | |
3987 | (print_c_tdesc): New class. | |
3988 | (maint_print_c_tdesc_cmd): Adjust. | |
3989 | ||
3990 | * features/aarch64.c: Re-generated. | |
3991 | * features/arc-arcompact.c: Re-generated. | |
3992 | * features/arc-v2.c: Re-generated. | |
3993 | * features/arm/arm-with-iwmmxt.c: Re-generated. | |
3994 | * features/arm/arm-with-m.c: Re-generated. | |
3995 | * features/arm/arm-with-m-fpa-layout.c: Re-generated. | |
3996 | * features/arm/arm-with-m-vfp-d16.c: Re-generated. | |
3997 | * features/arm/arm-with-neon.c: Re-generated. | |
3998 | * features/arm/arm-with-vfpv2.c: Re-generated. | |
3999 | * features/arm/arm-with-vfpv3.c: Re-generated. | |
4000 | * features/i386/amd64-avx-avx512.c: Re-generated. | |
4001 | * features/i386/amd64-avx-avx512-linux.c: Re-generated. | |
4002 | * features/i386/amd64-avx.c: Re-generated. | |
4003 | * features/i386/amd64-avx-linux.c: Re-generated. | |
4004 | * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated. | |
4005 | * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated. | |
4006 | * features/i386/amd64-avx-mpx.c: Re-generated. | |
4007 | * features/i386/amd64-avx-mpx-linux.c: Re-generated. | |
4008 | * features/i386/amd64.c: Re-generated. | |
4009 | * features/i386/amd64-linux.c: Re-generated. | |
4010 | * features/i386/amd64-mpx.c: Re-generated. | |
4011 | * features/i386/amd64-mpx-linux.c: Re-generated. | |
4012 | * features/i386/i386-avx-avx512.c: Re-generated. | |
4013 | * features/i386/i386-avx-avx512-linux.c: Re-generated. | |
4014 | * features/i386/i386-avx.c: Re-generated. | |
4015 | * features/i386/i386-avx-linux.c: Re-generated. | |
4016 | * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated. | |
4017 | * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated. | |
4018 | * features/i386/i386-avx-mpx.c: Re-generated. | |
4019 | * features/i386/i386-avx-mpx-linux.c: Re-generated. | |
4020 | * features/i386/i386.c: Re-generated. | |
4021 | * features/i386/i386-linux.c: Re-generated. | |
4022 | * features/i386/i386-mmx.c: Re-generated. | |
4023 | * features/i386/i386-mmx-linux.c: Re-generated. | |
4024 | * features/i386/i386-mpx.c: Re-generated. | |
4025 | * features/i386/i386-mpx-linux.c: Re-generated. | |
4026 | * features/i386/x32-avx-avx512.c: Re-generated. | |
4027 | * features/i386/x32-avx-avx512-linux.c: Re-generated. | |
4028 | * features/i386/x32-avx.c: Re-generated. | |
4029 | * features/i386/x32-avx-linux.c: Re-generated. | |
4030 | * features/i386/x32.c: Re-generated. | |
4031 | * features/i386/x32-linux.c: Re-generated. | |
4032 | * features/microblaze.c: Re-generated. | |
4033 | * features/microblaze-with-stack-protect.c: Re-generated. | |
4034 | * features/mips64-dsp-linux.c: Re-generated. | |
4035 | * features/mips64-linux.c: Re-generated. | |
4036 | * features/mips-dsp-linux.c: Re-generated. | |
4037 | * features/mips-linux.c: Re-generated. | |
4038 | * features/nds32.c: Re-generated. | |
4039 | * features/nios2.c: Re-generated. | |
4040 | * features/nios2-linux.c: Re-generated. | |
4041 | * features/rs6000/powerpc-32.c: Re-generated. | |
4042 | * features/rs6000/powerpc-32l.c: Re-generated. | |
4043 | * features/rs6000/powerpc-403.c: Re-generated. | |
4044 | * features/rs6000/powerpc-403gc.c : Re-generated. | |
4045 | * features/rs6000/powerpc-405.c: Re-generated. | |
4046 | * features/rs6000/powerpc-505.c: Re-generated. | |
4047 | * features/rs6000/powerpc-601.c: Re-generated. | |
4048 | * features/rs6000/powerpc-602.c: Re-generated. | |
4049 | * features/rs6000/powerpc-603.c: Re-generated. | |
4050 | * features/rs6000/powerpc-604.c: Re-generated. | |
4051 | * features/rs6000/powerpc-64.c: Re-generated. | |
4052 | * features/rs6000/powerpc-64l.c: Re-generated. | |
4053 | * features/rs6000/powerpc-7400.c: Re-generated. | |
4054 | * features/rs6000/powerpc-750.c: Re-generated. | |
4055 | * features/rs6000/powerpc-860.c: Re-generated. | |
4056 | * features/rs6000/powerpc-altivec32.c: Re-generated. | |
4057 | * features/rs6000/powerpc-altivec32l.c: Re-generated. | |
4058 | * features/rs6000/powerpc-altivec64.c: Re-generated. | |
4059 | * features/rs6000/powerpc-altivec64l.c: Re-generated. | |
4060 | * features/rs6000/powerpc-cell32l.c: Re-generated. | |
4061 | * features/rs6000/powerpc-cell64l.c: Re-generated. | |
4062 | * features/rs6000/powerpc-e500.c: Re-generated. | |
4063 | * features/rs6000/powerpc-e500l.c: Re-generated. | |
4064 | * features/rs6000/powerpc-isa205-32l.c: Re-generated. | |
4065 | * features/rs6000/powerpc-isa205-64l.c: Re-generated. | |
4066 | * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated. | |
4067 | * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated. | |
4068 | * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated. | |
4069 | * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated. | |
4070 | * features/rs6000/powerpc-vsx32.c: Re-generated. | |
4071 | * features/rs6000/powerpc-vsx32l.c: Re-generated. | |
4072 | * features/rs6000/powerpc-vsx64.c: Re-generated. | |
4073 | * features/rs6000/powerpc-vsx64l.c: Re-generated. | |
4074 | * features/rs6000/rs6000.c: Re-generated. | |
4075 | * features/s390-linux32.c: Re-generated. | |
4076 | * features/s390-linux32v1.c: Re-generated. | |
4077 | * features/s390-linux32v2.c: Re-generated. | |
4078 | * features/s390-linux64.c: Re-generated. | |
4079 | * features/s390-linux64v1.c: Re-generated. | |
4080 | * features/s390-linux64v2.c: Re-generated. | |
4081 | * features/s390-te-linux64.c: Re-generated. | |
4082 | * features/s390-tevx-linux64.c: Re-generated. | |
4083 | * features/s390-vx-linux64.c: Re-generated. | |
4084 | * features/s390x-linux64.c: Re-generated. | |
4085 | * features/s390x-linux64v1.c: Re-generated. | |
4086 | * features/s390x-linux64v2.c: Re-generated. | |
4087 | * features/s390x-te-linux64.c: Re-generated. | |
4088 | * features/s390x-tevx-linux64.c: Re-generated. | |
4089 | * features/s390x-vx-linux64.c: Re-generated. | |
4090 | * features/sparc/sparc32-solaris.c: Re-generated. | |
4091 | * features/sparc/sparc64-solaris.c: Re-generated. | |
4092 | * features/tic6x-c62x.c: Re-generated. | |
4093 | * features/tic6x-c62x-linux.c: Re-generated. | |
4094 | * features/tic6x-c64x.c: Re-generated. | |
4095 | * features/tic6x-c64x-linux.c: Re-generated. | |
4096 | * features/tic6x-c64xp.c: Re-generated. | |
4097 | * features/tic6x-c64xp-linux.c: Re-generated. | |
4098 | ||
35b4818d YQ |
4099 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
4100 | ||
4101 | * i386-linux-tdep.c (i386_linux_read_description): New function. | |
4102 | (i386_linux_core_read_description): Call | |
4103 | i386_linux_read_description. | |
4104 | * i386-linux-tdep.h (i386_linux_read_description): Declare. | |
4105 | (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations. | |
4106 | (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise | |
4107 | (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise. | |
4108 | (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise. | |
4109 | * x86-linux-nat.c (x86_linux_read_description): Call | |
4110 | i386_linux_read_description. | |
4111 | ||
8e2141c6 YQ |
4112 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
4113 | ||
4114 | * NEWS: Mention it. | |
4115 | * features/Makefile (%.c: %.xml): Pass the xml file name to | |
4116 | command "maint print c-tdesc". | |
4117 | * target-descriptions.c (maint_print_c_tdesc_cmd): Get file | |
4118 | name from 'arg'. | |
4119 | ||
b468ff4c YQ |
4120 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
4121 | ||
4122 | * target-descriptions.c (target_desc): Add ctor and dtor. Do | |
4123 | in-class initialization. | |
4124 | (tdesc_create_feature): Call new instead of XCNEW. | |
4125 | (free_target_description): Ue delete. | |
4126 | ||
b9c0e1b4 JB |
4127 | 2017-07-25 John Baldwin <jhb@FreeBSD.org> |
4128 | ||
4129 | * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo. | |
4130 | ||
a04b5337 YQ |
4131 | 2017-07-25 Yao Qi <yao.qi@linaro.org> |
4132 | ||
4133 | * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc | |
4134 | constant. | |
4135 | (amd64_x32_init_abi): Likewise. | |
4136 | * amd64-tdep.h (amd64_init_abi): Update declaration. | |
4137 | (amd64_x32_init_abi): Likewise. | |
4138 | ||
02ad7fc2 YQ |
4139 | 2017-07-25 Yao Qi <yao.qi@linaro.org> |
4140 | ||
4141 | PR tdep/21717 | |
4142 | * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update | |
4143 | condition for FPSCR. | |
4144 | (arm_linux_store_inferior_registers): Likewise. | |
4145 | ||
b6f48cb0 TT |
4146 | 2017-07-22 Tom Tromey <tom@tromey.com> |
4147 | ||
4148 | * break-catch-syscall.c (struct catch_syscall_inferior_data) | |
4149 | <syscalls_counts>: Now a std::vector. | |
4150 | (get_catch_syscall_inferior_data): Use "new". | |
4151 | (catch_syscall_inferior_data_cleanup): Use "delete". | |
4152 | (insert_catch_syscall, remove_catch_syscall) | |
4153 | (clear_syscall_counts): Update. | |
4154 | ||
e12c9b7a TT |
4155 | 2017-07-22 Tom Tromey <tom@tromey.com> |
4156 | ||
4157 | * break-catch-syscall.c (syscall_catchpoint) | |
4158 | <syscalls_to_be_caught>: Now a std::vector<int> | |
4159 | (~syscall_catchpoint): Remove. | |
4160 | (insert_catch_syscall, remove_catch_syscall) | |
4161 | (breakpoint_hit_catch_syscall, print_one_catch_syscall) | |
4162 | (print_mention_catch_syscall, print_recreate_catch_syscall): | |
4163 | Update. | |
4164 | (create_syscall_event_catchpoint): Change type of "filter" | |
4165 | parameter. | |
4166 | (catch_syscall_split_args): Return a std::vector. | |
4167 | (catch_syscall_command_1, catching_syscall_number_1): Update. | |
4168 | ||
4fa8aeac TT |
4169 | 2017-07-22 Tom Tromey <tom@tromey.com> |
4170 | ||
4171 | * break-catch-throw.c (struct exception_catchpoint) | |
4172 | <exception_rx>: Now a std::string. | |
4173 | (~exception_catchpoint): Remove. | |
4174 | (print_one_detail_exception_catchpoint): Update. | |
4175 | (handle_gnu_v3_exceptions): Change type of except_rx. | |
4176 | (extract_exception_regexp): Return a std::string. | |
4177 | (catch_exception_command_1): Update. | |
4178 | ||
f746a154 TT |
4179 | 2017-07-22 Tom Tromey <tom@tromey.com> |
4180 | ||
4181 | * break-catch-sig.c (gdb_signal_type): Remove typedef. | |
4182 | (struct signal_catchpoint) <signals_to_be_caught>: Now a | |
4183 | std::vector. | |
4184 | <catch_all>: Now a bool. | |
4185 | (~signal_catchpoint): Remove. | |
4186 | (signal_catchpoint_insert_location) | |
4187 | (signal_catchpoint_remove_location) | |
4188 | (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one) | |
4189 | (signal_catchpoint_print_mention) | |
4190 | (signal_catchpoint_print_recreate) | |
4191 | (signal_catchpoint_explains_signal): Update. | |
4192 | (create_signal_catchpoint): Change type of "filter" and | |
4193 | "catch_all". | |
4194 | (catch_signal_split_args): Return a std::vector. Change type of | |
4195 | "catch_all". | |
4196 | (catch_signal_command): Update. | |
4197 | ||
47e77640 PA |
4198 | 2017-07-20 Pedro Alves <palves@redhat.com> |
4199 | ||
4200 | * ada-lang.c (ada_language_defn): Make extern. | |
4201 | (_initialize_ada_language): Remove add_language call. | |
4202 | * c-lang.c (c_language_defn, cplus_language_defn) | |
4203 | (asm_language_defn, minimal_language_defn): Make extern. | |
4204 | (_initialize_c_language): Delete. | |
4205 | * completer.c (compare_cstrings): Delete, moved to utils.h. | |
4206 | * d-lang.c (d_language_defn): Make extern. | |
4207 | (_initialize_d_language): Remove add_language calls. | |
4208 | * defs.h (enum language): Add comment. | |
4209 | * f-lang.c (f_language_defn): Make extern. | |
4210 | (_initialize_f_language): Remove add_language call. | |
4211 | * go-lang.c (go_language_defn): Make extern. | |
4212 | (_initialize_go_language): Remove add_language call. | |
4213 | * language.c: Include <algorithm>. | |
4214 | (languages): Redefine as const array. | |
4215 | (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete. | |
4216 | (set_language_command): Handle "local". Use for-range loop. | |
4217 | (set_language): Remove loop. | |
4218 | (language_enum): Rewrite. | |
4219 | (language_def, language_str): Remove loops. | |
4220 | (add_language): Delete. | |
4221 | (add_set_language_command): New, based on add_languages. | |
4222 | (skip_language_trampoline): Adjust. | |
4223 | (local_language_defn): Delete. | |
4224 | (language_gdbarch_post_init): Adjust. | |
4225 | (_initialize_language): Remove add_language calls. Call | |
4226 | add_set_language_command. | |
4227 | * language.h (add_language): Delete. | |
4228 | (auto_language_defn) | |
4229 | (unknown_language_defn, minimal_language_defn, ada_language_defn) | |
4230 | (asm_language_defn, c_language_defn, cplus_language_defn) | |
4231 | (d_language_defn, f_language_defn, go_language_defn) | |
4232 | (m2_language_defn, objc_language_defn, opencl_language_defn) | |
4233 | (pascal_language_defn, rust_language_defn): Declare. | |
4234 | * m2-lang.c (m2_language_defn): Make extern. | |
4235 | (_initialize_m2_language): Remove add_language call. | |
4236 | * objc-lang.c (objc_language_defn): Make extern. | |
4237 | (_initialize_objc_language): Remove add_language call. | |
4238 | * opencl-lang.c (opencl_language_defn): Make extern. | |
4239 | (_initialize_opencl_language): Remove add_language call. | |
4240 | * p-lang.c (pascal_language_defn): Make extern. | |
4241 | (_initialize_pascal_language): Delete. | |
4242 | * rust-lang.c (rust_language_defn): Make extern. | |
4243 | (_initialize_rust_language): Delete. | |
4244 | * utils.h (compare_cstrings): New static inline function. | |
4245 | ||
edb0c9cb PA |
4246 | 2017-07-20 Pedro Alves <palves@redhat.com> |
4247 | ||
4248 | * ada-lang.c (ada_to_fixed_type_1): Adjust. | |
4249 | (get_var_value): Constify parameters. | |
4250 | (get_int_var_value): Change prototype. | |
4251 | (to_fixed_range_type): Adjust. | |
4252 | * ada-lang.h (get_int_var_value): Change prototype. | |
4253 | ||
a778f165 PA |
4254 | 2017-07-20 Pedro Alves <palves@redhat.com> |
4255 | ||
4256 | * dwarf2read.c (dw2_lookup_symbol): Use | |
4257 | SYMBOL_MATCHES_SEARCH_NAME. | |
4258 | * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME. | |
4259 | ||
42edd901 PA |
4260 | 2017-07-20 Pedro Alves <palves@redhat.com> |
4261 | ||
4262 | * block.c (block_iter_name_step, block_iter_name_first) | |
4263 | (block_iter_name_next): Delete. | |
4264 | (block_lookup_symbol_primary): Adjust to use | |
4265 | dict_iter_match_first/dict_iter_match_next. | |
4266 | * block.h (block_iter_name_first, block_iter_name_next): Delete | |
4267 | declarations. | |
4268 | (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use | |
4269 | dict_iter_match_first/dict_iter_match_next. | |
4270 | ||
cf325299 PA |
4271 | 2017-07-20 Pedro Alves <palves@redhat.com> |
4272 | ||
4273 | * cp-support.c (cp_find_first_component_aux): Add missing case for | |
4274 | end of string. | |
4275 | ||
c5ed0576 DB |
4276 | 2017-07-18 David Blaikie <dblaikie@gmail.com> |
4277 | ||
4278 | * dwarf2read.c (create_cus_hash_table): Re-add lost initialization | |
4279 | of dwo_cu's dwo_file. | |
4280 | ||
27841e76 YQ |
4281 | 2017-07-18 Yao Qi <yao.qi@linaro.org> |
4282 | ||
4283 | * remote.c (store_registers_using_G): Remove one line comment. | |
4284 | ||
cfb7e58b YQ |
4285 | 2017-07-18 Yao Qi <yao.qi@linaro.org> |
4286 | ||
4287 | * regcache.c (regcache_cpy): Simplify it. | |
4288 | (regcache::cpy_no_passthrough): Remove it. | |
4289 | * regcache.h (cpy_no_passthrough): Remove it. | |
4290 | (regcache_dup, regcache_cpy): Update comments. | |
4291 | ||
386535dd PA |
4292 | 2017-07-18 Pedro Alves <palves@redhat.com> |
4293 | ||
4294 | * remote-sim.c (sim_command_completer): Adjust to work with a | |
4295 | completion_tracker instead of a VEC. | |
4296 | ||
c45ec17c PA |
4297 | 2017-07-17 Pedro Alves <palves@redhat.com> |
4298 | ||
4299 | * completer.c (complete_source_filenames): New function. | |
4300 | (complete_address_and_linespec_locations): New function. | |
4301 | (location_completer): Use complete_address_and_linespec_locations. | |
4302 | (completion_tracker::build_completion_result): Honor the tracker's | |
4303 | request to suppress append. | |
4304 | * completer.h (completion_tracker::suppress_append_ws) | |
4305 | (completion_tracker::set_suppress_append_ws): New methods. | |
4306 | (completion_tracker::m_suppress_append_ws): New field. | |
4307 | (complete_source_filenames): New declaration. | |
4308 | * linespec.c (linespec_complete_what): New. | |
4309 | (struct ls_parser) <complete_what, completion_word, | |
4310 | completion_quote_char, completion_quote_end, completion_tracker>: | |
4311 | New fields. | |
4312 | (string_find_incomplete_keyword_at_end): New. | |
4313 | (linespec_lexer_lex_string): Record quote char. If in completion | |
4314 | mode, don't throw. | |
4315 | (linespec_lexer_consume_token): Advance the completion word point. | |
4316 | (linespec_lexer_peek_token): Save/restore completion info. | |
4317 | (save_stream_and_consume_token): New. | |
4318 | (set_completion_after_number): New. | |
4319 | (linespec_parse_basic): Set what to complete next depending on | |
4320 | token. Handle function and label completions specially. | |
4321 | (parse_linespec): Disable objc shortcut in completion mode. Set | |
4322 | what to complete next depending on token type. Skip keyword if in | |
4323 | completion mode. | |
4324 | (complete_linespec_component, linespec_complete): New. | |
4325 | * linespec.h (linespec_complete): Declare. | |
4326 | ||
be966d42 PA |
4327 | 2017-07-17 Pedro Alves <palves@redhat.com> |
4328 | ||
4329 | * linespec.c (linespec_lexer_lex_string, find_toplevel_char): | |
4330 | Handle 'operator<' / 'operator<<'. | |
4331 | ||
a2459270 PA |
4332 | 2017-07-17 Pedro Alves <palves@redhat.com> |
4333 | ||
4334 | * completer.c (collect_explicit_location_matches): Handle | |
4335 | MATCH_LABEL. | |
4336 | (convert_explicit_location_to_linespec): New, factored out from | |
4337 | ... | |
4338 | (convert_explicit_location_to_sals): ... this. | |
4339 | (complete_label): New. | |
4340 | (linespec_complete_label, find_label_symbols_in_block): New. | |
4341 | (find_label_symbols): Add completion_mode parameter and adjust to | |
4342 | call find_label_symbols_in_block. | |
4343 | * linespec.h (linespec_complete_label): Declare. | |
4344 | ||
c6756f62 PA |
4345 | 2017-07-17 Pedro Alves <palves@redhat.com> |
4346 | ||
4347 | * ada-lang.c (ada_collect_symbol_completion_matches): Add | |
4348 | complete_symbol_mode parameter. | |
4349 | * cli/cli-cmds.c (complete_command): Get the completion result out | |
4350 | of the handle_brkchars tracker if used a custom word point. | |
4351 | * completer.c: Include "linespec.h". | |
4352 | (enum explicit_location_match_type) <MATCH_LINE>: New enumerator. | |
4353 | (advance_to_expression_complete_word_point): New. | |
4354 | (completion_tracker::completes_to_completion_word): New. | |
4355 | (complete_files_symbols): Pass down | |
4356 | complete_symbol_mode::EXPRESSION. | |
4357 | (explicit_options, probe_options): New. | |
4358 | (collect_explicit_location_matches): Complete on the | |
4359 | explictit_loc->foo instead of word. Use | |
4360 | linespec_complete_function. Handle MATCH_LINE. Handle offering | |
4361 | keyword and options completions. | |
4362 | (backup_text_ptr): Delete. | |
4363 | (skip_keyword): New. | |
4364 | (complete_explicit_location): Remove 'word' parameter. Add | |
4365 | language, quoted_arg_start and quoted_arg_end parameters. | |
4366 | Rewrite, parsing left to right. | |
4367 | (location_completer): Rewrite. | |
4368 | (location_completer_handle_brkchars): New function. | |
4369 | (symbol_completer): Pass down complete_symbol_mode::EXPRESSION. | |
4370 | (enum complete_line_internal_reason): Adjust comments. | |
4371 | (completion_tracker::discard_completions): New. | |
4372 | (completer_handle_brkchars_func_for_completer): Handle | |
4373 | location_completer. | |
4374 | (gdb_custom_word_point_brkchars) | |
4375 | (gdb_org_rl_basic_quote_characters): New. | |
4376 | (gdb_completion_word_break_characters_throw) | |
4377 | (completion_find_completion_word): Handle trackers that use a | |
4378 | custom word point. | |
4379 | (completion_tracker::advance_custom_word_point_by): New. | |
4380 | (completion_tracker::build_completion_result): Don't rely on | |
4381 | readline appending the quote char. | |
4382 | (gdb_rl_attempted_completion_function_throw): Handle trackers that | |
4383 | use a custom word point. | |
4384 | (gdb_rl_attempted_completion_function): Restore | |
4385 | rl_basic_quote_characters. | |
4386 | * completer.h (class completion_tracker): Extend intro comment. | |
4387 | (completion_tracker::set_quote_char) | |
4388 | (completion_tracker::quote_char) | |
4389 | (completion_tracker::set_use_custom_word_point) | |
4390 | (completion_tracker::use_custom_word_point) | |
4391 | (completion_tracker::custom_word_point) | |
4392 | (completion_tracker::set_custom_word_point) | |
4393 | (completion_tracker::advance_custom_word_point_by) | |
4394 | (completion_tracker::completes_to_completion_word) | |
4395 | (completion_tracker::discard_completions): New methods. | |
4396 | (completion_tracker::m_quote_char) | |
4397 | (completion_tracker::m_use_custom_word_point) | |
4398 | (completion_tracker::m_custom_word_point): New fields. | |
4399 | (advance_to_expression_complete_word_point): Declare. | |
4400 | * f-lang.c (f_collect_symbol_completion_matches): Add | |
4401 | complete_symbol_mode parameter. | |
4402 | * language.h (struct language_defn) | |
4403 | <la_collect_symbol_completion_matches>: Add complete_symbol_mode | |
4404 | parameter. | |
4405 | * linespec.c (linespec_keywords): Add NULL terminator. Make extern. | |
4406 | (linespec_complete_function): New function. | |
4407 | (linespec_lexer_lex_keyword): Adjust. | |
4408 | * linespec.h (linespec_keywords, linespec_complete_function): New | |
4409 | declarations. | |
4410 | * location.c (find_end_quote): New function. | |
4411 | (explicit_location_lex_one): Add explicit_completion_info | |
4412 | parameter. Save quoting info. Don't throw if being called for | |
4413 | completion. Don't handle Ada operators here. | |
4414 | (is_cp_operator, skip_op_false_positives, first_of) | |
4415 | (explicit_location_lex_one_function): New function. | |
4416 | (string_to_explicit_location): Replace 'dont_throw' parameter with | |
4417 | an explicit_completion_info pointer parameter. Handle it. Don't | |
4418 | use explicit_location_lex_one to lex function names. Use | |
4419 | explicit_location_lex_one_function instead. | |
4420 | * location.h (struct explicit_completion_info): New. | |
4421 | (string_to_explicit_location): Replace 'dont_throw' parameter with | |
4422 | an explicit_completion_info pointer parameter. | |
4423 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
4424 | Add complete_symbol_mode parameter. Handle LINESPEC mode. | |
4425 | (default_collect_symbol_completion_matches) | |
4426 | (collect_symbol_completion_matches): Add complete_symbol_mode | |
4427 | parameter. | |
4428 | (collect_symbol_completion_matches_type): Pass down | |
4429 | complete_symbol_mode::EXPRESSION. | |
4430 | (collect_file_symbol_completion_matches): Add complete_symbol_mode | |
4431 | parameter. Handle LINESPEC mode. | |
4432 | * symtab.h (complete_symbol_mode): New. | |
4433 | (default_collect_symbol_completion_matches_break_on) | |
4434 | (default_collect_symbol_completion_matches) | |
4435 | (collect_symbol_completion_matches) | |
4436 | (collect_file_symbol_completion_matches): Add complete_symbol_mode | |
4437 | parameter. | |
4438 | ||
1d550c82 PA |
4439 | 2017-07-17 Pedro Alves <palves@redhat.com> |
4440 | ||
4441 | * utils.c (enum class strncmp_iw_mode): New. | |
4442 | (strcmp_iw): Rename to ... | |
4443 | (strncmp_iw_with_mode): ... this. Add string2_len and mode | |
4444 | parameters. Handle them. | |
4445 | (strncmp_iw): New. | |
4446 | (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode. | |
4447 | * utils.h (strncmp_iw): Declare. | |
4448 | (strcmp_iw): Move describing comments here. | |
4449 | ||
8090b426 PA |
4450 | 2017-07-17 Pedro Alves <palves@redhat.com> |
4451 | ||
4452 | * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and | |
4453 | CP_OPERATOR_STR. | |
4454 | * c-typeprint.c (is_type_conversion_operator): Use | |
4455 | CP_OPERATOR_STR. | |
4456 | * cp-support.c (LENGTH_OF_OPERATOR): Delete. | |
4457 | (cp_find_first_component_aux): Use CP_OPERATOR_STR and | |
4458 | CP_OPERATOR_LEN. | |
4459 | * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New. | |
4460 | * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR. | |
4461 | * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR. | |
4462 | * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and | |
4463 | CP_OPERATOR_STR. | |
4464 | * location.c: Include "cp-support.h". | |
4465 | (explicit_location_lex_one): Use CP_OPERATOR_LEN and | |
4466 | CP_OPERATOR_STR. | |
4467 | * symtab.c (operator_chars): Use CP_OPERATOR_STR and | |
4468 | CP_OPERATOR_LEN. | |
4469 | ||
6a2c1b87 PA |
4470 | 2017-07-17 Pedro Alves <palves@redhat.com> |
4471 | ||
4472 | * cli/cli-cmds.c (complete_command): Use a completion tracker | |
4473 | along with completion_find_completion_word for handle_brkchars | |
4474 | phase. | |
4475 | * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE) | |
4476 | (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New. | |
4477 | (struct gdb_rl_completion_word_info): New. | |
4478 | (gdb_rl_find_completion_word): New. | |
4479 | (completion_find_completion_word): New. | |
4480 | * completer.h (completion_find_completion_word): Declare. | |
4481 | ||
eb3ff9a5 PA |
4482 | 2017-07-17 Pedro Alves <palves@redhat.com> |
4483 | ||
4484 | * ada-lang.c (symbol_completion_match): Adjust comments. | |
4485 | (symbol_completion_add): Replace vector parameter with | |
4486 | completion_tracker parameter. Use it. | |
4487 | (ada_make_symbol_completion_list): Rename to... | |
4488 | (ada_collect_symbol_completion_matches): ... this. Add | |
4489 | completion_tracker parameter and use it. | |
4490 | (ada_language_defn): Adjust. | |
4491 | * break-catch-syscall.c (catch_syscall_completer): Adjust | |
4492 | prototype and work with completion_tracker instead of VEC. | |
4493 | * breakpoint.c (condition_completer): Adjust prototype and work | |
4494 | with completion_tracker instead of VEC. | |
4495 | * c-lang.c (c_language_defn, cplus_language_defn) | |
4496 | (asm_language_defn, minimal_language_defn): Adjust to renames. | |
4497 | * cli/cli-cmds.c (complete_command): Rework using | |
4498 | completion_tracker. Catch exceptions when completing. | |
4499 | * cli/cli-decode.c (integer_unlimited_completer) | |
4500 | (complete_on_cmdlist, complete_on_enum): Adjust prototype and work | |
4501 | with completion_tracker instead of VEC. | |
4502 | * command.h (struct completion_tracker): Forward declare. | |
4503 | (completer_ftype, completer_handle_brkchars_ftype): Change | |
4504 | types. | |
4505 | (complete_on_cmdlist, complete_on_enum): Adjust. | |
4506 | * completer.c: Include <algorithm>. | |
4507 | (struct gdb_completer_state): New. | |
4508 | (current_completion): New global. | |
4509 | (readline_line_completion_function): Delete. | |
4510 | (noop_completer, filename_completer) | |
4511 | (filename_completer_handle_brkchars, complete_files_symbols) | |
4512 | (linespec_location_completer): Adjust to work with a | |
4513 | completion_tracker instead of a VEC. | |
4514 | (string_or_empty): New. | |
4515 | (collect_explicit_location_matches): Adjust to work with a | |
4516 | completion_tracker instead of a VEC. | |
4517 | (explicit_location_completer): Rename to ... | |
4518 | (complete_explicit_location): ... this and adjust to work with a | |
4519 | completion_tracker instead of a VEC. | |
4520 | (location_completer): Adjust to work with a completion_tracker | |
4521 | instead of a VEC. | |
4522 | (add_struct_fields): Adjust to work with a completion_list instead | |
4523 | of VEC. | |
4524 | (expression_completer): Rename to ... | |
4525 | (complete_expression): ... this and adjust to work with a | |
4526 | completion_tracker instead of a VEC. Use complete_files_symbols. | |
4527 | (expression_completer): Reimplement on top of complete_expression. | |
4528 | (symbol_completer): Adjust to work with a completion_tracker | |
4529 | instead of a VEC. | |
4530 | (enum complete_line_internal_reason): Add describing comments. | |
4531 | (complete_line_internal_normal_command): Adjust to work with a | |
4532 | completion_tracker instead of a VEC. | |
4533 | (complete_line_internal): Rename to ... | |
4534 | (complete_line_internal_1): ... this and adjust to work with a | |
4535 | completion_tracker instead of a VEC. Assert TEXT is NULL in the | |
4536 | handle_brkchars phase. | |
4537 | (new_completion_tracker): Delete. | |
4538 | (complete_line_internal): Reimplement as TRY/CATCH wrapper around | |
4539 | complete_line_internal_1. | |
4540 | (free_completion_tracker): Delete. | |
4541 | (INITIAL_COMPLETION_HTAB_SIZE): New. | |
4542 | (completion_tracker::completion_tracker) | |
4543 | (completion_tracker::~completion_tracker): New. | |
4544 | (maybe_add_completion): Delete. | |
4545 | (completion_tracker::maybe_add_completion) | |
4546 | (completion_tracker::add_completion) | |
4547 | (completion_tracker::add_completions): New. | |
4548 | (throw_max_completions_reached_error): Delete. | |
4549 | (complete_line): Adjust to work with a completion_tracker instead | |
4550 | of a VEC. Don't create a completion_tracker_t or check for max | |
4551 | completions here. | |
4552 | (command_completer, command_completer_handle_brkchars) | |
4553 | (signal_completer, reg_or_group_completer_1) | |
4554 | (reg_or_group_completer, default_completer_handle_brkchars): | |
4555 | Adjust to work with a completion_tracker. | |
4556 | (gdb_completion_word_break_characters_throw): New. | |
4557 | (gdb_completion_word_break_characters): Reimplement. | |
4558 | (line_completion_function): Delete. | |
4559 | (completion_tracker::recompute_lowest_common_denominator) | |
4560 | (expand_preserving_ws) | |
4561 | (completion_tracker::build_completion_result) | |
4562 | (completion_result::completion_result) | |
4563 | (completion_result::completion_result) | |
4564 | (completion_result::~completion_result) | |
4565 | (completion_result::completion_result) | |
4566 | (completion_result::release_match_list, compare_cstrings) | |
4567 | (completion_result::sort_match_list) | |
4568 | (completion_result::reset_match_list) | |
4569 | (gdb_rl_attempted_completion_function_throw) | |
4570 | (gdb_rl_attempted_completion_function): New. | |
4571 | * completer.h (completion_list, struct completion_result) | |
4572 | (class completion_tracker): New. | |
4573 | (complete_line): Add completion_tracker parameter. | |
4574 | (readline_line_completion_function): Delete. | |
4575 | (gdb_rl_attempted_completion_function): New. | |
4576 | (noop_completer, filename_completer, expression_completer) | |
4577 | (location_completer, symbol_completer, command_completer) | |
4578 | (signal_completer, reg_or_group_completer): Update prototypes. | |
4579 | (completion_tracker_t, new_completion_tracker) | |
4580 | (make_cleanup_free_completion_tracker): Delete. | |
4581 | (enum maybe_add_completion_enum): Delete. | |
4582 | (maybe_add_completion): Delete. | |
4583 | (throw_max_completions_reached_error): Delete. | |
4584 | * corefile.c (complete_set_gnutarget): Adjust to work with a | |
4585 | completion_tracker instead of a VEC. | |
4586 | * cp-abi.c (cp_abi_completer): Adjust to work with a | |
4587 | completion_tracker instead of a VEC. | |
4588 | * d-lang.c (d_language_defn): Adjust. | |
4589 | * disasm.c (disassembler_options_completer): Adjust to work with a | |
4590 | completion_tracker instead of a VEC. | |
4591 | * f-lang.c (f_make_symbol_completion_list): Rename to ... | |
4592 | (f_collect_symbol_completion_matches): ... this. Adjust to work | |
4593 | with a completion_tracker instead of a VEC. | |
4594 | (f_language_defn): Adjust. | |
4595 | * go-lang.c (go_language_defn): Adjust. | |
4596 | * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer): | |
4597 | Adjust to work with a completion_tracker instead of a VEC. | |
4598 | * infrun.c (handle_completer): Likewise. | |
4599 | * interps.c (interpreter_completer): Likewise. | |
4600 | * interps.h (interpreter_completer): Likewise. | |
4601 | * language.c (unknown_language_defn, auto_language_defn) | |
4602 | (local_language_defn): Adjust. | |
4603 | * language.h (language_defn::la_make_symbol_completion_list): | |
4604 | Rename to ... | |
4605 | (language_defn::la_collect_symbol_completion_matches): ... this | |
4606 | and adjust to work with a completion_tracker instead of a VEC. | |
4607 | * m2-lang.c (m2_language_defn): Adjust. | |
4608 | * objc-lang.c (objc_language_defn): Adjust. | |
4609 | * opencl-lang.c (opencl_language_defn): Adjust. | |
4610 | * p-lang.c (pascal_language_defn): Adjust. | |
4611 | * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word. | |
4612 | (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work | |
4613 | with a completion_tracker. | |
4614 | * rust-lang.c (rust_language_defn): Adjust. | |
4615 | * symtab.c (free_completion_list, do_free_completion_list) | |
4616 | (return_val, completion_tracker): Delete. | |
4617 | (completion_list_add_name, completion_list_add_symbol) | |
4618 | (completion_list_add_msymbol, completion_list_objc_symbol) | |
4619 | (completion_list_add_fields, add_symtab_completions): Add | |
4620 | completion_tracker parameter and use it. | |
4621 | (default_make_symbol_completion_list_break_on_1): Rename to... | |
4622 | (default_collect_symbol_completion_matches_break_on): ... this. | |
4623 | Add completion_tracker parameter and use it instead of allocating | |
4624 | a completion tracker here. | |
4625 | (default_make_symbol_completion_list_break_on): Delete old | |
4626 | implementation. | |
4627 | (default_make_symbol_completion_list): Delete. | |
4628 | (default_collect_symbol_completion_matches): New. | |
4629 | (make_symbol_completion_list): Delete. | |
4630 | (collect_symbol_completion_matches): New. | |
4631 | (make_symbol_completion_type): Rename to ... | |
4632 | (collect_symbol_completion_matches_type): ... this. Add | |
4633 | completion_tracker parameter and use it instead of VEC. | |
4634 | (make_file_symbol_completion_list_1): Rename to... | |
4635 | (collect_file_symbol_completion_matches): ... this. Add | |
4636 | completion_tracker parameter and use it instead of VEC. | |
4637 | (make_file_symbol_completion_list): Delete. | |
4638 | (add_filename_to_list): Use completion_list instead of a VEC. | |
4639 | (add_partial_filename_data::list): Now a completion_list. | |
4640 | (make_source_files_completion_list): Work with a completion_list | |
4641 | instead of a VEC. | |
4642 | * symtab.h: Include "completer.h". | |
4643 | (default_make_symbol_completion_list_break_on) | |
4644 | (default_make_symbol_completion_list, make_symbol_completion_list) | |
4645 | (make_symbol_completion_type, make_file_symbol_completion_list) | |
4646 | (make_source_files_completion_list): Delete. | |
4647 | (default_collect_symbol_completion_matches_break_on) | |
4648 | (default_collect_symbol_completion_matches) | |
4649 | (collect_symbol_completion_matches) | |
4650 | (collect_symbol_completion_matches_type) | |
4651 | (collect_file_symbol_completion_matches) | |
4652 | (make_source_files_completion_list): New. | |
4653 | * top.c (init_main): Don't install a rl_completion_entry_function | |
4654 | hook. Install a rl_attempted_completion_function hook instead. | |
4655 | * tui/tui-layout.c (layout_completer): Adjust to work with a | |
4656 | completion_tracker. | |
4657 | * tui/tui-regs.c (tui_reggroup_completer): | |
4658 | * tui/tui-win.c (window_name_completer, focus_completer) | |
4659 | (winheight_completer): Adjust to work with a completion_tracker. | |
4660 | * value.c: Include "completer.h". | |
4661 | (complete_internalvar): Adjust to work with a completion_tracker. | |
4662 | * value.h (complete_internalvar): Likewise. | |
4663 | ||
6e1dbf8c PA |
4664 | 2017-07-17 Pedro Alves <palves@redhat.com> |
4665 | ||
4666 | * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to | |
4667 | renames. | |
4668 | * cli/cli-decode.h (struct cmd_list_element) <completer>: Move | |
4669 | comments to completer_ftype's declaration. | |
4670 | <completer_handle_brkchars>: Change type to | |
4671 | completer_handle_brkchars_ftype. | |
4672 | * command.h (completer_ftype): Add describing comment and give | |
4673 | names to parameters. | |
4674 | (completer_ftype_void): Rename to ... | |
4675 | (completer_handle_brkchars_ftype) ... this. Add describing comment. | |
4676 | (set_cmd_completer_handle_brkchars): Adjust. | |
4677 | * completer.c (filename_completer_handle_brkchars): New function. | |
4678 | (complete_line_internal_normal_command): New function, factored | |
4679 | out from ... | |
4680 | (complete_line_internal): ... here. | |
4681 | (command_completer_handle_brkchars) | |
4682 | (default_completer_handle_brkchars) | |
4683 | (completer_handle_brkchars_func_for_completer): New functions. | |
4684 | * completer.h (set_gdb_completion_word_break_characters): Delete | |
4685 | declaration. | |
4686 | (completer_handle_brkchars_func_for_completer): New declaration. | |
4687 | * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use | |
4688 | completer_handle_brkchars_func_for_completer. | |
4689 | ||
78b13106 PA |
4690 | 2017-07-17 Pedro Alves <palves@redhat.com> |
4691 | ||
4692 | * completer.c (symbol_completer): New function, based on | |
4693 | make_symbol_completion_list_fn. | |
4694 | * completer.h (symbol_completer): New declaration. | |
4695 | * guile/scm-cmd.c (cmdscm_completers): Adjust. | |
4696 | * python/py-cmd.c (completers): Adjust. | |
4697 | * symtab.c (make_symbol_completion_list_fn): Delete. | |
4698 | * symtab.h (make_symbol_completion_list_fn): Delete. | |
4699 | * cli/cli-decode.c (add_cmd): Adjust. | |
4700 | ||
bbf2f4df PA |
4701 | 2017-07-17 Pedro Alves <palves@redhat.com> |
4702 | ||
4703 | * Makefile.in (COMMON_OBS): Add filename-seen-cache.o. | |
4704 | * dwarf2read.c: Include "filename-seen-cache.h". | |
4705 | * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field. | |
4706 | (dw2_map_symbol_filenames): Build and use a filenames_seen_cache. | |
4707 | * filename-seen-cache.c: New file. | |
4708 | * filename-seen-cache.h: New file. | |
4709 | * symtab.c: Include "filename-seen-cache.h". | |
4710 | (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE) | |
4711 | (create_filename_seen_cache, clear_filename_seen_cache) | |
4712 | (delete_filename_seen_cache, filename_seen): Delete, parts moved | |
4713 | to filename-seen-cache.h/filename-seen-cache.c. | |
4714 | (output_source_filename, sources_info) | |
4715 | (maybe_add_partial_symtab_filename) | |
4716 | (make_source_files_completion_list): Adjust to use | |
4717 | filename_seen_cache. | |
4718 | ||
330cdd98 PA |
4719 | 2017-07-17 Pedro Alves <palves@redhat.com> |
4720 | ||
4721 | * dwarf2read.c (dwarf2_per_objfile): In-class initialize all | |
4722 | fields. | |
4723 | (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const | |
4724 | dwarf2_debug_sections*)): New. | |
4725 | (dwarf2_per_objfile::dwarf2_per_objfile(const | |
4726 | dwarf2_per_objfile&)): Declare as deleted. | |
4727 | (dwarf2_per_objfile::operator=): Declare as deleted. | |
4728 | (dwarf2_per_objfile::dwarf2_per_objfile) | |
4729 | (dwarf2_per_objfile::~dwarf2_per_objfile) | |
4730 | (dwarf2_per_objfile::free_cached_comp_units): New. | |
4731 | (dwarf2_has_info): dwarf2_per_objfile initialization code moved to | |
4732 | ctor. Call dwarf2_per_objfile's ctor manually. | |
4733 | (dwarf2_locate_sections): Deleted/refactored as ... | |
4734 | (dwarf2_per_objfile::locate_sections): ... this new method. | |
4735 | (free_cached_comp_units): Defer to | |
4736 | dwarf2_per_objfile::free_cached_comp_units. | |
4737 | (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually. | |
4738 | ||
8880f2a9 TT |
4739 | 2017-07-14 Tom Tromey <tom@tromey.com> |
4740 | ||
4741 | PR rust/21764: | |
4742 | * rust-exp.y (convert_ast_to_expression): Add "want_type" | |
4743 | parameter. | |
4744 | <UNOP_SIZEOF>: Split into separate case. | |
4745 | <UNOP_VAR_VALUE>: Handle want_type. Add error case. | |
4746 | ||
65547233 TT |
4747 | 2017-07-14 Tom Tromey <tom@tromey.com> |
4748 | ||
4749 | PR rust/21763: | |
4750 | * symtab.c (symbol_matches_domain): Add language_rust to special | |
4751 | case. | |
4752 | * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't | |
4753 | treat LOC_TYPEDEF symbols as variables. | |
4754 | ||
8f14146e PA |
4755 | 2017-07-14 Pedro Alves <palves@redhat.com> |
4756 | ||
4757 | * symtab.c (make_file_symbol_completion_list_1): Iterate over | |
4758 | symtabs matching all symtabs with SRCFILE as file name instead of | |
4759 | only considering the first hit, with lookup_symtab. | |
4760 | ||
2347965c SM |
4761 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
4762 | ||
4763 | * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and | |
4764 | operator_name parameters. | |
4765 | (gen_expr): Update function call. | |
4766 | ||
40f4af28 SM |
4767 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
4768 | ||
4769 | * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch | |
4770 | parameter. | |
4771 | * symtab.h (struct symbol_computed_ops::tracepoint_var_ref): | |
4772 | Likewise. | |
4773 | * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch | |
4774 | parameter, use agent_expr::gdbarch instead, update function | |
4775 | calls. | |
4776 | (locexpr_tracepoint_var_ref): Likewise. | |
4777 | (loclist_tracepoint_var_ref): Likewise. | |
4778 | * ax-gdb.c (gen_trace_static_fields): Likewise. | |
4779 | (gen_traced_pop): Likewise. | |
4780 | (gen_frame_args_address): Likewise. | |
4781 | (gen_frame_locals_address): Likewise. | |
4782 | (gen_var_ref): Likewise. | |
4783 | (gen_struct_ref_recursive): Likewise. | |
4784 | (gen_static_field): Likewise. | |
4785 | (gen_maybe_namespace_elt): Likewise. | |
4786 | (gen_expr): Likewise. | |
4787 | (gen_trace_for_var): Likewise. | |
4788 | (gen_trace_for_expr): Likewise. | |
4789 | (gen_trace_for_return_address): Likewise. | |
4790 | ||
053f8057 SM |
4791 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
4792 | ||
4793 | * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax | |
4794 | parameter. | |
4795 | (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call. | |
4796 | ||
6661ad48 SM |
4797 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
4798 | ||
4799 | * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch | |
4800 | from ax, update calls. | |
4801 | (gen_usual_arithmetic): Likewise. | |
4802 | (gen_integral_promotions): Likewise. | |
4803 | (gen_bitfield_ref): Likewise. | |
4804 | (gen_primitive_field): Likewise. | |
4805 | (gen_struct_ref_recursive): Likewise. | |
4806 | (gen_struct_ref): Likewise. | |
4807 | (gen_maybe_namespace_elt): Likewise. | |
4808 | (gen_struct_elt_for_reference): Likewise. | |
4809 | (gen_namespace_elt): Likewise. | |
4810 | (gen_aggregate_elt_ref): Likewise. | |
4811 | (gen_expr): Get gdbarch from ax, update calls. | |
4812 | (gen_expr_binop_rest): Likewise. | |
4813 | ||
c55a47e7 PA |
4814 | 2017-07-13 Pedro Alves <palves@redhat.com> |
4815 | ||
4816 | * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64 | |
4817 | as default tdesc. | |
4818 | * amd64-dicos-tdep.c (amd64_dicos_init_abi): | |
4819 | * amd64-fbsd-tdep.c (amd64fbsd_init_abi): | |
4820 | * amd64-linux-tdep.c (amd64_linux_init_abi): Pass | |
4821 | tdesc_amd64_linux as default tdesc. Get final tdesc from the | |
4822 | tdep. | |
4823 | (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc. | |
4824 | Get final tdesc from the tdep. | |
4825 | * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as | |
4826 | default tdesc. | |
4827 | * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise. | |
4828 | * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise. | |
4829 | * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter. | |
4830 | Use it as default tdesc. | |
4831 | (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it | |
4832 | down to amd_init_abi. No longer handle fallback tdesc here. | |
4833 | * amd64-tdep.h (tdesc_x32): Declare. | |
4834 | (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc' | |
4835 | parameter. | |
4836 | * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64 | |
4837 | as default tdesc. | |
4838 | ||
55efceab AA |
4839 | 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
4840 | ||
4841 | * s390-linux-tdep.c (s390_process_record): Add support for | |
4842 | instructions new in arch12. | |
4843 | ||
0aa37b65 JB |
4844 | 2017-07-11 John Baldwin <jhb@FreeBSD.org> |
4845 | ||
4846 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use | |
4847 | PT_GETFSBASE and PT_GETGSBASE. | |
4848 | (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and | |
4849 | PT_SETGSBASE. | |
4850 | ||
48aeef91 JB |
4851 | 2017-07-11 John Baldwin <jhb@FreeBSD.org> |
4852 | ||
4853 | * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat) | |
4854 | (amd64-avx-mpx.dat, amd64-avx-avx512.dat) | |
4855 | (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in | |
4856 | those rules. | |
4857 | * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml. | |
4858 | * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml. | |
4859 | * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml. | |
4860 | * features/i386/amd64-avx.xml: Add 64bit-segments.xml. | |
4861 | * features/i386/amd64-mpx.xml: Add 64bit-segments.xml. | |
4862 | * features/i386/amd64.xml: Add 64bit-segments.xml. | |
4863 | * features/i386/amd64-avx-avx512.c: Regenerated. | |
4864 | * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated. | |
4865 | * features/i386/amd64-avx-mpx.c: Regenerated. | |
4866 | * features/i386/amd64-avx.c: Regenerated. | |
4867 | * features/i386/amd64-mpx.c: Regenerated. | |
4868 | * features/i386/amd64.c: Regenerated. | |
4869 | * regformats/i386/amd64-avx-avx512.dat: Regenerated. | |
4870 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated. | |
4871 | * regformats/i386/amd64-avx-mpx.dat: Regenerated. | |
4872 | * regformats/i386/amd64-avx.dat: Regenerated. | |
4873 | * regformats/i386/amd64-mpx.dat: Regenerated. | |
4874 | * regformats/i386/amd64.dat: Regenerated. | |
4875 | ||
77c501bc YQ |
4876 | 2017-07-10 Yao Qi <yao.qi@linaro.org> |
4877 | ||
4878 | * features/i386/amd64-avx-avx512-linux.c: Re-generated. | |
4879 | * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated. | |
4880 | ||
6dc8d757 AK |
4881 | 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com> |
4882 | ||
4883 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and | |
4884 | unsetenv. | |
4885 | * gnulib/aclocal.m4: Regenerate. | |
4886 | * gnulib/config.in: Regenerate. | |
4887 | * gnulib/configure: Regenerate. | |
4888 | * gnulib/import/Makefile.am: Regenerate. | |
4889 | * gnulib/import/Makefile.in: Regenerate. | |
4890 | * gnulib/import/m4/gnulib-cache.m4: Regenerate. | |
4891 | * gnulib/import/m4/gnulib-comp.m4: Regenerate. | |
4892 | * gnulib/import/m4/environ.m4: New file. | |
4893 | * gnulib/import/m4/setenv.m4: New file. | |
4894 | * gnulib/import/setenv.c: New file. | |
4895 | * gnulib/import/unsetenv.c: New file. | |
4896 | ||
266934d1 SM |
4897 | 2017-07-09 Simon Marchi <simon.marchi@ericsson.com> |
4898 | ||
4899 | * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read | |
4900 | address when op is DW_OP_addr. | |
4901 | ||
03278692 TT |
4902 | 2017-07-09 Tom Tromey <tom@tromey.com> |
4903 | ||
4904 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size | |
4905 | check and apply to outer type. | |
4906 | ||
4b654465 JB |
4907 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
4908 | ||
4909 | * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS) | |
4910 | (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI) | |
4911 | (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New. | |
4912 | (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method. | |
4913 | ||
2af9fc44 JB |
4914 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
4915 | ||
4916 | * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name. | |
4917 | ||
382b69bb JB |
4918 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
4919 | ||
4920 | * corelow.c (get_core_siginfo): Remove. | |
4921 | (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method | |
4922 | instead of get_core_siginfo. | |
4923 | * gdbarch.sh (core_xfer_siginfo): New gdbarch callback. | |
4924 | * gdbarch.h: Re-generate. | |
4925 | * gdbarch.c: Re-generate. | |
4926 | * linux-tdep.c (linux_core_xfer_siginfo): New. | |
4927 | (linux_init_abi): Install gdbarch "core_xfer_siginfo" method. | |
4928 | ||
6e5eab33 JB |
4929 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
4930 | ||
4931 | * corelow.c (thread_section_name): Move to ... | |
4932 | * gdbcore.h (thread_section_name): ... here. | |
4933 | ||
929edea9 JB |
4934 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
4935 | ||
4936 | * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32) | |
4937 | (struct siginfo32): New. | |
4938 | [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New. | |
4939 | (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO | |
4940 | via ptrace(PT_LWPINFO). | |
4941 | ||
762c974a JB |
4942 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
4943 | ||
4944 | * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data) | |
4945 | (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data) | |
4946 | (fbsd_get_siginfo_type): New. | |
4947 | (fbsd_init_abi): Install gdbarch "get_siginfo_type" method. | |
4948 | (_initialize_fbsd_tdep): New. | |
4949 | ||
33c5cd75 DB |
4950 | 2017-07-06 David Blaikie <dblaikie@gmail.com> |
4951 | ||
4952 | * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than | |
4953 | a singular dwo_unit*) to support multiple CUs in the same way that | |
4954 | multiple TUs are supported. | |
4955 | (create_cus_hash_table): Replace create_dwo_cu with a function for | |
4956 | parsing multiple CUs from a DWO file. | |
4957 | (open_and_init_dwo_file): Use create_cus_hash_table rather than | |
4958 | create_dwo_cu. | |
4959 | (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with | |
4960 | htab_find, rather than comparing the signature to a singleton CU in | |
4961 | the dwo_file. | |
4962 | ||
8455d262 PA |
4963 | 2017-07-06 Pedro Alves <palves@redhat.com> |
4964 | ||
4965 | * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition. | |
4966 | ||
4da3eb35 PA |
4967 | 2017-07-04 Pedro Alves <palves@redhat.com> |
4968 | ||
4969 | * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC. | |
4970 | * gdbtypes.h (TYPE_STATIC): Delete. | |
4971 | (struct fn_field) <is_public, is_abstract, is_static, is_final, | |
4972 | is_synchronized, is_native>: Delete. | |
4973 | <dummy>: Bump. | |
4974 | (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL) | |
4975 | (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE) | |
4976 | (TYPE_FN_FIELD_ABSTRACT): Delete. | |
4977 | ||
5bfd255c SM |
4978 | 2017-07-03 Simon Marchi <simon.marchi@ericsson.com> |
4979 | ||
4980 | * buffer.h (buffer_finish): Fix spelling mistakes. | |
4981 | ||
25c54127 EZ |
4982 | 2017-07-01 Eli Zaretskii <eliz@gnu.org> |
4983 | ||
4984 | * .dir-locals.el: Automatically switch to C-style comments in | |
4985 | versions of Emacs that support the feature. | |
4986 | ||
dc4bde35 SDJ |
4987 | 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com> |
4988 | Pedro Alves <palves@redhat.com> | |
4989 | ||
4990 | PR cli/21688 | |
4991 | * cli/cli-script.c (command_name_equals_not_inline): Remove function. | |
4992 | (process_next_line): New variable 'inline_cmd'. | |
4993 | Adjust 'if' clauses for "python", "compile" and "guile" to use | |
4994 | 'command_name_equals' and check for '!inline_cmd'. | |
4995 | ||
51ed89aa SDJ |
4996 | 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com> |
4997 | ||
4998 | PR cli/21688 | |
4999 | * cli/cli-script.c (command_name_equals_not_inline): New function. | |
5000 | (process_next_line): Adjust 'if' clauses for "python", "compile" | |
5001 | and "guile" to use command_name_equals_not_inline. | |
5002 | ||
eb17d413 PA |
5003 | 2017-06-29 Pedro Alves <palves@redhat.com> |
5004 | ||
5005 | * completer.c (expression_completer): Call | |
5006 | linespec_location_completer instead of location_completer. | |
5007 | ||
195bcdd5 PA |
5008 | 2017-06-29 Pedro Alves <palves@redhat.com> |
5009 | ||
5010 | * completer.c (expression_completer): Remove code that recomputes | |
5011 | 'text' from 'word'. | |
5012 | ||
adc764e7 YQ |
5013 | 2017-06-29 Yao Qi <yao.qi@linaro.org> |
5014 | ||
5015 | * regformats/regdat.sh: Generate code with | |
5016 | "ifndef IN_PROCESS_AGENT". | |
5017 | ||
6e75794e PA |
5018 | 2017-06-28 Pedro Alves <palves@redhat.com> |
5019 | ||
5020 | * command.h: Include "common/scoped_restore.h". | |
5021 | ||
bc491f2e YQ |
5022 | 2017-06-28 Yao Qi <yao.qi@linaro.org> |
5023 | ||
5024 | * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str | |
5025 | instead of obstack_grow. | |
5026 | ||
41664b45 DG |
5027 | 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com> |
5028 | ||
5029 | PR gdb/21337 | |
5030 | * symfile.c (reread_symbols): Call objfiles_changed just before | |
5031 | read_symbols. | |
5032 | ||
6da67eb1 PA |
5033 | 2017-06-27 Pedro Alves <palves@redhat.com> |
5034 | ||
5035 | * symtab.c (COMPLETION_LIST_ADD_SYMBOL) | |
5036 | (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ... | |
5037 | (completion_list_add_symbol, completion_list_add_msymbol): | |
5038 | ... these new functions. | |
5039 | (add_symtab_completions) | |
5040 | (default_make_symbol_completion_list_break_on_1): Adjust. | |
5041 | ||
23732b1e PA |
5042 | 2017-06-27 Pedro Alves <palves@redhat.com> |
5043 | ||
5044 | * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of | |
5045 | bfd_zalloc. Call objfile_per_bfd_storage's ctor. | |
5046 | (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's | |
5047 | dtor. | |
5048 | * objfiles.h (objfile_per_bfd_storage): Add ctor. Make | |
5049 | 'storage_obstack' field an auto_obstack. In-class initialize all | |
5050 | non-bitfield fields. Make minsyms_read bool. | |
5051 | * symfile.c (read_symbols): Adjust. | |
5052 | ||
a4d1e79a AH |
5053 | 2017-06-27 Alan Hayward <alan.hayward@arm.com> |
5054 | ||
5055 | * remote-sim.c (gdbsim_fetch_register): Use byte_vector. | |
5056 | (gdbsim_store_register): Likewise. | |
5057 | ||
8268c778 PA |
5058 | 2017-06-27 Pedro Alves <palves@redhat.com> |
5059 | ||
5060 | * c-exp.y (name_obstack): Now an auto_obstack. | |
5061 | (yylex): Use auto_obstack::clear. | |
5062 | (c_parse): Use auto_obstack::clear instead of reinitializing and | |
5063 | freeing the obstack. | |
5064 | * c-lang.c (evaluate_subexp_c): Use auto_obstack. | |
5065 | * d-exp.y (name_obstack): Now an auto_obstack. | |
5066 | (yylex): Use auto_obstack::clear. | |
5067 | (d_parse): Use auto_obstack::clear instead of reinitializing and | |
5068 | freeing the obstack. | |
5069 | * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use | |
5070 | auto_obstack. | |
5071 | * dwarf2read.c (create_addrmap_from_index) | |
5072 | (dwarf2_build_psymtabs_hard) | |
5073 | (update_enumeration_type_from_children): Likewise. | |
5074 | * gdb_obstack.h (auto_obstack): New type. | |
5075 | * go-exp.y (name_obstack): Now an auto_obstack. | |
5076 | (build_packaged_name): Use auto_obstack::clear. | |
5077 | (go_parse): Use auto_obstack::clear instead of reinitializing and | |
5078 | freeing the obstack. | |
5079 | * linux-tdep.c (linux_make_mappings_corefile_notes): Use | |
5080 | auto_obstack. | |
5081 | * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack. | |
5082 | * rust-exp.y (work_obstack): Now an auto_obstack. | |
5083 | (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of | |
5084 | reinitializing and freeing the obstack. | |
5085 | * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete. | |
5086 | (host_char_to_target): Use auto_obstack. | |
5087 | * utils.h (make_cleanup_obstack_free): Delete declaration. | |
5088 | * valprint.c (generic_emit_char, generic_printstr): Use | |
5089 | auto_obstack. | |
5090 | ||
db665f42 SM |
5091 | 2017-06-27 Simon Marchi <simon.marchi@ericsson.com> |
5092 | ||
5093 | * darwin-nat.c (darwin_check_new_threads): Don't handle dummy | |
5094 | thread. | |
5095 | (darwin_init_thread_list): Don't update dummy thread. | |
5096 | (darwin_create_inferior, darwin_attach): Don't add a dummy thread. | |
5097 | ||
873c0814 SM |
5098 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
5099 | ||
5100 | * record-full.c (netorder16): Remove. | |
5101 | ||
8b5a7a6e SM |
5102 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
5103 | ||
5104 | * common/diagnostics.h: Define macros for GCC. | |
5105 | (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro. | |
5106 | * common/vec.h: Include diagnostics.h. | |
5107 | (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro. | |
5108 | (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function | |
5109 | warning. | |
5110 | ||
d1435379 SM |
5111 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
5112 | ||
5113 | * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER): | |
5114 | New macro. | |
5115 | * ada-lex.l: Ignore deprecated register warnings. | |
5116 | ||
cc75e0fd SM |
5117 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
5118 | ||
5119 | * main.c (get_init_files): Replace "SYSTEM_GDBINIT + | |
5120 | datadir_len" with "&SYSTEM_GDBINIT[datadir_len]". | |
5121 | ||
07809eaf SM |
5122 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
5123 | ||
5124 | * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on | |
5125 | its own line. | |
5126 | ||
f076f034 SM |
5127 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
5128 | ||
5129 | * nat/x86-dregs.c (x86_show_dr): Print registers one per line. | |
5130 | ||
0dd5cbc5 AH |
5131 | 2017-06-23 Alan Hayward <alan.hayward@arm.com> |
5132 | ||
5133 | * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add. | |
5134 | (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE. | |
5135 | (xtensa_register_read_masked): Likewise. | |
5136 | ||
d4c6ce5b SDJ |
5137 | 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com> |
5138 | ||
5139 | * common/environ.c (gdb_environ::unset): Update comment. | |
5140 | ||
16892a03 AH |
5141 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
5142 | ||
5143 | * python/py-unwind.c (pyuw_sniffer): Allocate space for | |
5144 | registers. | |
5145 | ||
d7dcbefc AH |
5146 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
5147 | ||
5148 | * record-full.c (record_full_exec_insn): Use byte_vector. | |
5149 | ||
b30ff123 YQ |
5150 | 2017-06-22 Yao Qi <yao.qi@linaro.org> |
5151 | ||
5152 | * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated. | |
5153 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated. | |
5154 | ||
4fa847d7 AH |
5155 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
5156 | ||
5157 | * remote.c (cached_reg): Move from here... | |
5158 | * regcache.h (cached_reg): ...to here. | |
5159 | * python/py-unwind.c (struct reg_info): Remove. | |
5160 | (cached_frame_info): Use cached_reg_t. | |
5161 | (pyuw_prev_register): Likewise. | |
5162 | (pyuw_sniffer): Use cached_reg_t and allocate registers. | |
5163 | (pyuw_dealloc_cache): Free all registers. | |
5164 | ||
f4906a9a PA |
5165 | 2017-06-22 Pedro Alves <palves@redhat.com> |
5166 | Simon Marchi <simon.marchi@ericsson.com> | |
5167 | ||
5168 | * unittests/environ-selftests.c (run_tests): Ignore -Wself-move | |
5169 | warning. | |
5170 | * common/diagnostics.h: New file. | |
5171 | ||
b45a1208 PA |
5172 | 2017-06-22 Pedro Alves <palves@redhat.com> |
5173 | ||
5174 | * common/agent.h: Add include guards. | |
5175 | ||
e4da2c61 SM |
5176 | 2017-06-21 Simon Marchi <simon.marchi@ericsson.com> |
5177 | ||
5178 | * target.h (struct target_ops) <to_xfer_partial>: Update doc to | |
5179 | talk about addressable units instead of bytes. | |
5180 | ||
96160d60 SDJ |
5181 | 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com> |
5182 | ||
5183 | * common/environ.c (gdb_environ::unset): Use '::iterator' instead | |
5184 | of '::const_iterator'. | |
5185 | ||
9a6c7d9c SDJ |
5186 | 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com> |
5187 | ||
5188 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
5189 | 'unittests/environ-selftests.c'. | |
5190 | (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'. | |
5191 | * charset.c (find_charset_names): Declare object 'iconv_env'. | |
5192 | Update code to use 'iconv_env' object. Remove call to | |
5193 | 'free_environ'. | |
5194 | * common/environ.c: Include <utility>. | |
5195 | (make_environ): Delete function. | |
5196 | (free_environ): Delete function. | |
5197 | (gdb_environ::clear): New function. | |
5198 | (gdb_environ::operator=): New function. | |
5199 | (gdb_environ::get): Likewise. | |
5200 | (environ_vector): Delete function. | |
5201 | (set_in_environ): Delete function. | |
5202 | (gdb_environ::set): New function. | |
5203 | (unset_in_environ): Delete function. | |
5204 | (gdb_environ::unset): New function. | |
5205 | (gdb_environ::envp): Likewise. | |
5206 | * common/environ.h: Include <vector>. | |
5207 | (struct gdb_environ): Delete; transform into... | |
5208 | (class gdb_environ): ... this class. | |
5209 | (free_environ): Delete prototype. | |
5210 | (init_environ, get_in_environ, set_in_environ, unset_in_environ, | |
5211 | environ_vector): Likewise. | |
5212 | * infcmd.c (run_command_1): Update code to call | |
5213 | 'envp' from 'gdb_environ' class. | |
5214 | (environment_info): Update code to call methods from 'gdb_environ' | |
5215 | class. | |
5216 | (unset_environment_command): Likewise. | |
5217 | (path_info): Likewise. | |
5218 | (path_command): Likewise. | |
5219 | * inferior.c (inferior::~inferior): Delete call to 'free_environ'. | |
5220 | (inferior::inferior): Initialize 'environment' using the host's | |
5221 | information. | |
5222 | * inferior.h: Remove forward declaration of 'struct gdb_environ'. | |
5223 | Include "environ.h". | |
5224 | (class inferior) <environment>: Change type from 'struct | |
5225 | gdb_environ' to 'gdb_environ'. | |
5226 | * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call | |
5227 | methods from 'gdb_environ' class. | |
5228 | * solib.c (solib_find_1): Likewise | |
5229 | * unittests/environ-selftests.c: New file. | |
5230 | ||
75c554cf YQ |
5231 | 2017-06-20 Yao Qi <yao.qi@linaro.org> |
5232 | ||
5233 | * features/i386/i386-linux.xml: Exchange the order of including | |
5234 | 32bit-linux.xml and 32bit-sse.xml. | |
5235 | * features/i386/i386-linux.c: Regenerated. | |
5236 | ||
72ddacb7 YQ |
5237 | 2017-06-20 Yao Qi <yao.qi@linaro.org> |
5238 | ||
5239 | * target-descriptions.c (tdesc_reg): Add ctor, dtor. | |
5240 | Delete copy ctor and assignment operator. | |
5241 | (tdesc_type): Likewise. | |
5242 | (tdesc_feature): Likewise. | |
5243 | (tdesc_free_reg): Remove. | |
5244 | (tdesc_create_reg): Use new. | |
5245 | (tdesc_free_type): Remove. | |
5246 | (tdesc_create_vector): Use new. | |
5247 | (tdesc_create_union): Likewise. | |
5248 | (tdesc_create_flags): Likewise. | |
5249 | (tdesc_create_enum): Likewise. | |
5250 | (tdesc_free_feature): Delete. | |
5251 | (free_target_description): Use delete. | |
5252 | ||
325c9fd4 JB |
5253 | 2017-06-19 John Baldwin <jhb@FreeBSD.org> |
5254 | ||
5255 | * mips-tdep.c (print_gp_register_row): Don't error for unavailable | |
5256 | registers. | |
5257 | ||
16b7a719 PA |
5258 | 2017-06-19 Pedro Alves <palves@redhat.com> |
5259 | ||
5260 | * dwarf2read.c (write_psymtabs_to_index): Construct file_closer | |
5261 | after gdb::unlinker. | |
5262 | ||
1c8e01c9 SDJ |
5263 | 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com> |
5264 | ||
5265 | * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of | |
5266 | gdb_environ to access an environment variable. | |
5267 | ||
ffce45d2 TP |
5268 | 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
5269 | ||
5270 | * nat/linux-ptrace.c (linux_fork_to_function): Add cast to | |
5271 | gdb_byte*. | |
5272 | ||
1d4fbac9 SM |
5273 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
5274 | ||
5275 | * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF. | |
5276 | ||
8465943a SM |
5277 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
5278 | ||
5279 | * configure: Re-generate. | |
5280 | * warning.m4 (build_warnings): Add -Wno-mismatched-tags. | |
5281 | ||
3e019bdc SM |
5282 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
5283 | ||
5284 | * configure: Re-generate. | |
5285 | * warning.m4: Pass -Werror to compiler when checking for | |
5286 | supported warning flags. | |
5287 | ||
cf0dd6f0 SM |
5288 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
5289 | ||
5290 | * Makefile.in (COMPILE.pre): Add "-x c++". | |
5291 | ||
6f98355c YQ |
5292 | 2017-06-16 Alan Hayward <alan.hayward@arm.com> |
5293 | Pedro Alves <palves@redhat.com> | |
5294 | Yao Qi <yao.qi@linaro.org> | |
5295 | ||
5296 | * defs.h (RequireLongest): New. | |
5297 | (extract_integer): Declare function template. | |
5298 | (extract_signed_integer): Remove the declaration, but define it | |
5299 | static inline. | |
5300 | (extract_unsigned_integer): Likewise. | |
5301 | (store_integer): Declare function template. | |
5302 | (store_signed_integer): Remove the declaration, but define it | |
5303 | static inline. | |
5304 | (store_unsigned_integer): Likewise. | |
5305 | * findvar.c (extract_integer): New function template. | |
5306 | (extract_signed_integer): Remove. | |
5307 | (extract_unsigned_integer): Remove. | |
5308 | (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit | |
5309 | instantiations. | |
5310 | (store_integer): New function template. | |
5311 | (store_signed_integer): Remove. | |
5312 | (store_unsigned_integer): Remove. | |
5313 | (store_integer): Explicit instantiations. | |
5314 | * regcache.c (regcache_raw_read_signed): Update. | |
5315 | (regcache::raw_read): New function. | |
5316 | (regcache::raw_read_signed): Remove. | |
5317 | (regcache::raw_read_unsigned): Remove. | |
5318 | (regcache_raw_read_unsigned): Update. | |
5319 | (regcache_raw_write_unsigned): Update. | |
5320 | (regcache::raw_write_signed): Remove. | |
5321 | (regcache::raw_write): New function. | |
5322 | (regcache_cooked_read_signed): Update. | |
5323 | (regcache::raw_write_unsigned): Remove. | |
5324 | (regcache::cooked_read_signed): Remove. | |
5325 | (regcache_cooked_read_unsigned): Update. | |
5326 | (regcache::cooked_read_unsigned): Remove. | |
5327 | (regcache_cooked_write_signed): Update. | |
5328 | (regcache_cooked_write_unsigned): Update. | |
5329 | * regcache.h (regcache) <raw_read_signed>: Remove. | |
5330 | <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove. | |
5331 | <raw_read, raw_write>: New. | |
5332 | <cooked_read_signed, cooked_write_signed>: Remove. | |
5333 | <cooked_write_unsigned, cooked_read_unsigned>: Remove. | |
5334 | <cooked_read, cooked_write>: New. | |
5335 | * sh64-tdep.c (sh64_pseudo_register_read): Update. | |
5336 | (sh64_pseudo_register_write): Update. | |
5337 | ||
a87dc45a AK |
5338 | 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com> |
5339 | ||
5340 | * arc-tdep.c (arc_disassembler_options): New variable. | |
5341 | (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead | |
5342 | of default_print_insn. | |
5343 | (arc_delayed_print_insn): Set info->section when needed, | |
5344 | use default_print_insn to retrieve a disassembler. | |
5345 | ||
45159d6a SDJ |
5346 | 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com> |
5347 | ||
5348 | PR gdb/21574 | |
5349 | * infcmd.c (_initialize_infcmd): Expand "help run" documentation | |
5350 | to mention $SHELL and startup-with-shell. | |
5351 | ||
b46c4cf0 MF |
5352 | 2017-06-14 Max Filippov <jcmvbkbc@gmail.com> |
5353 | ||
5354 | * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers. | |
5355 | ||
6394c606 YQ |
5356 | 2017-06-14 Yao Qi <yao.qi@linaro.org> |
5357 | ||
5358 | * aarch64-tdep.c (aarch64_gdb_print_insn): Call | |
5359 | default_print_insn instead of print_insn_aarch64. | |
5360 | * arm-tdep.c (gdb_print_insn_arm): Call | |
5361 | default_print_insn instead of print_insn_big_arm | |
5362 | and print_insn_little_arm. | |
5363 | * i386-tdep.c (i386_print_insn): Call default_print_insn | |
5364 | instead of print_insn_i386. | |
5365 | * ia64-tdep.c (ia64_print_insn): Call | |
5366 | default_print_insn instead of print_insn_ia64. | |
5367 | * mips-tdep.c (gdb_print_insn_mips): Call | |
5368 | default_print_insn instead of print_insn_big_mips | |
5369 | and print_insn_little_mips. | |
5370 | * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn | |
5371 | instead of print_insn_spu. | |
5372 | ||
d5722aa2 PA |
5373 | 2017-06-14 Pedro Alves <palves@redhat.com> |
5374 | ||
5375 | * ada-lang.c: Include "common/byte-vector.h". | |
5376 | (ada_value_primitive_packed_val): Use gdb::byte_vector. | |
5377 | * charset.c (wchar_iterator::iterate): Resize the vector instead | |
5378 | of reserving it. | |
5379 | * common/byte-vector.h: Include "common/def-vector.h". | |
5380 | (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>. | |
5381 | * cli/cli-dump.c: Include "common/byte-vector.h". | |
5382 | (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector. | |
5383 | * common/byte-vector.h: New file. | |
5384 | * common/def-vector.h: New file. | |
5385 | * common/default-init-alloc.h: New file. | |
5386 | * dwarf2loc.c: Include "common/byte-vector.h". | |
5387 | (rw_pieced_value): Use gdb::byte_vector, and resize the vector | |
5388 | instead of reserving it. | |
5389 | * dwarf2read.c: Include "common/byte-vector.h". | |
5390 | (data_buf::m_vec): Now a gdb::byte_vector. | |
5391 | * gdb_regex.c: Include "common/def-vector.h". | |
5392 | (compiled_regex::compiled_regex): Use gdb::def_vector<char>. | |
5393 | * mi/mi-main.c: Include "common/byte-vector.h". | |
5394 | (mi_cmd_data_read_memory): Use gdb::byte_vector. | |
5395 | * printcmd.c: Include "common/byte-vector.h". | |
5396 | (print_scalar_formatted): Use gdb::byte_vector. | |
5397 | * valprint.c: Include "common/byte-vector.h". | |
5398 | (maybe_negate_by_bytes, print_decimal_chars): Use | |
5399 | gdb::byte_vector. | |
5400 | ||
01ec7a27 SM |
5401 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
5402 | ||
5403 | * darwin-nat.c: Include "nat/fork-inferior.h". | |
5404 | ||
848d9074 SM |
5405 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
5406 | ||
5407 | * configure.nat: Factor out Darwin bits that are not | |
5408 | architecture-specific. Add fork-inferior.o. | |
5409 | ||
3b912944 SM |
5410 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
5411 | ||
5412 | * configure.nat: Factor out AIX bits that are not | |
5413 | architecture-specific. Add fork-inferior.o. | |
5414 | ||
55acdf22 AA |
5415 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5416 | ||
5417 | * dwarf2loc.c (rw_pieced_value): New. Merge logic from... | |
5418 | (read_pieced_value, write_pieced_value): ...here. Reduce to | |
5419 | wrappers that just call rw_pieced_value. | |
5420 | ||
f65e2044 AA |
5421 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5422 | ||
5423 | * dwarf2loc.c (write_pieced_value): When writing the data for a | |
5424 | memory piece, use write_memory_with_notification instead of | |
5425 | write_memory. | |
5426 | ||
23f945bf AA |
5427 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5428 | ||
5429 | * valops.c (read_value_memory): Change embedded_offset to | |
5430 | represent a bit offset instead of a byte offset. | |
5431 | * value.h (read_value_memory): Adjust comment. | |
5432 | ||
f236533e AA |
5433 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5434 | ||
5435 | * dwarf2loc.c (read_pieced_value): Remove unnecessary variables | |
5436 | dest_offset_bits and source_offset_bits. | |
5437 | (write_pieced_value): Likewise. | |
5438 | ||
65d84b76 AA |
5439 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5440 | ||
5441 | * dwarf2loc.c (read_pieced_value): Respect the piece offset, as | |
5442 | given by DW_OP_bit_piece. | |
5443 | (write_pieced_value): Likewise. | |
5444 | ||
242d31ab AA |
5445 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5446 | ||
5447 | * dwarf2loc.c (read_pieced_value): Move the buffer allocation and | |
5448 | some other preparations to the places where sufficient information | |
5449 | is available. | |
5450 | (write_pieced_value): Likewise. | |
5451 | ||
03c8af18 AA |
5452 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5453 | ||
5454 | * dwarf2loc.c (bits_to_bytes): New function. | |
5455 | (read_pieced_value): Fix offset calculations for register pieces | |
5456 | on big-endian targets. | |
5457 | (write_pieced_value): Likewise. | |
5458 | ||
840989c1 AA |
5459 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5460 | ||
5461 | * dwarf2loc.c (read_pieced_value): Remove buffer_size variable. | |
5462 | (write_pieced_value): Likewise. | |
5463 | ||
359b19bb AA |
5464 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5465 | ||
5466 | * dwarf2loc.c (write_pieced_value): When writing to a bit-field, | |
5467 | transfer the source value's least significant bits, instead of its | |
5468 | lowest-addressed ones. Rename type_len to max_offset. | |
5469 | (read_pieced_value): Mirror above changes to write_pieced_value as | |
5470 | applicable. | |
5471 | ||
07c9ca3b AA |
5472 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5473 | ||
5474 | * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY, | |
5475 | truncate full bytes from dest_offset_bits before using it as an | |
5476 | offset into the buffer. | |
5477 | ||
f1cc9874 AA |
5478 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5479 | ||
5480 | * dwarf2loc.c (write_pieced_value): Include transfer size in | |
5481 | byte-wise check. | |
5482 | ||
cdaac320 AA |
5483 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5484 | ||
5485 | * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the | |
5486 | calculation of this_size. | |
5487 | ||
af547a96 AA |
5488 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5489 | ||
5490 | * dwarf2loc.c (read_pieced_value): Respect parent value's offset | |
5491 | when targeting a bit-field. | |
5492 | (write_pieced_value): Likewise. | |
5493 | ||
ddd7882a AA |
5494 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5495 | ||
5496 | * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field. | |
5497 | (allocate_piece_closure): Drop addr_size parameter. | |
5498 | (dwarf2_evaluate_loc_desc_full): Adjust call to | |
5499 | allocate_piece_closure. | |
5500 | ||
e9352324 AA |
5501 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5502 | ||
5503 | PR gdb/21226 | |
5504 | * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at | |
5505 | the LSB end, independent of endianness. | |
5506 | ||
d5d1163e AA |
5507 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5508 | ||
5509 | * dwarf2loc.c (write_pieced_value): Fix order of calculations for | |
5510 | size capping. | |
5511 | ||
032bb6ea YQ |
5512 | 2017-06-13 Yao Qi <yao.qi@linaro.org> |
5513 | ||
5514 | * mips-linux-nat.c: Move include features/mips*-linux.c to | |
5515 | mips-linux-tdep.c. | |
5516 | (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls | |
5517 | to mips-linux-tdep.c. | |
5518 | * mips-linux-tdep.c: Include features/mips*-linux.c | |
5519 | (_initialize_mips_linux_tdep): Call initialize_tdesc_mips* | |
5520 | functions. | |
5521 | * mips-linux-tdep.h (tdesc_mips_linux): Declare. | |
5522 | (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare. | |
5523 | (tdesc_mips64_dsp_linux): Declare. | |
5524 | ||
f12f6bad TT |
5525 | 2017-06-12 Tom Tromey <tom@tromey.com> |
5526 | ||
5527 | * valprint.h (val_print_type_code_int): Remove. | |
5528 | * valprint.c (generic_val_print_int): Always call | |
5529 | val_print_scalar_formatted. | |
5530 | (val_print_type_code_int): Remove. | |
5531 | * printcmd.c (print_scalar_formatted): Handle options->format==0. | |
5532 | * f-valprint.c (f_val_print): Use val_print_scalar_formatted. | |
5533 | * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted. | |
5534 | * ada-valprint.c (ada_val_print_num): Use | |
5535 | val_print_scalar_formatted. | |
5536 | ||
d9109c80 TT |
5537 | 2017-06-12 Tom Tromey <tom@tromey.com> |
5538 | ||
5539 | * printcmd.c (print_scalar_formatted): Unify the two switches. | |
5540 | Don't convert scalars to LONGEST. | |
5541 | ||
4ac0cb1c TT |
5542 | 2017-06-12 Tom Tromey <tom@tromey.com> |
5543 | ||
5544 | PR exp/16225: | |
5545 | * valprint.h (print_decimal_chars): Update. | |
5546 | * valprint.c (maybe_negate_by_bytes): New function. | |
5547 | (print_decimal_chars): Add "is_signed" argument. | |
5548 | * printcmd.c (print_scalar_formatted): Update. | |
5549 | ||
30a25466 TT |
5550 | 2017-06-12 Tom Tromey <tom@tromey.com> |
5551 | ||
5552 | PR exp/16225: | |
5553 | * valprint.h (print_binary_chars, print_hex_chars): Update. | |
5554 | * valprint.c (val_print_type_code_int): Update. | |
5555 | (print_binary_chars): Add "zero_pad" argument. | |
5556 | (emit_octal_digit): New function. | |
5557 | (print_octal_chars): Don't zero-pad. | |
5558 | (print_decimal_chars): Likewise. | |
5559 | (print_hex_chars): Add "zero_pad" argument. | |
5560 | * sh64-tdep.c (sh64_do_fp_register): Update. | |
5561 | * regcache.c (regcache::dump): Update. | |
5562 | * printcmd.c (print_scalar_formatted): Update. | |
5563 | * infcmd.c (default_print_one_register_info): Update. | |
5564 | ||
b3464d03 PA |
5565 | 2017-06-12 Pedro Alves <palves@redhat.com> |
5566 | Alan Hayward <alan.hayward@arm.com> | |
5567 | ||
5568 | * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New. | |
5569 | (mips_eabi_push_dummy_call): Rename local 'regsize' to | |
5570 | 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and | |
5571 | use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it. | |
5572 | Assert that abi_regsize bytes fit in 'ref_valbuf'. | |
5573 | ||
4b76cda9 PA |
5574 | 2017-06-12 Pedro Alves <palves@redhat.com> |
5575 | ||
5576 | * dwarf2read.c (mapped_symtab::data): Now a vector of | |
5577 | symtab_index_entry instead of vector of | |
5578 | std::unique_ptr<symtab_index_entry>. All users adjusted to check | |
5579 | whether an element's name is NULL instead of checking whether the | |
5580 | element itself is NULL. | |
5581 | (find_slot): Change return type. Adjust. | |
5582 | (hash_expand, , add_index_entry, uniquify_cu_indices) | |
5583 | (write_hash_table): Adjust. | |
5584 | ||
e8f8bcb3 PA |
5585 | 2017-06-12 Pedro Alves <palves@redhat.com> |
5586 | ||
5587 | * dwarf2read.c (recursively_count_psymbols): New function. | |
5588 | (write_psymtabs_to_index): Call it to compute number of psyms and | |
5589 | pass estimate size of psyms_seen to unordered_set's ctor. | |
5590 | ||
70a1152b PA |
5591 | 2017-06-12 Pedro Alves <palves@redhat.com> |
5592 | ||
5593 | * dwarf2read.c (write_hash_table): Check if key already exists | |
5594 | before emplacing. | |
5595 | ||
c2f134ac PA |
5596 | 2017-06-12 Pedro Alves <palves@redhat.com> |
5597 | ||
5598 | * dwarf2read.c (data_buf::append_space): Rename to... | |
5599 | (data_buf::grow): ... this, and make private. Adjust all callers. | |
5600 | (data_buf::append_uint): New method. | |
5601 | (add_address_entry, write_one_signatured_type) | |
5602 | (write_psymtabs_to_index): Use it. | |
5603 | ||
a81e6d4d PA |
5604 | 2017-06-12 Pedro Alves <palves@redhat.com> |
5605 | ||
5606 | * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete. | |
5607 | (file_write (FILE *, const std::vector<Elem>&)): Delete. | |
5608 | (data_buf::file_write): Call ::fwrite directly. | |
5609 | ||
6fd931f2 PA |
5610 | 2017-06-12 Pedro Alves <palves@redhat.com> |
5611 | ||
5612 | * dwarf2read.c (uniquify_cu_indices): Use std::unique and | |
5613 | std::vector::erase. | |
5614 | ||
bc8f2430 JK |
5615 | 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
5616 | ||
5617 | Code cleanup: C++ify .gdb_index producer. | |
5618 | * dwarf2read.c: Include <unordered_set> and <unordered_map>. | |
5619 | (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type. | |
5620 | (struct strtab_entry, hash_strtab_entry, eq_strtab_entry) | |
5621 | (create_strtab, add_string): Remove. | |
5622 | (file_write, data_buf): New. | |
5623 | (struct symtab_index_entry): Use std::vector for cu_indices. | |
5624 | (struct mapped_symtab): Use std::vector for data. | |
5625 | (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry) | |
5626 | (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab): | |
5627 | Remove. | |
5628 | (find_slot): Change return type. Update it to the new data structures. | |
5629 | (hash_expand, add_index_entry): Update it to the new data structures. | |
5630 | (offset_type_compare): Remove. | |
5631 | (uniquify_cu_indices): Update it to the new data structures. | |
5632 | (c_str_view, c_str_view_hasher, vector_hasher): New. | |
5633 | (add_indices_to_cpool): Remove. | |
5634 | (write_hash_table): Update it to the new data structures. | |
5635 | (struct psymtab_cu_index_map, hash_psymtab_cu_index) | |
5636 | (eq_psymtab_cu_index): Remove. | |
5637 | (psym_index_map): New typedef. | |
5638 | (struct addrmap_index_data): Change addr_obstack pointer to data_buf | |
5639 | reference and std::unordered_map for cu_index_htab. | |
5640 | (add_address_entry, add_address_entry_worker, write_address_map) | |
5641 | (write_psymbols): Update it to the new data structures. | |
5642 | (write_obstack): Remove. | |
5643 | (struct signatured_type_index_data): Change types_list to a data_buf | |
5644 | reference and psyms_seen to a std::unordered_set reference. | |
5645 | (write_one_signatured_type, recursively_write_psymbols) | |
5646 | (write_psymtabs_to_index): Update it to the new data structures. | |
5647 | ||
c4dcb155 SM |
5648 | 2017-06-11 Simon Marchi <simon.marchi@ericsson.com> |
5649 | ||
5650 | * NEWS (Changes since GDB 8.0): Announce {set,show} debug | |
5651 | separate-debug-file commands. | |
5652 | * symfile.h (separate_debug_file_debug): New global. | |
5653 | * symfile.c (separate_debug_file_debug): New global. | |
5654 | (separate_debug_file_exists, find_separate_debug_file): Add | |
5655 | debug output. | |
5656 | (_initialize_symfile): Add "set debug separate-debug-file" | |
5657 | command. | |
5658 | * build-id.c (build_id_to_debug_bfd, | |
5659 | find_separate_debug_file_by_buildid): Add debug output. | |
5660 | ||
6d45d4b4 SM |
5661 | 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca> |
5662 | ||
5663 | * gdbarch.sh (displaced_step_free_closure): Remove. | |
5664 | * gdbarch.h, gdbarch.c: Re-generate. | |
5665 | * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set | |
5666 | displaced_step_free_closure. | |
5667 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise. | |
5668 | * arm-linux-tdep.c (arm_linux_init_abi): Likewise. | |
5669 | * i386-linux-tdep.c (i386_linux_init_abi): Likewise. | |
5670 | * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise. | |
5671 | * rs6000-tdep.c (rs6000_gdbarch_init): Likewise. | |
5672 | * s390-linux-tdep.c (s390_gdbarch_init): Likewise. | |
5673 | * arch-utils.h (simple_displaced_step_free_closure): Remove. | |
5674 | * arch-utils.c (simple_displaced_step_free_closure): Remove. | |
5675 | * infrun.c (displaced_step_clear): Call xfree instead of | |
5676 | gdbarch_displaced_step_free_closure. | |
5677 | ||
2f91880f SDJ |
5678 | 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com> |
5679 | ||
5680 | * common/common-utils.c (stringify_argv): Check for "arg[0] != | |
5681 | NULL". | |
5682 | ||
b8b6e72f AH |
5683 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
5684 | ||
5685 | * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add. | |
5686 | (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE. | |
5687 | (mn10300_push_dummy_call): Likewise. | |
5688 | ||
5369082e AH |
5689 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
5690 | ||
5691 | * mi/mi-main.c (register_changed_p): Use value_contents_eq. | |
5692 | ||
ff4ca5ac AH |
5693 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
5694 | ||
5695 | * mi/mi-main.c (register_changed_p): Use cooked_read_value. | |
5696 | ||
aefd8b33 SDJ |
5697 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
5698 | ||
5699 | * NEWS (Changes since GDB 8.0): Announce that GDBserver is now | |
5700 | able to start inferiors using a shell. | |
5701 | (New remote packets): Announce new packet "QStartupWithShell". | |
5702 | * remote.c: Add PACKET_QStartupWithShell. | |
5703 | (extended_remote_create_inferior): Handle new | |
5704 | PACKET_QStartupWithShell. | |
5705 | (remote_protocol_features) <QStartupWithShell>: New entry for | |
5706 | PACKET_QStartupWithShell. | |
5707 | (_initialize_remote): Call "add_packet_config_cmd" for | |
5708 | QStartupShell. | |
5709 | ||
2090129c SDJ |
5710 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
5711 | Pedro Alves <palves@redhat.com> | |
5712 | ||
5713 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h" | |
5714 | and "nat/fork-inferior.h". | |
5715 | * common/common-inferior.h: New file, with contents from | |
5716 | "gdb/inferior.h". | |
5717 | * commom/common-utils.c: Include "common-utils.h". | |
5718 | (stringify_argv): New function. | |
5719 | * common/common-utils.h (stringify_argv): New prototype. | |
5720 | * configure.nat: Add "fork-inferior.o" as a dependency for | |
5721 | "*linux*", "fbsd*" and "nbsd*" hosts. | |
5722 | * corefile.c (get_exec_file): Update comment. | |
5723 | * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior" | |
5724 | instead of "startup_inferior". | |
5725 | (darwin_create_inferior): Call "add_thread_silent" after | |
5726 | "fork_inferior". | |
5727 | * fork-child.c: Cleanup unnecessary includes. | |
5728 | (SHELL_FILE): Move to "common/common-fork-child.c". | |
5729 | (environ): Likewise. | |
5730 | (exec_wrapper): Initialize. | |
5731 | (get_exec_wrapper): New function. | |
5732 | (breakup_args): Move to "common/common-fork-child.c"; rename to | |
5733 | "breakup_args_for_exec". | |
5734 | (escape_bang_in_quoted_argument): Move to | |
5735 | "common/common-fork-child.c". | |
5736 | (saved_ui): New variable. | |
5737 | (prefork_hook): New function. | |
5738 | (postfork_hook): Likewise. | |
5739 | (postfork_child_hook): Likewise. | |
5740 | (gdb_startup_inferior): Likewise. | |
5741 | (fork_inferior): Move to "common/common-fork-child.c". Update | |
5742 | function to support gdbserver. | |
5743 | (startup_inferior): Likewise. | |
5744 | * gdbcore.h (get_exec_file): Remove declaration. | |
5745 | * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior" | |
5746 | instead of "startup_inferior". Call "add_thread_silent" after | |
5747 | "fork_inferior". | |
5748 | * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h". | |
5749 | (inf_ptrace_create_inferior): Call "gdb_startup_inferior" | |
5750 | instead of "startup_inferior". Call "add_thread_silent" after | |
5751 | "fork_inferior". | |
5752 | * inferior.h: Include "common-inferior.h". | |
5753 | (trace_start_error): Move to "common/common-utils.h". | |
5754 | (trace_start_error_with_name): Likewise. | |
5755 | (fork_inferior): Move prototype to "nat/fork-inferior.h". | |
5756 | (startup_inferior): Likewise. | |
5757 | (gdb_startup_inferior): New prototype. | |
5758 | * nat/fork-inferior.c: New file, with contents from "fork-child.c". | |
5759 | * nat/fork-inferior.h: New file. | |
5760 | * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior" | |
5761 | instead of "startup_inferior". Call "add_thread_silent" after | |
5762 | "fork_inferior". | |
5763 | * target.h (target_terminal_init): Move prototype to | |
5764 | "target/target.h". | |
5765 | (target_terminal_inferior): Likewise. | |
5766 | (target_terminal_ours): Likewise. | |
5767 | * target/target.h (target_terminal_init): New prototype, moved | |
5768 | from "target.h". | |
5769 | (target_terminal_inferior): Likewise. | |
5770 | (target_terminal_ours): Likewise. | |
5771 | * utils.c (gdb_flush_out_err): New function. | |
5772 | ||
043a4934 SDJ |
5773 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
5774 | ||
5775 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h". | |
5776 | * common/common-gdbthread.h: New file, with parts from | |
5777 | "gdb/gdbthread.h". | |
5778 | * gdbthread.h: Include "common-gdbthread.h". | |
5779 | (switch_to_thread): Moved to "common/common-gdbthread.h". | |
5780 | ||
15652511 SDJ |
5781 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
5782 | ||
5783 | * Makefile.in (SFILES): Add "common/job-control.c". | |
5784 | (HFILES_NO_SRCDIR): Add "common/job-control.h". | |
5785 | (COMMON_OBS): Add "job-control.o". | |
5786 | * common/job-control.c: New file, with contents from | |
5787 | "gdb/inflow.c". | |
5788 | * common/job-control.h: New file, with contents from "terminal.h". | |
5789 | * fork-child.c: Include "job-control.h". | |
5790 | * inflow.c: Include "job-control.h". | |
5791 | (gdb_setpgid): Move to "common/common-inflow.c". | |
5792 | (_initialize_inflow): Move setting of "job_control" to | |
5793 | "handle_job_control". | |
5794 | * terminal.h (job_control): Moved to "common/common-terminal.h". | |
5795 | (gdb_setpgid): Likewise. | |
5796 | * top.c: Include "job_control.h". | |
5797 | * utils.c: Likewise. | |
5798 | (job_control): Moved to "job-control.c". | |
5799 | ||
2d7cc5c7 PA |
5800 | 2017-06-07 Pedro Alves <palves@redhat.com> |
5801 | ||
5802 | * Makefile.in (SFILES): Add gdb_regex.c. | |
5803 | (COMMON_OBS): Add gdb_regex.o. | |
5804 | * ada-lang.c (ada_add_standard_exceptions) | |
5805 | (ada_add_exceptions_from_frame, name_matches_regex) | |
5806 | (ada_add_global_exceptions, ada_exceptions_list_1): Change regex | |
5807 | parameter type to compiled_regex. Adjust. | |
5808 | (ada_exceptions_list): Use compiled_regex. | |
5809 | * break-catch-throw.c (exception_catchpoint::pattern): Now a | |
5810 | std::unique_ptr<compiled_regex>. | |
5811 | (exception_catchpoint::~exception_catchpoint): Remove regfree | |
5812 | call. | |
5813 | (check_status_exception_catchpoint): Adjust to use compiled_regex. | |
5814 | (handle_gnu_v3_exceptions): Adjust to use compiled_regex. | |
5815 | * breakpoint.c (solib_catchpoint::compiled): Now a | |
5816 | std::unique_ptr<compiled_regex>. | |
5817 | (solib_catchpoint::~solib_catchpoint): Remove regfree call. | |
5818 | (check_status_catch_solib): Adjust to use compiled_regex. | |
5819 | (add_solib_catchpoint): Adjust to use compiled_regex. | |
5820 | * cli/cli-cmds.c (apropos_command): Use compiled_regex. | |
5821 | * cli/cli-decode.c (apropos_cmd): Change regex parameter to | |
5822 | compiled_regex reference. Adjust to use it. | |
5823 | * cli/cli-decode.h: Remove struct re_pattern_buffer forward | |
5824 | declaration. Include "gdb_regex.h". | |
5825 | (apropos_cmd): Change regex parameter to compiled_regex reference. | |
5826 | * gdb_regex.c: New file. | |
5827 | * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete | |
5828 | declarations. | |
5829 | (class compiled_regex): New. | |
5830 | * linux-tdep.c: Include "common/gdb_optional.h". | |
5831 | (struct mapping_regexes): New, factored out from | |
5832 | mapping_is_anonymous_p, and adjusted to use compiled_regex. | |
5833 | (mapping_is_anonymous_p): Use mapping_regexes wrapped in a | |
5834 | gdb::optional and remove cleanups. Adjust to compiled_regex. | |
5835 | * probe.c: Include "common/gdb_optional.h". | |
5836 | (collect_probes): Use compiled_regex and gdb::optional and remove | |
5837 | cleanups. | |
5838 | * skip.c: Include "common/gdb_optional.h". | |
5839 | (skiplist_entry::compiled_function_regexp): Now a | |
5840 | gdb::optional<compiled_regex>. | |
5841 | (skiplist_entry::compiled_function_regexp_is_valid): Delete field. | |
5842 | (free_skiplist_entry): Remove regfree call. | |
5843 | (compile_skip_regexp, skip_rfunction_p): Adjust to use | |
5844 | compiled_regex and gdb::optional. | |
5845 | * symtab.c: Include "common/gdb_optional.h". | |
5846 | (search_symbols): Use compiled_regex and gdb::optional. | |
5847 | * utils.c (do_regfree_cleanup, make_regfree_cleanup) | |
5848 | (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved | |
5849 | to gdb_regex.c. | |
5850 | ||
50d6adef AH |
5851 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
5852 | ||
5853 | * regcache.c (regcache::save): Avoid buffer use. | |
5854 | (regcache::dump): Likewise. | |
5855 | ||
4a8a33c8 AH |
5856 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
5857 | ||
5858 | * sh-tdep.c (sh_pseudo_register_read): Remove | |
5859 | MAX_REGISTER_SIZE. | |
5860 | (sh_pseudo_register_write): Likewise. | |
5861 | * sh64-tdep.c (sh64_pseudo_register_read): Likewise. | |
5862 | (sh64_pseudo_register_write): Likewise | |
5863 | ||
d1be909e AH |
5864 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
5865 | ||
5866 | * aarch64-tdep.c (aarch64_store_return_value): Use | |
5867 | V_REGISTER_SIZE. | |
5868 | (aarch64_pseudo_read_value): Likewise. | |
5869 | (aarch64_pseudo_write): Likewise. | |
5870 | ||
f4a65042 YQ |
5871 | 2017-06-06 Yao Qi <yao.qi@linaro.org> |
5872 | ||
5873 | * regformats/regdef.h (set_register_cache): Remove the | |
5874 | declaration. | |
5875 | ||
9f7fb0aa AH |
5876 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
5877 | ||
5878 | * frame.c (frame_unwind_register_signed): Use | |
5879 | frame_unwind_register_value. | |
5880 | ||
e1e01040 PA |
5881 | 2017-06-06 Pedro Alves <palves@redhat.com> |
5882 | ||
5883 | PR breakpoints/21553 | |
5884 | * breakpoint.c (create_breakpoints_sal_default) | |
5885 | (init_breakpoint_sal, create_breakpoint_sal): Use | |
5886 | gdb::unique_xmalloc_ptr for string parameters. | |
5887 | (create_breakpoint): Constify 'extra_string' and 'cond_string' | |
5888 | parameters. Replace cleanups with gdb::unique_xmalloc_ptr. | |
5889 | (base_breakpoint_create_breakpoints_sal) | |
5890 | (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal) | |
5891 | (strace_marker_create_breakpoints_sal) | |
5892 | (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for | |
5893 | string parameters. | |
5894 | * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use | |
5895 | gdb::unique_xmalloc_ptr for string parameters. | |
5896 | (create_breakpoint): Constify 'extra_string' and 'cond_string' | |
5897 | parameters. | |
5898 | ||
fbe654c8 AH |
5899 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
5900 | ||
5901 | * alpha-tdep.c (alpha_register_to_value): Use | |
5902 | get_frame_register_value. | |
5903 | (alpha_value_to_register): Use ALPHA_REGISTER_SIZE. | |
5904 | ||
ae0d01d6 AH |
5905 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
5906 | ||
5907 | * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add. | |
5908 | (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE. | |
5909 | (ia64_value_to_register): Likewise. | |
5910 | (ia64_extract_return_value): Likewise. | |
5911 | (ia64_store_return_value): Likewise. | |
5912 | (ia64_push_dummy_call): Likewise. | |
5913 | ||
49cf576c JB |
5914 | 2017-06-04 Joel Brobecker <brobecker@adacore.com> |
5915 | ||
5916 | GDB 8.0 released. | |
5917 | ||
26b6a6ab SM |
5918 | 2017-06-03 Simon Marchi <simon.marchi@ericsson.com> |
5919 | ||
5920 | * x86-linux-nat.c (struct arch_lwp_info): Remove. | |
5921 | ||
22827c51 SM |
5922 | 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca> |
5923 | ||
5924 | * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST | |
5925 | parameter. | |
5926 | (linux_nat_attach): Adjust call to linux_nat_post_attach_wait. | |
5927 | ||
0e05cf3a SM |
5928 | 2017-06-02 Simon Marchi <simon.marchi@ericsson.com> |
5929 | ||
5930 | * event-loop.c (poll_timers): Unallocate timer using delete | |
5931 | instead of xfree. | |
5932 | ||
c1fc2657 SM |
5933 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
5934 | ||
5935 | * breakpoint.h (struct breakpoint_ops) <dtor>: Remove. | |
5936 | (struct breakpoint) <~breakpoint>: New. | |
5937 | (struct watchpoint): Inherit from breakpoint. | |
5938 | <~watchpoint>: New. | |
5939 | <base>: Remove. | |
5940 | (struct tracepoint): Inherit from breakpoint. | |
5941 | <base>: Remove. | |
5942 | * breakpoint.c (longjmp_breakpoint_ops): Remove. | |
5943 | (struct longjmp_breakpoint): Inherit from breakpoint. | |
5944 | <~longjmp_breakpoint>: New. | |
5945 | <base>: Remove. | |
5946 | (new_breakpoint_from_type): Remove casts. | |
5947 | (watchpoint_in_thread_scope): Remove reference to base field. | |
5948 | (watchpoint_del_at_next_stop): Likewise. | |
5949 | (update_watchpoint): Likewise. | |
5950 | (watchpoint_check): Likewise. | |
5951 | (bpstat_check_watchpoint): Likewise. | |
5952 | (set_longjmp_breakpoint): Likewise. | |
5953 | (struct fork_catchpoint): Inherit from breakpoint. | |
5954 | <base>: Remove. | |
5955 | (struct solib_catchpoint): Inherit from breakpoint. | |
5956 | <~solib_catchpoint>: New. | |
5957 | <base>: Remove. | |
5958 | (dtor_catch_solib): Change to ... | |
5959 | (solib_catchpoint::~solib_catchpoint): ... this. | |
5960 | (breakpoint_hit_catch_solib): Remove reference to base field. | |
5961 | (add_solib_catchpoint): Likewise. | |
5962 | (create_fork_vfork_event_catchpoint): Likewise. | |
5963 | (struct exec_catchpoint): Inherit from breakpoint. | |
5964 | <~exec_catchpoint>: New. | |
5965 | <base>: Remove. | |
5966 | (dtor_catch_exec): Change to ... | |
5967 | (exec_catchpoint::~exec_catchpoint): ... this. | |
5968 | (dtor_watchpoint): Change to ... | |
5969 | (watchpoint::~watchpoint): ... this. | |
5970 | (watch_command_1): Remove reference to base field. | |
5971 | (catch_exec_command_1): Likewise. | |
5972 | (base_breakpoint_dtor): Change to ... | |
5973 | (breakpoint::~breakpoint): ... this. | |
5974 | (base_breakpoint_ops): Remove dtor field value. | |
5975 | (longjmp_bkpt_dtor): Change to ... | |
5976 | (longjmp_breakpoint::~longjmp_breakpoint): ... this. | |
5977 | (strace_marker_create_breakpoints_sal): Remove reference to base | |
5978 | field. | |
5979 | (delete_breakpoint): Don't manually call breakpoint destructor. | |
5980 | (create_tracepoint_from_upload): Remove reference to base field. | |
5981 | (trace_pass_set_count): Likewise. | |
5982 | (initialize_breakpoint_ops): Don't initialize | |
5983 | momentary_breakpoint_ops, don't set dtors. | |
5984 | * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint. | |
5985 | <~ada_catchpoint>: New. | |
5986 | <base>: Remove. | |
5987 | (create_excep_cond_exprs): Remove reference to base field. | |
5988 | (dtor_exception): Change to ... | |
5989 | (ada_catchpoint::~ada_catchpoint): ... this. | |
5990 | (dtor_catch_exception): Remove. | |
5991 | (dtor_catch_exception_unhandled): Remove. | |
5992 | (dtor_catch_assert): Remove. | |
5993 | (create_ada_exception_catchpoint): Remove reference to base | |
5994 | field. | |
5995 | (initialize_ada_catchpoint_ops): Don't set dtors. | |
5996 | * break-catch-sig.c (struct signal_catchpoint): Inherit from | |
5997 | breakpoint. | |
5998 | <~signal_catchpoint>: New. | |
5999 | <base>: Remove. | |
6000 | (signal_catchpoint_dtor): Change to ... | |
6001 | (signal_catchpoint::~signal_catchpoint): ... this. | |
6002 | (create_signal_catchpoint): Remove reference to base field. | |
6003 | (initialize_signal_catchpoint_ops): Don't set dtor. | |
6004 | * break-catch-syscall.c (struct syscall_catchpoint): Inherit | |
6005 | from breakpoint. | |
6006 | <~syscall_catchpoint>: New. | |
6007 | <base>: Remove. | |
6008 | (dtor_catch_syscall): Change to ... | |
6009 | (syscall_catchpoint::~syscall_catchpoint): ... this. | |
6010 | (create_syscall_event_catchpoint): Remove reference to base | |
6011 | field. | |
6012 | (initialize_syscall_catchpoint_ops): Don't set dtor. | |
6013 | * break-catch-throw.c (struct exception_catchpoint): Inherit | |
6014 | from breakpoint. | |
6015 | <~exception_catchpoint>: New. | |
6016 | <base>: Remove. | |
6017 | (dtor_exception_catchpoint): Change to ... | |
6018 | (exception_catchpoint::~exception_catchpoint): ... this. | |
6019 | (handle_gnu_v3_exceptions): Remove reference to base field. | |
6020 | (initialize_throw_catchpoint_ops): Don't set dtor. | |
6021 | * ctf.c (ctf_get_traceframe_address): Remove reference to base | |
6022 | field. | |
6023 | * remote.c (remote_get_tracepoint_status): Likewise. | |
6024 | * tracefile-tfile.c (tfile_get_traceframe_address): Likewise. | |
6025 | * tracefile.c (tracefile_fetch_registers): Likewise. | |
6026 | * tracepoint.c (actions_command): Likewise. | |
6027 | (validate_actionline): Likewise. | |
6028 | (tfind_1): Likewise. | |
6029 | (get_traceframe_location): Likewise. | |
6030 | (find_matching_tracepoint_location): Likewise. | |
6031 | (parse_tracepoint_status): Likewise. | |
6032 | * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise. | |
6033 | ||
3b0871f4 SM |
6034 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
6035 | ||
6036 | * breakpoint.c (struct longjmp_breakpoint): New struct. | |
6037 | (is_tracepoint_type): Change return type to bool. | |
6038 | (is_longjmp_type): New function. | |
6039 | (new_breakpoint_from_type): Handle longjmp kinds of breakpoints. | |
6040 | (set_raw_breakpoint_without_location): Use | |
6041 | new_breakpoint_from_type. | |
6042 | (set_raw_breakpoint): Likewise. | |
6043 | ||
a5e364af SM |
6044 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
6045 | ||
6046 | * breakpoint.c (new_breakpoint_from_type): New function. | |
6047 | (create_breakpoint_sal): Use new_breakpoint_from_type and | |
6048 | unique_ptr. | |
6049 | (create_breakpoint): Likewise. | |
6050 | ||
ae3b3f34 SM |
6051 | 2017-05-31 Simon Marchi <simon.marchi@ericsson.com> |
6052 | ||
6053 | * memattr.c (mem_info_command): Rename to ... | |
6054 | (info_mem_command): ... this. | |
6055 | (mem_enable_command): Rename to ... | |
6056 | (enable_mem_command): ... this. | |
6057 | (mem_disable_command): Rename to ... | |
6058 | (disable_mem_command): ... this. | |
6059 | (mem_delete_command): Rename to ... | |
6060 | (delete_mem_command): ... this. | |
6061 | (_initialize_mem): Adjust function names. | |
6062 | ||
13ace077 MM |
6063 | 2017-05-31 Markus Metzger <markus.t.metzger@intel.com> |
6064 | ||
6065 | * btrace.c (handle_pt_insn_events): New. | |
6066 | (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into | |
6067 | STATUS. Split into this and ... | |
6068 | (handle_pt_insn_event_flags): ... this. | |
6069 | ||
c56ccc05 MM |
6070 | 2017-05-31 Markus Metzger <markus.t.metzger@intel.com> |
6071 | ||
6072 | * configure.ac: Check for pt_insn_event, struct pt_insn.enabled, | |
6073 | and struct pt_insn.resynced. | |
6074 | * configure: Regenerated. | |
6075 | * config.in: Regenerated. | |
6076 | ||
08c3f6d2 TW |
6077 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
6078 | ||
6079 | * btrace.c (ftrace_find_call_by_number): New function. | |
6080 | (ftrace_new_function): Store objects, not pointers. | |
6081 | (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch, | |
6082 | ftrace_new_gap, ftrace_update_function, | |
6083 | ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear, | |
6084 | btrace_insn_get, btrace_insn_get_error, btrace_insn_end, | |
6085 | btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number, | |
6086 | btrace_ends_with_single_insn, btrace_call_get): Account for | |
6087 | btrace_thread_info::functions now storing objects. | |
6088 | * btrace.h (struct btrace_thread_info): Add constructor. | |
6089 | (struct btrace_thread_info) <functions>: Make std::vector. | |
6090 | (struct btrace_thread_info) <prev, next, up, insn, errcode, flags): | |
6091 | Initialize with default values. | |
6092 | * record-btrace.c (record_btrace_frame_sniffer): Account for | |
6093 | btrace_thread_info::functions now storing objects. | |
6094 | ||
8ffd39f2 TW |
6095 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
6096 | ||
6097 | * btrace.c: Remove typedef bfun_s. | |
6098 | (ftrace_new_gap): Directly add gaps to the list of gaps. | |
6099 | (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags, | |
6100 | ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1, | |
6101 | btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector | |
6102 | instead of gdb VEC. | |
6103 | ||
4aeb0dfc TW |
6104 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
6105 | ||
6106 | * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun, | |
6107 | ftrace_bridge_gap): Replace references to btrace_thread_info::segment | |
6108 | with btrace_thread_info::next_segment and | |
6109 | btrace_thread_info::prev_segment. | |
6110 | * btrace.h: Remove struct btrace_func_link. | |
6111 | (struct btrace_function): Replace pair of function segment pointers | |
6112 | with pair of indices. | |
6113 | * python/py-record-btrace.c (btpy_call_prev_sibling, | |
6114 | btpy_call_next_sibling): Replace references to | |
6115 | btrace_thread_info::segment with btrace_thread_info::next_segment and | |
6116 | btrace_thread_info::prev_segment. | |
6117 | * record-btrace.c (record_btrace_frame_this_id): Use | |
6118 | btrace_find_call_by_number. | |
6119 | ||
eb8f2b9c TW |
6120 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
6121 | ||
6122 | * btrace.c (ftrace_new_function, ftrace_fixup_level, | |
6123 | ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps, | |
6124 | btrace_insn_next, btrace_insn_prev): Remove references to | |
6125 | btrace_thread_info::flow. | |
6126 | * btrace.h (struct btrace_function): Remove FLOW. | |
6127 | ||
42bfe59e TW |
6128 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
6129 | ||
6130 | * btrace.c (ftrace_find_call_by_number): New function. | |
6131 | (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall, | |
6132 | ftrace_get_caller, ftrace_find_call, ftrace_new_return, | |
6133 | ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace, | |
6134 | ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an | |
6135 | index. | |
6136 | * btrace.h (struct btrace_function): Turn UP into an index. | |
6137 | * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up | |
6138 | as an index. | |
6139 | * record-btrace.c (record_btrace_frame_unwind_stop_reason, | |
6140 | record_btrace_frame_prev_register, record_btrace_frame_sniffer, | |
6141 | record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number. | |
6142 | ||
b54b03bd TW |
6143 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
6144 | ||
6145 | * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall, | |
6146 | ftrace_new_return, ftrace_new_switch, ftrace_new_gap, | |
6147 | ftrace_update_function, ftrace_compute_global_level_offset, | |
6148 | btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt, | |
6149 | btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number, | |
6150 | btrace_insn_end, btrace_is_empty): Remove references to | |
6151 | btrace_thread_info::begin and btrace_thread_info::end. | |
6152 | * btrace.h (struct btrace_thread_info): Remove BEGIN and END. | |
6153 | (struct btrace_thread_info) <functions>: Adjust comment. | |
6154 | * record-btrace.c (record_btrace_start_replaying): Remove reference to | |
6155 | btrace_thread_info::begin. | |
6156 | ||
8286623c TW |
6157 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
6158 | ||
6159 | * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall, | |
6160 | ftrace_new_return, ftrace_new_switch, ftrace_new_gap, | |
6161 | ftrace_update_function): Remove arguments that implicitly were always | |
6162 | BTINFO->END. | |
6163 | (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt): | |
6164 | Don't pass BTINFO->END. | |
6165 | ||
a0f1b963 TW |
6166 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
6167 | ||
6168 | * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number, | |
6169 | btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev, | |
6170 | btrace_find_insn_by_number): Replace function segment pointer with | |
6171 | index. | |
6172 | (btrace_insn_cmp): Simplify. | |
6173 | * btrace.h: (struct btrace_insn_iterator) Rename index to | |
6174 | insn_index. Replace function segment pointer with index into function | |
6175 | segment vector. | |
6176 | * record-btrace.c (record_btrace_call_history): Replace function | |
6177 | segment pointer use with index. | |
6178 | (record_btrace_frame_sniffer): Retrieve function call segment through | |
6179 | vector. | |
6180 | (record_btrace_set_replay): Remove defunc't safety check. | |
6181 | ||
f158f208 TW |
6182 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
6183 | ||
6184 | * btrace.c (btrace_ends_with_single_insn): New function. | |
6185 | (btrace_call_get, btrace_call_number, btrace_call_begin, | |
6186 | btrace_call_end, btrace_call_next, btrace_call_prev, | |
6187 | btrace_find_call_by_number): Use index into call segment vector | |
6188 | instead of pointer. | |
6189 | (btrace_call_cmp): Simplify. | |
6190 | * btrace.h (struct btrace_call_iterator): Replace function call segment | |
6191 | pointer with index into vector. | |
6192 | * record-btrace.c (record_btrace_call_history): Use index instead of | |
6193 | pointer. | |
6194 | ||
521103fd TW |
6195 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
6196 | ||
6197 | * btrace.c (btrace_insn_begin, btrace_insn_end, | |
6198 | btrace_find_insn_by_number): Add btinfo to iterator. | |
6199 | * btrace.h (struct btrace_insn_iterator): Add btinfo. | |
6200 | ||
17b89b34 TW |
6201 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
6202 | ||
6203 | * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments | |
6204 | and save pointers directly. | |
6205 | (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return, | |
6206 | ftrace_new_switch, ftrace_new_gap, ftrace_update_function, | |
6207 | ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for | |
6208 | changed signature of functions. | |
6209 | (btrace_compute_ftrace_pt): Adjust for changed signature of functions. | |
6210 | (btrace_fetch): Remove code that adds btrace_function pointers to | |
6211 | vector of btrace_functions. | |
6212 | (btrace_clear): Simplify freeing vector of btrace_functions. | |
6213 | ||
2b51eddc TW |
6214 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
6215 | ||
6216 | * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number): | |
6217 | Replace VEC_* with std::vector functions. | |
6218 | * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P. | |
6219 | (struct btrace_thread_info)<functions>: Change type to std::vector. | |
6220 | ||
db6be0d5 SM |
6221 | 2017-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6222 | ||
6223 | * NEWS (Changes in GDB 8.0): Remove extra empty line. Move | |
6224 | "Removed targets and native configurations" up. Merge duplicate | |
6225 | "New commands" sub-sections. Add "New options" sub-sections. | |
6226 | ||
b057297a AH |
6227 | 2017-05-26 Alan Hayward <alan.hayward@arm.com> |
6228 | ||
6229 | * defs.h (copy_integer_to_size): New declaration. | |
6230 | * findvar.c (copy_integer_to_size): New function. | |
6231 | (do_cint_test): New selftest function. | |
6232 | (copy_integer_to_size_test): Likewise. | |
6233 | (_initialize_findvar): Likewise. | |
6234 | * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer. | |
6235 | (mips_fbsd_collect_reg): Use raw_collect_integer. | |
6236 | * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer. | |
6237 | (mips64_fill_gregset): Use raw_collect_integer | |
6238 | (mips64_fill_fpregset): Use raw_supply_integer. | |
6239 | * regcache.c (regcache::raw_supply_integer): New function. | |
6240 | (regcache::raw_collect_integer): Likewise. | |
6241 | * regcache.h: (regcache::raw_supply_integer): New declaration. | |
6242 | (regcache::raw_collect_integer): Likewise. | |
6243 | ||
b77b02a5 YQ |
6244 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
6245 | ||
6246 | * Makefile.in (SFILES): Add gdbarch-selftests.c. | |
6247 | (COMMON_OBS): Add gdbarch-selftests.o. | |
6248 | * frame.c [GDB_SELF_TESTS] (create_new_frame): New function. | |
6249 | * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare. | |
6250 | * gdbarch-selftests.c: New file. | |
6251 | * regcache.h (regcache) <~regcache>: Mark it virtual if | |
6252 | GDB_SELF_TEST. | |
6253 | <raw_write>: Likewise. | |
6254 | ||
e521e87e YQ |
6255 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
6256 | ||
6257 | * regcache.c (current_regcache): Change it to | |
6258 | regcache::current_regcache. | |
6259 | (regcache_observer_target_changed): Update. | |
6260 | (regcache_thread_ptid_changed): Make it a regcache static | |
6261 | method. | |
6262 | (regcache_thread_ptid_changed): Update. | |
6263 | (class regcache_access): New. | |
6264 | (current_regcache_test): Update. | |
6265 | (_initialize_regcache): Update. | |
6266 | * regcache.h: Include forward_list. | |
6267 | (regcache): Declare regcache_thread_ptid_changed and declare | |
6268 | registers_changed_ptid as friend. | |
6269 | ||
d8e07dda YQ |
6270 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
6271 | ||
6272 | * i387-tdep.c (i387_register_to_value): Use register_size | |
6273 | instead of TYPE_LENGTH. | |
6274 | * m68k-tdep.c (m68k_register_to_value): Likewise. | |
6275 | ||
8c8f9122 YQ |
6276 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
6277 | ||
6278 | * i387-tdep.c (i387_convert_register_p): Return false if type | |
6279 | code isn't TYPE_CODE_FLT. | |
6280 | ||
68fce50f YQ |
6281 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
6282 | ||
6283 | * alpha-tdep.c (alpha_convert_register_p): Return true if type | |
6284 | length is 4. | |
6285 | (alpha_register_to_value): Remove type length check. | |
6286 | (alpha_value_to_register): Likewise. | |
6287 | ||
88954b49 YQ |
6288 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
6289 | ||
6290 | * ia64-tdep.c (ia64_convert_register_p): Check type's code is | |
6291 | TYPE_CODE_FLT. | |
6292 | ||
e3ec9b69 YQ |
6293 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
6294 | ||
6295 | * m68k-tdep.c (m68k_convert_register_p): Check type's code is | |
6296 | TYPE_CODE_FLT or not. | |
6297 | ||
cdd238da YQ |
6298 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
6299 | ||
6300 | * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW. | |
6301 | * avr-tdep.c (avr_gdbarch_init): Likewise. | |
6302 | * bfin-tdep.c (bfin_gdbarch_init): Likewise. | |
6303 | * cris-tdep.c (cris_gdbarch_init): Likewise. | |
6304 | * ft32-tdep.c (ft32_gdbarch_init): Likewise. | |
6305 | * lm32-tdep.c (lm32_gdbarch_init): Likewise. | |
6306 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. | |
6307 | * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise. | |
6308 | * mep-tdep.c (mep_gdbarch_init): Likewise. | |
6309 | * microblaze-tdep.c (microblaze_gdbarch_init): Likewise. | |
6310 | * mips-tdep.c (mips_gdbarch_init): Likewise. | |
6311 | * mn10300-tdep.c (mn10300_gdbarch_init): Likewise. | |
6312 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. | |
6313 | * msp430-tdep.c (msp430_gdbarch_init): Likewise. | |
6314 | * sh64-tdep.c (sh64_gdbarch_init): Likewise. | |
6315 | * v850-tdep.c (v850_gdbarch_init): Likewise. | |
6316 | ||
7a3929c4 YQ |
6317 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
6318 | ||
6319 | * selftest-arch.c (tests_with_arch): Call registers_changed | |
6320 | and reinit_frame_cache. | |
6321 | * selftest.c (run_self_tests): Likewise. | |
6322 | ||
f4985dba YQ |
6323 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
6324 | ||
6325 | * rs6000-tdep.c (gdb_print_insn_powerpc): Remove. | |
6326 | (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn. | |
6327 | ||
ab20fa4a YQ |
6328 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
6329 | ||
6330 | * rl78-tdep.c (rl78_gdbarch_init): Don't call | |
6331 | set_gdbarch_print_insn. | |
6332 | ||
f532ab94 YQ |
6333 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
6334 | ||
6335 | * h8300-tdep.c (h8300_gdbarch_init): Don't call | |
6336 | set_gdbarch_print_insn. | |
6337 | ||
39503f82 YQ |
6338 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
6339 | ||
6340 | * alpha-tdep.c (alpha_gdbarch_init): Don't call | |
6341 | set_gdbarch_print_insn. | |
6342 | * arc-tdep.c (arc_gdbarch_init): Likewise. | |
6343 | * arch-utils.c: include dis-asm.h. | |
6344 | (default_print_insn): New function. | |
6345 | * arch-utils.h (default_print_insn): Declare. | |
6346 | * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn. | |
6347 | * bfin-tdep.c (bfin_gdbarch_init): Likewise. | |
6348 | * cris-tdep.c (cris_delayed_get_disassembler): Remove. | |
6349 | (cris_gdbarch_init): Don't call set_gdbarch_print_insn. | |
6350 | * frv-tdep.c (frv_gdbarch_init): Likewise. | |
6351 | * ft32-tdep.c (ft32_gdbarch_init): Likewise. | |
6352 | * gdbarch.sh (print_insn): Use default_print_insn. | |
6353 | * gdbarch.c: Regenerated. | |
6354 | * hppa-tdep.c (hppa_gdbarch_init): Likewise. | |
6355 | * iq2000-tdep.c (iq2000_gdbarch_init): Likewise. | |
6356 | * lm32-tdep.c (lm32_gdbarch_init): Likewise. | |
6357 | * m32c-tdep.c (m32c_gdbarch_init): Likewise. | |
6358 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. | |
6359 | * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove. | |
6360 | (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn. | |
6361 | * m68k-tdep.c (m68k_gdbarch_init): Likewise. | |
6362 | * m88k-tdep.c (m88k_gdbarch_init): Likewise. | |
6363 | * microblaze-tdep.c (microblaze_gdbarch_init): Likewise. | |
6364 | * mn10300-tdep.c (mn10300_gdbarch_init): Likewise. | |
6365 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. | |
6366 | * msp430-tdep.c (msp430_gdbarch_init): Likewise. | |
6367 | * mt-tdep.c (mt_gdbarch_init): Likewise. | |
6368 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. | |
6369 | * nios2-tdep.c (nios2_print_insn): Remove. | |
6370 | (nios2_gdbarch_init): Don't call set_gdbarch_print_insn. | |
6371 | * rx-tdep.c (rx_gdbarch_init): Likewise. | |
6372 | * s390-linux-tdep.c (s390_gdbarch_init): Likewise. | |
6373 | * score-tdep.c (score_print_insn): Remove. | |
6374 | (score_gdbarch_init): Don't call set_gdbarch_print_insn. | |
6375 | * sh-tdep.c (sh_gdbarch_init): Likewise. | |
6376 | * sh64-tdep.c (sh64_gdbarch_init): Likewise. | |
6377 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. | |
6378 | * tic6x-tdep.c (tic6x_print_insn): Remove. | |
6379 | (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn. | |
6380 | * tilegx-tdep.c (tilegx_gdbarch_init): Likewise. | |
6381 | * v850-tdep.c (v850_gdbarch_init): Likewise. | |
6382 | * vax-tdep.c (vax_gdbarch_init): Likewise. | |
6383 | * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise. | |
6384 | * xtensa-tdep.c (xtensa_gdbarch_init): Likewise. | |
6385 | ||
f7241d4f JB |
6386 | 2017-05-23 John Baldwin <jhb@FreeBSD.org> |
6387 | ||
6388 | * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove. | |
6389 | (MIPS_FP0_REGNUM): Remove. | |
6390 | (MIPS_FSR_REGNUM): Remove. | |
6391 | (mips_fbsd_supply_fpregs): Use mips_regnum. | |
6392 | (mips_fbsd_supply_gregs): Likewise. | |
6393 | (mips_fbsd_collect_fpregs): Likewise. | |
6394 | (mips_fbsd_collect_gregs): Likewise. | |
6395 | ||
d489d81d JB |
6396 | 2017-05-23 John Baldwin <jhb@FreeBSD.org> |
6397 | ||
6398 | * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison. | |
6399 | (getpfpregs_supplies): New function. | |
6400 | (mips_fbsd_fetch_inferior_registers): Remove early exit and use | |
6401 | getfpregs_supplies. | |
6402 | (mips_fbsd_store_inferior_registers): Likewise. | |
6403 | ||
e11b3cdc PA |
6404 | 2017-05-22 Pedro Alves <palves@redhat.com> |
6405 | ||
6406 | * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD | |
6407 | maintainer. | |
6408 | ||
0f068fb5 AH |
6409 | 2017-05-22 Alan Hayward <alan.hayward@arm.com> |
6410 | ||
6411 | * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE. | |
6412 | (store_register): Likewise. | |
6413 | * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise. | |
6414 | (get_decimal_float_return_value): Likewise. | |
6415 | (do_ppc_sysv_return_value): Likewise. | |
6416 | (ppc64_sysv_abi_push_integer): Likewise. | |
6417 | (ppc64_sysv_abi_push_freg): Likewise. | |
6418 | (ppc64_sysv_abi_return_value_base): Likewise. | |
6419 | (ppc64_sysv_abi_return_value): Likewise. | |
6420 | * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise. | |
6421 | * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise. | |
6422 | * rs6000-nat.c: Likewise. | |
6423 | * rs6000-tdep.c (rs6000_register_to_value): Likewise. | |
6424 | (rs6000_value_to_register): Likewise. | |
6425 | * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add. | |
6426 | ||
e6cf65f2 TT |
6427 | 2017-05-21 Tom Tromey <tom@tromey.com> |
6428 | ||
6429 | PR rust/21466: | |
6430 | * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized | |
6431 | arrays as "[T]", not "[T; ]". | |
6432 | ||
43cc5389 TT |
6433 | 2017-05-19 Tom Tromey <tom@tromey.com> |
6434 | ||
6435 | PR rust/21484: | |
6436 | * rust-lang.c (exp_descriptor_rust): New function. | |
6437 | (rust_language_defn): Use it. | |
6438 | * p-lang.c (pascal_language_defn): Update. | |
6439 | * opencl-lang.c (opencl_language_defn): Update. | |
6440 | * objc-lang.c (objc_language_defn): Update. | |
6441 | * m2-lang.c (m2_language_defn): Update. | |
6442 | * language.h (struct language_defn) | |
6443 | <la_watch_location_expression>: New member. | |
6444 | * language.c (unknown_language_defn, auto_language_defn) | |
6445 | (local_language_defn): Update. | |
6446 | * go-lang.c (go_language_defn): Update. | |
6447 | * f-lang.c (f_language_defn): Update. | |
6448 | * d-lang.c (d_language_defn): Update. | |
6449 | * c-lang.h (c_watch_location_expression): Declare. | |
6450 | * c-lang.c (c_watch_location_expression): New function. | |
6451 | (c_language_defn, cplus_language_defn, asm_language_defn) | |
6452 | (minimal_language_defn): Use it. | |
6453 | * breakpoint.c (watch_command_1): Call | |
6454 | la_watch_location_expression. | |
6455 | * ada-lang.c (ada_language_defn): Update. | |
6456 | ||
7a6e7fcc RO |
6457 | 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
6458 | ||
6e7e1744 RO |
6459 | PR tui/21482 |
6460 | * gdb_curses.h (NOMACROS): Define. | |
6461 | (NCURSES_NOMACROS): Define. | |
6462 | ||
6463 | 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
6464 | ||
6465 | PR tui/21482 | |
7a6e7fcc RO |
6466 | * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr |
6467 | arg to char *. | |
6468 | * tui/tui-wingeneral.c (box_win): Likewise. | |
6469 | * tui/tui-winsource.c (tui_erase_source_content): Likewise. | |
6470 | (tui_show_source_line): Likewise. | |
6471 | (tui_show_exec_info_content): Likewise. | |
6472 | ||
1933fd8e VM |
6473 | 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com> |
6474 | ||
6475 | * sparc-tdep.c (sparc_structure_return_p) | |
6476 | (sparc_arg_on_registers_p): New functions. | |
6477 | (sparc32_store_arguments): Use them. | |
6478 | * sparc64-tdep.c (sparc64_16_byte_align_p) | |
6479 | (sparc64_store_floating_fields, sparc64_extract_floating_fields): | |
6480 | Handle TYPE_CODE_ARRAY. | |
6481 | ||
21873064 YQ |
6482 | 2017-05-17 Yao Qi <yao.qi@linaro.org> |
6483 | ||
6484 | * cli/cli-decode.c (add_alias_cmd): New function. | |
6485 | * command.h (add_alias_cmd): Declare. | |
6486 | * infcmd.c (_initialize_infcmd): Don't call add_com_alias, | |
6487 | instead call add_alias_cmd. | |
6488 | ||
2b351b19 PA |
6489 | 2017-05-17 Pedro Alves <palves@redhat.com> |
6490 | ||
6491 | * Makefile.in (nat_extra_makefile_frag): Rename to ... | |
6492 | (nat_makefile_frag): ... this. All references updated. | |
6493 | * configure.ac: Likewise. | |
6494 | * configure.nat: Likewise. Enhance comments. | |
6495 | * configure: Regenerate. | |
6496 | ||
5f2ad7a3 RO |
6497 | 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
6498 | ||
6499 | * procfs.c (procfs_create_inferior): Change prototype to match | |
6500 | definition. | |
6501 | ||
adf3dde5 EZ |
6502 | 2017-05-13 Eli Zaretskii <eliz@gnu.org> |
6503 | ||
6504 | * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a | |
6505 | C++ compiler warning. | |
6506 | ||
6830f270 TT |
6507 | 2017-05-12 Tom Tromey <tom@tromey.com> |
6508 | ||
6509 | PR rust/21483: | |
6510 | * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't | |
6511 | recurse, just call value_struct_elt directly. | |
6512 | ||
68f2f2e3 TT |
6513 | 2017-05-12 Tom Tromey <tom@tromey.com> |
6514 | ||
6515 | * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS, | |
6516 | OP_RUST_ARRAY>: Fix. | |
6517 | ||
256afbc2 TT |
6518 | 2017-05-12 Tom Tromey <tom@tromey.com> |
6519 | ||
6520 | * rust-lang.c (rust_print_subexp): Replace "return" with "break". | |
6521 | ||
94bb8dfe YQ |
6522 | 2017-05-09 Yao Qi <yao.qi@linaro.org> |
6523 | ||
6524 | * regcache.c: Include <forward_list>. | |
6525 | (struct regcache_list): Remove. | |
6526 | (current_regcache): Update. | |
6527 | (get_thread_arch_aspace_regcache): Update for std::forward_list. | |
6528 | (regcache_thread_ptid_changed): Likewise. | |
6529 | (registers_changed_ptid): Likewise. | |
6530 | (current_regcache_size): Likewise. | |
6531 | ||
8248946c YQ |
6532 | 2017-05-09 Yao Qi <yao.qi@linaro.org> |
6533 | ||
6534 | * regcache.c [GDB_SELF_TEST]: Include selftest.h. | |
6535 | (current_regcache_size): New function. | |
6536 | (current_regcache_test): New function. | |
6537 | (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test. | |
6538 | ||
313c5961 AH |
6539 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
6540 | ||
6541 | * mips-tdep.c (mips_o32_return_value): Remove unused buffer. | |
6542 | (print_gp_register_row): Use get_frame_register_value. | |
6543 | ||
27bfc1d1 AH |
6544 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
6545 | ||
6546 | * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed. | |
6547 | (mips_supply_fpregset): Likewise. | |
6548 | (mips64_supply_gregset): Likewise. | |
6549 | ||
146e6c5c AH |
6550 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
6551 | ||
6552 | * mn10300-linux-tdep.c (am33_supply_gregset_method): Use | |
6553 | regcache->raw_supply_zeroed. | |
6554 | ||
e50f25ec SDJ |
6555 | 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com> |
6556 | ||
6557 | * configure.nat: Rearrange 'case' statements to match | |
6558 | host before cpu. | |
6559 | ||
21ea5acd SDJ |
6560 | 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com> |
6561 | ||
6562 | * Makefile.in: Remove "@host_makefile_frag@". Add variables | |
6563 | NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS, | |
6564 | NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add | |
6565 | "@nat_extra_makefile_frag@". | |
6566 | (Makefile): Remove dependency on "@frags@". | |
6567 | ($(GNULIB_BUILDDIR)/Makefile): Likewise. | |
6568 | (data-directory/Makefile): Likewise. | |
6569 | * config/aarch64/linux.mh: Deleted; moved contents to | |
6570 | "gdb/configure.nat". | |
6571 | * config/alpha/alpha-linux.mh: Likewise. | |
6572 | * config/alpha/nbsd.mh: Likewise. | |
6573 | * config/arm/linux.mh: Likewise. | |
6574 | * config/arm/nbsdelf.mh: Likewise. | |
6575 | * config/i386/cygwin.mh: Likewise. | |
6576 | * config/i386/cygwin64.mh: Likewise. | |
6577 | * config/i386/darwin.mh: Likewise. | |
6578 | * config/i386/fbsd.mh: Likewise. | |
6579 | * config/i386/fbsd64.mh: Likewise. | |
6580 | * config/i386/go32.mh: Likewise. | |
6581 | * config/i386/i386gnu.mh: Likewise. | |
6582 | * config/i386/i386sol2.mh: Likewise. | |
6583 | * config/i386/linux.mh: Likewise. | |
6584 | * config/i386/linux64.mh: Likewise. | |
6585 | * config/i386/mingw.mh: Likewise. | |
6586 | * config/i386/mingw64.mh: Likewise. | |
6587 | * config/i386/nbsd64.mh: Likewise. | |
6588 | * config/i386/nbsdelf.mh: Likewise. | |
6589 | * config/i386/nto.mh: Likewise. | |
6590 | * config/i386/obsd.mh: Likewise. | |
6591 | * config/i386/obsd64.mh: Likewise. | |
6592 | * config/i386/sol2-64.mh: Likewise. | |
6593 | * config/ia64/linux.mh: Likewise. | |
6594 | * config/m32r/linux.mh: Likewise. | |
6595 | * config/m68k/linux.mh: Likewise. | |
6596 | * config/m68k/nbsdelf.mh: Likewise. | |
6597 | * config/m68k/obsd.mh: Likewise. | |
6598 | * config/m88k/obsd.mh: Likewise. | |
6599 | * config/mips/fbsd.mh: Likewise. | |
6600 | * config/mips/linux.mh: Likewise. | |
6601 | * config/mips/nbsd.mh: Likewise. | |
6602 | * config/mips/obsd64.mh: Likewise. | |
6603 | * config/pa/linux.mh: Likewise. | |
6604 | * config/pa/nbsd.mh: Likewise. | |
6605 | * config/pa/obsd.mh: Likewise. | |
6606 | * config/powerpc/aix.mh: Likewise. | |
6607 | * config/powerpc/fbsd.mh: Likewise. | |
6608 | * config/powerpc/linux.mh: Likewise. | |
6609 | * config/powerpc/nbsd.mh: Likewise. | |
6610 | * config/powerpc/obsd.mh: Likewise. | |
6611 | * config/powerpc/ppc64-linux.mh: Likewise. | |
6612 | * config/powerpc/spu-linux.mh: Likewise. | |
6613 | * config/s390/linux.mh: Likewise. | |
6614 | * config/sh/nbsd.mh: Likewise. | |
6615 | * config/sparc/fbsd.mh: Likewise. | |
6616 | * config/sparc/linux.mh: Likewise. | |
6617 | * config/sparc/linux64.mh: Likewise. | |
6618 | * config/sparc/nbsd64.mh: Likewise. | |
6619 | * config/sparc/nbsdelf.mh: Likewise. | |
6620 | * config/sparc/obsd64.mh: Likewise. | |
6621 | * config/sparc/sol2.mh: Likewise. | |
6622 | * config/tilegx/linux.mh: Likewise. | |
6623 | * config/vax/nbsdelf.mh: Likewise. | |
6624 | * config/vax/obsd.mh: Likewise. | |
6625 | * config/xtensa/linux.mh: Likewise. | |
6626 | * config/i386/i386gnu.mn: New file, with excerpts from | |
6627 | "config/i386/i386gnu.mh". | |
6628 | * configure: Regenerate. | |
6629 | * configure.ac: Rewrite code to use "gdb/configure.nat" instead of | |
6630 | *.mh files under "gdb/config". | |
6631 | * configure.nat: New file, with contents from the | |
6632 | "gdb/config/*/*.mh" files. | |
6633 | ||
7ed1acaf TW |
6634 | 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com> |
6635 | ||
6636 | * btrace.c (btrace_clear): Free insn vector. | |
6637 | ||
e13cb306 PA |
6638 | 2017-05-05 Pedro Alves <palves@redhat.com> |
6639 | ||
6640 | * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized. | |
6641 | * configure: Regenerate. | |
6642 | ||
5ed8105e PA |
6643 | 2017-05-04 Pedro Alves <palves@redhat.com> |
6644 | ||
6645 | * Makefile.in (SFILES): Add progspace-and-thread.c. | |
6646 | (HFILES_NO_SRCDIR): Add progspace-and-thread.h. | |
6647 | (COMMON_OBS): Add progspace-and-thread.o. | |
6648 | * breakpoint.c: Include "progspace-and-thread.h". | |
6649 | (update_inserted_breakpoint_locations) | |
6650 | (insert_breakpoint_locations, create_longjmp_master_breakpoint): | |
6651 | Use scoped_restore_current_pspace_and_thread. | |
6652 | (create_std_terminate_master_breakpoint): Use | |
6653 | scoped_restore_current_program_space. | |
6654 | (remove_breakpoint): Use scoped_restore_current_pspace_and_thread. | |
6655 | (print_breakpoint_location): Use | |
6656 | scoped_restore_current_program_space. | |
6657 | (bp_loc_is_permanent): Use | |
6658 | scoped_restore_current_pspace_and_thread. | |
6659 | (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread. | |
6660 | (download_tracepoint_locations): Use | |
6661 | scoped_restore_current_pspace_and_thread. | |
6662 | (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread. | |
6663 | * exec.c (exec_close_1): Use scoped_restore_current_program_space. | |
6664 | (enum step_over_calls_kind): Moved from inferior.h. | |
6665 | (class scoped_restore_current_thread): New class. | |
6666 | * gdbthread.h (make_cleanup_restore_current_thread): Delete | |
6667 | declaration. | |
6668 | (scoped_restore_current_thread): New class. | |
6669 | * infcmd.c: Include "common/gdb_optional.h". | |
6670 | (continue_1, proceed_after_attach): Use | |
6671 | scoped_restore_current_thread. | |
6672 | (notice_new_inferior): Use scoped_restore_current_thread. | |
6673 | * inferior.c: Include "progspace-and-thread.h". | |
6674 | (restore_inferior, save_current_inferior): Delete. | |
6675 | (add_inferior_command, clone_inferior_command): Use | |
6676 | scoped_restore_current_pspace_and_thread. | |
6677 | * inferior.h (scoped_restore_current_inferior): New class. | |
6678 | * infrun.c: Include "progspace-and-thread.h" and | |
6679 | "common/gdb_optional.h". | |
6680 | (follow_fork_inferior): Use | |
6681 | scoped_restore_current_pspace_and_thread. | |
6682 | (scoped_restore_exited_inferior): New class. | |
6683 | (handle_vfork_child_exec_or_exit): Use | |
6684 | scoped_restore_exited_inferior, | |
6685 | scoped_restore_current_pspace_and_thread, | |
6686 | scoped_restore_current_thread and scoped_restore. | |
6687 | (fetch_inferior_event): Use scoped_restore_current_thread. | |
6688 | * linespec.c (decode_line_full, decode_line_1): Use | |
6689 | scoped_restore_current_program_space. | |
6690 | * mi/mi-main.c: Include "progspace-and-thread.h". | |
6691 | (exec_continue): Use scoped_restore_current_thread. | |
6692 | (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread. | |
6693 | (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread. | |
6694 | * proc-service.c (ps_pglobal_lookup): Use | |
6695 | scoped_restore_current_program_space. | |
6696 | * progspace-and-thread.c: New file. | |
6697 | * progspace-and-thread.h: New file. | |
6698 | * progspace.c (release_program_space, clone_program_space): Use | |
6699 | scoped_restore_current_program_space. | |
6700 | (restore_program_space, save_current_program_space) | |
6701 | (save_current_space_and_thread): Delete. | |
6702 | (switch_to_program_space_and_thread): Moved to | |
6703 | progspace-and-thread.c. | |
6704 | * progspace.h (save_current_program_space) | |
6705 | (save_current_space_and_thread): Delete declarations. | |
6706 | (scoped_restore_current_program_space): New class. | |
6707 | * remote.c (remote_btrace_maybe_reopen): Use | |
6708 | scoped_restore_current_thread. | |
6709 | * symtab.c: Include "progspace-and-thread.h". | |
6710 | (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread. | |
6711 | * thread.c (print_thread_info_1): Use | |
6712 | scoped_restore_current_thread. | |
6713 | (struct current_thread_cleanup): Delete. | |
6714 | (do_restore_current_thread_cleanup) | |
6715 | (restore_current_thread_cleanup_dtor): Rename/convert both to ... | |
6716 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
6717 | ... this new dtor. | |
6718 | (make_cleanup_restore_current_thread): Rename/convert to ... | |
6719 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
6720 | ... this new ctor. | |
6721 | (thread_apply_all_command): Use scoped_restore_current_thread. | |
6722 | (thread_apply_command): Use scoped_restore_current_thread. | |
6723 | * tracepoint.c (tdump_command): Use scoped_restore_current_thread. | |
6724 | * varobj.c (value_of_root_1): Use scoped_restore_current_thread. | |
6725 | ||
f6223dbb PA |
6726 | 2017-05-04 Pedro Alves <palves@redhat.com> |
6727 | ||
6728 | * thread.c (make_cleanup_restore_current_thread): Move | |
6729 | find_thread_ptid call before the is_stopped call. Assert that the | |
6730 | thread is found. Replace is_stopped call by checking the thread's | |
6731 | state directly. Remove unnecessary NULL-thread check. | |
6732 | ||
3c3ae77e PA |
6733 | 2017-05-04 Pedro Alves <palves@redhat.com> |
6734 | ||
6735 | * corelow.c (thread_section_name): New class. | |
6736 | (get_core_register_section, get_core_siginfo): Use it. | |
6737 | ||
45eba0ab AA |
6738 | 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
6739 | ||
6740 | * corelow.c (sniff_core_bfd): Remove extra semicolon. | |
6741 | (get_core_register_section): Remove xfree of NULL pointer. | |
6742 | ||
f81fdd35 AH |
6743 | 2017-05-03 Alan Hayward <alan.hayward@arm.com> |
6744 | ||
6745 | * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed. | |
6746 | * regcache.c (regcache::raw_supply_zeroed): New function. | |
6747 | * regcache.h (regcache::raw_supply_zeroed): New declaration. | |
6748 | ||
35837774 SM |
6749 | 2017-05-03 Simon Marchi <simon.marchi@ericsson.com> |
6750 | ||
6751 | * gdbarch.sh: Remove commented out definition of | |
6752 | TARGET_CHAR_BIT. | |
6753 | * gdbarch.h: Re-generate. | |
6754 | ||
c94fee56 SDJ |
6755 | 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com> |
6756 | ||
6757 | * configure: Regenerate. | |
6758 | ||
d17f7b36 SM |
6759 | 2017-05-02 Simon Marchi <simon.marchi@ericsson.com> |
6760 | ||
6761 | * solib-target.c (solib_target_relocate_section_addresses): | |
6762 | Remove num_section_bases, num_bases, segment_bases variables. | |
6763 | ||
b560ebd6 SM |
6764 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
6765 | ||
6766 | * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove. | |
6767 | ||
f2f46dfc SM |
6768 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
6769 | ||
6770 | * solib-target.c: Include <vector> | |
6771 | (struct lm_info_target) <~lm_info_target>: Remove. | |
6772 | <segment_bases, section_bases>: Change type to | |
6773 | std::vector<CORE_ADDR>. | |
6774 | (library_list_start_segment, library_list_start_section, | |
6775 | library_list_end_library, | |
6776 | solib_target_relocate_section_addresses): Adjust. | |
6777 | ||
a0ff9e1a SM |
6778 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
6779 | ||
6780 | * gdbarch.sh (software_single_step): Change return type to | |
6781 | std::vector<CORE_ADDR>. | |
6782 | * gdbarch.c, gdbarch.h: Re-generate. | |
6783 | * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw): | |
6784 | Adjust. | |
6785 | (arm_deal_with_atomic_sequence_raw): Adjust. | |
6786 | (thumb_get_next_pcs_raw): Adjust. | |
6787 | (arm_get_next_pcs_raw): Adjust. | |
6788 | (arm_get_next_pcs): Adjust. | |
6789 | * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust. | |
6790 | * aarch64-tdep.c (aarch64_software_single_step): Adjust. | |
6791 | * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust. | |
6792 | (alpha_software_single_step): Adjust. | |
6793 | * alpha-tdep.h (alpha_software_single_step): Adjust. | |
6794 | * arm-linux-tdep.c (arm_linux_software_single_step): Adjust. | |
6795 | * arm-tdep.c (arm_software_single_step): Adjust. | |
6796 | (arm_breakpoint_kind_from_current_state): Adjust. | |
6797 | * arm-tdep.h (arm_software_single_step): Adjust. | |
6798 | * breakpoint.c (insert_single_step_breakpoint): Adjust. | |
6799 | * cris-tdep.c (cris_software_single_step): Adjust. | |
6800 | * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust. | |
6801 | (micromips_deal_with_atomic_sequence): Adjust. | |
6802 | (deal_with_atomic_sequence): Adjust. | |
6803 | (mips_software_single_step): Adjust. | |
6804 | * mips-tdep.h (mips_software_single_step): Adjust. | |
6805 | * moxie-tdep.c (moxie_software_single_step): Adjust. | |
6806 | * nios2-tdep.c (nios2_software_single_step): Adjust. | |
6807 | * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust. | |
6808 | * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust. | |
6809 | * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust. | |
6810 | * s390-linux-tdep.c (s390_software_single_step): Adjust. | |
6811 | * sparc-tdep.c (sparc_software_single_step): Adjust. | |
6812 | * spu-tdep.c (spu_software_single_step): Adjust. | |
6813 | * tic6x-tdep.c (tic6x_software_single_step): Adjust. | |
6814 | ||
ea480a30 SM |
6815 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
6816 | ||
6817 | * gdbarch.sh: Use semi-colon as field separator instead of colon. | |
6818 | * gdbarch.h: Re-generate. | |
6819 | ||
d050f7d7 TW |
6820 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
6821 | ||
6822 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o. | |
6823 | (SUBDIR_PYTHON_SRCS): Add py-instruction.c. | |
6824 | * python/py-instruction.c, python/py-instruction.h: New file. | |
6825 | * python/py-record.c: Add py-instruction.h include. | |
6826 | (gdbpy_initialize_record): Make gdb.Instruction a super class of | |
6827 | gdb.RecordInstruction. | |
6828 | * python/python-internal.h: Add gdbpy_initialize_instruction | |
6829 | declaration. | |
6830 | * python/python.c (do_start_initialization): Add | |
6831 | gdbpy_initialize_instruction. | |
6832 | ||
14f819c8 TW |
6833 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
6834 | ||
6835 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type): | |
6836 | Remove. | |
6837 | (btrace_func_from_recpy_func): New function. | |
6838 | (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove. | |
6839 | (btpy_call_level, btpy_call_symbol, btpy_call_instructions, | |
6840 | btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ... | |
6841 | (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions, | |
6842 | recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This. | |
6843 | Also, use new helper functions. | |
6844 | (btpy_list_item): Use new helper functions. | |
6845 | (recpy_bt_function_call_history): Use new type name. | |
6846 | (btpy_call_getset): Remove. | |
6847 | (gdbpy_initialize_btrace): Remove code to initialize | |
6848 | gdb.BtraceFunctionCall. | |
6849 | * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level, | |
6850 | recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up, | |
6851 | recpy_bt_func_prev, recpy_bt_func_next): New export. | |
6852 | * python/py-record.c (recpy_func_type): New static object. | |
6853 | (recpy_func_new, recpy_func_level, recpy_func_symbol, | |
6854 | recpy_func_instructions, recpy_func_up, recpy_func_prev, | |
6855 | recpy_func_next): New function. | |
6856 | (recpy_element_hash, recpy_element_richcompare): Updated comment. | |
6857 | (recpy_func_getset): New static object. | |
6858 | (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction. | |
6859 | * python/py-record.h (recpy_func_type, recpy_func_new): New export. | |
6860 | ||
0ed5da75 TW |
6861 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
6862 | ||
6863 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove. | |
6864 | (btpy_object, btpy_insn_type, btpy_new): Remove. | |
6865 | (btpy_list_object): Use gdb.RecordInstruction type instead of | |
6866 | gdb.BtraceInstruction type. | |
6867 | (btrace_insn_from_recpy_insn): New function. | |
6868 | (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of | |
6869 | btpy_new. | |
6870 | (btpy_call_new, btpy_list_item): Do not use btpy_new anymore. | |
6871 | (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol, | |
6872 | btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling, | |
6873 | btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object | |
6874 | instead of btpy_object. | |
6875 | (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative, | |
6876 | btpy_insn_data, btpy_insn_decode): Rename to ... | |
6877 | (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size, | |
6878 | recpy_bt_insn_is_speculative, recpy_bt_insn_data, | |
6879 | recpy_bt_insn_decode): This. Also, use new helper functions. | |
6880 | (btpy_list_position, recpy_bt_goto): Use recpy_element_object and | |
6881 | recpy_insn_type. | |
6882 | (btpy_insn_getset): Remove. | |
6883 | (gdbpy_initialize_btrace): Remove code to initialize | |
6884 | gdb.BtraceInstruction. Use recpy_element_object. | |
6885 | * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal, | |
6886 | recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded, | |
6887 | recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export. | |
6888 | * python/py-record.c (recpy_insn_type): New static object. | |
6889 | (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data, | |
6890 | recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative, | |
6891 | recpy_element_number, recpy_element_hash, recpy_element_richcompare): | |
6892 | New function. | |
6893 | (recpy_insn_getset): New static object. | |
6894 | (gdbpy_initialize_record): Initialize gdb.RecordInstruction. | |
6895 | * python/py-record.h (recpy_element_object): New typedef. | |
6896 | (recpy_insn_type, recpy_insn_new): New export. | |
6897 | ||
913aeadd TW |
6898 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
6899 | ||
6900 | * py-record-btrace.c (btpy_insn_new): Removed. | |
6901 | (btpy_insn_or_gap_new): New function. | |
6902 | (btpy_insn_error): Removed. | |
6903 | (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative, | |
6904 | btpy_insn_data, btpy_insn_decode): Remove code path for gaps. | |
6905 | (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call | |
6906 | btpy_insn_or_gap_new instead of btpy_insn_new. | |
6907 | (btpy_insn_getset): Remove btpy_insn_error. | |
6908 | * py-record.c (recpy_gap_type): New static object. | |
6909 | (recpy_gap_object): New typedef. | |
6910 | (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code, | |
6911 | recpy_gap_reason_string): New function. | |
6912 | (recpy_gap_getset): New static object. | |
6913 | (gdbpy_initialize_record): Initialize gdb.RecordGap type. | |
6914 | * py-record.h (recpy_gap_new): New export. | |
6915 | ||
a3be24ad TW |
6916 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
6917 | ||
6918 | * python/py-record.c (recpy_ptid): Remove. | |
6919 | (recpy_record_getset): Remove recpy_ptid. | |
6920 | ||
ae20e79a TW |
6921 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
6922 | ||
6923 | * btrace.c (btrace_fetch): Set inferior_ptid. | |
6924 | * python/py-record-btrace.c: Add "py-record.h" include. | |
6925 | (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin, | |
6926 | recpy_bt_end, recpy_bt_instruction_history, | |
6927 | recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored | |
6928 | in gdb.Record object instead of current ptid. | |
6929 | * python/py-record.c: Include new "py-record.h" file. | |
6930 | (recpy_record_object): Moved to py-record.h. | |
6931 | * python/py-record.h: New file. | |
6932 | ||
8d0050ea TW |
6933 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
6934 | ||
6935 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN, | |
6936 | BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix | |
6937 | indentation. | |
6938 | ||
3f380b50 JB |
6939 | 2017-05-01 Joel Brobecker <brobecker@adacore.com> |
6940 | ||
6941 | * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to | |
6942 | the past maintainers section. | |
6943 | ||
07495424 YQ |
6944 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
6945 | ||
6946 | * infcmd.c (get_return_value): Use regcache ctor, and remove | |
6947 | cleanup. | |
6948 | ||
deb1fa3e YQ |
6949 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
6950 | Pedro Alves <palves@redhat.com> | |
6951 | ||
6952 | * regcache.c (regcache::regcache): New tag dispatch ctor. | |
6953 | (do_cooked_read): Moved above. | |
6954 | (regcache_dup): Use the tag dispatch ctor.. | |
6955 | * regcache.h (regcache): Declare ctor, delete copy ctor and | |
6956 | assignment operator, remove friend regcache_dup. | |
6957 | ||
b421c83c YQ |
6958 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
6959 | ||
6960 | * regcache.c (regcache_dup): Assert !src->m_readonly_p and | |
6961 | call method save instead of regcache_cpy. | |
6962 | * regcache.h (struct regcache): Make regcache_dup a friend. | |
6963 | ||
ef79d9a3 YQ |
6964 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
6965 | ||
6966 | * regcache.c (struct regcache): Move to regcache.h | |
6967 | (regcache::arch): New method. | |
6968 | (regcache_get_ptid): Update. | |
6969 | (get_regcache_arch): Call arch method. | |
6970 | (get_regcache_aspace): Call method aspace. | |
6971 | (register_buffer): Change it to method. | |
6972 | (regcache_save): Change it to regcache::save. | |
6973 | (regcache_restore): Likewise. | |
6974 | (regcache_cpy_no_passthrough): Remove the declaration. | |
6975 | (regcache_cpy): Call methods restore and cpy_no_passthrough. | |
6976 | (regcache_cpy_no_passthrough): Change it to method | |
6977 | cpy_no_passthrough. | |
6978 | (regcache_register_status): Change it to method | |
6979 | get_register_status. | |
6980 | (regcache_invalidate): Change it to method invalidate. | |
6981 | (regcache_thread_ptid_changed): Use methods ptid and set_ptid. | |
6982 | (regcache_raw_update): Change it to method raw_update. | |
6983 | (regcache_raw_read): Likewise. | |
6984 | (regcache_raw_read_signed): Likewise. | |
6985 | (regcache_raw_read_unsigned): Likewise. | |
6986 | (regcache_raw_write_signed): Likewise. | |
6987 | (regcache_raw_write_unsigned): Likewise. | |
6988 | (regcache_cooked_read): Likewise. | |
6989 | (regcache_cooked_read_value): Likewise. | |
6990 | (regcache_cooked_read_signed): Likewise. | |
6991 | (regcache_cooked_read_unsigned): Likewise. | |
6992 | (regcache_cooked_write_signed): Likewise. | |
6993 | (regcache_cooked_write_unsigned): Likewise. | |
6994 | (regcache_raw_set_cached_value): Likewise. | |
6995 | (regcache_raw_write): Likewise. | |
6996 | (regcache_cooked_write): Likewise. | |
6997 | (regcache_xfer_part): Likewise. | |
6998 | (regcache_raw_read_part): Likewise. | |
6999 | (regcache_raw_write_part): Likewise. | |
7000 | (regcache_cooked_read_part): Likewise. | |
7001 | (regcache_cooked_write_part): Likewise. | |
7002 | (regcache_raw_supply): Likewise. | |
7003 | (regcache_raw_collect): Likewise. | |
7004 | (regcache_transfer_regset): Likewise. | |
7005 | (regcache_supply_regset): Likewise. | |
7006 | (regcache_collect_regset): Likewise. | |
7007 | (regcache_debug_print_register): Likewise. | |
7008 | (enum regcache_dump_what): Move it to regcache.h. | |
7009 | (regcache_dump): Change it to method dump. | |
7010 | * regcache.h (enum regcache_dump_what): New. | |
7011 | (class regcache): New. | |
7012 | * target.c (target_fetch_registers): Call method | |
7013 | debug_print_register. | |
7014 | (target_store_registers): Likewise. | |
7015 | ||
f8fdb78e SM |
7016 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
7017 | ||
7018 | * windows-nat.c (struct lm_info_windows): Initialize field. | |
7019 | (windows_make_so): Allocate lm_info_windows with new. | |
7020 | (windows_free_so): Free lm_info_windows with delete. | |
7021 | ||
9ccbfd7b SM |
7022 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
7023 | ||
7024 | * solib-darwin.c (struct lm_info_darwin): Initialize field. | |
7025 | (darwin_current_sos): Allocate lm_info_darwin with new, remove | |
7026 | cleanup. | |
7027 | (darwin_free_so): Free lm_info_darwin with delete. | |
7028 | ||
76e75227 SM |
7029 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
7030 | ||
7031 | * solib-svr4.h (struct lm_info_svr4): Initialize fields. | |
7032 | <l_addr_p>: Change type to bool. | |
7033 | * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new. | |
7034 | (svr4_free_so): Free lm_info_svr4 with delete. | |
7035 | (svr4_copy_library_list): Replace memcpy with call to copy | |
7036 | constructor. | |
7037 | (library_list_start_library, svr4_default_sos): Allocate | |
7038 | lm_info_svr4 with new. | |
7039 | ||
51046d9e SM |
7040 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
7041 | ||
7042 | * solib-target.c (struct lm_info_target): Add destructor, | |
7043 | initialize fields. | |
7044 | <name>: Change type to std::string. | |
7045 | (library_list_start_library): Allocate lm_info_target with new. | |
7046 | (solib_target_free_library_list): Free lm_info_target with | |
7047 | delete. | |
7048 | (solib_target_current_sos): Adapt to std::string. | |
7049 | (solib_target_free_so): Free lm_info_target with delete. | |
7050 | ||
4023ae76 SM |
7051 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
7052 | ||
7053 | * solib-frv.c (struct lm_info_frv): Add destructor, initialize | |
7054 | fields. | |
7055 | (frv_current_sos): Allocate lm_info_frv with new. | |
7056 | (frv_relocate_main_executable): Free lm_info_frv with delete, | |
7057 | allocate with new. | |
7058 | (frv_clear_solib, frv_free_so): Free lm_info_frv with delete. | |
7059 | ||
af43057b SM |
7060 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
7061 | ||
7062 | * solib-frv.c (struct lm_info_frv): Fix indentation. | |
7063 | ||
b0911207 SM |
7064 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
7065 | ||
7066 | * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize | |
7067 | map field. | |
7068 | (dsbt_current_sos): Allocate lm_info_dsbt with new. | |
7069 | (dsbt_relocate_main_executable): Free lm_info_dsbt with delete | |
7070 | and allocate with new. | |
7071 | (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete. | |
7072 | ||
6c401f72 SM |
7073 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
7074 | ||
7075 | * solib-aix.c (struct lm_info_aix): Initialize fields in-class. | |
7076 | <filename, member_name>: Change type to std::string. | |
7077 | (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove. | |
7078 | (library_list_start_library): Allocate lm_info_aix with new. | |
7079 | (solib_aix_free_library_list, solib_aix_free_so): Free with delete. | |
7080 | (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix | |
7081 | with copy constructor. | |
7082 | ||
d0e449a1 SM |
7083 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
7084 | ||
7085 | * solist.h (struct lm_info): Remove. | |
7086 | (struct lm_info_base): New class. | |
7087 | (struct so_list) <lm_info>: Change type to lm_info_base *. | |
7088 | * nto-tdep.c (struct lm_info): Remove. | |
7089 | (lm_addr): Adjust. | |
7090 | * solib-aix.c (struct lm_info): Rename to ... | |
7091 | (struct lm_info_aix): ... this. Extend lm_info_base. | |
7092 | (lm_info_p): Rename to ... | |
7093 | (lm_info_aix_p): ... this, and adjust. | |
7094 | (solib_aix_new_lm_info, solib_aix_xfree_lm_info, | |
7095 | solib_aix_parse_libraries, library_list_start_library, | |
7096 | solib_aix_free_library_list, solib_aix_parse_libraries, | |
7097 | solib_aix_get_library_list, | |
7098 | solib_aix_relocate_section_addresses, solib_aix_free_so, | |
7099 | solib_aix_get_section_offsets, | |
7100 | solib_aix_solib_create_inferior_hook, solib_aix_current_sos): | |
7101 | Adjust. | |
7102 | (struct solib_aix_inferior_data) <library_list>: Adjust. | |
7103 | * solib-darwin.c (struct lm_info): Rename to ... | |
7104 | (struct lm_info_darwin): ... this. Extend lm_info_base. | |
7105 | (darwin_current_sos, darwin_relocate_section_addresses): Adjust. | |
7106 | * solib-dsbt.c (struct lm_info): Rename to ... | |
7107 | (struct lm_info_dsbt): ... this. Extend lm_info_base. | |
7108 | (struct dsbt_info) <main_executable_lm_info): Adjust. | |
7109 | (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so, | |
7110 | dsbt_relocate_section_addresses): Adjust. | |
7111 | * solib-frv.c (struct lm_info): Rename to ... | |
7112 | (struct lm_info_frv): ... this. Extend lm_info_base. | |
7113 | (main_executable_lm_info): Adjust. | |
7114 | (frv_current_sos, frv_relocate_main_executable, frv_free_so, | |
7115 | frv_relocate_section_addresses, frv_fdpic_find_global_pointer, | |
7116 | find_canonical_descriptor_in_load_object, | |
7117 | frv_fdpic_find_canonical_descriptor): Adjust. | |
7118 | * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed | |
7119 | to lm_info_svr4. | |
7120 | (lm_info_read, lm_addr_check, svr4_keep_data_in_core, | |
7121 | svr4_clear_so, svr4_copy_library_list, | |
7122 | library_list_start_library, svr4_default_sos, svr4_read_so_list, | |
7123 | svr4_current_sos, svr4_fetch_objfile_link_map, | |
7124 | solist_update_incremental): Adjust. | |
7125 | * solib-svr4.h (struct lm_info_svr4): Move here from | |
7126 | solib-svr4.c. | |
7127 | * solib-target.c (struct lm_info): Rename to ... | |
7128 | (struct lm_info_target): ... this. Extend lm_info_base. | |
7129 | (lm_info_p): Rename to ... | |
7130 | (lm_info_target_p): ... this. | |
7131 | (solib_target_parse_libraries, library_list_start_segment, | |
7132 | library_list_start_section, library_list_start_library, | |
7133 | library_list_end_library, solib_target_free_library_list, | |
7134 | solib_target_current_sos, solib_target_free_so, | |
7135 | solib_target_relocate_section_addresses): Adjust. | |
7136 | * windows-nat.c (struct lm_info): Rename to ... | |
7137 | (struct lm_info_windows): ... this. Extend lm_info_base. | |
7138 | (windows_make_so, handle_load_dll, handle_unload_dll, | |
7139 | windows_xfer_shared_libraries): Adjust. | |
7140 | ||
434a4023 SM |
7141 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
7142 | ||
7143 | * solib-darwin.c (struct darwin_so_list): Remove. | |
7144 | (darwin_current_sos): Allocate an so_list object instead of a | |
7145 | darwin_so_list, separately allocate an lm_info object. | |
7146 | (darwin_free_so): Free lm_info. | |
7147 | ||
428544e8 JB |
7148 | 2017-04-28 John Baldwin <jhb@FreeBSD.org> |
7149 | ||
7150 | * mips-tdep.c (print_gp_register_row): Replace printf_filtered | |
7151 | with fprintf_filtered. | |
7152 | ||
4621115f YQ |
7153 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
7154 | ||
7155 | * regcache.c (regcache::regcache): New function. | |
7156 | (regcache::~regcache): New function. | |
7157 | (regcache_xmalloc_1): Remove. | |
7158 | (regcache_xmalloc): Call new regcache. | |
7159 | (regcache_xfree): Call delete regcache. | |
7160 | (get_thread_arch_aspace_regcache): Call new regcache. | |
7161 | ||
339053c2 YQ |
7162 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
7163 | ||
7164 | * mips-linux-nat.c (mips_linux_new_thread): Use ptid method | |
7165 | lwp instead of ptid_get_lwp. | |
7166 | ||
7974a605 YQ |
7167 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
7168 | ||
7169 | * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from | |
7170 | lwp_info instead of getting from inferior_ptid. | |
7171 | ||
e15c3eb4 KS |
7172 | 2017-04-27 Keith Seitz <keiths@redhat.com> |
7173 | ||
7174 | * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS) | |
7175 | DIFFERENT_REFERENCE_TYPE_BADNESS): Remove. | |
7176 | (CV_CONVERSION_BADNESS): Define. | |
7177 | (rank_one_type): Remove overly restrictive rvalue reference | |
7178 | rank checks. | |
7179 | Add cv-qualifier checks and subranks for type equality. | |
7180 | * gdbtypes.h (REFERENCE_CONVERSION_RVALUE, | |
7181 | REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS, | |
7182 | CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare. | |
7183 | ||
72bc1d24 SM |
7184 | 2017-04-27 Simon Marchi <simon.marchi@ericsson.com> |
7185 | ||
7186 | * python/py-inferior.c (inferior_to_inferior_object): Increment reference | |
7187 | count when creating the object. | |
7188 | ||
55bcecda UW |
7189 | 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com> |
7190 | Ulrich Weigand <uweigand@de.ibm.com> | |
7191 | ||
7192 | * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary | |
7193 | entry if xlc -qfuncsect or gcc -ffunction-sections compiler option | |
7194 | is used in AIX. | |
7195 | (read_xcoff_symtab): Handle C_WEAKEXT storage class. | |
7196 | (process_xcoff_symbol): Likewise. | |
7197 | (scan_xcoff_symtab): Likewise. | |
7198 | ||
5c99fcf8 AH |
7199 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
7200 | ||
7201 | * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned. | |
7202 | (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer. | |
7203 | (ia64_access_reg): Use get_frame_register_unsigned. | |
7204 | (ia64_access_rse_reg): Likewise. | |
7205 | (ia64_libunwind_frame_prev_register): Likewise. | |
7206 | ||
b41c5a85 JW |
7207 | 2017-04-26 Jiong Wang <jiong.wang@arm.com> |
7208 | ||
7209 | * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op. | |
7210 | * gdbarch.c: Regenerated. | |
7211 | * gdbarch.h: Regenerated. | |
7212 | * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the | |
7213 | visibility external. | |
7214 | (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI | |
7215 | between DW_CFA_lo_user and DW_CFA_high_user inclusive. | |
7216 | (enum cfa_how_kind): Move to ... | |
7217 | (struct dwarf2_frame_state_reg_info): Likewise. | |
7218 | (struct dwarf2_frame_state): Likewise. | |
7219 | * dwarf2-frame.h: ... here. | |
7220 | (dwarf2_frame_state_alloc_regs): New declaration. | |
7221 | * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function. | |
7222 | (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook. | |
7223 | ||
c185f580 AH |
7224 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
7225 | ||
7226 | * xtensa-tdep.c (xtensa_pseudo_register_read): Use | |
7227 | regcache_raw_read_unsigned. | |
7228 | (xtensa_pseudo_register_write): Likewise. | |
7229 | ||
19c45594 AH |
7230 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
7231 | ||
7232 | * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors. | |
7233 | (nds32_pseudo_register_write): Likewise. | |
7234 | ||
4658f12e YQ |
7235 | 2017-04-25 Yao Qi <yao.qi@linaro.org> |
7236 | ||
7237 | * regcache.c (struct regcache) <readonly_p>: Change its type | |
7238 | to bool. | |
7239 | (regcache_xmalloc_1): Update parameter type and callers update. | |
7240 | ||
d581dda8 YQ |
7241 | 2017-04-25 Yao Qi <yao.qi@linaro.org> |
7242 | ||
7243 | * aarch64-tdep.c (aarch64_gdbarch_init): Don't call | |
7244 | set_gdbarch_wchar_bit. | |
7245 | * arm-tdep.c (arm_gdbarch_init): Likewise. | |
7246 | ||
debed3db PA |
7247 | 2017-04-25 Pedro Alves <palves@redhat.com> |
7248 | ||
7249 | * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable) | |
7250 | (BothAreRelocatable, memcopy, memmove): Don't define. | |
7251 | * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New | |
7252 | macros. | |
7253 | ||
b0b92aeb PA |
7254 | 2017-04-25 Pedro Alves <palves@redhat.com> |
7255 | ||
7256 | * common/common-defs.h: Include "common/poison.h". | |
7257 | * common/function-view.h: (Not, Or, Requires): Move to traits.h | |
7258 | and adjust. | |
7259 | * common/poison.h: New file. | |
7260 | * common/traits.h: Include <type_traits>. | |
7261 | (Not, Or, Requires): New, moved from common/function-view.h. | |
7262 | ||
16c4d54a PA |
7263 | 2017-04-25 Pedro Alves <palves@redhat.com> |
7264 | ||
7265 | * breakpoint.h (struct breakpoint): In-class initialize all | |
7266 | fields. Make boolean fields "bool". | |
7267 | * breakpoint.c (init_raw_breakpoint_without_location): Remove | |
7268 | memset call and initializations no longer necessary. | |
7269 | ||
b5c36682 PA |
7270 | 2017-04-25 Pedro Alves <palves@redhat.com> |
7271 | ||
7272 | * btrace.c (pt_btrace_insn_flags): Change parameter type to | |
7273 | reference. | |
7274 | (pt_btrace_insn): New function. | |
7275 | (ftrace_add_pt): Remove memset call and use pt_btrace_insn. | |
7276 | ||
5625a286 PA |
7277 | 2017-04-25 Pedro Alves <palves@redhat.com> |
7278 | ||
7279 | * ada-lang.c (ada_catchpoint_location): Now a "class". Remove | |
7280 | "base" field and inherit from "bp_location" instead. Add | |
7281 | non-default ctor. | |
7282 | (allocate_location_exception): Use new non-default ctor. | |
7283 | * breakpoint.c (get_first_locp_gte_addr): Remove memset call. | |
7284 | (init_bp_location): Convert to ... | |
7285 | (bp_location::bp_location): ... this new ctor, and remove memset | |
7286 | call. | |
7287 | (base_breakpoint_allocate_location): Use the new non-default ctor. | |
7288 | * breakpoint.h (bp_location): Now a class. Declare default and | |
7289 | non-default ctors. In-class initialize all members. | |
7290 | (init_bp_location): Remove declaration. | |
7291 | ||
23bcc18f PA |
7292 | 2017-04-25 Pedro Alves <palves@redhat.com> |
7293 | ||
7294 | * common/enum-flags.h (enum_flags): Don't implement copy ctor and | |
7295 | assignment operator. | |
7296 | ||
e1ba3053 YQ |
7297 | 2017-04-24 Yao Qi <yao.qi@linaro.org> |
7298 | ||
7299 | * doublest.c (convert_doublest_to_floatformat): Call | |
7300 | floatformat_totalsize_bytes. | |
7301 | ||
10f489e5 TT |
7302 | 2017-04-22 Tom Tromey <tom@tromey.com> |
7303 | ||
7304 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use | |
7305 | ui_out_emit_list. | |
7306 | * stack.c (print_frame): Use ui_out_emit_list. | |
7307 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use | |
7308 | ui_out_emit_list. | |
7309 | * mi/mi-main.c (print_one_inferior) | |
7310 | (mi_cmd_data_list_register_names) | |
7311 | (mi_cmd_data_list_register_values, mi_cmd_list_features) | |
7312 | (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use | |
7313 | ui_out_emit_list. | |
7314 | * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list. | |
7315 | (mi_output_solib_attribs): Use ui_out_emit_list, | |
7316 | ui_out_emit_tuple. | |
7317 | * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list. | |
7318 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames) | |
7319 | (mi_cmd_stack_list_args, list_args_or_locals): Use | |
7320 | ui_out_emit_list. | |
7321 | * disasm.c (do_assembly_only): Use ui_out_emit_list. | |
7322 | * breakpoint.c (print_solib_event, output_thread_groups): Use | |
7323 | ui_out_emit_list. | |
7324 | ||
0092b74d TT |
7325 | 2017-04-22 Tom Tromey <tom@tromey.com> |
7326 | ||
7327 | * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple. | |
7328 | * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple. | |
7329 | * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple. | |
7330 | ||
a14a62dd TT |
7331 | 2017-04-22 Tom Tromey <tom@tromey.com> |
7332 | ||
7333 | * tracepoint.c (tvariables_info_1) | |
7334 | (print_one_static_tracepoint_marker): Use ui_out_emit_tuple. | |
7335 | ||
46b9c129 TT |
7336 | 2017-04-22 Tom Tromey <tom@tromey.com> |
7337 | ||
7338 | * stack.c (print_frame_arg): Use ui_out_emit_tuple, | |
7339 | annotate_arg_emitter. | |
7340 | * breakpoint.c (print_mention_watchpoint) | |
7341 | (print_mention_masked_watchpoint): Use ui_out_emit_tuple. | |
7342 | * annotate.h (struct annotate_arg_emitter): New. | |
7343 | ||
2e783024 TT |
7344 | 2017-04-22 Tom Tromey <tom@tromey.com> |
7345 | ||
7346 | * record-btrace.c (record_btrace_insn_history) | |
7347 | (record_btrace_insn_history_range, record_btrace_call_history) | |
7348 | (record_btrace_call_history_range): Use ui_out_emit_tuple. | |
7349 | * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use | |
7350 | ui_out_emit_tuple. | |
7351 | * stack.c (print_frame_info): Use ui_out_emit_tuple. | |
7352 | * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple. | |
7353 | * skip.c (skip_info): Use ui_out_emit_tuple. | |
7354 | * remote.c (show_remote_cmd): Use ui_out_emit_tuple. | |
7355 | * progspace.c (print_program_space): Use ui_out_emit_tuple. | |
7356 | * probe.c (info_probes_for_ops): Use ui_out_emit_tuple. | |
7357 | * osdata.c (info_osdata): Use ui_out_emit_tuple. | |
7358 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use | |
7359 | ui_out_emit_tuple. | |
7360 | * mi/mi-main.c (print_one_inferior, list_available_thread_groups) | |
7361 | (output_register, mi_cmd_data_read_memory) | |
7362 | (mi_cmd_data_read_memory_bytes, mi_load_progress) | |
7363 | (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple. | |
7364 | * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one): | |
7365 | Use ui_out_emit_tuple. | |
7366 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use | |
7367 | ui_out_emit_tuple. | |
7368 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions) | |
7369 | (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple. | |
7370 | * linux-thread-db.c (info_auto_load_libthread_db): Use | |
7371 | ui_out_emit_tuple. | |
7372 | * inferior.c (print_inferior): Use ui_out_emit_tuple. | |
7373 | * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple. | |
7374 | * disasm.c (do_mixed_source_and_assembly_deprecated) | |
7375 | (do_mixed_source_and_assembly): Use ui_out_emit_tuple. | |
7376 | * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple. | |
7377 | * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple. | |
7378 | * breakpoint.c (print_one_breakpoint_location) | |
7379 | (print_one_breakpoint): Use ui_out_emit_tuple. | |
7380 | * auto-load.c (print_script, info_auto_load_cmd): Use | |
7381 | ui_out_emit_tuple. | |
7382 | * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple. | |
7383 | ||
9be21bb4 SM |
7384 | 2017-04-21 Simon Marchi <simon.marchi@ericsson.com> |
7385 | ||
7386 | * thread.c (print_thread_info_1): Remove dead code. | |
7387 | ||
0d4c07af JK |
7388 | 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
7389 | ||
7390 | * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if | |
7391 | GDB_SELF_TEST. | |
7392 | * arm-tdep.c (selftests::arm_record_test): Likewise. | |
7393 | ||
4daf993d YQ |
7394 | 2017-04-21 Yao Qi <yao.qi@linaro.org> |
7395 | ||
7396 | * regcache.c (regcache_restore): Remove argument 2. Replace | |
7397 | argument 3 with regcache. Get register status from | |
7398 | src->register_status and get register contents from | |
7399 | register_buffer (src, regnum). | |
7400 | (regcache_cpy): Update. | |
7401 | ||
a6c21d4a PA |
7402 | 2017-04-19 Pedro Alves <palves@redhat.com> |
7403 | ||
7404 | * gdbthread.h (thread): Add missing closing parenthesis in | |
7405 | comment. | |
7406 | ||
3a3fd0fd PA |
7407 | 2017-04-19 Pedro Alves <palves@redhat.com> |
7408 | ||
7409 | * common/refcounted-object.h: New file. | |
7410 | * gdbthread.h: Include "common/refcounted-object.h". | |
7411 | (thread_info): Inherit from refcounted_object and add comments. | |
7412 | (thread_info::incref, thread_info::decref) | |
7413 | (thread_info::m_refcount): Delete. | |
7414 | (thread_info::deletable): Use the refcounted_object::refcount() | |
7415 | method. | |
7416 | * inferior.c (current_inferior_): Add comment. | |
7417 | (set_current_inferior): Increment/decrement refcounts. | |
7418 | (prune_inferiors, remove_inferior_command): Skip inferiors marked | |
7419 | not-deletable instead of comparing with the current inferior. | |
7420 | (initialize_inferiors): Increment the initial inferior's refcount. | |
7421 | * inferior.h (struct inferior): Forward declare. | |
7422 | Include "common/refcounted-object.h". | |
7423 | (current_inferior, set_current_inferior): Move declaration to | |
7424 | before struct inferior's definition, and fix comment. | |
7425 | (inferior): Inherit from refcounted_object. Add comments. | |
7426 | * thread.c (switch_to_thread_no_regs): Reference the thread's | |
7427 | inferior pointer directly instead of doing a ptid lookup. | |
7428 | (switch_to_no_thread): New function. | |
7429 | (switch_to_thread(thread_info *)): New function, factored out | |
7430 | from ... | |
7431 | (switch_to_thread(ptid_t)): ... this. | |
7432 | (restore_current_thread): Delete. | |
7433 | (current_thread_cleanup): Remove 'inf_id' and 'was_removable' | |
7434 | fields, and add 'inf' field. | |
7435 | (do_restore_current_thread_cleanup): Check whether old->inf is | |
7436 | alive instead of looking up an inferior by ptid. Use | |
7437 | switch_to_thread and switch_to_no_thread. | |
7438 | (restore_current_thread_cleanup_dtor): Use old->inf directly | |
7439 | instead of lookup up an inferior by id. Decref the inferior. | |
7440 | Don't restore 'removable'. | |
7441 | (make_cleanup_restore_current_thread): Same the inferior pointer | |
7442 | in old, instead of the inferior number. Incref the inferior. | |
7443 | Don't save/clear 'removable'. | |
7444 | ||
9bcb1f16 PA |
7445 | 2017-04-19 Pedro Alves <palves@redhat.com> |
7446 | ||
7447 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
7448 | unittests/scoped_restore-selftests.c. | |
7449 | (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o. | |
7450 | * common/scoped_restore.h (scoped_restore_base): Make "class". | |
7451 | (scoped_restore_base::release): New public method. | |
7452 | (scoped_restore_base::scoped_restore_base): New protected ctor. | |
7453 | (scoped_restore_base::m_saved_var): New protected field. | |
7454 | (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the | |
7455 | scoped_restore_base base class instead of m_saved_var directly. | |
7456 | (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise. | |
7457 | (scoped_restore_tmpl::scoped_restore_tmpl(const | |
7458 | scoped_restore_tmpl<T>&)): Likewise. | |
7459 | (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var | |
7460 | method. | |
7461 | (scoped_restore_tmpl::saved_var): New method. | |
7462 | (scoped_restore_tmpl::m_saved_var): Delete. | |
7463 | * inferior.h (inferior::detaching): Now a bool. | |
7464 | * infrun.c (prepare_for_detach): Use a scoped_restore instead of a | |
7465 | cleanup. | |
7466 | * unittests/scoped_restore-selftests.c: New file. | |
7467 | ||
26fcd539 PA |
7468 | 2017-04-19 Pedro Alves <palves@redhat.com> |
7469 | ||
7470 | * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): | |
7471 | Re-sort in alphabetic order. | |
7472 | ||
fdd243b0 PA |
7473 | 2017-04-18 Pedro Alves <palves@redhat.com> |
7474 | ||
7475 | * xml-support.c (obstack_xml_printf): Delete. | |
7476 | * xml-support.h (obstack_xml_printf): Delete. | |
7477 | ||
4895cde2 PA |
7478 | 2017-04-18 Pedro Alves <palves@redhat.com> |
7479 | ||
7480 | * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse, | |
7481 | vdebug, verror, body_text, start_element, end_element, name, | |
7482 | user_data, set_is_xinclude, set_error, expat_parser>: New methods. | |
7483 | <name, user_data, expat_parser, scopes, error, last_line, dtd_name, | |
7484 | is_xinclude>: Make private and add m_ prefix. | |
7485 | (gdb_xml_parser::body_text): New method, based on ... | |
7486 | (gdb_xml_body_text): ... this. Adjust. | |
7487 | (gdb_xml_parser::vdebug): New method, based on ... | |
7488 | (gdb_xml_debug): ... this. Adjust. | |
7489 | (gdb_xml_parser::verror): New method, based on ... | |
7490 | (gdb_xml_error): ... this. Adjust. | |
7491 | (gdb_xml_parser::start_element): New method, based on ... | |
7492 | (gdb_xml_start_element): ... this. Adjust. | |
7493 | (gdb_xml_start_element_wrapper): Defer to | |
7494 | gdb_xml_parser::start_element and gdb_xml_parser::set_error. | |
7495 | (gdb_xml_parser::end_element): New method, based on ... | |
7496 | (gdb_xml_end_element_wrapper): ... this. Adjust. | |
7497 | (gdb_xml_parser::~gdb_xml_parser): Adjust. | |
7498 | (gdb_xml_parser::gdb_xml_parser): Adjust to field renames. | |
7499 | (gdb_xml_parser::use_dtd): New method, based on ... | |
7500 | (gdb_xml_use_dtd): ... this. Adjust. | |
7501 | (gdb_xml_parser::parse): New method, based on ... | |
7502 | (gdb_xml_parse): ... this. Adjust. | |
7503 | (gdb_xml_parse_quick): Adjust to call the parser's parse method. | |
7504 | (xinclude_start_include): Adjust to call the parser's name method. | |
7505 | (xml_xinclude_default, xml_xinclude_start_doctype) | |
7506 | (xml_xinclude_end_doctype): Adjust to call the parser's user_data | |
7507 | method. | |
7508 | (xml_process_xincludes): Adjust to call parser methods. | |
7509 | * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete | |
7510 | declarations. | |
7511 | ||
bd8a901f PA |
7512 | 2017-04-18 Pedro Alves <palves@redhat.com> |
7513 | ||
7514 | * tracefile-tfile.c (tfile_write_tdesc): Adjust to use | |
7515 | gdb::optional<std::string>. | |
7516 | * xml-support.c: Include <string>. | |
7517 | (scope_level::scope_level(scope_level &&)) | |
7518 | (scope_level::~scope_level): Delete. | |
7519 | (scope_level::body): Now a std::string. | |
7520 | (gdb_xml_body_text, gdb_xml_end_element): Adjust. | |
7521 | (xinclude_parsing_data::xinclude_parsing_data): Add 'output' | |
7522 | parameter. | |
7523 | (xinclude_parsing_data::~xinclude_parsing_data): Delete. | |
7524 | (xinclude_parsing_data::output): Now a std::string reference. | |
7525 | (xinclude_start_include): Adjust. | |
7526 | (xml_xinclude_default): Adjust. | |
7527 | (xml_process_xincludes): Add 'output' parameter, and return bool. | |
7528 | * xml-support.h (xml_process_xincludes): Add 'output' parameter, | |
7529 | and return bool. | |
7530 | * xml-tdesc.c: Include <unordered_map> and <string>. | |
7531 | (tdesc_xml_cache): Delete. | |
7532 | (tdesc_xml_cache_s): Delete. | |
7533 | (xml_cache): Now an std::unordered_map. | |
7534 | (tdesc_parse_xml): Adjust to use std::string and unordered_map. | |
7535 | (target_fetch_description_xml): Change return type to | |
7536 | gdb::optional<std::string>, and adjust. | |
7537 | * xml-tdesc.h: Include "common/gdb_optional.h" and <string>. | |
7538 | (target_fetch_description_xml): Change return type to | |
7539 | gdb::optional<std::string>. | |
7540 | ||
d35d1958 PA |
7541 | 2017-04-18 Pedro Alves <palves@redhat.com> |
7542 | ||
7543 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
7544 | unittests/optional-selftests.c. | |
7545 | (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o. | |
7546 | * unittests/optional-selftests.c: New file. | |
7547 | * unittests/optional/assignment/1.cc: New file. | |
7548 | * unittests/optional/assignment/2.cc: New file. | |
7549 | * unittests/optional/assignment/3.cc: New file. | |
7550 | * unittests/optional/assignment/4.cc: New file. | |
7551 | * unittests/optional/assignment/5.cc: New file. | |
7552 | * unittests/optional/assignment/6.cc: New file. | |
7553 | * unittests/optional/assignment/7.cc: New file. | |
7554 | * unittests/optional/cons/copy.cc: New file. | |
7555 | * unittests/optional/cons/default.cc: New file. | |
7556 | * unittests/optional/cons/move.cc: New file. | |
7557 | * unittests/optional/cons/value.cc: New file. | |
7558 | * unittests/optional/in_place.cc: New file. | |
7559 | * unittests/optional/observers/1.cc: New file. | |
7560 | * unittests/optional/observers/2.cc: New file. | |
7561 | ||
22796e97 PA |
7562 | 2017-04-18 Pedro Alves <palves@redhat.com> |
7563 | ||
7564 | * common/gdb_optional.h: Include common/traits.h. | |
7565 | (in_place_t): New type. | |
7566 | (in_place): New constexpr variable. | |
7567 | (optional::optional): Remove member initialization of | |
7568 | m_instantiated. | |
7569 | (optional::optional(in_place_t...)): New constructor. | |
7570 | (optional::~optional): Use reset. | |
7571 | (optional::optional(const optional&)): New. | |
7572 | (optional::optional(const optional&&)): New. | |
7573 | (optional::optional(T &)): New. | |
7574 | (optional::optional(T &&)): New. | |
7575 | (operator::operator=(const optional &)): New. | |
7576 | (operator::operator=(optional &&)): New. | |
7577 | (operator::operator= (const T &)) | |
7578 | (operator::operator= (T &&)) | |
7579 | (operator::emplace (Args &&... args)): Return a T&. Use reset. | |
7580 | (operator::reset): New. | |
7581 | (operator::m_instantiated):: Add in-class initializer. | |
7582 | * common/traits.h: Include <type_traits>. | |
7583 | (struct And): New types. | |
7584 | ||
a7fc9b61 PA |
7585 | 2017-04-18 Pedro Alves <palves@redhat.com> |
7586 | ||
7587 | * xml-support.c: Include <vector>. | |
7588 | (scope_level::scope_level(const gdb_xml_element *)) | |
7589 | (scope_level::scope_level(scope_level&&)): New. | |
7590 | (scope_level::~scope_level): New. | |
7591 | (scope_level_s): Delete. | |
7592 | (gdb_xml_parser::scopes): Now a std::vector. | |
7593 | (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element): | |
7594 | Use std::vector. | |
7595 | (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary | |
7596 | scope cleanup code. | |
7597 | (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization | |
7598 | of the scopes member. Use std::vector::emplace_back. | |
7599 | ||
010151c9 PA |
7600 | 2017-04-18 Pedro Alves <palves@redhat.com> |
7601 | ||
7602 | * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude | |
7603 | a bool. | |
7604 | (gdb_xml_end_element): Change type of first parameter. | |
7605 | (gdb_xml_cleanup): Rename to ... | |
7606 | (gdb_xml_parser::~gdb_xml_parser): ... this. | |
7607 | (gdb_xml_create_parser_and_cleanup): Delete with ... | |
7608 | (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out | |
7609 | to this new ctor. | |
7610 | (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of | |
7611 | using gdb_xml_create_parser_and_cleanup. | |
7612 | (xinclude_parsing_data): Add ctor/dtor. | |
7613 | (xml_xinclude_cleanup): Delete. | |
7614 | (xml_process_xincludes): Create a local xinclude_parsing_data | |
7615 | instead of heap-allocating one. Create a local gdb_xml_parser | |
7616 | instead of heap-allocating one with | |
7617 | gdb_xml_create_parser_and_cleanup. | |
7618 | ||
d56060f0 JB |
7619 | 2017-04-18 John Baldwin <jhb@FreeBSD.org> |
7620 | ||
7621 | PR threads/20743 | |
7622 | * fbsd-nat.c (resume_one_thread_cb): Remove. | |
7623 | (resume_all_threads_cb): Remove. | |
7624 | (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of | |
7625 | iterate_over_threads. | |
7626 | ||
305d16a9 JB |
7627 | 2017-04-17 Joel Brobecker <brobecker@adacore.com> |
7628 | ||
7629 | * NEWS: Create a new section for the next release branch. | |
7630 | Rename the section of the current branch, now that it has | |
7631 | been cut. | |
7632 | ||
8bb57231 JB |
7633 | 2017-04-17 Joel Brobecker <brobecker@adacore.com> |
7634 | ||
7635 | GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db): | |
7636 | * version.in: Bump version to 8.0.50.DATE-git. | |
7637 | ||
096c92dd SDJ |
7638 | 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com> |
7639 | ||
7640 | PR gdb/21385 | |
7641 | * windows-nat.c (windows_create_inferior): Declare 'allargs' | |
7642 | independently of the host, and fix build breakage on Cygwin. | |
7643 | ||
0550c955 PA |
7644 | 2017-04-13 Pedro Alves <palves@redhat.com> |
7645 | ||
7646 | * inferior.c (free_inferior): Convert to ... | |
7647 | (inferior::~inferior): ... this dtor. | |
7648 | (inferior::inferior): New ctor, factored out from ... | |
7649 | (add_inferior_silent): ... here. Allocate the inferior with a new | |
7650 | expression. | |
7651 | (delete_inferior): Call delete instead of free_inferior. | |
7652 | * inferior.h (gdb_environ, continuation): Forward declare. | |
7653 | (inferior): Now a class. Add in-class initialization to all | |
7654 | members. Make boolean fields bool, except 'detaching'. | |
7655 | (inferior::inferior): New explicit ctor. | |
7656 | (inferior::~inferior): New. | |
7657 | ||
e3d60dfc PA |
7658 | 2017-04-13 Pedro Alves <palves@redhat.com> |
7659 | ||
7660 | * inferior.c (init_inferior_list): Delete. | |
7661 | * inferior.h (init_inferior_list): Delete. | |
7662 | ||
5fd69d0a PA |
7663 | 2017-04-13 Pedro Alves <palves@redhat.com> |
7664 | ||
7665 | PR threads/13217 | |
7666 | * gdb.threads/threadapply.exp (thr_apply_detach): New procedure. | |
7667 | (top level): Call it twice, with different thread sets. | |
7668 | ||
c6609450 PA |
7669 | 2017-04-13 Pedro Alves <palves@redhat.com> |
7670 | ||
7671 | * thread.c: Include <algorithm>. | |
7672 | (thread_array_cleanup): Delete. | |
7673 | (scoped_inc_dec_ref): New class. | |
7674 | (live_threads_count): New function. | |
7675 | (set_thread_refcount): Delete. | |
7676 | (tp_array_compar_ascending): Now a bool. | |
7677 | (tp_array_compar): Convert to a std::sort comparison function. | |
7678 | (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref | |
7679 | and live_threads_count. | |
7680 | ||
2a00d7ce PA |
7681 | 2017-04-13 Pedro Alves <palves@redhat.com> |
7682 | ||
7683 | * infrun.c (follow_fork_inferior): Also switch the current | |
7684 | inferior. | |
7685 | ||
441d7c93 PA |
7686 | 2017-04-13 Pedro Alves <palves@redhat.com> |
7687 | ||
7688 | * breakpoint.c (watch_command_1): Save watchpoint-frame info | |
7689 | before calling create_internal_breakpoint. | |
7690 | ||
808480f6 PA |
7691 | 2017-04-13 Pedro Alves <palves@redhat.com> |
7692 | ||
7693 | * fork-child.c (execv_argv): New class. | |
7694 | (breakup_args): Refactored as ... | |
7695 | (execv_argv::init_for_no_shell): .. this method of execv_argv. | |
7696 | Copy arguments to storage and replace separators with NULL | |
7697 | terminators in place. | |
7698 | (escape_bang_in_quoted_argument): Adjust to return bool. | |
7699 | (execv_argv::execv_argv): New ctor. | |
7700 | (execv_argv::init_for_shell): New method, factored out from | |
7701 | fork_inferior. Don't strdup strings into the vector. | |
7702 | (fork_inferior): Eliminate "shell" local and use execv_argv. Use | |
7703 | Remove free_vector_argv call. | |
7704 | ||
ad3d022a YQ |
7705 | 2017-04-13 Yao Qi <yao.qi@linaro.org> |
7706 | ||
7707 | * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of | |
7708 | tdep->rx_psw_type. | |
7709 | ||
e6ddc3bf YQ |
7710 | 2017-04-13 Yao Qi <yao.qi@linaro.org> |
7711 | ||
7712 | * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW. | |
7713 | * rx-tdep.c (rx_gdbarch_init): Likewise. | |
7714 | ||
bfb8cf90 PA |
7715 | 2017-04-13 Pedro Alves <palves@redhat.com> |
7716 | ||
7717 | * breakpoint.h (struct breakpoint): Reindent. | |
7718 | ||
f5336ca5 PA |
7719 | 2017-04-13 Pedro Alves <palves@redhat.com> |
7720 | ||
7721 | * breakpoint.c (bp_location): Rename to ... | |
7722 | (bp_locations): ... this. All references updated. | |
7723 | (bp_location_count): Rename to ... | |
7724 | (bp_locations_count): ... this. All references updated. | |
7725 | (bp_location_placed_address_before_address_max): Rename to ... | |
7726 | (bp_locations_placed_address_before_address_max): ... this. All | |
7727 | references updated. | |
7728 | (bp_location_shadow_len_after_address_max): Rename to ... | |
7729 | (bp_locations_shadow_len_after_address_max): ... this. All | |
7730 | references updated. | |
7731 | (bp_location_compare_addrs): Rename to ... | |
7732 | (bp_locations_compare_addrs): ... this. All references updated. | |
7733 | (bp_location_compare):Rename to ... | |
7734 | (bp_locations_compare): ... this. All references updated. | |
7735 | (bp_location_target_extensions_update): Rename to ... | |
7736 | (bp_locations_target_extensions_update): ... this. All references | |
7737 | updated. | |
7738 | ||
be628ab8 SDJ |
7739 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
7740 | ||
7741 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h". | |
7742 | * common/common.m4: Check headers 'termios.h', 'termio.h' and | |
7743 | 'sgtty.h'. | |
7744 | * common/gdb_termios.h: New file, with parts of "terminal.h". | |
7745 | * inflow.c: Include "gdb_termios.h". | |
7746 | * ser-unix.c: Include "gdb_termios.h". | |
7747 | * terminal.h: Move terminal-related defines to | |
7748 | "common/gdb_termios.h". | |
7749 | ||
8e9e35b1 TT |
7750 | 2017-04-12 Tom Tromey <tom@tromey.com> |
7751 | ||
7752 | * probe.c (parse_probes): Update. | |
7753 | * location.h (delete_event_location): Don't declare. | |
7754 | (event_location_deleter::operator()): Update. | |
7755 | * location.c (event_location_deleter::operator()): Rename from | |
7756 | delete_event_location. | |
7757 | * linespec.h (linespec_result) <location>: Change type to | |
7758 | event_location_up. | |
7759 | * linespec.c (canonicalize_linespec, event_location_to_sals) | |
7760 | (decode_objc): Update. | |
7761 | (linespec_result): Don't call delete_event_location. | |
7762 | * breakpoint.c (create_breakpoints_sal) | |
7763 | (bkpt_probe_create_sals_from_location) | |
7764 | (strace_marker_create_sals_from_location): Update. | |
7765 | ||
16e802b9 TT |
7766 | 2017-04-12 Tom Tromey <tom@tromey.com> |
7767 | ||
7768 | * linespec.h (struct linespec_result): Add constructor and | |
7769 | destructor. | |
7770 | (init_linespec_result, destroy_linespec_result) | |
7771 | (make_cleanup_destroy_linespec_result): Don't declare. | |
7772 | * linespec.c (init_linespec_result): Remove. | |
7773 | (linespec_result::~linespec_result): Rename from | |
7774 | destroy_linespec_result. Update. | |
7775 | (cleanup_linespec_result, make_cleanup_destroy_linespec_result): | |
7776 | Remove. | |
7777 | * breakpoint.c (create_breakpoint, break_range_command) | |
7778 | (decode_location_default): Update. | |
7779 | * ax-gdb.c (agent_command_1): Update. | |
7780 | ||
d28cd78a TT |
7781 | 2017-04-12 Tom Tromey <tom@tromey.com> |
7782 | ||
7783 | * remote.c (remote_download_tracepoint): Update. | |
7784 | * python/py-breakpoint.c (bppy_get_location): Update. | |
7785 | * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob) | |
7786 | (gdbscm_breakpoint_location): Update. | |
7787 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update. | |
7788 | * breakpoint.h (struct breakpoint) <location, location_range_end>: | |
7789 | Change type to event_location_up. | |
7790 | * breakpoint.c (create_overlay_event_breakpoint) | |
7791 | (create_longjmp_master_breakpoint) | |
7792 | (create_std_terminate_master_breakpoint) | |
7793 | (create_exception_master_breakpoint) | |
7794 | (breakpoint_event_location_empty_p, print_breakpoint_location) | |
7795 | (print_one_breakpoint_location, create_thread_event_breakpoint) | |
7796 | (init_breakpoint_sal, create_breakpoint) | |
7797 | (print_recreate_ranged_breakpoint, break_range_command) | |
7798 | (init_ada_exception_breakpoint, say_where): Update. | |
7799 | (base_breakpoint_dtor): Don't call delete_event_location. | |
7800 | (bkpt_print_recreate, tracepoint_print_recreate) | |
7801 | (dprintf_print_recreate, update_static_tracepoint) | |
7802 | (breakpoint_re_set_default): Update. | |
7803 | ||
711799d5 TT |
7804 | 2017-04-12 Tom Tromey <tom@tromey.com> |
7805 | ||
7806 | * compile/compile-loc2c.c (compute_stack_depth_worker): Change | |
7807 | type of "to_do". Update. | |
7808 | (compute_stack_depth): Use std::vector. | |
7809 | ||
52d214d3 TT |
7810 | 2017-04-12 Tom Tromey <tom@tromey.com> |
7811 | ||
7812 | * printcmd.c (find_instruction_backward): Use std::vector. | |
7813 | ||
4c404b8b TT |
7814 | 2017-04-12 Tom Tromey <tom@tromey.com> |
7815 | ||
7816 | * symfile.c (objfilep): Remove typedef. | |
7817 | (reread_symbols): Use a std::vector. | |
7818 | ||
156d9eab TT |
7819 | 2017-04-12 Tom Tromey <tom@tromey.com> |
7820 | ||
7821 | * mi/mi-main.c (exec_direction_forward): Remove. | |
7822 | (exec_reverse_continue, mi_execute_command): Use scoped_restore. | |
7823 | * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use | |
7824 | scoped_restore. | |
7825 | * guile/guile.c (guile_repl_command, guile_command) | |
7826 | (gdbscm_execute_gdb_command): Use scoped_restore. | |
7827 | * go-exp.y (go_parse): Use scoped_restore. | |
7828 | * d-exp.y (d_parse): Use scoped_restore. | |
7829 | * cli/cli-decode.c (cmd_func): Use scoped_restore. | |
7830 | * c-exp.y (c_parse): Use scoped_restore. | |
7831 | ||
4d89769a TT |
7832 | 2017-04-12 Tom Tromey <tom@tromey.com> |
7833 | ||
7834 | * mi/mi-parse.h (struct mi_parse): Add constructor, destructor. | |
7835 | (mi_parse): Update return type. | |
7836 | (mi_parse_free): Remove. | |
7837 | * mi/mi-parse.c (mi_parse::mi_parse): New constructor. | |
7838 | (mi_parse::~mi_parse): Rename from mi_parse_free. | |
7839 | (mi_parse_cleanup): Remove. | |
7840 | (mi_parse): Return a unique_ptr. Use new. | |
7841 | * mi/mi-main.c (mi_execute_command): Update. | |
7842 | ||
4b217cc7 TT |
7843 | 2017-04-12 Tom Tromey <tom@tromey.com> |
7844 | ||
7845 | * location.c (explicit_location_lex_one): Return a | |
7846 | unique_xmalloc_ptr. | |
7847 | (string_to_explicit_location): Update. Remove cleanups. | |
7848 | ||
59d3651b TT |
7849 | 2017-04-12 Tom Tromey <tom@tromey.com> |
7850 | ||
7851 | * gnu-v3-abi.c (value_and_voffset_p): Remove typedef. | |
7852 | (compare_value_and_voffset): Change type. Update. | |
7853 | (compute_vtable_size): Change type of "offset_vec". | |
7854 | (gnuv3_print_vtable): Use std::vector. Remove cleanups. | |
7855 | (gnuv3_get_typeid): Remove extraneous declaration. | |
7856 | ||
b24b0d6c TT |
7857 | 2017-04-12 Tom Tromey <tom@tromey.com> |
7858 | ||
7859 | * charset.h (wchar_iterator): Fix comment. | |
7860 | ||
80a3b8c5 TT |
7861 | 2017-04-12 Tom Tromey <tom@tromey.com> |
7862 | ||
7863 | * charset.c (iconv_wrapper): New class. | |
7864 | (cleanup_iconv): Remove. | |
7865 | (convert_between_encodings): Use it. | |
7866 | ||
c83dd867 TT |
7867 | 2017-04-12 Tom Tromey <tom@tromey.com> |
7868 | ||
7869 | * symfile.h (increment_reading_symtab): Update type. | |
7870 | * symfile.c (decrement_reading_symtab): Remove. | |
7871 | (increment_reading_symtab): Return a scoped_restore_tmpl<int>. | |
7872 | * psymtab.c (psymtab_to_symtab): Update. | |
7873 | * dwarf2read.c (dw2_instantiate_symtab): Update. | |
7874 | ||
0e8621a0 TT |
7875 | 2017-04-12 Tom Tromey <tom@tromey.com> |
7876 | ||
7877 | * jit.c (struct jit_reader): Declare separately. Add constructor | |
7878 | and destructor. Change type of "handle". | |
7879 | (loaded_jit_reader): Define separately. | |
7880 | (jit_reader_load): Update. New "new". | |
7881 | (jit_reader_unload_command): Use "delete". | |
7882 | * gdb-dlfcn.h (struct dlclose_deleter): New. | |
7883 | (gdb_dlhandle_up): New typedef. | |
7884 | (gdb_dlopen, gdb_dlsym): Update types. | |
7885 | (gdb_dlclose): Remove. | |
7886 | * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up. | |
7887 | (gdb_dlsym): Change type of "handle". | |
7888 | (make_cleanup_dlclose): Remove. | |
7889 | (dlclose_deleter::operator()): Rename from gdb_dlclose. | |
7890 | * compile/compile-c-support.c (load_libcc): Update. | |
7891 | ||
67d89901 TT |
7892 | 2017-04-12 Tom Tromey <tom@tromey.com> |
7893 | ||
7894 | * symtab.h (find_pcs_for_symtab_line): Change return type. | |
7895 | * symtab.c (find_pcs_for_symtab_line): Change return type. | |
7896 | * python/py-linetable.c (build_line_table_tuple_from_pcs): Change | |
7897 | type of "vec". Update. | |
7898 | (ltpy_get_pcs_for_line): Update. | |
7899 | * linespec.c (decode_digits_ordinary): Update. | |
7900 | ||
93921405 TT |
7901 | 2017-04-12 Tom Tromey <tom@tromey.com> |
7902 | ||
7903 | * tracepoint.c (actions_command): Update. | |
7904 | * python/python.c (python_command, python_interactive_command): | |
7905 | Update. | |
7906 | * mi/mi-cmd-break.c (mi_cmd_break_commands): Update. | |
7907 | * guile/guile.c (guile_command): Update. | |
7908 | * defs.h (read_command_lines, read_command_lines_1): Return | |
7909 | command_line_up. | |
7910 | (command_lines_deleter): New struct. | |
7911 | (command_line_up): New typedef. | |
7912 | * compile/compile.c (compile_code_command) | |
7913 | (compile_print_command): Update. | |
7914 | * cli/cli-script.h (get_command_line, copy_command_lines): Return | |
7915 | command_line_up. | |
7916 | (make_cleanup_free_command_lines): Remove. | |
7917 | * cli/cli-script.c (get_command_line, read_command_lines_1) | |
7918 | (copy_command_lines): Return command_line_up. | |
7919 | (while_command, if_command, read_command_lines, define_command) | |
7920 | (document_command): Update. | |
7921 | (do_free_command_lines_cleanup, make_cleanup_free_command_lines): | |
7922 | Remove. | |
7923 | * breakpoint.h (breakpoint_set_commands): Change type of | |
7924 | "commands". | |
7925 | * breakpoint.c (breakpoint_set_commands): Change type of | |
7926 | "commands". Update. | |
7927 | (do_map_commands_command, update_dprintf_command_list) | |
7928 | (create_tracepoint_from_upload): Update. | |
7929 | ||
ffc2605c TT |
7930 | 2017-04-12 Tom Tromey <tom@tromey.com> |
7931 | ||
7932 | * tracepoint.c (scope_info): Update. | |
7933 | * spu-tdep.c (spu_catch_start): Update. | |
7934 | * python/python.c (gdbpy_decode_line): Update. | |
7935 | * python/py-finishbreakpoint.c (bpfinishpy_init): Update. | |
7936 | * python/py-breakpoint.c (bppy_init): Update. | |
7937 | * probe.c (parse_probes): Update. | |
7938 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update. | |
7939 | * location.h (event_location_deleter): New struct. | |
7940 | (event_location_up): New typedef. | |
7941 | (new_linespec_location, new_address_location, new_probe_location) | |
7942 | (new_explicit_location, copy_event_location) | |
7943 | (string_to_event_location, string_to_event_location_basic) | |
7944 | (string_to_explicit_location): Update return type. | |
7945 | (make_cleanup_delete_event_location): Remove. | |
7946 | * location.c (new_linespec_location, new_address_location) | |
7947 | (new_probe_location, new_explicit_location, copy_event_location): | |
7948 | Return event_location_up. | |
7949 | (delete_event_location_cleanup) | |
7950 | (make_cleanup_delete_event_location): Remove. | |
7951 | (string_to_explicit_location, string_to_event_location_basic) | |
7952 | (string_to_event_location): Return event_location_up. | |
7953 | * linespec.c (canonicalize_linespec, event_location_to_sals) | |
7954 | (decode_line_with_current_source) | |
7955 | (decode_line_with_last_displayed, decode_objc): Update. | |
7956 | * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update. | |
7957 | * completer.c (location_completer): Update. | |
7958 | * cli/cli-cmds.c (edit_command, list_command): Update. | |
7959 | * breakpoint.c (create_overlay_event_breakpoint) | |
7960 | (create_longjmp_master_breakpoint) | |
7961 | (create_std_terminate_master_breakpoint) | |
7962 | (create_exception_master_breakpoint) | |
7963 | (create_thread_event_breakpoint): Update. | |
7964 | (init_breakpoint_sal): Update. Remove some dead code. | |
7965 | (create_breakpoint_sal): Change type of "location". Update. | |
7966 | (create_breakpoints_sal, create_breakpoint, break_command_1) | |
7967 | (dprintf_command, break_range_command, until_break_command) | |
7968 | (init_ada_exception_breakpoint) | |
7969 | (strace_marker_create_sals_from_location) | |
7970 | (update_static_tracepoint, trace_command, ftrace_command) | |
7971 | (strace_command, create_tracepoint_from_upload): Update. | |
7972 | * break-catch-throw.c (re_set_exception_catchpoint): Update. | |
7973 | * ax-gdb.c (agent_command_1): Update. | |
7974 | ||
8f10c932 PA |
7975 | 2017-04-12 Pedro Alves <palves@redhat.com> |
7976 | ||
7977 | * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o. | |
7978 | * configure.tgt: Handle i[34567]86-*-go32* and | |
7979 | i[34567]86-*-msdosdjgpp*. | |
7980 | * i386-tdep.c (i386_svr4_reg_to_regnum): | |
7981 | Make extern. | |
7982 | (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to | |
7983 | i386-go32-tdep.c. | |
7984 | (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c. | |
7985 | * i386-go32-tdep.c: New file. | |
7986 | * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New | |
7987 | declarations. | |
7988 | ||
0a31ccfb SM |
7989 | 2017-04-12 Simon Marchi <simon.marchi@ericsson.com> |
7990 | ||
7991 | * aix-thread.c (pd_status2str): Change return type to const char *. | |
7992 | ||
e9bb3fbb PA |
7993 | 2017-04-12 Pedro Alves <palves@redhat.com> |
7994 | ||
7995 | * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove | |
7996 | calls to set_gdbarch_gnu_triplet_regexp. | |
7997 | ||
53375380 PA |
7998 | 2017-04-12 Pedro Alves <palves@redhat.com> |
7999 | ||
8000 | PR gdb/21323 | |
8001 | * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>: | |
8002 | New enum value. | |
8003 | (cplus_language_arch_info): Register cplus_primitive_type_wchar_t. | |
8004 | * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field. | |
8005 | * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type. | |
8006 | * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values. | |
8007 | * gdbarch.h, gdbarch.c: Regenerate. | |
8008 | * aarch64-tdep.c (aarch64_gdbarch_init): Override | |
8009 | gdbarch_wchar_bit and gdbarch_wchar_signed. | |
8010 | * alpha-tdep.c (alpha_gdbarch_init): Likewise. | |
8011 | * arm-tdep.c (arm_gdbarch_init): Likewise. | |
8012 | * avr-tdep.c (avr_gdbarch_init): Likewise. | |
8013 | * h8300-tdep.c (h8300_gdbarch_init): Likewise. | |
8014 | * i386-nto-tdep.c (i386nto_init_abi): Likewise. | |
8015 | * i386-tdep.c (i386_go32_init_abi): Likewise. | |
8016 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. | |
8017 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. | |
8018 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. | |
8019 | * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise. | |
8020 | * sh-tdep.c (sh_gdbarch_init): Likewise. | |
8021 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. | |
8022 | * sparc64-tdep.c (sparc64_init_abi): Likewise. | |
8023 | * windows-tdep.c (windows_init_abi): Likewise. | |
8024 | * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise. | |
8025 | ||
53e710ac PA |
8026 | 2017-04-12 Pedro Alves <palves@redhat.com> |
8027 | ||
8028 | PR c++/21323 | |
8029 | * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t, | |
8030 | cplus_primitive_type_char32_t>: New enum values. | |
8031 | (cplus_language_arch_info): Register cplus_primitive_type_char16_t | |
8032 | and cplus_primitive_type_char32_t. | |
8033 | * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or | |
8034 | 32, use the archtecture's built-in type for char16_t and char32_t, | |
8035 | respectively. Otherwise, fallback to init_integer_type as before, | |
8036 | but make the type unsigned, and issue a complaint. | |
8037 | * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned. | |
8038 | ||
ab0538b8 AH |
8039 | 2017-04-12 Alan Hayward <alan.hayward@arm.com> |
8040 | ||
5e0e0422 | 8041 | * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added. |
ab0538b8 AH |
8042 | (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE. |
8043 | ||
5430098f SDJ |
8044 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
8045 | ||
8046 | * windows-nat.c (windows_create_inferior): Declare 'toexec' as | |
8047 | 'const char *'. | |
8048 | ||
7c5ded6a SDJ |
8049 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
8050 | ||
8051 | * common/common-utils.c (free_vector_argv): New function. | |
8052 | * common/common-utils.h: Include <vector>. | |
8053 | (free_vector_argv): New prototype. | |
8054 | * darwin-nat.c (darwin_create_inferior): Rewrite function | |
8055 | prototype in order to constify "exec_file" and accept a | |
8056 | "std::string" for "allargs". | |
8057 | * fork-child.c: Include <vector>. | |
8058 | (breakup_args): Rewrite function, using C++. | |
8059 | (fork_inferior): Rewrite function header, constify "exec_file_arg" | |
8060 | and accept "std::string" for "allargs". Update the code to | |
8061 | calculate "argv" based on "allargs". Update calls to "exec_fun" | |
8062 | and "execvp". | |
8063 | * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in | |
8064 | order to constify "exec_file" and accept a "std::string" for | |
8065 | "allargs". | |
8066 | * go32-nat.c (go32_create_inferior): Likewise. | |
8067 | * inf-ptrace.c (inf_ptrace_create_inferior): Likewise. | |
8068 | * infcmd.c (run_command_1): Constify "exec_file". Use | |
8069 | "std::string" for inferior arguments. | |
8070 | * inferior.h (fork_inferior): Update prototype. | |
8071 | * linux-nat.c (linux_nat_create_inferior): Rewrite function | |
8072 | prototype in order to constify "exec_file" and accept a | |
8073 | "std::string" for "allargs". | |
8074 | * nto-procfs.c (procfs_create_inferior): Likewise. | |
8075 | * procfs.c (procfs_create_inferior): Likewise. | |
8076 | * remote-sim.c (gdbsim_create_inferior): Likewise. | |
8077 | * remote.c (extended_remote_run): Update code to accept | |
8078 | "std::string" as argument. | |
8079 | (extended_remote_create_inferior): Rewrite function prototype in | |
8080 | order to constify "exec_file" and accept a "std::string" for | |
8081 | "allargs". | |
8082 | * rs6000-nat.c (super_create_inferior): Likewise. | |
8083 | (rs6000_create_inferior): Likewise. | |
8084 | * target.h (struct target_ops) <to_create_inferior>: Likewise. | |
8085 | * windows-nat.c (windows_create_inferior): Likewise. | |
8086 | ||
ae0eee42 PA |
8087 | 2017-04-11 Pedro Alves <palves@redhat.com> |
8088 | ||
8089 | * thread.c: Fix whitespace throughout. | |
8090 | ||
a6acac06 PR |
8091 | 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com> |
8092 | ||
8093 | * linux-nat.c (linux_nat_detach): Remove delete_lwp call. | |
8094 | ||
64403bd1 AH |
8095 | 2017-04-11 Alan Hayward <alan.hayward@arm.com> |
8096 | ||
8097 | * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE | |
8098 | ||
a5bef50f SDJ |
8099 | 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com> |
8100 | ||
8101 | PR gdb/21364 | |
8102 | * osdata.c (info_osdata): Check if 'type' is an empty string | |
8103 | instead of NULL. | |
8104 | ||
9295a5a9 PA |
8105 | 2017-04-10 Pedro Alves <palves@redhat.com> |
8106 | ||
8107 | * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid) | |
8108 | (ptid_to_global_thread_id, in_thread_list) | |
8109 | (do_captured_list_thread_ids, set_resumed, set_running) | |
8110 | (set_executing, set_stop_requested, finish_thread_state) | |
8111 | (validate_registers_access, can_access_registers_ptid) | |
8112 | (print_thread_info_1, switch_to_thread) | |
8113 | (do_restore_current_thread_cleanup) | |
8114 | (make_cleanup_restore_current_thread, thread_command) | |
8115 | (thread_name_command): Use operator== instead of ptid_equal. | |
8116 | ||
996812e3 PA |
8117 | 2017-04-10 Pedro Alves <palves@redhat.com> |
8118 | ||
8119 | * thread.c (struct current_thread_cleanup) <next>: Delete field. | |
8120 | (current_thread_cleanup_chain): Delete. | |
8121 | (restore_current_thread_cleanup_dtor) | |
8122 | (make_cleanup_restore_current_thread): Remove references to | |
8123 | current_thread_cleanup_chain. | |
8124 | ||
845b344f AH |
8125 | 2017-04-10 Alan Hayward <alan.hayward@arm.com> |
8126 | ||
8127 | * msp430-tdep.c (msp430_pseudo_register_read): Never return | |
8128 | REG_UNKNOWN. | |
8129 | ||
803bdfe4 YQ |
8130 | 2017-04-10 Yao Qi <yao.qi@linaro.org> |
8131 | ||
8132 | PR gdb/19942 | |
8133 | * gdbthread.h (thread_info::deletable): New method. | |
8134 | (thread_info::incref): New method. | |
8135 | (thread_info::decref): New method. | |
8136 | (thread_info::refcount): Move it to private. | |
8137 | * infrun.c (save_stop_context): Call inc_refcount. | |
8138 | (release_stop_context_cleanup): Likewise. | |
8139 | * thread.c (set_thread_exited): New function. | |
8140 | (init_thread_list): Delete "tp" only it is deletable, otherwise | |
8141 | call set_thread_exited. | |
8142 | (delete_thread_1): Call set_thread_exited. | |
8143 | (current_thread_cleanup) <inferior_pid>: Remove. | |
8144 | <thread>: New field. | |
8145 | (restore_current_thread_ptid_changed): Removed. | |
8146 | (do_restore_current_thread_cleanup): Adjust. | |
8147 | (restore_current_thread_cleanup_dtor): Don't call | |
8148 | find_thread_ptid. | |
8149 | (set_thread_refcount): Use dec_refcount. | |
8150 | (make_cleanup_restore_current_thread): Adjust. | |
8151 | (thread_apply_all_command): Call inc_refcount. | |
8152 | (_initialize_thread): Don't call | |
8153 | observer_attach_thread_ptid_changed. | |
8154 | ||
8c25b497 YQ |
8155 | 2017-04-10 Yao Qi <yao.qi@linaro.org> |
8156 | ||
8157 | * thread.c (delete_thread_1): Hoist code on marking thread as | |
8158 | exited. | |
8159 | ||
8473b447 SM |
8160 | 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
8161 | ||
8162 | * windows-nat.c (windows_detach): Initialize ptid with | |
8163 | minus_one_ptid. | |
8164 | ||
6670ec13 SM |
8165 | 2017-04-07 Simon Marchi <simon.marchi@ericsson.com> |
8166 | ||
8167 | * unittests/ptid-selftests.c: Fix erroneous assert messages. | |
8168 | ||
ba2f91bb AH |
8169 | 2017-04-07 Alan Hayward <alan.hayward@arm.com> |
8170 | ||
8171 | * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add. | |
8172 | (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE. | |
8173 | (bfin_pseudo_register_write): Likewise | |
8174 | ||
436252de SM |
8175 | 2017-04-06 Simon Marchi <simon.marchi@ericsson.com> |
8176 | ||
8177 | * common/ptid.h (struct ptid): Change to... | |
8178 | (class ptid_t): ... this. | |
8179 | <ptid_t>: New constructors. | |
8180 | <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=, | |
8181 | matches>: New methods. | |
8182 | <make_null, make_minus_one>: New static methods. | |
8183 | <pid>: Rename to... | |
8184 | <m_pid>: ...this. | |
8185 | <lwp>: Rename to... | |
8186 | <m_lwp>: ...this. | |
8187 | <tid>: Rename to... | |
8188 | <m_tid>: ...this. | |
8189 | (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, | |
8190 | ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments | |
8191 | as references, move comment to class ptid_t. | |
8192 | * common/ptid.c (null_ptid, minus_one_ptid): Initialize with | |
8193 | ptid_t static methods. | |
8194 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid, | |
8195 | ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): | |
8196 | Take ptid arguments as references, implement using ptid_t methods. | |
8197 | * unittests/ptid-selftests.c: New file. | |
8198 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
8199 | unittests/ptid-selftests.c. | |
8200 | (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o. | |
8201 | ||
0dedf377 TP |
8202 | 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com> |
8203 | ||
8204 | * python/python.c (python_run_simple_file): Cast mode literal to | |
8205 | non-const char pointer as expected by PyFile_FromString. | |
8206 | ||
4e9868d4 SM |
8207 | 2017-04-05 Simon Marchi <simon.marchi@ericsson.com> |
8208 | ||
8209 | * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with | |
8210 | minus_one_ptid and null_ptid. | |
8211 | ||
9bf2a700 PA |
8212 | 2017-04-05 Pedro Alves <palves@redhat.com> |
8213 | ||
8214 | * warning.m4 (build_warnings): Remove -Wno-write-strings. | |
8215 | * configure: Regenerate. | |
8216 | ||
a121b7c1 PA |
8217 | 2017-04-05 Pedro Alves <palves@redhat.com> |
8218 | ||
8219 | * ada-exp.y (yyerror): Constify. | |
8220 | * ada-lang.c (bound_name, get_selections) | |
8221 | (ada_variant_discrim_type) | |
8222 | (ada_variant_discrim_name, ada_value_struct_elt) | |
8223 | (ada_lookup_struct_elt_type, is_unchecked_variant) | |
8224 | (ada_which_variant_applies, standard_exc, ada_get_next_arg) | |
8225 | (catch_ada_exception_command_split) | |
8226 | (catch_ada_assert_command_split, catch_assert_command) | |
8227 | (ada_op_name): Constify. | |
8228 | * ada-lang.h (ada_yyerror, get_selections) | |
8229 | (ada_variant_discrim_name, ada_value_struct_elt): Constify. | |
8230 | * arc-tdep.c (arc_print_frame_cache): Constify. | |
8231 | * arm-tdep.c (arm_skip_stub): Constify. | |
8232 | * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref) | |
8233 | (gen_aggregate_elt_ref): Constify. | |
8234 | * bcache.c (print_bcache_statistics): Constify. | |
8235 | * bcache.h (print_bcache_statistics): Constify. | |
8236 | * break-catch-throw.c (catch_exception_command_1): | |
8237 | * breakpoint.c (struct ep_type_description::description): | |
8238 | Constify. | |
8239 | (add_solib_catchpoint): Constify. | |
8240 | (catch_fork_command_1): Add cast. | |
8241 | (add_catch_command): Constify. | |
8242 | * breakpoint.h (add_catch_command, add_solib_catchpoint): | |
8243 | Constify. | |
8244 | * bsd-uthread.c (bsd_uthread_state): Constify. | |
8245 | * buildsym.c (patch_subfile_names): Constify. | |
8246 | * buildsym.h (next_symbol_text_func, patch_subfile_names): | |
8247 | Constify. | |
8248 | * c-exp.y (yyerror): Constify. | |
8249 | (token::oper): Constify. | |
8250 | * c-lang.h (c_yyerror, cp_print_class_member): Constify. | |
8251 | * c-varobj.c (cplus_describe_child): Constify. | |
8252 | * charset.c (find_charset_names): Add cast. | |
8253 | (find_charset_names): Constify array and add const_cast. | |
8254 | * cli/cli-cmds.c (complete_command, cd_command): Constify. | |
8255 | (edit_command): Constify. | |
8256 | * cli/cli-decode.c (lookup_cmd): Constify. | |
8257 | * cli/cli-dump.c (dump_memory_command, dump_value_command): | |
8258 | Constify. | |
8259 | (struct dump_context): Constify. | |
8260 | (add_dump_command, restore_command): Constify. | |
8261 | * cli/cli-script.c (get_command_line): Constify. | |
8262 | * cli/cli-script.h (get_command_line): Constify. | |
8263 | * cli/cli-utils.c (check_for_argument): Constify. | |
8264 | * cli/cli-utils.h (check_for_argument): Constify. | |
8265 | * coff-pe-read.c (struct read_pe_section_data): Constify. | |
8266 | * command.h (lookup_cmd): Constify. | |
8267 | * common/print-utils.c (decimal2str): Constify. | |
8268 | * completer.c (gdb_print_filename): Constify. | |
8269 | * corefile.c (set_gnutarget): Constify. | |
8270 | * cp-name-parser.y (yyerror): Constify. | |
8271 | * cp-valprint.c (cp_print_class_member): Constify. | |
8272 | * cris-tdep.c (cris_register_name, crisv32_register_name): | |
8273 | Constify. | |
8274 | * d-exp.y (yyerror): Constify. | |
8275 | (struct token::oper): Constify. | |
8276 | * d-lang.h (d_yyerror): Constify. | |
8277 | * dbxread.c (struct header_file_location::name): Constify. | |
8278 | (add_old_header_file, add_new_header_file, last_function_name) | |
8279 | (dbx_next_symbol_text, add_bincl_to_list) | |
8280 | (find_corresponding_bincl_psymtab, set_namestring) | |
8281 | (find_stab_function_addr, read_dbx_symtab, start_psymtab) | |
8282 | (dbx_end_psymtab, read_ofile_symtab, process_one_symbol): | |
8283 | * defs.h (command_line_input, print_address_symbolic) | |
8284 | (deprecated_readline_begin_hook): Constify. | |
8285 | * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name): | |
8286 | Constify. | |
8287 | * event-top.c (handle_line_of_input): Constify and add cast. | |
8288 | * exceptions.c (catch_errors): Constify. | |
8289 | * exceptions.h (catch_errors): Constify. | |
8290 | * expprint.c (print_subexp_standard, op_string, op_name) | |
8291 | (op_name_standard, dump_raw_expression, dump_raw_expression): | |
8292 | * expression.h (op_name, op_string, dump_raw_expression): | |
8293 | Constify. | |
8294 | * f-exp.y (yyerror): Constify. | |
8295 | (struct token::oper): Constify. | |
8296 | (struct f77_boolean_val::name): Constify. | |
8297 | * f-lang.c (f_word_break_characters): Constify. | |
8298 | * f-lang.h (f_yyerror): Constify. | |
8299 | * fork-child.c (fork_inferior): Add cast. | |
8300 | * frv-tdep.c (struct gdbarch_tdep::register_names): Constify. | |
8301 | (new_variant): Constify. | |
8302 | * gdbarch.sh (pstring_ptr, pstring_list): Constify. | |
8303 | * gdbarch.c: Regenerate. | |
8304 | * gdbcore.h (set_gnutarget): Constify. | |
8305 | * go-exp.y (yyerror): Constify. | |
8306 | (token::oper): Constify. | |
8307 | * go-lang.h (go_yyerror): Constify. | |
8308 | * go32-nat.c (go32_sysinfo): Constify. | |
8309 | * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify. | |
8310 | * guile/scm-cmd.c (cmdscm_function): Constify. | |
8311 | * guile/scm-param.c (pascm_param_value): Constify. | |
8312 | * h8300-tdep.c (h8300_register_name, h8300s_register_name) | |
8313 | (h8300sx_register_name): Constify. | |
8314 | * hppa-tdep.c (hppa32_register_name, hppa64_register_name): | |
8315 | Constify. | |
8316 | * ia64-tdep.c (ia64_register_names): Constify. | |
8317 | * infcmd.c (construct_inferior_arguments): Constify. | |
8318 | (path_command, attach_post_wait): Constify. | |
8319 | * language.c (show_range_command, show_case_command) | |
8320 | (unk_lang_error): Constify. | |
8321 | * language.h (language_defn::la_error) | |
8322 | (language_defn::la_name_of_this): Constify. | |
8323 | * linespec.c (decode_line_2): Constify. | |
8324 | * linux-thread-db.c (thread_db_err_str): Constify. | |
8325 | * lm32-tdep.c (lm32_register_name): Constify. | |
8326 | * m2-exp.y (yyerror): Constify. | |
8327 | * m2-lang.h (m2_yyerror): Constify. | |
8328 | * m32r-tdep.c (m32r_register_names): Constify and make static. | |
8329 | * m68hc11-tdep.c (m68hc11_register_names): Constify. | |
8330 | * m88k-tdep.c (m88k_register_name): Constify. | |
8331 | * macroexp.c (appendmem): Constify. | |
8332 | * mdebugread.c (fdr_name, add_data_symbol, parse_type) | |
8333 | (upgrade_type, parse_external, parse_partial_symbols) | |
8334 | (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab) | |
8335 | (new_symbol): Constify. | |
8336 | * memattr.c (mem_info_command): Constify. | |
8337 | * mep-tdep.c (register_name_from_keyword): Constify. | |
8338 | * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env): | |
8339 | Constify. | |
8340 | * mi/mi-cmd-stack.c (list_args_or_locals): Constify. | |
8341 | * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify. | |
8342 | * mi/mi-main.c (captured_mi_execute_command): Constify and add | |
8343 | cast. | |
8344 | (mi_execute_async_cli_command): Constify. | |
8345 | * mips-tdep.c (mips_register_name): Constify. | |
8346 | * mn10300-tdep.c (register_name, mn10300_generic_register_name) | |
8347 | (am33_register_name, am33_2_register_name) | |
8348 | * moxie-tdep.c (moxie_register_names): Constify. | |
8349 | * nat/linux-osdata.c (osdata_type): Constify fields. | |
8350 | * nto-tdep.c (nto_parse_redirection): Constify. | |
8351 | * objc-lang.c (lookup_struct_typedef, lookup_objc_class) | |
8352 | (lookup_child_selector): Constify. | |
8353 | (objc_methcall::name): Constify. | |
8354 | * objc-lang.h (lookup_objc_class, lookup_child_selector) | |
8355 | (lookup_struct_typedef): Constify. | |
8356 | * objfiles.c (pc_in_section): Constify. | |
8357 | * objfiles.h (pc_in_section): Constify. | |
8358 | * p-exp.y (struct token::oper): Constify. | |
8359 | (yyerror): Constify. | |
8360 | * p-lang.h (pascal_yyerror): Constify. | |
8361 | * parser-defs.h (op_name_standard): Constify. | |
8362 | (op_print::string): Constify. | |
8363 | (exp_descriptor::op_name): Constify. | |
8364 | * printcmd.c (print_address_symbolic): Constify. | |
8365 | * psymtab.c (print_partial_symbols): Constify. | |
8366 | * python/py-breakpoint.c (stop_func): Constify. | |
8367 | (bppy_get_expression): Constify. | |
8368 | * python/py-cmd.c (cmdpy_completer::name): Constify. | |
8369 | (cmdpy_function): Constify. | |
8370 | * python/py-event.c (evpy_add_attribute) | |
8371 | (gdbpy_initialize_event_generic): Constify. | |
8372 | * python/py-event.h (evpy_add_attribute) | |
8373 | (gdbpy_initialize_event_generic): Constify. | |
8374 | * python/py-evts.c (add_new_registry): Constify. | |
8375 | * python/py-finishbreakpoint.c (outofscope_func): Constify. | |
8376 | * python/py-framefilter.c (get_py_iter_from_func): Constify. | |
8377 | * python/py-inferior.c (get_buffer): Add cast. | |
8378 | * python/py-param.c (parm_constant::name): Constify. | |
8379 | * python/py-unwind.c (fprint_frame_id): Constify. | |
8380 | * python/python.c (gdbpy_parameter_value): Constify. | |
8381 | * remote-fileio.c (remote_fio_func_map): Make 'name' const. | |
8382 | * remote.c (memory_packet_config::name): Constify. | |
8383 | (show_packet_config_cmd, remote_write_bytes) | |
8384 | (remote_buffer_add_string): | |
8385 | * reverse.c (exec_reverse_once): Constify. | |
8386 | * rs6000-tdep.c (variant::name, variant::description): Constify. | |
8387 | * rust-exp.y (rustyyerror): Constify. | |
8388 | * rust-lang.c (rust_op_name): Constify. | |
8389 | * rust-lang.h (rustyyerror): Constify. | |
8390 | * serial.h (serial_ops::name): Constify. | |
8391 | * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name) | |
8392 | (sh_sh3e_register_name, sh_sh2e_register_name) | |
8393 | (sh_sh2a_register_name, sh_sh2a_nofpu_register_name) | |
8394 | (sh_sh_dsp_register_name, sh_sh3_dsp_register_name) | |
8395 | (sh_sh4_register_name, sh_sh4_nofpu_register_name) | |
8396 | (sh_sh4al_dsp_register_name): Constify. | |
8397 | * sh64-tdep.c (sh64_register_name): Constify. | |
8398 | * solib-darwin.c (lookup_symbol_from_bfd): Constify. | |
8399 | * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify. | |
8400 | * stabsread.c (patch_block_stabs, read_type_number) | |
8401 | (ref_map::stabs, ref_add, process_reference) | |
8402 | (symbol_reference_defined, define_symbol, define_symbol) | |
8403 | (error_type, read_type, read_member_functions, read_cpp_abbrev) | |
8404 | (read_one_struct_field, read_struct_fields, read_baseclasses) | |
8405 | (read_tilde_fields, read_struct_type, read_array_type) | |
8406 | (read_enum_type, read_sun_builtin_type, read_sun_floating_type) | |
8407 | (read_huge_number, read_range_type, read_args, common_block_start) | |
8408 | (find_name_end): Constify. | |
8409 | * stabsread.h (common_block_start, define_symbol) | |
8410 | (process_one_symbol, symbol_reference_defined, ref_add): | |
8411 | * symfile.c (get_section_index, add_symbol_file_command): | |
8412 | * symfile.h (get_section_index): Constify. | |
8413 | * target-descriptions.c (tdesc_type::name): Constify. | |
8414 | (tdesc_free_type): Add cast. | |
8415 | * target.c (find_default_run_target): | |
8416 | (add_deprecated_target_alias, find_default_run_target) | |
8417 | (target_announce_detach): Constify. | |
8418 | (do_option): Constify. | |
8419 | * target.h (add_deprecated_target_alias): Constify. | |
8420 | * thread.c (print_thread_info_1): Constify. | |
8421 | * top.c (deprecated_readline_begin_hook, command_line_input): | |
8422 | Constify. | |
8423 | (init_main): Add casts. | |
8424 | * top.h (handle_line_of_input): Constify. | |
8425 | * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify. | |
8426 | * tracepoint.c (tvariables_info_1, trace_status_mi): Constify. | |
8427 | (tfind_command): Rename to ... | |
8428 | (tfind_command_1): ... this and constify. | |
8429 | (tfind_command): New function. | |
8430 | (tfind_end_command, tfind_start_command): Adjust. | |
8431 | (encode_source_string): Constify. | |
8432 | * tracepoint.h (encode_source_string): Constify. | |
8433 | * tui/tui-data.c (tui_partial_win_by_name): Constify. | |
8434 | * tui/tui-data.h (tui_partial_win_by_name): Constify. | |
8435 | * tui/tui-source.c (tui_set_source_content_nil): Constify. | |
8436 | * tui/tui-source.h (tui_set_source_content_nil): Constify. | |
8437 | * tui/tui-win.c (parse_scrolling_args): Constify. | |
8438 | * tui/tui-windata.c (tui_erase_data_content): Constify. | |
8439 | * tui/tui-windata.h (tui_erase_data_content): Constify. | |
8440 | * tui/tui-winsource.c (tui_erase_source_content): Constify. | |
8441 | * tui/tui.c (tui_enable): Add cast. | |
8442 | * utils.c (defaulted_query): Constify. | |
8443 | (init_page_info): Add cast. | |
8444 | (puts_debug, subset_compare): Constify. | |
8445 | * utils.h (subset_compare): Constify. | |
8446 | * varobj.c (varobj_format_string): Constify. | |
8447 | * varobj.h (varobj_format_string): Constify. | |
8448 | * vax-tdep.c (vax_register_name): Constify. | |
8449 | * windows-nat.c (windows_detach): Constify. | |
8450 | * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify. | |
8451 | * xml-support.c (gdb_xml_end_element): Constify. | |
8452 | * xml-tdesc.c (tdesc_start_reg): Constify. | |
8453 | * xstormy16-tdep.c (xstormy16_register_name): Constify. | |
8454 | * xtensa-tdep.c (xtensa_find_register_by_name): Constify. | |
8455 | * xtensa-tdep.h (xtensa_register_t::name): Constify. | |
8456 | ||
995816ba PA |
8457 | 2017-04-05 Pedro Alves <palves@redhat.com> |
8458 | ||
8459 | * proc-api.c (struct trans): Constify. | |
8460 | (procfs_note): Constify. | |
8461 | * proc-events.c (struct trans, syscall_table): | |
8462 | * proc-flags.c (struct trans): Constify. | |
8463 | * proc-utils.h (procfs_note): Constify. | |
8464 | * proc-why.c (struct trans): Constify. | |
8465 | * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error) | |
8466 | (procfs_detach): Constify. | |
8467 | * sol-thread.c (struct string_map): Constify. | |
8468 | (td_err_string, td_state_string): Constify. | |
8469 | ||
3e83a920 PA |
8470 | 2017-04-05 Pedro Alves <palves@redhat.com> |
8471 | ||
8472 | * proc-api.c (procfs_filename): Don't initialize | |
8473 | procfs_filename. | |
8474 | (prepare_to_trace): Assume procfs_filename is non-NULL. | |
8475 | (_initialize_proc_api): Give procfs_filename a default value here. | |
8476 | ||
63160a43 PA |
8477 | 2017-04-05 Pedro Alves <palves@redhat.com> |
8478 | ||
8479 | * break-catch-throw.c (handle_gnu_v3_exceptions): Constify | |
8480 | 'cond_string' parameter. | |
8481 | (extract_exception_regexp): Constify 'string' parameter. | |
8482 | (catch_exception_command_1): Constify. | |
8483 | * breakpoint.c (init_catchpoint) | |
8484 | (create_fork_vfork_event_catchpoint): Constify 'cond_string' | |
8485 | parameter. | |
8486 | (ep_parse_optional_if_clause, catch_fork_command_1) | |
8487 | (catch_exec_command_1): Constify. | |
8488 | * breakpoint.h (init_catchpoint): Constify 'cond_string' | |
8489 | parameter. | |
8490 | (ep_parse_optional_if_clause): Constify. | |
8491 | * cli/cli-utils.c (remove_trailing_whitespace) | |
8492 | (check_for_argument): Constify. | |
8493 | * cli/cli-utils.h (remove_trailing_whitespace): Constify and add | |
8494 | non-const overload. | |
8495 | (check_for_argument): Likewise. | |
8496 | ||
9b2eba3d PA |
8497 | 2017-04-05 Pedro Alves <palves@redhat.com> |
8498 | ||
8499 | * event-top.c (command_line_handler): Add cast to execute_command | |
8500 | call. | |
8501 | * record-btrace.c (cmd_record_btrace_bts_start) | |
8502 | (cmd_record_btrace_pt_start, cmd_record_btrace_start) | |
8503 | (cmd_record_btrace_start): Add cast to execute_command call. | |
8504 | * record-full.c (record_full_goto_insn): | |
8505 | * record.c (record_start, record_stop): Add cast to | |
8506 | execute_command_to_string calls. | |
8507 | (cmd_record_start): Add cast to execute_command calls. | |
8508 | ||
2adadf51 PA |
8509 | 2017-04-05 Pedro Alves <palves@redhat.com> |
8510 | ||
8511 | * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New | |
8512 | static inline function. | |
8513 | * python/py-arch.c (archpy_disassemble): Constify 'keywords' | |
8514 | array and use gdb_PyArg_ParseTupleAndKeywords. | |
8515 | * python/py-cmd.c (cmdpy_init): Likewise. | |
8516 | * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise. | |
8517 | * python/py-inferior.c (infpy_read_memory, infpy_write_memory) | |
8518 | (infpy_search_memory): Likewise. | |
8519 | * python/py-objfile.c (objfpy_add_separate_debug_file) | |
8520 | (gdbpy_lookup_objfile): Likewise. | |
8521 | * python/py-symbol.c (gdbpy_lookup_symbol) | |
8522 | (gdbpy_lookup_global_symbol): Likewise. | |
8523 | * python/py-type.c (gdbpy_lookup_type): Likewise. | |
8524 | * python/py-value.c (valpy_lazy_string, valpy_string): Likewise. | |
8525 | * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush): | |
8526 | Likewise. | |
8527 | ||
0d1f4ceb PA |
8528 | 2017-04-05 Pedro Alves <palves@redhat.com> |
8529 | ||
8530 | * python/python-internal.h (gdb_PyGetSetDef): New type. | |
8531 | * python/py-block.c (block_object_getset) | |
8532 | (breakpoint_object_getset): Now a gdb_PyGetSetDef array. | |
8533 | * python/py-event.c (event_object_getset) | |
8534 | (finish_breakpoint_object_getset): Likewise. | |
8535 | * python/py-inferior.c (inferior_object_getset): Likewise. | |
8536 | * python/py-infthread.c (thread_object_getset): Likewise. | |
8537 | * python/py-lazy-string.c (lazy_string_object_getset): Likewise. | |
8538 | * python/py-linetable.c (linetable_entry_object_getset): Likewise. | |
8539 | * python/py-objfile.c (objfile_getset): Likewise. | |
8540 | * python/py-progspace.c (pspace_getset): Likewise. | |
8541 | * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset): | |
8542 | Likewise. | |
8543 | * python/py-record.c (recpy_record_getset): Likewise. | |
8544 | * python/py-symbol.c (symbol_object_getset): Likewise. | |
8545 | * python/py-symtab.c (symtab_object_getset, sal_object_getset): | |
8546 | Likewise. | |
8547 | * python/py-type.c (type_object_getset, field_object_getset): | |
8548 | Likewise. | |
8549 | * python/py-value.c (value_object_getset): Likewise. | |
8550 | ||
4d759979 PA |
8551 | 2017-04-05 Pedro Alves <palves@redhat.com> |
8552 | ||
8553 | * python/python-internal.h (gdb_PyObject_CallMethod) | |
8554 | (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath): | |
8555 | New functions. | |
8556 | (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException) | |
8557 | (PySys_GetObject, PySys_SetPath): New macros. | |
8558 | ||
fdf9e36f PA |
8559 | 2017-04-05 Pedro Alves <palves@redhat.com> |
8560 | ||
8561 | * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of | |
8562 | info_osdata_command. | |
8563 | * osdata.c (info_osdata_command): Rename to ... | |
8564 | (info_osdata): ... this. Constify 'type' parameter, and remove | |
8565 | the 'from_tty' parameter. Accept NULL TYPE. | |
8566 | (info_osdata_command): New function. | |
8567 | * osdata.h (info_osdata_command): Remove declaration. | |
8568 | (info_osdata): New declaration. | |
8569 | ||
9f33b8b7 PA |
8570 | 2017-04-05 Pedro Alves <palves@redhat.com> |
8571 | ||
8572 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert) | |
8573 | (mi_cmd_dprintf_insert, mi_cmd_break_passcount) | |
8574 | (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command' | |
8575 | parameter. | |
8576 | * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception) | |
8577 | (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter. | |
8578 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command' | |
8579 | parameter. | |
8580 | * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path) | |
8581 | (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show) | |
8582 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file) | |
8583 | (mi_cmd_file_list_exec_source_files) | |
8584 | (mi_cmd_file_list_shared_libraries): Constify 'command' parameter. | |
8585 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions) | |
8586 | (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command' | |
8587 | parameter. | |
8588 | * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters) | |
8589 | (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth) | |
8590 | (mi_cmd_stack_list_locals, mi_cmd_stack_list_args) | |
8591 | (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame) | |
8592 | (mi_cmd_stack_info_frame): Constify 'command' parameter. | |
8593 | * mi/mi-cmd-target.c (mi_cmd_target_file_get) | |
8594 | (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify | |
8595 | 'command' parameter. | |
8596 | * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete) | |
8597 | (mi_cmd_var_set_format, mi_cmd_var_set_visualizer) | |
8598 | (mi_cmd_var_set_frozen, mi_cmd_var_show_format) | |
8599 | (mi_cmd_var_info_num_children, mi_cmd_var_list_children) | |
8600 | (mi_cmd_var_info_type, mi_cmd_var_info_path_expression) | |
8601 | (mi_cmd_var_info_expression, mi_cmd_var_show_attributes) | |
8602 | (mi_cmd_var_evaluate_expression, mi_cmd_var_assign) | |
8603 | (mi_cmd_var_update, mi_cmd_enable_pretty_printing) | |
8604 | (mi_cmd_var_set_update_range): Constify 'command' parameter. | |
8605 | * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter. | |
8606 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command' | |
8607 | parameter. | |
8608 | * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next) | |
8609 | (mi_cmd_exec_next_instruction, mi_cmd_exec_step) | |
8610 | (mi_cmd_exec_step_instruction, mi_cmd_exec_finish) | |
8611 | (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue) | |
8612 | (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach) | |
8613 | (mi_cmd_target_flash_erase, mi_cmd_thread_select) | |
8614 | (mi_cmd_thread_list_ids, mi_cmd_thread_info) | |
8615 | (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names) | |
8616 | (mi_cmd_data_list_changed_registers) | |
8617 | (mi_cmd_data_write_register_values) | |
8618 | (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory) | |
8619 | (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory) | |
8620 | (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings) | |
8621 | (mi_cmd_list_features, mi_cmd_list_target_features) | |
8622 | (mi_cmd_add_inferior, mi_cmd_remove_inferior) | |
8623 | (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables) | |
8624 | (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start) | |
8625 | (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info) | |
8626 | (mi_cmd_trace_frame_collected): Constify 'command' | |
8627 | parameter. | |
8628 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify | |
8629 | 'command' parameter. | |
8630 | ||
67cb5b2d PA |
8631 | 2017-04-05 Pedro Alves <palves@redhat.com> |
8632 | ||
8633 | * ada-lang.c (ada_completer_word_break_characters): Now a const | |
8634 | array. | |
8635 | (ada_get_gdb_completer_word_break_characters): Constify. | |
8636 | * completer.c (gdb_completer_command_word_break_characters) | |
8637 | (gdb_completer_file_name_break_characters) | |
8638 | (gdb_completer_quote_characters): Now const arrays. | |
8639 | (get_gdb_completer_quote_characters): Constify. | |
8640 | (set_rl_completer_word_break_characters): New function. | |
8641 | (set_gdb_completion_word_break_characters) | |
8642 | (complete_line_internal): Use it. | |
8643 | * completer.h (get_gdb_completer_quote_characters): Constify. | |
8644 | (set_rl_completer_word_break_characters): Declare. | |
8645 | * f-lang.c (f_word_break_characters): Constify. | |
8646 | * language.c (default_word_break_characters): Constify. | |
8647 | * language.h (language_defn::la_word_break_characters): Constify. | |
8648 | (default_word_break_characters): Constify. | |
8649 | * top.c (init_main): Use set_rl_completer_word_break_characters. | |
8650 | ||
7a114964 PA |
8651 | 2017-04-05 Pedro Alves <palves@redhat.com> |
8652 | ||
8653 | * aix-thread.c (aix_thread_pid_to_str) | |
8654 | (aix_thread_extra_thread_info): Constify. | |
8655 | * bsd-kvm.c (bsd_kvm_pid_to_str): Constify. | |
8656 | * bsd-uthread.c (bsd_uthread_extra_thread_info) | |
8657 | (bsd_uthread_pid_to_str): Constify. | |
8658 | * corelow.c (core_pid_to_str): Constify. | |
8659 | * darwin-nat.c (darwin_pid_to_str): Constify. | |
8660 | * fbsd-nat.c (fbsd_pid_to_str): Constify. | |
8661 | * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str): | |
8662 | Constify. | |
8663 | * gnu-nat.c (gnu_pid_to_str): Constify. | |
8664 | * go32-nat.c (go32_pid_to_str): Constify. | |
8665 | * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify. | |
8666 | * inf-ptrace.c (inf_ptrace_pid_to_str): Constify. | |
8667 | * inferior.c (inferior_pid_to_str): Constify. | |
8668 | * linux-nat.c (linux_nat_pid_to_str): Constify. | |
8669 | * linux-tdep.c (linux_core_pid_to_str): Constify. | |
8670 | * linux-thread-db.c (thread_db_pid_to_str) | |
8671 | (thread_db_extra_thread_info): Constify. | |
8672 | * nto-tdep.c (nto_extra_thread_info): Constify. | |
8673 | * nto-tdep.h (nto_extra_thread_info): Constify. | |
8674 | * obsd-nat.c (obsd_pid_to_str): Constify. | |
8675 | * procfs.c (procfs_pid_to_str): Constify. | |
8676 | * ravenscar-thread.c (ravenscar_extra_thread_info) | |
8677 | (ravenscar_pid_to_str): Constify. | |
8678 | * remote-sim.c (gdbsim_pid_to_str): Constify. | |
8679 | * remote.c (remote_threads_extra_info, remote_pid_to_str): | |
8680 | Constify. | |
8681 | * sol-thread.c (solaris_pid_to_str): Constify. | |
8682 | * sol2-tdep.c (sol2_core_pid_to_str): Constify. | |
8683 | * sol2-tdep.h (sol2_core_pid_to_str): Constify. | |
8684 | * target.c (default_pid_to_str, target_pid_to_str) | |
8685 | (normal_pid_to_str, default_pid_to_str): Constify. | |
8686 | * target.h (target_ops::to_pid_to_str) | |
8687 | (target_ops::to_extra_thread_info): Constify. | |
8688 | (target_pid_to_str, normal_pid_to_str): Constify. | |
8689 | * windows-nat.c (windows_pid_to_str): Constify. | |
8690 | * gdbarch.sh (core_pid_to_str): Constify. | |
8691 | * target-delegates.c: Regenerate. | |
8692 | * gdbarch.h, gdbarch.c: Regenerate. | |
8693 | ||
69bbf465 PA |
8694 | 2017-04-05 Pedro Alves <palves@redhat.com> |
8695 | ||
8696 | * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage | |
8697 | the memory of the temporary warning_pre_print override. | |
8698 | * utils.c (warning_pre_print): Constify. | |
8699 | * utils.h (warning_pre_print): Constify. | |
8700 | ||
be47f9e8 PA |
8701 | 2017-04-05 Pedro Alves <palves@redhat.com> |
8702 | ||
8703 | * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter. | |
8704 | (shell_command): New function. | |
8705 | (make_command): Use std::string. | |
8706 | (init_cli_cmds): Register shell_command instead of shell_escape. | |
8707 | ||
bde6261a PA |
8708 | 2017-04-05 Pedro Alves <palves@redhat.com> |
8709 | ||
8710 | * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize. | |
8711 | * tracepoint.c (default_collect): Don't initialize. | |
8712 | ||
b38ef47f PA |
8713 | 2017-04-05 Pedro Alves <palves@redhat.com> |
8714 | ||
8715 | * macroexp.c (macro_buffer::shared): Now a bool. | |
8716 | (init_buffer): Update. | |
8717 | (init_shared_buffer): Constify 'addr' parameter. | |
8718 | (substitute_args, expand, macro_expand, macro_expand_next): Remove | |
8719 | casts. | |
8720 | ||
f995bbe8 PA |
8721 | 2017-04-05 Pedro Alves <palves@redhat.com> |
8722 | ||
8723 | * arm-tdep.c (show_disassembly_style_sfunc): Constify local. | |
8724 | * disasm.c (set_disassembler_options): Constify local. | |
8725 | * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment. | |
8726 | ||
4a596fe2 SDJ |
8727 | 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com> |
8728 | ||
8729 | PR gdb/21352 | |
8730 | * tracefile.c (tsave_command): Fix argument parsing for '-r' | |
8731 | option. | |
8732 | ||
2cad08ea YQ |
8733 | 2017-04-05 Yao Qi <yao.qi@linaro.org> |
8734 | ||
8735 | * frame.c (frame_unwind_register_unsigned): Call | |
8736 | frame_unwind_register_value. | |
8737 | ||
55a98976 YQ |
8738 | 2017-04-05 Yao Qi <yao.qi@linaro.org> |
8739 | ||
8740 | * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint): | |
8741 | Use gdb_test_multiple, and don't match anchor. | |
8742 | ||
4ac40124 PA |
8743 | 2017-04-05 Pedro Alves <palves@redhat.com> |
8744 | ||
8745 | * MAINTAINERS (Global Maintainers): Add Simon Marchi. | |
8746 | (Write After Approval): Remove Simon Marchi. | |
8747 | ||
c053b654 PA |
8748 | 2017-04-05 Pedro Alves <palves@redhat.com> |
8749 | ||
8750 | * common/gdb_optional.h (optional::optional): Make constexpr and | |
8751 | initialize m_dummy. | |
8752 | ||
4c7bf4f9 JB |
8753 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
8754 | ||
8755 | * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include. | |
8756 | (amd64fbsd_jmp_buf_reg_offset): Remove. | |
8757 | (amd64fbsd_supply_uthread): Remove function. | |
8758 | (amd64fbsd_collect_uthread): Remove function. | |
8759 | (amd64fbsd_init_abi): Don't set bsd-uthread callbacks. | |
8760 | * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o. | |
8761 | (x86_64-*-freebsd*): Remove bsd-uthread.o. | |
8762 | (fbsd-nat.c): Update comment. | |
8763 | * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include. | |
8764 | (i386fbsd_jmp_buf_reg_offset): Remove. | |
8765 | (i386fbsd_supply_uthread): Remove function. | |
8766 | (i386fbsd_collect_uthread): Remove function. | |
8767 | (i386fbsd_init_abi): Don't set bsd-uthread callbacks. | |
8768 | ||
1e1a8bef JB |
8769 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
8770 | ||
8771 | * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o. | |
8772 | (ALLDEPFILES): Remove alpha-fbsd-tdep.c | |
8773 | * NEWS: Mention that support for FreeBSD/alpha was removed. | |
8774 | * alpha-fbsd-tdep.c: Delete file. | |
8775 | * config/alpha/fbsd.mh: Delete file. | |
8776 | * configure.host: Delete alpha*-*-freebsd* and | |
8777 | alpha*-*-kfreebsd*-gnu. | |
8778 | * configure.tgt: Delete alpha*-*-freebsd* and | |
8779 | alpha*-*-kfreebsd*-gnu. | |
8780 | ||
49907934 JB |
8781 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
8782 | ||
8783 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers, | |
8784 | amd64bsd_store_inferior_registers): Use ptid from regcache. | |
8785 | ||
6f77053d PA |
8786 | 2017-04-04 Pedro Alves <palves@redhat.com> |
8787 | ||
8788 | * dwarf2read.c (lnp_state_machine): Now a class. Initialize all | |
8789 | data fields, make them private and add "m_" prefixes. | |
8790 | (lnp_state_machine::lnp_state_machine): New ctor. | |
8791 | (record_line, check_line_address, handle_set_discriminator) | |
8792 | (handle_set_address, handle_advance_pc, handle_special_opcode) | |
8793 | (handle_advance_line, handle_set_file, handle_negate_stmt) | |
8794 | (handle_const_add_pc, handle_fixed_advance_pc, handle_copy) | |
8795 | (end_sequence, advance_line): New methods. | |
8796 | (m_gdbarch, m_record_lines_p): New fields. | |
8797 | (lnp_reader_state): Delete. | |
8798 | (dwarf_record_line): Rename to ... | |
8799 | (lnp_state_machine::record_line): ... adjust. | |
8800 | (init_lnp_state_machine): Delete. | |
8801 | (lnp_state_machine::lnp_state_machine): New. | |
8802 | (check_line_address): Rename to ... | |
8803 | (lnp_state_machine::check_line_address): This. | |
8804 | (dwarf_decode_lines_1): Remove reference to "reader_state". | |
8805 | Adjust lnp_state_machine having a non-default ctor. Use bool. | |
8806 | State machine internal state manipulation moved to | |
8807 | lnp_state_machine methods. | |
8808 | ||
9c541725 PA |
8809 | 2017-04-04 Pedro Alves <palves@redhat.com> |
8810 | ||
8811 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
8812 | unittests/offset-type-selftests.c. | |
8813 | (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o. | |
8814 | * common/offset-type.h: New file. | |
8815 | * common/preprocessor.h: New file. | |
8816 | * common/traits.h: New file. | |
8817 | * common/valid-expr.h: New file. | |
8818 | * dwarf2expr.c: Include "common/underlying.h". Adjust to use | |
8819 | sect_offset and cu_offset strong typedefs throughout. | |
8820 | * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong | |
8821 | typedefs throughout. | |
8822 | * dwarf2loc.c: Include "common/underlying.h". Adjust to use | |
8823 | sect_offset and cu_offset strong typedefs throughout. | |
8824 | * dwarf2read.c: Adjust to use sect_offset and cu_offset strong | |
8825 | typedefs throughout. | |
8826 | * gdbtypes.h: Include "common/offset-type.h". | |
8827 | (cu_offset): Now an offset type (strong typedef) instead of a | |
8828 | struct. | |
8829 | (sect_offset): Likewise. | |
8830 | (union call_site_parameter_u): Rename "param_offset" field to | |
8831 | "param_cu_off". | |
8832 | * unittests/offset-type-selftests.c: New file. | |
8833 | ||
ecfb656c PA |
8834 | 2017-04-04 Pedro Alves <palves@redhat.com> |
8835 | ||
8836 | * common/underlying.h: New file. | |
8837 | * dwarf2read.c: Include "common/gdb_optional.h" and | |
8838 | "common/underlying.h". | |
8839 | (dir_index, file_name_index): New types. | |
8840 | (file_entry): Use them. | |
8841 | (file_entry::include): Use to_underlying. | |
8842 | (line_header::add_file_name): Use dir_index. | |
8843 | (read_formatted_entries): Use gdb::optional. Read form before | |
8844 | writting to file_entry. | |
8845 | (dwarf_decode_line_header): Use dir_index. | |
8846 | (lnp_state_machine::current_file): Use to_underlying. | |
8847 | (lnp_state_machine::file): Change type to file_name_index. | |
8848 | (dwarf_record_line): Use to_underlying. | |
8849 | (init_lnp_state_machine): Use file_name_index. | |
8850 | (dwarf_decode_lines_1): Use dir_index and file_name_index. | |
8851 | ||
d194f1fe PA |
8852 | 2017-04-04 Pedro Alves <palves@redhat.com> |
8853 | ||
8854 | * common/gdb_optional.h (gdb::optiona): Add operator->, operator*, | |
8855 | operator bool, has_value and get methods. | |
8856 | ||
fff8551c PA |
8857 | 2017-04-04 Pedro Alves <palves@redhat.com> |
8858 | ||
8859 | * dwarf2read.c (struct file_entry): Add ctors, and initialize all | |
8860 | fields. | |
8861 | (line_header): Initialize all data fields. Change type of | |
8862 | standard_opcode_lengths to std::unique_ptr<unsigned char[]>. | |
8863 | Change type of include_dirs to std::vector<const char *>. Remove | |
8864 | num_include_dirs, include_dirs_size. Change type of file_names to | |
8865 | std::vector<file_entry>. Remove num_file_names, file_names_size. | |
8866 | (line_header::line_header): New. | |
8867 | (line_header::add_include_dir, line_header::add_file_name): New | |
8868 | methods. | |
8869 | (line_header::include_dir_at): Remove NULL check. | |
8870 | (line_header::file_name_at): Add const overload. | |
8871 | (line_header_up): New unique_ptr typedef. | |
8872 | (dw2_get_file_names_reader): Use line_header_up. Adjust to use | |
8873 | std::vector. Remove free_line_header call. | |
8874 | (dwarf2_build_include_psymtabs): Use line_header_up. Remove | |
8875 | free_line_header call. | |
8876 | (free_cu_line_header): Delete. | |
8877 | (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list) | |
8878 | (setup_type_unit_groups): Use line_header_up instead of cleanups. | |
8879 | Adjust to use std::vector. | |
8880 | (free_line_header): Delete. | |
8881 | (free_line_header_voidp): Use delete. | |
8882 | (add_include_dir): Replace with ... | |
8883 | (line_header::add_include_dir): ... this method. Use std::vector. | |
8884 | (add_file_name): Replace with ... | |
8885 | (line_header::add_file_name): ... this method. Use std::vector. | |
8886 | (add_include_dir_stub): Delete. | |
8887 | (read_formatted_entries): Remove memset. | |
8888 | (dwarf_decode_line_header): Return a line_header_up instead of a | |
8889 | raw pointer. Remove cleanup handling. Pass lambdas to | |
8890 | read_formatted_entries. Adjust to use line_header methods. | |
8891 | (dwarf_decode_lines_1): Adjust to use line_header methods. | |
8892 | (dwarf_decode_lines, file_file_name, file_full_name): Adjust to | |
8893 | use std::vector. | |
8894 | ||
d62a8ae2 SM |
8895 | 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca> |
8896 | ||
8897 | * remote.c (set_general_thread, set_continue_thread): Use ptid_t | |
8898 | instead of struct ptid. | |
8899 | ||
db3a1dc7 AH |
8900 | 2017-05-04 Alan Hayward <alan.hayward@arm.com> |
8901 | ||
8902 | * frame.c (get_frame_register_bytes): Unwind using value. | |
8903 | (put_frame_register_bytes): Likewise. | |
8904 | ||
b1b45502 IB |
8905 | 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org> |
8906 | ||
8907 | * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being | |
8908 | aggregate-like. | |
8909 | ||
ec13808e JK |
8910 | 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
8911 | ||
8912 | * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS. | |
8913 | ||
12316564 YQ |
8914 | 2017-03-29 Yao Qi <yao.qi@linaro.org> |
8915 | ||
8916 | * gdbthread.h (struct thread_info): Declare constructor and | |
8917 | destructor. Add some in-class member initializers. | |
8918 | * thread.c (free_thread): Remove. | |
8919 | (init_thread_list): Call delete instead of free_thread. | |
8920 | (new_thread): Call thread_info constructor. | |
8921 | (thread_info::thread_info): New function. | |
8922 | (thread_info::~thread_info): New function. | |
8923 | (delete_thread_1): Call delete instead of free_thread. | |
8924 | (make_cleanup_restore_current_thread): Move tp and frame to | |
8925 | inner block. | |
8926 | ||
fe5f7374 AK |
8927 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
8928 | ||
8929 | * arc-tdep.c (arc_frame_cache): Add support for prologue analysis. | |
8930 | (arc_skip_prologue): Likewise. | |
8931 | (arc_make_frame_cache): Likewise. | |
8932 | (arc_pv_get_operand): New function. | |
8933 | (arc_is_in_prologue): Likewise. | |
8934 | (arc_analyze_prologue): Likewise. | |
8935 | (arc_print_frame_cache): Likewise. | |
8936 | (MAX_PROLOGUE_LENGTH): New constant. | |
8937 | ||
eea78757 AK |
8938 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
8939 | ||
8940 | * configure.tgt: Add arc-insn.o. | |
8941 | * arc-tdep.c (arc_delayed_print_insn): Make non-static. | |
8942 | (dump_arc_instruction_command): New function. | |
8943 | (arc_fprintf_disasm): Likewise. | |
8944 | (arc_disassemble_info): Likewise. | |
8945 | (arc_insn_get_operand_value): Likewise. | |
8946 | (arc_insn_get_operand_value_signed): Likewise. | |
8947 | (arc_insn_get_memory_base_reg): Likewise. | |
8948 | (arc_insn_get_memory_offset): Likewise. | |
8949 | (arc_insn_get_branch_target): Likewise. | |
8950 | (arc_insn_dump): Likewise. | |
8951 | (arc_insn_get_linear_next_pc): Likewise. | |
8952 | * arc-tdep.h (arc_delayed_print_insn): Add function declaration. | |
8953 | (arc_disassemble_info): Likewise. | |
8954 | (arc_insn_get_branch_target): Likewise. | |
8955 | (arc_insn_get_linear_next_pc): Likewise. | |
8956 | * NEWS: Mention new "maint print arc arc-instruction". | |
8957 | ||
3be78afd AK |
8958 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
8959 | ||
8960 | * arc-tdep (maintenance_print_arc_list): New variable. | |
8961 | (maintenance_print_arc_command): New function. | |
8962 | ||
296ec4fa AK |
8963 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
8964 | ||
8965 | * arc-tdep.c (core_v2_register_names, core_arcompact_register_names) | |
8966 | Add "limm" and "reserved". | |
8967 | (arc_cannot_fetch_register, arc_cannot_store_register): Add | |
8968 | ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM. | |
8969 | * arc-tdep.h (arc_regnum): Likewise. | |
8970 | ||
f74f865e MF |
8971 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
8972 | ||
8973 | * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect | |
8974 | for THREADPTR register. | |
8975 | (supply_gregset_reg): Call regcache_raw_supply for THREADPTR | |
8976 | register. | |
8977 | * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition. | |
8978 | (xtensa_derive_tdep): Initialize tdep->threadptr_regnum. | |
8979 | * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field. | |
8980 | ||
0d0bf81a MF |
8981 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
8982 | ||
8983 | * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all | |
8984 | registers above gdbarch_num_regs (gdbarch) as privileged in | |
8985 | call0 ABI. | |
8986 | ||
0ce4291e MF |
8987 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
8988 | ||
8989 | * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect | |
8990 | for a single specified register or for all registers in | |
8991 | a0_base..a0_base + C0_NREGS range. | |
8992 | (supply_gregset_reg): Call regcache_raw_supply for a single | |
8993 | specified register or for all registers in a0_base..a0_base + | |
8994 | C0_NREGS range. | |
8995 | ||
c56054f9 MF |
8996 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
8997 | ||
8998 | * arch/xtensa.h (C0_NREGS): Add definition. | |
8999 | * xtensa-tdep.c (C0_NREGS): Remove definition. | |
9000 | ||
a4398628 MF |
9001 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
9002 | ||
9003 | * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue): | |
9004 | Drop xtensa_default_isa initialization. | |
9005 | (xtensa_gdbarch_init): Initialize xtensa_default_isa. | |
9006 | ||
8c43009f PA |
9007 | 2017-03-27 Pedro Alves <palves@redhat.com> |
9008 | ||
9009 | * dwarf2read.c (file_entry) <dir_index>: Add comment. | |
9010 | (file_entry::include_dir): New method. | |
9011 | (line_header::include_dir_at, line_header::file_name_at): New | |
9012 | methods. | |
9013 | (setup_type_unit_groups, setup_type_unit_groups) | |
9014 | (psymtab_include_file_name): Simplify using the new methods. | |
9015 | (lnp_state_machine) <the_line_header>: New field. | |
9016 | <file>: Add comment. | |
9017 | (lnp_state_machine::current_file): New method. | |
9018 | (dwarf_record_line): Simplify using the new methods. | |
9019 | (init_lnp_state_machine): Initialize the "the_line_header" field. | |
9020 | (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name): | |
9021 | Simplify using the new methods. | |
9022 | ||
a7e80b9e PA |
9023 | 2017-03-27 Pedro Alves <palves@redhat.com> |
9024 | ||
9025 | * cp-name-parser.y (make_empty): Delete. | |
9026 | (demangler_special, nested_name, ptr_operator, array_indicator) | |
9027 | (direct_declarator, declarator_1): Use fill_comp instead of | |
9028 | make_empty. | |
9029 | ||
21047726 PA |
9030 | 2017-03-27 Pedro Alves <palves@redhat.com> |
9031 | ||
9032 | * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument | |
9033 | to ATTRIBUTE_PRINTF. | |
9034 | * solib-target.c (library_list_start_list): Print "string" not | |
9035 | "version". | |
9036 | * xml-tdesc.c (tdesc_start_field): Pass "field_name" to | |
9037 | gdb_xml_error call. | |
9038 | ||
d721ba37 PA |
9039 | 2017-03-27 Pedro Alves <palves@redhat.com> |
9040 | ||
9041 | * dwarf2read.c (struct file_and_directory): New. | |
9042 | (dwarf2_get_dwz_file): Adjust to use std::string. | |
9043 | (dw2_get_file_names_reader): Adjust to use file_and_directory. | |
9044 | (find_file_and_directory): Adjust to return a file_and_directory | |
9045 | object. | |
9046 | (read_file_scope): Adjust to use file_and_directory. Remove | |
9047 | make_cleanup/do_cleanups calls. | |
9048 | (open_and_init_dwp_file): Adjust to use std::string. Remove | |
9049 | make_cleanup/do_cleanups calls. | |
9050 | * python/python.c (do_start_initialization): Adjust to ldirname | |
9051 | returning a std::string. | |
9052 | * utils.c (ldirname): Now returns a std::string. | |
9053 | * utils.h (ldirname): Change return type to std::string. | |
9054 | * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname | |
9055 | returning a std::string. | |
9056 | * xml-tdesc.c (file_read_description_xml): Likewise. | |
9057 | ||
ed771251 AH |
9058 | 2017-03-24 Alan Hayward <alan.hayward@arm.com> |
9059 | ||
9060 | * regcache.c (regcache_debug_print_register): New function. | |
9061 | * regcache.h (regcache_debug_print_register): New declaration. | |
9062 | * target.c (debug_print_register): Remove. | |
9063 | (target_fetch_registers): Call regcache_debug_print_register. | |
9064 | (target_store_registers): Likewise. | |
9065 | ||
568c1b9f PB |
9066 | 2017-03-24 Pádraig Brady <pbrady@fb.com> |
9067 | ||
9068 | * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't | |
9069 | reference beyond the 'lh->include_dirs' array before accessing to | |
9070 | it. | |
9071 | (psymtab_include_file_name): Likewise. | |
9072 | (dwarf_decode_lines_1): Likewise. | |
9073 | (dwarf_decode_lines): Likewise. | |
9074 | (file_file_name): Likewise. | |
9075 | ||
3e00d44f SM |
9076 | 2017-03-23 Simon Marchi <simon.marchi@ericsson.com> |
9077 | ||
9078 | * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore | |
9079 | inferior_ptid. | |
9080 | * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, | |
9081 | ps_lsetfpregs): Likewise. | |
9082 | * regcache.c (regcache_raw_update, regcache_raw_write): Likewise. | |
9083 | * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, | |
9084 | ps_lsetfpregs): Likewise. | |
9085 | * target.c (target_fetch_registers, target_store_registers): | |
9086 | Remove asserts. | |
9087 | ||
077ae656 AH |
9088 | 2017-03-23 Alan Hayward <alan.hayward@arm.com> |
9089 | ||
9090 | * sol-thread.c (sol_thread_store_registers): Remove regcache calls. | |
9091 | ||
1e2b521d YQ |
9092 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
9093 | ||
9094 | * aarch64-tdep.c (aarch64_process_record_test): Declare. | |
9095 | (_initialize_aarch64_tdep): Register it. | |
9096 | (aarch64_record_load_store): Handle PRFM instruction. | |
9097 | (aarch64_process_record_test): New function. | |
9098 | ||
33877125 YQ |
9099 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
9100 | ||
9101 | * aarch64-tdep.c (aarch64_record_load_store): Fix code | |
9102 | indentation. | |
9103 | ||
a0eef940 YQ |
9104 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
9105 | ||
9106 | * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE. | |
9107 | ||
3f2a3564 PR |
9108 | 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
9109 | ||
9110 | python/python.c (do_start_initialization): Fix memory leak. | |
9111 | ||
b67aeab0 SM |
9112 | 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca> |
9113 | ||
9114 | * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid | |
9115 | using get_ptrace_pid. | |
9116 | * linux-nat.c (linux_nat_xfer_partial): Don't set/restore | |
9117 | inferior_ptid. | |
9118 | (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of | |
9119 | inferior_ptid instead of pid. | |
9120 | ||
ffdbe864 YQ |
9121 | 2017-03-22 Yao Qi <yao.qi@linaro.org> |
9122 | ||
9123 | * aarch64-tdep.c: Wrap locally used classes in anonymous | |
9124 | namespace. | |
9125 | * arm-tdep.c: Likewise. | |
9126 | * linespec.c: Likewise. | |
9127 | * ui-out.c: Likewise. | |
9128 | ||
9d736fbf JG |
9129 | 2017-03-22 Jonah Graham <jonah@kichwacoders.com> |
9130 | ||
9131 | PR gdb/19637 | |
9132 | * python/lib/gdb/printer/bound_registers.py: Import sys. | |
9133 | ||
3de88e9a SM |
9134 | 2017-03-21 Simon Marchi <simon.marchi@ericsson.com> |
9135 | ||
9136 | * windows-nat.c (do_windows_fetch_inferior_registers): Add | |
9137 | windows_thread_info parameter and use it instead of | |
9138 | current_thread. | |
9139 | (windows_fetch_inferior_registers): Don't set current_thread, | |
9140 | pass the thread to do_windows_fetch_inferior_registers. Use | |
9141 | ptid from regcache instead of inferior_ptid. | |
9142 | (do_windows_store_inferior_registers): Add windows_thread_info | |
9143 | parameter and use it instead of current_thread. | |
9144 | (windows_store_inferior_registers): Don't set current_thread, | |
9145 | pass the thread to do_windows_store_inferior_registers. Use | |
9146 | ptid from regcache instead of inferior_ptid. | |
9147 | ||
0e7b8f61 SM |
9148 | 2017-03-21 Simon Marchi <simon.marchi@ericsson.com> |
9149 | ||
9150 | * ser-mingw.c (ser_windows_raw): Remove reference to | |
9151 | struct serial::current_timeout. | |
9152 | ||
5badf10a IR |
9153 | 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com> |
9154 | ||
9155 | PR tdep/20928 | |
9156 | * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field. | |
9157 | * gdb/sparc64-tdep.c (sparc64_ccr_type): New function. | |
9158 | (sparc64_fsr_type): Fix %fsr decoding. | |
9159 | ||
cee59b3f TW |
9160 | 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com> |
9161 | ||
9162 | * python/py-record-btrace.c (btpy_insn_data): Change return type | |
9163 | for Python 2. | |
9164 | ||
639a9038 SM |
9165 | 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca> |
9166 | ||
9167 | * spu-linux-nat.c (spu_fetch_inferior_registers, | |
9168 | spu_store_inferior_registers): Use ptid from regcache, set and | |
9169 | restore inferior_ptid. | |
9170 | * spu-multiarch.c (spu_fetch_registers, spu_store_registers): | |
9171 | Likewise. | |
9172 | ||
bcc0c096 SM |
9173 | 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca> |
9174 | ||
9175 | * i386-linux-nat.c (fetch_register, store_register, | |
9176 | i386_linux_fetch_inferior_registers, | |
9177 | i386_linux_store_inferior_registers): Use ptid from regcache. | |
9178 | * ia64-linux-nat.c (ia64_linux_fetch_register, | |
9179 | ia64_linux_store_register): Likewise. | |
9180 | * inf-ptrace.c (inf_ptrace_fetch_register, | |
9181 | inf_ptrace_store_register): Likewise. | |
9182 | * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers, | |
9183 | m32r_linux_store_inferior_registers): Likewise. | |
9184 | * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers, | |
9185 | m68kbsd_store_inferior_registers): Likewise. | |
9186 | * m68k-linux-nat.c (fetch_register, store_register, | |
9187 | m68k_linux_fetch_inferior_registers, | |
9188 | m68k_linux_store_inferior_registers): Likewise. | |
9189 | * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers, | |
9190 | m88kbsd_store_inferior_registers): Likewise. | |
9191 | * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers, | |
9192 | mips_fbsd_store_inferior_registers): Likewise. | |
9193 | * mips-linux-nat.c (mips64_linux_regsets_fetch_registers, | |
9194 | mips64_linux_regsets_store_registers): Likewise. | |
9195 | * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers, | |
9196 | mipsnbsd_store_inferior_registers): Likewise. | |
9197 | * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers, | |
9198 | mips64obsd_store_inferior_registers): Likewise. | |
9199 | * nto-procfs.c (procfs_fetch_registers, procfs_store_registers): | |
9200 | Likewise. | |
9201 | * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers, | |
9202 | ppcfbsd_store_inferior_registers): Likewise. | |
9203 | * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers, | |
9204 | ppc_linux_store_inferior_registers): Likewise. | |
9205 | * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers, | |
9206 | ppcnbsd_store_inferior_registers): Likewise. | |
9207 | * ppc-obsd-nat.c (ppcobsd_fetch_registers, | |
9208 | ppcobsd_store_registers): Likewise. | |
9209 | * procfs.c (procfs_fetch_registers, procfs_store_registers): | |
9210 | Likewise. | |
9211 | * ravenscar-thread.c (ravenscar_fetch_registers, | |
9212 | ravenscar_store_registers, ravenscar_prepare_to_store): | |
9213 | Likewise. | |
9214 | * record-btrace.c (record_btrace_fetch_registers, | |
9215 | record_btrace_store_registers, record_btrace_prepare_to_store): | |
9216 | Likewise. | |
9217 | * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): | |
9218 | Lookup inferior using ptid from regcache, instead of | |
9219 | current_inferior. | |
9220 | * remote.c (remote_fetch_registers, remote_store_registers): Use | |
9221 | ptid from regcache. | |
9222 | * rs6000-nat.c (fetch_register, store_register): Likewise. | |
9223 | * s390-linux-nat.c (s390_linux_fetch_inferior_registers, | |
9224 | s390_linux_store_inferior_registers): Likewise. | |
9225 | * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers, | |
9226 | shnbsd_store_inferior_registers): Likewise. | |
9227 | * sol-thread.c (sol_thread_fetch_registers, | |
9228 | sol_thread_store_registers): Likewise. | |
9229 | * sparc-nat.c (sparc_fetch_inferior_registers, | |
9230 | sparc_store_inferior_registers): Likewise. | |
9231 | * tilegx-linux-nat.c (fetch_inferior_registers, | |
9232 | store_inferior_registers): Likewise. | |
9233 | * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers, | |
9234 | vaxbsd_store_inferior_registers): Likewise. | |
9235 | * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs, | |
9236 | store_xtregs): Likewise. | |
9237 | ||
c0f55cc6 AV |
9238 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
9239 | ||
9240 | PR gdb/14441 | |
9241 | * NEWS: Mention support for rvalue references in GDB and python. | |
9242 | * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB | |
9243 | supports both lvalue and rvalue references. | |
9244 | ||
15c0a2a9 AV |
9245 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
9246 | ||
9247 | PR gdb/14441 | |
9248 | * gdbtypes.c (rank_one_type): Implement overloading | |
9249 | resolution rules regarding rvalue references. | |
9250 | ||
aa006118 AV |
9251 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
9252 | ||
9253 | PR gdb/14441 | |
9254 | * aarch64-tdep.c (aarch64_type_align) | |
9255 | (aarch64_extract_return_value, aarch64_store_return_value): Change | |
9256 | lvalue reference type checks to general reference type checks. | |
9257 | * amd64-tdep.c (amd64_classify): Likewise. | |
9258 | * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register): | |
9259 | Likewise. | |
9260 | * arm-tdep.c (arm_type_align, arm_extract_return_value) | |
9261 | (arm_store_return_value): Likewise. | |
9262 | * ax-gdb.c (gen_fetch, gen_cast): Likewise. | |
9263 | * c-typeprint.c (c_print_type): Likewise. | |
9264 | * c-varobj.c (adjust_value_for_child_access, c_value_of_variable) | |
9265 | (cplus_number_of_children, cplus_describe_child): Likewise. | |
9266 | * compile/compile-c-symbols.c (generate_vla_size): Likewise. | |
9267 | * completer.c (expression_completer): Likewise. | |
9268 | * cp-support.c (make_symbol_overload_list_adl_namespace): | |
9269 | Likewise. | |
9270 | * darwin-nat-info.c (info_mach_region_command): Likewise. | |
9271 | * dwarf2loc.c (entry_data_value_coerce_ref) | |
9272 | (value_of_dwarf_reg_entry): Likewise. | |
9273 | * eval.c (ptrmath_type_p, evaluate_subexp_standard) | |
9274 | (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): | |
9275 | Likewise. | |
9276 | * findvar.c (extract_typed_address, store_typed_address): | |
9277 | Likewise. | |
9278 | * gdbtypes.c (rank_one_type): Likewise. | |
9279 | * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise. | |
9280 | * infcall.c (value_arg_coerce): Likewise. | |
9281 | * language.c (pointer_type): Likewise. | |
9282 | * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer): | |
9283 | Likewise. | |
9284 | * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise. | |
9285 | * mn10300-tdep.c (mn10300_type_align): Likewise. | |
9286 | * msp430-tdep.c (msp430_push_dummy_call): Likewise. | |
9287 | * ppc-sysv-tdep.c (do_ppc_sysv_return_value) | |
9288 | (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value): | |
9289 | Likewise. | |
9290 | * printcmd.c (print_formatted, x_command): Likewise. | |
9291 | * python/py-type.c (typy_get_composite, typy_template_argument): | |
9292 | Likewise. | |
9293 | * python/py-value.c (valpy_referenced_value) | |
9294 | (valpy_get_dynamic_type, value_has_field): Likewise. | |
9295 | * s390-linux-tdep.c (s390_function_arg_integer): Likewise. | |
9296 | * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise. | |
9297 | * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise. | |
9298 | * spu-tdep.c (spu_scalar_value_p): Likewise. | |
9299 | * symtab.c (lookup_symbol_aux): Likewise. | |
9300 | * typeprint.c (whatis_exp, print_type_scalar): Likewise. | |
9301 | * valarith.c (binop_types_user_defined_p, unop_user_defined_p): | |
9302 | Likewise. | |
9303 | * valops.c (value_cast_pointers, value_cast) | |
9304 | (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp) | |
9305 | (value_struct_elt, value_struct_elt_bitpos) | |
9306 | (value_find_oload_method_list, find_overload_match) | |
9307 | (value_rtti_indirect_type): Likewise. | |
9308 | * valprint.c (val_print_scalar_type_p, generic_val_print): | |
9309 | Likewise. | |
9310 | * value.c (value_actual_type, value_as_address, unpack_long) | |
9311 | (pack_long, pack_unsigned_long, coerce_ref_if_computed) | |
9312 | (coerce_ref): Likewise. | |
9313 | * varobj.c (varobj_get_value_type): Likewise. | |
9314 | ||
3fcf899d AV |
9315 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
9316 | ||
9317 | PR gdb/14441 | |
9318 | * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to | |
9319 | table of constants. | |
9320 | * python/lib/gdb/command/explore.py: Support exploring values | |
9321 | of rvalue reference types. | |
9322 | * python/lib/gdb/types.py: Implement get_basic_type() for | |
9323 | rvalue reference types. | |
9324 | * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New | |
9325 | constant. | |
9326 | * python/py-value.c (valpy_getitem): Add an rvalue reference | |
9327 | check. | |
9328 | (valpy_reference_value): Add new parameter "refcode". | |
9329 | (valpy_lvalue_reference_value, valpy_rvalue_reference_value): | |
9330 | New wrappers for valpy_reference_value(). | |
9331 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type) | |
9332 | (gdbpy_invoke_xmethod): Likewise. | |
9333 | ||
4297a3f0 AV |
9334 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
9335 | ||
9336 | PR gdb/14441 | |
9337 | * dwarf2read.c (process_die, read_type_die_1): Handle the | |
9338 | DW_TAG_rvalue_reference_type DIE. | |
9339 | (read_tag_reference_type): Add new parameter "refcode". | |
9340 | ||
e1cb3213 AV |
9341 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
9342 | ||
9343 | PR gdb/14441 | |
9344 | * c-typeprint.c (c_print_type, c_type_print_varspec_prefix) | |
9345 | (c_type_print_modifier, c_type_print_varspec_suffix) | |
9346 | (c_type_print_base): Support printing rvalue reference types. | |
9347 | * c-valprint.c (c_val_print, c_value_print): Support printing | |
9348 | rvalue reference values. | |
9349 | ||
e4347c89 AV |
9350 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
9351 | ||
9352 | PR gdb/14441 | |
9353 | * cp-name-parser.y (ptr_operator): Handle the '&&' token in | |
9354 | typename. | |
9355 | * cp-support.c (replace_typedefs): Handle | |
9356 | DEMANGLE_COMPONENT_RVALUE_REFERENCE. | |
9357 | * python/py-type.c (typy_lookup_type): Likewise. | |
9358 | ||
53cc15f5 AV |
9359 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
9360 | ||
9361 | PR gdb/14441 | |
9362 | * c-exp.y (ptr_operator): Handle the '&&' token in the typename. | |
9363 | * parse.c (insert_type): Change assert statement. | |
9364 | (follow_types): Handle rvalue reference types. | |
9365 | * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New | |
9366 | constant. | |
9367 | ||
a65cfae5 AV |
9368 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
9369 | ||
9370 | PR gdb/14441 | |
9371 | * ada-lang.c (ada_evaluate_subexp): Adhere to the new | |
9372 | value_ref() interface. | |
9373 | * c-valprint.c (c_value_print): Likewise. | |
9374 | * infcall.c (value_arg_coerce): Likewise. | |
9375 | * python/py-value.c (valpy_reference_value): Likewise. | |
9376 | * valops.c (value_cast, value_reinterpret_cast) | |
9377 | (value_dynamic_cast, typecmp): Likewise. | |
9378 | (value_ref): Parameterize by kind of return value reference type. | |
9379 | * value.h (value_ref): Add new parameter "refcode". | |
9380 | ||
3b224330 AV |
9381 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
9382 | ||
9383 | PR gdb/14441 | |
9384 | * dwarf2read.c (read_tag_reference_type): Use | |
9385 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
9386 | * eval.c (evaluate_subexp_standard): Likewise. | |
9387 | * f-exp.y: Likewise. | |
9388 | * gdbtypes.c (make_reference_type, lookup_reference_type): | |
9389 | Generalize with rvalue reference types. | |
9390 | (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New | |
9391 | convenience wrappers for lookup_reference_type(). | |
9392 | * gdbtypes.h (make_reference_type, lookup_reference_type): Add a | |
9393 | reference kind parameter. | |
9394 | (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add | |
9395 | wrappers for lookup_reference_type(). | |
9396 | * guile/scm-type.c (gdbscm_type_reference): Use | |
9397 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
9398 | * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise. | |
9399 | * parse.c (follow_types): Likewise. | |
9400 | * python/py-type.c (typy_reference, typy_lookup_type): Likewise. | |
9401 | * python/py-value.c (valpy_get_dynamic_type, valpy_getitem): | |
9402 | Likewise. | |
9403 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type) | |
9404 | (gdbpy_invoke_xmethod): Likewise. | |
9405 | * stabsread.c: Provide extra argument to make_reference_type() | |
9406 | call. | |
9407 | * valops.c (value_ref, value_rtti_indirect_type): Use | |
9408 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
9409 | ||
f9aeb8d4 AV |
9410 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
9411 | ||
9412 | PR gdb/14441 | |
9413 | * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant. | |
9414 | (TYPE_IS_REFERENCE): New macro. | |
9415 | (struct type): Add rvalue_reference_type field. | |
9416 | (TYPE_RVALUE_REFERENCE_TYPE): New macro. | |
9417 | ||
51457a05 MAL |
9418 | 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com> |
9419 | ||
9420 | * NEWS: Add an entry about new '-file-list-shared-libraries' command. | |
9421 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): | |
9422 | New function definition. | |
9423 | * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command. | |
9424 | * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries): | |
9425 | New function declaration. | |
9426 | * mi/mi-interp.c (mi_output_solib_attribs): New Function. | |
9427 | * mi/mi-interp.h: New file. | |
9428 | * solib.c (info_sharedlibrary_command): Replace for loop with | |
9429 | ALL_SO_LIBS macro | |
9430 | * solib.h (update_solib_list): New function declaration. | |
9431 | (so_list_head): Move macro. | |
9432 | * solist.h (ALL_SO_LIBS): New macro. | |
9433 | ||
e696b3ad MAL |
9434 | 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com> |
9435 | ||
9436 | * infcmd.c (post_create_inferior): Remove unused argument in | |
9437 | call to solib_add. | |
9438 | * remote.c (remote_start_remote): Likewise. | |
9439 | * solib-frv.c (frv_fetch_objfile_link_map): Likewise. | |
9440 | * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise. | |
9441 | (enable_break): Likewise. | |
9442 | * solib.c (update_solib_list): Remove unused target argument | |
9443 | and its documentation. | |
9444 | (solib_add): Remove unused target argument. Remove unused | |
9445 | argument in call to update_solib_list. | |
9446 | (info_sharedlibrary_command): Remove unused argument in call | |
9447 | to update_solib_list. | |
9448 | (sharedlibrary_command): Remove unused argument in call to | |
9449 | solib_add. | |
9450 | (handle_solib_event): Likewise. | |
9451 | (reload_shared_libraries): Likewise. | |
9452 | * solib.h (solib_add): Remove unused target argument. | |
9453 | ||
dcb84eda AA |
9454 | 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com> |
9455 | ||
9456 | * s390-linux-tdep.c (is_rsi, is_rie): Remove functions. | |
9457 | (s390_displaced_step_fixup): Cover relative branches with the | |
9458 | default fixup handling. This fixes lack of support for some | |
9459 | relative branch instructions. | |
9460 | ||
d9cb6cdc SM |
9461 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
9462 | ||
9463 | * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use | |
9464 | ptid from regcache. | |
9465 | ||
1afaf9f4 SM |
9466 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
9467 | ||
9468 | * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers, | |
9469 | i386_darwin_store_inferior_registers): Use ptid from regcache. | |
9470 | ||
aac12e24 SM |
9471 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
9472 | ||
9473 | * i386-bsd-nat.c (i386bsd_fetch_inferior_registers, | |
9474 | i386bsd_store_inferior_registers): Use ptid from regcache. | |
9475 | ||
bbe1eef1 SM |
9476 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
9477 | ||
9478 | * hppa-obsd-nat.c (hppaobsd_fetch_registers, | |
9479 | hppaobsd_store_registers): Use ptid from regcache. | |
9480 | ||
10799020 SM |
9481 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
9482 | ||
9483 | * hppa-nbsd-nat.c (hppanbsd_fetch_registers, | |
9484 | hppanbsd_store_registers): Use ptid from regcache. | |
9485 | ||
00204cf7 SM |
9486 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
9487 | ||
9488 | * hppa-linux-nat.c (fetch_register, store_register): Use ptid | |
9489 | from regcache. Use get_ptrace_pid. | |
9490 | ||
11a33714 SM |
9491 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
9492 | ||
9493 | * corelow.c (get_core_register_section): Use ptid from regcache, | |
9494 | update doc. | |
9495 | ||
317cd492 SM |
9496 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
9497 | ||
9498 | * bsd-uthread.c (bsd_uthread_fetch_registers, | |
9499 | bsd_uthread_store_registers): Use ptid from regcache, set and | |
9500 | restore inferior_ptid. | |
9501 | ||
9ac8a7c2 SM |
9502 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
9503 | ||
9504 | * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register, | |
9505 | fetch_fp_regs, store_register, store_regs, store_fp_register, | |
9506 | store_fp_regs): Use ptid from regcache. | |
9507 | ||
4ac4bb6a SM |
9508 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
9509 | ||
9510 | * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs, | |
9511 | store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs, | |
9512 | store_vfp_regs): Use ptid from regcache. | |
9513 | ||
9bcbdca8 PA |
9514 | 2017-03-17 Pedro Alves <palves@redhat.com> |
9515 | ||
9516 | PR remote/21188 | |
9517 | * ser-base.c (ser_base_wait_for): Add comment. | |
9518 | (do_ser_base_readchar): Improve comment based on the ser-unix.c's | |
9519 | version. | |
9520 | * ser-unix.c (hardwire_raw): Remove reference to | |
9521 | scb->current_timeout. | |
9522 | (wait_for, do_hardwire_readchar, hardwire_readchar): Delete. | |
9523 | (hardwire_ops): Install ser_base_readchar instead of | |
9524 | hardwire_readchar. | |
9525 | * serial.h (struct serial) <current_timeout, timeout_remaining>: | |
9526 | Remove fields. | |
9527 | ||
7503099f JG |
9528 | 2017-03-17 Jonah Graham <jonah@kichwacoders.com> |
9529 | ||
9530 | PR gdb/19637 | |
9531 | * python/lib/gdb/printer/bound_registers.py: Add support for | |
9532 | Python 3. | |
9533 | ||
7942e96e AA |
9534 | 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com> |
9535 | ||
9536 | * dwarf2loc.c (indirect_synthetic_pointer): Get data type of | |
9537 | pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full. | |
9538 | (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename | |
9539 | byte_offset to subobj_byte_offset. Fix the handling of | |
9540 | DWARF_VALUE_STACK on big-endian targets when coming via an | |
9541 | implicit pointer. | |
9542 | (dwarf2_evaluate_loc_desc): Adjust call to | |
9543 | dwarf2_evaluate_loc_desc_full. | |
9544 | * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration. | |
9545 | * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function. | |
9546 | ||
ba14f379 YQ |
9547 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
9548 | ||
9549 | * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16, | |
9550 | and REVSH instructions. | |
9551 | ||
b121eeb9 YQ |
9552 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
9553 | ||
9554 | * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h". | |
9555 | (arm_record_test): Declare. | |
9556 | (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test. | |
9557 | (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to | |
9558 | align with the manual. | |
9559 | (thumb_record_misc): Adjust the code order to align with the | |
9560 | manual. | |
9561 | (thumb2_record_decode_insn_handler): Fix instruction matching. | |
9562 | (instruction_reader_thumb): New class. | |
9563 | (arm_record_test): New function. | |
9564 | ||
728a7913 YQ |
9565 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
9566 | ||
9567 | * arm-tdep.c (abstract_memory_reader): New class. | |
9568 | (instruction_reader): New class. | |
9569 | (extract_arm_insn): Add argument 'reader'. Callers updated. | |
9570 | (decode_insn): Likewise. | |
9571 | ||
34b43320 DE |
9572 | 2017-03-16 Doug Evans <dje@google.com> |
9573 | ||
a7c0469f DE |
9574 | * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH |
9575 | member. Change type of TYPE member to SCM. All uses updated. | |
9576 | (lsscm_make_lazy_string_smob): Add assert. | |
9577 | (lsscm_make_lazy_string): Flag bad length values. | |
9578 | (lsscm_elt_type): New function. | |
9579 | (gdbscm_lazy_string_to_value): Rewrite to use | |
9580 | lsscm_safe_lazy_string_to_value. | |
9581 | (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR. | |
9582 | * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length | |
9583 | values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs | |
9584 | in incoming type. | |
9585 | * guile/guile-internal.h (tyscm_scm_to_type): Declare. | |
9586 | * guile/scm-type.c (tyscm_scm_to_type): New function. | |
9587 | ||
9588 | 2017-03-15 Doug Evans <dje@google.com> | |
9589 | ||
34b43320 DE |
9590 | PR python/17728, python/18439, python/18779 |
9591 | * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH | |
9592 | member. Change type of TYPE member to PyObject *. All uses updated. | |
9593 | (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR. | |
9594 | (gdbpy_create_lazy_string_object): Flag bad length values. | |
9595 | Handle TYPE_CODE_ARRAY with possibly different user-provided length. | |
9596 | Handle typedefs in incoming type. | |
9597 | (stpy_lazy_string_elt_type): New function. | |
9598 | (gdbpy_extract_lazy_string): Call it. | |
9599 | * python/py-value.c (valpy_lazy_string): Flag bad length values. | |
9600 | Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle | |
9601 | typedefs in incoming type. | |
9602 | ||
a3a5fecc DE |
9603 | 2017-03-16 Doug Evans <dje@google.com> |
9604 | ||
9605 | * guile/guile-internal.h (tyscm_scm_to_type): Declare. | |
9606 | * guile/scm-type.c (tyscm_scm_to_type): New function. | |
9607 | ||
28f1c605 JW |
9608 | 2017-03-16 Jiong Wang <jiong.wang@arm.com> |
9609 | ||
9610 | * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to | |
9611 | "ULONGEST" for "skip". | |
9612 | ||
87c336f6 AA |
9613 | 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com> |
9614 | ||
9615 | PR gdb/21220 | |
9616 | * inf-ptrace.c (inf_ptrace_xfer_partial): In "case | |
9617 | TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke... | |
9618 | (inf_ptrace_peek_poke): ...here. New function. Now also loop | |
9619 | over ptrace peek/poke until end of buffer or error. | |
9620 | ||
cf81cf60 SM |
9621 | 2017-03-14 Simon Marchi <simon.marchi@ericsson.com> |
9622 | ||
9623 | * parse.c (length_of_subexp): Make static. | |
9624 | * parser-defs.h (length_of_subexp): Remove. | |
9625 | ||
a379284a AA |
9626 | 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com> |
9627 | ||
9628 | * linux-nat.c (linux_proc_xfer_partial): Handle write operations | |
9629 | as well. | |
9630 | ||
8a6200ba PA |
9631 | 2017-03-14 Pedro Alves <palves@redhat.com> |
9632 | ||
9633 | * cp-name-parser.y (cp_demangled_name_to_comp): Update comment. | |
9634 | (main): Use std::unique_ptr. Remove calls to | |
9635 | cp_demangled_name_parse_free. | |
9636 | ||
f79ec206 SM |
9637 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
9638 | ||
9639 | * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers, | |
9640 | alphabsd_store_inferior_registers): Use regcache->ptid instead | |
9641 | of inferior_ptid. | |
9642 | ||
edb5fb00 SM |
9643 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
9644 | ||
9645 | * aix-thread.c (aix_thread_fetch_registers, | |
9646 | aix_thread_store_registers): Use regcache->ptid instead of | |
9647 | inferior_ptid. | |
9648 | ||
55119686 SM |
9649 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
9650 | ||
9651 | * aarch64-linux-nat.c (fetch_gregs_from_thread, | |
9652 | store_gregs_to_thread, fetch_fpregs_from_thread, | |
9653 | store_fpregs_to_thread): Use regcache->ptid instead of | |
9654 | inferior_ptid. | |
9655 | ||
6a06fbb7 SM |
9656 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
9657 | ||
9658 | * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers, | |
9659 | amd64_linux_fetch_inferior_registers): Use regcache->ptid | |
9660 | instead of inferior_ptid. | |
9661 | ||
c6386875 SM |
9662 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
9663 | ||
9664 | * target.c (target_fetch_registers, target_store_registers): Add | |
9665 | assert. | |
9666 | ||
ddaaf0fb SM |
9667 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
9668 | ||
9669 | * regcache.h (regcache_get_ptid): New function. | |
9670 | * regcache.c (regcache_get_ptid): New function. | |
9671 | ||
b9da89d1 | 9672 | 2017-03-13 Mark Wielaard <mark@klomp.org> |
9673 | ||
9674 | * cp-name-parser.y (make_empty): Initialize d_printing to zero. | |
9675 | ||
5f4d1085 KS |
9676 | 2017-03-10 Keith Seitz <keiths@redhat.com> |
9677 | ||
9678 | PR c++/8218 | |
9679 | * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments. | |
9680 | ||
c65d6b55 PA |
9681 | 2017-03-08 Pedro Alves <palves@redhat.com> |
9682 | ||
9683 | PR gdb/18360 | |
9684 | * infrun.c (start_step_over, do_target_resume, resume) | |
9685 | (restart_threads): Assert we're not resuming a thread that is | |
9686 | meant to be stopped. | |
9687 | (infrun_thread_stop_requested_callback): Delete. | |
9688 | (infrun_thread_stop_requested): If the thread is internally | |
9689 | stopped, queue a pending stop event and clear the thread's | |
9690 | inline-frame state. | |
9691 | (handle_stop_requested): New function. | |
9692 | (handle_syscall_event, handle_inferior_event_1): Use | |
9693 | handle_stop_requested. | |
9694 | (handle_stop_requested): New function. | |
9695 | (handle_signal_stop): Set the thread's stop_signal here instead of | |
9696 | at caller. | |
9697 | (finish_step_over): Clear step over info unconditionally. | |
9698 | (handle_signal_stop): If the user had interrupted the event | |
9699 | thread, consider the stop a random signal. | |
9700 | (handle_signal_stop) <signal arrived while stepping over | |
9701 | breakpoint>: Don't restart threads here. | |
9702 | (stop_waiting): Don't clear step-over info here. | |
9703 | ||
15c22686 PA |
9704 | 2017-03-08 Pedro Alves <palves@redhat.com> |
9705 | ||
9706 | PR 21206 | |
9707 | * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull | |
9708 | goes to argument 2, not 1. | |
9709 | ||
6e5d74e7 PA |
9710 | 2017-03-08 Pedro Alves <palves@redhat.com> |
9711 | ||
9712 | PR cli/21218 | |
9713 | * top.c (gdb_readline_wrapper): Avoid passing NULL to | |
9714 | display_gdb_prompt. | |
9715 | (command_line_input): Add comment. | |
9716 | ||
9753a2f6 PA |
9717 | 2017-03-08 Pedro Alves <palves@redhat.com> |
9718 | ||
9719 | PR tui/21216 | |
9720 | * tui/tui-file.c (tui_file::write): New. | |
9721 | * tui/tui-file.h (tui_file): Override "write". | |
9722 | * tui/tui-io.c (do_tui_putc, update_start_line): New functions, | |
9723 | factored out from ... | |
9724 | (tui_puts): ... here. | |
9725 | (tui_putc): Use them. | |
9726 | (tui_write): New function. | |
9727 | * tui/tui-io.h (tui_write): Declare. | |
9728 | ||
1672e0d9 SDJ |
9729 | 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com> |
9730 | ||
9731 | * Makefile.in (SFILES): Replace "environ.c" with | |
9732 | "common/environ.c". | |
9733 | (HFILES_NO_SRCDIR): Likewise, for "environ.h". | |
9734 | * environ.c: Include "common-defs.h" instead of "defs.h. Moved | |
9735 | to... | |
9736 | * common/environ.c: ... here. | |
9737 | * environ.h: Moved to... | |
9738 | * common/environ.h: ... here. | |
9739 | ||
f7bb4e3a PB |
9740 | 2017-03-07 Peter Bergner <bergner@vnet.ibm.com> |
9741 | ||
9742 | * gdbarch.sh (pstring_ptr): New static function. | |
9743 | (gdbarch_disassembler_options): Use it. | |
9744 | (gdbarch_verify_disassembler_options): Print valid_disassembler_options, | |
9745 | not valid_disassembler_option->name. | |
9746 | * gdbarch.c: Regenerate. | |
9747 | ||
e45ced6c PB |
9748 | 2017-03-07 Peter Bergner <bergner@vnet.ibm.com> |
9749 | ||
9750 | * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete. | |
9751 | ||
5f6fd321 PA |
9752 | 2017-03-07 Pedro Alves <palves@redhat.com> |
9753 | ||
9754 | * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout. | |
9755 | ||
6dbb839a | 9756 | 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com> |
4a612d6f WT |
9757 | |
9758 | * i387-tdep.h (i387_reset_bnd_regs): Add function definition. | |
9759 | * i387-tdep.c (i387_reset_bnd_regs): Add function implementation. | |
9760 | * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs. | |
6dbb839a | 9761 | * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs. |
4a612d6f | 9762 | |
d274ecf4 SM |
9763 | 2017-03-06 Simon Marchi <simon.marchi@ericsson.com> |
9764 | ||
9765 | * xtensa-linux-nat.c (fetch_gregs): Remove const. | |
9766 | ||
df97be55 SM |
9767 | 2017-03-03 Simon Marchi <simon.marchi@ericsson.com> |
9768 | ||
9769 | * remote.c (remote_add_target_side_commands): Use range-based | |
9770 | for loop. | |
9771 | ||
7d45f3df YQ |
9772 | 2017-03-03 Yao Qi <yao.qi@linaro.org> |
9773 | ||
9774 | PR gdb/21165 | |
9775 | * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if | |
9776 | value is lazy. | |
9777 | * valprint.c (common_val_print): Likewise. | |
9778 | ||
65b48a81 PB |
9779 | 2017-02-28 Peter Bergner <bergner@vnet.ibm.com> |
9780 | ||
9781 | * NEWS: Mention new set/show disassembler-options commands. | |
9782 | * doc/gdb.texinfo: Document new set/show disassembler-options commands. | |
9783 | * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h". | |
9784 | (prospective_options): New static variable. | |
9785 | (gdb_disassembler::gdb_disassembler): Initialize | |
9786 | m_di.disassembler_options. | |
9787 | (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options. | |
9788 | (get_disassembler_options): New function. | |
9789 | (set_disassembler_options): Likewise. | |
9790 | (set_disassembler_options_sfunc): Likewise. | |
9791 | (show_disassembler_options_sfunc): Likewise. | |
9792 | (disassembler_options_completer): Likewise. | |
9793 | (_initialize_disasm): Likewise. | |
9794 | * disasm.h (get_disassembler_options): New prototype. | |
9795 | (set_disassembler_options): Likewise. | |
9796 | * gdbarch.sh (gdbarch_disassembler_options): New variable. | |
9797 | (gdbarch_verify_disassembler_options): Likewise. | |
9798 | * gdbarch.c: Regenerate. | |
9799 | * gdbarch.h: Likewise. | |
9800 | * arm-tdep.c (num_disassembly_options): Delete. | |
9801 | (set_disassembly_style): Likewise. | |
9802 | (arm_disassembler_options): New static variable. | |
9803 | (set_disassembly_style_sfunc): Convert short style name into long | |
9804 | option name. Call set_disassembler_options. | |
9805 | (show_disassembly_style_sfunc): New function. | |
9806 | (arm_gdbarch_init): Call set_gdbarch_disassembler_options and | |
9807 | set_gdbarch_verify_disassembler_options. | |
9808 | (_initialize_arm_tdep): Delete regnames variable and update callers. | |
9809 | (arm_disassembler_options): Initialize. | |
9810 | (disasm_options): New variable. | |
9811 | (num_disassembly_options): Rename from this... | |
9812 | (num_disassembly_styles): ...to this. Compute by scanning through | |
9813 | disasm_options. | |
9814 | (valid_disassembly_styles): Initialize using disasm_options. | |
9815 | Remove calls to parse_arm_disassembler_option, get_arm_regnames and | |
9816 | set_arm_regname_option. | |
9817 | Pass show_disassembly_style_sfunc to the "disassembler" setshow command. | |
9818 | * rs6000-tdep.c (powerpc_disassembler_options): New static variable. | |
9819 | (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and | |
9820 | set_gdbarch_verify_disassembler_options. | |
9821 | * s390-tdep.c (s390_disassembler_options): New static variable. | |
9822 | (s390_gdbarch_init):all set_gdbarch_disassembler_options and | |
9823 | set_gdbarch_verify_disassembler_options. | |
9824 | ||
d538e36d SM |
9825 | 2017-02-27 Simon Marchi <simon.marchi@ericsson.com> |
9826 | ||
9827 | * remote.c (remote_add_target_side_condition): Remove "struct" | |
9828 | keyword from range-based for loop. | |
9829 | ||
83621223 SM |
9830 | 2017-02-27 Simon Marchi <simon.marchi@ericsson.com> |
9831 | ||
9832 | * remote.c (remote_add_target_side_condition): Use range-based | |
9833 | for loop. Update comment. | |
9834 | ||
2123df0e YQ |
9835 | 2017-02-27 Yao Qi <yao.qi@linaro.org> |
9836 | ||
9837 | * f-typeprint.c (f_print_type): Check "varstring" is empty first. | |
9838 | ||
8e368124 AH |
9839 | 2017-02-26 Alan Hayward <alan.hayward@arm.com> |
9840 | ||
9841 | * regcache.c (regcache_raw_update): New function. | |
9842 | (regcache_raw_read): Move code to regcache_raw_update. | |
9843 | * regcache.h (regcache_raw_update): New declaration. | |
9844 | * remote.c (remote_prepare_to_store): Call regcache_raw_update. | |
9845 | ||
a49dd8dd JK |
9846 | 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
9847 | ||
9848 | * dwarf2read.c (create_debug_type_hash_table): Initialize | |
9849 | header.signature and header.type_offset_in_tu. | |
9850 | ||
34e4bae9 PA |
9851 | 2017-02-24 Pedro Alves <palves@redhat.com> |
9852 | ||
9853 | * symtab.c (make_file_symbol_completion_list_1): Use | |
9854 | add_symtab_completions. | |
9855 | ||
b0e4b369 AH |
9856 | 2017-02-24 Alan Hayward <alan.hayward@arm.com> |
9857 | ||
9858 | * stack.c (frame_info): Use frame_unwind_register_value to avoid buf. | |
9859 | ||
975c21ab AH |
9860 | 2017-02-24 Alan Hayward <alan.hayward@arm.com> |
9861 | ||
9862 | * i386-tdep.c (i386_pseudo_register_read_into_value): Use | |
9863 | I386_MAX_REGISTER_SIZE. | |
9864 | (i386_pseudo_register_write): Likewise. | |
9865 | (i386_process_record): Likewise. | |
9866 | * i387-tdep.c (i387_supply_xsave): Likewise. | |
9867 | * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE. | |
9868 | (store_register): Likewise. | |
9869 | ||
14bc53a8 PA |
9870 | 2017-02-23 Pedro Alves <palves@redhat.com> |
9871 | ||
9872 | * ada-lang.c: Include "common/function-view.h". | |
9873 | (ada_iterate_over_symbols): Adjust to use function_view as | |
9874 | callback type. | |
9875 | (struct add_partial_datum, ada_complete_symbol_matcher): Delete. | |
9876 | (ada_make_symbol_completion_list): Use a lambda. | |
9877 | (ada_exc_search_name_matches): Delete. | |
9878 | (name_matches_regex): New. | |
9879 | (ada_add_global_exceptions): Use a lambda and name_matches_regex. | |
9880 | * compile/compile-c-support.c: Include "common/function-view.h". | |
9881 | (print_one_macro): Change prototype to accept a ui_file pointer. | |
9882 | (write_macro_definitions): Use a lambda. | |
9883 | * dwarf2read.c: Include "common/function-view.h". | |
9884 | (dw2_map_expand_apply, dw2_map_symtabs_matching_filename) | |
9885 | (dw2_expand_symtabs_matching): Adjust to use function_view as | |
9886 | callback type. | |
9887 | * language.h: Include "common/function-view.h". | |
9888 | (struct language_defn) <la_iterate_over_symbols>: Adjust to use | |
9889 | function_view as callback type. | |
9890 | (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter. | |
9891 | * linespec.c: Include "common/function-view.h". | |
9892 | (collect_info::add_symbol): New method. | |
9893 | (struct symbol_and_data_callback, iterate_inline_only, struct | |
9894 | symbol_matcher_data, iterate_name_matcher): Delete. | |
9895 | (iterate_over_all_matching_symtabs): Adjust to use function_view | |
9896 | as callback type and lambdas. | |
9897 | (iterate_over_file_blocks): Adjust to use function_view as | |
9898 | callback type. | |
9899 | (decode_compound_collector): Now a class with private fields. | |
9900 | (decode_compound_collector::release_symbols): New method. | |
9901 | (collect_one_symbol): Rename to... | |
9902 | (decode_compound_collector::operator()): ... this and adjust. | |
9903 | (lookup_prefix_sym): decode_compound_collector construction bits | |
9904 | move to decode_compound_collector ctor. Pass the | |
9905 | decode_compound_collector object directly as callback. Remove | |
9906 | cleanups and use decode_compound_collector::release_symbols | |
9907 | instead. | |
9908 | (symtab_collector): Now a class with private fields. | |
9909 | (symtab_collector::release_symtabs): New method. | |
9910 | (add_symtabs_to_list): Rename to... | |
9911 | (symtab_collector::operator()): ... this and adjust. | |
9912 | (collect_symtabs_from_filename): symtab_collector construction | |
9913 | bits move to symtab_collector ctor. Pass the symtab_collector | |
9914 | object directly as callback. Remove cleanups and use | |
9915 | symtab_collector::release_symtabs instead. | |
9916 | (collect_symbols): Delete. | |
9917 | (add_matching_symbols_to_info): Use lambdas. | |
9918 | * macrocmd.c (print_macro_callback): Delete. | |
9919 | (info_macro_command): Use a lambda. | |
9920 | (info_macros_command): Pass print_macro_definition as callable | |
9921 | directly. | |
9922 | (print_one_macro): Remove 'ignore' parameter. | |
9923 | (macro_list_command): Adjust. | |
9924 | * macrotab.c (macro_for_each_data::fn): Now a function_view. | |
9925 | (macro_for_each_data::user_data): Delete field. | |
9926 | (foreach_macro): Adjust to call the function_view. | |
9927 | (macro_for_each): Adjust to use function_view as callback type. | |
9928 | (foreach_macro_in_scope): Adjust to call the function_view. | |
9929 | (macro_for_each_in_scope): Adjust to use function_view as callback | |
9930 | type. | |
9931 | * macrotab.h: Include "common/function-view.h". | |
9932 | (macro_callback_fn): Declare a prototype instead of a pointer. | |
9933 | Remove "user_data" parameter. | |
9934 | (macro_for_each, macro_for_each_in_scope): Adjust to use | |
9935 | function_view as callback type. | |
9936 | * psymtab.c (partial_map_expand_apply) | |
9937 | (psym_map_symtabs_matching_filename, recursively_search_psymtabs): | |
9938 | Adjust to use function_view as callback type and to return bool. | |
9939 | (psym_expand_symtabs_matching): Adjust to use function_view as | |
9940 | callback types. | |
9941 | * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust | |
9942 | to use function_view as callback type and to return bool. | |
9943 | (debug_qf_expand_symtabs_matching): Adjust to use function_view as | |
9944 | callback types. | |
9945 | * symfile.c (expand_symtabs_matching): Adjust to use function_view | |
9946 | as callback types. | |
9947 | * symfile.h: Include "common/function-view.h". | |
9948 | (expand_symtabs_file_matcher_ftype) | |
9949 | (expand_symtabs_symbol_matcher_ftype) | |
9950 | (expand_symtabs_exp_notify_ftype): Remove "data" parameter and | |
9951 | return bool. | |
9952 | (quick_symbol_functions::map_symtabs_matching_filename) | |
9953 | (quick_symbol_functions::expand_symtabs_matching): Adjust to use | |
9954 | function_view as callback type and return bool. | |
9955 | (expand_symtabs_matching): Adjust to use function_view as callback | |
9956 | type. | |
9957 | (maintenance_expand_name_matcher) | |
9958 | (maintenance_expand_file_matcher): Delete. | |
9959 | (maintenance_expand_symtabs): Use lambdas. | |
9960 | * symtab.c (iterate_over_some_symtabs): Adjust to use | |
9961 | function_view as callback types and return bool. | |
9962 | (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead | |
9963 | of a cleanup. | |
9964 | (lookup_symtab_callback): Delete. | |
9965 | (lookup_symtab): Use a lambda. | |
9966 | (iterate_over_symbols): Adjust to use function_view as callback | |
9967 | type. | |
9968 | (struct search_symbols_data, search_symbols_file_matches) | |
9969 | (search_symbols_name_matches): Delete. | |
9970 | (search_symbols): Use a pair of lambdas. | |
9971 | (struct add_name_data, add_macro_name, symbol_completion_matcher) | |
9972 | (symtab_expansion_callback): Delete. | |
9973 | (default_make_symbol_completion_list_break_on_1): Use lambdas. | |
9974 | * symtab.h: Include "common/function-view.h". | |
9975 | (iterate_over_some_symtabs): Adjust to use function_view as | |
9976 | callback type and return bool. | |
9977 | (iterate_over_symtabs): Adjust to use function_view as callback | |
9978 | type. | |
9979 | (symbol_found_callback_ftype): Remove 'data' parameter and return | |
9980 | bool. | |
9981 | (iterate_over_symbols): Adjust to use function_view as callback | |
9982 | type. | |
9983 | ||
07e253aa PA |
9984 | 2017-02-23 Pedro Alves <palves@redhat.com> |
9985 | ||
9986 | * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New. | |
9987 | (%.o) <unittests/%.c>: New pattern. | |
9988 | * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to | |
9989 | CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS. | |
9990 | * common/function-view.h: New file. | |
9991 | * unittests/function-view-selftests.c: New file. | |
9992 | * configure: Regenerate. | |
9993 | ||
8eaf5320 SM |
9994 | 2017-02-23 Simon Marchi <simon.marchi@ericsson.com> |
9995 | ||
9996 | * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of | |
9997 | inferior_ptid. | |
9998 | * go32-nat.c (go32_thread_alive): Likewise. | |
9999 | ||
38768751 YQ |
10000 | 2017-02-23 Yao Qi <yao.qi@linaro.org> |
10001 | ||
10002 | * varobj-iter.h (varobj_iter_delete): Call xfree instead of | |
10003 | delete. | |
10004 | ||
0a8beaba YQ |
10005 | 2017-02-23 Yao Qi <yao.qi@linaro.org> |
10006 | ||
10007 | * varobj.c (varobj_clear_saved_item): Use delete instead of | |
10008 | xfree. | |
10009 | (update_dynamic_varobj_children): Likewise. | |
10010 | ||
58fdfd2c JK |
10011 | 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
10012 | ||
10013 | * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR. | |
10014 | ||
1b90b139 SM |
10015 | 2017-02-21 Simon Marchi <simon.marchi@ericsson.com> |
10016 | ||
10017 | * common/enum-flags.h (enum_flags::enum_flags): Initialize | |
10018 | m_enum_value to 0 in default constructor. | |
10019 | ||
2039d74e EBM |
10020 | 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> |
10021 | ||
10022 | * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK. | |
10023 | (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK. | |
10024 | (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION, | |
10025 | STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines. | |
10026 | (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros. | |
10027 | (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN. | |
10028 | (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and | |
10029 | IS_STORE_CONDITIONAL_INSN. | |
10030 | ||
7814882a JK |
10031 | 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
10032 | ||
10033 | * dwarf2_rnglists_process: Initialize range_beginning and range_end. | |
10034 | ||
0ae60b63 JK |
10035 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
10036 | ||
10037 | * NEWS (Changes since GDB 7.12): Add DWARF-5. | |
10038 | ||
0224619f JK |
10039 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
10040 | ||
10041 | * dwarf2read.c (skip_one_die, read_attribute_value) | |
10042 | (dwarf2_const_value_attr, dump_die_shallow) | |
10043 | (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) | |
10044 | (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16. | |
10045 | ||
0af92d60 JK |
10046 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
10047 | ||
10048 | * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*. | |
10049 | (dwarf_parse_macro_header): Accept DWARF version 5. | |
10050 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*. | |
10051 | ||
216f72a1 JK |
10052 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
10053 | ||
10054 | * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and | |
10055 | DW_AT_GNU_*. | |
10056 | * common/common-exceptions.h (enum errors): Likewise. | |
10057 | * dwarf2-frame.c (class dwarf_expr_executor): Likewise. | |
10058 | * dwarf2expr.c (dwarf_block_to_dwarf_reg) | |
10059 | (dwarf_expr_context::execute_stack_op): Likewise. | |
10060 | * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece): | |
10061 | Likewise. | |
10062 | * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type) | |
10063 | (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value) | |
10064 | (show_entry_values_debug, call_site_to_target_addr) | |
10065 | (func_addr_to_tail_call_list, func_verify_no_selftailcall) | |
10066 | (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value) | |
10067 | (entry_data_value_free_closure, value_of_dwarf_reg_entry) | |
10068 | (value_of_dwarf_block_entry, indirect_pieced_value) | |
10069 | (symbol_needs_eval_context::push_dwarf_reg_entry_value): | |
10070 | (disassemble_dwarf_expression): Likewise. | |
10071 | * dwarf2read.c (process_die, inherit_abstract_dies) | |
10072 | (read_call_site_scope): Likewise. | |
10073 | * gdbtypes.h (struct func_type, struct call_site_parameter) | |
10074 | (struct call_site): Likewise. | |
10075 | * stack.c (read_frame_arg): Likewise. | |
10076 | * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise. | |
10077 | ||
43988095 JK |
10078 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
10079 | ||
10080 | * defs.h (read_unsigned_leb128): New declaration. | |
10081 | * dwarf2loc.c (decode_debug_loclists_addresses): New function. | |
10082 | (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*. | |
10083 | (dwarf2_find_location_expression): Call also | |
10084 | decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length. | |
10085 | * dwarf2loc.h (dwarf2_version): New declaration. | |
10086 | * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str, | |
10087 | rnglists. | |
10088 | (dwarf2_elf_names): Add .debug_loclists, .debug_line_str, | |
10089 | .debug_rnglists. | |
10090 | (struct dwop_section_names): Add loclists_dwo. | |
10091 | (dwop_section_names): Add .debug_loclists.dwo. | |
10092 | (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu. | |
10093 | (struct dwarf2_per_cu_data): Add dwarf_version. | |
10094 | (struct dwo_sections): Add loclists. | |
10095 | (struct attr_abbrev): Add implicit_const. | |
10096 | (read_indirect_line_string): New declaration. | |
10097 | (read_unsigned_leb128): Delete declaration. | |
10098 | (rcuh_kind): New definition. | |
10099 | (read_and_check_comp_unit_head): Change parameter | |
10100 | is_debug_types_section to section_kind. | |
10101 | (dwarf2_locate_sections): Handle loclists, line_str and rnglists. | |
10102 | (read_comp_unit_head): Change parameter abfd to section, add parameter | |
10103 | section_kind. Handle DWARF-5. | |
10104 | (error_check_comp_unit_head): Accept also DWARF version 5. | |
10105 | (read_and_check_comp_unit_head): Change parameter | |
10106 | is_debug_types_section to section_kind. | |
10107 | (read_and_check_type_unit_head): Delete function. | |
10108 | (read_abbrev_offset): Handle DWARF-5. | |
10109 | (create_debug_type_hash_table): Add parameter section_kind. Process | |
10110 | only DW_UT_type. Use signature and type_offset_in_tu from struct | |
10111 | comp_unit_head. | |
10112 | (create_debug_types_hash_table): Update create_debug_type_hash_table | |
10113 | caller. | |
10114 | (create_all_type_units): Call create_debug_type_hash_table. | |
10115 | (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change | |
10116 | read_and_check_type_unit_head caller to read_and_check_comp_unit_head | |
10117 | caller. | |
10118 | (skip_one_die): Handle DW_FORM_implicit_const. | |
10119 | (dwarf2_rnglists_process): New function. | |
10120 | (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5. | |
10121 | (abbrev_table_read_table): Handle DW_FORM_implicit_const. | |
10122 | (read_attribute_value): Handle DW_FORM_implicit_const, | |
10123 | DW_FORM_line_strp. | |
10124 | (read_attribute): Handle DW_FORM_implicit_const. | |
10125 | (read_indirect_string_at_offset_from): New function from | |
10126 | read_indirect_string_at_offset. | |
10127 | (read_indirect_string_at_offset): Call | |
10128 | read_indirect_string_at_offset_from. | |
10129 | (read_indirect_line_string_at_offset): New function. | |
10130 | (read_indirect_string): New function comment. | |
10131 | (read_indirect_line_string): New function. | |
10132 | (read_unsigned_leb128): Make it global. | |
10133 | (dwarf2_string_attr): Handle DWARF-5. | |
10134 | (add_include_dir_stub, read_formatted_entries): New functions. | |
10135 | (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section): | |
10136 | Handle DWARF-5. | |
10137 | (per_cu_header_read_in): Update read_comp_unit_head caller. | |
10138 | (dwarf2_version): New function. | |
10139 | * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and | |
10140 | rnglists. | |
10141 | * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections | |
10142 | fields. | |
10143 | ||
22d2f3ab JK |
10144 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
10145 | ||
10146 | * dwarf2read.c (abbrev_table_read_table): Read the data only once. | |
10147 | ||
5f46c5a5 JK |
10148 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
10149 | ||
10150 | * dwarf2read.c (dwarf2_ranges_process): New function from | |
10151 | dwarf2_ranges_read. | |
10152 | (dwarf2_ranges_read, dwarf2_record_block_ranges): Use | |
10153 | dwarf2_ranges_process. | |
10154 | ||
78d4d2c5 JK |
10155 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
10156 | ||
10157 | * dwarf2read.c (create_debug_type_hash_table): New function from | |
10158 | create_debug_types_hash_table. | |
10159 | (create_debug_types_hash_table): Call create_debug_type_hash_table. | |
10160 | (create_all_type_units, open_and_init_dwo_file): Update | |
10161 | create_debug_types_hash_table callers. | |
10162 | ||
1b076f25 SDJ |
10163 | 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
10164 | ||
10165 | PR gdb/16188 | |
10166 | * fork-child.c (trace_start_error): Fix thinko. va_end should | |
10167 | refer to 'ap', not 'args'. | |
10168 | ||
0db8980c SDJ |
10169 | 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
10170 | Pedro Alves <palves@redhat.com> | |
10171 | ||
10172 | PR gdb/16188 | |
10173 | * darwin-nat.c (darwin_ptrace_me): Check if calls to system | |
10174 | calls succeeded. | |
10175 | * fork-child.c (trace_start_error): New function. | |
10176 | (trace_start_error_with_name): Likewise. | |
10177 | * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded. | |
10178 | * inf-ptrace.c (inf_ptrace_me): Likewise. | |
10179 | * inferior.h (trace_start_error): New prototype. | |
10180 | (trace_start_error_with_name): Likewise. | |
10181 | ||
99e8a4f9 SDJ |
10182 | 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com> |
10183 | ||
10184 | PR gdb/21164 | |
10185 | * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not | |
10186 | NULL before using it. | |
10187 | * symmisc.c (maintenance_print_symbols): Likewise. | |
10188 | (maintenance_print_msymbols): Likewise. | |
10189 | ||
4e746bb6 TW |
10190 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
10191 | ||
10192 | * NEWS: Add record Python bindings entry. | |
10193 | ||
10194 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
10195 | ||
10196 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o, | |
10197 | py-record-full.o. | |
10198 | (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c. | |
10199 | * python/py-record-btrace.c, python/py-record-btrace.h, | |
10200 | python/py-record-full.c, python/py-record-full.h: New file. | |
10201 | * python/py-record.c: Add include for py-record-btrace.h and | |
10202 | py-record-full.h. | |
10203 | (recpy_method, recpy_format, recpy_goto, recpy_replay_position, | |
10204 | recpy_instruction_history, recpy_function_call_history, recpy_begin, | |
10205 | recpy_end): Use functions from py-record-btrace.c and py-record-full.c. | |
10206 | * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t): | |
10207 | New definition. | |
10208 | (gdbpy_initialize_btrace): New export. | |
10209 | * python/python.c (_initialize_python): Add gdbpy_initialize_btrace. | |
10210 | ||
10211 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
10212 | ||
10213 | * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o. | |
10214 | (SUBDIR_PYTHON_SRCS): Add python/py-record.c. | |
10215 | * python/py-record.c: New file. | |
10216 | * python/python-internal.h (gdbpy_start_recording, | |
10217 | gdbpy_current_recording, gdpy_stop_recording, | |
10218 | gdbpy_initialize_record): New export. | |
10219 | * python/python.c (_initialize_python): Add gdbpy_initialize_record. | |
10220 | (python_GdbMethods): Add gdbpy_start_recording, | |
10221 | gdbpy_current_recording and gdbpy_stop_recording. | |
10222 | ||
10223 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
10224 | ||
10225 | * record-btrace.c (record_btrace_record_method): New function. | |
10226 | (init_record_btrace_ops): Initialize to_record_method. | |
10227 | * record-full.c (record_full_record_method): New function. | |
10228 | (init_record_full_ops, init_record_full_core_ops): Add | |
10229 | record_full_record_method. | |
10230 | * record.h (enum record_method): New enum. | |
10231 | * target-debug.h (target_debug_print_enum_record_method: New define. | |
10232 | * target-delegates.c: Regenerate. | |
10233 | * target.c (target_record_method): New function. | |
10234 | * target.h: Include record.h. | |
10235 | (struct target_ops) <to_record_method>: New field. | |
10236 | (target_record_method): New export. | |
10237 | ||
10238 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
10239 | ||
10240 | * record.h (record_start, record_stop): New export. | |
10241 | * record.c (record_start, record_stop): New function. | |
10242 | ||
10243 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
10244 | ||
10245 | * btrace.c (btrace_fetch): Copy function call segments pointer | |
10246 | into a vector. | |
10247 | (btrace_clear): Clear the vector. | |
10248 | (btrace_find_insn_by_number): Use binary search to find the correct | |
10249 | function call segment. | |
10250 | * btrace.h (brace_fun_p): New typedef. | |
10251 | (struct btrace_thread_info) <functions>: New field. | |
10252 | ||
10253 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
10254 | ||
10255 | * record-btrace.c (btrace_ui_out_decode_error): Move most of it ... | |
10256 | * btrace.c (btrace_decode_error): ... here. New function. | |
10257 | * btrace.h (btrace_decode_error): New export. | |
10258 | ||
10259 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
10260 | ||
10261 | * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function. | |
10262 | (ftrace_new_function, btrace_insn_number, btrace_insn_cmp, | |
10263 | btrace_find_insn_by_number): Remove special case for gaps. | |
10264 | * btrace.h (btrace_insn_get_error): New export. | |
10265 | (btrace_insn_number, btrace_find_insn_by_number): Adjust comment. | |
10266 | * record-btrace.c (btrace_insn_history): Print number for gaps. | |
10267 | (record_btrace_info, record_btrace_goto): Handle gaps. | |
10268 | ||
3f77c769 TT |
10269 | 2017-02-14 Tom Tromey <tom@tromey.com> |
10270 | ||
10271 | PR python/13598: | |
10272 | * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt | |
10273 | event. | |
10274 | * python/py-evts.c (gdbpy_initialize_py_events): Add | |
10275 | before_prompt registry. | |
10276 | * python/py-events.h (events_object) <before_prompt>: New field. | |
10277 | ||
4c2c7ac6 MM |
10278 | 2017-02-14 Markus Metzger <markus.t.metzger@intel.com> |
10279 | ||
10280 | * btrace.c (ftrace_new_switch): Preserve up link and flags. | |
10281 | ||
5cf30ebf LM |
10282 | 2017-02-13 Luis Machado <lgustavo@codesourcery.com> |
10283 | ||
10284 | * symfile (_initialize_symfile): Add usage text to the load command's | |
10285 | help text. | |
10286 | ||
26a06916 SM |
10287 | 2017-02-10 Simon Marchi <simon.marchi@ericsson.com> |
10288 | ||
10289 | * utils.c (defaulted_query): Don't query on secondary UIs. | |
10290 | ||
0b145e37 TT |
10291 | 2017-02-10 Tom Tromey <tom@tromey.com> |
10292 | ||
10293 | * rust-lang.c (rust_get_disr_info): Remove unused variable. | |
10294 | ||
2d8365c4 TT |
10295 | 2017-02-10 Tom Tromey <tom@tromey.com> |
10296 | ||
10297 | * python/py-value.c (valpy_richcompare_throw): Remove unnecessary | |
10298 | "cleanup" local. | |
10299 | * python/py-type.c (typy_legacy_template_argument): Remove | |
10300 | unnecessary "cleanup" local. | |
10301 | ||
2bb8f231 TT |
10302 | 2017-02-10 Tom Tromey <tom@tromey.com> |
10303 | ||
10304 | * python/python.c (do_start_initialization): New function, from | |
10305 | _initialize_python. | |
10306 | (_initialize_python): Call do_start_initialization. | |
10307 | * python/py-linetable.c (ltpy_iternext): Use explicit returns, not | |
10308 | goto. | |
10309 | ||
1bdfaf42 TT |
10310 | 2017-02-10 Tom Tromey <tom@tromey.com> |
10311 | ||
10312 | * python/py-prettyprint.c (pretty_print_one_value): Use | |
10313 | gdbpy_ref. | |
10314 | ||
88b6faea TT |
10315 | 2017-02-10 Tom Tromey <tom@tromey.com> |
10316 | ||
10317 | * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref. | |
10318 | * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use | |
10319 | gdbpy_ref. | |
10320 | * python/py-type.c (field_new): Use gdbpy_ref. | |
10321 | * python/py-symtab.c (symtab_and_line_to_sal_object): Use | |
10322 | gdbpy_ref. | |
10323 | * python/py-progspace.c (pspy_new): Use gdbpy_ref. | |
10324 | (py_free_pspace): Likewise. | |
10325 | (pspace_to_pspace_object): Likewise. | |
10326 | * python/py-objfile.c (objfpy_new): Use gdbpy_ref. | |
10327 | (py_free_objfile): Likewise. | |
10328 | (objfile_to_objfile_object): Likewise. | |
10329 | * python/py-inferior.c (delete_thread_object): Use | |
10330 | gdbpy_ref. | |
10331 | (infpy_read_memory): Likewise. | |
10332 | (py_free_inferior): Likewise. | |
10333 | * python/py-evtregistry.c (create_eventregistry_object): Use | |
10334 | gdbpy_ref. | |
10335 | * python/py-event.c (create_event_object): Use gdbpy_ref. | |
10336 | ||
7780f186 TT |
10337 | 2017-02-10 Tom Tromey <tom@tromey.com> |
10338 | ||
10339 | * python/py-ref.h (gdbpy_ref_policy): Now a template. | |
10340 | (gdbpy_ref): Now a template; allow subclasses of PyObject to be | |
10341 | used. | |
10342 | * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c, | |
10343 | python/py-cmd.c, python/py-continueevent.c, python/py-event.c, | |
10344 | python/py-exitedevent.c, python/py-finishbreakpoint.c, | |
10345 | python/py-framefilter.c, python/py-function.c, | |
10346 | python/py-inferior.c, python/py-infevents.c, | |
10347 | python/py-linetable.c, python/py-newobjfileevent.c, | |
10348 | python/py-param.c, python/py-prettyprint.c, python/py-ref.h, | |
10349 | python/py-signalevent.c, python/py-stopevent.c, | |
10350 | python/py-symbol.c, python/py-threadevent.c, python/py-type.c, | |
10351 | python/py-unwind.c, python/py-utils.c, python/py-value.c, | |
10352 | python/py-varobj.c, python/py-xmethods.c, python/python.c, | |
10353 | varobj.c: Change gdbpy_ref to gdbpy_ref<>. | |
10354 | ||
d4b0bb18 TT |
10355 | 2017-02-10 Tom Tromey <tom@tromey.com> |
10356 | ||
10357 | * ui-out.h (ui_out_emit_type): New class. | |
10358 | (ui_out_emit_tuple, ui_out_emit_list): New typedefs. | |
10359 | * python/py-framefilter.c (py_print_single_arg): Use gdb::optional | |
10360 | and ui_out_emit_tuple. | |
10361 | (enumerate_locals): Likewise. | |
10362 | (py_mi_print_variables, py_print_locals, py_print_args): Use | |
10363 | ui_out_emit_list. | |
10364 | (py_print_frame): Use gdb::optional, ui_out_emit_tuple, | |
10365 | ui_out_emit_list. | |
10366 | * common/gdb_optional.h: New file. | |
10367 | ||
f67f945c MG |
10368 | 2017-02-10 Martin Galvan <martingalvan@sourceware.org> |
10369 | ||
10370 | * MAINTAINERS (Write After Approval): Update my e-mail address. | |
10371 | ||
18da0c51 MG |
10372 | 2017-02-10 Martin Galvan <martingalvan@sourceware.org> |
10373 | ||
10374 | PR gdb/21122 | |
10375 | * breakpoint.c (_initialize_breakpoint): Update the help description | |
10376 | of the 'commands' command to indicate that it takes a list argument. | |
10377 | ||
62c14536 SM |
10378 | 2017-02-09 Simon Marchi <simon.marchi@ericsson.com> |
10379 | ||
10380 | * interps.c (current_interp_set_logging): Remove "return". | |
10381 | ||
ff6fa247 GB |
10382 | 2017-02-09 Gary Benson <gbenson@redhat.com> |
10383 | ||
10384 | * symtab.c (add_symtab_completions): Prevent NULL pointer | |
10385 | dereference. | |
10386 | ||
a474bd8e PA |
10387 | 2017-02-08 Pedro Alves <palves@redhat.com> |
10388 | ||
10389 | * interps.c (interp::interp): Remove reference to quiet_p. | |
10390 | (interp_set): Make static. Remove dead "Switching to" output | |
10391 | code. | |
10392 | (interp_quiet_p, interp_set_quiet): Delete. | |
10393 | (interpreter_exec_cmd): Don't set the interpreter quiet. | |
10394 | * interps.h (interp_quiet_p): Make static. | |
10395 | (class interp) <quiet_p>: Remove field | |
10396 | ||
3d7b173c JG |
10397 | 2017-02-08 Jerome Guitton <guitton@adacore.com> |
10398 | ||
604c4576 JG |
10399 | * cli/cli-decode.c (find_command_name_length): Make it extern. |
10400 | * cli/cli-decode.h (find_command_name_length): Declare. | |
10401 | * cli/cli-script.c (command_name_equals, line_first_arg): | |
10402 | New functions. | |
10403 | (process_next_line): Use cli-decode to parse command names. | |
10404 | (build_command_line): Make args a constant pointer. | |
10405 | ||
10406 | 2017-02-08 Jerome Guitton <guitton@adacore.com> | |
6dbb839a | 10407 | |
3d7b173c JG |
10408 | * cli-decode.c (lookup_cmd_1, lookup_cmd_composition): |
10409 | Remove case-insensitive search. | |
10410 | ||
1291063d JM |
10411 | 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com> |
10412 | ||
10413 | * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator | |
10414 | at the end of the line. Avoids an ARI warning. | |
10415 | ||
20b477a7 LM |
10416 | 2017-02-06 Luis Machado <lgustavo@codesourcery.com> |
10417 | ||
10418 | * NEWS: Mention support for record/replay of Intel 64 rdrand and | |
10419 | rdseed instructions. | |
10420 | i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed. | |
10421 | ||
3f7b46f2 IR |
10422 | 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com> |
10423 | ||
10424 | PR tdep/20936 | |
10425 | Provide and use sparc32 and sparc64 target description XML files. | |
10426 | * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml, | |
10427 | features/sparc/sparc32-fpu.xml: New files for sparc 32-bit. | |
10428 | * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml, | |
10429 | features/sparc/sparc64-fpu.xml: New files for sparc 64-bit. | |
10430 | * features/sparc/sparc32-solaris.xml: New file. | |
10431 | * features/sparc/sparc64-solaris.xml: New file. | |
10432 | * features/sparc/sparc32-solaris.c: Generated. | |
10433 | * features/sparc/sparc64-solaris.c: Generated. | |
10434 | * sparc-tdep.h: Account for differences in target descriptions. | |
10435 | * sparc-tdep.c (sparc32_register_name): Use target provided registers. | |
10436 | (sparc32_register_type): Use target provided registers. | |
10437 | (validate_tdesc_registers): New function. | |
10438 | (sparc32_gdbarch_init): Use tdesc_has_registers. | |
10439 | Set pseudoregister functions. | |
10440 | * sparc64-tdep.c (sparc64_register_name): Use target provided registers. | |
10441 | (sparc64_register_type): Use target provided registers. | |
10442 | (sparc64_init_abi): Set pseudoregister functions. | |
10443 | ||
f0fd41c1 TT |
10444 | 2017-02-03 Tom Tromey <tom@tromey.com> |
10445 | ||
10446 | PR rust/21097: | |
10447 | * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums | |
10448 | with a single member. | |
10449 | ||
d6f9b0fb PA |
10450 | 2017-02-03 Pedro Alves <palves@redhat.com> |
10451 | ||
10452 | * cli/cli-interp.c (cli_interp_base::cli_interp_base) | |
10453 | (cli_interp_base::~cli_interp_base): New. | |
10454 | (cli_interp): New struct. | |
10455 | (as_cli_interp): Cast the interp itself to cli_interp. | |
10456 | (cli_interpreter_pre_command_loop): Rename to ... | |
10457 | (cli_interp_base::pre_command_loop): ... this. Remove 'self' | |
10458 | parameter. | |
10459 | (cli_interpreter_init): Rename to ... | |
10460 | (cli_interp::init): ... this. Remove 'self' parameter. Use | |
10461 | boolean. Make extern. | |
10462 | (cli_interpreter_resume): Rename to ... | |
10463 | (cli_interp::resume): ... this. Remove 'data' parameter. Make | |
10464 | extern. | |
10465 | (cli_interpreter_suspend): Rename to ... | |
10466 | (cli_interp::suspend): ... this. Remove 'data' parameter. Make | |
10467 | extern. | |
10468 | (cli_interpreter_exec): Rename to ... | |
10469 | (cli_interp::exec): ... this. Remove 'data' parameter. Make | |
10470 | extern. | |
10471 | (cli_interpreter_supports_command_editing): Rename to ... | |
10472 | (cli_interp_base::supports_command_editing): ... this. Remove | |
10473 | 'interp' parameter. Make extern. | |
10474 | (cli_ui_out): Rename to ... | |
10475 | (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter. | |
10476 | Make extern. | |
10477 | (cli_set_logging): Rename to ... | |
10478 | (cli_interp_base::set_logging): ... this. Remove 'interp' | |
10479 | parameter. Make extern. | |
10480 | (cli_interp_procs): Delete. | |
10481 | (cli_interp_factory): Adjust to use "new". | |
10482 | * cli/cli-interp.h: Include "interps.h". | |
10483 | (struct cli_interp_base): New struct. | |
10484 | * interps.c (struct interp): Delete. Fields moved to interps.h. | |
10485 | (interp_new): Delete. | |
10486 | (interp::interp, interp::~interp): New. | |
10487 | (interp_set): Use bool, and return void. Assume the interpreter | |
10488 | has suspend, init and resume methods, and that the all return | |
10489 | void. | |
10490 | (set_top_level_interpreter): interp_set returns void. | |
10491 | (interp_ui_out): Adapt. | |
10492 | (current_interp_set_logging): Adapt. | |
10493 | (interp_data): Delete. | |
10494 | (interp_pre_command_loop, interp_supports_command_editing): Adapt. | |
10495 | (interp_exec): Adapt. | |
10496 | (top_level_interpreter_data): Delete. | |
10497 | * interps.h (interp_init_ftype, interp_resume_ftype) | |
10498 | (interp_suspend_ftype, interp_exec_ftype) | |
10499 | (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete. | |
10500 | (class interp): New. | |
10501 | (interp_new): Delete. | |
10502 | (interp_set): Now returns void. Use bool. | |
10503 | (interp_data, top_level_interpreter_data): Delete. | |
10504 | * mi/mi-common.h: Include interps.h. | |
10505 | (class mi_interp): Inherit from interp. Define a ctor. Declare | |
10506 | init, resume, suspect, exec, interp_ui_out, set_logging and | |
10507 | pre_command_loop methods. | |
10508 | * mi/mi-interp.c (as_mi_interp): Cast the interp itself. | |
10509 | (mi_interpreter_init): Rename to ... | |
10510 | (mi_interp::init): ... this. Remove the 'interp' parameter, use | |
10511 | bool, return void and make extern. Adjust. | |
10512 | (mi_interpreter_resume): ... Rename to ... | |
10513 | (mi_interp::resume): ... this. Remove the 'data' parameter, | |
10514 | return void and make extern. Adjust. | |
10515 | (mi_interpreter_suspend): ... Rename to ... | |
10516 | (mi_interp::suspend): ... this. Remove the 'data' parameter, | |
10517 | return void and make extern. Adjust. | |
10518 | (mi_interpreter_exec): ... Rename to ... | |
10519 | (mi_interp::exec): ... this. Remove the 'data' parameter and make | |
10520 | extern. Adjust. | |
10521 | (mi_interpreter_pre_command_loop): ... Rename to ... | |
10522 | (mi_interp::pre_command_loop): ... this. Remove the 'self' | |
10523 | parameter and make extern. | |
10524 | (mi_on_normal_stop_1): Adjust. | |
10525 | (mi_ui_out): Rename to ... | |
10526 | (mi_interp::interp_ui_out): ... this. Remove the 'interp' | |
10527 | parameter and make extern. Adjust. | |
10528 | (mi_set_logging): Rename to ... | |
10529 | (mi_interp::set_logging): ... this. Remove the 'interp' | |
10530 | parameter and make extern. Adjust. | |
10531 | (mi_interp_procs): Delete. | |
10532 | (mi_interp_factory): Adjust to use 'new'. | |
10533 | * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command) | |
10534 | (mi_print_exception, mi_execute_command, mi_load_progress): | |
10535 | Adjust. | |
10536 | * tui/tui-interp.c (tui_interp): New class. | |
10537 | (as_tui_interp): Return a tui_interp pointer. | |
10538 | (tui_on_normal_stop, tui_on_signal_received) | |
10539 | (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited) | |
10540 | (tui_on_no_history, tui_on_user_selected_context_changed): Adjust | |
10541 | to use interp::interp_ui_out. | |
10542 | (tui_init): Rename to ... | |
10543 | (tui_interp::init): ... this. Remove the 'self' parameter, use | |
10544 | bool, return void and make extern. Adjust. | |
10545 | (tui_resume): Rename to ... | |
10546 | (tui_interp::resume): ... this. Remove the 'data' parameter, | |
10547 | return void and make extern. Adjust. | |
10548 | (tui_suspend): Rename to ... | |
10549 | (tui_interp::suspend): ... this. Remove the 'data' parameter, | |
10550 | return void and make extern. Adjust. | |
10551 | (tui_ui_out): Rename to ... | |
10552 | (tui_interp::interp_ui_out): ... this. Remove the 'self' | |
10553 | parameter, and make extern. Adjust. | |
10554 | (tui_exec): Rename to ... | |
10555 | (tui_interp::exec): ... this. Remove the 'data' parameter and | |
10556 | make extern. | |
10557 | (tui_interp_procs): Delete. | |
10558 | (tui_interp_factory): Use "new". | |
10559 | ||
65c40c95 TT |
10560 | 2017-02-02 Tom Tromey <tom@tromey.com> |
10561 | ||
10562 | * rust-exp.y (ends_raw_string, space_then_number) | |
10563 | (rust_identifier_start_p): Return bool. | |
10564 | * rust-lang.c (rust_tuple_type_p, rust_underscore_fields) | |
10565 | (rust_tuple_struct_type_p, rust_tuple_variant_type_p) | |
10566 | (rust_slice_type_p, rust_range_type_p, rust_u8_type_p) | |
10567 | (rust_chartype_p): Return bool. | |
10568 | (val_print_struct, rust_print_struct_def, rust_print_type): | |
10569 | Update. | |
10570 | * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p): | |
10571 | Return bool. | |
10572 | ||
b50f188d TT |
10573 | 2017-02-02 Tom Tromey <tom@tromey.com> |
10574 | ||
10575 | * rust-lang.c: Reindent. | |
10576 | ||
03c85b11 TT |
10577 | 2017-02-02 Tom Tromey <tom@tromey.com> |
10578 | ||
10579 | * rust-lang.h (rust_crate_for_block): Update. | |
10580 | * rust-lang.c (rust_crate_for_block): Return std::string. | |
10581 | (rust_get_disr_info): Use std:;string, not | |
10582 | gdb::unique_xmalloc_ptr. | |
10583 | * rust-exp.y (crate_name): Update. | |
10584 | ||
9b6da501 PA |
10585 | 2017-02-02 Pedro Alves <palves@redhat.com> |
10586 | ||
10587 | * disasm-selftests.c (print_one_insn_test): Move the "verbose" | |
10588 | field out of gdb_disassembler_test and make it static. | |
10589 | ||
ec4cb20b PA |
10590 | 2017-02-02 Pedro Alves <palves@redhat.com> |
10591 | ||
10592 | * mi/mi-common.h (struct mi_interp): Delete the mi2_interp, | |
10593 | mi1_interp and mi_interp fields. | |
10594 | ||
5be5dbf0 PA |
10595 | 2017-02-02 Pedro Alves <palves@redhat.com> |
10596 | ||
616268b6 PA |
10597 | * cli/cli-interp.c (struct saved_output_files, saved_output): |
10598 | Moved from cli/cli-logging.c. | |
10599 | (cli_set_logging): New function. | |
10600 | (cli_interp_procs): Install cli_set_logging. | |
10601 | * cli/cli-interp.h (make_logging_output, cli_set_logging): | |
10602 | Declare. | |
10603 | * cli/cli-logging.c (struct saved_output_files, saved_output): | |
10604 | Moved to cli/cli-interp.c. | |
10605 | (pop_output_files): Don't save outputs here. | |
10606 | (make_logging_output): New function. | |
10607 | (handle_redirections): Don't build tee nor save previous outputs | |
10608 | here. | |
10609 | * interps.c (current_interp_set_logging): Change prototype. | |
10610 | Assume there's always a set_logging_proc method installed. | |
10611 | * interps.h (interp_set_logging_ftype): Change prototype. | |
10612 | (current_interp_set_logging): Change prototype and adjust comment. | |
10613 | * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to | |
10614 | use make_logging_output. | |
10615 | * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging. | |
10616 | 2017-02-02 Pedro Alves <palves@redhat.com> | |
10617 | ||
5be5dbf0 PA |
10618 | * cli/cli-logging.c (maybe_warn_already_logging): New factored out |
10619 | from ... | |
10620 | (set_logging_overwrite): ... here. | |
10621 | (logging_no_redirect_file): Delete. | |
10622 | (set_logging_redirect): Don't handle redirection on the fly. | |
10623 | Instead warn that "logging off" / "logging on" is necessary. | |
10624 | (pop_output_files): Delete references to logging_no_redirect_file. | |
10625 | (show_logging_command): Always speak in terms of what will happen | |
10626 | once logging is reenabled. | |
10627 | ||
c99cc448 PA |
10628 | 2017-02-02 Pedro Alves <palves@redhat.com> |
10629 | ||
10630 | * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment. | |
10631 | ||
8b172ce7 PA |
10632 | 2017-02-02 Pedro Alves <palves@redhat.com> |
10633 | ||
10634 | * disasm.c (gdb_pretty_print_insn): Rename to ... | |
10635 | (gdb_pretty_print_disassembler::pretty_print_insn): ... this. | |
10636 | Remove gdbarch parameter. Adapt to clear the object's buffers | |
10637 | instead of allocating new buffers, and to print using the object's | |
10638 | gdb_disassembler instead of calling gdb_print_insn. | |
10639 | (dump_insns): Use gdb_pretty_print_disassembler. | |
10640 | * disasm.h (gdb_pretty_print_insn): Delete declaration. | |
10641 | (gdb_pretty_print_disassembler): New class. | |
10642 | * record-btrace.c (btrace_insn_history): Use | |
10643 | gdb_pretty_print_disassembler. | |
10644 | ||
d7e74731 PA |
10645 | 2017-02-02 Pedro Alves <palves@redhat.com> |
10646 | ||
10647 | * ada-lang.c (type_as_string): Use string_file. | |
10648 | * ada-valprint.c (ada_print_floating): Use string_file. | |
10649 | * ada-varobj.c (ada_varobj_scalar_image) | |
10650 | (ada_varobj_get_value_image): Use string_file. | |
10651 | * aix-thread.c (aix_thread_extra_thread_info): Use string_file. | |
10652 | * arm-tdep.c (_initialize_arm_tdep): Use string_printf. | |
10653 | * breakpoint.c (update_inserted_breakpoint_locations) | |
10654 | (insert_breakpoint_locations, reattach_breakpoints) | |
10655 | (print_breakpoint_location, print_one_detail_ranged_breakpoint) | |
10656 | (print_it_watchpoint): Use string_file. | |
10657 | (save_breakpoints): Use stdio_file. | |
10658 | * c-exp.y (oper): Use string_file. | |
10659 | * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and | |
10660 | tee_file. | |
10661 | (pop_output_files): Use delete. | |
10662 | (handle_redirections): Use stdio_file and tee_file. | |
10663 | * cli/cli-setshow.c (do_show_command): Use string_file. | |
10664 | * compile/compile-c-support.c (c_compute_program): Use | |
10665 | string_file. | |
10666 | * compile/compile-c-symbols.c (generate_vla_size): Take a | |
10667 | 'string_file &' instead of a 'ui_file *'. | |
10668 | (generate_c_for_for_one_variable): Take a 'string_file &' instead | |
10669 | of a 'ui_file *'. Use string_file. | |
10670 | (generate_c_for_variable_locations): Take a 'string_file &' | |
10671 | instead of a 'ui_file *'. | |
10672 | * compile/compile-internal.h (generate_c_for_for_one_variable): | |
10673 | Take a 'string_file &' instead of a 'ui_file *'. | |
10674 | * compile/compile-loc2c.c (push, pushf, unary, binary) | |
10675 | (print_label, pushf_register_address, pushf_register) | |
10676 | (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a | |
10677 | 'ui_file *'. Adjust. | |
10678 | * compile/compile.c (compile_to_object): Use string_file. | |
10679 | * compile/compile.h (compile_dwarf_expr_to_c) | |
10680 | (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a | |
10681 | 'ui_file *'. | |
10682 | * cp-support.c (inspect_type): Use string_file and obstack_copy0. | |
10683 | (replace_typedefs_qualified_name): Use string_file and | |
10684 | obstack_copy0. | |
10685 | * disasm.c (gdb_pretty_print_insn): Use string_file. | |
10686 | (gdb_disassembly): Adjust reference the null_stream global. | |
10687 | (do_ui_file_delete): Delete. | |
10688 | (gdb_insn_length): Use null_stream. | |
10689 | * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file. | |
10690 | * dwarf2loc.c (dwarf2_compile_property_to_c) | |
10691 | (locexpr_generate_c_location, loclist_generate_c_location): Take a | |
10692 | 'string_file &' instead of a 'ui_file *'. | |
10693 | * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise. | |
10694 | * dwarf2read.c (do_ui_file_peek_last): Delete. | |
10695 | (dwarf2_compute_name): Use string_file. | |
10696 | * event-top.c (gdb_setup_readline): Use stdio_file. | |
10697 | * gdbarch.sh (verify_gdbarch): Use string_file. | |
10698 | * gdbtypes.c (safe_parse_type): Use null_stream. | |
10699 | * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use | |
10700 | string_file. | |
10701 | * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a | |
10702 | 'string_file *' instead of a 'ui_file *'. | |
10703 | (gdbscm_arch_disassemble): Use string_file. | |
10704 | * guile/scm-frame.c (frscm_print_frame_smob): Use string_file. | |
10705 | * guile/scm-ports.c (class ioscm_file_port): Now a class that | |
10706 | inherits from ui_file. | |
10707 | (ioscm_file_port_delete, ioscm_file_port_rewind) | |
10708 | (ioscm_file_port_put): Delete. | |
10709 | (ioscm_file_port_write): Rename to ... | |
10710 | (ioscm_file_port::write): ... this. Remove file_port_magic | |
10711 | checks. | |
10712 | (ioscm_file_port_new): Delete. | |
10713 | (ioscm_with_output_to_port_worker): Use ioscm_file_port and | |
10714 | ui_file_up. | |
10715 | * guile/scm-type.c (tyscm_type_name): Use string_file. | |
10716 | * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print): | |
10717 | Use string_file. | |
10718 | * infcmd.c (print_return_value_1): Use string_file. | |
10719 | * infrun.c (print_target_wait_results): Use string_file. | |
10720 | * language.c (add_language): Use string_file. | |
10721 | * location.c (explicit_to_string_internal): Use string_file. | |
10722 | * main.c (captured_main_1): Use null_file. | |
10723 | * maint.c (maintenance_print_architecture): Use stdio_file. | |
10724 | * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file. | |
10725 | * mi/mi-common.h (struct mi_interp) <out, err, log, targ, | |
10726 | event_channel>: Change type to mi_console_file pointer. | |
10727 | * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush) | |
10728 | (mi_console_file_delete): Delete. | |
10729 | (struct mi_console_file): Delete. | |
10730 | (mi_console_file_magic): Delete. | |
10731 | (mi_console_file_new): Delete. | |
10732 | (mi_console_file::mi_console_file): New. | |
10733 | (mi_console_file_delete): Delete. | |
10734 | (mi_console_file_fputs): Delete. | |
10735 | (mi_console_file::write): New. | |
10736 | (mi_console_raw_packet): Delete. | |
10737 | (mi_console_file::flush): New. | |
10738 | (mi_console_file_flush): Delete. | |
10739 | (mi_console_set_raw): Rename to ... | |
10740 | (mi_console_file::set_raw): ... this. | |
10741 | * mi/mi-console.h (class mi_console_file): New class. | |
10742 | (mi_console_file_new, mi_console_set_raw): Delete. | |
10743 | * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file. | |
10744 | (mi_set_logging): Use delete and tee_file. Adjust. | |
10745 | * mi/mi-main.c (output_register): Use string_file. | |
10746 | (mi_cmd_data_evaluate_expression): Use string_file. | |
10747 | (mi_cmd_data_read_memory): Use string_file. | |
10748 | (mi_cmd_execute, print_variable_or_computed): Use string_file. | |
10749 | * mi/mi-out.c (mi_ui_out::main_stream): New. | |
10750 | (mi_ui_out::rewind): Use main_stream and | |
10751 | string_file. | |
10752 | (mi_ui_out::put): Use main_stream and string_file. | |
10753 | (mi_ui_out::mi_ui_out): Remove 'stream' parameter. | |
10754 | Allocate a 'string_file' instead. | |
10755 | (mi_out_new): Don't allocate a mem_fileopen stream here. | |
10756 | * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter. | |
10757 | (mi_ui_out::main_stream): Declare method. | |
10758 | * printcmd.c (eval_command): Use string_file. | |
10759 | * psymtab.c (maintenance_print_psymbols): Use stdio_file. | |
10760 | * python/py-arch.c (archpy_disassemble): Use string_file. | |
10761 | * python/py-breakpoint.c (bppy_get_commands): Use string_file. | |
10762 | * python/py-frame.c (frapy_str): Use string_file. | |
10763 | * python/py-framefilter.c (py_print_type, py_print_single_arg): | |
10764 | Use string_file. | |
10765 | * python/py-type.c (typy_str): Use string_file. | |
10766 | * python/py-unwind.c (unwind_infopy_str): Use string_file. | |
10767 | * python/py-value.c (valpy_str): Use string_file. | |
10768 | * record-btrace.c (btrace_insn_history): Use string_file. | |
10769 | * regcache.c (regcache_print): Use stdio_file. | |
10770 | * reggroups.c (maintenance_print_reggroups): Use stdio_file. | |
10771 | * remote.c (escape_buffer): Use string_file. | |
10772 | * rust-lang.c (rust_get_disr_info): Use string_file. | |
10773 | * serial.c (serial_open_ops_1): Use stdio_file. | |
10774 | (do_serial_close): Use delete. | |
10775 | * stack.c (print_frame_arg): Use string_file. | |
10776 | (print_frame_args): Remove local mem_fileopen stream, not used. | |
10777 | (print_frame): Use string_file. | |
10778 | * symmisc.c (maintenance_print_symbols): Use stdio_file. | |
10779 | * symtab.h (struct symbol_computed_ops) <generate_c_location>: | |
10780 | Take a 'string_file *' instead of a 'ui_file *'. | |
10781 | * top.c (new_ui): Use stdio_file and stderr_file. | |
10782 | (free_ui): Use delete. | |
10783 | (execute_command_to_string): Use string_file. | |
10784 | (quit_confirm): Use string_file. | |
10785 | * tracepoint.c (collection_list::append_exp): Use string_file. | |
10786 | * tui/tui-disasm.c (tui_disassemble): Use string_file. | |
10787 | * tui/tui-file.c: Don't include "ui-file.h". | |
10788 | (enum streamtype, struct tui_stream): Delete. | |
10789 | (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen) | |
10790 | (tui_file_isatty, tui_file_rewind, tui_file_put): Delete. | |
10791 | (tui_file::tui_file): New method. | |
10792 | (tui_file_fputs): Delete. | |
10793 | (tui_file_get_strbuf): Delete. | |
10794 | (tui_file::puts): New method. | |
10795 | (tui_file_adjust_strbuf): Delete. | |
10796 | (tui_file_flush): Delete. | |
10797 | (tui_file::flush): New method. | |
10798 | * tui/tui-file.h: Tweak intro comment. | |
10799 | Include ui-file.h. | |
10800 | (tui_fileopen, tui_sfileopen, tui_file_get_strbuf) | |
10801 | (tui_file_adjust_strbuf): Delete declarations. | |
10802 | (class tui_file): New class. | |
10803 | * tui/tui-io.c (tui_initialize_io): Use tui_file. | |
10804 | * tui/tui-regs.c (tui_restore_gdbout): Use delete. | |
10805 | (tui_register_format): Use string_stream. | |
10806 | * tui/tui-stack.c (tui_make_status_line): Use string_file. | |
10807 | (tui_get_function_from_frame): Use string_file. | |
10808 | * typeprint.c (type_to_string): Use string_file. | |
10809 | * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete. | |
10810 | (null_stream): New global. | |
10811 | (ui_file_delete): Delete. | |
10812 | (ui_file::ui_file): New. | |
10813 | (null_file_isatty): Delete. | |
10814 | (ui_file::~ui_file): New. | |
10815 | (null_file_rewind): Delete. | |
10816 | (ui_file::printf): New. | |
10817 | (null_file_put): Delete. | |
10818 | (null_file_flush): Delete. | |
10819 | (ui_file::putstr): New. | |
10820 | (null_file_write): Delete. | |
10821 | (ui_file::putstrn): New. | |
10822 | (null_file_read): Delete. | |
10823 | (ui_file::putc): New. | |
10824 | (null_file_fputs): Delete. | |
10825 | (null_file_write_async_safe): Delete. | |
10826 | (ui_file::vprintf): New. | |
10827 | (null_file_delete): Delete. | |
10828 | (null_file::write): New. | |
10829 | (null_file_fseek): Delete. | |
10830 | (null_file::puts): New. | |
10831 | (ui_file_data): Delete. | |
10832 | (null_file::write_async_safe): New. | |
10833 | (gdb_flush, ui_file_isatty): Adjust. | |
10834 | (ui_file_put, ui_file_rewind): Delete. | |
10835 | (ui_file_write): Adjust. | |
10836 | (ui_file_write_for_put): Delete. | |
10837 | (ui_file_write_async_safe, ui_file_read): Adjust. | |
10838 | (ui_file_fseek): Delete. | |
10839 | (fputs_unfiltered): Adjust. | |
10840 | (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind) | |
10841 | (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe) | |
10842 | (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek) | |
10843 | (set_ui_file_data): Delete. | |
10844 | (string_file::~string_file, string_file::write) | |
10845 | (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup) | |
10846 | (do_ui_file_as_string, ui_file_as_string): Delete. | |
10847 | (do_ui_file_obsavestring, ui_file_obsavestring): Delete. | |
10848 | (struct mem_file): Delete. | |
10849 | (mem_file_new): Delete. | |
10850 | (stdio_file::stdio_file): New. | |
10851 | (mem_file_delete): Delete. | |
10852 | (stdio_file::stdio_file): New. | |
10853 | (mem_fileopen): Delete. | |
10854 | (stdio_file::~stdio_file): New. | |
10855 | (mem_file_rewind): Delete. | |
10856 | (stdio_file::set_stream): New. | |
10857 | (mem_file_put): Delete. | |
10858 | (stdio_file::open): New. | |
10859 | (mem_file_write): Delete. | |
10860 | (stdio_file_magic, struct stdio_file): Delete. | |
10861 | (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete. | |
10862 | (stdio_file::flush): New. | |
10863 | (stdio_file_read): Rename to ... | |
10864 | (stdio_file::read): ... this. Adjust. | |
10865 | (stdio_file_write): Rename to ... | |
10866 | (stdio_file::write): ... this. Adjust. | |
10867 | (stdio_file_write_async_safe): Rename to ... | |
10868 | (stdio_file::write_async_safe) ... this. Adjust. | |
10869 | (stdio_file_fputs): Rename to ... | |
10870 | (stdio_file::puts) ... this. Adjust. | |
10871 | (stdio_file_isatty): Delete. | |
10872 | (stdio_file_fseek): Delete. | |
10873 | (stdio_file::isatty): New. | |
10874 | (stderr_file_write): Rename to ... | |
10875 | (stderr_file::write) ... this. Adjust. | |
10876 | (stderr_file_fputs): Rename to ... | |
10877 | (stderr_file::puts) ... this. Adjust. | |
10878 | (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete. | |
10879 | (stderr_file::stderr_file): New. | |
10880 | (tee_file_magic): Delete. | |
10881 | (struct tee_file): Delete. | |
10882 | (tee_file::tee_file): New. | |
10883 | (tee_file_new): Delete. | |
10884 | (tee_file::~tee_file): New. | |
10885 | (tee_file_delete): Delete. | |
10886 | (tee_file_flush): Rename to ... | |
10887 | (tee_file::flush): ... this. Adjust. | |
10888 | (tee_file_write): Rename to ... | |
10889 | (tee_file::write): ... this. Adjust. | |
10890 | (tee_file::write_async_safe): New. | |
10891 | (tee_file_fputs): Rename to ... | |
10892 | (tee_file::puts): ... this. Adjust. | |
10893 | (tee_file_isatty): Rename to ... | |
10894 | (tee_file::isatty): ... this. Adjust. | |
10895 | * ui-file.h (struct obstack, struct ui_file): Don't | |
10896 | forward-declare. | |
10897 | (ui_file_new, ui_file_flush_ftype, set_ui_file_flush) | |
10898 | (ui_file_write_ftype) | |
10899 | (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs) | |
10900 | (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe) | |
10901 | (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype) | |
10902 | (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind) | |
10903 | (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put) | |
10904 | (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype) | |
10905 | (set_ui_file_fseek): Delete. | |
10906 | (ui_file_data, ui_file_delete, ui_file_rewind) | |
10907 | (struct ui_file): New. | |
10908 | (ui_file_up): New. | |
10909 | (class null_file): New. | |
10910 | (null_stream): Declare. | |
10911 | (ui_file_write_for_put, ui_file_put): Delete. | |
10912 | (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring): | |
10913 | Delete. | |
10914 | (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen) | |
10915 | (gdb_fopen, tee_file_new): Delete. | |
10916 | (struct string_file): New. | |
10917 | (struct stdio_file): New. | |
10918 | (stdio_file_up): New. | |
10919 | (struct stderr_file): New. | |
10920 | (class tee_file): New. | |
10921 | * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead | |
10922 | of a 'ui_file *'. Adjust. | |
10923 | * ui-out.h (class ui_out) <field_stream>: Likewise. | |
10924 | * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete) | |
10925 | (null_stream): Delete. | |
10926 | (error_stream): Take a 'string_file &' instead of a 'ui_file *'. | |
10927 | Adjust. | |
10928 | * utils.h (struct ui_file): Delete forward declaration.. | |
10929 | (make_cleanup_ui_file_delete, null_stream): Delete declarations. | |
10930 | (error_stream): Take a 'string_file &' instead of a | |
10931 | 'ui_file *'. | |
10932 | * varobj.c (varobj_value_get_print_value): Use string_file. | |
10933 | * xtensa-tdep.c (xtensa_verify_config): Use string_file. | |
10934 | * gdbarch.c: Regenerate. | |
10935 | ||
187808b0 PA |
10936 | 2017-02-02 Pedro Alves <palves@redhat.com> |
10937 | ||
10938 | * disasm.c (gdb_disassembler::pretty_print_insn): Rename to... | |
10939 | (gdb_pretty_print_insn): ... this. Now a free function. Add back | |
10940 | a 'gdbarch' parameter. Allocate a mem_fileopen stream here. | |
10941 | Adjust to call gdb_print_insn instead of | |
10942 | gdb_disassembler::print_insn. | |
10943 | (dump_insns, do_mixed_source_and_assembly_deprecated) | |
10944 | (do_mixed_source_and_assembly, do_assembly_only): Add back a | |
10945 | 'gdbarch' parameter. Remove gdb_disassembler parameter. | |
10946 | (gdb_disassembly): Don't allocate a gdb_disassembler here. | |
10947 | * disasm.h (gdb_disassembler::pretty_print_insn): Delete | |
10948 | declaration. | |
10949 | (gdb_pretty_print_insn): Re-add declaration. | |
10950 | * record-btrace.c (btrace_insn_history): Don't allocate a | |
10951 | gdb_disassembler here. Adjust to call gdb_pretty_print_insn. | |
10952 | ||
7a8eb317 SM |
10953 | 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca> |
10954 | ||
10955 | * disasm.h (gdb_disassembly): Remove file_string parameter. | |
10956 | * disasm.c (gdb_disassembly): Likewise. | |
10957 | * cli/cli-cmds.c (print_disassembly): Adapt. | |
10958 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise. | |
10959 | * stack.c (do_gdb_disassembly): Likewise. | |
10960 | ||
7346ef59 AA |
10961 | 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10962 | ||
10963 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For | |
10964 | DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian | |
10965 | targets. And if the implicit value is longer than needed, extract | |
10966 | the first bytes instead of the "least significant" ones. | |
10967 | ||
cd4007e4 MM |
10968 | 2017-02-01 Markus Metzger <markus.t.metzger@intel.com> |
10969 | ||
10970 | * btrace.c (btrace_enable): Do not call btrace_add_pc for | |
10971 | BTRACE_FORMAT_PT or if can_access_registers_ptid returns false. | |
10972 | (btrace_fetch): Assert can_access_registers_ptid. | |
10973 | * record-btrace.c (require_btrace_thread, record_btrace_info): Call | |
10974 | validate_registers_access. | |
10975 | ||
cf77c34e MM |
10976 | 2017-02-01 Markus Metzger <markus.t.metzger@intel.com> |
10977 | ||
10978 | * gdbthread.h (can_access_registers_ptid): New. | |
10979 | * thread.c (can_access_registers_ptid): New. | |
10980 | ||
be85ce7d PA |
10981 | 2017-02-01 Pedro Alves <palves@redhat.com> |
10982 | ||
10983 | * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length. | |
10984 | ||
29b0b251 PA |
10985 | 2017-01-31 Pedro Alves <palves@redhat.com> |
10986 | ||
10987 | * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified): | |
10988 | Fix typos. | |
10989 | ||
289b5b24 PA |
10990 | 2017-01-31 Pedro Alves <palves@redhat.com> |
10991 | ||
10992 | * stack.c (print_frame_args): Remove local mem_fileopen stream, | |
10993 | not used. | |
10994 | ||
b47413b4 PA |
10995 | 2017-01-31 Pedro Alves <palves@redhat.com> |
10996 | ||
10997 | * varobj.c (varobj_value_get_print_value): Remove xstrdup call. | |
10998 | ||
60adb36c PA |
10999 | 2017-01-31 Pedro Alves <palves@redhat.com> |
11000 | ||
11001 | * common/scoped_restore.h | |
11002 | (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and | |
11003 | change the value's parameter type to T2. | |
11004 | (make_scoped_restore): Likewise. | |
11005 | ||
2735833d WT |
11006 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
11007 | Richard Henderson <rth@redhat.com> | |
11008 | ||
11009 | * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define. | |
11010 | (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE | |
11011 | GS_BASE for older kernels. | |
11012 | (amd64_linux_store_inferior_registers): Add case to store FS_BASE | |
11013 | GS_BASE for older kernels. | |
11014 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE | |
11015 | and GS_BASE to the offset table. | |
11016 | (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the | |
11017 | system register group. | |
11018 | * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case | |
11019 | for older kernels. | |
11020 | * amd64-tdep.c (amd64_init_abi): Add segment registers for the | |
11021 | amd64 ABI. | |
11022 | * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and | |
11023 | AMD64_GSBASE_REGNUM. | |
11024 | (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1. | |
11025 | * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat) | |
11026 | (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat) | |
11027 | (x32-avx-linux.dat, x32-avx512-linux.dat): Add | |
11028 | i386/64bit-segments.xml in those rules. | |
11029 | * features/i386/64bit-segments.xml: New file. | |
11030 | * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml. | |
11031 | * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml. | |
11032 | * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml. | |
11033 | * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml. | |
11034 | * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml. | |
11035 | * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml. | |
11036 | * features/i386/amd64-linux.xml: Add 64bit-segments.xml. | |
11037 | * features/i386/amd64-avx-linux.c: Regenerated. | |
11038 | * features/i386/amd64-avx-mpx-linux.c: Regenerated. | |
11039 | * features/i386/amd64-avx-mpx.c: Regenerated. | |
11040 | * features/i386/amd64-avx512-linux.c: Regenerated. | |
11041 | * features/i386/amd64-linux.c: Regenerated. | |
11042 | * features/i386/amd64-mpx-linux.c: Regenerated. | |
11043 | * features/i386/i386-avx-mpx-linux.c: Regenerated. | |
11044 | * features/i386/i386-avx-mpx.c: Regenerated. | |
11045 | * features/i386/x32-avx-linux.c: Regenerated. | |
11046 | * features/i386/x32-avx512-linux.c: Regenerated. | |
11047 | * regformats/i386/amd64-avx-linux.dat: Regenerated. | |
11048 | * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated. | |
11049 | * regformats/i386/amd64-avx512-linux.dat: Regenerated. | |
11050 | * regformats/i386/amd64-linux.dat: Regenerated. | |
11051 | * regformats/i386/amd64-mpx-linux.dat: Regenerated. | |
11052 | * regformats/i386/x32-avx-linux.dat: Regenerated. | |
11053 | * regformats/i386/x32-avx512-linux.dat: Regenerated. | |
11054 | * regformats/i386/x32-linux.dat: Regenerated. | |
11055 | ||
8884e97e WT |
11056 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
11057 | ||
11058 | * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): | |
11059 | Set to AMD64_NUM_REGS. | |
11060 | ||
7005d26a WT |
11061 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
11062 | ||
11063 | * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic | |
11064 | that checks validity of a register number. | |
11065 | ||
4bd2e1b2 KC |
11066 | 2017-01-27 Kees Cook <keescook@google.com> |
11067 | ||
11068 | * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call | |
11069 | fetch_fpregs if target has fpa registers. | |
11070 | (arm_linux_store_inferior_registers): Call store_fpregs if target | |
11071 | has fpa registers. | |
11072 | ||
7cf1de6c AA |
11073 | 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11074 | ||
11075 | * cris-tdep.c (cris_gdbarch_init): Remove check for | |
11076 | info.byte_order and force it to BFD_ENDIAN_LITTLE. | |
11077 | ||
874a1c8c AT |
11078 | 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com> |
11079 | ||
11080 | * corelow.c (get_core_register_section): Check for regset | |
11081 | existence before checking for REGSET_VARIABLE_SIZE. | |
11082 | ||
d8b49cf0 YQ |
11083 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
11084 | Pedro Alves <palves@redhat.com> | |
11085 | ||
11086 | PR gdb/20939 | |
11087 | * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't | |
11088 | call memory_error, save memaddr instead. | |
11089 | (gdb_disassembler::print_insn): If gdbarch_print_insn returns | |
11090 | negative, cal memory_error. | |
11091 | * disasm.h (gdb_disassembler) <m_err_memaddr>: New field. | |
11092 | ||
658ca58c YQ |
11093 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
11094 | ||
11095 | * disasm-selftests.c (memory_error_test): New function. | |
11096 | (_initialize_disasm_selftests): Register memory_error_test. | |
11097 | ||
79843d45 YQ |
11098 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
11099 | ||
11100 | * Makefile.in (SFILES): Add disasm-selftests.c and | |
11101 | selftest-arch.c. | |
11102 | (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o. | |
11103 | * disasm-selftests.c: New file. | |
11104 | * selftest-arch.c: New file. | |
11105 | * selftest-arch.h: New file. | |
11106 | ||
8cafda32 YQ |
11107 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
11108 | ||
11109 | * mep-tdep.c (mep_gdb_print_insn): Set info->arch | |
11110 | to bfd_arch_mep. Don't return 0 if section is not | |
11111 | found. Call print_insn_mep. | |
11112 | ||
e47ad6c0 YQ |
11113 | 2017-01-26 Pedro Alves <palves@redhat.com> |
11114 | Yao Qi <yao.qi@linaro.org> | |
11115 | ||
11116 | * arm-tdep.c: Include "disasm.h". | |
11117 | (gdb_print_insn_arm): Update code to get gdbarch. | |
11118 | * disasm.c (dis_asm_read_memory): Change it to | |
11119 | gdb_disassembler::dis_asm_read_memory. | |
11120 | (dis_asm_memory_error): Likewise. | |
11121 | (dis_asm_print_address): Likewise. | |
11122 | (gdb_pretty_print_insn): Change it to | |
11123 | gdb_disassembler::pretty_print_insn. | |
11124 | (dump_insns): Add one argument gdb_disassemlber. All | |
11125 | callers updated. | |
11126 | (do_mixed_source_and_assembly_deprecated): Likewise. | |
11127 | (do_mixed_source_and_assembly): Likewise. | |
11128 | (do_assembly_only): Likewise. | |
11129 | (gdb_disassembler::gdb_disassembler): New. | |
11130 | (gdb_disassembler::print_insn): New. | |
11131 | * disasm.h (class gdb_disassembler): New. | |
11132 | (gdb_pretty_print_insn): Remove declaration. | |
11133 | (gdb_disassemble_info): Likewise. | |
11134 | * guile/scm-disasm.c (class gdbscm_disassembler): New. | |
11135 | (gdbscm_disasm_read_memory_worker): Update. | |
11136 | (gdbscm_disasm_read_memory): Update. | |
11137 | (gdbscm_disasm_memory_error): Remove. | |
11138 | (gdbscm_disasm_print_address): Remove. | |
11139 | (gdbscm_disassembler::gdbscm_disassembler): New. | |
11140 | (gdbscm_print_insn_from_port): Update. | |
11141 | * mips-tdep.c: Include disasm.h. | |
11142 | (gdb_print_insn_mips): Update code to get gdbarch. | |
11143 | * record-btrace.c (btrace_insn_history): Update. | |
11144 | * spu-tdep.c: Include disasm.h. | |
11145 | (struct spu_dis_asm_data): Remove. | |
11146 | (struct spu_dis_asm_info): New. | |
11147 | (spu_dis_asm_print_address): Use spu_dis_asm_info to get | |
11148 | SPU id. | |
11149 | (gdb_print_insn_spu): Cast disassemble_info to | |
11150 | spu_dis_asm_info. | |
11151 | ||
80d75874 YQ |
11152 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
11153 | ||
11154 | * disasm.c (do_ui_file_delete): Delete. | |
11155 | (gdb_insn_length): Move code creating stream to ... | |
11156 | * utils.c (null_stream): ... here. New function. | |
11157 | * utils.h (null_stream): Declare. | |
11158 | ||
60685cd0 SM |
11159 | 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
11160 | ||
11161 | * python/py-inferior.c (find_thread_object): Return directly | |
11162 | from the loop. Remove "found" variable. | |
11163 | ||
eb1cdb62 JB |
11164 | 2017-01-21 Joel Brobecker <brobecker@adacore.com> |
11165 | ||
11166 | GDB 7.12.1 released. | |
11167 | ||
b1ce6568 SM |
11168 | 2017-01-20 Simon Marchi <simon.marchi@ericsson.com> |
11169 | ||
11170 | * python/py-function.c (fnpy_call): Reorder declarations to have | |
11171 | the gdbpy_enter object declared first. | |
11172 | * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise. | |
11173 | ||
6f8b0407 SM |
11174 | 2017-01-20 Simon Marchi <simon.marchi@ericsson.com> |
11175 | ||
fec93fb1 | 11176 | PR python/21068 |
6f8b0407 SM |
11177 | * python/python-internal.h (PyMem_RawMalloc): Define for |
11178 | Python < 3.4. | |
11179 | * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use | |
11180 | PyMem_RawMalloc instead of PyMem_Malloc. | |
11181 | ||
78cbbba8 LM |
11182 | 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com> |
11183 | Luis Machado <lgustavo@codesourcery.com> | |
11184 | ||
11185 | * NEWS (New commands): Mention flash-erase. | |
11186 | (New MI commands): Mention target-flash-erase. | |
11187 | * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI | |
11188 | command. | |
11189 | * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration. | |
11190 | * mi/mi-main.c (mi_cmd_target_flash_erase): New function. | |
11191 | * target.c (flash_erase_command): New function. | |
11192 | (initialize_targets): Add new flash-erase command. | |
11193 | * target.h (flash_erase_command): New declaration. | |
11194 | ||
2132fe85 JB |
11195 | 2017-01-20 Joel Brobecker <brobecker@adacore.com> |
11196 | ||
11197 | * nat/linux-ptrace.c: Only include <sys/procfs.h> if | |
11198 | HAVE_SYS_PROCFS_H is defined. | |
11199 | ||
d1dff226 AH |
11200 | 2017-01-18 Alan Hayward <alan.hayward@arm.com> |
11201 | ||
11202 | * remote.c (struct cached_reg): Change data into a pointer. | |
11203 | * (stop_reply_dtr): Free data pointers before deleting vector. | |
11204 | (process_stop_reply): Likewise. | |
11205 | (remote_parse_stop_reply): Allocate space for data | |
11206 | ||
9890e433 AH |
11207 | 2017-01-18 Alan Hayward <alan.hayward@arm.com> |
11208 | ||
11209 | * amd64-tdep.c (amd64_pseudo_register_read_value): remove | |
11210 | MAX_REGISTER_SIZE. | |
11211 | (amd64_pseudo_register_read_value): Likewise. | |
11212 | * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE. | |
11213 | (store_register_using_P): Likewise. | |
11214 | * regcache.c (regcache_xfer_part): Likewise. | |
11215 | ||
7a36499a IR |
11216 | 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com> |
11217 | ||
11218 | Split real and pseudo registers. | |
11219 | * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro. | |
11220 | (sparc32_pseudo_regnum): New enum. | |
11221 | * sparc64-tdep.h (sparc64_pseudo_regnum): New enum. | |
11222 | * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro. | |
11223 | (SPARC32_CP0_REGISTERS): New macro. | |
11224 | (sparc32_pseudo_register_name): New function. | |
11225 | (sparc32_register_name): Use sparc32_pseudo_register_name. | |
11226 | (sparc32_pseudo_register_type): New function. | |
11227 | (sparc32_register_type): Use sparc32_pseudo_register_type. | |
11228 | (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle | |
11229 | pseudo register numbers. | |
11230 | * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro. | |
11231 | (SPARC64_CP0_REGISTERS): New macro. | |
11232 | (sparc64_pseudo_register_name): New function. | |
11233 | (sparc64_register_name): Use sparc64_pseudo_register_name. | |
11234 | (sparc64_pseudo_register_type): New function. | |
11235 | (sparc64_register_type): Use sparc64_pseudo_register_type. | |
11236 | (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle | |
11237 | pseudo register numbers. | |
11238 | (sparc64_store_floating_fields, sparc64_extract_floating_fields, | |
11239 | sparc64_store_arguments): Handle pseudo register numbers. | |
11240 | ||
6f8976bf YQ |
11241 | 2017-01-13 Yao Qi <yao.qi@linaro.org> |
11242 | ||
11243 | * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro. | |
11244 | (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug | |
11245 | output. | |
11246 | (getpkt_or_notif_sane_1): Likewise. | |
11247 | ||
e4241ace YQ |
11248 | 2017-01-13 Yao Qi <yao.qi@linaro.org> |
11249 | ||
11250 | * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead | |
11251 | of CC. Pass "-x c++-header" instead of "-x c". | |
11252 | ||
3015c064 SM |
11253 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
11254 | ||
11255 | * remote.c (remote_can_async_p): Update comment. | |
11256 | ||
fde1b17d SM |
11257 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
11258 | ||
11259 | * linux-nat.c (linux_nat_can_async_p): Update comment. | |
11260 | ||
ca1ca08b SM |
11261 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
11262 | ||
11263 | * serial.c (serial_open): Forget about "pc" and "lpt" serial interface. | |
11264 | ||
4ad2da73 SM |
11265 | 2017-01-11 Simon Marchi <simon.marchi@ericsson.com> |
11266 | ||
11267 | * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment. | |
11268 | ||
c8b23b3f TT |
11269 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11270 | ||
11271 | * python/py-type.c (typy_legacy_template_argument): Update. | |
11272 | * cp-support.h (struct demangle_parse_info) (demangle_parse_info, | |
11273 | ~demangle_parse_info): Declare new members. | |
11274 | (cp_demangled_name_to_comp): Return unique_ptr. | |
11275 | (cp_demangled_name_parse_free) | |
11276 | (make_cleanup_cp_demangled_name_parse_free) | |
11277 | (cp_new_demangle_parse_info): Remove. | |
11278 | * cp-support.c (do_demangled_name_parse_free_cleanup) | |
11279 | (make_cleanup_cp_demangled_name_parse_free): Remove. | |
11280 | (inspect_type, cp_canonicalize_string_full) | |
11281 | (cp_canonicalize_string): Update. | |
11282 | (mangled_name_to_comp): Change return type. | |
11283 | (cp_class_name_from_physname, method_name_from_physname) | |
11284 | (cp_func_name, cp_remove_params): Update. | |
11285 | * cp-name-parser.y (demangle_parse_info): New constructor, from | |
11286 | cp_new_demangle_parse_info. | |
11287 | (~demangle_parse_info): New destructor, from | |
11288 | cp_demangled_name_parse_free. | |
11289 | (cp_merge_demangle_parse_infos): Update. | |
11290 | (cp_demangled_name_to_comp): Change return type. | |
11291 | ||
1ac32117 TT |
11292 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11293 | ||
11294 | * top.c (prevent_dont_repeat): Change return type. | |
11295 | * python/python.c (execute_gdb_command): Use std::string. | |
11296 | Update. | |
11297 | * guile/guile.c (gdbscm_execute_gdb_command): Update. | |
11298 | * command.h (prevent_dont_repeat): Change return type. | |
11299 | * breakpoint.c (bpstat_do_actions_1): Update. | |
11300 | ||
0cf08227 TT |
11301 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11302 | ||
11303 | * value.h (scoped_value_mark::~scoped_value_mark): Call | |
11304 | free_to_mark. | |
11305 | (scoped_value_mark::free_to_mark): New method. | |
11306 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use | |
11307 | scoped_value_mark. | |
11308 | ||
eb115069 TT |
11309 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11310 | ||
11311 | * python/py-value.c (valpy_dereference, valpy_referenced_value) | |
11312 | (valpy_reference_value, valpy_const_value, valpy_get_address) | |
11313 | (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast) | |
11314 | (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative) | |
11315 | (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark. | |
11316 | * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use | |
11317 | scoped_value_mark. | |
11318 | * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark. | |
11319 | * value.h (scoped_value_mark): New class. | |
11320 | ||
906768f9 TT |
11321 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11322 | ||
11323 | * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder. | |
11324 | * psympriv.h (make_cleanup_discard_psymtabs): Don't declare. | |
11325 | * psymtab.c (discard_psymtabs_upto): Remove. | |
11326 | (make_cleanup_discard_psymtabs): Remove. | |
11327 | (struct psymtab_state): Remove. | |
11328 | ||
bef155c3 TT |
11329 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11330 | ||
11331 | * record-full.c (record_full_save_cleanups): Remove. | |
11332 | (record_full_save): Use gdb::unlinker. | |
11333 | * gcore.c (do_bfd_delete_cleanup): Remove. | |
11334 | (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove | |
11335 | cleanups. | |
11336 | * dwarf2read.c (unlink_if_set): Remove. | |
11337 | (write_psymtabs_to_index): Use gdb::unlinker. | |
11338 | * common/gdb_unlinker.h: New file. | |
11339 | ||
192b62ce TT |
11340 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11341 | ||
11342 | * windows-tdep.c (windows_xfer_shared_library): Update. | |
11343 | * windows-nat.c (windows_make_so): Update. | |
11344 | * utils.h (make_cleanup_bfd_unref): Remove. | |
11345 | * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove. | |
11346 | * symfile.h (symfile_bfd_open) | |
11347 | (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr. | |
11348 | * symfile.c (read_symbols, symbol_file_add) | |
11349 | (separate_debug_file_exists): Update. | |
11350 | (symfile_bfd_open): Return gdb_bfd_ref_ptr. | |
11351 | (generic_load, reread_symbols): Update. | |
11352 | * symfile-mem.c (symbol_file_add_from_memory): Update. | |
11353 | * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr. | |
11354 | (spu_symbol_file_add_from_memory): Update. | |
11355 | * solist.h (struct target_so_ops) <bfd_open>: Return | |
11356 | gdb_bfd_ref_ptr. | |
11357 | (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr. | |
11358 | * solib.c (solib_bfd_fopen, solib_bfd_open): Return | |
11359 | gdb_bfd_ref_ptr. | |
11360 | (solib_map_sections, reload_shared_libraries_1): Update. | |
11361 | * solib-svr4.c (enable_break): Update. | |
11362 | * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr. | |
11363 | * solib-frv.c (enable_break2): Update. | |
11364 | * solib-dsbt.c (enable_break): Update. | |
11365 | * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return | |
11366 | gdb_bfd_ref_ptr. | |
11367 | (darwin_solib_get_all_image_info_addr_at_init): Update. | |
11368 | (darwin_bfd_open): Return gdb_bfd_ref_ptr. | |
11369 | * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr. | |
11370 | * record-full.c (record_full_save): Update. | |
11371 | * python/py-objfile.c (objfpy_add_separate_debug_file): Update. | |
11372 | * procfs.c (insert_dbx_link_bpt_in_file): Update. | |
11373 | * minidebug.c (find_separate_debug_file_in_section): Return | |
11374 | gdb_bfd_ref_ptr. | |
11375 | * machoread.c (macho_add_oso_symfile): Change abfd to | |
11376 | gdb_bfd_ref_ptr. | |
11377 | (macho_symfile_read_all_oso): Update. | |
11378 | (macho_check_dsym): Return gdb_bfd_ref_ptr. | |
11379 | (macho_symfile_read): Update. | |
11380 | * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr. | |
11381 | (jit_bfd_try_read_symtab): Update. | |
11382 | * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
11383 | (gdb_bfd_openw, gdb_bfd_openr_iovec) | |
11384 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return | |
11385 | gdb_bfd_ref_ptr. | |
11386 | (gdb_bfd_ref_policy): New struct. | |
11387 | (gdb_bfd_ref_ptr): New typedef. | |
11388 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
11389 | (gdb_bfd_openw, gdb_bfd_openr_iovec) | |
11390 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return | |
11391 | gdb_bfd_ref_ptr. | |
11392 | * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr. | |
11393 | * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr. | |
11394 | (gcore_command): Update. | |
11395 | * exec.c (exec_file_attach): Update. | |
11396 | * elfread.c (elf_symfile_read): Update. | |
11397 | * dwarf2read.c (dwarf2_get_dwz_file): Update. | |
11398 | (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr. | |
11399 | (open_and_init_dwo_file): Update. | |
11400 | (open_dwp_file): Return gdb_bfd_ref_ptr. | |
11401 | (open_and_init_dwp_file): Update. | |
11402 | * corelow.c (core_open): Update. | |
11403 | * compile/compile-object-load.c (compile_object_load): Update. | |
11404 | * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator. | |
11405 | * coffread.c (coff_symfile_read): Update. | |
11406 | * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return | |
11407 | gdb_bfd_ref_ptr. Rename. | |
11408 | (dump_bfd_file, restore_command): Update. | |
11409 | * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. | |
11410 | * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. | |
11411 | (find_separate_debug_file_by_buildid): Update. | |
11412 | ||
50315b21 TT |
11413 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11414 | ||
11415 | * common/gdb_ref_ptr.h: New file. | |
11416 | * python/py-ref.h (struct gdbpy_ref_policy): New. | |
11417 | (gdbpy_ref): Now a typedef. | |
11418 | ||
fc4007c9 TT |
11419 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11420 | ||
11421 | * utils.h (make_cleanup_htab_delete): Don't declare. | |
11422 | * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete): | |
11423 | Remove. | |
11424 | * linespec.c (decode_compound_collector): Add constructor, | |
11425 | destructor. | |
11426 | (lookup_prefix_sym): Remove cleanup. | |
11427 | (symtab_collector): Add constructor, destructor. | |
11428 | (collect_symtabs_from_filename): Remove cleanup. | |
11429 | * disasm.c (do_mixed_source_and_assembly): Use htab_up. | |
11430 | * compile/compile-c-symbols.c (generate_c_for_variable_locations): | |
11431 | Use htab_up. | |
11432 | * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up. | |
11433 | * dwarf2read.c (dw2_expand_symtabs_matching) | |
11434 | (dw2_map_symbol_filenames, dwarf_decode_macros) | |
11435 | (write_psymtabs_to_index): Use htab_up. | |
11436 | * dwarf2loc.c (func_verify_no_selftailcall) | |
11437 | (call_site_find_chain_1, func_verify_no_selftailcall) | |
11438 | (chain_candidate, call_site_find_chain_1): Use std::unordered_set, | |
11439 | std::vector, gdb::unique_xmalloc_ptr. | |
11440 | (call_sitep): Remove typedef. | |
11441 | (dwarf2_locexpr_baton_eval): Remove unused variable. | |
11442 | ||
8dbcee67 TT |
11443 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11444 | ||
11445 | * python/python-internal.h (make_cleanup_py_decref) | |
11446 | (make_cleanup_py_xdecref): Don't declare. | |
11447 | * python/py-utils.c (py_decref, make_cleanup_py_decref) | |
11448 | (py_xdecref, make_cleanup_py_xdecref): Remove. | |
11449 | ||
13df46cc TT |
11450 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11451 | ||
11452 | * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref. | |
11453 | (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref. | |
11454 | ||
06fc9bf7 TT |
11455 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11456 | ||
11457 | * python/py-framefilter.c (enumerate_args): Use gdbpy_ref. | |
11458 | ||
830a4934 TT |
11459 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11460 | ||
11461 | * python/py-utils.c (unicode_to_encoded_string) | |
11462 | (python_string_to_target_string) | |
11463 | (python_string_to_target_python_string) | |
11464 | (python_string_to_host_string, gdbpy_obj_to_string) | |
11465 | (get_addr_from_python): Use gdbpy_ref. | |
11466 | ||
4586d543 TT |
11467 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11468 | ||
11469 | * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use | |
11470 | gdbpy_ref. | |
11471 | ||
59876f8f TT |
11472 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11473 | ||
11474 | * python/python.c (eval_python_command, gdbpy_decode_line) | |
11475 | (gdbpy_run_events, gdbpy_start_type_printers) | |
11476 | (gdbpy_apply_type_printers): Use gdbpy_ref. | |
11477 | ||
97d83487 TT |
11478 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11479 | ||
11480 | * python/py-param.c (get_doc_string, compute_enum_values): Use | |
11481 | gdbpy_ref. | |
11482 | ||
9205649a TT |
11483 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11484 | ||
11485 | * python/py-inferior.c (find_thread_object, build_inferior_list): | |
11486 | Use gdbpy_ref. | |
11487 | ||
74c49d45 TT |
11488 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11489 | ||
11490 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. | |
11491 | ||
16361ffb TT |
11492 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11493 | ||
11494 | * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use | |
11495 | gdbpy_ref. | |
11496 | ||
905f2cca TT |
11497 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11498 | ||
11499 | * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove | |
11500 | extra incref. | |
11501 | (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init): | |
11502 | Use gdbpy_ref. | |
11503 | ||
64081434 TT |
11504 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11505 | ||
11506 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use | |
11507 | gdbpy_ref. | |
11508 | ||
59e9e831 TT |
11509 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11510 | ||
11511 | * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't | |
11512 | decref results of PyArg_ParseTupleAndKeywords. | |
11513 | ||
9de10f6d TT |
11514 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11515 | ||
11516 | * python/python.c (python_run_simple_file): Use | |
11517 | unique_xmalloc_ptr, gdbpy_ref. | |
11518 | ||
2bd5759d TT |
11519 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11520 | ||
11521 | * python/py-prettyprint.c (print_stack_unless_memory_error) | |
11522 | (print_string_repr, print_children): Use gdbpy_ref. | |
11523 | (dummy_python_frame): New class. | |
11524 | (dummy_python_frame::dummy_python_frame): Rename from | |
11525 | push_dummy_python_frame. | |
11526 | (py_restore_tstate): Remove. | |
11527 | ||
3b4e0e01 TT |
11528 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11529 | ||
11530 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. | |
11531 | ||
17a22718 TT |
11532 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11533 | ||
11534 | * python/python.c (ensure_python_env, restore_python_env): | |
11535 | Remove. | |
11536 | * python/python-internal.h (ensure_python_env): Don't declare. | |
11537 | * varobj.h (varobj_ensure_python_env): Don't declare. | |
11538 | * varobj.c (varobj_ensure_python_env): Remove. | |
11539 | ||
68cdc557 TT |
11540 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11541 | ||
11542 | * varobj.c (varobj_value_get_print_value): Use | |
11543 | gdbpy_enter_varobj. | |
11544 | ||
1eba6383 TT |
11545 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11546 | ||
11547 | * python/py-prettyprint.c (print_string_repr, print_children): | |
11548 | Update. | |
11549 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type | |
11550 | of "encoding". | |
11551 | * varobj.c (varobj_value_get_print_value): Update. | |
11552 | * python/python-internal.h (gdbpy_extract_lazy_string): Update. | |
11553 | ||
bde7b3e3 TT |
11554 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11555 | ||
11556 | * varobj.c (varobj_get_display_hint) | |
11557 | (dynamic_varobj_has_child_method, install_new_value_visualizer) | |
11558 | (varobj_set_visualizer, free_variable): Use | |
11559 | gdbpy_enter_varobj. | |
11560 | ||
a7785f8c TT |
11561 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11562 | ||
11563 | * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref. | |
11564 | (do_finish_initialization): New function. Use gdbpy_ref. | |
11565 | (gdbpy_finish_initialization): Use gdbpy_enter. Call | |
11566 | do_finish_initialization. | |
11567 | ||
2865bfce TT |
11568 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11569 | ||
11570 | * python/py-param.c (get_set_value, get_show_value): Use | |
11571 | gdbpy_enter, gdbpy_ref. | |
11572 | ||
0e9dcc75 TT |
11573 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11574 | ||
11575 | * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref. | |
11576 | ||
12a5cedd TT |
11577 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11578 | ||
11579 | * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref. | |
11580 | ||
788f2586 TT |
11581 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11582 | ||
11583 | * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next): | |
11584 | Use gdbpy_enter_varobj. | |
11585 | ||
6cd67bea TT |
11586 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11587 | ||
11588 | * varobj.c (gdbpy_enter_varobj): New constructor. | |
11589 | * python/python-internal.h (gdbpy_enter_varobj): New class. | |
11590 | * python/py-varobj.c (py_varobj_get_iterator): Use | |
11591 | gdbpy_enter_varobj. | |
11592 | ||
14b122bf TT |
11593 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11594 | ||
11595 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use | |
11596 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. | |
11597 | (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter. | |
11598 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, | |
11599 | unique_xmalloc_ptr. | |
11600 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter. | |
11601 | ||
bf1ca3b9 TT |
11602 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11603 | ||
11604 | * python/py-xmethods.c (invoke_match_method): Use | |
11605 | gdbpy_ref. | |
11606 | ||
572a5524 TT |
11607 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11608 | ||
11609 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use | |
11610 | gdbpy_enter, gdbpy_ref. | |
11611 | ||
396a78b6 TT |
11612 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11613 | ||
11614 | * python/python.c (python_interactive_command): Use gdbpy_enter. | |
11615 | ||
a88b13c7 TT |
11616 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11617 | ||
11618 | * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter, | |
11619 | gdbpy_ref. | |
11620 | ||
e9f0c363 TT |
11621 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11622 | ||
11623 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use | |
11624 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. | |
11625 | ||
6349f452 TT |
11626 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11627 | ||
11628 | * utils.h (htab_deleter): New struct. | |
11629 | (htab_up): New typedef. | |
11630 | * python/py-framefilter.c (gdbpy_apply_frame_filter): Use | |
11631 | gdbpy_enter, gdbpy_ref, htab_up. | |
11632 | ||
c0171de6 TT |
11633 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11634 | ||
11635 | * python/py-unwind.c (pending_frame_invalidate): Remove. | |
11636 | (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref. | |
11637 | ||
f18e226f TT |
11638 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11639 | ||
11640 | * python/py-xmethods.c (gdbpy_free_xmethod_worker_data) | |
11641 | (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter. | |
11642 | ||
c57af3f1 TT |
11643 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11644 | ||
11645 | * python/py-type.c (save_objfile_types): Use gdbpy_enter. | |
11646 | ||
60e600ec TT |
11647 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11648 | ||
11649 | * python/python.c (gdbpy_eval_from_control_command) | |
11650 | (gdbpy_source_script, gdbpy_run_events) | |
11651 | (gdbpy_source_objfile_script, gdbpy_execute_objfile_script) | |
11652 | (gdbpy_free_type_printers, gdbpy_finish_initialization): Use | |
11653 | gdbpy_enter. | |
11654 | ||
bf7da5b0 TT |
11655 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11656 | ||
11657 | * python/py-progspace.c (py_free_pspace): Use gdbpy_enter. | |
11658 | ||
2d38bced TT |
11659 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11660 | ||
11661 | * python/py-objfile.c (py_free_objfile): Use gdbpy_enter. | |
11662 | ||
07bc7329 TT |
11663 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11664 | ||
11665 | * python/py-inferior.c (python_on_normal_stop, python_on_resume) | |
11666 | (python_on_inferior_call_pre, python_on_inferior_call_post) | |
11667 | (python_on_memory_change, python_on_register_change) | |
11668 | (python_inferior_exit, python_new_objfile, add_thread_object) | |
11669 | (delete_thread_object, py_free_inferior): Use gdbpy_enter. | |
11670 | ||
6e7c365e TT |
11671 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11672 | ||
11673 | * python/py-finishbreakpoint.c (bpfinishpy_handle_stop) | |
11674 | (bpfinishpy_handle_exit): Use gdbpy_enter. | |
11675 | ||
6ba0cd40 TT |
11676 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11677 | ||
11678 | * python/py-cmd.c (cmdpy_destroyer) | |
11679 | (cmdpy_completer_handle_brkchars, cmdpy_completer): Use | |
11680 | gdbpy_enter. | |
11681 | ||
de2dc875 TT |
11682 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11683 | ||
11684 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use | |
11685 | gdbpy_enter. | |
11686 | (gdbpy_breakpoint_has_cond): Likewise. | |
11687 | ||
4ecee2c4 TT |
11688 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11689 | ||
11690 | * python/python.c (gdbpy_enter): New constructor. | |
11691 | (~gdbpy_enter): New destructor. | |
11692 | (restore_python_env, ensure_python_env): Rewrite. | |
11693 | * python/python-internal.h (gdbpy_enter): New class. | |
11694 | ||
37fce74f TT |
11695 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11696 | ||
11697 | * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref. | |
11698 | ||
53a0cca3 TT |
11699 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11700 | ||
11701 | * python/py-value.c (value_has_field, get_field_flag) | |
11702 | (get_field_type, valpy_getitem, convert_value_from_python): Use | |
11703 | gdbpy_ref. | |
11704 | ||
ff3724f5 TT |
11705 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11706 | ||
11707 | * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use | |
11708 | gdbpy_ref. | |
11709 | ||
0700aea5 TT |
11710 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11711 | ||
11712 | * python/py-prettyprint.c (search_pp_list) | |
11713 | (find_pretty_printer_from_objfiles) | |
11714 | (find_pretty_printer_from_progspace) | |
11715 | (find_pretty_printer_from_gdb, find_pretty_printer) | |
11716 | (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use | |
11717 | gdbpy_ref. | |
11718 | ||
1bb44c9f TT |
11719 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11720 | ||
11721 | * python/py-param.c (call_doc_function): Use gdbpy_ref. | |
11722 | ||
87ce03fd TT |
11723 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11724 | ||
11725 | * python/py-linetable.c (build_line_table_tuple_from_pcs) | |
11726 | (ltpy_get_all_source_lines): Use gdbpy_ref. | |
11727 | ||
ee0a3fb8 TT |
11728 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11729 | ||
11730 | * python/py-framefilter.c (extract_sym, extract_value) | |
11731 | (get_py_iter_from_func, bootstrap_python_frame_filters): Use | |
11732 | gdbpy_ref. | |
11733 | ||
bf2a52fa TT |
11734 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11735 | ||
11736 | * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref. | |
11737 | ||
f59fe7f8 TT |
11738 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11739 | ||
11740 | * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref. | |
11741 | ||
80bd970a TT |
11742 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11743 | ||
11744 | * python/py-function.c (convert_values_to_python, fnpy_init): Use | |
11745 | gdbpy_ref. | |
11746 | ||
d1b3de2e TT |
11747 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11748 | ||
11749 | * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref. | |
11750 | ||
3bb43384 TT |
11751 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11752 | ||
11753 | * python/py-type.c (convert_field, make_fielditem, typy_fields) | |
11754 | (typy_range): Use gdbpy_ref. | |
11755 | ||
abf5651e TT |
11756 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11757 | ||
11758 | * python/py-threadevent.c (create_thread_event_object): Use | |
11759 | gdbpy_ref. | |
11760 | * python/py-stopevent.c (create_stop_event_object): Simplify. | |
11761 | (emit_stop_event): Use gdbpy_ref. | |
11762 | * python/py-signalevent.c (create_signal_event_object): Use | |
11763 | gdbpy_ref. | |
11764 | * python/py-newobjfileevent.c (create_new_objfile_event_object) | |
11765 | (emit_new_objfile_event, create_clear_objfiles_event_object) | |
11766 | (emit_clear_objfiles_event): Use gdbpy_ref. | |
11767 | * python/py-infevents.c (create_inferior_call_event_object) | |
11768 | (create_register_changed_event_object) | |
11769 | (create_memory_changed_event_object, emit_inferior_call_event) | |
11770 | (emit_memory_changed_event, emit_register_changed_event): Use | |
11771 | gdbpy_ref. | |
11772 | * python/py-exitedevent.c (create_exited_event_object) | |
11773 | (emit_exited_event): Use gdbpy_ref. | |
11774 | * python/py-event.h (evpy_emit_event): Remove | |
11775 | CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation. | |
11776 | * python/py-event.c (evpy_emit_event): Use gdbpy_ref. | |
11777 | * python/py-continueevent.c (emit_continue_event): Use | |
11778 | gdbpy_ref. | |
11779 | * python/py-breakpoint.c (gdbpy_breakpoint_created) | |
11780 | (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use | |
11781 | gdbpy_ref. | |
11782 | * python/py-bpevent.c (create_breakpoint_event_object): Use | |
11783 | gdbpy_ref. | |
11784 | ||
a68ff33e TT |
11785 | 2017-01-10 Tom Tromey <tom@tromey.com> |
11786 | ||
11787 | * python/py-ref.h: New file. | |
11788 | ||
7becfd03 SM |
11789 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
11790 | ||
11791 | * cli-out.c (cli_ui_out::do_redirect): Change return type to | |
11792 | void. | |
11793 | * cli-out.h (cli_ui_out::do_redirect): Likewise. | |
11794 | * mi/mi-out.c (mi_ui_out::do_redirect): Likewise. | |
11795 | * mi/mi-out.h (mi_ui_out::do_redirect): Likewise. | |
11796 | * ui-out.c (ui_out::redirect): Likewise. | |
11797 | * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise. | |
11798 | * cli/cli-logging.c (set_logging_redirect): Update call site of | |
11799 | ui_out::redirect. | |
11800 | (handle_redirections): Likewise. | |
11801 | * scm-ports.c (ioscm_with_output_to_port_worker): Likewise. | |
11802 | * top.c (execute_command_to_string): Likewise. | |
11803 | * utils.c (do_ui_out_redirect_pop): Likewise. | |
11804 | ||
df294654 SM |
11805 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
11806 | ||
11807 | * stack.c (_initialize_stack): Update "frame" command help message. | |
11808 | ||
f5e6296e IB |
11809 | 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org> |
11810 | ||
11811 | * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE. | |
11812 | ||
0e2d6fa6 YQ |
11813 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
11814 | ||
11815 | * x86-linux-nat.h: Include gdb_proc_service.h. | |
11816 | ||
44d6d3f9 YQ |
11817 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
11818 | ||
11819 | * ser-base.h: Include serial.h. | |
11820 | ||
656731fe YQ |
11821 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
11822 | ||
11823 | * ppc-linux-tdep.h: Include ppc-tdep.h. | |
11824 | ||
1ca8f924 YQ |
11825 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
11826 | ||
11827 | * nat/amd64-linux-siginfo.h: Include signal.h. | |
11828 | ||
bc3008c4 YQ |
11829 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
11830 | ||
11831 | * nat/aarch64-linux-hw-point.h: Include break-common.h. | |
11832 | ||
66c80d03 YQ |
11833 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
11834 | ||
11835 | * mi/mi-parse.h: Include mi-cmds.h. | |
11836 | ||
051d2dda YQ |
11837 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
11838 | ||
11839 | * inf-loop.c: Don't include "target.h". | |
11840 | * inf-loop.h: Include it here. | |
11841 | ||
8018d34f YQ |
11842 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
11843 | ||
11844 | * dfp.h: Include "dboulest.h" and "expression.h". | |
11845 | ||
c0b8369c YQ |
11846 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
11847 | ||
11848 | * ax-gdb.h: Include "ax.h". | |
11849 | ||
ad5cba2a YQ |
11850 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
11851 | ||
11852 | * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h | |
11853 | with nat/gdb_ptrace.h. | |
11854 | ||
1c33cd7f YQ |
11855 | 2017-01-05 Yao Qi <yao.qi@linaro.org> |
11856 | ||
11857 | * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to | |
11858 | new line. | |
11859 | (mips64_fbsd_sigframe_init): Likewise. | |
11860 | ||
c988ac1d JB |
11861 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
11862 | ||
11863 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use | |
11864 | GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF. | |
11865 | ||
b268007c JB |
11866 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
11867 | ||
11868 | * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c. | |
11869 | * NEWS: Mention new FreeBSD/mips native configuration. | |
11870 | * config/mips/fbsd.mh: New file. | |
11871 | * configure.host: Add mips*-*-freebsd*. | |
11872 | * mips-fbsd-nat.c: New file. | |
11873 | ||
387360da JB |
11874 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
11875 | ||
11876 | * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o. | |
11877 | (ALLDEPFILES): Add mips-fbsd-tdep.c. | |
11878 | * NEWS: Mention new FreeBSD/mips target. | |
11879 | * configure.tgt: Add mips*-*-freebsd*. | |
11880 | * mips-fbsd-tdep.c: New file. | |
11881 | * mips-fbsd-tdep.h: New file. | |
11882 | ||
2aaaf250 YQ |
11883 | 2017-01-04 Yao Qi <yao.qi@linaro.org> |
11884 | ||
11885 | * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to), | |
11886 | use c->frame_id when the piece location is DWARF_VALUE_REGISTER. | |
11887 | ||
61baf725 JB |
11888 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
11889 | ||
6dbb839a | 11890 | Update copyright year range in all GDB files. |
61baf725 | 11891 | |
c113e7ff | 11892 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
ce0db137 | 11893 | |
c113e7ff | 11894 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016. |
ce0db137 | 11895 | |
c113e7ff | 11896 | For older changes see ChangeLog-2016. |
c906108c SS |
11897 | \f |
11898 | Local Variables: | |
11899 | mode: change-log | |
11900 | left-margin: 8 | |
11901 | fill-column: 74 | |
11902 | version-control: never | |
57da7796 | 11903 | coding: utf-8 |
c906108c | 11904 | End: |