Convert lvalue reference type check to general reference type check
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
2
3 PR gdb/14441
4 * aarch64-tdep.c (aarch64_type_align)
5 (aarch64_extract_return_value, aarch64_store_return_value): Change
6 lvalue reference type checks to general reference type checks.
7 * amd64-tdep.c (amd64_classify): Likewise.
8 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
9 Likewise.
10 * arm-tdep.c (arm_type_align, arm_extract_return_value)
11 (arm_store_return_value): Likewise.
12 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
13 * c-typeprint.c (c_print_type): Likewise.
14 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
15 (cplus_number_of_children, cplus_describe_child): Likewise.
16 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
17 * completer.c (expression_completer): Likewise.
18 * cp-support.c (make_symbol_overload_list_adl_namespace):
19 Likewise.
20 * darwin-nat-info.c (info_mach_region_command): Likewise.
21 * dwarf2loc.c (entry_data_value_coerce_ref)
22 (value_of_dwarf_reg_entry): Likewise.
23 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
24 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
25 Likewise.
26 * findvar.c (extract_typed_address, store_typed_address):
27 Likewise.
28 * gdbtypes.c (rank_one_type): Likewise.
29 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
30 * infcall.c (value_arg_coerce): Likewise.
31 * language.c (pointer_type): Likewise.
32 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
33 Likewise.
34 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
35 * mn10300-tdep.c (mn10300_type_align): Likewise.
36 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
37 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
38 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
39 Likewise.
40 * printcmd.c (print_formatted, x_command): Likewise.
41 * python/py-type.c (typy_get_composite, typy_template_argument):
42 Likewise.
43 * python/py-value.c (valpy_referenced_value)
44 (valpy_get_dynamic_type, value_has_field): Likewise.
45 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
46 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
47 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
48 * spu-tdep.c (spu_scalar_value_p): Likewise.
49 * symtab.c (lookup_symbol_aux): Likewise.
50 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
51 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
52 Likewise.
53 * valops.c (value_cast_pointers, value_cast)
54 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
55 (value_struct_elt, value_struct_elt_bitpos)
56 (value_find_oload_method_list, find_overload_match)
57 (value_rtti_indirect_type): Likewise.
58 * valprint.c (val_print_scalar_type_p, generic_val_print):
59 Likewise.
60 * value.c (value_actual_type, value_as_address, unpack_long)
61 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
62 (coerce_ref): Likewise.
63 * varobj.c (varobj_get_value_type): Likewise.
64
65 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
66
67 PR gdb/14441
68 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
69 table of constants.
70 * python/lib/gdb/command/explore.py: Support exploring values
71 of rvalue reference types.
72 * python/lib/gdb/types.py: Implement get_basic_type() for
73 rvalue reference types.
74 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
75 constant.
76 * python/py-value.c (valpy_getitem): Add an rvalue reference
77 check.
78 (valpy_reference_value): Add new parameter "refcode".
79 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
80 New wrappers for valpy_reference_value().
81 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
82 (gdbpy_invoke_xmethod): Likewise.
83
84 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
85
86 PR gdb/14441
87 * dwarf2read.c (process_die, read_type_die_1): Handle the
88 DW_TAG_rvalue_reference_type DIE.
89 (read_tag_reference_type): Add new parameter "refcode".
90
91 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
92
93 PR gdb/14441
94 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
95 (c_type_print_modifier, c_type_print_varspec_suffix)
96 (c_type_print_base): Support printing rvalue reference types.
97 * c-valprint.c (c_val_print, c_value_print): Support printing
98 rvalue reference values.
99
100 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
101
102 PR gdb/14441
103 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
104 typename.
105 * cp-support.c (replace_typedefs): Handle
106 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
107 * python/py-type.c (typy_lookup_type): Likewise.
108
109 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
110
111 PR gdb/14441
112 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
113 * parse.c (insert_type): Change assert statement.
114 (follow_types): Handle rvalue reference types.
115 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
116 constant.
117
118 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
119
120 PR gdb/14441
121 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
122 value_ref() interface.
123 * c-valprint.c (c_value_print): Likewise.
124 * infcall.c (value_arg_coerce): Likewise.
125 * python/py-value.c (valpy_reference_value): Likewise.
126 * valops.c (value_cast, value_reinterpret_cast)
127 (value_dynamic_cast, typecmp): Likewise.
128 (value_ref): Parameterize by kind of return value reference type.
129 * value.h (value_ref): Add new parameter "refcode".
130
131 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
132
133 PR gdb/14441
134 * dwarf2read.c (read_tag_reference_type): Use
135 lookup_lvalue_reference_type() instead of lookup_reference_type().
136 * eval.c (evaluate_subexp_standard): Likewise.
137 * f-exp.y: Likewise.
138 * gdbtypes.c (make_reference_type, lookup_reference_type):
139 Generalize with rvalue reference types.
140 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
141 convenience wrappers for lookup_reference_type().
142 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
143 reference kind parameter.
144 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
145 wrappers for lookup_reference_type().
146 * guile/scm-type.c (gdbscm_type_reference): Use
147 lookup_lvalue_reference_type() instead of lookup_reference_type().
148 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
149 * parse.c (follow_types): Likewise.
150 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
151 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
152 Likewise.
153 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
154 (gdbpy_invoke_xmethod): Likewise.
155 * stabsread.c: Provide extra argument to make_reference_type()
156 call.
157 * valops.c (value_ref, value_rtti_indirect_type): Use
158 lookup_lvalue_reference_type() instead of lookup_reference_type().
159
160 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
161
162 PR gdb/14441
163 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
164 (TYPE_IS_REFERENCE): New macro.
165 (struct type): Add rvalue_reference_type field.
166 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
167
168 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
169
170 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
171 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
172 New function definition.
173 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
174 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
175 New function declaration.
176 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
177 * mi/mi-interp.h: New file.
178 * solib.c (info_sharedlibrary_command): Replace for loop with
179 ALL_SO_LIBS macro
180 * solib.h (update_solib_list): New function declaration.
181 (so_list_head): Move macro.
182 * solist.h (ALL_SO_LIBS): New macro.
183
184 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
185
186 * infcmd.c (post_create_inferior): Remove unused argument in
187 call to solib_add.
188 * remote.c (remote_start_remote): Likewise.
189 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
190 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
191 (enable_break): Likewise.
192 * solib.c (update_solib_list): Remove unused target argument
193 and its documentation.
194 (solib_add): Remove unused target argument. Remove unused
195 argument in call to update_solib_list.
196 (info_sharedlibrary_command): Remove unused argument in call
197 to update_solib_list.
198 (sharedlibrary_command): Remove unused argument in call to
199 solib_add.
200 (handle_solib_event): Likewise.
201 (reload_shared_libraries): Likewise.
202 * solib.h (solib_add): Remove unused target argument.
203
204 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
205
206 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
207 (s390_displaced_step_fixup): Cover relative branches with the
208 default fixup handling. This fixes lack of support for some
209 relative branch instructions.
210
211 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
212
213 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
214 ptid from regcache.
215
216 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
217
218 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
219 i386_darwin_store_inferior_registers): Use ptid from regcache.
220
221 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
222
223 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
224 i386bsd_store_inferior_registers): Use ptid from regcache.
225
226 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
227
228 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
229 hppaobsd_store_registers): Use ptid from regcache.
230
231 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
232
233 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
234 hppanbsd_store_registers): Use ptid from regcache.
235
236 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
237
238 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
239 from regcache. Use get_ptrace_pid.
240
241 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
242
243 * corelow.c (get_core_register_section): Use ptid from regcache,
244 update doc.
245
246 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
247
248 * bsd-uthread.c (bsd_uthread_fetch_registers,
249 bsd_uthread_store_registers): Use ptid from regcache, set and
250 restore inferior_ptid.
251
252 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
253
254 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
255 fetch_fp_regs, store_register, store_regs, store_fp_register,
256 store_fp_regs): Use ptid from regcache.
257
258 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
259
260 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
261 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
262 store_vfp_regs): Use ptid from regcache.
263
264 2017-03-17 Pedro Alves <palves@redhat.com>
265
266 PR remote/21188
267 * ser-base.c (ser_base_wait_for): Add comment.
268 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
269 version.
270 * ser-unix.c (hardwire_raw): Remove reference to
271 scb->current_timeout.
272 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
273 (hardwire_ops): Install ser_base_readchar instead of
274 hardwire_readchar.
275 * serial.h (struct serial) <current_timeout, timeout_remaining>:
276 Remove fields.
277
278 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
279
280 PR gdb/19637
281 * python/lib/gdb/printer/bound_registers.py: Add support for
282 Python 3.
283
284 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
285
286 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
287 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
288 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
289 byte_offset to subobj_byte_offset. Fix the handling of
290 DWARF_VALUE_STACK on big-endian targets when coming via an
291 implicit pointer.
292 (dwarf2_evaluate_loc_desc): Adjust call to
293 dwarf2_evaluate_loc_desc_full.
294 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
295 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
296
297 2017-03-16 Yao Qi <yao.qi@linaro.org>
298
299 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
300 and REVSH instructions.
301
302 2017-03-16 Yao Qi <yao.qi@linaro.org>
303
304 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
305 (arm_record_test): Declare.
306 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
307 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
308 align with the manual.
309 (thumb_record_misc): Adjust the code order to align with the
310 manual.
311 (thumb2_record_decode_insn_handler): Fix instruction matching.
312 (instruction_reader_thumb): New class.
313 (arm_record_test): New function.
314
315 2017-03-16 Yao Qi <yao.qi@linaro.org>
316
317 * arm-tdep.c (abstract_memory_reader): New class.
318 (instruction_reader): New class.
319 (extract_arm_insn): Add argument 'reader'. Callers updated.
320 (decode_insn): Likewise.
321
322 2017-03-16 Doug Evans <dje@google.com>
323
324 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
325 member. Change type of TYPE member to SCM. All uses updated.
326 (lsscm_make_lazy_string_smob): Add assert.
327 (lsscm_make_lazy_string): Flag bad length values.
328 (lsscm_elt_type): New function.
329 (gdbscm_lazy_string_to_value): Rewrite to use
330 lsscm_safe_lazy_string_to_value.
331 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
332 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
333 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
334 in incoming type.
335 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
336 * guile/scm-type.c (tyscm_scm_to_type): New function.
337
338 2017-03-15 Doug Evans <dje@google.com>
339
340 PR python/17728, python/18439, python/18779
341 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
342 member. Change type of TYPE member to PyObject *. All uses updated.
343 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
344 (gdbpy_create_lazy_string_object): Flag bad length values.
345 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
346 Handle typedefs in incoming type.
347 (stpy_lazy_string_elt_type): New function.
348 (gdbpy_extract_lazy_string): Call it.
349 * python/py-value.c (valpy_lazy_string): Flag bad length values.
350 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
351 typedefs in incoming type.
352
353 2017-03-16 Doug Evans <dje@google.com>
354
355 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
356 * guile/scm-type.c (tyscm_scm_to_type): New function.
357
358 2017-03-16 Jiong Wang <jiong.wang@arm.com>
359
360 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
361 "ULONGEST" for "skip".
362
363 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
364
365 PR gdb/21220
366 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
367 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
368 (inf_ptrace_peek_poke): ...here. New function. Now also loop
369 over ptrace peek/poke until end of buffer or error.
370
371 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
372
373 * parse.c (length_of_subexp): Make static.
374 * parser-defs.h (length_of_subexp): Remove.
375
376 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
377
378 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
379 as well.
380
381 2017-03-14 Pedro Alves <palves@redhat.com>
382
383 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
384 (main): Use std::unique_ptr. Remove calls to
385 cp_demangled_name_parse_free.
386
387 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
388
389 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
390 alphabsd_store_inferior_registers): Use regcache->ptid instead
391 of inferior_ptid.
392
393 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
394
395 * aix-thread.c (aix_thread_fetch_registers,
396 aix_thread_store_registers): Use regcache->ptid instead of
397 inferior_ptid.
398
399 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
400
401 * aarch64-linux-nat.c (fetch_gregs_from_thread,
402 store_gregs_to_thread, fetch_fpregs_from_thread,
403 store_fpregs_to_thread): Use regcache->ptid instead of
404 inferior_ptid.
405
406 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
407
408 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
409 amd64_linux_fetch_inferior_registers): Use regcache->ptid
410 instead of inferior_ptid.
411
412 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
413
414 * target.c (target_fetch_registers, target_store_registers): Add
415 assert.
416
417 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
418
419 * regcache.h (regcache_get_ptid): New function.
420 * regcache.c (regcache_get_ptid): New function.
421
422 2017-03-13 Mark Wielaard <mark@klomp.org>
423
424 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
425
426 2017-03-10 Keith Seitz <keiths@redhat.com>
427
428 PR c++/8218
429 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
430
431 2017-03-08 Pedro Alves <palves@redhat.com>
432
433 PR gdb/18360
434 * infrun.c (start_step_over, do_target_resume, resume)
435 (restart_threads): Assert we're not resuming a thread that is
436 meant to be stopped.
437 (infrun_thread_stop_requested_callback): Delete.
438 (infrun_thread_stop_requested): If the thread is internally
439 stopped, queue a pending stop event and clear the thread's
440 inline-frame state.
441 (handle_stop_requested): New function.
442 (handle_syscall_event, handle_inferior_event_1): Use
443 handle_stop_requested.
444 (handle_stop_requested): New function.
445 (handle_signal_stop): Set the thread's stop_signal here instead of
446 at caller.
447 (finish_step_over): Clear step over info unconditionally.
448 (handle_signal_stop): If the user had interrupted the event
449 thread, consider the stop a random signal.
450 (handle_signal_stop) <signal arrived while stepping over
451 breakpoint>: Don't restart threads here.
452 (stop_waiting): Don't clear step-over info here.
453
454 2017-03-08 Pedro Alves <palves@redhat.com>
455
456 PR 21206
457 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
458 goes to argument 2, not 1.
459
460 2017-03-08 Pedro Alves <palves@redhat.com>
461
462 PR cli/21218
463 * top.c (gdb_readline_wrapper): Avoid passing NULL to
464 display_gdb_prompt.
465 (command_line_input): Add comment.
466
467 2017-03-08 Pedro Alves <palves@redhat.com>
468
469 PR tui/21216
470 * tui/tui-file.c (tui_file::write): New.
471 * tui/tui-file.h (tui_file): Override "write".
472 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
473 factored out from ...
474 (tui_puts): ... here.
475 (tui_putc): Use them.
476 (tui_write): New function.
477 * tui/tui-io.h (tui_write): Declare.
478
479 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
480
481 * Makefile.in (SFILES): Replace "environ.c" with
482 "common/environ.c".
483 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
484 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
485 to...
486 * common/environ.c: ... here.
487 * environ.h: Moved to...
488 * common/environ.h: ... here.
489
490 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
491
492 * gdbarch.sh (pstring_ptr): New static function.
493 (gdbarch_disassembler_options): Use it.
494 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
495 not valid_disassembler_option->name.
496 * gdbarch.c: Regenerate.
497
498 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
499
500 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
501
502 2017-03-07 Pedro Alves <palves@redhat.com>
503
504 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
505
506 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
507
508 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
509 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
510 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
511 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
512
513 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
514
515 * xtensa-linux-nat.c (fetch_gregs): Remove const.
516
517 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
518
519 * remote.c (remote_add_target_side_commands): Use range-based
520 for loop.
521
522 2017-03-03 Yao Qi <yao.qi@linaro.org>
523
524 PR gdb/21165
525 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
526 value is lazy.
527 * valprint.c (common_val_print): Likewise.
528
529 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
530
531 * NEWS: Mention new set/show disassembler-options commands.
532 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
533 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
534 (prospective_options): New static variable.
535 (gdb_disassembler::gdb_disassembler): Initialize
536 m_di.disassembler_options.
537 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
538 (get_disassembler_options): New function.
539 (set_disassembler_options): Likewise.
540 (set_disassembler_options_sfunc): Likewise.
541 (show_disassembler_options_sfunc): Likewise.
542 (disassembler_options_completer): Likewise.
543 (_initialize_disasm): Likewise.
544 * disasm.h (get_disassembler_options): New prototype.
545 (set_disassembler_options): Likewise.
546 * gdbarch.sh (gdbarch_disassembler_options): New variable.
547 (gdbarch_verify_disassembler_options): Likewise.
548 * gdbarch.c: Regenerate.
549 * gdbarch.h: Likewise.
550 * arm-tdep.c (num_disassembly_options): Delete.
551 (set_disassembly_style): Likewise.
552 (arm_disassembler_options): New static variable.
553 (set_disassembly_style_sfunc): Convert short style name into long
554 option name. Call set_disassembler_options.
555 (show_disassembly_style_sfunc): New function.
556 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
557 set_gdbarch_verify_disassembler_options.
558 (_initialize_arm_tdep): Delete regnames variable and update callers.
559 (arm_disassembler_options): Initialize.
560 (disasm_options): New variable.
561 (num_disassembly_options): Rename from this...
562 (num_disassembly_styles): ...to this. Compute by scanning through
563 disasm_options.
564 (valid_disassembly_styles): Initialize using disasm_options.
565 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
566 set_arm_regname_option.
567 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
568 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
569 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
570 set_gdbarch_verify_disassembler_options.
571 * s390-tdep.c (s390_disassembler_options): New static variable.
572 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
573 set_gdbarch_verify_disassembler_options.
574
575 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
576
577 * remote.c (remote_add_target_side_condition): Remove "struct"
578 keyword from range-based for loop.
579
580 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
581
582 * remote.c (remote_add_target_side_condition): Use range-based
583 for loop. Update comment.
584
585 2017-02-27 Yao Qi <yao.qi@linaro.org>
586
587 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
588
589 2017-02-26 Alan Hayward <alan.hayward@arm.com>
590
591 * regcache.c (regcache_raw_update): New function.
592 (regcache_raw_read): Move code to regcache_raw_update.
593 * regcache.h (regcache_raw_update): New declaration.
594 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
595
596 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
597
598 * dwarf2read.c (create_debug_type_hash_table): Initialize
599 header.signature and header.type_offset_in_tu.
600
601 2017-02-24 Pedro Alves <palves@redhat.com>
602
603 * symtab.c (make_file_symbol_completion_list_1): Use
604 add_symtab_completions.
605
606 2017-02-24 Alan Hayward <alan.hayward@arm.com>
607
608 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
609
610 2017-02-24 Alan Hayward <alan.hayward@arm.com>
611
612 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
613 I386_MAX_REGISTER_SIZE.
614 (i386_pseudo_register_write): Likewise.
615 (i386_process_record): Likewise.
616 * i387-tdep.c (i387_supply_xsave): Likewise.
617 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
618 (store_register): Likewise.
619
620 2017-02-23 Pedro Alves <palves@redhat.com>
621
622 * ada-lang.c: Include "common/function-view.h".
623 (ada_iterate_over_symbols): Adjust to use function_view as
624 callback type.
625 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
626 (ada_make_symbol_completion_list): Use a lambda.
627 (ada_exc_search_name_matches): Delete.
628 (name_matches_regex): New.
629 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
630 * compile/compile-c-support.c: Include "common/function-view.h".
631 (print_one_macro): Change prototype to accept a ui_file pointer.
632 (write_macro_definitions): Use a lambda.
633 * dwarf2read.c: Include "common/function-view.h".
634 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
635 (dw2_expand_symtabs_matching): Adjust to use function_view as
636 callback type.
637 * language.h: Include "common/function-view.h".
638 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
639 function_view as callback type.
640 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
641 * linespec.c: Include "common/function-view.h".
642 (collect_info::add_symbol): New method.
643 (struct symbol_and_data_callback, iterate_inline_only, struct
644 symbol_matcher_data, iterate_name_matcher): Delete.
645 (iterate_over_all_matching_symtabs): Adjust to use function_view
646 as callback type and lambdas.
647 (iterate_over_file_blocks): Adjust to use function_view as
648 callback type.
649 (decode_compound_collector): Now a class with private fields.
650 (decode_compound_collector::release_symbols): New method.
651 (collect_one_symbol): Rename to...
652 (decode_compound_collector::operator()): ... this and adjust.
653 (lookup_prefix_sym): decode_compound_collector construction bits
654 move to decode_compound_collector ctor. Pass the
655 decode_compound_collector object directly as callback. Remove
656 cleanups and use decode_compound_collector::release_symbols
657 instead.
658 (symtab_collector): Now a class with private fields.
659 (symtab_collector::release_symtabs): New method.
660 (add_symtabs_to_list): Rename to...
661 (symtab_collector::operator()): ... this and adjust.
662 (collect_symtabs_from_filename): symtab_collector construction
663 bits move to symtab_collector ctor. Pass the symtab_collector
664 object directly as callback. Remove cleanups and use
665 symtab_collector::release_symtabs instead.
666 (collect_symbols): Delete.
667 (add_matching_symbols_to_info): Use lambdas.
668 * macrocmd.c (print_macro_callback): Delete.
669 (info_macro_command): Use a lambda.
670 (info_macros_command): Pass print_macro_definition as callable
671 directly.
672 (print_one_macro): Remove 'ignore' parameter.
673 (macro_list_command): Adjust.
674 * macrotab.c (macro_for_each_data::fn): Now a function_view.
675 (macro_for_each_data::user_data): Delete field.
676 (foreach_macro): Adjust to call the function_view.
677 (macro_for_each): Adjust to use function_view as callback type.
678 (foreach_macro_in_scope): Adjust to call the function_view.
679 (macro_for_each_in_scope): Adjust to use function_view as callback
680 type.
681 * macrotab.h: Include "common/function-view.h".
682 (macro_callback_fn): Declare a prototype instead of a pointer.
683 Remove "user_data" parameter.
684 (macro_for_each, macro_for_each_in_scope): Adjust to use
685 function_view as callback type.
686 * psymtab.c (partial_map_expand_apply)
687 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
688 Adjust to use function_view as callback type and to return bool.
689 (psym_expand_symtabs_matching): Adjust to use function_view as
690 callback types.
691 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
692 to use function_view as callback type and to return bool.
693 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
694 callback types.
695 * symfile.c (expand_symtabs_matching): Adjust to use function_view
696 as callback types.
697 * symfile.h: Include "common/function-view.h".
698 (expand_symtabs_file_matcher_ftype)
699 (expand_symtabs_symbol_matcher_ftype)
700 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
701 return bool.
702 (quick_symbol_functions::map_symtabs_matching_filename)
703 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
704 function_view as callback type and return bool.
705 (expand_symtabs_matching): Adjust to use function_view as callback
706 type.
707 (maintenance_expand_name_matcher)
708 (maintenance_expand_file_matcher): Delete.
709 (maintenance_expand_symtabs): Use lambdas.
710 * symtab.c (iterate_over_some_symtabs): Adjust to use
711 function_view as callback types and return bool.
712 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
713 of a cleanup.
714 (lookup_symtab_callback): Delete.
715 (lookup_symtab): Use a lambda.
716 (iterate_over_symbols): Adjust to use function_view as callback
717 type.
718 (struct search_symbols_data, search_symbols_file_matches)
719 (search_symbols_name_matches): Delete.
720 (search_symbols): Use a pair of lambdas.
721 (struct add_name_data, add_macro_name, symbol_completion_matcher)
722 (symtab_expansion_callback): Delete.
723 (default_make_symbol_completion_list_break_on_1): Use lambdas.
724 * symtab.h: Include "common/function-view.h".
725 (iterate_over_some_symtabs): Adjust to use function_view as
726 callback type and return bool.
727 (iterate_over_symtabs): Adjust to use function_view as callback
728 type.
729 (symbol_found_callback_ftype): Remove 'data' parameter and return
730 bool.
731 (iterate_over_symbols): Adjust to use function_view as callback
732 type.
733
734 2017-02-23 Pedro Alves <palves@redhat.com>
735
736 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
737 (%.o) <unittests/%.c>: New pattern.
738 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
739 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
740 * common/function-view.h: New file.
741 * unittests/function-view-selftests.c: New file.
742 * configure: Regenerate.
743
744 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
745
746 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
747 inferior_ptid.
748 * go32-nat.c (go32_thread_alive): Likewise.
749
750 2017-02-23 Yao Qi <yao.qi@linaro.org>
751
752 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
753 delete.
754
755 2017-02-23 Yao Qi <yao.qi@linaro.org>
756
757 * varobj.c (varobj_clear_saved_item): Use delete instead of
758 xfree.
759 (update_dynamic_varobj_children): Likewise.
760
761 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
762
763 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
764
765 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
766
767 * common/enum-flags.h (enum_flags::enum_flags): Initialize
768 m_enum_value to 0 in default constructor.
769
770 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
771
772 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
773 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
774 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
775 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
776 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
777 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
778 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
779 IS_STORE_CONDITIONAL_INSN.
780
781 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
782
783 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
784
785 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
786
787 * NEWS (Changes since GDB 7.12): Add DWARF-5.
788
789 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
790
791 * dwarf2read.c (skip_one_die, read_attribute_value)
792 (dwarf2_const_value_attr, dump_die_shallow)
793 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
794 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
795
796 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
797
798 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
799 (dwarf_parse_macro_header): Accept DWARF version 5.
800 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
801
802 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
803
804 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
805 DW_AT_GNU_*.
806 * common/common-exceptions.h (enum errors): Likewise.
807 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
808 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
809 (dwarf_expr_context::execute_stack_op): Likewise.
810 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
811 Likewise.
812 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
813 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
814 (show_entry_values_debug, call_site_to_target_addr)
815 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
816 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
817 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
818 (value_of_dwarf_block_entry, indirect_pieced_value)
819 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
820 (disassemble_dwarf_expression): Likewise.
821 * dwarf2read.c (process_die, inherit_abstract_dies)
822 (read_call_site_scope): Likewise.
823 * gdbtypes.h (struct func_type, struct call_site_parameter)
824 (struct call_site): Likewise.
825 * stack.c (read_frame_arg): Likewise.
826 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
827
828 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
829
830 * defs.h (read_unsigned_leb128): New declaration.
831 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
832 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
833 (dwarf2_find_location_expression): Call also
834 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
835 * dwarf2loc.h (dwarf2_version): New declaration.
836 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
837 rnglists.
838 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
839 .debug_rnglists.
840 (struct dwop_section_names): Add loclists_dwo.
841 (dwop_section_names): Add .debug_loclists.dwo.
842 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
843 (struct dwarf2_per_cu_data): Add dwarf_version.
844 (struct dwo_sections): Add loclists.
845 (struct attr_abbrev): Add implicit_const.
846 (read_indirect_line_string): New declaration.
847 (read_unsigned_leb128): Delete declaration.
848 (rcuh_kind): New definition.
849 (read_and_check_comp_unit_head): Change parameter
850 is_debug_types_section to section_kind.
851 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
852 (read_comp_unit_head): Change parameter abfd to section, add parameter
853 section_kind. Handle DWARF-5.
854 (error_check_comp_unit_head): Accept also DWARF version 5.
855 (read_and_check_comp_unit_head): Change parameter
856 is_debug_types_section to section_kind.
857 (read_and_check_type_unit_head): Delete function.
858 (read_abbrev_offset): Handle DWARF-5.
859 (create_debug_type_hash_table): Add parameter section_kind. Process
860 only DW_UT_type. Use signature and type_offset_in_tu from struct
861 comp_unit_head.
862 (create_debug_types_hash_table): Update create_debug_type_hash_table
863 caller.
864 (create_all_type_units): Call create_debug_type_hash_table.
865 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
866 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
867 caller.
868 (skip_one_die): Handle DW_FORM_implicit_const.
869 (dwarf2_rnglists_process): New function.
870 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
871 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
872 (read_attribute_value): Handle DW_FORM_implicit_const,
873 DW_FORM_line_strp.
874 (read_attribute): Handle DW_FORM_implicit_const.
875 (read_indirect_string_at_offset_from): New function from
876 read_indirect_string_at_offset.
877 (read_indirect_string_at_offset): Call
878 read_indirect_string_at_offset_from.
879 (read_indirect_line_string_at_offset): New function.
880 (read_indirect_string): New function comment.
881 (read_indirect_line_string): New function.
882 (read_unsigned_leb128): Make it global.
883 (dwarf2_string_attr): Handle DWARF-5.
884 (add_include_dir_stub, read_formatted_entries): New functions.
885 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
886 Handle DWARF-5.
887 (per_cu_header_read_in): Update read_comp_unit_head caller.
888 (dwarf2_version): New function.
889 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
890 rnglists.
891 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
892 fields.
893
894 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
895
896 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
897
898 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
899
900 * dwarf2read.c (dwarf2_ranges_process): New function from
901 dwarf2_ranges_read.
902 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
903 dwarf2_ranges_process.
904
905 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
906
907 * dwarf2read.c (create_debug_type_hash_table): New function from
908 create_debug_types_hash_table.
909 (create_debug_types_hash_table): Call create_debug_type_hash_table.
910 (create_all_type_units, open_and_init_dwo_file): Update
911 create_debug_types_hash_table callers.
912
913 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
914
915 PR gdb/16188
916 * fork-child.c (trace_start_error): Fix thinko. va_end should
917 refer to 'ap', not 'args'.
918
919 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
920 Pedro Alves <palves@redhat.com>
921
922 PR gdb/16188
923 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
924 calls succeeded.
925 * fork-child.c (trace_start_error): New function.
926 (trace_start_error_with_name): Likewise.
927 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
928 * inf-ptrace.c (inf_ptrace_me): Likewise.
929 * inferior.h (trace_start_error): New prototype.
930 (trace_start_error_with_name): Likewise.
931
932 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
933
934 PR gdb/21164
935 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
936 NULL before using it.
937 * symmisc.c (maintenance_print_symbols): Likewise.
938 (maintenance_print_msymbols): Likewise.
939
940 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
941
942 * NEWS: Add record Python bindings entry.
943
944 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
945
946 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
947 py-record-full.o.
948 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
949 * python/py-record-btrace.c, python/py-record-btrace.h,
950 python/py-record-full.c, python/py-record-full.h: New file.
951 * python/py-record.c: Add include for py-record-btrace.h and
952 py-record-full.h.
953 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
954 recpy_instruction_history, recpy_function_call_history, recpy_begin,
955 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
956 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
957 New definition.
958 (gdbpy_initialize_btrace): New export.
959 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
960
961 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
962
963 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
964 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
965 * python/py-record.c: New file.
966 * python/python-internal.h (gdbpy_start_recording,
967 gdbpy_current_recording, gdpy_stop_recording,
968 gdbpy_initialize_record): New export.
969 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
970 (python_GdbMethods): Add gdbpy_start_recording,
971 gdbpy_current_recording and gdbpy_stop_recording.
972
973 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
974
975 * record-btrace.c (record_btrace_record_method): New function.
976 (init_record_btrace_ops): Initialize to_record_method.
977 * record-full.c (record_full_record_method): New function.
978 (init_record_full_ops, init_record_full_core_ops): Add
979 record_full_record_method.
980 * record.h (enum record_method): New enum.
981 * target-debug.h (target_debug_print_enum_record_method: New define.
982 * target-delegates.c: Regenerate.
983 * target.c (target_record_method): New function.
984 * target.h: Include record.h.
985 (struct target_ops) <to_record_method>: New field.
986 (target_record_method): New export.
987
988 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
989
990 * record.h (record_start, record_stop): New export.
991 * record.c (record_start, record_stop): New function.
992
993 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
994
995 * btrace.c (btrace_fetch): Copy function call segments pointer
996 into a vector.
997 (btrace_clear): Clear the vector.
998 (btrace_find_insn_by_number): Use binary search to find the correct
999 function call segment.
1000 * btrace.h (brace_fun_p): New typedef.
1001 (struct btrace_thread_info) <functions>: New field.
1002
1003 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
1004
1005 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
1006 * btrace.c (btrace_decode_error): ... here. New function.
1007 * btrace.h (btrace_decode_error): New export.
1008
1009 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
1010
1011 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
1012 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
1013 btrace_find_insn_by_number): Remove special case for gaps.
1014 * btrace.h (btrace_insn_get_error): New export.
1015 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
1016 * record-btrace.c (btrace_insn_history): Print number for gaps.
1017 (record_btrace_info, record_btrace_goto): Handle gaps.
1018
1019 2017-02-14 Tom Tromey <tom@tromey.com>
1020
1021 PR python/13598:
1022 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
1023 event.
1024 * python/py-evts.c (gdbpy_initialize_py_events): Add
1025 before_prompt registry.
1026 * python/py-events.h (events_object) <before_prompt>: New field.
1027
1028 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
1029
1030 * btrace.c (ftrace_new_switch): Preserve up link and flags.
1031
1032 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
1033
1034 * symfile (_initialize_symfile): Add usage text to the load command's
1035 help text.
1036
1037 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
1038
1039 * utils.c (defaulted_query): Don't query on secondary UIs.
1040
1041 2017-02-10 Tom Tromey <tom@tromey.com>
1042
1043 * rust-lang.c (rust_get_disr_info): Remove unused variable.
1044
1045 2017-02-10 Tom Tromey <tom@tromey.com>
1046
1047 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
1048 "cleanup" local.
1049 * python/py-type.c (typy_legacy_template_argument): Remove
1050 unnecessary "cleanup" local.
1051
1052 2017-02-10 Tom Tromey <tom@tromey.com>
1053
1054 * python/python.c (do_start_initialization): New function, from
1055 _initialize_python.
1056 (_initialize_python): Call do_start_initialization.
1057 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
1058 goto.
1059
1060 2017-02-10 Tom Tromey <tom@tromey.com>
1061
1062 * python/py-prettyprint.c (pretty_print_one_value): Use
1063 gdbpy_ref.
1064
1065 2017-02-10 Tom Tromey <tom@tromey.com>
1066
1067 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
1068 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
1069 gdbpy_ref.
1070 * python/py-type.c (field_new): Use gdbpy_ref.
1071 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
1072 gdbpy_ref.
1073 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
1074 (py_free_pspace): Likewise.
1075 (pspace_to_pspace_object): Likewise.
1076 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
1077 (py_free_objfile): Likewise.
1078 (objfile_to_objfile_object): Likewise.
1079 * python/py-inferior.c (delete_thread_object): Use
1080 gdbpy_ref.
1081 (infpy_read_memory): Likewise.
1082 (py_free_inferior): Likewise.
1083 * python/py-evtregistry.c (create_eventregistry_object): Use
1084 gdbpy_ref.
1085 * python/py-event.c (create_event_object): Use gdbpy_ref.
1086
1087 2017-02-10 Tom Tromey <tom@tromey.com>
1088
1089 * python/py-ref.h (gdbpy_ref_policy): Now a template.
1090 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
1091 used.
1092 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
1093 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
1094 python/py-exitedevent.c, python/py-finishbreakpoint.c,
1095 python/py-framefilter.c, python/py-function.c,
1096 python/py-inferior.c, python/py-infevents.c,
1097 python/py-linetable.c, python/py-newobjfileevent.c,
1098 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
1099 python/py-signalevent.c, python/py-stopevent.c,
1100 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
1101 python/py-unwind.c, python/py-utils.c, python/py-value.c,
1102 python/py-varobj.c, python/py-xmethods.c, python/python.c,
1103 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
1104
1105 2017-02-10 Tom Tromey <tom@tromey.com>
1106
1107 * ui-out.h (ui_out_emit_type): New class.
1108 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
1109 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
1110 and ui_out_emit_tuple.
1111 (enumerate_locals): Likewise.
1112 (py_mi_print_variables, py_print_locals, py_print_args): Use
1113 ui_out_emit_list.
1114 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
1115 ui_out_emit_list.
1116 * common/gdb_optional.h: New file.
1117
1118 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
1119
1120 * MAINTAINERS (Write After Approval): Update my e-mail address.
1121
1122 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
1123
1124 PR gdb/21122
1125 * breakpoint.c (_initialize_breakpoint): Update the help description
1126 of the 'commands' command to indicate that it takes a list argument.
1127
1128 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
1129
1130 * interps.c (current_interp_set_logging): Remove "return".
1131
1132 2017-02-09 Gary Benson <gbenson@redhat.com>
1133
1134 * symtab.c (add_symtab_completions): Prevent NULL pointer
1135 dereference.
1136
1137 2017-02-08 Pedro Alves <palves@redhat.com>
1138
1139 * interps.c (interp::interp): Remove reference to quiet_p.
1140 (interp_set): Make static. Remove dead "Switching to" output
1141 code.
1142 (interp_quiet_p, interp_set_quiet): Delete.
1143 (interpreter_exec_cmd): Don't set the interpreter quiet.
1144 * interps.h (interp_quiet_p): Make static.
1145 (class interp) <quiet_p>: Remove field
1146
1147 2017-02-08 Jerome Guitton <guitton@adacore.com>
1148
1149 * cli/cli-decode.c (find_command_name_length): Make it extern.
1150 * cli/cli-decode.h (find_command_name_length): Declare.
1151 * cli/cli-script.c (command_name_equals, line_first_arg):
1152 New functions.
1153 (process_next_line): Use cli-decode to parse command names.
1154 (build_command_line): Make args a constant pointer.
1155
1156 2017-02-08 Jerome Guitton <guitton@adacore.com>
1157
1158 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
1159 Remove case-insensitive search.
1160
1161 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1162
1163 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
1164 at the end of the line. Avoids an ARI warning.
1165
1166 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
1167
1168 * NEWS: Mention support for record/replay of Intel 64 rdrand and
1169 rdseed instructions.
1170 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
1171
1172 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
1173
1174 PR tdep/20936
1175 Provide and use sparc32 and sparc64 target description XML files.
1176 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
1177 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
1178 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
1179 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
1180 * features/sparc/sparc32-solaris.xml: New file.
1181 * features/sparc/sparc64-solaris.xml: New file.
1182 * features/sparc/sparc32-solaris.c: Generated.
1183 * features/sparc/sparc64-solaris.c: Generated.
1184 * sparc-tdep.h: Account for differences in target descriptions.
1185 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
1186 (sparc32_register_type): Use target provided registers.
1187 (validate_tdesc_registers): New function.
1188 (sparc32_gdbarch_init): Use tdesc_has_registers.
1189 Set pseudoregister functions.
1190 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
1191 (sparc64_register_type): Use target provided registers.
1192 (sparc64_init_abi): Set pseudoregister functions.
1193
1194 2017-02-03 Tom Tromey <tom@tromey.com>
1195
1196 PR rust/21097:
1197 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
1198 with a single member.
1199
1200 2017-02-03 Pedro Alves <palves@redhat.com>
1201
1202 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
1203 (cli_interp_base::~cli_interp_base): New.
1204 (cli_interp): New struct.
1205 (as_cli_interp): Cast the interp itself to cli_interp.
1206 (cli_interpreter_pre_command_loop): Rename to ...
1207 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
1208 parameter.
1209 (cli_interpreter_init): Rename to ...
1210 (cli_interp::init): ... this. Remove 'self' parameter. Use
1211 boolean. Make extern.
1212 (cli_interpreter_resume): Rename to ...
1213 (cli_interp::resume): ... this. Remove 'data' parameter. Make
1214 extern.
1215 (cli_interpreter_suspend): Rename to ...
1216 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
1217 extern.
1218 (cli_interpreter_exec): Rename to ...
1219 (cli_interp::exec): ... this. Remove 'data' parameter. Make
1220 extern.
1221 (cli_interpreter_supports_command_editing): Rename to ...
1222 (cli_interp_base::supports_command_editing): ... this. Remove
1223 'interp' parameter. Make extern.
1224 (cli_ui_out): Rename to ...
1225 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
1226 Make extern.
1227 (cli_set_logging): Rename to ...
1228 (cli_interp_base::set_logging): ... this. Remove 'interp'
1229 parameter. Make extern.
1230 (cli_interp_procs): Delete.
1231 (cli_interp_factory): Adjust to use "new".
1232 * cli/cli-interp.h: Include "interps.h".
1233 (struct cli_interp_base): New struct.
1234 * interps.c (struct interp): Delete. Fields moved to interps.h.
1235 (interp_new): Delete.
1236 (interp::interp, interp::~interp): New.
1237 (interp_set): Use bool, and return void. Assume the interpreter
1238 has suspend, init and resume methods, and that the all return
1239 void.
1240 (set_top_level_interpreter): interp_set returns void.
1241 (interp_ui_out): Adapt.
1242 (current_interp_set_logging): Adapt.
1243 (interp_data): Delete.
1244 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
1245 (interp_exec): Adapt.
1246 (top_level_interpreter_data): Delete.
1247 * interps.h (interp_init_ftype, interp_resume_ftype)
1248 (interp_suspend_ftype, interp_exec_ftype)
1249 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
1250 (class interp): New.
1251 (interp_new): Delete.
1252 (interp_set): Now returns void. Use bool.
1253 (interp_data, top_level_interpreter_data): Delete.
1254 * mi/mi-common.h: Include interps.h.
1255 (class mi_interp): Inherit from interp. Define a ctor. Declare
1256 init, resume, suspect, exec, interp_ui_out, set_logging and
1257 pre_command_loop methods.
1258 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
1259 (mi_interpreter_init): Rename to ...
1260 (mi_interp::init): ... this. Remove the 'interp' parameter, use
1261 bool, return void and make extern. Adjust.
1262 (mi_interpreter_resume): ... Rename to ...
1263 (mi_interp::resume): ... this. Remove the 'data' parameter,
1264 return void and make extern. Adjust.
1265 (mi_interpreter_suspend): ... Rename to ...
1266 (mi_interp::suspend): ... this. Remove the 'data' parameter,
1267 return void and make extern. Adjust.
1268 (mi_interpreter_exec): ... Rename to ...
1269 (mi_interp::exec): ... this. Remove the 'data' parameter and make
1270 extern. Adjust.
1271 (mi_interpreter_pre_command_loop): ... Rename to ...
1272 (mi_interp::pre_command_loop): ... this. Remove the 'self'
1273 parameter and make extern.
1274 (mi_on_normal_stop_1): Adjust.
1275 (mi_ui_out): Rename to ...
1276 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
1277 parameter and make extern. Adjust.
1278 (mi_set_logging): Rename to ...
1279 (mi_interp::set_logging): ... this. Remove the 'interp'
1280 parameter and make extern. Adjust.
1281 (mi_interp_procs): Delete.
1282 (mi_interp_factory): Adjust to use 'new'.
1283 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
1284 (mi_print_exception, mi_execute_command, mi_load_progress):
1285 Adjust.
1286 * tui/tui-interp.c (tui_interp): New class.
1287 (as_tui_interp): Return a tui_interp pointer.
1288 (tui_on_normal_stop, tui_on_signal_received)
1289 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
1290 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
1291 to use interp::interp_ui_out.
1292 (tui_init): Rename to ...
1293 (tui_interp::init): ... this. Remove the 'self' parameter, use
1294 bool, return void and make extern. Adjust.
1295 (tui_resume): Rename to ...
1296 (tui_interp::resume): ... this. Remove the 'data' parameter,
1297 return void and make extern. Adjust.
1298 (tui_suspend): Rename to ...
1299 (tui_interp::suspend): ... this. Remove the 'data' parameter,
1300 return void and make extern. Adjust.
1301 (tui_ui_out): Rename to ...
1302 (tui_interp::interp_ui_out): ... this. Remove the 'self'
1303 parameter, and make extern. Adjust.
1304 (tui_exec): Rename to ...
1305 (tui_interp::exec): ... this. Remove the 'data' parameter and
1306 make extern.
1307 (tui_interp_procs): Delete.
1308 (tui_interp_factory): Use "new".
1309
1310 2017-02-02 Tom Tromey <tom@tromey.com>
1311
1312 * rust-exp.y (ends_raw_string, space_then_number)
1313 (rust_identifier_start_p): Return bool.
1314 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
1315 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
1316 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
1317 (rust_chartype_p): Return bool.
1318 (val_print_struct, rust_print_struct_def, rust_print_type):
1319 Update.
1320 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
1321 Return bool.
1322
1323 2017-02-02 Tom Tromey <tom@tromey.com>
1324
1325 * rust-lang.c: Reindent.
1326
1327 2017-02-02 Tom Tromey <tom@tromey.com>
1328
1329 * rust-lang.h (rust_crate_for_block): Update.
1330 * rust-lang.c (rust_crate_for_block): Return std::string.
1331 (rust_get_disr_info): Use std:;string, not
1332 gdb::unique_xmalloc_ptr.
1333 * rust-exp.y (crate_name): Update.
1334
1335 2017-02-02 Pedro Alves <palves@redhat.com>
1336
1337 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
1338 field out of gdb_disassembler_test and make it static.
1339
1340 2017-02-02 Pedro Alves <palves@redhat.com>
1341
1342 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
1343 mi1_interp and mi_interp fields.
1344
1345 2017-02-02 Pedro Alves <palves@redhat.com>
1346
1347 * cli/cli-interp.c (struct saved_output_files, saved_output):
1348 Moved from cli/cli-logging.c.
1349 (cli_set_logging): New function.
1350 (cli_interp_procs): Install cli_set_logging.
1351 * cli/cli-interp.h (make_logging_output, cli_set_logging):
1352 Declare.
1353 * cli/cli-logging.c (struct saved_output_files, saved_output):
1354 Moved to cli/cli-interp.c.
1355 (pop_output_files): Don't save outputs here.
1356 (make_logging_output): New function.
1357 (handle_redirections): Don't build tee nor save previous outputs
1358 here.
1359 * interps.c (current_interp_set_logging): Change prototype.
1360 Assume there's always a set_logging_proc method installed.
1361 * interps.h (interp_set_logging_ftype): Change prototype.
1362 (current_interp_set_logging): Change prototype and adjust comment.
1363 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
1364 use make_logging_output.
1365 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
1366 2017-02-02 Pedro Alves <palves@redhat.com>
1367
1368 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
1369 from ...
1370 (set_logging_overwrite): ... here.
1371 (logging_no_redirect_file): Delete.
1372 (set_logging_redirect): Don't handle redirection on the fly.
1373 Instead warn that "logging off" / "logging on" is necessary.
1374 (pop_output_files): Delete references to logging_no_redirect_file.
1375 (show_logging_command): Always speak in terms of what will happen
1376 once logging is reenabled.
1377
1378 2017-02-02 Pedro Alves <palves@redhat.com>
1379
1380 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
1381
1382 2017-02-02 Pedro Alves <palves@redhat.com>
1383
1384 * disasm.c (gdb_pretty_print_insn): Rename to ...
1385 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
1386 Remove gdbarch parameter. Adapt to clear the object's buffers
1387 instead of allocating new buffers, and to print using the object's
1388 gdb_disassembler instead of calling gdb_print_insn.
1389 (dump_insns): Use gdb_pretty_print_disassembler.
1390 * disasm.h (gdb_pretty_print_insn): Delete declaration.
1391 (gdb_pretty_print_disassembler): New class.
1392 * record-btrace.c (btrace_insn_history): Use
1393 gdb_pretty_print_disassembler.
1394
1395 2017-02-02 Pedro Alves <palves@redhat.com>
1396
1397 * ada-lang.c (type_as_string): Use string_file.
1398 * ada-valprint.c (ada_print_floating): Use string_file.
1399 * ada-varobj.c (ada_varobj_scalar_image)
1400 (ada_varobj_get_value_image): Use string_file.
1401 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
1402 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
1403 * breakpoint.c (update_inserted_breakpoint_locations)
1404 (insert_breakpoint_locations, reattach_breakpoints)
1405 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
1406 (print_it_watchpoint): Use string_file.
1407 (save_breakpoints): Use stdio_file.
1408 * c-exp.y (oper): Use string_file.
1409 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
1410 tee_file.
1411 (pop_output_files): Use delete.
1412 (handle_redirections): Use stdio_file and tee_file.
1413 * cli/cli-setshow.c (do_show_command): Use string_file.
1414 * compile/compile-c-support.c (c_compute_program): Use
1415 string_file.
1416 * compile/compile-c-symbols.c (generate_vla_size): Take a
1417 'string_file &' instead of a 'ui_file *'.
1418 (generate_c_for_for_one_variable): Take a 'string_file &' instead
1419 of a 'ui_file *'. Use string_file.
1420 (generate_c_for_variable_locations): Take a 'string_file &'
1421 instead of a 'ui_file *'.
1422 * compile/compile-internal.h (generate_c_for_for_one_variable):
1423 Take a 'string_file &' instead of a 'ui_file *'.
1424 * compile/compile-loc2c.c (push, pushf, unary, binary)
1425 (print_label, pushf_register_address, pushf_register)
1426 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
1427 'ui_file *'. Adjust.
1428 * compile/compile.c (compile_to_object): Use string_file.
1429 * compile/compile.h (compile_dwarf_expr_to_c)
1430 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
1431 'ui_file *'.
1432 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
1433 (replace_typedefs_qualified_name): Use string_file and
1434 obstack_copy0.
1435 * disasm.c (gdb_pretty_print_insn): Use string_file.
1436 (gdb_disassembly): Adjust reference the null_stream global.
1437 (do_ui_file_delete): Delete.
1438 (gdb_insn_length): Use null_stream.
1439 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
1440 * dwarf2loc.c (dwarf2_compile_property_to_c)
1441 (locexpr_generate_c_location, loclist_generate_c_location): Take a
1442 'string_file &' instead of a 'ui_file *'.
1443 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
1444 * dwarf2read.c (do_ui_file_peek_last): Delete.
1445 (dwarf2_compute_name): Use string_file.
1446 * event-top.c (gdb_setup_readline): Use stdio_file.
1447 * gdbarch.sh (verify_gdbarch): Use string_file.
1448 * gdbtypes.c (safe_parse_type): Use null_stream.
1449 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
1450 string_file.
1451 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
1452 'string_file *' instead of a 'ui_file *'.
1453 (gdbscm_arch_disassemble): Use string_file.
1454 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
1455 * guile/scm-ports.c (class ioscm_file_port): Now a class that
1456 inherits from ui_file.
1457 (ioscm_file_port_delete, ioscm_file_port_rewind)
1458 (ioscm_file_port_put): Delete.
1459 (ioscm_file_port_write): Rename to ...
1460 (ioscm_file_port::write): ... this. Remove file_port_magic
1461 checks.
1462 (ioscm_file_port_new): Delete.
1463 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
1464 ui_file_up.
1465 * guile/scm-type.c (tyscm_type_name): Use string_file.
1466 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
1467 Use string_file.
1468 * infcmd.c (print_return_value_1): Use string_file.
1469 * infrun.c (print_target_wait_results): Use string_file.
1470 * language.c (add_language): Use string_file.
1471 * location.c (explicit_to_string_internal): Use string_file.
1472 * main.c (captured_main_1): Use null_file.
1473 * maint.c (maintenance_print_architecture): Use stdio_file.
1474 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
1475 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
1476 event_channel>: Change type to mi_console_file pointer.
1477 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
1478 (mi_console_file_delete): Delete.
1479 (struct mi_console_file): Delete.
1480 (mi_console_file_magic): Delete.
1481 (mi_console_file_new): Delete.
1482 (mi_console_file::mi_console_file): New.
1483 (mi_console_file_delete): Delete.
1484 (mi_console_file_fputs): Delete.
1485 (mi_console_file::write): New.
1486 (mi_console_raw_packet): Delete.
1487 (mi_console_file::flush): New.
1488 (mi_console_file_flush): Delete.
1489 (mi_console_set_raw): Rename to ...
1490 (mi_console_file::set_raw): ... this.
1491 * mi/mi-console.h (class mi_console_file): New class.
1492 (mi_console_file_new, mi_console_set_raw): Delete.
1493 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
1494 (mi_set_logging): Use delete and tee_file. Adjust.
1495 * mi/mi-main.c (output_register): Use string_file.
1496 (mi_cmd_data_evaluate_expression): Use string_file.
1497 (mi_cmd_data_read_memory): Use string_file.
1498 (mi_cmd_execute, print_variable_or_computed): Use string_file.
1499 * mi/mi-out.c (mi_ui_out::main_stream): New.
1500 (mi_ui_out::rewind): Use main_stream and
1501 string_file.
1502 (mi_ui_out::put): Use main_stream and string_file.
1503 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
1504 Allocate a 'string_file' instead.
1505 (mi_out_new): Don't allocate a mem_fileopen stream here.
1506 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
1507 (mi_ui_out::main_stream): Declare method.
1508 * printcmd.c (eval_command): Use string_file.
1509 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
1510 * python/py-arch.c (archpy_disassemble): Use string_file.
1511 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
1512 * python/py-frame.c (frapy_str): Use string_file.
1513 * python/py-framefilter.c (py_print_type, py_print_single_arg):
1514 Use string_file.
1515 * python/py-type.c (typy_str): Use string_file.
1516 * python/py-unwind.c (unwind_infopy_str): Use string_file.
1517 * python/py-value.c (valpy_str): Use string_file.
1518 * record-btrace.c (btrace_insn_history): Use string_file.
1519 * regcache.c (regcache_print): Use stdio_file.
1520 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
1521 * remote.c (escape_buffer): Use string_file.
1522 * rust-lang.c (rust_get_disr_info): Use string_file.
1523 * serial.c (serial_open_ops_1): Use stdio_file.
1524 (do_serial_close): Use delete.
1525 * stack.c (print_frame_arg): Use string_file.
1526 (print_frame_args): Remove local mem_fileopen stream, not used.
1527 (print_frame): Use string_file.
1528 * symmisc.c (maintenance_print_symbols): Use stdio_file.
1529 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1530 Take a 'string_file *' instead of a 'ui_file *'.
1531 * top.c (new_ui): Use stdio_file and stderr_file.
1532 (free_ui): Use delete.
1533 (execute_command_to_string): Use string_file.
1534 (quit_confirm): Use string_file.
1535 * tracepoint.c (collection_list::append_exp): Use string_file.
1536 * tui/tui-disasm.c (tui_disassemble): Use string_file.
1537 * tui/tui-file.c: Don't include "ui-file.h".
1538 (enum streamtype, struct tui_stream): Delete.
1539 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
1540 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
1541 (tui_file::tui_file): New method.
1542 (tui_file_fputs): Delete.
1543 (tui_file_get_strbuf): Delete.
1544 (tui_file::puts): New method.
1545 (tui_file_adjust_strbuf): Delete.
1546 (tui_file_flush): Delete.
1547 (tui_file::flush): New method.
1548 * tui/tui-file.h: Tweak intro comment.
1549 Include ui-file.h.
1550 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
1551 (tui_file_adjust_strbuf): Delete declarations.
1552 (class tui_file): New class.
1553 * tui/tui-io.c (tui_initialize_io): Use tui_file.
1554 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
1555 (tui_register_format): Use string_stream.
1556 * tui/tui-stack.c (tui_make_status_line): Use string_file.
1557 (tui_get_function_from_frame): Use string_file.
1558 * typeprint.c (type_to_string): Use string_file.
1559 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
1560 (null_stream): New global.
1561 (ui_file_delete): Delete.
1562 (ui_file::ui_file): New.
1563 (null_file_isatty): Delete.
1564 (ui_file::~ui_file): New.
1565 (null_file_rewind): Delete.
1566 (ui_file::printf): New.
1567 (null_file_put): Delete.
1568 (null_file_flush): Delete.
1569 (ui_file::putstr): New.
1570 (null_file_write): Delete.
1571 (ui_file::putstrn): New.
1572 (null_file_read): Delete.
1573 (ui_file::putc): New.
1574 (null_file_fputs): Delete.
1575 (null_file_write_async_safe): Delete.
1576 (ui_file::vprintf): New.
1577 (null_file_delete): Delete.
1578 (null_file::write): New.
1579 (null_file_fseek): Delete.
1580 (null_file::puts): New.
1581 (ui_file_data): Delete.
1582 (null_file::write_async_safe): New.
1583 (gdb_flush, ui_file_isatty): Adjust.
1584 (ui_file_put, ui_file_rewind): Delete.
1585 (ui_file_write): Adjust.
1586 (ui_file_write_for_put): Delete.
1587 (ui_file_write_async_safe, ui_file_read): Adjust.
1588 (ui_file_fseek): Delete.
1589 (fputs_unfiltered): Adjust.
1590 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
1591 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
1592 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
1593 (set_ui_file_data): Delete.
1594 (string_file::~string_file, string_file::write)
1595 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
1596 (do_ui_file_as_string, ui_file_as_string): Delete.
1597 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
1598 (struct mem_file): Delete.
1599 (mem_file_new): Delete.
1600 (stdio_file::stdio_file): New.
1601 (mem_file_delete): Delete.
1602 (stdio_file::stdio_file): New.
1603 (mem_fileopen): Delete.
1604 (stdio_file::~stdio_file): New.
1605 (mem_file_rewind): Delete.
1606 (stdio_file::set_stream): New.
1607 (mem_file_put): Delete.
1608 (stdio_file::open): New.
1609 (mem_file_write): Delete.
1610 (stdio_file_magic, struct stdio_file): Delete.
1611 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
1612 (stdio_file::flush): New.
1613 (stdio_file_read): Rename to ...
1614 (stdio_file::read): ... this. Adjust.
1615 (stdio_file_write): Rename to ...
1616 (stdio_file::write): ... this. Adjust.
1617 (stdio_file_write_async_safe): Rename to ...
1618 (stdio_file::write_async_safe) ... this. Adjust.
1619 (stdio_file_fputs): Rename to ...
1620 (stdio_file::puts) ... this. Adjust.
1621 (stdio_file_isatty): Delete.
1622 (stdio_file_fseek): Delete.
1623 (stdio_file::isatty): New.
1624 (stderr_file_write): Rename to ...
1625 (stderr_file::write) ... this. Adjust.
1626 (stderr_file_fputs): Rename to ...
1627 (stderr_file::puts) ... this. Adjust.
1628 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
1629 (stderr_file::stderr_file): New.
1630 (tee_file_magic): Delete.
1631 (struct tee_file): Delete.
1632 (tee_file::tee_file): New.
1633 (tee_file_new): Delete.
1634 (tee_file::~tee_file): New.
1635 (tee_file_delete): Delete.
1636 (tee_file_flush): Rename to ...
1637 (tee_file::flush): ... this. Adjust.
1638 (tee_file_write): Rename to ...
1639 (tee_file::write): ... this. Adjust.
1640 (tee_file::write_async_safe): New.
1641 (tee_file_fputs): Rename to ...
1642 (tee_file::puts): ... this. Adjust.
1643 (tee_file_isatty): Rename to ...
1644 (tee_file::isatty): ... this. Adjust.
1645 * ui-file.h (struct obstack, struct ui_file): Don't
1646 forward-declare.
1647 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
1648 (ui_file_write_ftype)
1649 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
1650 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
1651 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
1652 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
1653 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
1654 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
1655 (set_ui_file_fseek): Delete.
1656 (ui_file_data, ui_file_delete, ui_file_rewind)
1657 (struct ui_file): New.
1658 (ui_file_up): New.
1659 (class null_file): New.
1660 (null_stream): Declare.
1661 (ui_file_write_for_put, ui_file_put): Delete.
1662 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
1663 Delete.
1664 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
1665 (gdb_fopen, tee_file_new): Delete.
1666 (struct string_file): New.
1667 (struct stdio_file): New.
1668 (stdio_file_up): New.
1669 (struct stderr_file): New.
1670 (class tee_file): New.
1671 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
1672 of a 'ui_file *'. Adjust.
1673 * ui-out.h (class ui_out) <field_stream>: Likewise.
1674 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
1675 (null_stream): Delete.
1676 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
1677 Adjust.
1678 * utils.h (struct ui_file): Delete forward declaration..
1679 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
1680 (error_stream): Take a 'string_file &' instead of a
1681 'ui_file *'.
1682 * varobj.c (varobj_value_get_print_value): Use string_file.
1683 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
1684 * gdbarch.c: Regenerate.
1685
1686 2017-02-02 Pedro Alves <palves@redhat.com>
1687
1688 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
1689 (gdb_pretty_print_insn): ... this. Now a free function. Add back
1690 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
1691 Adjust to call gdb_print_insn instead of
1692 gdb_disassembler::print_insn.
1693 (dump_insns, do_mixed_source_and_assembly_deprecated)
1694 (do_mixed_source_and_assembly, do_assembly_only): Add back a
1695 'gdbarch' parameter. Remove gdb_disassembler parameter.
1696 (gdb_disassembly): Don't allocate a gdb_disassembler here.
1697 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
1698 declaration.
1699 (gdb_pretty_print_insn): Re-add declaration.
1700 * record-btrace.c (btrace_insn_history): Don't allocate a
1701 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
1702
1703 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
1704
1705 * disasm.h (gdb_disassembly): Remove file_string parameter.
1706 * disasm.c (gdb_disassembly): Likewise.
1707 * cli/cli-cmds.c (print_disassembly): Adapt.
1708 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
1709 * stack.c (do_gdb_disassembly): Likewise.
1710
1711 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
1712
1713 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
1714 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
1715 targets. And if the implicit value is longer than needed, extract
1716 the first bytes instead of the "least significant" ones.
1717
1718 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
1719
1720 * btrace.c (btrace_enable): Do not call btrace_add_pc for
1721 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
1722 (btrace_fetch): Assert can_access_registers_ptid.
1723 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
1724 validate_registers_access.
1725
1726 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
1727
1728 * gdbthread.h (can_access_registers_ptid): New.
1729 * thread.c (can_access_registers_ptid): New.
1730
1731 2017-02-01 Pedro Alves <palves@redhat.com>
1732
1733 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
1734
1735 2017-01-31 Pedro Alves <palves@redhat.com>
1736
1737 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
1738 Fix typos.
1739
1740 2017-01-31 Pedro Alves <palves@redhat.com>
1741
1742 * stack.c (print_frame_args): Remove local mem_fileopen stream,
1743 not used.
1744
1745 2017-01-31 Pedro Alves <palves@redhat.com>
1746
1747 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
1748
1749 2017-01-31 Pedro Alves <palves@redhat.com>
1750
1751 * common/scoped_restore.h
1752 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
1753 change the value's parameter type to T2.
1754 (make_scoped_restore): Likewise.
1755
1756 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
1757 Richard Henderson <rth@redhat.com>
1758
1759 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
1760 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
1761 GS_BASE for older kernels.
1762 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
1763 GS_BASE for older kernels.
1764 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
1765 and GS_BASE to the offset table.
1766 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
1767 system register group.
1768 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
1769 for older kernels.
1770 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
1771 amd64 ABI.
1772 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
1773 AMD64_GSBASE_REGNUM.
1774 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
1775 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
1776 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
1777 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
1778 i386/64bit-segments.xml in those rules.
1779 * features/i386/64bit-segments.xml: New file.
1780 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
1781 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
1782 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
1783 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
1784 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
1785 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
1786 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
1787 * features/i386/amd64-avx-linux.c: Regenerated.
1788 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
1789 * features/i386/amd64-avx-mpx.c: Regenerated.
1790 * features/i386/amd64-avx512-linux.c: Regenerated.
1791 * features/i386/amd64-linux.c: Regenerated.
1792 * features/i386/amd64-mpx-linux.c: Regenerated.
1793 * features/i386/i386-avx-mpx-linux.c: Regenerated.
1794 * features/i386/i386-avx-mpx.c: Regenerated.
1795 * features/i386/x32-avx-linux.c: Regenerated.
1796 * features/i386/x32-avx512-linux.c: Regenerated.
1797 * regformats/i386/amd64-avx-linux.dat: Regenerated.
1798 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
1799 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
1800 * regformats/i386/amd64-linux.dat: Regenerated.
1801 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
1802 * regformats/i386/x32-avx-linux.dat: Regenerated.
1803 * regformats/i386/x32-avx512-linux.dat: Regenerated.
1804 * regformats/i386/x32-linux.dat: Regenerated.
1805
1806 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
1807
1808 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
1809 Set to AMD64_NUM_REGS.
1810
1811 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
1812
1813 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
1814 that checks validity of a register number.
1815
1816 2017-01-27 Kees Cook <keescook@google.com>
1817
1818 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
1819 fetch_fpregs if target has fpa registers.
1820 (arm_linux_store_inferior_registers): Call store_fpregs if target
1821 has fpa registers.
1822
1823 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
1824
1825 * cris-tdep.c (cris_gdbarch_init): Remove check for
1826 info.byte_order and force it to BFD_ENDIAN_LITTLE.
1827
1828 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
1829
1830 * corelow.c (get_core_register_section): Check for regset
1831 existence before checking for REGSET_VARIABLE_SIZE.
1832
1833 2017-01-26 Yao Qi <yao.qi@linaro.org>
1834 Pedro Alves <palves@redhat.com>
1835
1836 PR gdb/20939
1837 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
1838 call memory_error, save memaddr instead.
1839 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
1840 negative, cal memory_error.
1841 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
1842
1843 2017-01-26 Yao Qi <yao.qi@linaro.org>
1844
1845 * disasm-selftests.c (memory_error_test): New function.
1846 (_initialize_disasm_selftests): Register memory_error_test.
1847
1848 2017-01-26 Yao Qi <yao.qi@linaro.org>
1849
1850 * Makefile.in (SFILES): Add disasm-selftests.c and
1851 selftest-arch.c.
1852 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
1853 * disasm-selftests.c: New file.
1854 * selftest-arch.c: New file.
1855 * selftest-arch.h: New file.
1856
1857 2017-01-26 Yao Qi <yao.qi@linaro.org>
1858
1859 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
1860 to bfd_arch_mep. Don't return 0 if section is not
1861 found. Call print_insn_mep.
1862
1863 2017-01-26 Pedro Alves <palves@redhat.com>
1864 Yao Qi <yao.qi@linaro.org>
1865
1866 * arm-tdep.c: Include "disasm.h".
1867 (gdb_print_insn_arm): Update code to get gdbarch.
1868 * disasm.c (dis_asm_read_memory): Change it to
1869 gdb_disassembler::dis_asm_read_memory.
1870 (dis_asm_memory_error): Likewise.
1871 (dis_asm_print_address): Likewise.
1872 (gdb_pretty_print_insn): Change it to
1873 gdb_disassembler::pretty_print_insn.
1874 (dump_insns): Add one argument gdb_disassemlber. All
1875 callers updated.
1876 (do_mixed_source_and_assembly_deprecated): Likewise.
1877 (do_mixed_source_and_assembly): Likewise.
1878 (do_assembly_only): Likewise.
1879 (gdb_disassembler::gdb_disassembler): New.
1880 (gdb_disassembler::print_insn): New.
1881 * disasm.h (class gdb_disassembler): New.
1882 (gdb_pretty_print_insn): Remove declaration.
1883 (gdb_disassemble_info): Likewise.
1884 * guile/scm-disasm.c (class gdbscm_disassembler): New.
1885 (gdbscm_disasm_read_memory_worker): Update.
1886 (gdbscm_disasm_read_memory): Update.
1887 (gdbscm_disasm_memory_error): Remove.
1888 (gdbscm_disasm_print_address): Remove.
1889 (gdbscm_disassembler::gdbscm_disassembler): New.
1890 (gdbscm_print_insn_from_port): Update.
1891 * mips-tdep.c: Include disasm.h.
1892 (gdb_print_insn_mips): Update code to get gdbarch.
1893 * record-btrace.c (btrace_insn_history): Update.
1894 * spu-tdep.c: Include disasm.h.
1895 (struct spu_dis_asm_data): Remove.
1896 (struct spu_dis_asm_info): New.
1897 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
1898 SPU id.
1899 (gdb_print_insn_spu): Cast disassemble_info to
1900 spu_dis_asm_info.
1901
1902 2017-01-26 Yao Qi <yao.qi@linaro.org>
1903
1904 * disasm.c (do_ui_file_delete): Delete.
1905 (gdb_insn_length): Move code creating stream to ...
1906 * utils.c (null_stream): ... here. New function.
1907 * utils.h (null_stream): Declare.
1908
1909 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
1910
1911 * python/py-inferior.c (find_thread_object): Return directly
1912 from the loop. Remove "found" variable.
1913
1914 2017-01-21 Joel Brobecker <brobecker@adacore.com>
1915
1916 GDB 7.12.1 released.
1917
1918 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
1919
1920 * python/py-function.c (fnpy_call): Reorder declarations to have
1921 the gdbpy_enter object declared first.
1922 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
1923
1924 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
1925
1926 PR python/21068
1927 * python/python-internal.h (PyMem_RawMalloc): Define for
1928 Python < 3.4.
1929 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
1930 PyMem_RawMalloc instead of PyMem_Malloc.
1931
1932 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
1933 Luis Machado <lgustavo@codesourcery.com>
1934
1935 * NEWS (New commands): Mention flash-erase.
1936 (New MI commands): Mention target-flash-erase.
1937 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
1938 command.
1939 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
1940 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
1941 * target.c (flash_erase_command): New function.
1942 (initialize_targets): Add new flash-erase command.
1943 * target.h (flash_erase_command): New declaration.
1944
1945 2017-01-20 Joel Brobecker <brobecker@adacore.com>
1946
1947 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
1948 HAVE_SYS_PROCFS_H is defined.
1949
1950 2017-01-18 Alan Hayward <alan.hayward@arm.com>
1951
1952 * remote.c (struct cached_reg): Change data into a pointer.
1953 * (stop_reply_dtr): Free data pointers before deleting vector.
1954 (process_stop_reply): Likewise.
1955 (remote_parse_stop_reply): Allocate space for data
1956
1957 2017-01-18 Alan Hayward <alan.hayward@arm.com>
1958
1959 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
1960 MAX_REGISTER_SIZE.
1961 (amd64_pseudo_register_read_value): Likewise.
1962 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
1963 (store_register_using_P): Likewise.
1964 * regcache.c (regcache_xfer_part): Likewise.
1965
1966 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
1967
1968 Split real and pseudo registers.
1969 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
1970 (sparc32_pseudo_regnum): New enum.
1971 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
1972 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
1973 (SPARC32_CP0_REGISTERS): New macro.
1974 (sparc32_pseudo_register_name): New function.
1975 (sparc32_register_name): Use sparc32_pseudo_register_name.
1976 (sparc32_pseudo_register_type): New function.
1977 (sparc32_register_type): Use sparc32_pseudo_register_type.
1978 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
1979 pseudo register numbers.
1980 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
1981 (SPARC64_CP0_REGISTERS): New macro.
1982 (sparc64_pseudo_register_name): New function.
1983 (sparc64_register_name): Use sparc64_pseudo_register_name.
1984 (sparc64_pseudo_register_type): New function.
1985 (sparc64_register_type): Use sparc64_pseudo_register_type.
1986 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
1987 pseudo register numbers.
1988 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
1989 sparc64_store_arguments): Handle pseudo register numbers.
1990
1991 2017-01-13 Yao Qi <yao.qi@linaro.org>
1992
1993 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
1994 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
1995 output.
1996 (getpkt_or_notif_sane_1): Likewise.
1997
1998 2017-01-13 Yao Qi <yao.qi@linaro.org>
1999
2000 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
2001 of CC. Pass "-x c++-header" instead of "-x c".
2002
2003 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
2004
2005 * remote.c (remote_can_async_p): Update comment.
2006
2007 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
2008
2009 * linux-nat.c (linux_nat_can_async_p): Update comment.
2010
2011 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
2012
2013 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
2014
2015 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
2016
2017 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
2018
2019 2017-01-10 Tom Tromey <tom@tromey.com>
2020
2021 * python/py-type.c (typy_legacy_template_argument): Update.
2022 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
2023 ~demangle_parse_info): Declare new members.
2024 (cp_demangled_name_to_comp): Return unique_ptr.
2025 (cp_demangled_name_parse_free)
2026 (make_cleanup_cp_demangled_name_parse_free)
2027 (cp_new_demangle_parse_info): Remove.
2028 * cp-support.c (do_demangled_name_parse_free_cleanup)
2029 (make_cleanup_cp_demangled_name_parse_free): Remove.
2030 (inspect_type, cp_canonicalize_string_full)
2031 (cp_canonicalize_string): Update.
2032 (mangled_name_to_comp): Change return type.
2033 (cp_class_name_from_physname, method_name_from_physname)
2034 (cp_func_name, cp_remove_params): Update.
2035 * cp-name-parser.y (demangle_parse_info): New constructor, from
2036 cp_new_demangle_parse_info.
2037 (~demangle_parse_info): New destructor, from
2038 cp_demangled_name_parse_free.
2039 (cp_merge_demangle_parse_infos): Update.
2040 (cp_demangled_name_to_comp): Change return type.
2041
2042 2017-01-10 Tom Tromey <tom@tromey.com>
2043
2044 * top.c (prevent_dont_repeat): Change return type.
2045 * python/python.c (execute_gdb_command): Use std::string.
2046 Update.
2047 * guile/guile.c (gdbscm_execute_gdb_command): Update.
2048 * command.h (prevent_dont_repeat): Change return type.
2049 * breakpoint.c (bpstat_do_actions_1): Update.
2050
2051 2017-01-10 Tom Tromey <tom@tromey.com>
2052
2053 * value.h (scoped_value_mark::~scoped_value_mark): Call
2054 free_to_mark.
2055 (scoped_value_mark::free_to_mark): New method.
2056 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
2057 scoped_value_mark.
2058
2059 2017-01-10 Tom Tromey <tom@tromey.com>
2060
2061 * python/py-value.c (valpy_dereference, valpy_referenced_value)
2062 (valpy_reference_value, valpy_const_value, valpy_get_address)
2063 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
2064 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
2065 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
2066 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2067 scoped_value_mark.
2068 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
2069 * value.h (scoped_value_mark): New class.
2070
2071 2017-01-10 Tom Tromey <tom@tromey.com>
2072
2073 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
2074 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
2075 * psymtab.c (discard_psymtabs_upto): Remove.
2076 (make_cleanup_discard_psymtabs): Remove.
2077 (struct psymtab_state): Remove.
2078
2079 2017-01-10 Tom Tromey <tom@tromey.com>
2080
2081 * record-full.c (record_full_save_cleanups): Remove.
2082 (record_full_save): Use gdb::unlinker.
2083 * gcore.c (do_bfd_delete_cleanup): Remove.
2084 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
2085 cleanups.
2086 * dwarf2read.c (unlink_if_set): Remove.
2087 (write_psymtabs_to_index): Use gdb::unlinker.
2088 * common/gdb_unlinker.h: New file.
2089
2090 2017-01-10 Tom Tromey <tom@tromey.com>
2091
2092 * windows-tdep.c (windows_xfer_shared_library): Update.
2093 * windows-nat.c (windows_make_so): Update.
2094 * utils.h (make_cleanup_bfd_unref): Remove.
2095 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
2096 * symfile.h (symfile_bfd_open)
2097 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
2098 * symfile.c (read_symbols, symbol_file_add)
2099 (separate_debug_file_exists): Update.
2100 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
2101 (generic_load, reread_symbols): Update.
2102 * symfile-mem.c (symbol_file_add_from_memory): Update.
2103 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
2104 (spu_symbol_file_add_from_memory): Update.
2105 * solist.h (struct target_so_ops) <bfd_open>: Return
2106 gdb_bfd_ref_ptr.
2107 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
2108 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
2109 gdb_bfd_ref_ptr.
2110 (solib_map_sections, reload_shared_libraries_1): Update.
2111 * solib-svr4.c (enable_break): Update.
2112 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
2113 * solib-frv.c (enable_break2): Update.
2114 * solib-dsbt.c (enable_break): Update.
2115 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
2116 gdb_bfd_ref_ptr.
2117 (darwin_solib_get_all_image_info_addr_at_init): Update.
2118 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
2119 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
2120 * record-full.c (record_full_save): Update.
2121 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
2122 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2123 * minidebug.c (find_separate_debug_file_in_section): Return
2124 gdb_bfd_ref_ptr.
2125 * machoread.c (macho_add_oso_symfile): Change abfd to
2126 gdb_bfd_ref_ptr.
2127 (macho_symfile_read_all_oso): Update.
2128 (macho_check_dsym): Return gdb_bfd_ref_ptr.
2129 (macho_symfile_read): Update.
2130 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
2131 (jit_bfd_try_read_symtab): Update.
2132 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
2133 (gdb_bfd_openw, gdb_bfd_openr_iovec)
2134 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
2135 gdb_bfd_ref_ptr.
2136 (gdb_bfd_ref_policy): New struct.
2137 (gdb_bfd_ref_ptr): New typedef.
2138 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
2139 (gdb_bfd_openw, gdb_bfd_openr_iovec)
2140 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
2141 gdb_bfd_ref_ptr.
2142 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
2143 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
2144 (gcore_command): Update.
2145 * exec.c (exec_file_attach): Update.
2146 * elfread.c (elf_symfile_read): Update.
2147 * dwarf2read.c (dwarf2_get_dwz_file): Update.
2148 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
2149 (open_and_init_dwo_file): Update.
2150 (open_dwp_file): Return gdb_bfd_ref_ptr.
2151 (open_and_init_dwp_file): Update.
2152 * corelow.c (core_open): Update.
2153 * compile/compile-object-load.c (compile_object_load): Update.
2154 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
2155 * coffread.c (coff_symfile_read): Update.
2156 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
2157 gdb_bfd_ref_ptr. Rename.
2158 (dump_bfd_file, restore_command): Update.
2159 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
2160 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
2161 (find_separate_debug_file_by_buildid): Update.
2162
2163 2017-01-10 Tom Tromey <tom@tromey.com>
2164
2165 * common/gdb_ref_ptr.h: New file.
2166 * python/py-ref.h (struct gdbpy_ref_policy): New.
2167 (gdbpy_ref): Now a typedef.
2168
2169 2017-01-10 Tom Tromey <tom@tromey.com>
2170
2171 * utils.h (make_cleanup_htab_delete): Don't declare.
2172 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
2173 Remove.
2174 * linespec.c (decode_compound_collector): Add constructor,
2175 destructor.
2176 (lookup_prefix_sym): Remove cleanup.
2177 (symtab_collector): Add constructor, destructor.
2178 (collect_symtabs_from_filename): Remove cleanup.
2179 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
2180 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2181 Use htab_up.
2182 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
2183 * dwarf2read.c (dw2_expand_symtabs_matching)
2184 (dw2_map_symbol_filenames, dwarf_decode_macros)
2185 (write_psymtabs_to_index): Use htab_up.
2186 * dwarf2loc.c (func_verify_no_selftailcall)
2187 (call_site_find_chain_1, func_verify_no_selftailcall)
2188 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
2189 std::vector, gdb::unique_xmalloc_ptr.
2190 (call_sitep): Remove typedef.
2191 (dwarf2_locexpr_baton_eval): Remove unused variable.
2192
2193 2017-01-10 Tom Tromey <tom@tromey.com>
2194
2195 * python/python-internal.h (make_cleanup_py_decref)
2196 (make_cleanup_py_xdecref): Don't declare.
2197 * python/py-utils.c (py_decref, make_cleanup_py_decref)
2198 (py_xdecref, make_cleanup_py_xdecref): Remove.
2199
2200 2017-01-10 Tom Tromey <tom@tromey.com>
2201
2202 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
2203 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
2204
2205 2017-01-10 Tom Tromey <tom@tromey.com>
2206
2207 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
2208
2209 2017-01-10 Tom Tromey <tom@tromey.com>
2210
2211 * python/py-utils.c (unicode_to_encoded_string)
2212 (python_string_to_target_string)
2213 (python_string_to_target_python_string)
2214 (python_string_to_host_string, gdbpy_obj_to_string)
2215 (get_addr_from_python): Use gdbpy_ref.
2216
2217 2017-01-10 Tom Tromey <tom@tromey.com>
2218
2219 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
2220 gdbpy_ref.
2221
2222 2017-01-10 Tom Tromey <tom@tromey.com>
2223
2224 * python/python.c (eval_python_command, gdbpy_decode_line)
2225 (gdbpy_run_events, gdbpy_start_type_printers)
2226 (gdbpy_apply_type_printers): Use gdbpy_ref.
2227
2228 2017-01-10 Tom Tromey <tom@tromey.com>
2229
2230 * python/py-param.c (get_doc_string, compute_enum_values): Use
2231 gdbpy_ref.
2232
2233 2017-01-10 Tom Tromey <tom@tromey.com>
2234
2235 * python/py-inferior.c (find_thread_object, build_inferior_list):
2236 Use gdbpy_ref.
2237
2238 2017-01-10 Tom Tromey <tom@tromey.com>
2239
2240 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
2241
2242 2017-01-10 Tom Tromey <tom@tromey.com>
2243
2244 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
2245 gdbpy_ref.
2246
2247 2017-01-10 Tom Tromey <tom@tromey.com>
2248
2249 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
2250 extra incref.
2251 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
2252 Use gdbpy_ref.
2253
2254 2017-01-10 Tom Tromey <tom@tromey.com>
2255
2256 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
2257 gdbpy_ref.
2258
2259 2017-01-10 Tom Tromey <tom@tromey.com>
2260
2261 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
2262 decref results of PyArg_ParseTupleAndKeywords.
2263
2264 2017-01-10 Tom Tromey <tom@tromey.com>
2265
2266 * python/python.c (python_run_simple_file): Use
2267 unique_xmalloc_ptr, gdbpy_ref.
2268
2269 2017-01-10 Tom Tromey <tom@tromey.com>
2270
2271 * python/py-prettyprint.c (print_stack_unless_memory_error)
2272 (print_string_repr, print_children): Use gdbpy_ref.
2273 (dummy_python_frame): New class.
2274 (dummy_python_frame::dummy_python_frame): Rename from
2275 push_dummy_python_frame.
2276 (py_restore_tstate): Remove.
2277
2278 2017-01-10 Tom Tromey <tom@tromey.com>
2279
2280 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
2281
2282 2017-01-10 Tom Tromey <tom@tromey.com>
2283
2284 * python/python.c (ensure_python_env, restore_python_env):
2285 Remove.
2286 * python/python-internal.h (ensure_python_env): Don't declare.
2287 * varobj.h (varobj_ensure_python_env): Don't declare.
2288 * varobj.c (varobj_ensure_python_env): Remove.
2289
2290 2017-01-10 Tom Tromey <tom@tromey.com>
2291
2292 * varobj.c (varobj_value_get_print_value): Use
2293 gdbpy_enter_varobj.
2294
2295 2017-01-10 Tom Tromey <tom@tromey.com>
2296
2297 * python/py-prettyprint.c (print_string_repr, print_children):
2298 Update.
2299 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
2300 of "encoding".
2301 * varobj.c (varobj_value_get_print_value): Update.
2302 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
2303
2304 2017-01-10 Tom Tromey <tom@tromey.com>
2305
2306 * varobj.c (varobj_get_display_hint)
2307 (dynamic_varobj_has_child_method, install_new_value_visualizer)
2308 (varobj_set_visualizer, free_variable): Use
2309 gdbpy_enter_varobj.
2310
2311 2017-01-10 Tom Tromey <tom@tromey.com>
2312
2313 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
2314 (do_finish_initialization): New function. Use gdbpy_ref.
2315 (gdbpy_finish_initialization): Use gdbpy_enter. Call
2316 do_finish_initialization.
2317
2318 2017-01-10 Tom Tromey <tom@tromey.com>
2319
2320 * python/py-param.c (get_set_value, get_show_value): Use
2321 gdbpy_enter, gdbpy_ref.
2322
2323 2017-01-10 Tom Tromey <tom@tromey.com>
2324
2325 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
2326
2327 2017-01-10 Tom Tromey <tom@tromey.com>
2328
2329 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
2330
2331 2017-01-10 Tom Tromey <tom@tromey.com>
2332
2333 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
2334 Use gdbpy_enter_varobj.
2335
2336 2017-01-10 Tom Tromey <tom@tromey.com>
2337
2338 * varobj.c (gdbpy_enter_varobj): New constructor.
2339 * python/python-internal.h (gdbpy_enter_varobj): New class.
2340 * python/py-varobj.c (py_varobj_get_iterator): Use
2341 gdbpy_enter_varobj.
2342
2343 2017-01-10 Tom Tromey <tom@tromey.com>
2344
2345 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
2346 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
2347 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
2348 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
2349 unique_xmalloc_ptr.
2350 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
2351
2352 2017-01-10 Tom Tromey <tom@tromey.com>
2353
2354 * python/py-xmethods.c (invoke_match_method): Use
2355 gdbpy_ref.
2356
2357 2017-01-10 Tom Tromey <tom@tromey.com>
2358
2359 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
2360 gdbpy_enter, gdbpy_ref.
2361
2362 2017-01-10 Tom Tromey <tom@tromey.com>
2363
2364 * python/python.c (python_interactive_command): Use gdbpy_enter.
2365
2366 2017-01-10 Tom Tromey <tom@tromey.com>
2367
2368 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
2369 gdbpy_ref.
2370
2371 2017-01-10 Tom Tromey <tom@tromey.com>
2372
2373 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
2374 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
2375
2376 2017-01-10 Tom Tromey <tom@tromey.com>
2377
2378 * utils.h (htab_deleter): New struct.
2379 (htab_up): New typedef.
2380 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
2381 gdbpy_enter, gdbpy_ref, htab_up.
2382
2383 2017-01-10 Tom Tromey <tom@tromey.com>
2384
2385 * python/py-unwind.c (pending_frame_invalidate): Remove.
2386 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
2387
2388 2017-01-10 Tom Tromey <tom@tromey.com>
2389
2390 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
2391 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
2392
2393 2017-01-10 Tom Tromey <tom@tromey.com>
2394
2395 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
2396
2397 2017-01-10 Tom Tromey <tom@tromey.com>
2398
2399 * python/python.c (gdbpy_eval_from_control_command)
2400 (gdbpy_source_script, gdbpy_run_events)
2401 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
2402 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
2403 gdbpy_enter.
2404
2405 2017-01-10 Tom Tromey <tom@tromey.com>
2406
2407 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
2408
2409 2017-01-10 Tom Tromey <tom@tromey.com>
2410
2411 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
2412
2413 2017-01-10 Tom Tromey <tom@tromey.com>
2414
2415 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
2416 (python_on_inferior_call_pre, python_on_inferior_call_post)
2417 (python_on_memory_change, python_on_register_change)
2418 (python_inferior_exit, python_new_objfile, add_thread_object)
2419 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
2420
2421 2017-01-10 Tom Tromey <tom@tromey.com>
2422
2423 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
2424 (bpfinishpy_handle_exit): Use gdbpy_enter.
2425
2426 2017-01-10 Tom Tromey <tom@tromey.com>
2427
2428 * python/py-cmd.c (cmdpy_destroyer)
2429 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
2430 gdbpy_enter.
2431
2432 2017-01-10 Tom Tromey <tom@tromey.com>
2433
2434 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
2435 gdbpy_enter.
2436 (gdbpy_breakpoint_has_cond): Likewise.
2437
2438 2017-01-10 Tom Tromey <tom@tromey.com>
2439
2440 * python/python.c (gdbpy_enter): New constructor.
2441 (~gdbpy_enter): New destructor.
2442 (restore_python_env, ensure_python_env): Rewrite.
2443 * python/python-internal.h (gdbpy_enter): New class.
2444
2445 2017-01-10 Tom Tromey <tom@tromey.com>
2446
2447 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
2448
2449 2017-01-10 Tom Tromey <tom@tromey.com>
2450
2451 * python/py-value.c (value_has_field, get_field_flag)
2452 (get_field_type, valpy_getitem, convert_value_from_python): Use
2453 gdbpy_ref.
2454
2455 2017-01-10 Tom Tromey <tom@tromey.com>
2456
2457 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
2458 gdbpy_ref.
2459
2460 2017-01-10 Tom Tromey <tom@tromey.com>
2461
2462 * python/py-prettyprint.c (search_pp_list)
2463 (find_pretty_printer_from_objfiles)
2464 (find_pretty_printer_from_progspace)
2465 (find_pretty_printer_from_gdb, find_pretty_printer)
2466 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
2467 gdbpy_ref.
2468
2469 2017-01-10 Tom Tromey <tom@tromey.com>
2470
2471 * python/py-param.c (call_doc_function): Use gdbpy_ref.
2472
2473 2017-01-10 Tom Tromey <tom@tromey.com>
2474
2475 * python/py-linetable.c (build_line_table_tuple_from_pcs)
2476 (ltpy_get_all_source_lines): Use gdbpy_ref.
2477
2478 2017-01-10 Tom Tromey <tom@tromey.com>
2479
2480 * python/py-framefilter.c (extract_sym, extract_value)
2481 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
2482 gdbpy_ref.
2483
2484 2017-01-10 Tom Tromey <tom@tromey.com>
2485
2486 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
2487
2488 2017-01-10 Tom Tromey <tom@tromey.com>
2489
2490 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
2491
2492 2017-01-10 Tom Tromey <tom@tromey.com>
2493
2494 * python/py-function.c (convert_values_to_python, fnpy_init): Use
2495 gdbpy_ref.
2496
2497 2017-01-10 Tom Tromey <tom@tromey.com>
2498
2499 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
2500
2501 2017-01-10 Tom Tromey <tom@tromey.com>
2502
2503 * python/py-type.c (convert_field, make_fielditem, typy_fields)
2504 (typy_range): Use gdbpy_ref.
2505
2506 2017-01-10 Tom Tromey <tom@tromey.com>
2507
2508 * python/py-threadevent.c (create_thread_event_object): Use
2509 gdbpy_ref.
2510 * python/py-stopevent.c (create_stop_event_object): Simplify.
2511 (emit_stop_event): Use gdbpy_ref.
2512 * python/py-signalevent.c (create_signal_event_object): Use
2513 gdbpy_ref.
2514 * python/py-newobjfileevent.c (create_new_objfile_event_object)
2515 (emit_new_objfile_event, create_clear_objfiles_event_object)
2516 (emit_clear_objfiles_event): Use gdbpy_ref.
2517 * python/py-infevents.c (create_inferior_call_event_object)
2518 (create_register_changed_event_object)
2519 (create_memory_changed_event_object, emit_inferior_call_event)
2520 (emit_memory_changed_event, emit_register_changed_event): Use
2521 gdbpy_ref.
2522 * python/py-exitedevent.c (create_exited_event_object)
2523 (emit_exited_event): Use gdbpy_ref.
2524 * python/py-event.h (evpy_emit_event): Remove
2525 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
2526 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
2527 * python/py-continueevent.c (emit_continue_event): Use
2528 gdbpy_ref.
2529 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2530 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
2531 gdbpy_ref.
2532 * python/py-bpevent.c (create_breakpoint_event_object): Use
2533 gdbpy_ref.
2534
2535 2017-01-10 Tom Tromey <tom@tromey.com>
2536
2537 * python/py-ref.h: New file.
2538
2539 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
2540
2541 * cli-out.c (cli_ui_out::do_redirect): Change return type to
2542 void.
2543 * cli-out.h (cli_ui_out::do_redirect): Likewise.
2544 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
2545 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
2546 * ui-out.c (ui_out::redirect): Likewise.
2547 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
2548 * cli/cli-logging.c (set_logging_redirect): Update call site of
2549 ui_out::redirect.
2550 (handle_redirections): Likewise.
2551 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
2552 * top.c (execute_command_to_string): Likewise.
2553 * utils.c (do_ui_out_redirect_pop): Likewise.
2554
2555 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
2556
2557 * stack.c (_initialize_stack): Update "frame" command help message.
2558
2559 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
2560
2561 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
2562
2563 2017-01-06 Yao Qi <yao.qi@linaro.org>
2564
2565 * x86-linux-nat.h: Include gdb_proc_service.h.
2566
2567 2017-01-06 Yao Qi <yao.qi@linaro.org>
2568
2569 * ser-base.h: Include serial.h.
2570
2571 2017-01-06 Yao Qi <yao.qi@linaro.org>
2572
2573 * ppc-linux-tdep.h: Include ppc-tdep.h.
2574
2575 2017-01-06 Yao Qi <yao.qi@linaro.org>
2576
2577 * nat/amd64-linux-siginfo.h: Include signal.h.
2578
2579 2017-01-06 Yao Qi <yao.qi@linaro.org>
2580
2581 * nat/aarch64-linux-hw-point.h: Include break-common.h.
2582
2583 2017-01-06 Yao Qi <yao.qi@linaro.org>
2584
2585 * mi/mi-parse.h: Include mi-cmds.h.
2586
2587 2017-01-06 Yao Qi <yao.qi@linaro.org>
2588
2589 * inf-loop.c: Don't include "target.h".
2590 * inf-loop.h: Include it here.
2591
2592 2017-01-06 Yao Qi <yao.qi@linaro.org>
2593
2594 * dfp.h: Include "dboulest.h" and "expression.h".
2595
2596 2017-01-06 Yao Qi <yao.qi@linaro.org>
2597
2598 * ax-gdb.h: Include "ax.h".
2599
2600 2017-01-06 Yao Qi <yao.qi@linaro.org>
2601
2602 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
2603 with nat/gdb_ptrace.h.
2604
2605 2017-01-05 Yao Qi <yao.qi@linaro.org>
2606
2607 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
2608 new line.
2609 (mips64_fbsd_sigframe_init): Likewise.
2610
2611 2017-01-04 John Baldwin <jhb@FreeBSD.org>
2612
2613 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
2614 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
2615
2616 2017-01-04 John Baldwin <jhb@FreeBSD.org>
2617
2618 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
2619 * NEWS: Mention new FreeBSD/mips native configuration.
2620 * config/mips/fbsd.mh: New file.
2621 * configure.host: Add mips*-*-freebsd*.
2622 * mips-fbsd-nat.c: New file.
2623
2624 2017-01-04 John Baldwin <jhb@FreeBSD.org>
2625
2626 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
2627 (ALLDEPFILES): Add mips-fbsd-tdep.c.
2628 * NEWS: Mention new FreeBSD/mips target.
2629 * configure.tgt: Add mips*-*-freebsd*.
2630 * mips-fbsd-tdep.c: New file.
2631 * mips-fbsd-tdep.h: New file.
2632
2633 2017-01-04 Yao Qi <yao.qi@linaro.org>
2634
2635 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
2636 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
2637
2638 2017-01-01 Joel Brobecker <brobecker@adacore.com>
2639
2640 Update copyright year range in all GDB files.
2641
2642 2017-01-01 Joel Brobecker <brobecker@adacore.com>
2643
2644 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
2645
2646 For older changes see ChangeLog-2016.
2647 \f
2648 Local Variables:
2649 mode: change-log
2650 left-margin: 8
2651 fill-column: 74
2652 version-control: never
2653 coding: utf-8
2654 End:
This page took 0.127213 seconds and 4 git commands to generate.