Remove MAX_REGISTER_SIZE from aarch64-tdep.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d1be909e
AH
12017-06-07 Alan Hayward <alan.hayward@arm.com>
2
3 * aarch64-tdep.c (aarch64_store_return_value): Use
4 V_REGISTER_SIZE.
5 (aarch64_pseudo_read_value): Likewise.
6 (aarch64_pseudo_write): Likewise.
7
f4a65042
YQ
82017-06-06 Yao Qi <yao.qi@linaro.org>
9
10 * regformats/regdef.h (set_register_cache): Remove the
11 declaration.
12
9f7fb0aa
AH
132017-06-06 Alan Hayward <alan.hayward@arm.com>
14
15 * frame.c (frame_unwind_register_signed): Use
16 frame_unwind_register_value.
17
e1e01040
PA
182017-06-06 Pedro Alves <palves@redhat.com>
19
20 PR breakpoints/21553
21 * breakpoint.c (create_breakpoints_sal_default)
22 (init_breakpoint_sal, create_breakpoint_sal): Use
23 gdb::unique_xmalloc_ptr for string parameters.
24 (create_breakpoint): Constify 'extra_string' and 'cond_string'
25 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
26 (base_breakpoint_create_breakpoints_sal)
27 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
28 (strace_marker_create_breakpoints_sal)
29 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
30 string parameters.
31 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
32 gdb::unique_xmalloc_ptr for string parameters.
33 (create_breakpoint): Constify 'extra_string' and 'cond_string'
34 parameters.
35
fbe654c8
AH
362017-06-06 Alan Hayward <alan.hayward@arm.com>
37
38 * alpha-tdep.c (alpha_register_to_value): Use
39 get_frame_register_value.
40 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
41
ae0d01d6
AH
422017-06-06 Alan Hayward <alan.hayward@arm.com>
43
44 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
45 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
46 (ia64_value_to_register): Likewise.
47 (ia64_extract_return_value): Likewise.
48 (ia64_store_return_value): Likewise.
49 (ia64_push_dummy_call): Likewise.
50
49cf576c
JB
512017-06-04 Joel Brobecker <brobecker@adacore.com>
52
53 GDB 8.0 released.
54
26b6a6ab
SM
552017-06-03 Simon Marchi <simon.marchi@ericsson.com>
56
57 * x86-linux-nat.c (struct arch_lwp_info): Remove.
58
22827c51
SM
592017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
60
61 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
62 parameter.
63 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
64
0e05cf3a
SM
652017-06-02 Simon Marchi <simon.marchi@ericsson.com>
66
67 * event-loop.c (poll_timers): Unallocate timer using delete
68 instead of xfree.
69
c1fc2657
SM
702017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
71
72 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
73 (struct breakpoint) <~breakpoint>: New.
74 (struct watchpoint): Inherit from breakpoint.
75 <~watchpoint>: New.
76 <base>: Remove.
77 (struct tracepoint): Inherit from breakpoint.
78 <base>: Remove.
79 * breakpoint.c (longjmp_breakpoint_ops): Remove.
80 (struct longjmp_breakpoint): Inherit from breakpoint.
81 <~longjmp_breakpoint>: New.
82 <base>: Remove.
83 (new_breakpoint_from_type): Remove casts.
84 (watchpoint_in_thread_scope): Remove reference to base field.
85 (watchpoint_del_at_next_stop): Likewise.
86 (update_watchpoint): Likewise.
87 (watchpoint_check): Likewise.
88 (bpstat_check_watchpoint): Likewise.
89 (set_longjmp_breakpoint): Likewise.
90 (struct fork_catchpoint): Inherit from breakpoint.
91 <base>: Remove.
92 (struct solib_catchpoint): Inherit from breakpoint.
93 <~solib_catchpoint>: New.
94 <base>: Remove.
95 (dtor_catch_solib): Change to ...
96 (solib_catchpoint::~solib_catchpoint): ... this.
97 (breakpoint_hit_catch_solib): Remove reference to base field.
98 (add_solib_catchpoint): Likewise.
99 (create_fork_vfork_event_catchpoint): Likewise.
100 (struct exec_catchpoint): Inherit from breakpoint.
101 <~exec_catchpoint>: New.
102 <base>: Remove.
103 (dtor_catch_exec): Change to ...
104 (exec_catchpoint::~exec_catchpoint): ... this.
105 (dtor_watchpoint): Change to ...
106 (watchpoint::~watchpoint): ... this.
107 (watch_command_1): Remove reference to base field.
108 (catch_exec_command_1): Likewise.
109 (base_breakpoint_dtor): Change to ...
110 (breakpoint::~breakpoint): ... this.
111 (base_breakpoint_ops): Remove dtor field value.
112 (longjmp_bkpt_dtor): Change to ...
113 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
114 (strace_marker_create_breakpoints_sal): Remove reference to base
115 field.
116 (delete_breakpoint): Don't manually call breakpoint destructor.
117 (create_tracepoint_from_upload): Remove reference to base field.
118 (trace_pass_set_count): Likewise.
119 (initialize_breakpoint_ops): Don't initialize
120 momentary_breakpoint_ops, don't set dtors.
121 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
122 <~ada_catchpoint>: New.
123 <base>: Remove.
124 (create_excep_cond_exprs): Remove reference to base field.
125 (dtor_exception): Change to ...
126 (ada_catchpoint::~ada_catchpoint): ... this.
127 (dtor_catch_exception): Remove.
128 (dtor_catch_exception_unhandled): Remove.
129 (dtor_catch_assert): Remove.
130 (create_ada_exception_catchpoint): Remove reference to base
131 field.
132 (initialize_ada_catchpoint_ops): Don't set dtors.
133 * break-catch-sig.c (struct signal_catchpoint): Inherit from
134 breakpoint.
135 <~signal_catchpoint>: New.
136 <base>: Remove.
137 (signal_catchpoint_dtor): Change to ...
138 (signal_catchpoint::~signal_catchpoint): ... this.
139 (create_signal_catchpoint): Remove reference to base field.
140 (initialize_signal_catchpoint_ops): Don't set dtor.
141 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
142 from breakpoint.
143 <~syscall_catchpoint>: New.
144 <base>: Remove.
145 (dtor_catch_syscall): Change to ...
146 (syscall_catchpoint::~syscall_catchpoint): ... this.
147 (create_syscall_event_catchpoint): Remove reference to base
148 field.
149 (initialize_syscall_catchpoint_ops): Don't set dtor.
150 * break-catch-throw.c (struct exception_catchpoint): Inherit
151 from breakpoint.
152 <~exception_catchpoint>: New.
153 <base>: Remove.
154 (dtor_exception_catchpoint): Change to ...
155 (exception_catchpoint::~exception_catchpoint): ... this.
156 (handle_gnu_v3_exceptions): Remove reference to base field.
157 (initialize_throw_catchpoint_ops): Don't set dtor.
158 * ctf.c (ctf_get_traceframe_address): Remove reference to base
159 field.
160 * remote.c (remote_get_tracepoint_status): Likewise.
161 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
162 * tracefile.c (tracefile_fetch_registers): Likewise.
163 * tracepoint.c (actions_command): Likewise.
164 (validate_actionline): Likewise.
165 (tfind_1): Likewise.
166 (get_traceframe_location): Likewise.
167 (find_matching_tracepoint_location): Likewise.
168 (parse_tracepoint_status): Likewise.
169 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
170
3b0871f4
SM
1712017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
172
173 * breakpoint.c (struct longjmp_breakpoint): New struct.
174 (is_tracepoint_type): Change return type to bool.
175 (is_longjmp_type): New function.
176 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
177 (set_raw_breakpoint_without_location): Use
178 new_breakpoint_from_type.
179 (set_raw_breakpoint): Likewise.
180
a5e364af
SM
1812017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
182
183 * breakpoint.c (new_breakpoint_from_type): New function.
184 (create_breakpoint_sal): Use new_breakpoint_from_type and
185 unique_ptr.
186 (create_breakpoint): Likewise.
187
ae3b3f34
SM
1882017-05-31 Simon Marchi <simon.marchi@ericsson.com>
189
190 * memattr.c (mem_info_command): Rename to ...
191 (info_mem_command): ... this.
192 (mem_enable_command): Rename to ...
193 (enable_mem_command): ... this.
194 (mem_disable_command): Rename to ...
195 (disable_mem_command): ... this.
196 (mem_delete_command): Rename to ...
197 (delete_mem_command): ... this.
198 (_initialize_mem): Adjust function names.
199
13ace077
MM
2002017-05-31 Markus Metzger <markus.t.metzger@intel.com>
201
202 * btrace.c (handle_pt_insn_events): New.
203 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
204 STATUS. Split into this and ...
205 (handle_pt_insn_event_flags): ... this.
206
c56ccc05
MM
2072017-05-31 Markus Metzger <markus.t.metzger@intel.com>
208
209 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
210 and struct pt_insn.resynced.
211 * configure: Regenerated.
212 * config.in: Regenerated.
213
08c3f6d2
TW
2142017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
215
216 * btrace.c (ftrace_find_call_by_number): New function.
217 (ftrace_new_function): Store objects, not pointers.
218 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
219 ftrace_new_gap, ftrace_update_function,
220 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
221 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
222 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
223 btrace_ends_with_single_insn, btrace_call_get): Account for
224 btrace_thread_info::functions now storing objects.
225 * btrace.h (struct btrace_thread_info): Add constructor.
226 (struct btrace_thread_info) <functions>: Make std::vector.
227 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
228 Initialize with default values.
229 * record-btrace.c (record_btrace_frame_sniffer): Account for
230 btrace_thread_info::functions now storing objects.
231
8ffd39f2
TW
2322017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
233
234 * btrace.c: Remove typedef bfun_s.
235 (ftrace_new_gap): Directly add gaps to the list of gaps.
236 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
237 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
238 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
239 instead of gdb VEC.
240
4aeb0dfc
TW
2412017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
242
243 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
244 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
245 with btrace_thread_info::next_segment and
246 btrace_thread_info::prev_segment.
247 * btrace.h: Remove struct btrace_func_link.
248 (struct btrace_function): Replace pair of function segment pointers
249 with pair of indices.
250 * python/py-record-btrace.c (btpy_call_prev_sibling,
251 btpy_call_next_sibling): Replace references to
252 btrace_thread_info::segment with btrace_thread_info::next_segment and
253 btrace_thread_info::prev_segment.
254 * record-btrace.c (record_btrace_frame_this_id): Use
255 btrace_find_call_by_number.
256
eb8f2b9c
TW
2572017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
258
259 * btrace.c (ftrace_new_function, ftrace_fixup_level,
260 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
261 btrace_insn_next, btrace_insn_prev): Remove references to
262 btrace_thread_info::flow.
263 * btrace.h (struct btrace_function): Remove FLOW.
264
42bfe59e
TW
2652017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
266
267 * btrace.c (ftrace_find_call_by_number): New function.
268 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
269 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
270 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
271 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
272 index.
273 * btrace.h (struct btrace_function): Turn UP into an index.
274 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
275 as an index.
276 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
277 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
278 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
279
b54b03bd
TW
2802017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
281
282 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
283 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
284 ftrace_update_function, ftrace_compute_global_level_offset,
285 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
286 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
287 btrace_insn_end, btrace_is_empty): Remove references to
288 btrace_thread_info::begin and btrace_thread_info::end.
289 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
290 (struct btrace_thread_info) <functions>: Adjust comment.
291 * record-btrace.c (record_btrace_start_replaying): Remove reference to
292 btrace_thread_info::begin.
293
8286623c
TW
2942017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
295
296 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
297 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
298 ftrace_update_function): Remove arguments that implicitly were always
299 BTINFO->END.
300 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
301 Don't pass BTINFO->END.
302
a0f1b963
TW
3032017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
304
305 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
306 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
307 btrace_find_insn_by_number): Replace function segment pointer with
308 index.
309 (btrace_insn_cmp): Simplify.
310 * btrace.h: (struct btrace_insn_iterator) Rename index to
311 insn_index. Replace function segment pointer with index into function
312 segment vector.
313 * record-btrace.c (record_btrace_call_history): Replace function
314 segment pointer use with index.
315 (record_btrace_frame_sniffer): Retrieve function call segment through
316 vector.
317 (record_btrace_set_replay): Remove defunc't safety check.
318
f158f208
TW
3192017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
320
321 * btrace.c (btrace_ends_with_single_insn): New function.
322 (btrace_call_get, btrace_call_number, btrace_call_begin,
323 btrace_call_end, btrace_call_next, btrace_call_prev,
324 btrace_find_call_by_number): Use index into call segment vector
325 instead of pointer.
326 (btrace_call_cmp): Simplify.
327 * btrace.h (struct btrace_call_iterator): Replace function call segment
328 pointer with index into vector.
329 * record-btrace.c (record_btrace_call_history): Use index instead of
330 pointer.
331
521103fd
TW
3322017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
333
334 * btrace.c (btrace_insn_begin, btrace_insn_end,
335 btrace_find_insn_by_number): Add btinfo to iterator.
336 * btrace.h (struct btrace_insn_iterator): Add btinfo.
337
17b89b34
TW
3382017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
339
340 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
341 and save pointers directly.
342 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
343 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
344 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
345 changed signature of functions.
346 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
347 (btrace_fetch): Remove code that adds btrace_function pointers to
348 vector of btrace_functions.
349 (btrace_clear): Simplify freeing vector of btrace_functions.
350
2b51eddc
TW
3512017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
352
353 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
354 Replace VEC_* with std::vector functions.
355 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
356 (struct btrace_thread_info)<functions>: Change type to std::vector.
357
db6be0d5
SM
3582017-05-30 Simon Marchi <simon.marchi@ericsson.com>
359
360 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
361 "Removed targets and native configurations" up. Merge duplicate
362 "New commands" sub-sections. Add "New options" sub-sections.
363
b057297a
AH
3642017-05-26 Alan Hayward <alan.hayward@arm.com>
365
366 * defs.h (copy_integer_to_size): New declaration.
367 * findvar.c (copy_integer_to_size): New function.
368 (do_cint_test): New selftest function.
369 (copy_integer_to_size_test): Likewise.
370 (_initialize_findvar): Likewise.
371 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
372 (mips_fbsd_collect_reg): Use raw_collect_integer.
373 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
374 (mips64_fill_gregset): Use raw_collect_integer
375 (mips64_fill_fpregset): Use raw_supply_integer.
376 * regcache.c (regcache::raw_supply_integer): New function.
377 (regcache::raw_collect_integer): Likewise.
378 * regcache.h: (regcache::raw_supply_integer): New declaration.
379 (regcache::raw_collect_integer): Likewise.
380
b77b02a5
YQ
3812017-05-24 Yao Qi <yao.qi@linaro.org>
382
383 * Makefile.in (SFILES): Add gdbarch-selftests.c.
384 (COMMON_OBS): Add gdbarch-selftests.o.
385 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
386 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
387 * gdbarch-selftests.c: New file.
388 * regcache.h (regcache) <~regcache>: Mark it virtual if
389 GDB_SELF_TEST.
390 <raw_write>: Likewise.
391
e521e87e
YQ
3922017-05-24 Yao Qi <yao.qi@linaro.org>
393
394 * regcache.c (current_regcache): Change it to
395 regcache::current_regcache.
396 (regcache_observer_target_changed): Update.
397 (regcache_thread_ptid_changed): Make it a regcache static
398 method.
399 (regcache_thread_ptid_changed): Update.
400 (class regcache_access): New.
401 (current_regcache_test): Update.
402 (_initialize_regcache): Update.
403 * regcache.h: Include forward_list.
404 (regcache): Declare regcache_thread_ptid_changed and declare
405 registers_changed_ptid as friend.
406
d8e07dda
YQ
4072017-05-24 Yao Qi <yao.qi@linaro.org>
408
409 * i387-tdep.c (i387_register_to_value): Use register_size
410 instead of TYPE_LENGTH.
411 * m68k-tdep.c (m68k_register_to_value): Likewise.
412
8c8f9122
YQ
4132017-05-24 Yao Qi <yao.qi@linaro.org>
414
415 * i387-tdep.c (i387_convert_register_p): Return false if type
416 code isn't TYPE_CODE_FLT.
417
68fce50f
YQ
4182017-05-24 Yao Qi <yao.qi@linaro.org>
419
420 * alpha-tdep.c (alpha_convert_register_p): Return true if type
421 length is 4.
422 (alpha_register_to_value): Remove type length check.
423 (alpha_value_to_register): Likewise.
424
88954b49
YQ
4252017-05-24 Yao Qi <yao.qi@linaro.org>
426
427 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
428 TYPE_CODE_FLT.
429
e3ec9b69
YQ
4302017-05-24 Yao Qi <yao.qi@linaro.org>
431
432 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
433 TYPE_CODE_FLT or not.
434
cdd238da
YQ
4352017-05-24 Yao Qi <yao.qi@linaro.org>
436
437 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
438 * avr-tdep.c (avr_gdbarch_init): Likewise.
439 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
440 * cris-tdep.c (cris_gdbarch_init): Likewise.
441 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
442 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
443 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
444 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
445 * mep-tdep.c (mep_gdbarch_init): Likewise.
446 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
447 * mips-tdep.c (mips_gdbarch_init): Likewise.
448 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
449 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
450 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
451 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
452 * v850-tdep.c (v850_gdbarch_init): Likewise.
453
7a3929c4
YQ
4542017-05-24 Yao Qi <yao.qi@linaro.org>
455
456 * selftest-arch.c (tests_with_arch): Call registers_changed
457 and reinit_frame_cache.
458 * selftest.c (run_self_tests): Likewise.
459
f4985dba
YQ
4602017-05-24 Yao Qi <yao.qi@linaro.org>
461
462 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
463 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
464
ab20fa4a
YQ
4652017-05-24 Yao Qi <yao.qi@linaro.org>
466
467 * rl78-tdep.c (rl78_gdbarch_init): Don't call
468 set_gdbarch_print_insn.
469
f532ab94
YQ
4702017-05-24 Yao Qi <yao.qi@linaro.org>
471
472 * h8300-tdep.c (h8300_gdbarch_init): Don't call
473 set_gdbarch_print_insn.
474
39503f82
YQ
4752017-05-24 Yao Qi <yao.qi@linaro.org>
476
477 * alpha-tdep.c (alpha_gdbarch_init): Don't call
478 set_gdbarch_print_insn.
479 * arc-tdep.c (arc_gdbarch_init): Likewise.
480 * arch-utils.c: include dis-asm.h.
481 (default_print_insn): New function.
482 * arch-utils.h (default_print_insn): Declare.
483 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
484 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
485 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
486 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
487 * frv-tdep.c (frv_gdbarch_init): Likewise.
488 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
489 * gdbarch.sh (print_insn): Use default_print_insn.
490 * gdbarch.c: Regenerated.
491 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
492 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
493 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
494 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
495 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
496 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
497 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
498 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
499 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
500 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
501 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
502 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
503 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
504 * mt-tdep.c (mt_gdbarch_init): Likewise.
505 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
506 * nios2-tdep.c (nios2_print_insn): Remove.
507 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
508 * rx-tdep.c (rx_gdbarch_init): Likewise.
509 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
510 * score-tdep.c (score_print_insn): Remove.
511 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
512 * sh-tdep.c (sh_gdbarch_init): Likewise.
513 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
514 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
515 * tic6x-tdep.c (tic6x_print_insn): Remove.
516 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
517 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
518 * v850-tdep.c (v850_gdbarch_init): Likewise.
519 * vax-tdep.c (vax_gdbarch_init): Likewise.
520 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
521 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
522
f7241d4f
JB
5232017-05-23 John Baldwin <jhb@FreeBSD.org>
524
525 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
526 (MIPS_FP0_REGNUM): Remove.
527 (MIPS_FSR_REGNUM): Remove.
528 (mips_fbsd_supply_fpregs): Use mips_regnum.
529 (mips_fbsd_supply_gregs): Likewise.
530 (mips_fbsd_collect_fpregs): Likewise.
531 (mips_fbsd_collect_gregs): Likewise.
532
d489d81d
JB
5332017-05-23 John Baldwin <jhb@FreeBSD.org>
534
535 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
536 (getpfpregs_supplies): New function.
537 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
538 getfpregs_supplies.
539 (mips_fbsd_store_inferior_registers): Likewise.
540
e11b3cdc
PA
5412017-05-22 Pedro Alves <palves@redhat.com>
542
543 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
544 maintainer.
545
0f068fb5
AH
5462017-05-22 Alan Hayward <alan.hayward@arm.com>
547
548 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
549 (store_register): Likewise.
550 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
551 (get_decimal_float_return_value): Likewise.
552 (do_ppc_sysv_return_value): Likewise.
553 (ppc64_sysv_abi_push_integer): Likewise.
554 (ppc64_sysv_abi_push_freg): Likewise.
555 (ppc64_sysv_abi_return_value_base): Likewise.
556 (ppc64_sysv_abi_return_value): Likewise.
557 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
558 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
559 * rs6000-nat.c: Likewise.
560 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
561 (rs6000_value_to_register): Likewise.
562 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
563
e6cf65f2
TT
5642017-05-21 Tom Tromey <tom@tromey.com>
565
566 PR rust/21466:
567 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
568 arrays as "[T]", not "[T; ]".
569
43cc5389
TT
5702017-05-19 Tom Tromey <tom@tromey.com>
571
572 PR rust/21484:
573 * rust-lang.c (exp_descriptor_rust): New function.
574 (rust_language_defn): Use it.
575 * p-lang.c (pascal_language_defn): Update.
576 * opencl-lang.c (opencl_language_defn): Update.
577 * objc-lang.c (objc_language_defn): Update.
578 * m2-lang.c (m2_language_defn): Update.
579 * language.h (struct language_defn)
580 <la_watch_location_expression>: New member.
581 * language.c (unknown_language_defn, auto_language_defn)
582 (local_language_defn): Update.
583 * go-lang.c (go_language_defn): Update.
584 * f-lang.c (f_language_defn): Update.
585 * d-lang.c (d_language_defn): Update.
586 * c-lang.h (c_watch_location_expression): Declare.
587 * c-lang.c (c_watch_location_expression): New function.
588 (c_language_defn, cplus_language_defn, asm_language_defn)
589 (minimal_language_defn): Use it.
590 * breakpoint.c (watch_command_1): Call
591 la_watch_location_expression.
592 * ada-lang.c (ada_language_defn): Update.
593
7a6e7fcc
RO
5942017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
595
6e7e1744
RO
596 PR tui/21482
597 * gdb_curses.h (NOMACROS): Define.
598 (NCURSES_NOMACROS): Define.
599
6002017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
601
602 PR tui/21482
7a6e7fcc
RO
603 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
604 arg to char *.
605 * tui/tui-wingeneral.c (box_win): Likewise.
606 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
607 (tui_show_source_line): Likewise.
608 (tui_show_exec_info_content): Likewise.
609
1933fd8e
VM
6102017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
611
612 * sparc-tdep.c (sparc_structure_return_p)
613 (sparc_arg_on_registers_p): New functions.
614 (sparc32_store_arguments): Use them.
615 * sparc64-tdep.c (sparc64_16_byte_align_p)
616 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
617 Handle TYPE_CODE_ARRAY.
618
21873064
YQ
6192017-05-17 Yao Qi <yao.qi@linaro.org>
620
621 * cli/cli-decode.c (add_alias_cmd): New function.
622 * command.h (add_alias_cmd): Declare.
623 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
624 instead call add_alias_cmd.
625
2b351b19
PA
6262017-05-17 Pedro Alves <palves@redhat.com>
627
628 * Makefile.in (nat_extra_makefile_frag): Rename to ...
629 (nat_makefile_frag): ... this. All references updated.
630 * configure.ac: Likewise.
631 * configure.nat: Likewise. Enhance comments.
632 * configure: Regenerate.
633
5f2ad7a3
RO
6342017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
635
636 * procfs.c (procfs_create_inferior): Change prototype to match
637 definition.
638
adf3dde5
EZ
6392017-05-13 Eli Zaretskii <eliz@gnu.org>
640
641 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
642 C++ compiler warning.
643
6830f270
TT
6442017-05-12 Tom Tromey <tom@tromey.com>
645
646 PR rust/21483:
647 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
648 recurse, just call value_struct_elt directly.
649
68f2f2e3
TT
6502017-05-12 Tom Tromey <tom@tromey.com>
651
652 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
653 OP_RUST_ARRAY>: Fix.
654
256afbc2
TT
6552017-05-12 Tom Tromey <tom@tromey.com>
656
657 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
658
94bb8dfe
YQ
6592017-05-09 Yao Qi <yao.qi@linaro.org>
660
661 * regcache.c: Include <forward_list>.
662 (struct regcache_list): Remove.
663 (current_regcache): Update.
664 (get_thread_arch_aspace_regcache): Update for std::forward_list.
665 (regcache_thread_ptid_changed): Likewise.
666 (registers_changed_ptid): Likewise.
667 (current_regcache_size): Likewise.
668
8248946c
YQ
6692017-05-09 Yao Qi <yao.qi@linaro.org>
670
671 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
672 (current_regcache_size): New function.
673 (current_regcache_test): New function.
674 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
675
313c5961
AH
6762017-05-08 Alan Hayward <alan.hayward@arm.com>
677
678 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
679 (print_gp_register_row): Use get_frame_register_value.
680
27bfc1d1
AH
6812017-05-08 Alan Hayward <alan.hayward@arm.com>
682
683 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
684 (mips_supply_fpregset): Likewise.
685 (mips64_supply_gregset): Likewise.
686
146e6c5c
AH
6872017-05-08 Alan Hayward <alan.hayward@arm.com>
688
689 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
690 regcache->raw_supply_zeroed.
691
e50f25ec
SDJ
6922017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
693
694 * configure.nat: Rearrange 'case' statements to match
695 host before cpu.
696
21ea5acd
SDJ
6972017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
698
699 * Makefile.in: Remove "@host_makefile_frag@". Add variables
700 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
701 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
702 "@nat_extra_makefile_frag@".
703 (Makefile): Remove dependency on "@frags@".
704 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
705 (data-directory/Makefile): Likewise.
706 * config/aarch64/linux.mh: Deleted; moved contents to
707 "gdb/configure.nat".
708 * config/alpha/alpha-linux.mh: Likewise.
709 * config/alpha/nbsd.mh: Likewise.
710 * config/arm/linux.mh: Likewise.
711 * config/arm/nbsdelf.mh: Likewise.
712 * config/i386/cygwin.mh: Likewise.
713 * config/i386/cygwin64.mh: Likewise.
714 * config/i386/darwin.mh: Likewise.
715 * config/i386/fbsd.mh: Likewise.
716 * config/i386/fbsd64.mh: Likewise.
717 * config/i386/go32.mh: Likewise.
718 * config/i386/i386gnu.mh: Likewise.
719 * config/i386/i386sol2.mh: Likewise.
720 * config/i386/linux.mh: Likewise.
721 * config/i386/linux64.mh: Likewise.
722 * config/i386/mingw.mh: Likewise.
723 * config/i386/mingw64.mh: Likewise.
724 * config/i386/nbsd64.mh: Likewise.
725 * config/i386/nbsdelf.mh: Likewise.
726 * config/i386/nto.mh: Likewise.
727 * config/i386/obsd.mh: Likewise.
728 * config/i386/obsd64.mh: Likewise.
729 * config/i386/sol2-64.mh: Likewise.
730 * config/ia64/linux.mh: Likewise.
731 * config/m32r/linux.mh: Likewise.
732 * config/m68k/linux.mh: Likewise.
733 * config/m68k/nbsdelf.mh: Likewise.
734 * config/m68k/obsd.mh: Likewise.
735 * config/m88k/obsd.mh: Likewise.
736 * config/mips/fbsd.mh: Likewise.
737 * config/mips/linux.mh: Likewise.
738 * config/mips/nbsd.mh: Likewise.
739 * config/mips/obsd64.mh: Likewise.
740 * config/pa/linux.mh: Likewise.
741 * config/pa/nbsd.mh: Likewise.
742 * config/pa/obsd.mh: Likewise.
743 * config/powerpc/aix.mh: Likewise.
744 * config/powerpc/fbsd.mh: Likewise.
745 * config/powerpc/linux.mh: Likewise.
746 * config/powerpc/nbsd.mh: Likewise.
747 * config/powerpc/obsd.mh: Likewise.
748 * config/powerpc/ppc64-linux.mh: Likewise.
749 * config/powerpc/spu-linux.mh: Likewise.
750 * config/s390/linux.mh: Likewise.
751 * config/sh/nbsd.mh: Likewise.
752 * config/sparc/fbsd.mh: Likewise.
753 * config/sparc/linux.mh: Likewise.
754 * config/sparc/linux64.mh: Likewise.
755 * config/sparc/nbsd64.mh: Likewise.
756 * config/sparc/nbsdelf.mh: Likewise.
757 * config/sparc/obsd64.mh: Likewise.
758 * config/sparc/sol2.mh: Likewise.
759 * config/tilegx/linux.mh: Likewise.
760 * config/vax/nbsdelf.mh: Likewise.
761 * config/vax/obsd.mh: Likewise.
762 * config/xtensa/linux.mh: Likewise.
763 * config/i386/i386gnu.mn: New file, with excerpts from
764 "config/i386/i386gnu.mh".
765 * configure: Regenerate.
766 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
767 *.mh files under "gdb/config".
768 * configure.nat: New file, with contents from the
769 "gdb/config/*/*.mh" files.
770
7ed1acaf
TW
7712017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
772
773 * btrace.c (btrace_clear): Free insn vector.
774
e13cb306
PA
7752017-05-05 Pedro Alves <palves@redhat.com>
776
777 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
778 * configure: Regenerate.
779
5ed8105e
PA
7802017-05-04 Pedro Alves <palves@redhat.com>
781
782 * Makefile.in (SFILES): Add progspace-and-thread.c.
783 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
784 (COMMON_OBS): Add progspace-and-thread.o.
785 * breakpoint.c: Include "progspace-and-thread.h".
786 (update_inserted_breakpoint_locations)
787 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
788 Use scoped_restore_current_pspace_and_thread.
789 (create_std_terminate_master_breakpoint): Use
790 scoped_restore_current_program_space.
791 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
792 (print_breakpoint_location): Use
793 scoped_restore_current_program_space.
794 (bp_loc_is_permanent): Use
795 scoped_restore_current_pspace_and_thread.
796 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
797 (download_tracepoint_locations): Use
798 scoped_restore_current_pspace_and_thread.
799 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
800 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
801 (enum step_over_calls_kind): Moved from inferior.h.
802 (class scoped_restore_current_thread): New class.
803 * gdbthread.h (make_cleanup_restore_current_thread): Delete
804 declaration.
805 (scoped_restore_current_thread): New class.
806 * infcmd.c: Include "common/gdb_optional.h".
807 (continue_1, proceed_after_attach): Use
808 scoped_restore_current_thread.
809 (notice_new_inferior): Use scoped_restore_current_thread.
810 * inferior.c: Include "progspace-and-thread.h".
811 (restore_inferior, save_current_inferior): Delete.
812 (add_inferior_command, clone_inferior_command): Use
813 scoped_restore_current_pspace_and_thread.
814 * inferior.h (scoped_restore_current_inferior): New class.
815 * infrun.c: Include "progspace-and-thread.h" and
816 "common/gdb_optional.h".
817 (follow_fork_inferior): Use
818 scoped_restore_current_pspace_and_thread.
819 (scoped_restore_exited_inferior): New class.
820 (handle_vfork_child_exec_or_exit): Use
821 scoped_restore_exited_inferior,
822 scoped_restore_current_pspace_and_thread,
823 scoped_restore_current_thread and scoped_restore.
824 (fetch_inferior_event): Use scoped_restore_current_thread.
825 * linespec.c (decode_line_full, decode_line_1): Use
826 scoped_restore_current_program_space.
827 * mi/mi-main.c: Include "progspace-and-thread.h".
828 (exec_continue): Use scoped_restore_current_thread.
829 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
830 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
831 * proc-service.c (ps_pglobal_lookup): Use
832 scoped_restore_current_program_space.
833 * progspace-and-thread.c: New file.
834 * progspace-and-thread.h: New file.
835 * progspace.c (release_program_space, clone_program_space): Use
836 scoped_restore_current_program_space.
837 (restore_program_space, save_current_program_space)
838 (save_current_space_and_thread): Delete.
839 (switch_to_program_space_and_thread): Moved to
840 progspace-and-thread.c.
841 * progspace.h (save_current_program_space)
842 (save_current_space_and_thread): Delete declarations.
843 (scoped_restore_current_program_space): New class.
844 * remote.c (remote_btrace_maybe_reopen): Use
845 scoped_restore_current_thread.
846 * symtab.c: Include "progspace-and-thread.h".
847 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
848 * thread.c (print_thread_info_1): Use
849 scoped_restore_current_thread.
850 (struct current_thread_cleanup): Delete.
851 (do_restore_current_thread_cleanup)
852 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
853 (scoped_restore_current_thread::~scoped_restore_current_thread):
854 ... this new dtor.
855 (make_cleanup_restore_current_thread): Rename/convert to ...
856 (scoped_restore_current_thread::scoped_restore_current_thread):
857 ... this new ctor.
858 (thread_apply_all_command): Use scoped_restore_current_thread.
859 (thread_apply_command): Use scoped_restore_current_thread.
860 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
861 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
862
f6223dbb
PA
8632017-05-04 Pedro Alves <palves@redhat.com>
864
865 * thread.c (make_cleanup_restore_current_thread): Move
866 find_thread_ptid call before the is_stopped call. Assert that the
867 thread is found. Replace is_stopped call by checking the thread's
868 state directly. Remove unnecessary NULL-thread check.
869
3c3ae77e
PA
8702017-05-04 Pedro Alves <palves@redhat.com>
871
872 * corelow.c (thread_section_name): New class.
873 (get_core_register_section, get_core_siginfo): Use it.
874
45eba0ab
AA
8752017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
876
877 * corelow.c (sniff_core_bfd): Remove extra semicolon.
878 (get_core_register_section): Remove xfree of NULL pointer.
879
f81fdd35
AH
8802017-05-03 Alan Hayward <alan.hayward@arm.com>
881
882 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
883 * regcache.c (regcache::raw_supply_zeroed): New function.
884 * regcache.h (regcache::raw_supply_zeroed): New declaration.
885
35837774
SM
8862017-05-03 Simon Marchi <simon.marchi@ericsson.com>
887
888 * gdbarch.sh: Remove commented out definition of
889 TARGET_CHAR_BIT.
890 * gdbarch.h: Re-generate.
891
c94fee56
SDJ
8922017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
893
894 * configure: Regenerate.
895
d17f7b36
SM
8962017-05-02 Simon Marchi <simon.marchi@ericsson.com>
897
898 * solib-target.c (solib_target_relocate_section_addresses):
899 Remove num_section_bases, num_bases, segment_bases variables.
900
b560ebd6
SM
9012017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
902
903 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
904
f2f46dfc
SM
9052017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
906
907 * solib-target.c: Include <vector>
908 (struct lm_info_target) <~lm_info_target>: Remove.
909 <segment_bases, section_bases>: Change type to
910 std::vector<CORE_ADDR>.
911 (library_list_start_segment, library_list_start_section,
912 library_list_end_library,
913 solib_target_relocate_section_addresses): Adjust.
914
a0ff9e1a
SM
9152017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
916
917 * gdbarch.sh (software_single_step): Change return type to
918 std::vector<CORE_ADDR>.
919 * gdbarch.c, gdbarch.h: Re-generate.
920 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
921 Adjust.
922 (arm_deal_with_atomic_sequence_raw): Adjust.
923 (thumb_get_next_pcs_raw): Adjust.
924 (arm_get_next_pcs_raw): Adjust.
925 (arm_get_next_pcs): Adjust.
926 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
927 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
928 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
929 (alpha_software_single_step): Adjust.
930 * alpha-tdep.h (alpha_software_single_step): Adjust.
931 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
932 * arm-tdep.c (arm_software_single_step): Adjust.
933 (arm_breakpoint_kind_from_current_state): Adjust.
934 * arm-tdep.h (arm_software_single_step): Adjust.
935 * breakpoint.c (insert_single_step_breakpoint): Adjust.
936 * cris-tdep.c (cris_software_single_step): Adjust.
937 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
938 (micromips_deal_with_atomic_sequence): Adjust.
939 (deal_with_atomic_sequence): Adjust.
940 (mips_software_single_step): Adjust.
941 * mips-tdep.h (mips_software_single_step): Adjust.
942 * moxie-tdep.c (moxie_software_single_step): Adjust.
943 * nios2-tdep.c (nios2_software_single_step): Adjust.
944 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
945 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
946 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
947 * s390-linux-tdep.c (s390_software_single_step): Adjust.
948 * sparc-tdep.c (sparc_software_single_step): Adjust.
949 * spu-tdep.c (spu_software_single_step): Adjust.
950 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
951
ea480a30
SM
9522017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
953
954 * gdbarch.sh: Use semi-colon as field separator instead of colon.
955 * gdbarch.h: Re-generate.
956
d050f7d7
TW
9572017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
958
959 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
960 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
961 * python/py-instruction.c, python/py-instruction.h: New file.
962 * python/py-record.c: Add py-instruction.h include.
963 (gdbpy_initialize_record): Make gdb.Instruction a super class of
964 gdb.RecordInstruction.
965 * python/python-internal.h: Add gdbpy_initialize_instruction
966 declaration.
967 * python/python.c (do_start_initialization): Add
968 gdbpy_initialize_instruction.
969
14f819c8
TW
9702017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
971
972 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
973 Remove.
974 (btrace_func_from_recpy_func): New function.
975 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
976 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
977 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
978 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
979 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
980 Also, use new helper functions.
981 (btpy_list_item): Use new helper functions.
982 (recpy_bt_function_call_history): Use new type name.
983 (btpy_call_getset): Remove.
984 (gdbpy_initialize_btrace): Remove code to initialize
985 gdb.BtraceFunctionCall.
986 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
987 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
988 recpy_bt_func_prev, recpy_bt_func_next): New export.
989 * python/py-record.c (recpy_func_type): New static object.
990 (recpy_func_new, recpy_func_level, recpy_func_symbol,
991 recpy_func_instructions, recpy_func_up, recpy_func_prev,
992 recpy_func_next): New function.
993 (recpy_element_hash, recpy_element_richcompare): Updated comment.
994 (recpy_func_getset): New static object.
995 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
996 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
997
0ed5da75
TW
9982017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
999
1000 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
1001 (btpy_object, btpy_insn_type, btpy_new): Remove.
1002 (btpy_list_object): Use gdb.RecordInstruction type instead of
1003 gdb.BtraceInstruction type.
1004 (btrace_insn_from_recpy_insn): New function.
1005 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
1006 btpy_new.
1007 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
1008 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
1009 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
1010 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
1011 instead of btpy_object.
1012 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
1013 btpy_insn_data, btpy_insn_decode): Rename to ...
1014 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
1015 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
1016 recpy_bt_insn_decode): This. Also, use new helper functions.
1017 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
1018 recpy_insn_type.
1019 (btpy_insn_getset): Remove.
1020 (gdbpy_initialize_btrace): Remove code to initialize
1021 gdb.BtraceInstruction. Use recpy_element_object.
1022 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
1023 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
1024 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
1025 * python/py-record.c (recpy_insn_type): New static object.
1026 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
1027 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
1028 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
1029 New function.
1030 (recpy_insn_getset): New static object.
1031 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
1032 * python/py-record.h (recpy_element_object): New typedef.
1033 (recpy_insn_type, recpy_insn_new): New export.
1034
913aeadd
TW
10352017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
1036
1037 * py-record-btrace.c (btpy_insn_new): Removed.
1038 (btpy_insn_or_gap_new): New function.
1039 (btpy_insn_error): Removed.
1040 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
1041 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
1042 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
1043 btpy_insn_or_gap_new instead of btpy_insn_new.
1044 (btpy_insn_getset): Remove btpy_insn_error.
1045 * py-record.c (recpy_gap_type): New static object.
1046 (recpy_gap_object): New typedef.
1047 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
1048 recpy_gap_reason_string): New function.
1049 (recpy_gap_getset): New static object.
1050 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
1051 * py-record.h (recpy_gap_new): New export.
1052
a3be24ad
TW
10532017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
1054
1055 * python/py-record.c (recpy_ptid): Remove.
1056 (recpy_record_getset): Remove recpy_ptid.
1057
ae20e79a
TW
10582017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
1059
1060 * btrace.c (btrace_fetch): Set inferior_ptid.
1061 * python/py-record-btrace.c: Add "py-record.h" include.
1062 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
1063 recpy_bt_end, recpy_bt_instruction_history,
1064 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
1065 in gdb.Record object instead of current ptid.
1066 * python/py-record.c: Include new "py-record.h" file.
1067 (recpy_record_object): Moved to py-record.h.
1068 * python/py-record.h: New file.
1069
8d0050ea
TW
10702017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
1071
1072 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
1073 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
1074 indentation.
1075
3f380b50
JB
10762017-05-01 Joel Brobecker <brobecker@adacore.com>
1077
1078 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
1079 the past maintainers section.
1080
07495424
YQ
10812017-04-28 Yao Qi <yao.qi@linaro.org>
1082
1083 * infcmd.c (get_return_value): Use regcache ctor, and remove
1084 cleanup.
1085
deb1fa3e
YQ
10862017-04-28 Yao Qi <yao.qi@linaro.org>
1087 Pedro Alves <palves@redhat.com>
1088
1089 * regcache.c (regcache::regcache): New tag dispatch ctor.
1090 (do_cooked_read): Moved above.
1091 (regcache_dup): Use the tag dispatch ctor..
1092 * regcache.h (regcache): Declare ctor, delete copy ctor and
1093 assignment operator, remove friend regcache_dup.
1094
b421c83c
YQ
10952017-04-28 Yao Qi <yao.qi@linaro.org>
1096
1097 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
1098 call method save instead of regcache_cpy.
1099 * regcache.h (struct regcache): Make regcache_dup a friend.
1100
ef79d9a3
YQ
11012017-04-28 Yao Qi <yao.qi@linaro.org>
1102
1103 * regcache.c (struct regcache): Move to regcache.h
1104 (regcache::arch): New method.
1105 (regcache_get_ptid): Update.
1106 (get_regcache_arch): Call arch method.
1107 (get_regcache_aspace): Call method aspace.
1108 (register_buffer): Change it to method.
1109 (regcache_save): Change it to regcache::save.
1110 (regcache_restore): Likewise.
1111 (regcache_cpy_no_passthrough): Remove the declaration.
1112 (regcache_cpy): Call methods restore and cpy_no_passthrough.
1113 (regcache_cpy_no_passthrough): Change it to method
1114 cpy_no_passthrough.
1115 (regcache_register_status): Change it to method
1116 get_register_status.
1117 (regcache_invalidate): Change it to method invalidate.
1118 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
1119 (regcache_raw_update): Change it to method raw_update.
1120 (regcache_raw_read): Likewise.
1121 (regcache_raw_read_signed): Likewise.
1122 (regcache_raw_read_unsigned): Likewise.
1123 (regcache_raw_write_signed): Likewise.
1124 (regcache_raw_write_unsigned): Likewise.
1125 (regcache_cooked_read): Likewise.
1126 (regcache_cooked_read_value): Likewise.
1127 (regcache_cooked_read_signed): Likewise.
1128 (regcache_cooked_read_unsigned): Likewise.
1129 (regcache_cooked_write_signed): Likewise.
1130 (regcache_cooked_write_unsigned): Likewise.
1131 (regcache_raw_set_cached_value): Likewise.
1132 (regcache_raw_write): Likewise.
1133 (regcache_cooked_write): Likewise.
1134 (regcache_xfer_part): Likewise.
1135 (regcache_raw_read_part): Likewise.
1136 (regcache_raw_write_part): Likewise.
1137 (regcache_cooked_read_part): Likewise.
1138 (regcache_cooked_write_part): Likewise.
1139 (regcache_raw_supply): Likewise.
1140 (regcache_raw_collect): Likewise.
1141 (regcache_transfer_regset): Likewise.
1142 (regcache_supply_regset): Likewise.
1143 (regcache_collect_regset): Likewise.
1144 (regcache_debug_print_register): Likewise.
1145 (enum regcache_dump_what): Move it to regcache.h.
1146 (regcache_dump): Change it to method dump.
1147 * regcache.h (enum regcache_dump_what): New.
1148 (class regcache): New.
1149 * target.c (target_fetch_registers): Call method
1150 debug_print_register.
1151 (target_store_registers): Likewise.
1152
f8fdb78e
SM
11532017-04-28 Simon Marchi <simon.marchi@ericsson.com>
1154
1155 * windows-nat.c (struct lm_info_windows): Initialize field.
1156 (windows_make_so): Allocate lm_info_windows with new.
1157 (windows_free_so): Free lm_info_windows with delete.
1158
9ccbfd7b
SM
11592017-04-28 Simon Marchi <simon.marchi@ericsson.com>
1160
1161 * solib-darwin.c (struct lm_info_darwin): Initialize field.
1162 (darwin_current_sos): Allocate lm_info_darwin with new, remove
1163 cleanup.
1164 (darwin_free_so): Free lm_info_darwin with delete.
1165
76e75227
SM
11662017-04-28 Simon Marchi <simon.marchi@ericsson.com>
1167
1168 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
1169 <l_addr_p>: Change type to bool.
1170 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
1171 (svr4_free_so): Free lm_info_svr4 with delete.
1172 (svr4_copy_library_list): Replace memcpy with call to copy
1173 constructor.
1174 (library_list_start_library, svr4_default_sos): Allocate
1175 lm_info_svr4 with new.
1176
51046d9e
SM
11772017-04-28 Simon Marchi <simon.marchi@ericsson.com>
1178
1179 * solib-target.c (struct lm_info_target): Add destructor,
1180 initialize fields.
1181 <name>: Change type to std::string.
1182 (library_list_start_library): Allocate lm_info_target with new.
1183 (solib_target_free_library_list): Free lm_info_target with
1184 delete.
1185 (solib_target_current_sos): Adapt to std::string.
1186 (solib_target_free_so): Free lm_info_target with delete.
1187
4023ae76
SM
11882017-04-28 Simon Marchi <simon.marchi@ericsson.com>
1189
1190 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
1191 fields.
1192 (frv_current_sos): Allocate lm_info_frv with new.
1193 (frv_relocate_main_executable): Free lm_info_frv with delete,
1194 allocate with new.
1195 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
1196
af43057b
SM
11972017-04-28 Simon Marchi <simon.marchi@ericsson.com>
1198
1199 * solib-frv.c (struct lm_info_frv): Fix indentation.
1200
b0911207
SM
12012017-04-28 Simon Marchi <simon.marchi@ericsson.com>
1202
1203 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
1204 map field.
1205 (dsbt_current_sos): Allocate lm_info_dsbt with new.
1206 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
1207 and allocate with new.
1208 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
1209
6c401f72
SM
12102017-04-28 Simon Marchi <simon.marchi@ericsson.com>
1211
1212 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
1213 <filename, member_name>: Change type to std::string.
1214 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
1215 (library_list_start_library): Allocate lm_info_aix with new.
1216 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
1217 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
1218 with copy constructor.
1219
d0e449a1
SM
12202017-04-28 Simon Marchi <simon.marchi@ericsson.com>
1221
1222 * solist.h (struct lm_info): Remove.
1223 (struct lm_info_base): New class.
1224 (struct so_list) <lm_info>: Change type to lm_info_base *.
1225 * nto-tdep.c (struct lm_info): Remove.
1226 (lm_addr): Adjust.
1227 * solib-aix.c (struct lm_info): Rename to ...
1228 (struct lm_info_aix): ... this. Extend lm_info_base.
1229 (lm_info_p): Rename to ...
1230 (lm_info_aix_p): ... this, and adjust.
1231 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
1232 solib_aix_parse_libraries, library_list_start_library,
1233 solib_aix_free_library_list, solib_aix_parse_libraries,
1234 solib_aix_get_library_list,
1235 solib_aix_relocate_section_addresses, solib_aix_free_so,
1236 solib_aix_get_section_offsets,
1237 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
1238 Adjust.
1239 (struct solib_aix_inferior_data) <library_list>: Adjust.
1240 * solib-darwin.c (struct lm_info): Rename to ...
1241 (struct lm_info_darwin): ... this. Extend lm_info_base.
1242 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
1243 * solib-dsbt.c (struct lm_info): Rename to ...
1244 (struct lm_info_dsbt): ... this. Extend lm_info_base.
1245 (struct dsbt_info) <main_executable_lm_info): Adjust.
1246 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
1247 dsbt_relocate_section_addresses): Adjust.
1248 * solib-frv.c (struct lm_info): Rename to ...
1249 (struct lm_info_frv): ... this. Extend lm_info_base.
1250 (main_executable_lm_info): Adjust.
1251 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
1252 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
1253 find_canonical_descriptor_in_load_object,
1254 frv_fdpic_find_canonical_descriptor): Adjust.
1255 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
1256 to lm_info_svr4.
1257 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
1258 svr4_clear_so, svr4_copy_library_list,
1259 library_list_start_library, svr4_default_sos, svr4_read_so_list,
1260 svr4_current_sos, svr4_fetch_objfile_link_map,
1261 solist_update_incremental): Adjust.
1262 * solib-svr4.h (struct lm_info_svr4): Move here from
1263 solib-svr4.c.
1264 * solib-target.c (struct lm_info): Rename to ...
1265 (struct lm_info_target): ... this. Extend lm_info_base.
1266 (lm_info_p): Rename to ...
1267 (lm_info_target_p): ... this.
1268 (solib_target_parse_libraries, library_list_start_segment,
1269 library_list_start_section, library_list_start_library,
1270 library_list_end_library, solib_target_free_library_list,
1271 solib_target_current_sos, solib_target_free_so,
1272 solib_target_relocate_section_addresses): Adjust.
1273 * windows-nat.c (struct lm_info): Rename to ...
1274 (struct lm_info_windows): ... this. Extend lm_info_base.
1275 (windows_make_so, handle_load_dll, handle_unload_dll,
1276 windows_xfer_shared_libraries): Adjust.
1277
434a4023
SM
12782017-04-28 Simon Marchi <simon.marchi@ericsson.com>
1279
1280 * solib-darwin.c (struct darwin_so_list): Remove.
1281 (darwin_current_sos): Allocate an so_list object instead of a
1282 darwin_so_list, separately allocate an lm_info object.
1283 (darwin_free_so): Free lm_info.
1284
428544e8
JB
12852017-04-28 John Baldwin <jhb@FreeBSD.org>
1286
1287 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
1288 with fprintf_filtered.
1289
4621115f
YQ
12902017-04-28 Yao Qi <yao.qi@linaro.org>
1291
1292 * regcache.c (regcache::regcache): New function.
1293 (regcache::~regcache): New function.
1294 (regcache_xmalloc_1): Remove.
1295 (regcache_xmalloc): Call new regcache.
1296 (regcache_xfree): Call delete regcache.
1297 (get_thread_arch_aspace_regcache): Call new regcache.
1298
339053c2
YQ
12992017-04-28 Yao Qi <yao.qi@linaro.org>
1300
1301 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
1302 lwp instead of ptid_get_lwp.
1303
7974a605
YQ
13042017-04-28 Yao Qi <yao.qi@linaro.org>
1305
1306 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
1307 lwp_info instead of getting from inferior_ptid.
1308
e15c3eb4
KS
13092017-04-27 Keith Seitz <keiths@redhat.com>
1310
1311 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
1312 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
1313 (CV_CONVERSION_BADNESS): Define.
1314 (rank_one_type): Remove overly restrictive rvalue reference
1315 rank checks.
1316 Add cv-qualifier checks and subranks for type equality.
1317 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
1318 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
1319 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
1320
72bc1d24
SM
13212017-04-27 Simon Marchi <simon.marchi@ericsson.com>
1322
1323 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
1324 count when creating the object.
1325
55bcecda
UW
13262017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1327 Ulrich Weigand <uweigand@de.ibm.com>
1328
1329 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
1330 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
1331 is used in AIX.
1332 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
1333 (process_xcoff_symbol): Likewise.
1334 (scan_xcoff_symtab): Likewise.
1335
5c99fcf8
AH
13362017-04-26 Alan Hayward <alan.hayward@arm.com>
1337
1338 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
1339 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
1340 (ia64_access_reg): Use get_frame_register_unsigned.
1341 (ia64_access_rse_reg): Likewise.
1342 (ia64_libunwind_frame_prev_register): Likewise.
1343
b41c5a85
JW
13442017-04-26 Jiong Wang <jiong.wang@arm.com>
1345
1346 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
1347 * gdbarch.c: Regenerated.
1348 * gdbarch.h: Regenerated.
1349 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
1350 visibility external.
1351 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
1352 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
1353 (enum cfa_how_kind): Move to ...
1354 (struct dwarf2_frame_state_reg_info): Likewise.
1355 (struct dwarf2_frame_state): Likewise.
1356 * dwarf2-frame.h: ... here.
1357 (dwarf2_frame_state_alloc_regs): New declaration.
1358 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
1359 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
1360
c185f580
AH
13612017-04-26 Alan Hayward <alan.hayward@arm.com>
1362
1363 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
1364 regcache_raw_read_unsigned.
1365 (xtensa_pseudo_register_write): Likewise.
1366
19c45594
AH
13672017-04-26 Alan Hayward <alan.hayward@arm.com>
1368
1369 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
1370 (nds32_pseudo_register_write): Likewise.
1371
4658f12e
YQ
13722017-04-25 Yao Qi <yao.qi@linaro.org>
1373
1374 * regcache.c (struct regcache) <readonly_p>: Change its type
1375 to bool.
1376 (regcache_xmalloc_1): Update parameter type and callers update.
1377
d581dda8
YQ
13782017-04-25 Yao Qi <yao.qi@linaro.org>
1379
1380 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
1381 set_gdbarch_wchar_bit.
1382 * arm-tdep.c (arm_gdbarch_init): Likewise.
1383
debed3db
PA
13842017-04-25 Pedro Alves <palves@redhat.com>
1385
1386 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
1387 (BothAreRelocatable, memcopy, memmove): Don't define.
1388 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
1389 macros.
1390
b0b92aeb
PA
13912017-04-25 Pedro Alves <palves@redhat.com>
1392
1393 * common/common-defs.h: Include "common/poison.h".
1394 * common/function-view.h: (Not, Or, Requires): Move to traits.h
1395 and adjust.
1396 * common/poison.h: New file.
1397 * common/traits.h: Include <type_traits>.
1398 (Not, Or, Requires): New, moved from common/function-view.h.
1399
16c4d54a
PA
14002017-04-25 Pedro Alves <palves@redhat.com>
1401
1402 * breakpoint.h (struct breakpoint): In-class initialize all
1403 fields. Make boolean fields "bool".
1404 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1405 memset call and initializations no longer necessary.
1406
b5c36682
PA
14072017-04-25 Pedro Alves <palves@redhat.com>
1408
1409 * btrace.c (pt_btrace_insn_flags): Change parameter type to
1410 reference.
1411 (pt_btrace_insn): New function.
1412 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
1413
5625a286
PA
14142017-04-25 Pedro Alves <palves@redhat.com>
1415
1416 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
1417 "base" field and inherit from "bp_location" instead. Add
1418 non-default ctor.
1419 (allocate_location_exception): Use new non-default ctor.
1420 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
1421 (init_bp_location): Convert to ...
1422 (bp_location::bp_location): ... this new ctor, and remove memset
1423 call.
1424 (base_breakpoint_allocate_location): Use the new non-default ctor.
1425 * breakpoint.h (bp_location): Now a class. Declare default and
1426 non-default ctors. In-class initialize all members.
1427 (init_bp_location): Remove declaration.
1428
23bcc18f
PA
14292017-04-25 Pedro Alves <palves@redhat.com>
1430
1431 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
1432 assignment operator.
1433
e1ba3053
YQ
14342017-04-24 Yao Qi <yao.qi@linaro.org>
1435
1436 * doublest.c (convert_doublest_to_floatformat): Call
1437 floatformat_totalsize_bytes.
1438
10f489e5
TT
14392017-04-22 Tom Tromey <tom@tromey.com>
1440
1441 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
1442 ui_out_emit_list.
1443 * stack.c (print_frame): Use ui_out_emit_list.
1444 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
1445 ui_out_emit_list.
1446 * mi/mi-main.c (print_one_inferior)
1447 (mi_cmd_data_list_register_names)
1448 (mi_cmd_data_list_register_values, mi_cmd_list_features)
1449 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
1450 ui_out_emit_list.
1451 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
1452 (mi_output_solib_attribs): Use ui_out_emit_list,
1453 ui_out_emit_tuple.
1454 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
1455 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1456 (mi_cmd_stack_list_args, list_args_or_locals): Use
1457 ui_out_emit_list.
1458 * disasm.c (do_assembly_only): Use ui_out_emit_list.
1459 * breakpoint.c (print_solib_event, output_thread_groups): Use
1460 ui_out_emit_list.
1461
0092b74d
TT
14622017-04-22 Tom Tromey <tom@tromey.com>
1463
1464 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
1465 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
1466 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
1467
a14a62dd
TT
14682017-04-22 Tom Tromey <tom@tromey.com>
1469
1470 * tracepoint.c (tvariables_info_1)
1471 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
1472
46b9c129
TT
14732017-04-22 Tom Tromey <tom@tromey.com>
1474
1475 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
1476 annotate_arg_emitter.
1477 * breakpoint.c (print_mention_watchpoint)
1478 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
1479 * annotate.h (struct annotate_arg_emitter): New.
1480
2e783024
TT
14812017-04-22 Tom Tromey <tom@tromey.com>
1482
1483 * record-btrace.c (record_btrace_insn_history)
1484 (record_btrace_insn_history_range, record_btrace_call_history)
1485 (record_btrace_call_history_range): Use ui_out_emit_tuple.
1486 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
1487 ui_out_emit_tuple.
1488 * stack.c (print_frame_info): Use ui_out_emit_tuple.
1489 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
1490 * skip.c (skip_info): Use ui_out_emit_tuple.
1491 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
1492 * progspace.c (print_program_space): Use ui_out_emit_tuple.
1493 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
1494 * osdata.c (info_osdata): Use ui_out_emit_tuple.
1495 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
1496 ui_out_emit_tuple.
1497 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
1498 (output_register, mi_cmd_data_read_memory)
1499 (mi_cmd_data_read_memory_bytes, mi_load_progress)
1500 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
1501 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
1502 Use ui_out_emit_tuple.
1503 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
1504 ui_out_emit_tuple.
1505 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
1506 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
1507 * linux-thread-db.c (info_auto_load_libthread_db): Use
1508 ui_out_emit_tuple.
1509 * inferior.c (print_inferior): Use ui_out_emit_tuple.
1510 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
1511 * disasm.c (do_mixed_source_and_assembly_deprecated)
1512 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
1513 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
1514 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
1515 * breakpoint.c (print_one_breakpoint_location)
1516 (print_one_breakpoint): Use ui_out_emit_tuple.
1517 * auto-load.c (print_script, info_auto_load_cmd): Use
1518 ui_out_emit_tuple.
1519 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
1520
9be21bb4
SM
15212017-04-21 Simon Marchi <simon.marchi@ericsson.com>
1522
1523 * thread.c (print_thread_info_1): Remove dead code.
1524
0d4c07af
JK
15252017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1526
1527 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
1528 GDB_SELF_TEST.
1529 * arm-tdep.c (selftests::arm_record_test): Likewise.
1530
4daf993d
YQ
15312017-04-21 Yao Qi <yao.qi@linaro.org>
1532
1533 * regcache.c (regcache_restore): Remove argument 2. Replace
1534 argument 3 with regcache. Get register status from
1535 src->register_status and get register contents from
1536 register_buffer (src, regnum).
1537 (regcache_cpy): Update.
1538
a6c21d4a
PA
15392017-04-19 Pedro Alves <palves@redhat.com>
1540
1541 * gdbthread.h (thread): Add missing closing parenthesis in
1542 comment.
1543
3a3fd0fd
PA
15442017-04-19 Pedro Alves <palves@redhat.com>
1545
1546 * common/refcounted-object.h: New file.
1547 * gdbthread.h: Include "common/refcounted-object.h".
1548 (thread_info): Inherit from refcounted_object and add comments.
1549 (thread_info::incref, thread_info::decref)
1550 (thread_info::m_refcount): Delete.
1551 (thread_info::deletable): Use the refcounted_object::refcount()
1552 method.
1553 * inferior.c (current_inferior_): Add comment.
1554 (set_current_inferior): Increment/decrement refcounts.
1555 (prune_inferiors, remove_inferior_command): Skip inferiors marked
1556 not-deletable instead of comparing with the current inferior.
1557 (initialize_inferiors): Increment the initial inferior's refcount.
1558 * inferior.h (struct inferior): Forward declare.
1559 Include "common/refcounted-object.h".
1560 (current_inferior, set_current_inferior): Move declaration to
1561 before struct inferior's definition, and fix comment.
1562 (inferior): Inherit from refcounted_object. Add comments.
1563 * thread.c (switch_to_thread_no_regs): Reference the thread's
1564 inferior pointer directly instead of doing a ptid lookup.
1565 (switch_to_no_thread): New function.
1566 (switch_to_thread(thread_info *)): New function, factored out
1567 from ...
1568 (switch_to_thread(ptid_t)): ... this.
1569 (restore_current_thread): Delete.
1570 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
1571 fields, and add 'inf' field.
1572 (do_restore_current_thread_cleanup): Check whether old->inf is
1573 alive instead of looking up an inferior by ptid. Use
1574 switch_to_thread and switch_to_no_thread.
1575 (restore_current_thread_cleanup_dtor): Use old->inf directly
1576 instead of lookup up an inferior by id. Decref the inferior.
1577 Don't restore 'removable'.
1578 (make_cleanup_restore_current_thread): Same the inferior pointer
1579 in old, instead of the inferior number. Incref the inferior.
1580 Don't save/clear 'removable'.
1581
9bcb1f16
PA
15822017-04-19 Pedro Alves <palves@redhat.com>
1583
1584 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1585 unittests/scoped_restore-selftests.c.
1586 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
1587 * common/scoped_restore.h (scoped_restore_base): Make "class".
1588 (scoped_restore_base::release): New public method.
1589 (scoped_restore_base::scoped_restore_base): New protected ctor.
1590 (scoped_restore_base::m_saved_var): New protected field.
1591 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
1592 scoped_restore_base base class instead of m_saved_var directly.
1593 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
1594 (scoped_restore_tmpl::scoped_restore_tmpl(const
1595 scoped_restore_tmpl<T>&)): Likewise.
1596 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
1597 method.
1598 (scoped_restore_tmpl::saved_var): New method.
1599 (scoped_restore_tmpl::m_saved_var): Delete.
1600 * inferior.h (inferior::detaching): Now a bool.
1601 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
1602 cleanup.
1603 * unittests/scoped_restore-selftests.c: New file.
1604
26fcd539
PA
16052017-04-19 Pedro Alves <palves@redhat.com>
1606
1607 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
1608 Re-sort in alphabetic order.
1609
fdd243b0
PA
16102017-04-18 Pedro Alves <palves@redhat.com>
1611
1612 * xml-support.c (obstack_xml_printf): Delete.
1613 * xml-support.h (obstack_xml_printf): Delete.
1614
4895cde2
PA
16152017-04-18 Pedro Alves <palves@redhat.com>
1616
1617 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
1618 vdebug, verror, body_text, start_element, end_element, name,
1619 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
1620 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
1621 is_xinclude>: Make private and add m_ prefix.
1622 (gdb_xml_parser::body_text): New method, based on ...
1623 (gdb_xml_body_text): ... this. Adjust.
1624 (gdb_xml_parser::vdebug): New method, based on ...
1625 (gdb_xml_debug): ... this. Adjust.
1626 (gdb_xml_parser::verror): New method, based on ...
1627 (gdb_xml_error): ... this. Adjust.
1628 (gdb_xml_parser::start_element): New method, based on ...
1629 (gdb_xml_start_element): ... this. Adjust.
1630 (gdb_xml_start_element_wrapper): Defer to
1631 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
1632 (gdb_xml_parser::end_element): New method, based on ...
1633 (gdb_xml_end_element_wrapper): ... this. Adjust.
1634 (gdb_xml_parser::~gdb_xml_parser): Adjust.
1635 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
1636 (gdb_xml_parser::use_dtd): New method, based on ...
1637 (gdb_xml_use_dtd): ... this. Adjust.
1638 (gdb_xml_parser::parse): New method, based on ...
1639 (gdb_xml_parse): ... this. Adjust.
1640 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
1641 (xinclude_start_include): Adjust to call the parser's name method.
1642 (xml_xinclude_default, xml_xinclude_start_doctype)
1643 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
1644 method.
1645 (xml_process_xincludes): Adjust to call parser methods.
1646 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
1647 declarations.
1648
bd8a901f
PA
16492017-04-18 Pedro Alves <palves@redhat.com>
1650
1651 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
1652 gdb::optional<std::string>.
1653 * xml-support.c: Include <string>.
1654 (scope_level::scope_level(scope_level &&))
1655 (scope_level::~scope_level): Delete.
1656 (scope_level::body): Now a std::string.
1657 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
1658 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
1659 parameter.
1660 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
1661 (xinclude_parsing_data::output): Now a std::string reference.
1662 (xinclude_start_include): Adjust.
1663 (xml_xinclude_default): Adjust.
1664 (xml_process_xincludes): Add 'output' parameter, and return bool.
1665 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
1666 and return bool.
1667 * xml-tdesc.c: Include <unordered_map> and <string>.
1668 (tdesc_xml_cache): Delete.
1669 (tdesc_xml_cache_s): Delete.
1670 (xml_cache): Now an std::unordered_map.
1671 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
1672 (target_fetch_description_xml): Change return type to
1673 gdb::optional<std::string>, and adjust.
1674 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
1675 (target_fetch_description_xml): Change return type to
1676 gdb::optional<std::string>.
1677
d35d1958
PA
16782017-04-18 Pedro Alves <palves@redhat.com>
1679
1680 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1681 unittests/optional-selftests.c.
1682 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
1683 * unittests/optional-selftests.c: New file.
1684 * unittests/optional/assignment/1.cc: New file.
1685 * unittests/optional/assignment/2.cc: New file.
1686 * unittests/optional/assignment/3.cc: New file.
1687 * unittests/optional/assignment/4.cc: New file.
1688 * unittests/optional/assignment/5.cc: New file.
1689 * unittests/optional/assignment/6.cc: New file.
1690 * unittests/optional/assignment/7.cc: New file.
1691 * unittests/optional/cons/copy.cc: New file.
1692 * unittests/optional/cons/default.cc: New file.
1693 * unittests/optional/cons/move.cc: New file.
1694 * unittests/optional/cons/value.cc: New file.
1695 * unittests/optional/in_place.cc: New file.
1696 * unittests/optional/observers/1.cc: New file.
1697 * unittests/optional/observers/2.cc: New file.
1698
22796e97
PA
16992017-04-18 Pedro Alves <palves@redhat.com>
1700
1701 * common/gdb_optional.h: Include common/traits.h.
1702 (in_place_t): New type.
1703 (in_place): New constexpr variable.
1704 (optional::optional): Remove member initialization of
1705 m_instantiated.
1706 (optional::optional(in_place_t...)): New constructor.
1707 (optional::~optional): Use reset.
1708 (optional::optional(const optional&)): New.
1709 (optional::optional(const optional&&)): New.
1710 (optional::optional(T &)): New.
1711 (optional::optional(T &&)): New.
1712 (operator::operator=(const optional &)): New.
1713 (operator::operator=(optional &&)): New.
1714 (operator::operator= (const T &))
1715 (operator::operator= (T &&))
1716 (operator::emplace (Args &&... args)): Return a T&. Use reset.
1717 (operator::reset): New.
1718 (operator::m_instantiated):: Add in-class initializer.
1719 * common/traits.h: Include <type_traits>.
1720 (struct And): New types.
1721
a7fc9b61
PA
17222017-04-18 Pedro Alves <palves@redhat.com>
1723
1724 * xml-support.c: Include <vector>.
1725 (scope_level::scope_level(const gdb_xml_element *))
1726 (scope_level::scope_level(scope_level&&)): New.
1727 (scope_level::~scope_level): New.
1728 (scope_level_s): Delete.
1729 (gdb_xml_parser::scopes): Now a std::vector.
1730 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
1731 Use std::vector.
1732 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
1733 scope cleanup code.
1734 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
1735 of the scopes member. Use std::vector::emplace_back.
1736
010151c9
PA
17372017-04-18 Pedro Alves <palves@redhat.com>
1738
1739 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
1740 a bool.
1741 (gdb_xml_end_element): Change type of first parameter.
1742 (gdb_xml_cleanup): Rename to ...
1743 (gdb_xml_parser::~gdb_xml_parser): ... this.
1744 (gdb_xml_create_parser_and_cleanup): Delete with ...
1745 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
1746 to this new ctor.
1747 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
1748 using gdb_xml_create_parser_and_cleanup.
1749 (xinclude_parsing_data): Add ctor/dtor.
1750 (xml_xinclude_cleanup): Delete.
1751 (xml_process_xincludes): Create a local xinclude_parsing_data
1752 instead of heap-allocating one. Create a local gdb_xml_parser
1753 instead of heap-allocating one with
1754 gdb_xml_create_parser_and_cleanup.
1755
d56060f0
JB
17562017-04-18 John Baldwin <jhb@FreeBSD.org>
1757
1758 PR threads/20743
1759 * fbsd-nat.c (resume_one_thread_cb): Remove.
1760 (resume_all_threads_cb): Remove.
1761 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
1762 iterate_over_threads.
1763
305d16a9
JB
17642017-04-17 Joel Brobecker <brobecker@adacore.com>
1765
1766 * NEWS: Create a new section for the next release branch.
1767 Rename the section of the current branch, now that it has
1768 been cut.
1769
8bb57231
JB
17702017-04-17 Joel Brobecker <brobecker@adacore.com>
1771
1772 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
1773 * version.in: Bump version to 8.0.50.DATE-git.
1774
096c92dd
SDJ
17752017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
1776
1777 PR gdb/21385
1778 * windows-nat.c (windows_create_inferior): Declare 'allargs'
1779 independently of the host, and fix build breakage on Cygwin.
1780
0550c955
PA
17812017-04-13 Pedro Alves <palves@redhat.com>
1782
1783 * inferior.c (free_inferior): Convert to ...
1784 (inferior::~inferior): ... this dtor.
1785 (inferior::inferior): New ctor, factored out from ...
1786 (add_inferior_silent): ... here. Allocate the inferior with a new
1787 expression.
1788 (delete_inferior): Call delete instead of free_inferior.
1789 * inferior.h (gdb_environ, continuation): Forward declare.
1790 (inferior): Now a class. Add in-class initialization to all
1791 members. Make boolean fields bool, except 'detaching'.
1792 (inferior::inferior): New explicit ctor.
1793 (inferior::~inferior): New.
1794
e3d60dfc
PA
17952017-04-13 Pedro Alves <palves@redhat.com>
1796
1797 * inferior.c (init_inferior_list): Delete.
1798 * inferior.h (init_inferior_list): Delete.
1799
5fd69d0a
PA
18002017-04-13 Pedro Alves <palves@redhat.com>
1801
1802 PR threads/13217
1803 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
1804 (top level): Call it twice, with different thread sets.
1805
c6609450
PA
18062017-04-13 Pedro Alves <palves@redhat.com>
1807
1808 * thread.c: Include <algorithm>.
1809 (thread_array_cleanup): Delete.
1810 (scoped_inc_dec_ref): New class.
1811 (live_threads_count): New function.
1812 (set_thread_refcount): Delete.
1813 (tp_array_compar_ascending): Now a bool.
1814 (tp_array_compar): Convert to a std::sort comparison function.
1815 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
1816 and live_threads_count.
1817
2a00d7ce
PA
18182017-04-13 Pedro Alves <palves@redhat.com>
1819
1820 * infrun.c (follow_fork_inferior): Also switch the current
1821 inferior.
1822
441d7c93
PA
18232017-04-13 Pedro Alves <palves@redhat.com>
1824
1825 * breakpoint.c (watch_command_1): Save watchpoint-frame info
1826 before calling create_internal_breakpoint.
1827
808480f6
PA
18282017-04-13 Pedro Alves <palves@redhat.com>
1829
1830 * fork-child.c (execv_argv): New class.
1831 (breakup_args): Refactored as ...
1832 (execv_argv::init_for_no_shell): .. this method of execv_argv.
1833 Copy arguments to storage and replace separators with NULL
1834 terminators in place.
1835 (escape_bang_in_quoted_argument): Adjust to return bool.
1836 (execv_argv::execv_argv): New ctor.
1837 (execv_argv::init_for_shell): New method, factored out from
1838 fork_inferior. Don't strdup strings into the vector.
1839 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
1840 Remove free_vector_argv call.
1841
ad3d022a
YQ
18422017-04-13 Yao Qi <yao.qi@linaro.org>
1843
1844 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
1845 tdep->rx_psw_type.
1846
e6ddc3bf
YQ
18472017-04-13 Yao Qi <yao.qi@linaro.org>
1848
1849 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
1850 * rx-tdep.c (rx_gdbarch_init): Likewise.
1851
bfb8cf90
PA
18522017-04-13 Pedro Alves <palves@redhat.com>
1853
1854 * breakpoint.h (struct breakpoint): Reindent.
1855
f5336ca5
PA
18562017-04-13 Pedro Alves <palves@redhat.com>
1857
1858 * breakpoint.c (bp_location): Rename to ...
1859 (bp_locations): ... this. All references updated.
1860 (bp_location_count): Rename to ...
1861 (bp_locations_count): ... this. All references updated.
1862 (bp_location_placed_address_before_address_max): Rename to ...
1863 (bp_locations_placed_address_before_address_max): ... this. All
1864 references updated.
1865 (bp_location_shadow_len_after_address_max): Rename to ...
1866 (bp_locations_shadow_len_after_address_max): ... this. All
1867 references updated.
1868 (bp_location_compare_addrs): Rename to ...
1869 (bp_locations_compare_addrs): ... this. All references updated.
1870 (bp_location_compare):Rename to ...
1871 (bp_locations_compare): ... this. All references updated.
1872 (bp_location_target_extensions_update): Rename to ...
1873 (bp_locations_target_extensions_update): ... this. All references
1874 updated.
1875
be628ab8
SDJ
18762017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
1877
1878 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
1879 * common/common.m4: Check headers 'termios.h', 'termio.h' and
1880 'sgtty.h'.
1881 * common/gdb_termios.h: New file, with parts of "terminal.h".
1882 * inflow.c: Include "gdb_termios.h".
1883 * ser-unix.c: Include "gdb_termios.h".
1884 * terminal.h: Move terminal-related defines to
1885 "common/gdb_termios.h".
1886
8e9e35b1
TT
18872017-04-12 Tom Tromey <tom@tromey.com>
1888
1889 * probe.c (parse_probes): Update.
1890 * location.h (delete_event_location): Don't declare.
1891 (event_location_deleter::operator()): Update.
1892 * location.c (event_location_deleter::operator()): Rename from
1893 delete_event_location.
1894 * linespec.h (linespec_result) <location>: Change type to
1895 event_location_up.
1896 * linespec.c (canonicalize_linespec, event_location_to_sals)
1897 (decode_objc): Update.
1898 (linespec_result): Don't call delete_event_location.
1899 * breakpoint.c (create_breakpoints_sal)
1900 (bkpt_probe_create_sals_from_location)
1901 (strace_marker_create_sals_from_location): Update.
1902
16e802b9
TT
19032017-04-12 Tom Tromey <tom@tromey.com>
1904
1905 * linespec.h (struct linespec_result): Add constructor and
1906 destructor.
1907 (init_linespec_result, destroy_linespec_result)
1908 (make_cleanup_destroy_linespec_result): Don't declare.
1909 * linespec.c (init_linespec_result): Remove.
1910 (linespec_result::~linespec_result): Rename from
1911 destroy_linespec_result. Update.
1912 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
1913 Remove.
1914 * breakpoint.c (create_breakpoint, break_range_command)
1915 (decode_location_default): Update.
1916 * ax-gdb.c (agent_command_1): Update.
1917
d28cd78a
TT
19182017-04-12 Tom Tromey <tom@tromey.com>
1919
1920 * remote.c (remote_download_tracepoint): Update.
1921 * python/py-breakpoint.c (bppy_get_location): Update.
1922 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
1923 (gdbscm_breakpoint_location): Update.
1924 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
1925 * breakpoint.h (struct breakpoint) <location, location_range_end>:
1926 Change type to event_location_up.
1927 * breakpoint.c (create_overlay_event_breakpoint)
1928 (create_longjmp_master_breakpoint)
1929 (create_std_terminate_master_breakpoint)
1930 (create_exception_master_breakpoint)
1931 (breakpoint_event_location_empty_p, print_breakpoint_location)
1932 (print_one_breakpoint_location, create_thread_event_breakpoint)
1933 (init_breakpoint_sal, create_breakpoint)
1934 (print_recreate_ranged_breakpoint, break_range_command)
1935 (init_ada_exception_breakpoint, say_where): Update.
1936 (base_breakpoint_dtor): Don't call delete_event_location.
1937 (bkpt_print_recreate, tracepoint_print_recreate)
1938 (dprintf_print_recreate, update_static_tracepoint)
1939 (breakpoint_re_set_default): Update.
1940
711799d5
TT
19412017-04-12 Tom Tromey <tom@tromey.com>
1942
1943 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
1944 type of "to_do". Update.
1945 (compute_stack_depth): Use std::vector.
1946
52d214d3
TT
19472017-04-12 Tom Tromey <tom@tromey.com>
1948
1949 * printcmd.c (find_instruction_backward): Use std::vector.
1950
4c404b8b
TT
19512017-04-12 Tom Tromey <tom@tromey.com>
1952
1953 * symfile.c (objfilep): Remove typedef.
1954 (reread_symbols): Use a std::vector.
1955
156d9eab
TT
19562017-04-12 Tom Tromey <tom@tromey.com>
1957
1958 * mi/mi-main.c (exec_direction_forward): Remove.
1959 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
1960 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1961 scoped_restore.
1962 * guile/guile.c (guile_repl_command, guile_command)
1963 (gdbscm_execute_gdb_command): Use scoped_restore.
1964 * go-exp.y (go_parse): Use scoped_restore.
1965 * d-exp.y (d_parse): Use scoped_restore.
1966 * cli/cli-decode.c (cmd_func): Use scoped_restore.
1967 * c-exp.y (c_parse): Use scoped_restore.
1968
4d89769a
TT
19692017-04-12 Tom Tromey <tom@tromey.com>
1970
1971 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
1972 (mi_parse): Update return type.
1973 (mi_parse_free): Remove.
1974 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
1975 (mi_parse::~mi_parse): Rename from mi_parse_free.
1976 (mi_parse_cleanup): Remove.
1977 (mi_parse): Return a unique_ptr. Use new.
1978 * mi/mi-main.c (mi_execute_command): Update.
1979
4b217cc7
TT
19802017-04-12 Tom Tromey <tom@tromey.com>
1981
1982 * location.c (explicit_location_lex_one): Return a
1983 unique_xmalloc_ptr.
1984 (string_to_explicit_location): Update. Remove cleanups.
1985
59d3651b
TT
19862017-04-12 Tom Tromey <tom@tromey.com>
1987
1988 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
1989 (compare_value_and_voffset): Change type. Update.
1990 (compute_vtable_size): Change type of "offset_vec".
1991 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
1992 (gnuv3_get_typeid): Remove extraneous declaration.
1993
b24b0d6c
TT
19942017-04-12 Tom Tromey <tom@tromey.com>
1995
1996 * charset.h (wchar_iterator): Fix comment.
1997
80a3b8c5
TT
19982017-04-12 Tom Tromey <tom@tromey.com>
1999
2000 * charset.c (iconv_wrapper): New class.
2001 (cleanup_iconv): Remove.
2002 (convert_between_encodings): Use it.
2003
c83dd867
TT
20042017-04-12 Tom Tromey <tom@tromey.com>
2005
2006 * symfile.h (increment_reading_symtab): Update type.
2007 * symfile.c (decrement_reading_symtab): Remove.
2008 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
2009 * psymtab.c (psymtab_to_symtab): Update.
2010 * dwarf2read.c (dw2_instantiate_symtab): Update.
2011
0e8621a0
TT
20122017-04-12 Tom Tromey <tom@tromey.com>
2013
2014 * jit.c (struct jit_reader): Declare separately. Add constructor
2015 and destructor. Change type of "handle".
2016 (loaded_jit_reader): Define separately.
2017 (jit_reader_load): Update. New "new".
2018 (jit_reader_unload_command): Use "delete".
2019 * gdb-dlfcn.h (struct dlclose_deleter): New.
2020 (gdb_dlhandle_up): New typedef.
2021 (gdb_dlopen, gdb_dlsym): Update types.
2022 (gdb_dlclose): Remove.
2023 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
2024 (gdb_dlsym): Change type of "handle".
2025 (make_cleanup_dlclose): Remove.
2026 (dlclose_deleter::operator()): Rename from gdb_dlclose.
2027 * compile/compile-c-support.c (load_libcc): Update.
2028
67d89901
TT
20292017-04-12 Tom Tromey <tom@tromey.com>
2030
2031 * symtab.h (find_pcs_for_symtab_line): Change return type.
2032 * symtab.c (find_pcs_for_symtab_line): Change return type.
2033 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
2034 type of "vec". Update.
2035 (ltpy_get_pcs_for_line): Update.
2036 * linespec.c (decode_digits_ordinary): Update.
2037
93921405
TT
20382017-04-12 Tom Tromey <tom@tromey.com>
2039
2040 * tracepoint.c (actions_command): Update.
2041 * python/python.c (python_command, python_interactive_command):
2042 Update.
2043 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
2044 * guile/guile.c (guile_command): Update.
2045 * defs.h (read_command_lines, read_command_lines_1): Return
2046 command_line_up.
2047 (command_lines_deleter): New struct.
2048 (command_line_up): New typedef.
2049 * compile/compile.c (compile_code_command)
2050 (compile_print_command): Update.
2051 * cli/cli-script.h (get_command_line, copy_command_lines): Return
2052 command_line_up.
2053 (make_cleanup_free_command_lines): Remove.
2054 * cli/cli-script.c (get_command_line, read_command_lines_1)
2055 (copy_command_lines): Return command_line_up.
2056 (while_command, if_command, read_command_lines, define_command)
2057 (document_command): Update.
2058 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
2059 Remove.
2060 * breakpoint.h (breakpoint_set_commands): Change type of
2061 "commands".
2062 * breakpoint.c (breakpoint_set_commands): Change type of
2063 "commands". Update.
2064 (do_map_commands_command, update_dprintf_command_list)
2065 (create_tracepoint_from_upload): Update.
2066
ffc2605c
TT
20672017-04-12 Tom Tromey <tom@tromey.com>
2068
2069 * tracepoint.c (scope_info): Update.
2070 * spu-tdep.c (spu_catch_start): Update.
2071 * python/python.c (gdbpy_decode_line): Update.
2072 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
2073 * python/py-breakpoint.c (bppy_init): Update.
2074 * probe.c (parse_probes): Update.
2075 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
2076 * location.h (event_location_deleter): New struct.
2077 (event_location_up): New typedef.
2078 (new_linespec_location, new_address_location, new_probe_location)
2079 (new_explicit_location, copy_event_location)
2080 (string_to_event_location, string_to_event_location_basic)
2081 (string_to_explicit_location): Update return type.
2082 (make_cleanup_delete_event_location): Remove.
2083 * location.c (new_linespec_location, new_address_location)
2084 (new_probe_location, new_explicit_location, copy_event_location):
2085 Return event_location_up.
2086 (delete_event_location_cleanup)
2087 (make_cleanup_delete_event_location): Remove.
2088 (string_to_explicit_location, string_to_event_location_basic)
2089 (string_to_event_location): Return event_location_up.
2090 * linespec.c (canonicalize_linespec, event_location_to_sals)
2091 (decode_line_with_current_source)
2092 (decode_line_with_last_displayed, decode_objc): Update.
2093 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
2094 * completer.c (location_completer): Update.
2095 * cli/cli-cmds.c (edit_command, list_command): Update.
2096 * breakpoint.c (create_overlay_event_breakpoint)
2097 (create_longjmp_master_breakpoint)
2098 (create_std_terminate_master_breakpoint)
2099 (create_exception_master_breakpoint)
2100 (create_thread_event_breakpoint): Update.
2101 (init_breakpoint_sal): Update. Remove some dead code.
2102 (create_breakpoint_sal): Change type of "location". Update.
2103 (create_breakpoints_sal, create_breakpoint, break_command_1)
2104 (dprintf_command, break_range_command, until_break_command)
2105 (init_ada_exception_breakpoint)
2106 (strace_marker_create_sals_from_location)
2107 (update_static_tracepoint, trace_command, ftrace_command)
2108 (strace_command, create_tracepoint_from_upload): Update.
2109 * break-catch-throw.c (re_set_exception_catchpoint): Update.
2110 * ax-gdb.c (agent_command_1): Update.
2111
8f10c932
PA
21122017-04-12 Pedro Alves <palves@redhat.com>
2113
2114 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
2115 * configure.tgt: Handle i[34567]86-*-go32* and
2116 i[34567]86-*-msdosdjgpp*.
2117 * i386-tdep.c (i386_svr4_reg_to_regnum):
2118 Make extern.
2119 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
2120 i386-go32-tdep.c.
2121 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
2122 * i386-go32-tdep.c: New file.
2123 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
2124 declarations.
2125
0a31ccfb
SM
21262017-04-12 Simon Marchi <simon.marchi@ericsson.com>
2127
2128 * aix-thread.c (pd_status2str): Change return type to const char *.
2129
e9bb3fbb
PA
21302017-04-12 Pedro Alves <palves@redhat.com>
2131
2132 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
2133 calls to set_gdbarch_gnu_triplet_regexp.
2134
53375380
PA
21352017-04-12 Pedro Alves <palves@redhat.com>
2136
2137 PR gdb/21323
2138 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
2139 New enum value.
2140 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
2141 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
2142 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
2143 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
2144 * gdbarch.h, gdbarch.c: Regenerate.
2145 * aarch64-tdep.c (aarch64_gdbarch_init): Override
2146 gdbarch_wchar_bit and gdbarch_wchar_signed.
2147 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
2148 * arm-tdep.c (arm_gdbarch_init): Likewise.
2149 * avr-tdep.c (avr_gdbarch_init): Likewise.
2150 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2151 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
2152 * i386-tdep.c (i386_go32_init_abi): Likewise.
2153 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
2154 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
2155 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
2156 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
2157 * sh-tdep.c (sh_gdbarch_init): Likewise.
2158 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
2159 * sparc64-tdep.c (sparc64_init_abi): Likewise.
2160 * windows-tdep.c (windows_init_abi): Likewise.
2161 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
2162
53e710ac
PA
21632017-04-12 Pedro Alves <palves@redhat.com>
2164
2165 PR c++/21323
2166 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
2167 cplus_primitive_type_char32_t>: New enum values.
2168 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
2169 and cplus_primitive_type_char32_t.
2170 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
2171 32, use the archtecture's built-in type for char16_t and char32_t,
2172 respectively. Otherwise, fallback to init_integer_type as before,
2173 but make the type unsigned, and issue a complaint.
2174 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
2175
ab0538b8
AH
21762017-04-12 Alan Hayward <alan.hayward@arm.com>
2177
5e0e0422 2178 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
2179 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
2180
5430098f
SDJ
21812017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
2182
2183 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
2184 'const char *'.
2185
7c5ded6a
SDJ
21862017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
2187
2188 * common/common-utils.c (free_vector_argv): New function.
2189 * common/common-utils.h: Include <vector>.
2190 (free_vector_argv): New prototype.
2191 * darwin-nat.c (darwin_create_inferior): Rewrite function
2192 prototype in order to constify "exec_file" and accept a
2193 "std::string" for "allargs".
2194 * fork-child.c: Include <vector>.
2195 (breakup_args): Rewrite function, using C++.
2196 (fork_inferior): Rewrite function header, constify "exec_file_arg"
2197 and accept "std::string" for "allargs". Update the code to
2198 calculate "argv" based on "allargs". Update calls to "exec_fun"
2199 and "execvp".
2200 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
2201 order to constify "exec_file" and accept a "std::string" for
2202 "allargs".
2203 * go32-nat.c (go32_create_inferior): Likewise.
2204 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
2205 * infcmd.c (run_command_1): Constify "exec_file". Use
2206 "std::string" for inferior arguments.
2207 * inferior.h (fork_inferior): Update prototype.
2208 * linux-nat.c (linux_nat_create_inferior): Rewrite function
2209 prototype in order to constify "exec_file" and accept a
2210 "std::string" for "allargs".
2211 * nto-procfs.c (procfs_create_inferior): Likewise.
2212 * procfs.c (procfs_create_inferior): Likewise.
2213 * remote-sim.c (gdbsim_create_inferior): Likewise.
2214 * remote.c (extended_remote_run): Update code to accept
2215 "std::string" as argument.
2216 (extended_remote_create_inferior): Rewrite function prototype in
2217 order to constify "exec_file" and accept a "std::string" for
2218 "allargs".
2219 * rs6000-nat.c (super_create_inferior): Likewise.
2220 (rs6000_create_inferior): Likewise.
2221 * target.h (struct target_ops) <to_create_inferior>: Likewise.
2222 * windows-nat.c (windows_create_inferior): Likewise.
2223
ae0eee42
PA
22242017-04-11 Pedro Alves <palves@redhat.com>
2225
2226 * thread.c: Fix whitespace throughout.
2227
a6acac06
PR
22282017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
2229
2230 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
2231
64403bd1
AH
22322017-04-11 Alan Hayward <alan.hayward@arm.com>
2233
2234 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
2235
a5bef50f
SDJ
22362017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
2237
2238 PR gdb/21364
2239 * osdata.c (info_osdata): Check if 'type' is an empty string
2240 instead of NULL.
2241
9295a5a9
PA
22422017-04-10 Pedro Alves <palves@redhat.com>
2243
2244 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
2245 (ptid_to_global_thread_id, in_thread_list)
2246 (do_captured_list_thread_ids, set_resumed, set_running)
2247 (set_executing, set_stop_requested, finish_thread_state)
2248 (validate_registers_access, can_access_registers_ptid)
2249 (print_thread_info_1, switch_to_thread)
2250 (do_restore_current_thread_cleanup)
2251 (make_cleanup_restore_current_thread, thread_command)
2252 (thread_name_command): Use operator== instead of ptid_equal.
2253
996812e3
PA
22542017-04-10 Pedro Alves <palves@redhat.com>
2255
2256 * thread.c (struct current_thread_cleanup) <next>: Delete field.
2257 (current_thread_cleanup_chain): Delete.
2258 (restore_current_thread_cleanup_dtor)
2259 (make_cleanup_restore_current_thread): Remove references to
2260 current_thread_cleanup_chain.
2261
845b344f
AH
22622017-04-10 Alan Hayward <alan.hayward@arm.com>
2263
2264 * msp430-tdep.c (msp430_pseudo_register_read): Never return
2265 REG_UNKNOWN.
2266
803bdfe4
YQ
22672017-04-10 Yao Qi <yao.qi@linaro.org>
2268
2269 PR gdb/19942
2270 * gdbthread.h (thread_info::deletable): New method.
2271 (thread_info::incref): New method.
2272 (thread_info::decref): New method.
2273 (thread_info::refcount): Move it to private.
2274 * infrun.c (save_stop_context): Call inc_refcount.
2275 (release_stop_context_cleanup): Likewise.
2276 * thread.c (set_thread_exited): New function.
2277 (init_thread_list): Delete "tp" only it is deletable, otherwise
2278 call set_thread_exited.
2279 (delete_thread_1): Call set_thread_exited.
2280 (current_thread_cleanup) <inferior_pid>: Remove.
2281 <thread>: New field.
2282 (restore_current_thread_ptid_changed): Removed.
2283 (do_restore_current_thread_cleanup): Adjust.
2284 (restore_current_thread_cleanup_dtor): Don't call
2285 find_thread_ptid.
2286 (set_thread_refcount): Use dec_refcount.
2287 (make_cleanup_restore_current_thread): Adjust.
2288 (thread_apply_all_command): Call inc_refcount.
2289 (_initialize_thread): Don't call
2290 observer_attach_thread_ptid_changed.
2291
8c25b497
YQ
22922017-04-10 Yao Qi <yao.qi@linaro.org>
2293
2294 * thread.c (delete_thread_1): Hoist code on marking thread as
2295 exited.
2296
8473b447
SM
22972017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
2298
2299 * windows-nat.c (windows_detach): Initialize ptid with
2300 minus_one_ptid.
2301
6670ec13
SM
23022017-04-07 Simon Marchi <simon.marchi@ericsson.com>
2303
2304 * unittests/ptid-selftests.c: Fix erroneous assert messages.
2305
ba2f91bb
AH
23062017-04-07 Alan Hayward <alan.hayward@arm.com>
2307
2308 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
2309 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
2310 (bfin_pseudo_register_write): Likewise
2311
436252de
SM
23122017-04-06 Simon Marchi <simon.marchi@ericsson.com>
2313
2314 * common/ptid.h (struct ptid): Change to...
2315 (class ptid_t): ... this.
2316 <ptid_t>: New constructors.
2317 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
2318 matches>: New methods.
2319 <make_null, make_minus_one>: New static methods.
2320 <pid>: Rename to...
2321 <m_pid>: ...this.
2322 <lwp>: Rename to...
2323 <m_lwp>: ...this.
2324 <tid>: Rename to...
2325 <m_tid>: ...this.
2326 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
2327 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
2328 as references, move comment to class ptid_t.
2329 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
2330 ptid_t static methods.
2331 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
2332 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
2333 Take ptid arguments as references, implement using ptid_t methods.
2334 * unittests/ptid-selftests.c: New file.
2335 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2336 unittests/ptid-selftests.c.
2337 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
2338
0dedf377
TP
23392017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
2340
2341 * python/python.c (python_run_simple_file): Cast mode literal to
2342 non-const char pointer as expected by PyFile_FromString.
2343
4e9868d4
SM
23442017-04-05 Simon Marchi <simon.marchi@ericsson.com>
2345
2346 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
2347 minus_one_ptid and null_ptid.
2348
9bf2a700
PA
23492017-04-05 Pedro Alves <palves@redhat.com>
2350
2351 * warning.m4 (build_warnings): Remove -Wno-write-strings.
2352 * configure: Regenerate.
2353
a121b7c1
PA
23542017-04-05 Pedro Alves <palves@redhat.com>
2355
2356 * ada-exp.y (yyerror): Constify.
2357 * ada-lang.c (bound_name, get_selections)
2358 (ada_variant_discrim_type)
2359 (ada_variant_discrim_name, ada_value_struct_elt)
2360 (ada_lookup_struct_elt_type, is_unchecked_variant)
2361 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
2362 (catch_ada_exception_command_split)
2363 (catch_ada_assert_command_split, catch_assert_command)
2364 (ada_op_name): Constify.
2365 * ada-lang.h (ada_yyerror, get_selections)
2366 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
2367 * arc-tdep.c (arc_print_frame_cache): Constify.
2368 * arm-tdep.c (arm_skip_stub): Constify.
2369 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
2370 (gen_aggregate_elt_ref): Constify.
2371 * bcache.c (print_bcache_statistics): Constify.
2372 * bcache.h (print_bcache_statistics): Constify.
2373 * break-catch-throw.c (catch_exception_command_1):
2374 * breakpoint.c (struct ep_type_description::description):
2375 Constify.
2376 (add_solib_catchpoint): Constify.
2377 (catch_fork_command_1): Add cast.
2378 (add_catch_command): Constify.
2379 * breakpoint.h (add_catch_command, add_solib_catchpoint):
2380 Constify.
2381 * bsd-uthread.c (bsd_uthread_state): Constify.
2382 * buildsym.c (patch_subfile_names): Constify.
2383 * buildsym.h (next_symbol_text_func, patch_subfile_names):
2384 Constify.
2385 * c-exp.y (yyerror): Constify.
2386 (token::oper): Constify.
2387 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
2388 * c-varobj.c (cplus_describe_child): Constify.
2389 * charset.c (find_charset_names): Add cast.
2390 (find_charset_names): Constify array and add const_cast.
2391 * cli/cli-cmds.c (complete_command, cd_command): Constify.
2392 (edit_command): Constify.
2393 * cli/cli-decode.c (lookup_cmd): Constify.
2394 * cli/cli-dump.c (dump_memory_command, dump_value_command):
2395 Constify.
2396 (struct dump_context): Constify.
2397 (add_dump_command, restore_command): Constify.
2398 * cli/cli-script.c (get_command_line): Constify.
2399 * cli/cli-script.h (get_command_line): Constify.
2400 * cli/cli-utils.c (check_for_argument): Constify.
2401 * cli/cli-utils.h (check_for_argument): Constify.
2402 * coff-pe-read.c (struct read_pe_section_data): Constify.
2403 * command.h (lookup_cmd): Constify.
2404 * common/print-utils.c (decimal2str): Constify.
2405 * completer.c (gdb_print_filename): Constify.
2406 * corefile.c (set_gnutarget): Constify.
2407 * cp-name-parser.y (yyerror): Constify.
2408 * cp-valprint.c (cp_print_class_member): Constify.
2409 * cris-tdep.c (cris_register_name, crisv32_register_name):
2410 Constify.
2411 * d-exp.y (yyerror): Constify.
2412 (struct token::oper): Constify.
2413 * d-lang.h (d_yyerror): Constify.
2414 * dbxread.c (struct header_file_location::name): Constify.
2415 (add_old_header_file, add_new_header_file, last_function_name)
2416 (dbx_next_symbol_text, add_bincl_to_list)
2417 (find_corresponding_bincl_psymtab, set_namestring)
2418 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
2419 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
2420 * defs.h (command_line_input, print_address_symbolic)
2421 (deprecated_readline_begin_hook): Constify.
2422 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
2423 Constify.
2424 * event-top.c (handle_line_of_input): Constify and add cast.
2425 * exceptions.c (catch_errors): Constify.
2426 * exceptions.h (catch_errors): Constify.
2427 * expprint.c (print_subexp_standard, op_string, op_name)
2428 (op_name_standard, dump_raw_expression, dump_raw_expression):
2429 * expression.h (op_name, op_string, dump_raw_expression):
2430 Constify.
2431 * f-exp.y (yyerror): Constify.
2432 (struct token::oper): Constify.
2433 (struct f77_boolean_val::name): Constify.
2434 * f-lang.c (f_word_break_characters): Constify.
2435 * f-lang.h (f_yyerror): Constify.
2436 * fork-child.c (fork_inferior): Add cast.
2437 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
2438 (new_variant): Constify.
2439 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
2440 * gdbarch.c: Regenerate.
2441 * gdbcore.h (set_gnutarget): Constify.
2442 * go-exp.y (yyerror): Constify.
2443 (token::oper): Constify.
2444 * go-lang.h (go_yyerror): Constify.
2445 * go32-nat.c (go32_sysinfo): Constify.
2446 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
2447 * guile/scm-cmd.c (cmdscm_function): Constify.
2448 * guile/scm-param.c (pascm_param_value): Constify.
2449 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
2450 (h8300sx_register_name): Constify.
2451 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
2452 Constify.
2453 * ia64-tdep.c (ia64_register_names): Constify.
2454 * infcmd.c (construct_inferior_arguments): Constify.
2455 (path_command, attach_post_wait): Constify.
2456 * language.c (show_range_command, show_case_command)
2457 (unk_lang_error): Constify.
2458 * language.h (language_defn::la_error)
2459 (language_defn::la_name_of_this): Constify.
2460 * linespec.c (decode_line_2): Constify.
2461 * linux-thread-db.c (thread_db_err_str): Constify.
2462 * lm32-tdep.c (lm32_register_name): Constify.
2463 * m2-exp.y (yyerror): Constify.
2464 * m2-lang.h (m2_yyerror): Constify.
2465 * m32r-tdep.c (m32r_register_names): Constify and make static.
2466 * m68hc11-tdep.c (m68hc11_register_names): Constify.
2467 * m88k-tdep.c (m88k_register_name): Constify.
2468 * macroexp.c (appendmem): Constify.
2469 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
2470 (upgrade_type, parse_external, parse_partial_symbols)
2471 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
2472 (new_symbol): Constify.
2473 * memattr.c (mem_info_command): Constify.
2474 * mep-tdep.c (register_name_from_keyword): Constify.
2475 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
2476 Constify.
2477 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
2478 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
2479 * mi/mi-main.c (captured_mi_execute_command): Constify and add
2480 cast.
2481 (mi_execute_async_cli_command): Constify.
2482 * mips-tdep.c (mips_register_name): Constify.
2483 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
2484 (am33_register_name, am33_2_register_name)
2485 * moxie-tdep.c (moxie_register_names): Constify.
2486 * nat/linux-osdata.c (osdata_type): Constify fields.
2487 * nto-tdep.c (nto_parse_redirection): Constify.
2488 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
2489 (lookup_child_selector): Constify.
2490 (objc_methcall::name): Constify.
2491 * objc-lang.h (lookup_objc_class, lookup_child_selector)
2492 (lookup_struct_typedef): Constify.
2493 * objfiles.c (pc_in_section): Constify.
2494 * objfiles.h (pc_in_section): Constify.
2495 * p-exp.y (struct token::oper): Constify.
2496 (yyerror): Constify.
2497 * p-lang.h (pascal_yyerror): Constify.
2498 * parser-defs.h (op_name_standard): Constify.
2499 (op_print::string): Constify.
2500 (exp_descriptor::op_name): Constify.
2501 * printcmd.c (print_address_symbolic): Constify.
2502 * psymtab.c (print_partial_symbols): Constify.
2503 * python/py-breakpoint.c (stop_func): Constify.
2504 (bppy_get_expression): Constify.
2505 * python/py-cmd.c (cmdpy_completer::name): Constify.
2506 (cmdpy_function): Constify.
2507 * python/py-event.c (evpy_add_attribute)
2508 (gdbpy_initialize_event_generic): Constify.
2509 * python/py-event.h (evpy_add_attribute)
2510 (gdbpy_initialize_event_generic): Constify.
2511 * python/py-evts.c (add_new_registry): Constify.
2512 * python/py-finishbreakpoint.c (outofscope_func): Constify.
2513 * python/py-framefilter.c (get_py_iter_from_func): Constify.
2514 * python/py-inferior.c (get_buffer): Add cast.
2515 * python/py-param.c (parm_constant::name): Constify.
2516 * python/py-unwind.c (fprint_frame_id): Constify.
2517 * python/python.c (gdbpy_parameter_value): Constify.
2518 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
2519 * remote.c (memory_packet_config::name): Constify.
2520 (show_packet_config_cmd, remote_write_bytes)
2521 (remote_buffer_add_string):
2522 * reverse.c (exec_reverse_once): Constify.
2523 * rs6000-tdep.c (variant::name, variant::description): Constify.
2524 * rust-exp.y (rustyyerror): Constify.
2525 * rust-lang.c (rust_op_name): Constify.
2526 * rust-lang.h (rustyyerror): Constify.
2527 * serial.h (serial_ops::name): Constify.
2528 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
2529 (sh_sh3e_register_name, sh_sh2e_register_name)
2530 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
2531 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
2532 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
2533 (sh_sh4al_dsp_register_name): Constify.
2534 * sh64-tdep.c (sh64_register_name): Constify.
2535 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
2536 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
2537 * stabsread.c (patch_block_stabs, read_type_number)
2538 (ref_map::stabs, ref_add, process_reference)
2539 (symbol_reference_defined, define_symbol, define_symbol)
2540 (error_type, read_type, read_member_functions, read_cpp_abbrev)
2541 (read_one_struct_field, read_struct_fields, read_baseclasses)
2542 (read_tilde_fields, read_struct_type, read_array_type)
2543 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
2544 (read_huge_number, read_range_type, read_args, common_block_start)
2545 (find_name_end): Constify.
2546 * stabsread.h (common_block_start, define_symbol)
2547 (process_one_symbol, symbol_reference_defined, ref_add):
2548 * symfile.c (get_section_index, add_symbol_file_command):
2549 * symfile.h (get_section_index): Constify.
2550 * target-descriptions.c (tdesc_type::name): Constify.
2551 (tdesc_free_type): Add cast.
2552 * target.c (find_default_run_target):
2553 (add_deprecated_target_alias, find_default_run_target)
2554 (target_announce_detach): Constify.
2555 (do_option): Constify.
2556 * target.h (add_deprecated_target_alias): Constify.
2557 * thread.c (print_thread_info_1): Constify.
2558 * top.c (deprecated_readline_begin_hook, command_line_input):
2559 Constify.
2560 (init_main): Add casts.
2561 * top.h (handle_line_of_input): Constify.
2562 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
2563 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
2564 (tfind_command): Rename to ...
2565 (tfind_command_1): ... this and constify.
2566 (tfind_command): New function.
2567 (tfind_end_command, tfind_start_command): Adjust.
2568 (encode_source_string): Constify.
2569 * tracepoint.h (encode_source_string): Constify.
2570 * tui/tui-data.c (tui_partial_win_by_name): Constify.
2571 * tui/tui-data.h (tui_partial_win_by_name): Constify.
2572 * tui/tui-source.c (tui_set_source_content_nil): Constify.
2573 * tui/tui-source.h (tui_set_source_content_nil): Constify.
2574 * tui/tui-win.c (parse_scrolling_args): Constify.
2575 * tui/tui-windata.c (tui_erase_data_content): Constify.
2576 * tui/tui-windata.h (tui_erase_data_content): Constify.
2577 * tui/tui-winsource.c (tui_erase_source_content): Constify.
2578 * tui/tui.c (tui_enable): Add cast.
2579 * utils.c (defaulted_query): Constify.
2580 (init_page_info): Add cast.
2581 (puts_debug, subset_compare): Constify.
2582 * utils.h (subset_compare): Constify.
2583 * varobj.c (varobj_format_string): Constify.
2584 * varobj.h (varobj_format_string): Constify.
2585 * vax-tdep.c (vax_register_name): Constify.
2586 * windows-nat.c (windows_detach): Constify.
2587 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
2588 * xml-support.c (gdb_xml_end_element): Constify.
2589 * xml-tdesc.c (tdesc_start_reg): Constify.
2590 * xstormy16-tdep.c (xstormy16_register_name): Constify.
2591 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
2592 * xtensa-tdep.h (xtensa_register_t::name): Constify.
2593
995816ba
PA
25942017-04-05 Pedro Alves <palves@redhat.com>
2595
2596 * proc-api.c (struct trans): Constify.
2597 (procfs_note): Constify.
2598 * proc-events.c (struct trans, syscall_table):
2599 * proc-flags.c (struct trans): Constify.
2600 * proc-utils.h (procfs_note): Constify.
2601 * proc-why.c (struct trans): Constify.
2602 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
2603 (procfs_detach): Constify.
2604 * sol-thread.c (struct string_map): Constify.
2605 (td_err_string, td_state_string): Constify.
2606
3e83a920
PA
26072017-04-05 Pedro Alves <palves@redhat.com>
2608
2609 * proc-api.c (procfs_filename): Don't initialize
2610 procfs_filename.
2611 (prepare_to_trace): Assume procfs_filename is non-NULL.
2612 (_initialize_proc_api): Give procfs_filename a default value here.
2613
63160a43
PA
26142017-04-05 Pedro Alves <palves@redhat.com>
2615
2616 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
2617 'cond_string' parameter.
2618 (extract_exception_regexp): Constify 'string' parameter.
2619 (catch_exception_command_1): Constify.
2620 * breakpoint.c (init_catchpoint)
2621 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
2622 parameter.
2623 (ep_parse_optional_if_clause, catch_fork_command_1)
2624 (catch_exec_command_1): Constify.
2625 * breakpoint.h (init_catchpoint): Constify 'cond_string'
2626 parameter.
2627 (ep_parse_optional_if_clause): Constify.
2628 * cli/cli-utils.c (remove_trailing_whitespace)
2629 (check_for_argument): Constify.
2630 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
2631 non-const overload.
2632 (check_for_argument): Likewise.
2633
9b2eba3d
PA
26342017-04-05 Pedro Alves <palves@redhat.com>
2635
2636 * event-top.c (command_line_handler): Add cast to execute_command
2637 call.
2638 * record-btrace.c (cmd_record_btrace_bts_start)
2639 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
2640 (cmd_record_btrace_start): Add cast to execute_command call.
2641 * record-full.c (record_full_goto_insn):
2642 * record.c (record_start, record_stop): Add cast to
2643 execute_command_to_string calls.
2644 (cmd_record_start): Add cast to execute_command calls.
2645
2adadf51
PA
26462017-04-05 Pedro Alves <palves@redhat.com>
2647
2648 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
2649 static inline function.
2650 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
2651 array and use gdb_PyArg_ParseTupleAndKeywords.
2652 * python/py-cmd.c (cmdpy_init): Likewise.
2653 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
2654 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
2655 (infpy_search_memory): Likewise.
2656 * python/py-objfile.c (objfpy_add_separate_debug_file)
2657 (gdbpy_lookup_objfile): Likewise.
2658 * python/py-symbol.c (gdbpy_lookup_symbol)
2659 (gdbpy_lookup_global_symbol): Likewise.
2660 * python/py-type.c (gdbpy_lookup_type): Likewise.
2661 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
2662 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
2663 Likewise.
2664
0d1f4ceb
PA
26652017-04-05 Pedro Alves <palves@redhat.com>
2666
2667 * python/python-internal.h (gdb_PyGetSetDef): New type.
2668 * python/py-block.c (block_object_getset)
2669 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
2670 * python/py-event.c (event_object_getset)
2671 (finish_breakpoint_object_getset): Likewise.
2672 * python/py-inferior.c (inferior_object_getset): Likewise.
2673 * python/py-infthread.c (thread_object_getset): Likewise.
2674 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
2675 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
2676 * python/py-objfile.c (objfile_getset): Likewise.
2677 * python/py-progspace.c (pspace_getset): Likewise.
2678 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
2679 Likewise.
2680 * python/py-record.c (recpy_record_getset): Likewise.
2681 * python/py-symbol.c (symbol_object_getset): Likewise.
2682 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
2683 Likewise.
2684 * python/py-type.c (type_object_getset, field_object_getset):
2685 Likewise.
2686 * python/py-value.c (value_object_getset): Likewise.
2687
4d759979
PA
26882017-04-05 Pedro Alves <palves@redhat.com>
2689
2690 * python/python-internal.h (gdb_PyObject_CallMethod)
2691 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
2692 New functions.
2693 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
2694 (PySys_GetObject, PySys_SetPath): New macros.
2695
fdf9e36f
PA
26962017-04-05 Pedro Alves <palves@redhat.com>
2697
2698 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
2699 info_osdata_command.
2700 * osdata.c (info_osdata_command): Rename to ...
2701 (info_osdata): ... this. Constify 'type' parameter, and remove
2702 the 'from_tty' parameter. Accept NULL TYPE.
2703 (info_osdata_command): New function.
2704 * osdata.h (info_osdata_command): Remove declaration.
2705 (info_osdata): New declaration.
2706
9f33b8b7
PA
27072017-04-05 Pedro Alves <palves@redhat.com>
2708
2709 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
2710 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
2711 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
2712 parameter.
2713 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
2714 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
2715 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
2716 parameter.
2717 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
2718 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
2719 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2720 (mi_cmd_file_list_exec_source_files)
2721 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
2722 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
2723 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
2724 parameter.
2725 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
2726 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
2727 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
2728 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
2729 (mi_cmd_stack_info_frame): Constify 'command' parameter.
2730 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
2731 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
2732 'command' parameter.
2733 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
2734 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
2735 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
2736 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
2737 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
2738 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
2739 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
2740 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
2741 (mi_cmd_var_set_update_range): Constify 'command' parameter.
2742 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
2743 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
2744 parameter.
2745 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
2746 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
2747 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
2748 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
2749 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
2750 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
2751 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
2752 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
2753 (mi_cmd_data_list_changed_registers)
2754 (mi_cmd_data_write_register_values)
2755 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2756 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
2757 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
2758 (mi_cmd_list_features, mi_cmd_list_target_features)
2759 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
2760 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
2761 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
2762 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
2763 (mi_cmd_trace_frame_collected): Constify 'command'
2764 parameter.
2765 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
2766 'command' parameter.
2767
67cb5b2d
PA
27682017-04-05 Pedro Alves <palves@redhat.com>
2769
2770 * ada-lang.c (ada_completer_word_break_characters): Now a const
2771 array.
2772 (ada_get_gdb_completer_word_break_characters): Constify.
2773 * completer.c (gdb_completer_command_word_break_characters)
2774 (gdb_completer_file_name_break_characters)
2775 (gdb_completer_quote_characters): Now const arrays.
2776 (get_gdb_completer_quote_characters): Constify.
2777 (set_rl_completer_word_break_characters): New function.
2778 (set_gdb_completion_word_break_characters)
2779 (complete_line_internal): Use it.
2780 * completer.h (get_gdb_completer_quote_characters): Constify.
2781 (set_rl_completer_word_break_characters): Declare.
2782 * f-lang.c (f_word_break_characters): Constify.
2783 * language.c (default_word_break_characters): Constify.
2784 * language.h (language_defn::la_word_break_characters): Constify.
2785 (default_word_break_characters): Constify.
2786 * top.c (init_main): Use set_rl_completer_word_break_characters.
2787
7a114964
PA
27882017-04-05 Pedro Alves <palves@redhat.com>
2789
2790 * aix-thread.c (aix_thread_pid_to_str)
2791 (aix_thread_extra_thread_info): Constify.
2792 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
2793 * bsd-uthread.c (bsd_uthread_extra_thread_info)
2794 (bsd_uthread_pid_to_str): Constify.
2795 * corelow.c (core_pid_to_str): Constify.
2796 * darwin-nat.c (darwin_pid_to_str): Constify.
2797 * fbsd-nat.c (fbsd_pid_to_str): Constify.
2798 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
2799 Constify.
2800 * gnu-nat.c (gnu_pid_to_str): Constify.
2801 * go32-nat.c (go32_pid_to_str): Constify.
2802 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
2803 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
2804 * inferior.c (inferior_pid_to_str): Constify.
2805 * linux-nat.c (linux_nat_pid_to_str): Constify.
2806 * linux-tdep.c (linux_core_pid_to_str): Constify.
2807 * linux-thread-db.c (thread_db_pid_to_str)
2808 (thread_db_extra_thread_info): Constify.
2809 * nto-tdep.c (nto_extra_thread_info): Constify.
2810 * nto-tdep.h (nto_extra_thread_info): Constify.
2811 * obsd-nat.c (obsd_pid_to_str): Constify.
2812 * procfs.c (procfs_pid_to_str): Constify.
2813 * ravenscar-thread.c (ravenscar_extra_thread_info)
2814 (ravenscar_pid_to_str): Constify.
2815 * remote-sim.c (gdbsim_pid_to_str): Constify.
2816 * remote.c (remote_threads_extra_info, remote_pid_to_str):
2817 Constify.
2818 * sol-thread.c (solaris_pid_to_str): Constify.
2819 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
2820 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
2821 * target.c (default_pid_to_str, target_pid_to_str)
2822 (normal_pid_to_str, default_pid_to_str): Constify.
2823 * target.h (target_ops::to_pid_to_str)
2824 (target_ops::to_extra_thread_info): Constify.
2825 (target_pid_to_str, normal_pid_to_str): Constify.
2826 * windows-nat.c (windows_pid_to_str): Constify.
2827 * gdbarch.sh (core_pid_to_str): Constify.
2828 * target-delegates.c: Regenerate.
2829 * gdbarch.h, gdbarch.c: Regenerate.
2830
69bbf465
PA
28312017-04-05 Pedro Alves <palves@redhat.com>
2832
2833 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
2834 the memory of the temporary warning_pre_print override.
2835 * utils.c (warning_pre_print): Constify.
2836 * utils.h (warning_pre_print): Constify.
2837
be47f9e8
PA
28382017-04-05 Pedro Alves <palves@redhat.com>
2839
2840 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
2841 (shell_command): New function.
2842 (make_command): Use std::string.
2843 (init_cli_cmds): Register shell_command instead of shell_escape.
2844
bde6261a
PA
28452017-04-05 Pedro Alves <palves@redhat.com>
2846
2847 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
2848 * tracepoint.c (default_collect): Don't initialize.
2849
b38ef47f
PA
28502017-04-05 Pedro Alves <palves@redhat.com>
2851
2852 * macroexp.c (macro_buffer::shared): Now a bool.
2853 (init_buffer): Update.
2854 (init_shared_buffer): Constify 'addr' parameter.
2855 (substitute_args, expand, macro_expand, macro_expand_next): Remove
2856 casts.
2857
f995bbe8
PA
28582017-04-05 Pedro Alves <palves@redhat.com>
2859
2860 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
2861 * disasm.c (set_disassembler_options): Constify local.
2862 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
2863
4a596fe2
SDJ
28642017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
2865
2866 PR gdb/21352
2867 * tracefile.c (tsave_command): Fix argument parsing for '-r'
2868 option.
2869
2cad08ea
YQ
28702017-04-05 Yao Qi <yao.qi@linaro.org>
2871
2872 * frame.c (frame_unwind_register_unsigned): Call
2873 frame_unwind_register_value.
2874
55a98976
YQ
28752017-04-05 Yao Qi <yao.qi@linaro.org>
2876
2877 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
2878 Use gdb_test_multiple, and don't match anchor.
2879
4ac40124
PA
28802017-04-05 Pedro Alves <palves@redhat.com>
2881
2882 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
2883 (Write After Approval): Remove Simon Marchi.
2884
c053b654
PA
28852017-04-05 Pedro Alves <palves@redhat.com>
2886
2887 * common/gdb_optional.h (optional::optional): Make constexpr and
2888 initialize m_dummy.
2889
4c7bf4f9
JB
28902017-04-04 John Baldwin <jhb@FreeBSD.org>
2891
2892 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
2893 (amd64fbsd_jmp_buf_reg_offset): Remove.
2894 (amd64fbsd_supply_uthread): Remove function.
2895 (amd64fbsd_collect_uthread): Remove function.
2896 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
2897 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
2898 (x86_64-*-freebsd*): Remove bsd-uthread.o.
2899 (fbsd-nat.c): Update comment.
2900 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
2901 (i386fbsd_jmp_buf_reg_offset): Remove.
2902 (i386fbsd_supply_uthread): Remove function.
2903 (i386fbsd_collect_uthread): Remove function.
2904 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
2905
1e1a8bef
JB
29062017-04-04 John Baldwin <jhb@FreeBSD.org>
2907
2908 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
2909 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
2910 * NEWS: Mention that support for FreeBSD/alpha was removed.
2911 * alpha-fbsd-tdep.c: Delete file.
2912 * config/alpha/fbsd.mh: Delete file.
2913 * configure.host: Delete alpha*-*-freebsd* and
2914 alpha*-*-kfreebsd*-gnu.
2915 * configure.tgt: Delete alpha*-*-freebsd* and
2916 alpha*-*-kfreebsd*-gnu.
2917
49907934
JB
29182017-04-04 John Baldwin <jhb@FreeBSD.org>
2919
2920 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
2921 amd64bsd_store_inferior_registers): Use ptid from regcache.
2922
6f77053d
PA
29232017-04-04 Pedro Alves <palves@redhat.com>
2924
2925 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
2926 data fields, make them private and add "m_" prefixes.
2927 (lnp_state_machine::lnp_state_machine): New ctor.
2928 (record_line, check_line_address, handle_set_discriminator)
2929 (handle_set_address, handle_advance_pc, handle_special_opcode)
2930 (handle_advance_line, handle_set_file, handle_negate_stmt)
2931 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
2932 (end_sequence, advance_line): New methods.
2933 (m_gdbarch, m_record_lines_p): New fields.
2934 (lnp_reader_state): Delete.
2935 (dwarf_record_line): Rename to ...
2936 (lnp_state_machine::record_line): ... adjust.
2937 (init_lnp_state_machine): Delete.
2938 (lnp_state_machine::lnp_state_machine): New.
2939 (check_line_address): Rename to ...
2940 (lnp_state_machine::check_line_address): This.
2941 (dwarf_decode_lines_1): Remove reference to "reader_state".
2942 Adjust lnp_state_machine having a non-default ctor. Use bool.
2943 State machine internal state manipulation moved to
2944 lnp_state_machine methods.
2945
9c541725
PA
29462017-04-04 Pedro Alves <palves@redhat.com>
2947
2948 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2949 unittests/offset-type-selftests.c.
2950 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
2951 * common/offset-type.h: New file.
2952 * common/preprocessor.h: New file.
2953 * common/traits.h: New file.
2954 * common/valid-expr.h: New file.
2955 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
2956 sect_offset and cu_offset strong typedefs throughout.
2957 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
2958 typedefs throughout.
2959 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
2960 sect_offset and cu_offset strong typedefs throughout.
2961 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
2962 typedefs throughout.
2963 * gdbtypes.h: Include "common/offset-type.h".
2964 (cu_offset): Now an offset type (strong typedef) instead of a
2965 struct.
2966 (sect_offset): Likewise.
2967 (union call_site_parameter_u): Rename "param_offset" field to
2968 "param_cu_off".
2969 * unittests/offset-type-selftests.c: New file.
2970
ecfb656c
PA
29712017-04-04 Pedro Alves <palves@redhat.com>
2972
2973 * common/underlying.h: New file.
2974 * dwarf2read.c: Include "common/gdb_optional.h" and
2975 "common/underlying.h".
2976 (dir_index, file_name_index): New types.
2977 (file_entry): Use them.
2978 (file_entry::include): Use to_underlying.
2979 (line_header::add_file_name): Use dir_index.
2980 (read_formatted_entries): Use gdb::optional. Read form before
2981 writting to file_entry.
2982 (dwarf_decode_line_header): Use dir_index.
2983 (lnp_state_machine::current_file): Use to_underlying.
2984 (lnp_state_machine::file): Change type to file_name_index.
2985 (dwarf_record_line): Use to_underlying.
2986 (init_lnp_state_machine): Use file_name_index.
2987 (dwarf_decode_lines_1): Use dir_index and file_name_index.
2988
d194f1fe
PA
29892017-04-04 Pedro Alves <palves@redhat.com>
2990
2991 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
2992 operator bool, has_value and get methods.
2993
fff8551c
PA
29942017-04-04 Pedro Alves <palves@redhat.com>
2995
2996 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
2997 fields.
2998 (line_header): Initialize all data fields. Change type of
2999 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
3000 Change type of include_dirs to std::vector<const char *>. Remove
3001 num_include_dirs, include_dirs_size. Change type of file_names to
3002 std::vector<file_entry>. Remove num_file_names, file_names_size.
3003 (line_header::line_header): New.
3004 (line_header::add_include_dir, line_header::add_file_name): New
3005 methods.
3006 (line_header::include_dir_at): Remove NULL check.
3007 (line_header::file_name_at): Add const overload.
3008 (line_header_up): New unique_ptr typedef.
3009 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
3010 std::vector. Remove free_line_header call.
3011 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
3012 free_line_header call.
3013 (free_cu_line_header): Delete.
3014 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
3015 (setup_type_unit_groups): Use line_header_up instead of cleanups.
3016 Adjust to use std::vector.
3017 (free_line_header): Delete.
3018 (free_line_header_voidp): Use delete.
3019 (add_include_dir): Replace with ...
3020 (line_header::add_include_dir): ... this method. Use std::vector.
3021 (add_file_name): Replace with ...
3022 (line_header::add_file_name): ... this method. Use std::vector.
3023 (add_include_dir_stub): Delete.
3024 (read_formatted_entries): Remove memset.
3025 (dwarf_decode_line_header): Return a line_header_up instead of a
3026 raw pointer. Remove cleanup handling. Pass lambdas to
3027 read_formatted_entries. Adjust to use line_header methods.
3028 (dwarf_decode_lines_1): Adjust to use line_header methods.
3029 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
3030 use std::vector.
3031
d62a8ae2
SM
30322017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
3033
3034 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
3035 instead of struct ptid.
3036
db3a1dc7
AH
30372017-05-04 Alan Hayward <alan.hayward@arm.com>
3038
3039 * frame.c (get_frame_register_bytes): Unwind using value.
3040 (put_frame_register_bytes): Likewise.
3041
b1b45502
IB
30422017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
3043
3044 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
3045 aggregate-like.
3046
ec13808e
JK
30472017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3048
3049 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
3050
12316564
YQ
30512017-03-29 Yao Qi <yao.qi@linaro.org>
3052
3053 * gdbthread.h (struct thread_info): Declare constructor and
3054 destructor. Add some in-class member initializers.
3055 * thread.c (free_thread): Remove.
3056 (init_thread_list): Call delete instead of free_thread.
3057 (new_thread): Call thread_info constructor.
3058 (thread_info::thread_info): New function.
3059 (thread_info::~thread_info): New function.
3060 (delete_thread_1): Call delete instead of free_thread.
3061 (make_cleanup_restore_current_thread): Move tp and frame to
3062 inner block.
3063
fe5f7374
AK
30642017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
3065
3066 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
3067 (arc_skip_prologue): Likewise.
3068 (arc_make_frame_cache): Likewise.
3069 (arc_pv_get_operand): New function.
3070 (arc_is_in_prologue): Likewise.
3071 (arc_analyze_prologue): Likewise.
3072 (arc_print_frame_cache): Likewise.
3073 (MAX_PROLOGUE_LENGTH): New constant.
3074
eea78757
AK
30752017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
3076
3077 * configure.tgt: Add arc-insn.o.
3078 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
3079 (dump_arc_instruction_command): New function.
3080 (arc_fprintf_disasm): Likewise.
3081 (arc_disassemble_info): Likewise.
3082 (arc_insn_get_operand_value): Likewise.
3083 (arc_insn_get_operand_value_signed): Likewise.
3084 (arc_insn_get_memory_base_reg): Likewise.
3085 (arc_insn_get_memory_offset): Likewise.
3086 (arc_insn_get_branch_target): Likewise.
3087 (arc_insn_dump): Likewise.
3088 (arc_insn_get_linear_next_pc): Likewise.
3089 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
3090 (arc_disassemble_info): Likewise.
3091 (arc_insn_get_branch_target): Likewise.
3092 (arc_insn_get_linear_next_pc): Likewise.
3093 * NEWS: Mention new "maint print arc arc-instruction".
3094
3be78afd
AK
30952017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
3096
3097 * arc-tdep (maintenance_print_arc_list): New variable.
3098 (maintenance_print_arc_command): New function.
3099
296ec4fa
AK
31002017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
3101
3102 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
3103 Add "limm" and "reserved".
3104 (arc_cannot_fetch_register, arc_cannot_store_register): Add
3105 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
3106 * arc-tdep.h (arc_regnum): Likewise.
3107
f74f865e
MF
31082017-03-27 Max Filippov <jcmvbkbc@gmail.com>
3109
3110 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
3111 for THREADPTR register.
3112 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
3113 register.
3114 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
3115 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
3116 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
3117
0d0bf81a
MF
31182017-03-27 Max Filippov <jcmvbkbc@gmail.com>
3119
3120 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
3121 registers above gdbarch_num_regs (gdbarch) as privileged in
3122 call0 ABI.
3123
0ce4291e
MF
31242017-03-27 Max Filippov <jcmvbkbc@gmail.com>
3125
3126 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
3127 for a single specified register or for all registers in
3128 a0_base..a0_base + C0_NREGS range.
3129 (supply_gregset_reg): Call regcache_raw_supply for a single
3130 specified register or for all registers in a0_base..a0_base +
3131 C0_NREGS range.
3132
c56054f9
MF
31332017-03-27 Max Filippov <jcmvbkbc@gmail.com>
3134
3135 * arch/xtensa.h (C0_NREGS): Add definition.
3136 * xtensa-tdep.c (C0_NREGS): Remove definition.
3137
a4398628
MF
31382017-03-27 Max Filippov <jcmvbkbc@gmail.com>
3139
3140 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
3141 Drop xtensa_default_isa initialization.
3142 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
3143
8c43009f
PA
31442017-03-27 Pedro Alves <palves@redhat.com>
3145
3146 * dwarf2read.c (file_entry) <dir_index>: Add comment.
3147 (file_entry::include_dir): New method.
3148 (line_header::include_dir_at, line_header::file_name_at): New
3149 methods.
3150 (setup_type_unit_groups, setup_type_unit_groups)
3151 (psymtab_include_file_name): Simplify using the new methods.
3152 (lnp_state_machine) <the_line_header>: New field.
3153 <file>: Add comment.
3154 (lnp_state_machine::current_file): New method.
3155 (dwarf_record_line): Simplify using the new methods.
3156 (init_lnp_state_machine): Initialize the "the_line_header" field.
3157 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
3158 Simplify using the new methods.
3159
a7e80b9e
PA
31602017-03-27 Pedro Alves <palves@redhat.com>
3161
3162 * cp-name-parser.y (make_empty): Delete.
3163 (demangler_special, nested_name, ptr_operator, array_indicator)
3164 (direct_declarator, declarator_1): Use fill_comp instead of
3165 make_empty.
3166
21047726
PA
31672017-03-27 Pedro Alves <palves@redhat.com>
3168
3169 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
3170 to ATTRIBUTE_PRINTF.
3171 * solib-target.c (library_list_start_list): Print "string" not
3172 "version".
3173 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
3174 gdb_xml_error call.
3175
d721ba37
PA
31762017-03-27 Pedro Alves <palves@redhat.com>
3177
3178 * dwarf2read.c (struct file_and_directory): New.
3179 (dwarf2_get_dwz_file): Adjust to use std::string.
3180 (dw2_get_file_names_reader): Adjust to use file_and_directory.
3181 (find_file_and_directory): Adjust to return a file_and_directory
3182 object.
3183 (read_file_scope): Adjust to use file_and_directory. Remove
3184 make_cleanup/do_cleanups calls.
3185 (open_and_init_dwp_file): Adjust to use std::string. Remove
3186 make_cleanup/do_cleanups calls.
3187 * python/python.c (do_start_initialization): Adjust to ldirname
3188 returning a std::string.
3189 * utils.c (ldirname): Now returns a std::string.
3190 * utils.h (ldirname): Change return type to std::string.
3191 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
3192 returning a std::string.
3193 * xml-tdesc.c (file_read_description_xml): Likewise.
3194
ed771251
AH
31952017-03-24 Alan Hayward <alan.hayward@arm.com>
3196
3197 * regcache.c (regcache_debug_print_register): New function.
3198 * regcache.h (regcache_debug_print_register): New declaration.
3199 * target.c (debug_print_register): Remove.
3200 (target_fetch_registers): Call regcache_debug_print_register.
3201 (target_store_registers): Likewise.
3202
568c1b9f
PB
32032017-03-24 Pádraig Brady <pbrady@fb.com>
3204
3205 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
3206 reference beyond the 'lh->include_dirs' array before accessing to
3207 it.
3208 (psymtab_include_file_name): Likewise.
3209 (dwarf_decode_lines_1): Likewise.
3210 (dwarf_decode_lines): Likewise.
3211 (file_file_name): Likewise.
3212
3e00d44f
SM
32132017-03-23 Simon Marchi <simon.marchi@ericsson.com>
3214
3215 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
3216 inferior_ptid.
3217 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
3218 ps_lsetfpregs): Likewise.
3219 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
3220 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
3221 ps_lsetfpregs): Likewise.
3222 * target.c (target_fetch_registers, target_store_registers):
3223 Remove asserts.
3224
077ae656
AH
32252017-03-23 Alan Hayward <alan.hayward@arm.com>
3226
3227 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
3228
1e2b521d
YQ
32292017-03-23 Yao Qi <yao.qi@linaro.org>
3230
3231 * aarch64-tdep.c (aarch64_process_record_test): Declare.
3232 (_initialize_aarch64_tdep): Register it.
3233 (aarch64_record_load_store): Handle PRFM instruction.
3234 (aarch64_process_record_test): New function.
3235
33877125
YQ
32362017-03-23 Yao Qi <yao.qi@linaro.org>
3237
3238 * aarch64-tdep.c (aarch64_record_load_store): Fix code
3239 indentation.
3240
a0eef940
YQ
32412017-03-23 Yao Qi <yao.qi@linaro.org>
3242
3243 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
3244
3f2a3564
PR
32452017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3246
3247 python/python.c (do_start_initialization): Fix memory leak.
3248
b67aeab0
SM
32492017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
3250
3251 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
3252 using get_ptrace_pid.
3253 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
3254 inferior_ptid.
3255 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
3256 inferior_ptid instead of pid.
3257
ffdbe864
YQ
32582017-03-22 Yao Qi <yao.qi@linaro.org>
3259
3260 * aarch64-tdep.c: Wrap locally used classes in anonymous
3261 namespace.
3262 * arm-tdep.c: Likewise.
3263 * linespec.c: Likewise.
3264 * ui-out.c: Likewise.
3265
9d736fbf
JG
32662017-03-22 Jonah Graham <jonah@kichwacoders.com>
3267
3268 PR gdb/19637
3269 * python/lib/gdb/printer/bound_registers.py: Import sys.
3270
3de88e9a
SM
32712017-03-21 Simon Marchi <simon.marchi@ericsson.com>
3272
3273 * windows-nat.c (do_windows_fetch_inferior_registers): Add
3274 windows_thread_info parameter and use it instead of
3275 current_thread.
3276 (windows_fetch_inferior_registers): Don't set current_thread,
3277 pass the thread to do_windows_fetch_inferior_registers. Use
3278 ptid from regcache instead of inferior_ptid.
3279 (do_windows_store_inferior_registers): Add windows_thread_info
3280 parameter and use it instead of current_thread.
3281 (windows_store_inferior_registers): Don't set current_thread,
3282 pass the thread to do_windows_store_inferior_registers. Use
3283 ptid from regcache instead of inferior_ptid.
3284
0e7b8f61
SM
32852017-03-21 Simon Marchi <simon.marchi@ericsson.com>
3286
3287 * ser-mingw.c (ser_windows_raw): Remove reference to
3288 struct serial::current_timeout.
3289
5badf10a
IR
32902017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
3291
3292 PR tdep/20928
3293 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
3294 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
3295 (sparc64_fsr_type): Fix %fsr decoding.
3296
cee59b3f
TW
32972017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
3298
3299 * python/py-record-btrace.c (btpy_insn_data): Change return type
3300 for Python 2.
3301
639a9038
SM
33022017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
3303
3304 * spu-linux-nat.c (spu_fetch_inferior_registers,
3305 spu_store_inferior_registers): Use ptid from regcache, set and
3306 restore inferior_ptid.
3307 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
3308 Likewise.
3309
bcc0c096
SM
33102017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
3311
3312 * i386-linux-nat.c (fetch_register, store_register,
3313 i386_linux_fetch_inferior_registers,
3314 i386_linux_store_inferior_registers): Use ptid from regcache.
3315 * ia64-linux-nat.c (ia64_linux_fetch_register,
3316 ia64_linux_store_register): Likewise.
3317 * inf-ptrace.c (inf_ptrace_fetch_register,
3318 inf_ptrace_store_register): Likewise.
3319 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
3320 m32r_linux_store_inferior_registers): Likewise.
3321 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
3322 m68kbsd_store_inferior_registers): Likewise.
3323 * m68k-linux-nat.c (fetch_register, store_register,
3324 m68k_linux_fetch_inferior_registers,
3325 m68k_linux_store_inferior_registers): Likewise.
3326 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
3327 m88kbsd_store_inferior_registers): Likewise.
3328 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
3329 mips_fbsd_store_inferior_registers): Likewise.
3330 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
3331 mips64_linux_regsets_store_registers): Likewise.
3332 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
3333 mipsnbsd_store_inferior_registers): Likewise.
3334 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
3335 mips64obsd_store_inferior_registers): Likewise.
3336 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
3337 Likewise.
3338 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
3339 ppcfbsd_store_inferior_registers): Likewise.
3340 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
3341 ppc_linux_store_inferior_registers): Likewise.
3342 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
3343 ppcnbsd_store_inferior_registers): Likewise.
3344 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
3345 ppcobsd_store_registers): Likewise.
3346 * procfs.c (procfs_fetch_registers, procfs_store_registers):
3347 Likewise.
3348 * ravenscar-thread.c (ravenscar_fetch_registers,
3349 ravenscar_store_registers, ravenscar_prepare_to_store):
3350 Likewise.
3351 * record-btrace.c (record_btrace_fetch_registers,
3352 record_btrace_store_registers, record_btrace_prepare_to_store):
3353 Likewise.
3354 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
3355 Lookup inferior using ptid from regcache, instead of
3356 current_inferior.
3357 * remote.c (remote_fetch_registers, remote_store_registers): Use
3358 ptid from regcache.
3359 * rs6000-nat.c (fetch_register, store_register): Likewise.
3360 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
3361 s390_linux_store_inferior_registers): Likewise.
3362 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
3363 shnbsd_store_inferior_registers): Likewise.
3364 * sol-thread.c (sol_thread_fetch_registers,
3365 sol_thread_store_registers): Likewise.
3366 * sparc-nat.c (sparc_fetch_inferior_registers,
3367 sparc_store_inferior_registers): Likewise.
3368 * tilegx-linux-nat.c (fetch_inferior_registers,
3369 store_inferior_registers): Likewise.
3370 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
3371 vaxbsd_store_inferior_registers): Likewise.
3372 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
3373 store_xtregs): Likewise.
3374
c0f55cc6
AV
33752017-03-20 Artemiy Volkov <artemiyv@acm.org>
3376
3377 PR gdb/14441
3378 * NEWS: Mention support for rvalue references in GDB and python.
3379 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
3380 supports both lvalue and rvalue references.
3381
15c0a2a9
AV
33822017-03-20 Artemiy Volkov <artemiyv@acm.org>
3383
3384 PR gdb/14441
3385 * gdbtypes.c (rank_one_type): Implement overloading
3386 resolution rules regarding rvalue references.
3387
aa006118
AV
33882017-03-20 Artemiy Volkov <artemiyv@acm.org>
3389
3390 PR gdb/14441
3391 * aarch64-tdep.c (aarch64_type_align)
3392 (aarch64_extract_return_value, aarch64_store_return_value): Change
3393 lvalue reference type checks to general reference type checks.
3394 * amd64-tdep.c (amd64_classify): Likewise.
3395 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3396 Likewise.
3397 * arm-tdep.c (arm_type_align, arm_extract_return_value)
3398 (arm_store_return_value): Likewise.
3399 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
3400 * c-typeprint.c (c_print_type): Likewise.
3401 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
3402 (cplus_number_of_children, cplus_describe_child): Likewise.
3403 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
3404 * completer.c (expression_completer): Likewise.
3405 * cp-support.c (make_symbol_overload_list_adl_namespace):
3406 Likewise.
3407 * darwin-nat-info.c (info_mach_region_command): Likewise.
3408 * dwarf2loc.c (entry_data_value_coerce_ref)
3409 (value_of_dwarf_reg_entry): Likewise.
3410 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
3411 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
3412 Likewise.
3413 * findvar.c (extract_typed_address, store_typed_address):
3414 Likewise.
3415 * gdbtypes.c (rank_one_type): Likewise.
3416 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
3417 * infcall.c (value_arg_coerce): Likewise.
3418 * language.c (pointer_type): Likewise.
3419 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
3420 Likewise.
3421 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
3422 * mn10300-tdep.c (mn10300_type_align): Likewise.
3423 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
3424 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
3425 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
3426 Likewise.
3427 * printcmd.c (print_formatted, x_command): Likewise.
3428 * python/py-type.c (typy_get_composite, typy_template_argument):
3429 Likewise.
3430 * python/py-value.c (valpy_referenced_value)
3431 (valpy_get_dynamic_type, value_has_field): Likewise.
3432 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
3433 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
3434 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
3435 * spu-tdep.c (spu_scalar_value_p): Likewise.
3436 * symtab.c (lookup_symbol_aux): Likewise.
3437 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
3438 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
3439 Likewise.
3440 * valops.c (value_cast_pointers, value_cast)
3441 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
3442 (value_struct_elt, value_struct_elt_bitpos)
3443 (value_find_oload_method_list, find_overload_match)
3444 (value_rtti_indirect_type): Likewise.
3445 * valprint.c (val_print_scalar_type_p, generic_val_print):
3446 Likewise.
3447 * value.c (value_actual_type, value_as_address, unpack_long)
3448 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
3449 (coerce_ref): Likewise.
3450 * varobj.c (varobj_get_value_type): Likewise.
3451
3fcf899d
AV
34522017-03-20 Artemiy Volkov <artemiyv@acm.org>
3453
3454 PR gdb/14441
3455 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
3456 table of constants.
3457 * python/lib/gdb/command/explore.py: Support exploring values
3458 of rvalue reference types.
3459 * python/lib/gdb/types.py: Implement get_basic_type() for
3460 rvalue reference types.
3461 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
3462 constant.
3463 * python/py-value.c (valpy_getitem): Add an rvalue reference
3464 check.
3465 (valpy_reference_value): Add new parameter "refcode".
3466 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
3467 New wrappers for valpy_reference_value().
3468 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
3469 (gdbpy_invoke_xmethod): Likewise.
3470
4297a3f0
AV
34712017-03-20 Artemiy Volkov <artemiyv@acm.org>
3472
3473 PR gdb/14441
3474 * dwarf2read.c (process_die, read_type_die_1): Handle the
3475 DW_TAG_rvalue_reference_type DIE.
3476 (read_tag_reference_type): Add new parameter "refcode".
3477
e1cb3213
AV
34782017-03-20 Artemiy Volkov <artemiyv@acm.org>
3479
3480 PR gdb/14441
3481 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
3482 (c_type_print_modifier, c_type_print_varspec_suffix)
3483 (c_type_print_base): Support printing rvalue reference types.
3484 * c-valprint.c (c_val_print, c_value_print): Support printing
3485 rvalue reference values.
3486
e4347c89
AV
34872017-03-20 Artemiy Volkov <artemiyv@acm.org>
3488
3489 PR gdb/14441
3490 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
3491 typename.
3492 * cp-support.c (replace_typedefs): Handle
3493 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
3494 * python/py-type.c (typy_lookup_type): Likewise.
3495
53cc15f5
AV
34962017-03-20 Artemiy Volkov <artemiyv@acm.org>
3497
3498 PR gdb/14441
3499 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
3500 * parse.c (insert_type): Change assert statement.
3501 (follow_types): Handle rvalue reference types.
3502 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
3503 constant.
3504
a65cfae5
AV
35052017-03-20 Artemiy Volkov <artemiyv@acm.org>
3506
3507 PR gdb/14441
3508 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
3509 value_ref() interface.
3510 * c-valprint.c (c_value_print): Likewise.
3511 * infcall.c (value_arg_coerce): Likewise.
3512 * python/py-value.c (valpy_reference_value): Likewise.
3513 * valops.c (value_cast, value_reinterpret_cast)
3514 (value_dynamic_cast, typecmp): Likewise.
3515 (value_ref): Parameterize by kind of return value reference type.
3516 * value.h (value_ref): Add new parameter "refcode".
3517
3b224330
AV
35182017-03-20 Artemiy Volkov <artemiyv@acm.org>
3519
3520 PR gdb/14441
3521 * dwarf2read.c (read_tag_reference_type): Use
3522 lookup_lvalue_reference_type() instead of lookup_reference_type().
3523 * eval.c (evaluate_subexp_standard): Likewise.
3524 * f-exp.y: Likewise.
3525 * gdbtypes.c (make_reference_type, lookup_reference_type):
3526 Generalize with rvalue reference types.
3527 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
3528 convenience wrappers for lookup_reference_type().
3529 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
3530 reference kind parameter.
3531 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
3532 wrappers for lookup_reference_type().
3533 * guile/scm-type.c (gdbscm_type_reference): Use
3534 lookup_lvalue_reference_type() instead of lookup_reference_type().
3535 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
3536 * parse.c (follow_types): Likewise.
3537 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
3538 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
3539 Likewise.
3540 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
3541 (gdbpy_invoke_xmethod): Likewise.
3542 * stabsread.c: Provide extra argument to make_reference_type()
3543 call.
3544 * valops.c (value_ref, value_rtti_indirect_type): Use
3545 lookup_lvalue_reference_type() instead of lookup_reference_type().
3546
f9aeb8d4
AV
35472017-03-20 Artemiy Volkov <artemiyv@acm.org>
3548
3549 PR gdb/14441
3550 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
3551 (TYPE_IS_REFERENCE): New macro.
3552 (struct type): Add rvalue_reference_type field.
3553 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
3554
51457a05
MAL
35552017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
3556
3557 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
3558 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
3559 New function definition.
3560 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
3561 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
3562 New function declaration.
3563 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
3564 * mi/mi-interp.h: New file.
3565 * solib.c (info_sharedlibrary_command): Replace for loop with
3566 ALL_SO_LIBS macro
3567 * solib.h (update_solib_list): New function declaration.
3568 (so_list_head): Move macro.
3569 * solist.h (ALL_SO_LIBS): New macro.
3570
e696b3ad
MAL
35712017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
3572
3573 * infcmd.c (post_create_inferior): Remove unused argument in
3574 call to solib_add.
3575 * remote.c (remote_start_remote): Likewise.
3576 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
3577 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
3578 (enable_break): Likewise.
3579 * solib.c (update_solib_list): Remove unused target argument
3580 and its documentation.
3581 (solib_add): Remove unused target argument. Remove unused
3582 argument in call to update_solib_list.
3583 (info_sharedlibrary_command): Remove unused argument in call
3584 to update_solib_list.
3585 (sharedlibrary_command): Remove unused argument in call to
3586 solib_add.
3587 (handle_solib_event): Likewise.
3588 (reload_shared_libraries): Likewise.
3589 * solib.h (solib_add): Remove unused target argument.
3590
dcb84eda
AA
35912017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
3592
3593 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
3594 (s390_displaced_step_fixup): Cover relative branches with the
3595 default fixup handling. This fixes lack of support for some
3596 relative branch instructions.
3597
d9cb6cdc
SM
35982017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3599
3600 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
3601 ptid from regcache.
3602
1afaf9f4
SM
36032017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3604
3605 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
3606 i386_darwin_store_inferior_registers): Use ptid from regcache.
3607
aac12e24
SM
36082017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3609
3610 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
3611 i386bsd_store_inferior_registers): Use ptid from regcache.
3612
bbe1eef1
SM
36132017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3614
3615 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
3616 hppaobsd_store_registers): Use ptid from regcache.
3617
10799020
SM
36182017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3619
3620 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
3621 hppanbsd_store_registers): Use ptid from regcache.
3622
00204cf7
SM
36232017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3624
3625 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
3626 from regcache. Use get_ptrace_pid.
3627
11a33714
SM
36282017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3629
3630 * corelow.c (get_core_register_section): Use ptid from regcache,
3631 update doc.
3632
317cd492
SM
36332017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3634
3635 * bsd-uthread.c (bsd_uthread_fetch_registers,
3636 bsd_uthread_store_registers): Use ptid from regcache, set and
3637 restore inferior_ptid.
3638
9ac8a7c2
SM
36392017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3640
3641 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
3642 fetch_fp_regs, store_register, store_regs, store_fp_register,
3643 store_fp_regs): Use ptid from regcache.
3644
4ac4bb6a
SM
36452017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3646
3647 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
3648 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
3649 store_vfp_regs): Use ptid from regcache.
3650
9bcbdca8
PA
36512017-03-17 Pedro Alves <palves@redhat.com>
3652
3653 PR remote/21188
3654 * ser-base.c (ser_base_wait_for): Add comment.
3655 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
3656 version.
3657 * ser-unix.c (hardwire_raw): Remove reference to
3658 scb->current_timeout.
3659 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
3660 (hardwire_ops): Install ser_base_readchar instead of
3661 hardwire_readchar.
3662 * serial.h (struct serial) <current_timeout, timeout_remaining>:
3663 Remove fields.
3664
7503099f
JG
36652017-03-17 Jonah Graham <jonah@kichwacoders.com>
3666
3667 PR gdb/19637
3668 * python/lib/gdb/printer/bound_registers.py: Add support for
3669 Python 3.
3670
7942e96e
AA
36712017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
3672
3673 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
3674 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
3675 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
3676 byte_offset to subobj_byte_offset. Fix the handling of
3677 DWARF_VALUE_STACK on big-endian targets when coming via an
3678 implicit pointer.
3679 (dwarf2_evaluate_loc_desc): Adjust call to
3680 dwarf2_evaluate_loc_desc_full.
3681 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
3682 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
3683
ba14f379
YQ
36842017-03-16 Yao Qi <yao.qi@linaro.org>
3685
3686 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
3687 and REVSH instructions.
3688
b121eeb9
YQ
36892017-03-16 Yao Qi <yao.qi@linaro.org>
3690
3691 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
3692 (arm_record_test): Declare.
3693 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
3694 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
3695 align with the manual.
3696 (thumb_record_misc): Adjust the code order to align with the
3697 manual.
3698 (thumb2_record_decode_insn_handler): Fix instruction matching.
3699 (instruction_reader_thumb): New class.
3700 (arm_record_test): New function.
3701
728a7913
YQ
37022017-03-16 Yao Qi <yao.qi@linaro.org>
3703
3704 * arm-tdep.c (abstract_memory_reader): New class.
3705 (instruction_reader): New class.
3706 (extract_arm_insn): Add argument 'reader'. Callers updated.
3707 (decode_insn): Likewise.
3708
34b43320
DE
37092017-03-16 Doug Evans <dje@google.com>
3710
a7c0469f
DE
3711 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
3712 member. Change type of TYPE member to SCM. All uses updated.
3713 (lsscm_make_lazy_string_smob): Add assert.
3714 (lsscm_make_lazy_string): Flag bad length values.
3715 (lsscm_elt_type): New function.
3716 (gdbscm_lazy_string_to_value): Rewrite to use
3717 lsscm_safe_lazy_string_to_value.
3718 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
3719 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
3720 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
3721 in incoming type.
3722 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
3723 * guile/scm-type.c (tyscm_scm_to_type): New function.
3724
37252017-03-15 Doug Evans <dje@google.com>
3726
34b43320
DE
3727 PR python/17728, python/18439, python/18779
3728 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
3729 member. Change type of TYPE member to PyObject *. All uses updated.
3730 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
3731 (gdbpy_create_lazy_string_object): Flag bad length values.
3732 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
3733 Handle typedefs in incoming type.
3734 (stpy_lazy_string_elt_type): New function.
3735 (gdbpy_extract_lazy_string): Call it.
3736 * python/py-value.c (valpy_lazy_string): Flag bad length values.
3737 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
3738 typedefs in incoming type.
3739
a3a5fecc
DE
37402017-03-16 Doug Evans <dje@google.com>
3741
3742 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
3743 * guile/scm-type.c (tyscm_scm_to_type): New function.
3744
28f1c605
JW
37452017-03-16 Jiong Wang <jiong.wang@arm.com>
3746
3747 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
3748 "ULONGEST" for "skip".
3749
87c336f6
AA
37502017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
3751
3752 PR gdb/21220
3753 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
3754 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
3755 (inf_ptrace_peek_poke): ...here. New function. Now also loop
3756 over ptrace peek/poke until end of buffer or error.
3757
cf81cf60
SM
37582017-03-14 Simon Marchi <simon.marchi@ericsson.com>
3759
3760 * parse.c (length_of_subexp): Make static.
3761 * parser-defs.h (length_of_subexp): Remove.
3762
a379284a
AA
37632017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
3764
3765 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
3766 as well.
3767
8a6200ba
PA
37682017-03-14 Pedro Alves <palves@redhat.com>
3769
3770 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
3771 (main): Use std::unique_ptr. Remove calls to
3772 cp_demangled_name_parse_free.
3773
f79ec206
SM
37742017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3775
3776 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
3777 alphabsd_store_inferior_registers): Use regcache->ptid instead
3778 of inferior_ptid.
3779
edb5fb00
SM
37802017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3781
3782 * aix-thread.c (aix_thread_fetch_registers,
3783 aix_thread_store_registers): Use regcache->ptid instead of
3784 inferior_ptid.
3785
55119686
SM
37862017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3787
3788 * aarch64-linux-nat.c (fetch_gregs_from_thread,
3789 store_gregs_to_thread, fetch_fpregs_from_thread,
3790 store_fpregs_to_thread): Use regcache->ptid instead of
3791 inferior_ptid.
3792
6a06fbb7
SM
37932017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3794
3795 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
3796 amd64_linux_fetch_inferior_registers): Use regcache->ptid
3797 instead of inferior_ptid.
3798
c6386875
SM
37992017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3800
3801 * target.c (target_fetch_registers, target_store_registers): Add
3802 assert.
3803
ddaaf0fb
SM
38042017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3805
3806 * regcache.h (regcache_get_ptid): New function.
3807 * regcache.c (regcache_get_ptid): New function.
3808
b9da89d1 38092017-03-13 Mark Wielaard <mark@klomp.org>
3810
3811 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
3812
5f4d1085
KS
38132017-03-10 Keith Seitz <keiths@redhat.com>
3814
3815 PR c++/8218
3816 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
3817
c65d6b55
PA
38182017-03-08 Pedro Alves <palves@redhat.com>
3819
3820 PR gdb/18360
3821 * infrun.c (start_step_over, do_target_resume, resume)
3822 (restart_threads): Assert we're not resuming a thread that is
3823 meant to be stopped.
3824 (infrun_thread_stop_requested_callback): Delete.
3825 (infrun_thread_stop_requested): If the thread is internally
3826 stopped, queue a pending stop event and clear the thread's
3827 inline-frame state.
3828 (handle_stop_requested): New function.
3829 (handle_syscall_event, handle_inferior_event_1): Use
3830 handle_stop_requested.
3831 (handle_stop_requested): New function.
3832 (handle_signal_stop): Set the thread's stop_signal here instead of
3833 at caller.
3834 (finish_step_over): Clear step over info unconditionally.
3835 (handle_signal_stop): If the user had interrupted the event
3836 thread, consider the stop a random signal.
3837 (handle_signal_stop) <signal arrived while stepping over
3838 breakpoint>: Don't restart threads here.
3839 (stop_waiting): Don't clear step-over info here.
3840
15c22686
PA
38412017-03-08 Pedro Alves <palves@redhat.com>
3842
3843 PR 21206
3844 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
3845 goes to argument 2, not 1.
3846
6e5d74e7
PA
38472017-03-08 Pedro Alves <palves@redhat.com>
3848
3849 PR cli/21218
3850 * top.c (gdb_readline_wrapper): Avoid passing NULL to
3851 display_gdb_prompt.
3852 (command_line_input): Add comment.
3853
9753a2f6
PA
38542017-03-08 Pedro Alves <palves@redhat.com>
3855
3856 PR tui/21216
3857 * tui/tui-file.c (tui_file::write): New.
3858 * tui/tui-file.h (tui_file): Override "write".
3859 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
3860 factored out from ...
3861 (tui_puts): ... here.
3862 (tui_putc): Use them.
3863 (tui_write): New function.
3864 * tui/tui-io.h (tui_write): Declare.
3865
1672e0d9
SDJ
38662017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
3867
3868 * Makefile.in (SFILES): Replace "environ.c" with
3869 "common/environ.c".
3870 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
3871 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
3872 to...
3873 * common/environ.c: ... here.
3874 * environ.h: Moved to...
3875 * common/environ.h: ... here.
3876
f7bb4e3a
PB
38772017-03-07 Peter Bergner <bergner@vnet.ibm.com>
3878
3879 * gdbarch.sh (pstring_ptr): New static function.
3880 (gdbarch_disassembler_options): Use it.
3881 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
3882 not valid_disassembler_option->name.
3883 * gdbarch.c: Regenerate.
3884
e45ced6c
PB
38852017-03-07 Peter Bergner <bergner@vnet.ibm.com>
3886
3887 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
3888
5f6fd321
PA
38892017-03-07 Pedro Alves <palves@redhat.com>
3890
3891 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
3892
6dbb839a 38932017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
3894
3895 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
3896 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
3897 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 3898 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 3899
d274ecf4
SM
39002017-03-06 Simon Marchi <simon.marchi@ericsson.com>
3901
3902 * xtensa-linux-nat.c (fetch_gregs): Remove const.
3903
df97be55
SM
39042017-03-03 Simon Marchi <simon.marchi@ericsson.com>
3905
3906 * remote.c (remote_add_target_side_commands): Use range-based
3907 for loop.
3908
7d45f3df
YQ
39092017-03-03 Yao Qi <yao.qi@linaro.org>
3910
3911 PR gdb/21165
3912 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
3913 value is lazy.
3914 * valprint.c (common_val_print): Likewise.
3915
65b48a81
PB
39162017-02-28 Peter Bergner <bergner@vnet.ibm.com>
3917
3918 * NEWS: Mention new set/show disassembler-options commands.
3919 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
3920 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
3921 (prospective_options): New static variable.
3922 (gdb_disassembler::gdb_disassembler): Initialize
3923 m_di.disassembler_options.
3924 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
3925 (get_disassembler_options): New function.
3926 (set_disassembler_options): Likewise.
3927 (set_disassembler_options_sfunc): Likewise.
3928 (show_disassembler_options_sfunc): Likewise.
3929 (disassembler_options_completer): Likewise.
3930 (_initialize_disasm): Likewise.
3931 * disasm.h (get_disassembler_options): New prototype.
3932 (set_disassembler_options): Likewise.
3933 * gdbarch.sh (gdbarch_disassembler_options): New variable.
3934 (gdbarch_verify_disassembler_options): Likewise.
3935 * gdbarch.c: Regenerate.
3936 * gdbarch.h: Likewise.
3937 * arm-tdep.c (num_disassembly_options): Delete.
3938 (set_disassembly_style): Likewise.
3939 (arm_disassembler_options): New static variable.
3940 (set_disassembly_style_sfunc): Convert short style name into long
3941 option name. Call set_disassembler_options.
3942 (show_disassembly_style_sfunc): New function.
3943 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
3944 set_gdbarch_verify_disassembler_options.
3945 (_initialize_arm_tdep): Delete regnames variable and update callers.
3946 (arm_disassembler_options): Initialize.
3947 (disasm_options): New variable.
3948 (num_disassembly_options): Rename from this...
3949 (num_disassembly_styles): ...to this. Compute by scanning through
3950 disasm_options.
3951 (valid_disassembly_styles): Initialize using disasm_options.
3952 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
3953 set_arm_regname_option.
3954 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
3955 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
3956 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
3957 set_gdbarch_verify_disassembler_options.
3958 * s390-tdep.c (s390_disassembler_options): New static variable.
3959 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
3960 set_gdbarch_verify_disassembler_options.
3961
d538e36d
SM
39622017-02-27 Simon Marchi <simon.marchi@ericsson.com>
3963
3964 * remote.c (remote_add_target_side_condition): Remove "struct"
3965 keyword from range-based for loop.
3966
83621223
SM
39672017-02-27 Simon Marchi <simon.marchi@ericsson.com>
3968
3969 * remote.c (remote_add_target_side_condition): Use range-based
3970 for loop. Update comment.
3971
2123df0e
YQ
39722017-02-27 Yao Qi <yao.qi@linaro.org>
3973
3974 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
3975
8e368124
AH
39762017-02-26 Alan Hayward <alan.hayward@arm.com>
3977
3978 * regcache.c (regcache_raw_update): New function.
3979 (regcache_raw_read): Move code to regcache_raw_update.
3980 * regcache.h (regcache_raw_update): New declaration.
3981 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
3982
a49dd8dd
JK
39832017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3984
3985 * dwarf2read.c (create_debug_type_hash_table): Initialize
3986 header.signature and header.type_offset_in_tu.
3987
34e4bae9
PA
39882017-02-24 Pedro Alves <palves@redhat.com>
3989
3990 * symtab.c (make_file_symbol_completion_list_1): Use
3991 add_symtab_completions.
3992
b0e4b369
AH
39932017-02-24 Alan Hayward <alan.hayward@arm.com>
3994
3995 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
3996
975c21ab
AH
39972017-02-24 Alan Hayward <alan.hayward@arm.com>
3998
3999 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
4000 I386_MAX_REGISTER_SIZE.
4001 (i386_pseudo_register_write): Likewise.
4002 (i386_process_record): Likewise.
4003 * i387-tdep.c (i387_supply_xsave): Likewise.
4004 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
4005 (store_register): Likewise.
4006
14bc53a8
PA
40072017-02-23 Pedro Alves <palves@redhat.com>
4008
4009 * ada-lang.c: Include "common/function-view.h".
4010 (ada_iterate_over_symbols): Adjust to use function_view as
4011 callback type.
4012 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
4013 (ada_make_symbol_completion_list): Use a lambda.
4014 (ada_exc_search_name_matches): Delete.
4015 (name_matches_regex): New.
4016 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
4017 * compile/compile-c-support.c: Include "common/function-view.h".
4018 (print_one_macro): Change prototype to accept a ui_file pointer.
4019 (write_macro_definitions): Use a lambda.
4020 * dwarf2read.c: Include "common/function-view.h".
4021 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4022 (dw2_expand_symtabs_matching): Adjust to use function_view as
4023 callback type.
4024 * language.h: Include "common/function-view.h".
4025 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
4026 function_view as callback type.
4027 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
4028 * linespec.c: Include "common/function-view.h".
4029 (collect_info::add_symbol): New method.
4030 (struct symbol_and_data_callback, iterate_inline_only, struct
4031 symbol_matcher_data, iterate_name_matcher): Delete.
4032 (iterate_over_all_matching_symtabs): Adjust to use function_view
4033 as callback type and lambdas.
4034 (iterate_over_file_blocks): Adjust to use function_view as
4035 callback type.
4036 (decode_compound_collector): Now a class with private fields.
4037 (decode_compound_collector::release_symbols): New method.
4038 (collect_one_symbol): Rename to...
4039 (decode_compound_collector::operator()): ... this and adjust.
4040 (lookup_prefix_sym): decode_compound_collector construction bits
4041 move to decode_compound_collector ctor. Pass the
4042 decode_compound_collector object directly as callback. Remove
4043 cleanups and use decode_compound_collector::release_symbols
4044 instead.
4045 (symtab_collector): Now a class with private fields.
4046 (symtab_collector::release_symtabs): New method.
4047 (add_symtabs_to_list): Rename to...
4048 (symtab_collector::operator()): ... this and adjust.
4049 (collect_symtabs_from_filename): symtab_collector construction
4050 bits move to symtab_collector ctor. Pass the symtab_collector
4051 object directly as callback. Remove cleanups and use
4052 symtab_collector::release_symtabs instead.
4053 (collect_symbols): Delete.
4054 (add_matching_symbols_to_info): Use lambdas.
4055 * macrocmd.c (print_macro_callback): Delete.
4056 (info_macro_command): Use a lambda.
4057 (info_macros_command): Pass print_macro_definition as callable
4058 directly.
4059 (print_one_macro): Remove 'ignore' parameter.
4060 (macro_list_command): Adjust.
4061 * macrotab.c (macro_for_each_data::fn): Now a function_view.
4062 (macro_for_each_data::user_data): Delete field.
4063 (foreach_macro): Adjust to call the function_view.
4064 (macro_for_each): Adjust to use function_view as callback type.
4065 (foreach_macro_in_scope): Adjust to call the function_view.
4066 (macro_for_each_in_scope): Adjust to use function_view as callback
4067 type.
4068 * macrotab.h: Include "common/function-view.h".
4069 (macro_callback_fn): Declare a prototype instead of a pointer.
4070 Remove "user_data" parameter.
4071 (macro_for_each, macro_for_each_in_scope): Adjust to use
4072 function_view as callback type.
4073 * psymtab.c (partial_map_expand_apply)
4074 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
4075 Adjust to use function_view as callback type and to return bool.
4076 (psym_expand_symtabs_matching): Adjust to use function_view as
4077 callback types.
4078 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
4079 to use function_view as callback type and to return bool.
4080 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
4081 callback types.
4082 * symfile.c (expand_symtabs_matching): Adjust to use function_view
4083 as callback types.
4084 * symfile.h: Include "common/function-view.h".
4085 (expand_symtabs_file_matcher_ftype)
4086 (expand_symtabs_symbol_matcher_ftype)
4087 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
4088 return bool.
4089 (quick_symbol_functions::map_symtabs_matching_filename)
4090 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
4091 function_view as callback type and return bool.
4092 (expand_symtabs_matching): Adjust to use function_view as callback
4093 type.
4094 (maintenance_expand_name_matcher)
4095 (maintenance_expand_file_matcher): Delete.
4096 (maintenance_expand_symtabs): Use lambdas.
4097 * symtab.c (iterate_over_some_symtabs): Adjust to use
4098 function_view as callback types and return bool.
4099 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
4100 of a cleanup.
4101 (lookup_symtab_callback): Delete.
4102 (lookup_symtab): Use a lambda.
4103 (iterate_over_symbols): Adjust to use function_view as callback
4104 type.
4105 (struct search_symbols_data, search_symbols_file_matches)
4106 (search_symbols_name_matches): Delete.
4107 (search_symbols): Use a pair of lambdas.
4108 (struct add_name_data, add_macro_name, symbol_completion_matcher)
4109 (symtab_expansion_callback): Delete.
4110 (default_make_symbol_completion_list_break_on_1): Use lambdas.
4111 * symtab.h: Include "common/function-view.h".
4112 (iterate_over_some_symtabs): Adjust to use function_view as
4113 callback type and return bool.
4114 (iterate_over_symtabs): Adjust to use function_view as callback
4115 type.
4116 (symbol_found_callback_ftype): Remove 'data' parameter and return
4117 bool.
4118 (iterate_over_symbols): Adjust to use function_view as callback
4119 type.
4120
07e253aa
PA
41212017-02-23 Pedro Alves <palves@redhat.com>
4122
4123 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
4124 (%.o) <unittests/%.c>: New pattern.
4125 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
4126 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
4127 * common/function-view.h: New file.
4128 * unittests/function-view-selftests.c: New file.
4129 * configure: Regenerate.
4130
8eaf5320
SM
41312017-02-23 Simon Marchi <simon.marchi@ericsson.com>
4132
4133 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
4134 inferior_ptid.
4135 * go32-nat.c (go32_thread_alive): Likewise.
4136
38768751
YQ
41372017-02-23 Yao Qi <yao.qi@linaro.org>
4138
4139 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
4140 delete.
4141
0a8beaba
YQ
41422017-02-23 Yao Qi <yao.qi@linaro.org>
4143
4144 * varobj.c (varobj_clear_saved_item): Use delete instead of
4145 xfree.
4146 (update_dynamic_varobj_children): Likewise.
4147
58fdfd2c
JK
41482017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4149
4150 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
4151
1b90b139
SM
41522017-02-21 Simon Marchi <simon.marchi@ericsson.com>
4153
4154 * common/enum-flags.h (enum_flags::enum_flags): Initialize
4155 m_enum_value to 0 in default constructor.
4156
2039d74e
EBM
41572017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4158
4159 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
4160 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
4161 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
4162 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
4163 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
4164 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
4165 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
4166 IS_STORE_CONDITIONAL_INSN.
4167
7814882a
JK
41682017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4169
4170 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
4171
0ae60b63
JK
41722017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4173
4174 * NEWS (Changes since GDB 7.12): Add DWARF-5.
4175
0224619f
JK
41762017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4177
4178 * dwarf2read.c (skip_one_die, read_attribute_value)
4179 (dwarf2_const_value_attr, dump_die_shallow)
4180 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
4181 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
4182
0af92d60
JK
41832017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4184
4185 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
4186 (dwarf_parse_macro_header): Accept DWARF version 5.
4187 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
4188
216f72a1
JK
41892017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4190
4191 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
4192 DW_AT_GNU_*.
4193 * common/common-exceptions.h (enum errors): Likewise.
4194 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
4195 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
4196 (dwarf_expr_context::execute_stack_op): Likewise.
4197 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
4198 Likewise.
4199 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
4200 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
4201 (show_entry_values_debug, call_site_to_target_addr)
4202 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
4203 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
4204 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
4205 (value_of_dwarf_block_entry, indirect_pieced_value)
4206 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
4207 (disassemble_dwarf_expression): Likewise.
4208 * dwarf2read.c (process_die, inherit_abstract_dies)
4209 (read_call_site_scope): Likewise.
4210 * gdbtypes.h (struct func_type, struct call_site_parameter)
4211 (struct call_site): Likewise.
4212 * stack.c (read_frame_arg): Likewise.
4213 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
4214
43988095
JK
42152017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4216
4217 * defs.h (read_unsigned_leb128): New declaration.
4218 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
4219 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
4220 (dwarf2_find_location_expression): Call also
4221 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
4222 * dwarf2loc.h (dwarf2_version): New declaration.
4223 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
4224 rnglists.
4225 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
4226 .debug_rnglists.
4227 (struct dwop_section_names): Add loclists_dwo.
4228 (dwop_section_names): Add .debug_loclists.dwo.
4229 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
4230 (struct dwarf2_per_cu_data): Add dwarf_version.
4231 (struct dwo_sections): Add loclists.
4232 (struct attr_abbrev): Add implicit_const.
4233 (read_indirect_line_string): New declaration.
4234 (read_unsigned_leb128): Delete declaration.
4235 (rcuh_kind): New definition.
4236 (read_and_check_comp_unit_head): Change parameter
4237 is_debug_types_section to section_kind.
4238 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
4239 (read_comp_unit_head): Change parameter abfd to section, add parameter
4240 section_kind. Handle DWARF-5.
4241 (error_check_comp_unit_head): Accept also DWARF version 5.
4242 (read_and_check_comp_unit_head): Change parameter
4243 is_debug_types_section to section_kind.
4244 (read_and_check_type_unit_head): Delete function.
4245 (read_abbrev_offset): Handle DWARF-5.
4246 (create_debug_type_hash_table): Add parameter section_kind. Process
4247 only DW_UT_type. Use signature and type_offset_in_tu from struct
4248 comp_unit_head.
4249 (create_debug_types_hash_table): Update create_debug_type_hash_table
4250 caller.
4251 (create_all_type_units): Call create_debug_type_hash_table.
4252 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
4253 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
4254 caller.
4255 (skip_one_die): Handle DW_FORM_implicit_const.
4256 (dwarf2_rnglists_process): New function.
4257 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
4258 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
4259 (read_attribute_value): Handle DW_FORM_implicit_const,
4260 DW_FORM_line_strp.
4261 (read_attribute): Handle DW_FORM_implicit_const.
4262 (read_indirect_string_at_offset_from): New function from
4263 read_indirect_string_at_offset.
4264 (read_indirect_string_at_offset): Call
4265 read_indirect_string_at_offset_from.
4266 (read_indirect_line_string_at_offset): New function.
4267 (read_indirect_string): New function comment.
4268 (read_indirect_line_string): New function.
4269 (read_unsigned_leb128): Make it global.
4270 (dwarf2_string_attr): Handle DWARF-5.
4271 (add_include_dir_stub, read_formatted_entries): New functions.
4272 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
4273 Handle DWARF-5.
4274 (per_cu_header_read_in): Update read_comp_unit_head caller.
4275 (dwarf2_version): New function.
4276 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
4277 rnglists.
4278 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
4279 fields.
4280
22d2f3ab
JK
42812017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4282
4283 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
4284
5f46c5a5
JK
42852017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4286
4287 * dwarf2read.c (dwarf2_ranges_process): New function from
4288 dwarf2_ranges_read.
4289 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
4290 dwarf2_ranges_process.
4291
78d4d2c5
JK
42922017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4293
4294 * dwarf2read.c (create_debug_type_hash_table): New function from
4295 create_debug_types_hash_table.
4296 (create_debug_types_hash_table): Call create_debug_type_hash_table.
4297 (create_all_type_units, open_and_init_dwo_file): Update
4298 create_debug_types_hash_table callers.
4299
1b076f25
SDJ
43002017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4301
4302 PR gdb/16188
4303 * fork-child.c (trace_start_error): Fix thinko. va_end should
4304 refer to 'ap', not 'args'.
4305
0db8980c
SDJ
43062017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4307 Pedro Alves <palves@redhat.com>
4308
4309 PR gdb/16188
4310 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
4311 calls succeeded.
4312 * fork-child.c (trace_start_error): New function.
4313 (trace_start_error_with_name): Likewise.
4314 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
4315 * inf-ptrace.c (inf_ptrace_me): Likewise.
4316 * inferior.h (trace_start_error): New prototype.
4317 (trace_start_error_with_name): Likewise.
4318
99e8a4f9
SDJ
43192017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
4320
4321 PR gdb/21164
4322 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
4323 NULL before using it.
4324 * symmisc.c (maintenance_print_symbols): Likewise.
4325 (maintenance_print_msymbols): Likewise.
4326
4e746bb6
TW
43272017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
4328
4329 * NEWS: Add record Python bindings entry.
4330
43312017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
4332
4333 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
4334 py-record-full.o.
4335 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
4336 * python/py-record-btrace.c, python/py-record-btrace.h,
4337 python/py-record-full.c, python/py-record-full.h: New file.
4338 * python/py-record.c: Add include for py-record-btrace.h and
4339 py-record-full.h.
4340 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
4341 recpy_instruction_history, recpy_function_call_history, recpy_begin,
4342 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
4343 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
4344 New definition.
4345 (gdbpy_initialize_btrace): New export.
4346 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
4347
43482017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
4349
4350 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
4351 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
4352 * python/py-record.c: New file.
4353 * python/python-internal.h (gdbpy_start_recording,
4354 gdbpy_current_recording, gdpy_stop_recording,
4355 gdbpy_initialize_record): New export.
4356 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
4357 (python_GdbMethods): Add gdbpy_start_recording,
4358 gdbpy_current_recording and gdbpy_stop_recording.
4359
43602017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
4361
4362 * record-btrace.c (record_btrace_record_method): New function.
4363 (init_record_btrace_ops): Initialize to_record_method.
4364 * record-full.c (record_full_record_method): New function.
4365 (init_record_full_ops, init_record_full_core_ops): Add
4366 record_full_record_method.
4367 * record.h (enum record_method): New enum.
4368 * target-debug.h (target_debug_print_enum_record_method: New define.
4369 * target-delegates.c: Regenerate.
4370 * target.c (target_record_method): New function.
4371 * target.h: Include record.h.
4372 (struct target_ops) <to_record_method>: New field.
4373 (target_record_method): New export.
4374
43752017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
4376
4377 * record.h (record_start, record_stop): New export.
4378 * record.c (record_start, record_stop): New function.
4379
43802017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
4381
4382 * btrace.c (btrace_fetch): Copy function call segments pointer
4383 into a vector.
4384 (btrace_clear): Clear the vector.
4385 (btrace_find_insn_by_number): Use binary search to find the correct
4386 function call segment.
4387 * btrace.h (brace_fun_p): New typedef.
4388 (struct btrace_thread_info) <functions>: New field.
4389
43902017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
4391
4392 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
4393 * btrace.c (btrace_decode_error): ... here. New function.
4394 * btrace.h (btrace_decode_error): New export.
4395
43962017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
4397
4398 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
4399 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
4400 btrace_find_insn_by_number): Remove special case for gaps.
4401 * btrace.h (btrace_insn_get_error): New export.
4402 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
4403 * record-btrace.c (btrace_insn_history): Print number for gaps.
4404 (record_btrace_info, record_btrace_goto): Handle gaps.
4405
3f77c769
TT
44062017-02-14 Tom Tromey <tom@tromey.com>
4407
4408 PR python/13598:
4409 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
4410 event.
4411 * python/py-evts.c (gdbpy_initialize_py_events): Add
4412 before_prompt registry.
4413 * python/py-events.h (events_object) <before_prompt>: New field.
4414
4c2c7ac6
MM
44152017-02-14 Markus Metzger <markus.t.metzger@intel.com>
4416
4417 * btrace.c (ftrace_new_switch): Preserve up link and flags.
4418
5cf30ebf
LM
44192017-02-13 Luis Machado <lgustavo@codesourcery.com>
4420
4421 * symfile (_initialize_symfile): Add usage text to the load command's
4422 help text.
4423
26a06916
SM
44242017-02-10 Simon Marchi <simon.marchi@ericsson.com>
4425
4426 * utils.c (defaulted_query): Don't query on secondary UIs.
4427
0b145e37
TT
44282017-02-10 Tom Tromey <tom@tromey.com>
4429
4430 * rust-lang.c (rust_get_disr_info): Remove unused variable.
4431
2d8365c4
TT
44322017-02-10 Tom Tromey <tom@tromey.com>
4433
4434 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
4435 "cleanup" local.
4436 * python/py-type.c (typy_legacy_template_argument): Remove
4437 unnecessary "cleanup" local.
4438
2bb8f231
TT
44392017-02-10 Tom Tromey <tom@tromey.com>
4440
4441 * python/python.c (do_start_initialization): New function, from
4442 _initialize_python.
4443 (_initialize_python): Call do_start_initialization.
4444 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
4445 goto.
4446
1bdfaf42
TT
44472017-02-10 Tom Tromey <tom@tromey.com>
4448
4449 * python/py-prettyprint.c (pretty_print_one_value): Use
4450 gdbpy_ref.
4451
88b6faea
TT
44522017-02-10 Tom Tromey <tom@tromey.com>
4453
4454 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
4455 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
4456 gdbpy_ref.
4457 * python/py-type.c (field_new): Use gdbpy_ref.
4458 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
4459 gdbpy_ref.
4460 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
4461 (py_free_pspace): Likewise.
4462 (pspace_to_pspace_object): Likewise.
4463 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
4464 (py_free_objfile): Likewise.
4465 (objfile_to_objfile_object): Likewise.
4466 * python/py-inferior.c (delete_thread_object): Use
4467 gdbpy_ref.
4468 (infpy_read_memory): Likewise.
4469 (py_free_inferior): Likewise.
4470 * python/py-evtregistry.c (create_eventregistry_object): Use
4471 gdbpy_ref.
4472 * python/py-event.c (create_event_object): Use gdbpy_ref.
4473
7780f186
TT
44742017-02-10 Tom Tromey <tom@tromey.com>
4475
4476 * python/py-ref.h (gdbpy_ref_policy): Now a template.
4477 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
4478 used.
4479 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
4480 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
4481 python/py-exitedevent.c, python/py-finishbreakpoint.c,
4482 python/py-framefilter.c, python/py-function.c,
4483 python/py-inferior.c, python/py-infevents.c,
4484 python/py-linetable.c, python/py-newobjfileevent.c,
4485 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
4486 python/py-signalevent.c, python/py-stopevent.c,
4487 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
4488 python/py-unwind.c, python/py-utils.c, python/py-value.c,
4489 python/py-varobj.c, python/py-xmethods.c, python/python.c,
4490 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
4491
d4b0bb18
TT
44922017-02-10 Tom Tromey <tom@tromey.com>
4493
4494 * ui-out.h (ui_out_emit_type): New class.
4495 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
4496 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
4497 and ui_out_emit_tuple.
4498 (enumerate_locals): Likewise.
4499 (py_mi_print_variables, py_print_locals, py_print_args): Use
4500 ui_out_emit_list.
4501 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
4502 ui_out_emit_list.
4503 * common/gdb_optional.h: New file.
4504
f67f945c
MG
45052017-02-10 Martin Galvan <martingalvan@sourceware.org>
4506
4507 * MAINTAINERS (Write After Approval): Update my e-mail address.
4508
18da0c51
MG
45092017-02-10 Martin Galvan <martingalvan@sourceware.org>
4510
4511 PR gdb/21122
4512 * breakpoint.c (_initialize_breakpoint): Update the help description
4513 of the 'commands' command to indicate that it takes a list argument.
4514
62c14536
SM
45152017-02-09 Simon Marchi <simon.marchi@ericsson.com>
4516
4517 * interps.c (current_interp_set_logging): Remove "return".
4518
ff6fa247
GB
45192017-02-09 Gary Benson <gbenson@redhat.com>
4520
4521 * symtab.c (add_symtab_completions): Prevent NULL pointer
4522 dereference.
4523
a474bd8e
PA
45242017-02-08 Pedro Alves <palves@redhat.com>
4525
4526 * interps.c (interp::interp): Remove reference to quiet_p.
4527 (interp_set): Make static. Remove dead "Switching to" output
4528 code.
4529 (interp_quiet_p, interp_set_quiet): Delete.
4530 (interpreter_exec_cmd): Don't set the interpreter quiet.
4531 * interps.h (interp_quiet_p): Make static.
4532 (class interp) <quiet_p>: Remove field
4533
3d7b173c
JG
45342017-02-08 Jerome Guitton <guitton@adacore.com>
4535
604c4576
JG
4536 * cli/cli-decode.c (find_command_name_length): Make it extern.
4537 * cli/cli-decode.h (find_command_name_length): Declare.
4538 * cli/cli-script.c (command_name_equals, line_first_arg):
4539 New functions.
4540 (process_next_line): Use cli-decode to parse command names.
4541 (build_command_line): Make args a constant pointer.
4542
45432017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 4544
3d7b173c
JG
4545 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
4546 Remove case-insensitive search.
4547
1291063d
JM
45482017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
4549
4550 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
4551 at the end of the line. Avoids an ARI warning.
4552
20b477a7
LM
45532017-02-06 Luis Machado <lgustavo@codesourcery.com>
4554
4555 * NEWS: Mention support for record/replay of Intel 64 rdrand and
4556 rdseed instructions.
4557 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
4558
3f7b46f2
IR
45592017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
4560
4561 PR tdep/20936
4562 Provide and use sparc32 and sparc64 target description XML files.
4563 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
4564 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
4565 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
4566 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
4567 * features/sparc/sparc32-solaris.xml: New file.
4568 * features/sparc/sparc64-solaris.xml: New file.
4569 * features/sparc/sparc32-solaris.c: Generated.
4570 * features/sparc/sparc64-solaris.c: Generated.
4571 * sparc-tdep.h: Account for differences in target descriptions.
4572 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
4573 (sparc32_register_type): Use target provided registers.
4574 (validate_tdesc_registers): New function.
4575 (sparc32_gdbarch_init): Use tdesc_has_registers.
4576 Set pseudoregister functions.
4577 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
4578 (sparc64_register_type): Use target provided registers.
4579 (sparc64_init_abi): Set pseudoregister functions.
4580
f0fd41c1
TT
45812017-02-03 Tom Tromey <tom@tromey.com>
4582
4583 PR rust/21097:
4584 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
4585 with a single member.
4586
d6f9b0fb
PA
45872017-02-03 Pedro Alves <palves@redhat.com>
4588
4589 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
4590 (cli_interp_base::~cli_interp_base): New.
4591 (cli_interp): New struct.
4592 (as_cli_interp): Cast the interp itself to cli_interp.
4593 (cli_interpreter_pre_command_loop): Rename to ...
4594 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
4595 parameter.
4596 (cli_interpreter_init): Rename to ...
4597 (cli_interp::init): ... this. Remove 'self' parameter. Use
4598 boolean. Make extern.
4599 (cli_interpreter_resume): Rename to ...
4600 (cli_interp::resume): ... this. Remove 'data' parameter. Make
4601 extern.
4602 (cli_interpreter_suspend): Rename to ...
4603 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
4604 extern.
4605 (cli_interpreter_exec): Rename to ...
4606 (cli_interp::exec): ... this. Remove 'data' parameter. Make
4607 extern.
4608 (cli_interpreter_supports_command_editing): Rename to ...
4609 (cli_interp_base::supports_command_editing): ... this. Remove
4610 'interp' parameter. Make extern.
4611 (cli_ui_out): Rename to ...
4612 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
4613 Make extern.
4614 (cli_set_logging): Rename to ...
4615 (cli_interp_base::set_logging): ... this. Remove 'interp'
4616 parameter. Make extern.
4617 (cli_interp_procs): Delete.
4618 (cli_interp_factory): Adjust to use "new".
4619 * cli/cli-interp.h: Include "interps.h".
4620 (struct cli_interp_base): New struct.
4621 * interps.c (struct interp): Delete. Fields moved to interps.h.
4622 (interp_new): Delete.
4623 (interp::interp, interp::~interp): New.
4624 (interp_set): Use bool, and return void. Assume the interpreter
4625 has suspend, init and resume methods, and that the all return
4626 void.
4627 (set_top_level_interpreter): interp_set returns void.
4628 (interp_ui_out): Adapt.
4629 (current_interp_set_logging): Adapt.
4630 (interp_data): Delete.
4631 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
4632 (interp_exec): Adapt.
4633 (top_level_interpreter_data): Delete.
4634 * interps.h (interp_init_ftype, interp_resume_ftype)
4635 (interp_suspend_ftype, interp_exec_ftype)
4636 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
4637 (class interp): New.
4638 (interp_new): Delete.
4639 (interp_set): Now returns void. Use bool.
4640 (interp_data, top_level_interpreter_data): Delete.
4641 * mi/mi-common.h: Include interps.h.
4642 (class mi_interp): Inherit from interp. Define a ctor. Declare
4643 init, resume, suspect, exec, interp_ui_out, set_logging and
4644 pre_command_loop methods.
4645 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
4646 (mi_interpreter_init): Rename to ...
4647 (mi_interp::init): ... this. Remove the 'interp' parameter, use
4648 bool, return void and make extern. Adjust.
4649 (mi_interpreter_resume): ... Rename to ...
4650 (mi_interp::resume): ... this. Remove the 'data' parameter,
4651 return void and make extern. Adjust.
4652 (mi_interpreter_suspend): ... Rename to ...
4653 (mi_interp::suspend): ... this. Remove the 'data' parameter,
4654 return void and make extern. Adjust.
4655 (mi_interpreter_exec): ... Rename to ...
4656 (mi_interp::exec): ... this. Remove the 'data' parameter and make
4657 extern. Adjust.
4658 (mi_interpreter_pre_command_loop): ... Rename to ...
4659 (mi_interp::pre_command_loop): ... this. Remove the 'self'
4660 parameter and make extern.
4661 (mi_on_normal_stop_1): Adjust.
4662 (mi_ui_out): Rename to ...
4663 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
4664 parameter and make extern. Adjust.
4665 (mi_set_logging): Rename to ...
4666 (mi_interp::set_logging): ... this. Remove the 'interp'
4667 parameter and make extern. Adjust.
4668 (mi_interp_procs): Delete.
4669 (mi_interp_factory): Adjust to use 'new'.
4670 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
4671 (mi_print_exception, mi_execute_command, mi_load_progress):
4672 Adjust.
4673 * tui/tui-interp.c (tui_interp): New class.
4674 (as_tui_interp): Return a tui_interp pointer.
4675 (tui_on_normal_stop, tui_on_signal_received)
4676 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
4677 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
4678 to use interp::interp_ui_out.
4679 (tui_init): Rename to ...
4680 (tui_interp::init): ... this. Remove the 'self' parameter, use
4681 bool, return void and make extern. Adjust.
4682 (tui_resume): Rename to ...
4683 (tui_interp::resume): ... this. Remove the 'data' parameter,
4684 return void and make extern. Adjust.
4685 (tui_suspend): Rename to ...
4686 (tui_interp::suspend): ... this. Remove the 'data' parameter,
4687 return void and make extern. Adjust.
4688 (tui_ui_out): Rename to ...
4689 (tui_interp::interp_ui_out): ... this. Remove the 'self'
4690 parameter, and make extern. Adjust.
4691 (tui_exec): Rename to ...
4692 (tui_interp::exec): ... this. Remove the 'data' parameter and
4693 make extern.
4694 (tui_interp_procs): Delete.
4695 (tui_interp_factory): Use "new".
4696
65c40c95
TT
46972017-02-02 Tom Tromey <tom@tromey.com>
4698
4699 * rust-exp.y (ends_raw_string, space_then_number)
4700 (rust_identifier_start_p): Return bool.
4701 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
4702 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
4703 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
4704 (rust_chartype_p): Return bool.
4705 (val_print_struct, rust_print_struct_def, rust_print_type):
4706 Update.
4707 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
4708 Return bool.
4709
b50f188d
TT
47102017-02-02 Tom Tromey <tom@tromey.com>
4711
4712 * rust-lang.c: Reindent.
4713
03c85b11
TT
47142017-02-02 Tom Tromey <tom@tromey.com>
4715
4716 * rust-lang.h (rust_crate_for_block): Update.
4717 * rust-lang.c (rust_crate_for_block): Return std::string.
4718 (rust_get_disr_info): Use std:;string, not
4719 gdb::unique_xmalloc_ptr.
4720 * rust-exp.y (crate_name): Update.
4721
9b6da501
PA
47222017-02-02 Pedro Alves <palves@redhat.com>
4723
4724 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
4725 field out of gdb_disassembler_test and make it static.
4726
ec4cb20b
PA
47272017-02-02 Pedro Alves <palves@redhat.com>
4728
4729 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
4730 mi1_interp and mi_interp fields.
4731
5be5dbf0
PA
47322017-02-02 Pedro Alves <palves@redhat.com>
4733
616268b6
PA
4734 * cli/cli-interp.c (struct saved_output_files, saved_output):
4735 Moved from cli/cli-logging.c.
4736 (cli_set_logging): New function.
4737 (cli_interp_procs): Install cli_set_logging.
4738 * cli/cli-interp.h (make_logging_output, cli_set_logging):
4739 Declare.
4740 * cli/cli-logging.c (struct saved_output_files, saved_output):
4741 Moved to cli/cli-interp.c.
4742 (pop_output_files): Don't save outputs here.
4743 (make_logging_output): New function.
4744 (handle_redirections): Don't build tee nor save previous outputs
4745 here.
4746 * interps.c (current_interp_set_logging): Change prototype.
4747 Assume there's always a set_logging_proc method installed.
4748 * interps.h (interp_set_logging_ftype): Change prototype.
4749 (current_interp_set_logging): Change prototype and adjust comment.
4750 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
4751 use make_logging_output.
4752 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
47532017-02-02 Pedro Alves <palves@redhat.com>
4754
5be5dbf0
PA
4755 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
4756 from ...
4757 (set_logging_overwrite): ... here.
4758 (logging_no_redirect_file): Delete.
4759 (set_logging_redirect): Don't handle redirection on the fly.
4760 Instead warn that "logging off" / "logging on" is necessary.
4761 (pop_output_files): Delete references to logging_no_redirect_file.
4762 (show_logging_command): Always speak in terms of what will happen
4763 once logging is reenabled.
4764
c99cc448
PA
47652017-02-02 Pedro Alves <palves@redhat.com>
4766
4767 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
4768
8b172ce7
PA
47692017-02-02 Pedro Alves <palves@redhat.com>
4770
4771 * disasm.c (gdb_pretty_print_insn): Rename to ...
4772 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
4773 Remove gdbarch parameter. Adapt to clear the object's buffers
4774 instead of allocating new buffers, and to print using the object's
4775 gdb_disassembler instead of calling gdb_print_insn.
4776 (dump_insns): Use gdb_pretty_print_disassembler.
4777 * disasm.h (gdb_pretty_print_insn): Delete declaration.
4778 (gdb_pretty_print_disassembler): New class.
4779 * record-btrace.c (btrace_insn_history): Use
4780 gdb_pretty_print_disassembler.
4781
d7e74731
PA
47822017-02-02 Pedro Alves <palves@redhat.com>
4783
4784 * ada-lang.c (type_as_string): Use string_file.
4785 * ada-valprint.c (ada_print_floating): Use string_file.
4786 * ada-varobj.c (ada_varobj_scalar_image)
4787 (ada_varobj_get_value_image): Use string_file.
4788 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
4789 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
4790 * breakpoint.c (update_inserted_breakpoint_locations)
4791 (insert_breakpoint_locations, reattach_breakpoints)
4792 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
4793 (print_it_watchpoint): Use string_file.
4794 (save_breakpoints): Use stdio_file.
4795 * c-exp.y (oper): Use string_file.
4796 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
4797 tee_file.
4798 (pop_output_files): Use delete.
4799 (handle_redirections): Use stdio_file and tee_file.
4800 * cli/cli-setshow.c (do_show_command): Use string_file.
4801 * compile/compile-c-support.c (c_compute_program): Use
4802 string_file.
4803 * compile/compile-c-symbols.c (generate_vla_size): Take a
4804 'string_file &' instead of a 'ui_file *'.
4805 (generate_c_for_for_one_variable): Take a 'string_file &' instead
4806 of a 'ui_file *'. Use string_file.
4807 (generate_c_for_variable_locations): Take a 'string_file &'
4808 instead of a 'ui_file *'.
4809 * compile/compile-internal.h (generate_c_for_for_one_variable):
4810 Take a 'string_file &' instead of a 'ui_file *'.
4811 * compile/compile-loc2c.c (push, pushf, unary, binary)
4812 (print_label, pushf_register_address, pushf_register)
4813 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
4814 'ui_file *'. Adjust.
4815 * compile/compile.c (compile_to_object): Use string_file.
4816 * compile/compile.h (compile_dwarf_expr_to_c)
4817 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
4818 'ui_file *'.
4819 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
4820 (replace_typedefs_qualified_name): Use string_file and
4821 obstack_copy0.
4822 * disasm.c (gdb_pretty_print_insn): Use string_file.
4823 (gdb_disassembly): Adjust reference the null_stream global.
4824 (do_ui_file_delete): Delete.
4825 (gdb_insn_length): Use null_stream.
4826 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
4827 * dwarf2loc.c (dwarf2_compile_property_to_c)
4828 (locexpr_generate_c_location, loclist_generate_c_location): Take a
4829 'string_file &' instead of a 'ui_file *'.
4830 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
4831 * dwarf2read.c (do_ui_file_peek_last): Delete.
4832 (dwarf2_compute_name): Use string_file.
4833 * event-top.c (gdb_setup_readline): Use stdio_file.
4834 * gdbarch.sh (verify_gdbarch): Use string_file.
4835 * gdbtypes.c (safe_parse_type): Use null_stream.
4836 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
4837 string_file.
4838 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
4839 'string_file *' instead of a 'ui_file *'.
4840 (gdbscm_arch_disassemble): Use string_file.
4841 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
4842 * guile/scm-ports.c (class ioscm_file_port): Now a class that
4843 inherits from ui_file.
4844 (ioscm_file_port_delete, ioscm_file_port_rewind)
4845 (ioscm_file_port_put): Delete.
4846 (ioscm_file_port_write): Rename to ...
4847 (ioscm_file_port::write): ... this. Remove file_port_magic
4848 checks.
4849 (ioscm_file_port_new): Delete.
4850 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
4851 ui_file_up.
4852 * guile/scm-type.c (tyscm_type_name): Use string_file.
4853 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
4854 Use string_file.
4855 * infcmd.c (print_return_value_1): Use string_file.
4856 * infrun.c (print_target_wait_results): Use string_file.
4857 * language.c (add_language): Use string_file.
4858 * location.c (explicit_to_string_internal): Use string_file.
4859 * main.c (captured_main_1): Use null_file.
4860 * maint.c (maintenance_print_architecture): Use stdio_file.
4861 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
4862 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
4863 event_channel>: Change type to mi_console_file pointer.
4864 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
4865 (mi_console_file_delete): Delete.
4866 (struct mi_console_file): Delete.
4867 (mi_console_file_magic): Delete.
4868 (mi_console_file_new): Delete.
4869 (mi_console_file::mi_console_file): New.
4870 (mi_console_file_delete): Delete.
4871 (mi_console_file_fputs): Delete.
4872 (mi_console_file::write): New.
4873 (mi_console_raw_packet): Delete.
4874 (mi_console_file::flush): New.
4875 (mi_console_file_flush): Delete.
4876 (mi_console_set_raw): Rename to ...
4877 (mi_console_file::set_raw): ... this.
4878 * mi/mi-console.h (class mi_console_file): New class.
4879 (mi_console_file_new, mi_console_set_raw): Delete.
4880 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
4881 (mi_set_logging): Use delete and tee_file. Adjust.
4882 * mi/mi-main.c (output_register): Use string_file.
4883 (mi_cmd_data_evaluate_expression): Use string_file.
4884 (mi_cmd_data_read_memory): Use string_file.
4885 (mi_cmd_execute, print_variable_or_computed): Use string_file.
4886 * mi/mi-out.c (mi_ui_out::main_stream): New.
4887 (mi_ui_out::rewind): Use main_stream and
4888 string_file.
4889 (mi_ui_out::put): Use main_stream and string_file.
4890 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
4891 Allocate a 'string_file' instead.
4892 (mi_out_new): Don't allocate a mem_fileopen stream here.
4893 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
4894 (mi_ui_out::main_stream): Declare method.
4895 * printcmd.c (eval_command): Use string_file.
4896 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
4897 * python/py-arch.c (archpy_disassemble): Use string_file.
4898 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
4899 * python/py-frame.c (frapy_str): Use string_file.
4900 * python/py-framefilter.c (py_print_type, py_print_single_arg):
4901 Use string_file.
4902 * python/py-type.c (typy_str): Use string_file.
4903 * python/py-unwind.c (unwind_infopy_str): Use string_file.
4904 * python/py-value.c (valpy_str): Use string_file.
4905 * record-btrace.c (btrace_insn_history): Use string_file.
4906 * regcache.c (regcache_print): Use stdio_file.
4907 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
4908 * remote.c (escape_buffer): Use string_file.
4909 * rust-lang.c (rust_get_disr_info): Use string_file.
4910 * serial.c (serial_open_ops_1): Use stdio_file.
4911 (do_serial_close): Use delete.
4912 * stack.c (print_frame_arg): Use string_file.
4913 (print_frame_args): Remove local mem_fileopen stream, not used.
4914 (print_frame): Use string_file.
4915 * symmisc.c (maintenance_print_symbols): Use stdio_file.
4916 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
4917 Take a 'string_file *' instead of a 'ui_file *'.
4918 * top.c (new_ui): Use stdio_file and stderr_file.
4919 (free_ui): Use delete.
4920 (execute_command_to_string): Use string_file.
4921 (quit_confirm): Use string_file.
4922 * tracepoint.c (collection_list::append_exp): Use string_file.
4923 * tui/tui-disasm.c (tui_disassemble): Use string_file.
4924 * tui/tui-file.c: Don't include "ui-file.h".
4925 (enum streamtype, struct tui_stream): Delete.
4926 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
4927 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
4928 (tui_file::tui_file): New method.
4929 (tui_file_fputs): Delete.
4930 (tui_file_get_strbuf): Delete.
4931 (tui_file::puts): New method.
4932 (tui_file_adjust_strbuf): Delete.
4933 (tui_file_flush): Delete.
4934 (tui_file::flush): New method.
4935 * tui/tui-file.h: Tweak intro comment.
4936 Include ui-file.h.
4937 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
4938 (tui_file_adjust_strbuf): Delete declarations.
4939 (class tui_file): New class.
4940 * tui/tui-io.c (tui_initialize_io): Use tui_file.
4941 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
4942 (tui_register_format): Use string_stream.
4943 * tui/tui-stack.c (tui_make_status_line): Use string_file.
4944 (tui_get_function_from_frame): Use string_file.
4945 * typeprint.c (type_to_string): Use string_file.
4946 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
4947 (null_stream): New global.
4948 (ui_file_delete): Delete.
4949 (ui_file::ui_file): New.
4950 (null_file_isatty): Delete.
4951 (ui_file::~ui_file): New.
4952 (null_file_rewind): Delete.
4953 (ui_file::printf): New.
4954 (null_file_put): Delete.
4955 (null_file_flush): Delete.
4956 (ui_file::putstr): New.
4957 (null_file_write): Delete.
4958 (ui_file::putstrn): New.
4959 (null_file_read): Delete.
4960 (ui_file::putc): New.
4961 (null_file_fputs): Delete.
4962 (null_file_write_async_safe): Delete.
4963 (ui_file::vprintf): New.
4964 (null_file_delete): Delete.
4965 (null_file::write): New.
4966 (null_file_fseek): Delete.
4967 (null_file::puts): New.
4968 (ui_file_data): Delete.
4969 (null_file::write_async_safe): New.
4970 (gdb_flush, ui_file_isatty): Adjust.
4971 (ui_file_put, ui_file_rewind): Delete.
4972 (ui_file_write): Adjust.
4973 (ui_file_write_for_put): Delete.
4974 (ui_file_write_async_safe, ui_file_read): Adjust.
4975 (ui_file_fseek): Delete.
4976 (fputs_unfiltered): Adjust.
4977 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
4978 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
4979 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
4980 (set_ui_file_data): Delete.
4981 (string_file::~string_file, string_file::write)
4982 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
4983 (do_ui_file_as_string, ui_file_as_string): Delete.
4984 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
4985 (struct mem_file): Delete.
4986 (mem_file_new): Delete.
4987 (stdio_file::stdio_file): New.
4988 (mem_file_delete): Delete.
4989 (stdio_file::stdio_file): New.
4990 (mem_fileopen): Delete.
4991 (stdio_file::~stdio_file): New.
4992 (mem_file_rewind): Delete.
4993 (stdio_file::set_stream): New.
4994 (mem_file_put): Delete.
4995 (stdio_file::open): New.
4996 (mem_file_write): Delete.
4997 (stdio_file_magic, struct stdio_file): Delete.
4998 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
4999 (stdio_file::flush): New.
5000 (stdio_file_read): Rename to ...
5001 (stdio_file::read): ... this. Adjust.
5002 (stdio_file_write): Rename to ...
5003 (stdio_file::write): ... this. Adjust.
5004 (stdio_file_write_async_safe): Rename to ...
5005 (stdio_file::write_async_safe) ... this. Adjust.
5006 (stdio_file_fputs): Rename to ...
5007 (stdio_file::puts) ... this. Adjust.
5008 (stdio_file_isatty): Delete.
5009 (stdio_file_fseek): Delete.
5010 (stdio_file::isatty): New.
5011 (stderr_file_write): Rename to ...
5012 (stderr_file::write) ... this. Adjust.
5013 (stderr_file_fputs): Rename to ...
5014 (stderr_file::puts) ... this. Adjust.
5015 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
5016 (stderr_file::stderr_file): New.
5017 (tee_file_magic): Delete.
5018 (struct tee_file): Delete.
5019 (tee_file::tee_file): New.
5020 (tee_file_new): Delete.
5021 (tee_file::~tee_file): New.
5022 (tee_file_delete): Delete.
5023 (tee_file_flush): Rename to ...
5024 (tee_file::flush): ... this. Adjust.
5025 (tee_file_write): Rename to ...
5026 (tee_file::write): ... this. Adjust.
5027 (tee_file::write_async_safe): New.
5028 (tee_file_fputs): Rename to ...
5029 (tee_file::puts): ... this. Adjust.
5030 (tee_file_isatty): Rename to ...
5031 (tee_file::isatty): ... this. Adjust.
5032 * ui-file.h (struct obstack, struct ui_file): Don't
5033 forward-declare.
5034 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
5035 (ui_file_write_ftype)
5036 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
5037 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
5038 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
5039 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
5040 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
5041 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
5042 (set_ui_file_fseek): Delete.
5043 (ui_file_data, ui_file_delete, ui_file_rewind)
5044 (struct ui_file): New.
5045 (ui_file_up): New.
5046 (class null_file): New.
5047 (null_stream): Declare.
5048 (ui_file_write_for_put, ui_file_put): Delete.
5049 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
5050 Delete.
5051 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
5052 (gdb_fopen, tee_file_new): Delete.
5053 (struct string_file): New.
5054 (struct stdio_file): New.
5055 (stdio_file_up): New.
5056 (struct stderr_file): New.
5057 (class tee_file): New.
5058 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
5059 of a 'ui_file *'. Adjust.
5060 * ui-out.h (class ui_out) <field_stream>: Likewise.
5061 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
5062 (null_stream): Delete.
5063 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
5064 Adjust.
5065 * utils.h (struct ui_file): Delete forward declaration..
5066 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
5067 (error_stream): Take a 'string_file &' instead of a
5068 'ui_file *'.
5069 * varobj.c (varobj_value_get_print_value): Use string_file.
5070 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
5071 * gdbarch.c: Regenerate.
5072
187808b0
PA
50732017-02-02 Pedro Alves <palves@redhat.com>
5074
5075 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
5076 (gdb_pretty_print_insn): ... this. Now a free function. Add back
5077 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
5078 Adjust to call gdb_print_insn instead of
5079 gdb_disassembler::print_insn.
5080 (dump_insns, do_mixed_source_and_assembly_deprecated)
5081 (do_mixed_source_and_assembly, do_assembly_only): Add back a
5082 'gdbarch' parameter. Remove gdb_disassembler parameter.
5083 (gdb_disassembly): Don't allocate a gdb_disassembler here.
5084 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
5085 declaration.
5086 (gdb_pretty_print_insn): Re-add declaration.
5087 * record-btrace.c (btrace_insn_history): Don't allocate a
5088 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
5089
7a8eb317
SM
50902017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
5091
5092 * disasm.h (gdb_disassembly): Remove file_string parameter.
5093 * disasm.c (gdb_disassembly): Likewise.
5094 * cli/cli-cmds.c (print_disassembly): Adapt.
5095 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
5096 * stack.c (do_gdb_disassembly): Likewise.
5097
7346ef59
AA
50982017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
5099
5100 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
5101 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
5102 targets. And if the implicit value is longer than needed, extract
5103 the first bytes instead of the "least significant" ones.
5104
cd4007e4
MM
51052017-02-01 Markus Metzger <markus.t.metzger@intel.com>
5106
5107 * btrace.c (btrace_enable): Do not call btrace_add_pc for
5108 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
5109 (btrace_fetch): Assert can_access_registers_ptid.
5110 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
5111 validate_registers_access.
5112
cf77c34e
MM
51132017-02-01 Markus Metzger <markus.t.metzger@intel.com>
5114
5115 * gdbthread.h (can_access_registers_ptid): New.
5116 * thread.c (can_access_registers_ptid): New.
5117
be85ce7d
PA
51182017-02-01 Pedro Alves <palves@redhat.com>
5119
5120 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
5121
29b0b251
PA
51222017-01-31 Pedro Alves <palves@redhat.com>
5123
5124 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
5125 Fix typos.
5126
289b5b24
PA
51272017-01-31 Pedro Alves <palves@redhat.com>
5128
5129 * stack.c (print_frame_args): Remove local mem_fileopen stream,
5130 not used.
5131
b47413b4
PA
51322017-01-31 Pedro Alves <palves@redhat.com>
5133
5134 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
5135
60adb36c
PA
51362017-01-31 Pedro Alves <palves@redhat.com>
5137
5138 * common/scoped_restore.h
5139 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
5140 change the value's parameter type to T2.
5141 (make_scoped_restore): Likewise.
5142
2735833d
WT
51432017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5144 Richard Henderson <rth@redhat.com>
5145
5146 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
5147 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
5148 GS_BASE for older kernels.
5149 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
5150 GS_BASE for older kernels.
5151 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
5152 and GS_BASE to the offset table.
5153 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
5154 system register group.
5155 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
5156 for older kernels.
5157 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
5158 amd64 ABI.
5159 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
5160 AMD64_GSBASE_REGNUM.
5161 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
5162 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
5163 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
5164 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
5165 i386/64bit-segments.xml in those rules.
5166 * features/i386/64bit-segments.xml: New file.
5167 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
5168 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
5169 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
5170 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
5171 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
5172 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
5173 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
5174 * features/i386/amd64-avx-linux.c: Regenerated.
5175 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
5176 * features/i386/amd64-avx-mpx.c: Regenerated.
5177 * features/i386/amd64-avx512-linux.c: Regenerated.
5178 * features/i386/amd64-linux.c: Regenerated.
5179 * features/i386/amd64-mpx-linux.c: Regenerated.
5180 * features/i386/i386-avx-mpx-linux.c: Regenerated.
5181 * features/i386/i386-avx-mpx.c: Regenerated.
5182 * features/i386/x32-avx-linux.c: Regenerated.
5183 * features/i386/x32-avx512-linux.c: Regenerated.
5184 * regformats/i386/amd64-avx-linux.dat: Regenerated.
5185 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
5186 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
5187 * regformats/i386/amd64-linux.dat: Regenerated.
5188 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
5189 * regformats/i386/x32-avx-linux.dat: Regenerated.
5190 * regformats/i386/x32-avx512-linux.dat: Regenerated.
5191 * regformats/i386/x32-linux.dat: Regenerated.
5192
8884e97e
WT
51932017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5194
5195 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
5196 Set to AMD64_NUM_REGS.
5197
7005d26a
WT
51982017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5199
5200 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
5201 that checks validity of a register number.
5202
4bd2e1b2
KC
52032017-01-27 Kees Cook <keescook@google.com>
5204
5205 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
5206 fetch_fpregs if target has fpa registers.
5207 (arm_linux_store_inferior_registers): Call store_fpregs if target
5208 has fpa registers.
5209
7cf1de6c
AA
52102017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
5211
5212 * cris-tdep.c (cris_gdbarch_init): Remove check for
5213 info.byte_order and force it to BFD_ENDIAN_LITTLE.
5214
874a1c8c
AT
52152017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
5216
5217 * corelow.c (get_core_register_section): Check for regset
5218 existence before checking for REGSET_VARIABLE_SIZE.
5219
d8b49cf0
YQ
52202017-01-26 Yao Qi <yao.qi@linaro.org>
5221 Pedro Alves <palves@redhat.com>
5222
5223 PR gdb/20939
5224 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
5225 call memory_error, save memaddr instead.
5226 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
5227 negative, cal memory_error.
5228 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
5229
658ca58c
YQ
52302017-01-26 Yao Qi <yao.qi@linaro.org>
5231
5232 * disasm-selftests.c (memory_error_test): New function.
5233 (_initialize_disasm_selftests): Register memory_error_test.
5234
79843d45
YQ
52352017-01-26 Yao Qi <yao.qi@linaro.org>
5236
5237 * Makefile.in (SFILES): Add disasm-selftests.c and
5238 selftest-arch.c.
5239 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
5240 * disasm-selftests.c: New file.
5241 * selftest-arch.c: New file.
5242 * selftest-arch.h: New file.
5243
8cafda32
YQ
52442017-01-26 Yao Qi <yao.qi@linaro.org>
5245
5246 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
5247 to bfd_arch_mep. Don't return 0 if section is not
5248 found. Call print_insn_mep.
5249
e47ad6c0
YQ
52502017-01-26 Pedro Alves <palves@redhat.com>
5251 Yao Qi <yao.qi@linaro.org>
5252
5253 * arm-tdep.c: Include "disasm.h".
5254 (gdb_print_insn_arm): Update code to get gdbarch.
5255 * disasm.c (dis_asm_read_memory): Change it to
5256 gdb_disassembler::dis_asm_read_memory.
5257 (dis_asm_memory_error): Likewise.
5258 (dis_asm_print_address): Likewise.
5259 (gdb_pretty_print_insn): Change it to
5260 gdb_disassembler::pretty_print_insn.
5261 (dump_insns): Add one argument gdb_disassemlber. All
5262 callers updated.
5263 (do_mixed_source_and_assembly_deprecated): Likewise.
5264 (do_mixed_source_and_assembly): Likewise.
5265 (do_assembly_only): Likewise.
5266 (gdb_disassembler::gdb_disassembler): New.
5267 (gdb_disassembler::print_insn): New.
5268 * disasm.h (class gdb_disassembler): New.
5269 (gdb_pretty_print_insn): Remove declaration.
5270 (gdb_disassemble_info): Likewise.
5271 * guile/scm-disasm.c (class gdbscm_disassembler): New.
5272 (gdbscm_disasm_read_memory_worker): Update.
5273 (gdbscm_disasm_read_memory): Update.
5274 (gdbscm_disasm_memory_error): Remove.
5275 (gdbscm_disasm_print_address): Remove.
5276 (gdbscm_disassembler::gdbscm_disassembler): New.
5277 (gdbscm_print_insn_from_port): Update.
5278 * mips-tdep.c: Include disasm.h.
5279 (gdb_print_insn_mips): Update code to get gdbarch.
5280 * record-btrace.c (btrace_insn_history): Update.
5281 * spu-tdep.c: Include disasm.h.
5282 (struct spu_dis_asm_data): Remove.
5283 (struct spu_dis_asm_info): New.
5284 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
5285 SPU id.
5286 (gdb_print_insn_spu): Cast disassemble_info to
5287 spu_dis_asm_info.
5288
80d75874
YQ
52892017-01-26 Yao Qi <yao.qi@linaro.org>
5290
5291 * disasm.c (do_ui_file_delete): Delete.
5292 (gdb_insn_length): Move code creating stream to ...
5293 * utils.c (null_stream): ... here. New function.
5294 * utils.h (null_stream): Declare.
5295
60685cd0
SM
52962017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5297
5298 * python/py-inferior.c (find_thread_object): Return directly
5299 from the loop. Remove "found" variable.
5300
eb1cdb62
JB
53012017-01-21 Joel Brobecker <brobecker@adacore.com>
5302
5303 GDB 7.12.1 released.
5304
b1ce6568
SM
53052017-01-20 Simon Marchi <simon.marchi@ericsson.com>
5306
5307 * python/py-function.c (fnpy_call): Reorder declarations to have
5308 the gdbpy_enter object declared first.
5309 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
5310
6f8b0407
SM
53112017-01-20 Simon Marchi <simon.marchi@ericsson.com>
5312
fec93fb1 5313 PR python/21068
6f8b0407
SM
5314 * python/python-internal.h (PyMem_RawMalloc): Define for
5315 Python < 3.4.
5316 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
5317 PyMem_RawMalloc instead of PyMem_Malloc.
5318
78cbbba8
LM
53192017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
5320 Luis Machado <lgustavo@codesourcery.com>
5321
5322 * NEWS (New commands): Mention flash-erase.
5323 (New MI commands): Mention target-flash-erase.
5324 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
5325 command.
5326 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
5327 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
5328 * target.c (flash_erase_command): New function.
5329 (initialize_targets): Add new flash-erase command.
5330 * target.h (flash_erase_command): New declaration.
5331
2132fe85
JB
53322017-01-20 Joel Brobecker <brobecker@adacore.com>
5333
5334 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
5335 HAVE_SYS_PROCFS_H is defined.
5336
d1dff226
AH
53372017-01-18 Alan Hayward <alan.hayward@arm.com>
5338
5339 * remote.c (struct cached_reg): Change data into a pointer.
5340 * (stop_reply_dtr): Free data pointers before deleting vector.
5341 (process_stop_reply): Likewise.
5342 (remote_parse_stop_reply): Allocate space for data
5343
9890e433
AH
53442017-01-18 Alan Hayward <alan.hayward@arm.com>
5345
5346 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
5347 MAX_REGISTER_SIZE.
5348 (amd64_pseudo_register_read_value): Likewise.
5349 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
5350 (store_register_using_P): Likewise.
5351 * regcache.c (regcache_xfer_part): Likewise.
5352
7a36499a
IR
53532017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
5354
5355 Split real and pseudo registers.
5356 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
5357 (sparc32_pseudo_regnum): New enum.
5358 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
5359 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
5360 (SPARC32_CP0_REGISTERS): New macro.
5361 (sparc32_pseudo_register_name): New function.
5362 (sparc32_register_name): Use sparc32_pseudo_register_name.
5363 (sparc32_pseudo_register_type): New function.
5364 (sparc32_register_type): Use sparc32_pseudo_register_type.
5365 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
5366 pseudo register numbers.
5367 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
5368 (SPARC64_CP0_REGISTERS): New macro.
5369 (sparc64_pseudo_register_name): New function.
5370 (sparc64_register_name): Use sparc64_pseudo_register_name.
5371 (sparc64_pseudo_register_type): New function.
5372 (sparc64_register_type): Use sparc64_pseudo_register_type.
5373 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
5374 pseudo register numbers.
5375 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
5376 sparc64_store_arguments): Handle pseudo register numbers.
5377
6f8976bf
YQ
53782017-01-13 Yao Qi <yao.qi@linaro.org>
5379
5380 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
5381 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
5382 output.
5383 (getpkt_or_notif_sane_1): Likewise.
5384
e4241ace
YQ
53852017-01-13 Yao Qi <yao.qi@linaro.org>
5386
5387 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
5388 of CC. Pass "-x c++-header" instead of "-x c".
5389
3015c064
SM
53902017-01-12 Simon Marchi <simon.marchi@ericsson.com>
5391
5392 * remote.c (remote_can_async_p): Update comment.
5393
fde1b17d
SM
53942017-01-12 Simon Marchi <simon.marchi@ericsson.com>
5395
5396 * linux-nat.c (linux_nat_can_async_p): Update comment.
5397
ca1ca08b
SM
53982017-01-12 Simon Marchi <simon.marchi@ericsson.com>
5399
5400 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
5401
4ad2da73
SM
54022017-01-11 Simon Marchi <simon.marchi@ericsson.com>
5403
5404 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
5405
c8b23b3f
TT
54062017-01-10 Tom Tromey <tom@tromey.com>
5407
5408 * python/py-type.c (typy_legacy_template_argument): Update.
5409 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
5410 ~demangle_parse_info): Declare new members.
5411 (cp_demangled_name_to_comp): Return unique_ptr.
5412 (cp_demangled_name_parse_free)
5413 (make_cleanup_cp_demangled_name_parse_free)
5414 (cp_new_demangle_parse_info): Remove.
5415 * cp-support.c (do_demangled_name_parse_free_cleanup)
5416 (make_cleanup_cp_demangled_name_parse_free): Remove.
5417 (inspect_type, cp_canonicalize_string_full)
5418 (cp_canonicalize_string): Update.
5419 (mangled_name_to_comp): Change return type.
5420 (cp_class_name_from_physname, method_name_from_physname)
5421 (cp_func_name, cp_remove_params): Update.
5422 * cp-name-parser.y (demangle_parse_info): New constructor, from
5423 cp_new_demangle_parse_info.
5424 (~demangle_parse_info): New destructor, from
5425 cp_demangled_name_parse_free.
5426 (cp_merge_demangle_parse_infos): Update.
5427 (cp_demangled_name_to_comp): Change return type.
5428
1ac32117
TT
54292017-01-10 Tom Tromey <tom@tromey.com>
5430
5431 * top.c (prevent_dont_repeat): Change return type.
5432 * python/python.c (execute_gdb_command): Use std::string.
5433 Update.
5434 * guile/guile.c (gdbscm_execute_gdb_command): Update.
5435 * command.h (prevent_dont_repeat): Change return type.
5436 * breakpoint.c (bpstat_do_actions_1): Update.
5437
0cf08227
TT
54382017-01-10 Tom Tromey <tom@tromey.com>
5439
5440 * value.h (scoped_value_mark::~scoped_value_mark): Call
5441 free_to_mark.
5442 (scoped_value_mark::free_to_mark): New method.
5443 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
5444 scoped_value_mark.
5445
eb115069
TT
54462017-01-10 Tom Tromey <tom@tromey.com>
5447
5448 * python/py-value.c (valpy_dereference, valpy_referenced_value)
5449 (valpy_reference_value, valpy_const_value, valpy_get_address)
5450 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
5451 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
5452 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
5453 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5454 scoped_value_mark.
5455 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
5456 * value.h (scoped_value_mark): New class.
5457
906768f9
TT
54582017-01-10 Tom Tromey <tom@tromey.com>
5459
5460 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
5461 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
5462 * psymtab.c (discard_psymtabs_upto): Remove.
5463 (make_cleanup_discard_psymtabs): Remove.
5464 (struct psymtab_state): Remove.
5465
bef155c3
TT
54662017-01-10 Tom Tromey <tom@tromey.com>
5467
5468 * record-full.c (record_full_save_cleanups): Remove.
5469 (record_full_save): Use gdb::unlinker.
5470 * gcore.c (do_bfd_delete_cleanup): Remove.
5471 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
5472 cleanups.
5473 * dwarf2read.c (unlink_if_set): Remove.
5474 (write_psymtabs_to_index): Use gdb::unlinker.
5475 * common/gdb_unlinker.h: New file.
5476
192b62ce
TT
54772017-01-10 Tom Tromey <tom@tromey.com>
5478
5479 * windows-tdep.c (windows_xfer_shared_library): Update.
5480 * windows-nat.c (windows_make_so): Update.
5481 * utils.h (make_cleanup_bfd_unref): Remove.
5482 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
5483 * symfile.h (symfile_bfd_open)
5484 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
5485 * symfile.c (read_symbols, symbol_file_add)
5486 (separate_debug_file_exists): Update.
5487 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
5488 (generic_load, reread_symbols): Update.
5489 * symfile-mem.c (symbol_file_add_from_memory): Update.
5490 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
5491 (spu_symbol_file_add_from_memory): Update.
5492 * solist.h (struct target_so_ops) <bfd_open>: Return
5493 gdb_bfd_ref_ptr.
5494 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
5495 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
5496 gdb_bfd_ref_ptr.
5497 (solib_map_sections, reload_shared_libraries_1): Update.
5498 * solib-svr4.c (enable_break): Update.
5499 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
5500 * solib-frv.c (enable_break2): Update.
5501 * solib-dsbt.c (enable_break): Update.
5502 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
5503 gdb_bfd_ref_ptr.
5504 (darwin_solib_get_all_image_info_addr_at_init): Update.
5505 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
5506 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
5507 * record-full.c (record_full_save): Update.
5508 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
5509 * procfs.c (insert_dbx_link_bpt_in_file): Update.
5510 * minidebug.c (find_separate_debug_file_in_section): Return
5511 gdb_bfd_ref_ptr.
5512 * machoread.c (macho_add_oso_symfile): Change abfd to
5513 gdb_bfd_ref_ptr.
5514 (macho_symfile_read_all_oso): Update.
5515 (macho_check_dsym): Return gdb_bfd_ref_ptr.
5516 (macho_symfile_read): Update.
5517 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
5518 (jit_bfd_try_read_symtab): Update.
5519 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
5520 (gdb_bfd_openw, gdb_bfd_openr_iovec)
5521 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
5522 gdb_bfd_ref_ptr.
5523 (gdb_bfd_ref_policy): New struct.
5524 (gdb_bfd_ref_ptr): New typedef.
5525 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
5526 (gdb_bfd_openw, gdb_bfd_openr_iovec)
5527 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
5528 gdb_bfd_ref_ptr.
5529 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
5530 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
5531 (gcore_command): Update.
5532 * exec.c (exec_file_attach): Update.
5533 * elfread.c (elf_symfile_read): Update.
5534 * dwarf2read.c (dwarf2_get_dwz_file): Update.
5535 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
5536 (open_and_init_dwo_file): Update.
5537 (open_dwp_file): Return gdb_bfd_ref_ptr.
5538 (open_and_init_dwp_file): Update.
5539 * corelow.c (core_open): Update.
5540 * compile/compile-object-load.c (compile_object_load): Update.
5541 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
5542 * coffread.c (coff_symfile_read): Update.
5543 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
5544 gdb_bfd_ref_ptr. Rename.
5545 (dump_bfd_file, restore_command): Update.
5546 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
5547 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
5548 (find_separate_debug_file_by_buildid): Update.
5549
50315b21
TT
55502017-01-10 Tom Tromey <tom@tromey.com>
5551
5552 * common/gdb_ref_ptr.h: New file.
5553 * python/py-ref.h (struct gdbpy_ref_policy): New.
5554 (gdbpy_ref): Now a typedef.
5555
fc4007c9
TT
55562017-01-10 Tom Tromey <tom@tromey.com>
5557
5558 * utils.h (make_cleanup_htab_delete): Don't declare.
5559 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
5560 Remove.
5561 * linespec.c (decode_compound_collector): Add constructor,
5562 destructor.
5563 (lookup_prefix_sym): Remove cleanup.
5564 (symtab_collector): Add constructor, destructor.
5565 (collect_symtabs_from_filename): Remove cleanup.
5566 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
5567 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
5568 Use htab_up.
5569 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
5570 * dwarf2read.c (dw2_expand_symtabs_matching)
5571 (dw2_map_symbol_filenames, dwarf_decode_macros)
5572 (write_psymtabs_to_index): Use htab_up.
5573 * dwarf2loc.c (func_verify_no_selftailcall)
5574 (call_site_find_chain_1, func_verify_no_selftailcall)
5575 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
5576 std::vector, gdb::unique_xmalloc_ptr.
5577 (call_sitep): Remove typedef.
5578 (dwarf2_locexpr_baton_eval): Remove unused variable.
5579
8dbcee67
TT
55802017-01-10 Tom Tromey <tom@tromey.com>
5581
5582 * python/python-internal.h (make_cleanup_py_decref)
5583 (make_cleanup_py_xdecref): Don't declare.
5584 * python/py-utils.c (py_decref, make_cleanup_py_decref)
5585 (py_xdecref, make_cleanup_py_xdecref): Remove.
5586
13df46cc
TT
55872017-01-10 Tom Tromey <tom@tromey.com>
5588
5589 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
5590 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
5591
06fc9bf7
TT
55922017-01-10 Tom Tromey <tom@tromey.com>
5593
5594 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
5595
830a4934
TT
55962017-01-10 Tom Tromey <tom@tromey.com>
5597
5598 * python/py-utils.c (unicode_to_encoded_string)
5599 (python_string_to_target_string)
5600 (python_string_to_target_python_string)
5601 (python_string_to_host_string, gdbpy_obj_to_string)
5602 (get_addr_from_python): Use gdbpy_ref.
5603
4586d543
TT
56042017-01-10 Tom Tromey <tom@tromey.com>
5605
5606 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
5607 gdbpy_ref.
5608
59876f8f
TT
56092017-01-10 Tom Tromey <tom@tromey.com>
5610
5611 * python/python.c (eval_python_command, gdbpy_decode_line)
5612 (gdbpy_run_events, gdbpy_start_type_printers)
5613 (gdbpy_apply_type_printers): Use gdbpy_ref.
5614
97d83487
TT
56152017-01-10 Tom Tromey <tom@tromey.com>
5616
5617 * python/py-param.c (get_doc_string, compute_enum_values): Use
5618 gdbpy_ref.
5619
9205649a
TT
56202017-01-10 Tom Tromey <tom@tromey.com>
5621
5622 * python/py-inferior.c (find_thread_object, build_inferior_list):
5623 Use gdbpy_ref.
5624
74c49d45
TT
56252017-01-10 Tom Tromey <tom@tromey.com>
5626
5627 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
5628
16361ffb
TT
56292017-01-10 Tom Tromey <tom@tromey.com>
5630
5631 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
5632 gdbpy_ref.
5633
905f2cca
TT
56342017-01-10 Tom Tromey <tom@tromey.com>
5635
5636 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
5637 extra incref.
5638 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
5639 Use gdbpy_ref.
5640
64081434
TT
56412017-01-10 Tom Tromey <tom@tromey.com>
5642
5643 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
5644 gdbpy_ref.
5645
59e9e831
TT
56462017-01-10 Tom Tromey <tom@tromey.com>
5647
5648 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
5649 decref results of PyArg_ParseTupleAndKeywords.
5650
9de10f6d
TT
56512017-01-10 Tom Tromey <tom@tromey.com>
5652
5653 * python/python.c (python_run_simple_file): Use
5654 unique_xmalloc_ptr, gdbpy_ref.
5655
2bd5759d
TT
56562017-01-10 Tom Tromey <tom@tromey.com>
5657
5658 * python/py-prettyprint.c (print_stack_unless_memory_error)
5659 (print_string_repr, print_children): Use gdbpy_ref.
5660 (dummy_python_frame): New class.
5661 (dummy_python_frame::dummy_python_frame): Rename from
5662 push_dummy_python_frame.
5663 (py_restore_tstate): Remove.
5664
3b4e0e01
TT
56652017-01-10 Tom Tromey <tom@tromey.com>
5666
5667 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
5668
17a22718
TT
56692017-01-10 Tom Tromey <tom@tromey.com>
5670
5671 * python/python.c (ensure_python_env, restore_python_env):
5672 Remove.
5673 * python/python-internal.h (ensure_python_env): Don't declare.
5674 * varobj.h (varobj_ensure_python_env): Don't declare.
5675 * varobj.c (varobj_ensure_python_env): Remove.
5676
68cdc557
TT
56772017-01-10 Tom Tromey <tom@tromey.com>
5678
5679 * varobj.c (varobj_value_get_print_value): Use
5680 gdbpy_enter_varobj.
5681
1eba6383
TT
56822017-01-10 Tom Tromey <tom@tromey.com>
5683
5684 * python/py-prettyprint.c (print_string_repr, print_children):
5685 Update.
5686 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
5687 of "encoding".
5688 * varobj.c (varobj_value_get_print_value): Update.
5689 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
5690
bde7b3e3
TT
56912017-01-10 Tom Tromey <tom@tromey.com>
5692
5693 * varobj.c (varobj_get_display_hint)
5694 (dynamic_varobj_has_child_method, install_new_value_visualizer)
5695 (varobj_set_visualizer, free_variable): Use
5696 gdbpy_enter_varobj.
5697
a7785f8c
TT
56982017-01-10 Tom Tromey <tom@tromey.com>
5699
5700 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
5701 (do_finish_initialization): New function. Use gdbpy_ref.
5702 (gdbpy_finish_initialization): Use gdbpy_enter. Call
5703 do_finish_initialization.
5704
2865bfce
TT
57052017-01-10 Tom Tromey <tom@tromey.com>
5706
5707 * python/py-param.c (get_set_value, get_show_value): Use
5708 gdbpy_enter, gdbpy_ref.
5709
0e9dcc75
TT
57102017-01-10 Tom Tromey <tom@tromey.com>
5711
5712 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
5713
12a5cedd
TT
57142017-01-10 Tom Tromey <tom@tromey.com>
5715
5716 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
5717
788f2586
TT
57182017-01-10 Tom Tromey <tom@tromey.com>
5719
5720 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
5721 Use gdbpy_enter_varobj.
5722
6cd67bea
TT
57232017-01-10 Tom Tromey <tom@tromey.com>
5724
5725 * varobj.c (gdbpy_enter_varobj): New constructor.
5726 * python/python-internal.h (gdbpy_enter_varobj): New class.
5727 * python/py-varobj.c (py_varobj_get_iterator): Use
5728 gdbpy_enter_varobj.
5729
14b122bf
TT
57302017-01-10 Tom Tromey <tom@tromey.com>
5731
5732 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
5733 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
5734 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
5735 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
5736 unique_xmalloc_ptr.
5737 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
5738
bf1ca3b9
TT
57392017-01-10 Tom Tromey <tom@tromey.com>
5740
5741 * python/py-xmethods.c (invoke_match_method): Use
5742 gdbpy_ref.
5743
572a5524
TT
57442017-01-10 Tom Tromey <tom@tromey.com>
5745
5746 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
5747 gdbpy_enter, gdbpy_ref.
5748
396a78b6
TT
57492017-01-10 Tom Tromey <tom@tromey.com>
5750
5751 * python/python.c (python_interactive_command): Use gdbpy_enter.
5752
a88b13c7
TT
57532017-01-10 Tom Tromey <tom@tromey.com>
5754
5755 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
5756 gdbpy_ref.
5757
e9f0c363
TT
57582017-01-10 Tom Tromey <tom@tromey.com>
5759
5760 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
5761 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
5762
6349f452
TT
57632017-01-10 Tom Tromey <tom@tromey.com>
5764
5765 * utils.h (htab_deleter): New struct.
5766 (htab_up): New typedef.
5767 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
5768 gdbpy_enter, gdbpy_ref, htab_up.
5769
c0171de6
TT
57702017-01-10 Tom Tromey <tom@tromey.com>
5771
5772 * python/py-unwind.c (pending_frame_invalidate): Remove.
5773 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
5774
f18e226f
TT
57752017-01-10 Tom Tromey <tom@tromey.com>
5776
5777 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
5778 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
5779
c57af3f1
TT
57802017-01-10 Tom Tromey <tom@tromey.com>
5781
5782 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
5783
60e600ec
TT
57842017-01-10 Tom Tromey <tom@tromey.com>
5785
5786 * python/python.c (gdbpy_eval_from_control_command)
5787 (gdbpy_source_script, gdbpy_run_events)
5788 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
5789 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
5790 gdbpy_enter.
5791
bf7da5b0
TT
57922017-01-10 Tom Tromey <tom@tromey.com>
5793
5794 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
5795
2d38bced
TT
57962017-01-10 Tom Tromey <tom@tromey.com>
5797
5798 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
5799
07bc7329
TT
58002017-01-10 Tom Tromey <tom@tromey.com>
5801
5802 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5803 (python_on_inferior_call_pre, python_on_inferior_call_post)
5804 (python_on_memory_change, python_on_register_change)
5805 (python_inferior_exit, python_new_objfile, add_thread_object)
5806 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
5807
6e7c365e
TT
58082017-01-10 Tom Tromey <tom@tromey.com>
5809
5810 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
5811 (bpfinishpy_handle_exit): Use gdbpy_enter.
5812
6ba0cd40
TT
58132017-01-10 Tom Tromey <tom@tromey.com>
5814
5815 * python/py-cmd.c (cmdpy_destroyer)
5816 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
5817 gdbpy_enter.
5818
de2dc875
TT
58192017-01-10 Tom Tromey <tom@tromey.com>
5820
5821 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
5822 gdbpy_enter.
5823 (gdbpy_breakpoint_has_cond): Likewise.
5824
4ecee2c4
TT
58252017-01-10 Tom Tromey <tom@tromey.com>
5826
5827 * python/python.c (gdbpy_enter): New constructor.
5828 (~gdbpy_enter): New destructor.
5829 (restore_python_env, ensure_python_env): Rewrite.
5830 * python/python-internal.h (gdbpy_enter): New class.
5831
37fce74f
TT
58322017-01-10 Tom Tromey <tom@tromey.com>
5833
5834 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
5835
53a0cca3
TT
58362017-01-10 Tom Tromey <tom@tromey.com>
5837
5838 * python/py-value.c (value_has_field, get_field_flag)
5839 (get_field_type, valpy_getitem, convert_value_from_python): Use
5840 gdbpy_ref.
5841
ff3724f5
TT
58422017-01-10 Tom Tromey <tom@tromey.com>
5843
5844 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
5845 gdbpy_ref.
5846
0700aea5
TT
58472017-01-10 Tom Tromey <tom@tromey.com>
5848
5849 * python/py-prettyprint.c (search_pp_list)
5850 (find_pretty_printer_from_objfiles)
5851 (find_pretty_printer_from_progspace)
5852 (find_pretty_printer_from_gdb, find_pretty_printer)
5853 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
5854 gdbpy_ref.
5855
1bb44c9f
TT
58562017-01-10 Tom Tromey <tom@tromey.com>
5857
5858 * python/py-param.c (call_doc_function): Use gdbpy_ref.
5859
87ce03fd
TT
58602017-01-10 Tom Tromey <tom@tromey.com>
5861
5862 * python/py-linetable.c (build_line_table_tuple_from_pcs)
5863 (ltpy_get_all_source_lines): Use gdbpy_ref.
5864
ee0a3fb8
TT
58652017-01-10 Tom Tromey <tom@tromey.com>
5866
5867 * python/py-framefilter.c (extract_sym, extract_value)
5868 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
5869 gdbpy_ref.
5870
bf2a52fa
TT
58712017-01-10 Tom Tromey <tom@tromey.com>
5872
5873 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
5874
f59fe7f8
TT
58752017-01-10 Tom Tromey <tom@tromey.com>
5876
5877 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
5878
80bd970a
TT
58792017-01-10 Tom Tromey <tom@tromey.com>
5880
5881 * python/py-function.c (convert_values_to_python, fnpy_init): Use
5882 gdbpy_ref.
5883
d1b3de2e
TT
58842017-01-10 Tom Tromey <tom@tromey.com>
5885
5886 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
5887
3bb43384
TT
58882017-01-10 Tom Tromey <tom@tromey.com>
5889
5890 * python/py-type.c (convert_field, make_fielditem, typy_fields)
5891 (typy_range): Use gdbpy_ref.
5892
abf5651e
TT
58932017-01-10 Tom Tromey <tom@tromey.com>
5894
5895 * python/py-threadevent.c (create_thread_event_object): Use
5896 gdbpy_ref.
5897 * python/py-stopevent.c (create_stop_event_object): Simplify.
5898 (emit_stop_event): Use gdbpy_ref.
5899 * python/py-signalevent.c (create_signal_event_object): Use
5900 gdbpy_ref.
5901 * python/py-newobjfileevent.c (create_new_objfile_event_object)
5902 (emit_new_objfile_event, create_clear_objfiles_event_object)
5903 (emit_clear_objfiles_event): Use gdbpy_ref.
5904 * python/py-infevents.c (create_inferior_call_event_object)
5905 (create_register_changed_event_object)
5906 (create_memory_changed_event_object, emit_inferior_call_event)
5907 (emit_memory_changed_event, emit_register_changed_event): Use
5908 gdbpy_ref.
5909 * python/py-exitedevent.c (create_exited_event_object)
5910 (emit_exited_event): Use gdbpy_ref.
5911 * python/py-event.h (evpy_emit_event): Remove
5912 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
5913 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
5914 * python/py-continueevent.c (emit_continue_event): Use
5915 gdbpy_ref.
5916 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5917 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5918 gdbpy_ref.
5919 * python/py-bpevent.c (create_breakpoint_event_object): Use
5920 gdbpy_ref.
5921
a68ff33e
TT
59222017-01-10 Tom Tromey <tom@tromey.com>
5923
5924 * python/py-ref.h: New file.
5925
7becfd03
SM
59262017-01-10 Simon Marchi <simon.marchi@ericsson.com>
5927
5928 * cli-out.c (cli_ui_out::do_redirect): Change return type to
5929 void.
5930 * cli-out.h (cli_ui_out::do_redirect): Likewise.
5931 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
5932 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
5933 * ui-out.c (ui_out::redirect): Likewise.
5934 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
5935 * cli/cli-logging.c (set_logging_redirect): Update call site of
5936 ui_out::redirect.
5937 (handle_redirections): Likewise.
5938 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
5939 * top.c (execute_command_to_string): Likewise.
5940 * utils.c (do_ui_out_redirect_pop): Likewise.
5941
df294654
SM
59422017-01-10 Simon Marchi <simon.marchi@ericsson.com>
5943
5944 * stack.c (_initialize_stack): Update "frame" command help message.
5945
f5e6296e
IB
59462017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
5947
5948 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
5949
0e2d6fa6
YQ
59502017-01-06 Yao Qi <yao.qi@linaro.org>
5951
5952 * x86-linux-nat.h: Include gdb_proc_service.h.
5953
44d6d3f9
YQ
59542017-01-06 Yao Qi <yao.qi@linaro.org>
5955
5956 * ser-base.h: Include serial.h.
5957
656731fe
YQ
59582017-01-06 Yao Qi <yao.qi@linaro.org>
5959
5960 * ppc-linux-tdep.h: Include ppc-tdep.h.
5961
1ca8f924
YQ
59622017-01-06 Yao Qi <yao.qi@linaro.org>
5963
5964 * nat/amd64-linux-siginfo.h: Include signal.h.
5965
bc3008c4
YQ
59662017-01-06 Yao Qi <yao.qi@linaro.org>
5967
5968 * nat/aarch64-linux-hw-point.h: Include break-common.h.
5969
66c80d03
YQ
59702017-01-06 Yao Qi <yao.qi@linaro.org>
5971
5972 * mi/mi-parse.h: Include mi-cmds.h.
5973
051d2dda
YQ
59742017-01-06 Yao Qi <yao.qi@linaro.org>
5975
5976 * inf-loop.c: Don't include "target.h".
5977 * inf-loop.h: Include it here.
5978
8018d34f
YQ
59792017-01-06 Yao Qi <yao.qi@linaro.org>
5980
5981 * dfp.h: Include "dboulest.h" and "expression.h".
5982
c0b8369c
YQ
59832017-01-06 Yao Qi <yao.qi@linaro.org>
5984
5985 * ax-gdb.h: Include "ax.h".
5986
ad5cba2a
YQ
59872017-01-06 Yao Qi <yao.qi@linaro.org>
5988
5989 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
5990 with nat/gdb_ptrace.h.
5991
1c33cd7f
YQ
59922017-01-05 Yao Qi <yao.qi@linaro.org>
5993
5994 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
5995 new line.
5996 (mips64_fbsd_sigframe_init): Likewise.
5997
c988ac1d
JB
59982017-01-04 John Baldwin <jhb@FreeBSD.org>
5999
6000 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
6001 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
6002
b268007c
JB
60032017-01-04 John Baldwin <jhb@FreeBSD.org>
6004
6005 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
6006 * NEWS: Mention new FreeBSD/mips native configuration.
6007 * config/mips/fbsd.mh: New file.
6008 * configure.host: Add mips*-*-freebsd*.
6009 * mips-fbsd-nat.c: New file.
6010
387360da
JB
60112017-01-04 John Baldwin <jhb@FreeBSD.org>
6012
6013 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
6014 (ALLDEPFILES): Add mips-fbsd-tdep.c.
6015 * NEWS: Mention new FreeBSD/mips target.
6016 * configure.tgt: Add mips*-*-freebsd*.
6017 * mips-fbsd-tdep.c: New file.
6018 * mips-fbsd-tdep.h: New file.
6019
2aaaf250
YQ
60202017-01-04 Yao Qi <yao.qi@linaro.org>
6021
6022 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
6023 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
6024
61baf725
JB
60252017-01-01 Joel Brobecker <brobecker@adacore.com>
6026
6dbb839a 6027 Update copyright year range in all GDB files.
61baf725 6028
c113e7ff 60292017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 6030
c113e7ff 6031 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 6032
c113e7ff 6033For older changes see ChangeLog-2016.
c906108c
SS
6034\f
6035Local Variables:
6036mode: change-log
6037left-margin: 8
6038fill-column: 74
6039version-control: never
57da7796 6040coding: utf-8
c906108c 6041End:
This page took 2.717466 seconds and 4 git commands to generate.