Share enum arm_breakpoint_kinds
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2016-10-10 Yao Qi <yao.qi@linaro.org>
2
3 * arch/arm.h (enum arm_breakpoint_kinds): New.
4 * arm-tdep.c (arm_remote_breakpoint_from_pc): Use
5 ARM_BP_KIND_THUMB2.
6
7 2016-10-10 Yao Qi <yao.qi@linaro.org>
8
9 * m32c-tdep.c (m32c_gdbarch_init): Rename local 'arch' by
10 'gdbarch'.
11
12 2016-10-10 Yao Qi <yao.qi@linaro.org>
13
14 * v850-tdep.c (v850_breakpoint_from_pc): Use the right
15 breakpoint instruction.
16 (v850_dbtrap_breakpoint_from_pc): Remove.
17 (v850_gdbarch_init): Update.
18
19 2016-10-08 Simon Marchi <simon.marchi@polymtl.ca>
20
21 * ui-out.c (push_level): Remove "id" parameter.
22 (ui_out_begin): Update call.
23
24 2016-10-07 Joel Brobecker <brobecker@adacore.com>
25
26 GDB 7.12 released.
27
28 2016-10-07 Markus Metzger <markus.t.metzger@intel.com>
29
30 * python/python.c (gdbpy_decode_line): Call
31 string_to_event_location_basic instead of new_linespec_location.
32
33 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
34
35 * target.c (target_supports_multi_process): New function, moved
36 from...
37 * target.h (target_supports_multi_process): ... here. Remove
38 macro.
39 * target/target.h (target_supports_multi_process): New prototype.
40
41 2016-10-06 Pedro Alves <palves@redhat.com>
42
43 * cp-valprint.c (vtbl_ptr_name): Write "extern const" instead of
44 EXPORTED_CONST.
45 * stub-termcap.c: Remove __cplusplus checks.
46 * common/common-defs.h [!__cplusplus] (EXTERN_C, EXTERN_C_PUSH,
47 EXTERN_C_POP): Delete.
48 * common/common-exceptions.h (GDB_XCPT_SJMP): Update comments.
49 (GDB_XCPT) [!__cplusplus]: Delete.
50 (throw_exception, throw_exception_sjlj): Update comments.
51 * guile/guile-internal.h (as_a_scm_t_subr) [!__cplusplus]: Delete.
52 * guile/guile.c (extension_language_guile): Write "extern const"
53 instead of EXPORTED_CONST.
54 * features/feature_to_c.sh: Don't emit !__cplusplus code. Write
55 "extern const" instead of EXPORTED_CONST.
56
57 2016-10-06 Doug Evans <dje@google.com>
58
59 * python/py-value.c (valpy_long): Handle unsigned values.
60
61 2016-10-06 Simon Marchi <simon.marchi@ericsson.com>
62
63 * frame.h: Forward-declare struct ui_out.
64
65 2016-10-06 Tom Tromey <tom@tromey.com>
66
67 * MAINTAINERS: Remove Java test maintainer.
68 * varobj.h (java_varobj_ops): Don't declare.
69 * valprint.h (struct value_print_options)
70 <pascal_static_field_print>: Update comment.
71 * utils.c (producer_is_gcc): Remove java reference.
72 * symtab.h (struct general_symbol_info): Remove java references.
73 (SYMBOL_SEARCH_NAME): Likewise.
74 * objfiles.c (allocate_objfile): Update comment.
75 * linespec.c (find_linespec_symbols): Remove java references.
76 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_baseclass_offset): Remove
77 java references.
78 * gdbtypes.h (struct cplus_struct_type) <is_java>: Remove.
79 (TYPE_CPLUS_REALLY_JAVA): Remove.
80 * c-varobj.c (enum vsections): Update comment.
81 * symtab.c (symbol_set_language, symbol_set_names)
82 (symbol_natural_name, symbol_demangled_name)
83 (demangle_for_lookup, symbol_matches_domain)
84 (default_make_symbol_completion_list_break_on_1): Remove java
85 references.
86 (JAVA_PREFIX, JAVA_PREFIX_LEN): Remove.
87 * psymtab.c (match_partial_symbol, psymtab_search_name)
88 (lookup_partial_symbol): Remove java references.
89 * dwarf2read.c (find_slot_in_mapped_hash): Remove java references.
90 (add_partial_symbol, dwarf2_compute_name, dwarf2_physname)
91 (dwarf2_add_member_fn, is_vtable_name, read_structure_type)
92 (process_structure_scope, read_subroutine_type)
93 (read_subrange_type, load_partial_dies)
94 (new_symbol_full, determine_prefix, typename_concat)
95 (dwarf2_name): Remove java references.
96 (set_cu_language): Treat Java as C++.
97 * c-typeprint.c (c_type_print_args): Remove java reference.
98 * defs.h (enum language) <language_java>: Remove.
99 * Makefile.in (SFILES, HFILES_NO_SRCDIR, COMMON_OBS, YYFILES)
100 (YYOBJ, local-maintainer-clean): Don't mention java files.
101 * jv-exp.y, jv-lang.c, jv-lang.h, jv-typeprint.c, jv-valprint.c,
102 jv-varobj.c: Remove.
103
104 2016-10-06 Maciej W. Rozycki <macro@imgtec.com>
105
106 * mips-tdep.c (mips_pseudo_register_type): Make FCRs always
107 32-bit.
108
109 2016-10-06 Maciej W. Rozycki <macro@imgtec.com>
110
111 * mips-tdep.c (mips_pseudo_register_type): Rearrange comments
112 throughout.
113
114 2016-10-06 Markus Metzger <markus.t.metzger@intel.com>
115
116 * stack.c (frame_info): Call val_print_not_saved instead of
117 val_print_unavailable if frame_id check fails.
118
119 2016-10-06 Pedro Alves <palves@redhat.com>
120
121 * jit.c (free_objfile_data): Delete the JIT breakpoint and clear
122 the cached code address.
123
124 2016-10-06 Doug Evans <dje@google.com>
125
126 * features/aarch64-core.xml (cpsr_flags): Elide "type" and specify
127 "end" in all fields.
128 * features/aarch64.c: Regenerate.
129 * features/i386/32bit-mpx.xml (_bndcfgu): Specify type of "preserved"
130 and "enabled" fields. Correct size of "enabled" field.
131 * features/i386/64bit-mpx.xml (_bndcfgu): Specify type of "preserved"
132 and "enabled" fields.
133 * features/i386/i386-avx-mpx-linux.c: Regenerate.
134 * features/i386/i386-avx-mpx.c: Regenerate.
135 * features/i386/i386-avx512-linux.c: Regenerate.
136 * features/i386/i386-avx512.c: Regenerate.
137 * features/i386/i386-mpx-linux.c: Regenerate.
138 * features/i386/i386-mpx.c: Regenerate.
139 * features/arc-arcompact.c: Regenerate.
140 * features/arc-v2.c: Regenerate.
141 * xml-tdesc.c (tdesc_start_field): Require "end" spec. Single bit
142 fields default to "bool" type.
143
144 Revert 2016-03-15 Doug Evans <dje@google.com>
145 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
146 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
147 * features/i386/64bit-core.xml (i386_eflags): Ditto.
148 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
149 * features/i386/x32-core.xml (i386_eflags): Ditto.
150
151 2016-10-05 Tom Tromey <tom@tromey.com>
152
153 PR breakpoints/20653:
154 * location.c (string_to_explicit_location): Use NULL, not '\0'.
155
156 2016-10-05 Tom Tromey <tom@tromey.com>
157
158 PR symtab/20652:
159 * psymtab.c (psymbol_compare): Correctly compare "ginfo.value"
160 fields.
161
162 2016-10-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
163
164 * dwarf2expr.c (dwarf_expr_require_composition): Allow
165 DW_OP_GNU_uninit.
166 (execute_stack_op): Use dwarf_expr_require_composition instead of
167 copying its logic.
168
169 2016-10-05 Anton Kolesov <anton.kolesov@synopsys.com>
170
171 * arc-tdep.c (arc_frame_prev_register): Remove annoying log message.
172
173 2016-10-05 Yao Qi <yao.qi@linaro.org>
174
175 * features/Makefile (WHICH): Add
176 rs6000/powerpc-isa205-32l, rs6000/powerpc-isa205-64l,
177 rs6000/powerpc-isa205-altivec32l, rs6000/powerpc-isa205-altivec64l,
178 rs6000/powerpc-isa205-vsx32l and rs6000/powerpc-isa205-vsx64l.
179 * regformats/rs6000/powerpc-isa205-32l.dat: Regenerated.
180 * regformats/rs6000/powerpc-isa205-64l.dat: Likewise.
181 * regformats/rs6000/powerpc-isa205-altivec32l.dat: Likewise.
182 * regformats/rs6000/powerpc-isa205-altivec64l.dat: Likewise.
183 * regformats/rs6000/powerpc-isa205-vsx32l.dat: Likewise.
184 * regformats/rs6000/powerpc-isa205-vsx64l.dat: Likewise.
185
186 2016-10-05 Yao Qi <yao.qi@linaro.org>
187
188 * features/Makefile (XMLTOC): Add s390-tevx-linux64.xml,
189 s390-vx-linux64.xml, s390x-tevx-linux64.xml and
190 s390x-vx-linux64.xml.
191
192 2016-10-05 Yao Qi <yao.qi@linaro.org>
193
194 * features/Makefile: Remove i386/*-expedite. Add i386-expedite,
195 amd64-expedite, and x32-expedite.
196
197 2016-10-05 Terry Guo <terry.guo@arm.com>
198 Yao Qi <yao.qi@linaro.org>
199
200 * arm-tdep.c: Adjust includes.
201 * features/Makefile (WHICH): Add "arm/" directory to arm
202 target descriptions.
203 (XMLTOC): Likewise.
204 (arm/arm-with-iwmmxt.dat): Adjust the path for
205 dependencies.
206 * features/arm-core.xml: Moved to ...
207 * features/arm/arm-core.xml: ... it.
208 * features/arm-fpa.xml: Moved to ...
209 * features/arm/arm-fpa.xml: ... it.
210 * features/arm-m-profile.xml: Moved to ...
211 * features/arm/arm-m-profile.xm: ... it.
212 * features/arm-vfpv2.xml: Moved to ...
213 * features/arm/arm-vfpv2.xm: ... it.
214 * features/arm-vfpv3.xml: Moved to ...
215 * features/arm/arm-vfpv3.xml: ... it.
216 * features/arm-with-iwmmxt.c: Moved to ...
217 * features/arm/arm-with-iwmmxt.c: ... it.
218 * features/arm-with-iwmmxt.xml: Moved to ...
219 * features/arm/arm-with-iwmmxt.xml: ... it.
220 * features/arm-with-m-fpa-layout.c: Moved to ...
221 * features/arm/arm-with-m-fpa-layout.c: ... it.
222 * features/arm-with-m-fpa-layout.xml: Moved to ...
223 * features/arm/arm-with-m-fpa-layout.xml: ... it.
224 * features/arm-with-m-vfp-d16.c: Moved to ...
225 * features/arm/arm-with-m-vfp-d16.c: ... it.
226 * features/arm-with-m-vfp-d16.xml: Moved to ...
227 * features/arm/arm-with-m-vfp-d16.xml: ... it.
228 * features/arm-with-m.c: Moved to ...
229 * features/arm/arm-with-m.c: ... it.
230 * features/arm-with-m.xml: Moved to ...
231 * features/arm/arm-with-m.xm: ... it.
232 * features/arm-with-neon.c: Moved to ...
233 * features/arm/arm-with-neon.c: ... it.
234 * features/arm-with-neon.xml: Moved to ...
235 * features/arm/arm-with-neon.xml: ... it.
236 * features/arm-with-vfpv2.c: Moved to ...
237 * features/arm/arm-with-vfpv2.c: ... it.
238 * features/arm-with-vfpv2.xml: Moved to ...
239 * features/arm/arm-with-vfpv2.xml: ... it.
240 * features/arm-with-vfpv3.c: Moved to ...
241 * features/arm/arm-with-vfpv3.c: ... it.
242 * features/arm-with-vfpv3.xml: Moved to ...
243 * features/arm/arm-with-vfpv3.xml: ... it.
244 * features/xscale-iwmmxt.xml: Moved to ...
245 * features/arm/xscale-iwmmxt.xml: ... it.
246
247 2016-10-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
248 2016-10-03 Simon Marchi <simon.marchi@ericsson.com>
249
250 PR gdb/20487
251 * NEWS: Mention new frame field of =thread-selected event.
252 * cli/cli-decode.c (add_cmd): Initialize c->suppress_notification.
253 (add_com_suppress_notification): New function definition.
254 (cmd_func): Set and restore the suppress_notification flag.
255 * cli/cli-deicode.h (struct cmd_list_element)
256 <suppress_notification>: New field.
257 * cli/cli-interp.c (cli_suppress_notification): New global variable.
258 (cli_on_user_selected_context_changed): New function.
259 (_initialize_cli_interp): Attach to user_selected_context_changed
260 observer.
261 * command.h (struct cli_suppress_notification): New structure.
262 (cli_suppress_notification): New global variable declaration.
263 (add_com_suppress_notification): New function declaration.
264 * defs.h (enum user_selected_what_flag): New enum.
265 (user_selected_what): New enum flag type.
266 * frame.h (print_stack_frame_to_uiout): New function declaration.
267 * gdbthread.h (print_selected_thread_frame): New function declaration.
268 * inferior.c (print_selected_inferior): New function definition.
269 (inferior_command): Remove printing of inferior/thread/frame switch
270 notifications, notify user_selected_context_changed observer.
271 * inferior.h (print_selected_inferior): New function declaration.
272 * mi/mi-cmds.c (struct mi_cmd): Add user_selected_context
273 suppression to stack-select-frame and thread-select commands.
274 * mi/mi-interp.c (struct mi_suppress_notification)
275 <user_selected_context>: Initialize.
276 (mi_user_selected_context_changed): New function definition.
277 (_initialize_mi_interp): Attach to user_selected_context_changed.
278 * mi/mi-main.c (mi_cmd_thread_select): Print thread selection reply.
279 (mi_execute_command): Handle notification suppression. Notify
280 user_selected_context_changed observer on thread change instead of printing
281 event directly. Don't send it if command already sends the notification.
282 (command_notifies_uscc_observer): New function.
283 (mi_cmd_execute): Don't handle notification suppression.
284 * mi/mi-main.h (struct mi_suppress_notification)
285 <user_selected_context>: New field.
286 * stack.c (print_stack_frame_to_uiout): New function definition.
287 (select_frame_command): Notify user_selected_context_changed
288 observer.
289 (frame_command): Call print_selected_thread_frame if there's no frame
290 change or notify user_selected_context_changed observer if there is.
291 (up_command): Notify user_selected_context_changed observer.
292 (down_command): Likewise.
293 (_initialize_stack): Suppress user_selected_context notification for
294 command select-frame.
295 * thread.c (thread_command): Notify
296 user_selected_context_changed if the thread has changed, print
297 thread info directly if it hasn't.
298 (do_captured_thread_select): Do not print thread switch event.
299 (print_selected_thread_frame): New function definition.
300 * tui/tui-interp.c (tui_on_user_selected_context_changed):
301 New function definition.
302 (_initialize_tui_interp): Attach to user_selected_context_changed
303 observer.
304
305 2016-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
306
307 PR gdb/20609 - attach of JIT-debug-enabled inf 7.11.1 regression
308 * exec.c (exec_file_locate_attach): Add parameter defer_bp_reset.
309 Use it.
310 * gdbcore.h (exec_file_locate_attach): Add parameter defer_bp_reset.
311 * infcmd.c (setup_inferior): Update caller.
312 * remote.c (remote_add_inferior): Likewise.
313
314 2016-09-28 Pedro Alves <palves@redhat.com>
315
316 * infcall.c (run_inferior_call): Remove input from the event
317 loop while running the infcall.
318
319 2016-09-27 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
320
321 * arm-tdep.c (arm_m_addr_is_magic): New function.
322 (arm_addr_bits_remove): Call arm_m_addr_is_magic.
323 (arm_m_exception_unwind_sniffer): Likewise.
324
325 2016-09-23 Jon Turney <jon.turney@dronecode.org.uk>
326
327 * windows-nat.c (windows_delete_thread): Adjusting call to
328 target_mourn_inferior to include ptid_t argument.
329
330 2016-09-23 Tom Tromey <tom@tromey.com>
331
332 * utils.h (make_cleanup_dyn_string_delete): Remove declaration.
333 * utils.c: Don't include dyn-string.h.
334 (do_dyn_string_delete, make_cleanup_dyn_string_delete): Remove.
335 * cli/cli-cmds.c: Include <string>. Don't include dyn-string.h.
336 (argv_to_string): Rename. Change return type to std::string.
337 (alias_command): Use std::string.
338
339 2016-09-23 Tom Tromey <tom@tromey.com>
340
341 * objfiles.c: Include <vector>.
342 (objfile_relocate): Use std::vector.
343
344 2016-09-23 Tom Tromey <tom@tromey.com>
345
346 * rust-lang.c: Include <string> and <vector>.
347 (rust_evaluate_funcall): Use std::vector, std::string.
348 (rust_evaluate_subexp): Use std::string.
349 (rust_lookup_symbol_nonlocal): Use std::string.
350
351 2016-09-23 Tom Tromey <tom@tromey.com>
352
353 * cp-namespace.c: Include <string>.
354 (cp_search_static_and_baseclasses)
355 (cp_lookup_symbol_imports_or_template, find_symbol_in_baseclass):
356 Use std::string.
357
358 2016-09-23 Tom Tromey <tom@tromey.com>
359
360 * break-catch-sig.c: Include <string>.
361 (signal_catchpoint_print_one): Use std::string.
362
363 2016-09-23 Tom Tromey <tom@tromey.com>
364
365 * utils.c (struct restore_ui_out_closure): Remove.
366 * objfiles.h (terminate_minimal_symbol_table): Don't declare.
367
368 2016-09-23 Yao Qi <yao.qi@linaro.org>
369
370 * nat/linux-osdata.c (linux_xfer_osdata_threads): Replace
371 sprintf with xsnprintf.
372 (linux_xfer_osdata_fds): Likewise.
373
374 2016-09-23 Pedro Alves <palves@redhat.com>
375
376 * Makefile.in (SFILES): Add common/new-op.c.
377 (COMMON_OBS): Add common/new-op.o.
378 (new-op.o): New rule.
379 * common/common-exceptions.h: Include <new>.
380 (struct gdb_quit_bad_alloc): New type.
381 * common/new-op.c: New file.
382
383 2016-09-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
384
385 * rs6000-tdep.c (ppc_process_record_op31): Fix
386 regcache_raw_read_unsigned call using the correct parameter type.
387
388 2016-09-22 Anton Kolesov <anton.kolesov@synopsys.com>
389
390 * arc-tdep.c: Fix ARI warning for printf(%p).
391
392 2016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
393
394 * MAINTAINERS (Write After Approval): Add Anton Kolesov.
395
396 2016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
397
398 * Makefile.in (ALL_TARGET_OBS): Add arc-tdep.o.
399 (HFILES_NO_SRCDIR): Add arc-tdep.h.
400 (ALLDEPFILES): Add arc-tdep.c.
401 * NEWS: Mention new ARC port.
402 * configure.tgt: Add ARC.
403 * arc-tdep.c: New file.
404 * arc-tdep.h: New file.
405 * features/Makefile (XMLTOC): Add arc-v2.xml and arc-arcompact.xml.
406 * features/arc-v2.xml: New file.
407 * features/arc-v2.c: New file (generated).
408 * features/arc-arcompact.xml: New file.
409 * features/arc-arcompact.c: New file (generated).
410
411 2016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
412
413 * rs6000-tdep.c (ppc_process_record_op63): Fix return of instruction
414 handlers.
415
416 2016-09-21 Tom Tromey <tom@tromey.com>
417
418 PR gdb/20604:
419 * top.h (quit_force): Update.
420 * top.c (quit_force): Changed type of first argument. Don't
421 evaluate expression. Pass NULL to kill_or_detach.
422 * cli/cli-cmds.c (quit_command): Evaluate "args".
423
424 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
425
426 * .gitignore: Ignore more files.
427 * data-directory/.gitignore: Likewise.
428
429 2016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
430
431 * rs6000-tdep.c (PPC_DQ): New macro.
432 (ppc_process_record_op4): Add Power ISA 3.0 instructions.
433 (ppc_process_record_op19): Likewise.
434 (ppc_process_record_op31): Likewise.
435 (ppc_process_record_op59): Likewise.
436 (ppc_process_record_op60): Likewise.
437 (ppc_process_record_op63): Likewise.
438 (ppc_process_record): Likewise.
439 (ppc_process_record_op61): New function.
440
441 2016-09-21 Yao Qi <yao.qi@linaro.org>
442
443 * aarch32-linux-nat.c (aarch32_gp_regcache_collect): Keep
444 bits 20 to 23.
445
446 2016-09-20 Tom Tromey <tom@tromey.com>
447
448 * python/py-value.c (convert_value_from_python): Make PyInt_Check
449 conditional on Python 2.
450 * python/py-arch.c (archpy_disassemble): Make PyInt_Check
451 conditional on Python 2.
452
453 2016-09-20 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
454
455 * rs6000-tdep.c (ppc_process_record_op31): Fix record of Store String
456 Word instructions.
457
458 2016-09-20 Sergio Durigan Junior <sergiodj@redhat.com>
459
460 * fork-inferior.c (startup_inferior): Pass 'event_ptid' instead of
461 'resume_ptid' to 'target_mourn_inferior'. Fix regression
462 introduced by my last commit.
463
464 2016-09-19 Pedro Alves <palves@redhat.com>
465
466 * common/gdb_locale.h [!ENABLE_NLS] (gettext, dgettext, dcgettext,
467 textdomain, bindtextdomain): Delete macros.
468 * main.c (captured_main) [!ENABLE_NLS]: Skip bintextdomain and
469 textdomain calls.
470
471 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
472
473 * darwin-nat.c (darwin_kill_inferior): Adjusting call to
474 target_mourn_inferior to include ptid_t argument.
475 * fork-child.c (startup_inferior): Likewise.
476 * gnu-nat.c (gnu_kill_inferior): Likewise.
477 * inf-ptrace.c (inf_ptrace_kill): Likewise.
478 * infrun.c (handle_inferior_event_1): Likewise.
479 * linux-nat.c (linux_nat_attach): Likewise.
480 (linux_nat_kill): Likewise.
481 * nto-procfs.c (interrupt_query): Likewise.
482 (procfs_interrupt): Likewise.
483 (procfs_kill_inferior): Likewise.
484 * procfs.c (procfs_kill_inferior): Likewise.
485 * record.c (record_mourn_inferior): Likewise.
486 * remote-sim.c (gdbsim_kill): Likewise.
487 * remote.c (remote_detach_1): Likewise.
488 (remote_kill): Likewise.
489 * target.c (target_mourn_inferior): Change declaration to accept
490 new ptid_t argument; use gdb_assert on it.
491 * target.h (target_mourn_inferior): Move function prototype from
492 here...
493 * target/target.h (target_mourn_inferior): ... to here. Adjust it
494 to accept new ptid_t argument.
495 * windows-nat.c (get_windows_debug_event): Adjusting call to
496 target_mourn_inferior to include ptid_t argument.
497
498 2016-09-18 Pedro Alves <palves@redhat.com>
499
500 * s390-linux-nat.c: Include <algorithm>.
501
502 2016-09-18 Pedro Alves <palves@redhat.com>
503
504 * breakpoint.c (hardware_watchpoint_inserted_in_range): Explicitly
505 specify the std:min/std::max specialization.
506 * exec.c (section_table_read_available_memory): Likewise.
507 * remote.c (remote_read_qxfer): Likewise.
508 * target.c (simple_verify_memory): Likewise.
509
510 2016-09-16 Simon Marchi <simark@simark.ca>
511
512 * infrun.c (restore_current_uiout_cleanup): Move to ui-out.c.
513 (print_stop_event): Use make_cleanup_restore_current_uiout.
514 * python/python.c (execute_gdb_command): Likewise.
515 * ui-out.c (restore_current_uiout_cleanup): Move from infrun.c.
516 (make_cleanup_restore_current_uiout): New function definition.
517 * ui-out.h (make_cleanup_restore_current_uiout): New function
518 declaration.
519 * utils.c (do_restore_ui_out): Remove.
520 (make_cleanup_restore_ui_out): Remove.
521 * utils.h (make_cleanup_restore_ui_out): Remove.
522
523 2016-09-16 Pedro Alves <palves@redhat.com>
524
525 * defs.h (min, max): Delete.
526 * aarch64-tdep.c: Include <algorithm> and use std::min and
527 std::max throughout.
528 * aarch64-tdep.c: Likewise.
529 * alpha-tdep.c: Likewise.
530 * amd64-tdep.c: Likewise.
531 * amd64-windows-tdep.c: Likewise.
532 * arm-tdep.c: Likewise.
533 * avr-tdep.c: Likewise.
534 * breakpoint.c: Likewise.
535 * btrace.c: Likewise.
536 * ctf.c: Likewise.
537 * disasm.c: Likewise.
538 * doublest.c: Likewise.
539 * dwarf2loc.c: Likewise.
540 * dwarf2read.c: Likewise.
541 * environ.c: Likewise.
542 * exec.c: Likewise.
543 * f-exp.y: Likewise.
544 * findcmd.c: Likewise.
545 * ft32-tdep.c: Likewise.
546 * gcore.c: Likewise.
547 * hppa-tdep.c: Likewise.
548 * i386-darwin-tdep.c: Likewise.
549 * i386-tdep.c: Likewise.
550 * linux-thread-db.c: Likewise.
551 * lm32-tdep.c: Likewise.
552 * m32r-tdep.c: Likewise.
553 * m88k-tdep.c: Likewise.
554 * memrange.c: Likewise.
555 * minidebug.c: Likewise.
556 * mips-tdep.c: Likewise.
557 * moxie-tdep.c: Likewise.
558 * nds32-tdep.c: Likewise.
559 * nios2-tdep.c: Likewise.
560 * nto-procfs.c: Likewise.
561 * parse.c: Likewise.
562 * ppc-sysv-tdep.c: Likewise.
563 * probe.c: Likewise.
564 * record-btrace.c: Likewise.
565 * remote.c: Likewise.
566 * rs6000-tdep.c: Likewise.
567 * rx-tdep.c: Likewise.
568 * s390-linux-nat.c: Likewise.
569 * s390-linux-tdep.c: Likewise.
570 * ser-tcp.c: Likewise.
571 * sh-tdep.c: Likewise.
572 * sh64-tdep.c: Likewise.
573 * source.c: Likewise.
574 * sparc-tdep.c: Likewise.
575 * symfile.c: Likewise.
576 * target-memory.c: Likewise.
577 * target.c: Likewise.
578 * tic6x-tdep.c: Likewise.
579 * tilegx-tdep.c: Likewise.
580 * tracefile-tfile.c: Likewise.
581 * tracepoint.c: Likewise.
582 * valprint.c: Likewise.
583 * value.c: Likewise.
584 * xtensa-tdep.c: Likewise.
585 * cli/cli-cmds.c: Likewise.
586 * compile/compile-object-load.c: Likewise.
587
588 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
589
590 * s390-linux-nat.c (PER_BIT, PER_EVENT_BRANCH, PER_EVENT_IFETCH)
591 (PER_EVENT_STORE, PER_EVENT_NULLIFICATION)
592 (PER_CONTROL_BRANCH_ADDRESS, PER_CONTROL_SUSPENSION)
593 (PER_CONTROL_ALTERATION): New macros.
594 (struct s390_debug_reg_state) <break_areas>: New member.
595 (s390_forget_process): Free break_areas as well.
596 (s390_linux_new_fork): Copy break_areas as well.
597 (s390_prepare_to_resume): Install hardware breakpoints.
598 (s390_can_use_hw_breakpoint): Indicate support for hardware
599 breakpoints.
600 (s390_insert_hw_breakpoint, s390_remove_hw_breakpoint): New
601 linux_nat target methods.
602 (_initialize_s390_nat): Register them.
603
604 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
605
606 * nat/linux-nat.h (lwp_is_stepping): New declaration.
607 * linux-nat.c (lwp_is_stepping): New function.
608
609 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
610
611 * s390-linux-nat.c (gdbcmd.h): New include.
612 (s390_show_debug_regs): New function.
613 (s390_stopped_by_watchpoint): Call it, if show_debug_regs is set.
614 (s390_prepare_to_resume): Likewise.
615 (_initialize_s390_nat): Register the command "maint set
616 show-debug-regs".
617
618 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
619
620 * s390-linux-nat.c (watch_areas): Remove variable. Replace by a
621 member of...
622 (struct s390_debug_reg_state): ...this. New struct.
623 (struct s390_process_info): New struct.
624 (s390_process_list): New variable.
625 (s390_find_process_pid, s390_add_process, s390_process_info_get)
626 (s390_get_debug_reg_state): New functions.
627 (s390_stopped_by_watchpoint): Now access the watch_areas VEC via
628 s390_get_debug_reg_state.
629 (s390_prepare_to_resume): Likewise.
630 (s390_insert_watchpoint): Likewise.
631 (s390_remove_watchpoint): Likewise.
632 (s390_forget_process, s390_linux_new_fork): New linux_nat target
633 methods.
634 (_initialize_s390_nat): Register them.
635
636 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
637
638 * s390-linux-nat.c (s390_watch_area): New typedef. Define a VEC.
639 (watch_base): Remove variable.
640 (watch_areas): New variable.
641 (s390_stopped_by_watchpoint): Transform operations on the
642 watch_base list to equivalent operations on the watch_areas VEC.
643 (s390_prepare_to_resume): Likewise.
644 (s390_insert_watchpoint): Likewise.
645 (s390_remove_watchpoint): Likewise.
646
647 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
648
649 * s390-linux-nat.c (s390_prepare_to_resume): Use advertised lwp
650 functions instead of accessing lwp_info structure members.
651 (s390_mark_per_info_changed): New function.
652 (s390_new_thread): Use it.
653 (s390_refresh_per_info_cb): New function.
654 (s390_refresh_per_info): Remove parameter. Refresh all lwps of
655 the current process.
656 (s390_insert_watchpoint): Adjust call to s390_refresh_per_info.
657 (s390_remove_watchpoint): Likewise.
658
659 2016-09-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
660
661 * elfread.c (auxv.h): New include.
662 (elf_gnu_ifunc_resolve_addr): Pass HWCAP to ifunc resolver.
663
664 2016-09-08 Tom Tromey <tom@tromey.com>
665
666 * remote.c (remote_notif_stop_ack, remote_wait_as)
667 (show_remote_cmd): Remove unneeded casts.
668
669 2016-09-06 Pedro Alves <palves@redhat.com>
670
671 * top.c (wait_sync_command_done): Don't assume current_ui doesn't
672 change across events. Restore the current UI before returning.
673 (gdb_readline_wrapper): Restore the current UI before returning.
674
675 2016-09-06 Pedro Alves <palves@redhat.com>
676
677 * event-top.c (restore_ui_cleanup): Now static.
678 (make_cleanup_restore_current_ui): New function.
679 (switch_thru_all_uis_init): Use it.
680 * infcall.c (call_thread_fsm_should_stop): Use it.
681 * infrun.c (fetch_inferior_event): Use it.
682 * top.c (new_ui_command): Use it.
683 * top.h (restore_ui_cleanup): Delete declaration.
684 (make_cleanup_restore_current_ui): New declaration.
685
686 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
687
688 * i386-tdep.c (i386_floatformat_for_type): New function.
689 (i386_gdbarch_init): Install it.
690 * ppc-linux-tdep.c (ppc_floatformat_for_type): New function.
691 (ppc_linux_init_abi): Install it.
692
693 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
694
695 * gdbarch.sh (floatformat_for_type): New gdbarch callback.
696 * gdbarch.h, gdbarch.c: Re-generate.
697 * arch-utils.h (default_floatformat_for_type): New prototype.
698 * arch-utils.c (default_floatformat_for_type): New function.
699
700 * doublest.c (floatformat_from_length): Remove.
701 (floatformat_from_type): Assume TYPE_FLOATFORMAT is non-NULL.
702 * gdbtypes.c (verify_floatformat): Require non-NULL format.
703
704 * dwarf2read.c (dwarf2_init_float_type): New function.
705 (read_base_type): Use it.
706 * stabsread.c (dbx_init_float_type): New function.
707 (read_sun_floating_type): Use it.
708 (read_range_type): Likewise.
709
710 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
711
712 * ada-lang.c (ada_language_arch_info): Use gdbarch-provided
713 platform ABI floating-point formats for built-in types.
714 * d-lang.c (build_d_types): Likewise.
715 * f-lang.c (build_fortran_types): Likewise.
716 * m2-lang.c (build_m2_types): Likewise.
717 * mdebugread.c (basic_type): Likewise.
718
719 * go-lang.c (build_go_types): Use IEEE floating-point formats
720 for language built-in types as mandanted by the language.
721 * jv-lang.c (build_java_types): Likewise.
722 * rust-lang.c (rust_language_arch_info): Likewise.
723 * stabsread.c (rs6000_builtin_type): Likewise.
724
725 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
726
727 * gdbtypes.c (init_type): Remove "char" special case.
728 (arch_integer_type): Likewise.
729 (gdbtypes_post_init): Set TYPE_NOSIGN for "char" type.
730 (objfile_type): Likewise.
731 * mdebugread.c (basic_type): Likewise.
732 * stabsread.c (rs6000_builtin_type): Likewise.
733
734 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
735
736 * gdbtypes.h (enum type_flag_value): Remove.
737 Remove references to TYPE_FLAG_... in comments throughout.
738 * gdbtypes.c (recursive_dump_type): Do not print TYPE_FLAG_...
739 flags, print the corresponding TYPE_... access macro names.
740 Remove references to TYPE_FLAG_... in comments throughout.
741 * infcall.c: Remove references to TYPE_FLAG_... in comments.
742 * valprint.c: Likewise.
743 * gdb-gdb.py (class TypeFlag): No longer consider TYPE_FLAG_...
744 values, only TYPE_INSTANCE_FLAG_... values.
745 (class TypeFlagsPrinter): Likewise.
746
747 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
748
749 * gdbtypes.h (init_type): Remove FLAGS argument. Move OBJFILE
750 argument to first position.
751 (init_integer_type): New prototype.
752 (init_character_type): Likewise.
753 (init_boolean_type): Likewise.
754 (init_float_type): Likewise.
755 (init_decfloat_type): Likewise.
756 (init_complex_type): Likewise.
757 (init_pointer_type): Likewise.
758 * gdbtypes.c (verify_floatflormat): New function.
759 (init_type): Remove FLAGS argument and processing. Move OBJFILE
760 argument to first position.
761 (init_integer_type): New function.
762 (init_character_type): Likewise.
763 (init_boolean_type): Likewise.
764 (init_float_type): Likewise.
765 (init_decfloat_type): Likewise.
766 (init_complex_type): Likewise.
767 (init_pointer_type): Likewise.
768 (arch_float_type): Use verify_floatflormat.
769 (objfile_type): Use init_..._type helpers instead of calling
770 init_type directly.
771 * dwarf2read.c (fixup_go_packaging): Update to changed init_type
772 prototype.
773 (read_namespace_type): Likewise.
774 (read_module_type): Likewise.
775 (read_typedef): Likewise.
776 (read_unspecified_type): Likewise.
777 (build_error_marker_type): Likewise.
778 (read_base_type): Use init_..._type helpers.
779 * mdebugread.c (basic_type): Use init_..._type helpers.
780 (parse_type): Update to changed init_type prototype.
781 (cross_ref): Likewise.
782 * stabsread.c (rs6000_builtin_type): Use init_..._type helpers.
783 (read_sun_builtin_type): Likewise.
784 (read_sun_floating_type): Likewise.
785 (read_range_type): Likewise. Also update to changed init_type
786 prototype.
787
788 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
789
790 * gdbtypes.h (arch_decfloat_type): New prototype.
791 (arch_pointer_type): Likewise.
792 * gdbtypes.c (arch_decfloat_type): New function.
793 (arch_pointer_type): Likewise.
794 (gdbtypes_post_init): Use arch_decfloat_type.
795 * avr-tdep.c (avr_gdbarch_init): Use arch_pointer_type.
796 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
797 * m32c-tdep.c (make_types): Likewise.
798 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
799
800 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
801
802 * gdbtypes.c (set_type_code): New function.
803 (init_type, arch_type): Use it.
804
805 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
806
807 * ada-lang.c (ada_language_arch_info): Use gdbarch_long_double_bit
808 instead of gdbarch_double_bit for "long_long_float".
809
810 2016-09-05 Pedro Alves <palves@redhat.com>
811
812 * NEWS: Mention that a C++ compiler is now required.
813 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
814 (COMPILE.pre, CC_LD): Use CXX directly.
815 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
816 * acinclude.m4: Don't include build-with-cxx.m4.
817 * build-with-cxx.m4: Delete file.
818 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
819 * warning.m4: Assume $enable_build_with_cxx is yes.
820 * configure: Regenerate.
821
822 2016-09-05 Pedro Alves <palves@redhat.com>
823
824 PR backtrace/19927
825 * frame.c (get_frame_id): Compute the frame id if not computed
826 yet.
827 (unwind_to_current_frame): Delete.
828 (get_current_frame): Use get_prev_frame_always_1 to get the
829 current frame and assert that that always succeeds.
830 (get_prev_frame_if_no_cycle): Skip cycle detection if returning
831 the current frame.
832
833 2016-09-02 Tom Tromey <tom@tromey.com>
834
835 PR gdb/11616:
836 * dwarf2read.c (decode_locdesc): Handle DW_OP_form_tls_address.
837 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Handle
838 DW_OP_form_tls_address.
839 (locexpr_describe_location_piece): Likewise.
840 * dwarf2expr.h (struct dwarf_expr_context_funcs): Update comment.
841 * dwarf2expr.c (execute_stack_op): Handle DW_OP_form_tls_address.
842 (ctx_no_get_tls_address): Mention DW_OP_form_tls_address.
843 * compile/compile-loc2c.c (struct insn_info): Update comment.
844 (compute_stack_depth_worker): Handle DW_OP_form_tls_address.
845
846 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
847
848 * target.c (target_wait): Mention that the function's prototype
849 can be found at target/target.h.
850 * target.h (target_wait): Move prototype from here...
851 * target/target.h (target_wait): ... to here.
852
853 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
854
855 * fork-child.c (startup_inferior): Replace calls to target_resume
856 by target_continue{,_no_signal}, depending on the case.
857 * linux-nat.c (cleanup_target_stop): Call
858 target_continue_no_signal instead of target_resume.
859 * procfs.c (procfs_wait): Likewise.
860 * target.c (target_continue): New function.
861 * target/target.h (target_continue): New prototype.
862
863 2016-08-31 Yao Qi <yao.qi@linaro.org>
864
865 * record-full.c (record_full_insert_breakpoint): Fix typo.
866
867 2016-08-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
868
869 * thread.c (tp_array_compar): Insert missing parentheses.
870
871 2016-08-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
872
873 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Replace
874 designated initializer list by plain initializer list, for C++
875 compliance.
876
877 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
878
879 * aarch64-linux-nat.c (ps_get_thread_area): Remove const from
880 struct ps_prochandle.
881 * amd64-linux-nat.c (ps_get_thread_area): Likewise.
882 * arm-linux-nat.c (ps_get_thread_area): Likewise.
883 * gdb_proc_service.h (ps_get_thread_area): Likewise.
884 * i386-linux-nat.c (ps_get_thread_area): Likewise.
885 * m68klinux-nat.c (ps_get_thread_area): Likewise.
886 * mips-linux-nat.c (ps_get_thread_area): Likewise.
887 * nat/aarch64-linux.c (aarch64_ps_get_thread_area): Likewise.
888 * nat/aarch64-linux.h (aarch64_ps_get_thread_area): Likewise.
889 * xtensa-linux-nat.c (ps_get_thread_area): Likewise.
890
891 2016-08-24 Simon Marchi <simon.marchi@ericsson.com>
892
893 * infcmd.c (set_inferior_io_terminal): Set inferior terminal to
894 NULL if terminal_name is an empty string.
895 (_initialize_infcmd): Make the argument of "set inferior-tty"
896 optional, mention it in the help doc.
897
898 2016-08-24 Carl Love <cel@us.ibm.com>
899
900 * rs6000-tdep.c (rs6000_gdbarch_init): Remove call
901 set_gdbarch_deprecated_fp_regnum() architecture
902 initialization function.
903
904 2016-08-23 Simon Marchi <simon.marchi@ericsson.com>
905
906 * stack.c (parse_frame_specification): Fix typo in comment.
907
908 2016-08-23 Pedro Alves <palves@redhat.com>
909
910 PR gdb/20494
911 * inflow.c (our_terminal_info, initial_gdb_ttystate): Update
912 comments.
913 (enum gdb_has_a_terminal_flag_enum, gdb_has_a_terminal_flag):
914 Delete.
915 (set_initial_gdb_ttystate): Record our_terminal_info here too,
916 instead of ...
917 (gdb_has_a_terminal): ... here. Reimplement in terms of
918 initial_gdb_ttystate. Make static.
919 * terminal.h (gdb_has_a_terminal): Delete declaration.
920 (set_initial_gdb_ttystate): Add comment.
921 * top.c (show_interactive_mode): Use input_interactive_p instead
922 of gdb_has_a_terminal.
923
924 2016-08-22 Pedro Alves <palves@redhat.com>
925
926 PR gdb/20505
927 * linux-tdep.c (linux_vsyscall_range_raw): For core inferiors,
928 find the vDSO's start address with AT_SYSINFO_EHDR too, and
929 determine the vDSO's size by finding the PT_LOAD segment that
930 matches AT_SYSINFO_EHDR.
931
932 2016-08-19 Yao Qi <yao.qi@linaro.org>
933
934 * aarch64-tdep.c (aarch64_analyze_prologue): Handle register
935 based STP instruction.
936
937 2016-08-19 Yao Qi <yao.qi@linaro.org>
938
939 * completer.c (linespec_location_completer): Make file_to_match
940 null-terminated.
941
942 2016-08-19 Pedro Alves <palves@redhat.com>
943
944 * amd64-tdep.c (amd64_relocate_instruction) <callq>: Handle return
945 addresses over 0x7fffffff.
946
947 2016-08-18 Carl Love <cel@us.ibm.com>
948
949 * MAINTANERS Write After Approval): Add "Carl Love".
950
951 2016-08-18 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
952
953 * rs6000-tdep.c (ppc_process_record_op31): Handle HTM instructions.
954
955 2016-08-17 Simon Marchi <simon.marchi@ericsson.com>
956
957 * inferior.c (remove_inferior_command): Fix error message.
958
959 2016-08-17 Simon Marchi <simon.marchi@ericsson.com>
960
961 * inferior.c (exit_inferior_1): Remove comment.
962
963 2016-08-15 Matthew Wahab <matthew.wahab@arm.com>
964
965 PR gdb/20457
966 * gdb_proc_service.h: Add an include of gregset.h
967 [!HAVE_PROC_SERVICE_H]: Remove the include of gregset.h.
968
969 2016-08-15 Yao Qi <yao.qi@linaro.org>
970
971 * location.c (explicit_location_lex_one): Compare the return
972 value of strncmp with zero. Don't check (*inp)[9]. Increment
973 *inp by 8.
974
975 2016-08-11 Pedro Alves <palves@redhat.com>
976
977 PR gdb/20413
978 * nat/linux-ptrace.c: Include <sys/procfs.h> instead of
979 "gregset.h".
980
981 2016-08-10 Pedro Alves <palves@redhat.com>
982
983 PR gdb/19187
984 * record-full.c (record_full_remove_breakpoint): Don't remove the
985 breakpoint from the record_full_breakpoints VEC if we're detaching
986 the breakpoint from a fork child.
987
988 2016-08-10 Pedro Alves <palves@redhat.com>
989
990 PR gdb/19187
991 * break-catch-sig.c (signal_catchpoint_remove_location): Adjust
992 interface.
993 * break-catch-syscall.c (remove_catch_syscall):
994 * breakpoint.c (enum remove_bp_reason): Moved to breakpoint.h.
995 (remove_breakpoint_1): Pass 'reason' down.
996 (remove_catch_fork, remove_catch_vfork, remove_catch_solib)
997 (remove_catch_exec, remove_watchpoint, remove_masked_watchpoint)
998 (base_breakpoint_remove_location, bkpt_remove_location)
999 (bkpt_probe_remove_location, bkpt_probe_remove_location): Adjust
1000 interface.
1001 * breakpoint.h (enum remove_bp_reason): Moved here from
1002 breakpoint.c.
1003 (struct breakpoint_ops) <remove_location>: Add 'reason' parameter.
1004 * corelow.c (core_remove_breakpoint): New function.
1005 (init_core_ops): Install it as to_remove_breakpoint method.
1006 * exec.c (exec_remove_breakpoint): New function.
1007 (init_exec_ops): Install it as to_remove_breakpoint method.
1008 * mem-break.c (memory_remove_breakpoint): Adjust interface.
1009 * record-btrace.c (record_btrace_remove_breakpoint): Adjust
1010 interface.
1011 * record-full.c (record_full_remove_breakpoint)
1012 (record_full_core_remove_breakpoint): Adjust interface.
1013 * remote.c (remote_remove_breakpoint): Adjust interface.
1014 * target-debug.h (target_debug_print_enum_remove_bp_reason): New
1015 macro.
1016 * target-delegates.c: Regenerate.
1017 * target.c (target_remove_breakpoint): Add 'reason' parameter.
1018 * target.h (struct target_ops) <to_remove_breakpoint>: Add
1019 'reason' parameter.
1020 (target_remove_breakpoint, memory_remove_breakpoint): Add 'reason'
1021 parameter.
1022
1023 2016-08-10 Pedro Alves <palves@redhat.com>
1024
1025 PR gdb/19187
1026 * breakpoint.c (insertion_state_t): Delete.
1027 (enum remove_bp_reason): New.
1028 (detach_breakpoints, remove_breakpoint_1, remove_breakpoint):
1029 Adjust to use enum remove_bp_reason instead of insertion_state_t.
1030
1031 2016-08-10 Pedro Alves <palves@redhat.com>
1032
1033 PR gdb/19187
1034 * breakpoint.c (remove_breakpoint): Remove 'is' parameter and
1035 always pass mark_uninserted to remove_breakpoint_1.
1036 (insert_breakpoint_locations, remove_breakpoints)
1037 (remove_breakpoints_pid, update_global_location_list): Update
1038 callers.
1039
1040 2016-08-10 Руслан Ижбулатов <lrn1986@gmail.com>
1041 Pedro Alves <palves@redhat.com>
1042
1043 * windows-nat.c (MS_VC_EXCEPTION): New define.
1044 (handle_exception_result): New enum.
1045 (windows_delete_thread): Free the thread's name.
1046 (handle_exception): Handle MS_VC_EXCEPTION.
1047 (get_windows_debug_event): Handle HANDLE_EXCEPTION_IGNORED.
1048 (windows_thread_name): New function.
1049 (windows_target): Install it as to_thread_name method.
1050 * NEWS: Mention the thread naming support on MS-Windows.
1051
1052 2016-08-10 Pedro Alves <palves@redhat.com>
1053
1054 * common/signals-state-save-restore.c
1055 (save_original_signals_state, restore_original_signals_state):
1056 Wrap perror_with_name arguments with '()'.
1057
1058 2016-08-09 Pedro Alves <palves@redhat.com>
1059
1060 PR gdb/20418
1061 * event-top.c (ui_register_input_event_handler)
1062 (ui_unregister_input_event_handler): New functions.
1063 (async_enable_stdin): Register input in the event loop.
1064 (async_disable_stdin): Unregister input from the event loop.
1065 (gdb_setup_readline): Register input in the event loop.
1066 * infrun.c (check_curr_ui_sync_execution_done): Register input in
1067 the event loop.
1068 * target.c (target_terminal_inferior): Don't unregister input from
1069 the event loop.
1070 (target_terminal_ours): Don't register input in the event loop.
1071 * target.h (target_terminal_inferior)
1072 (target_terminal_ours_for_output, target_terminal_ours): Update
1073 comments.
1074 * top.h (ui_register_input_event_handler)
1075 (ui_unregister_input_event_handler): New declarations.
1076 * utils.c (ui_unregister_input_event_handler_cleanup)
1077 (prepare_to_handle_input): New functions.
1078 (defaulted_query, prompt_for_continue): Use
1079 prepare_to_handle_input.
1080
1081 2016-08-09 Pedro Alves <palves@redhat.com>
1082
1083 PR mi/20431
1084 * mi/mi-main.c (mi_execute_command): Enable input and set prompt
1085 state to PROMPT_NEEDED.
1086
1087 2016-08-09 Pedro Alves <palves@redhat.com>
1088
1089 PR gdb/18653
1090 * Makefile.in (SFILES): Add
1091 common/signals-state-save-restore.c.
1092 (HFILES_NO_SRCDIR): Add common/signals-state-save-restore.h.
1093 (COMMON_OBS): Add signals-state-save-restore.o.
1094 (signals-state-save-restore.o): New rule.
1095 * configure: Regenerate.
1096 * fork-child.c: Include "signals-state-save-restore.h".
1097 (fork_inferior): Call restore_original_signals_state.
1098 * main.c: Include "signals-state-save-restore.h".
1099 (captured_main): Call save_original_signals_state.
1100 * common/common.m4: Add sigaction to AC_CHECK_FUNCS checks.
1101 * common/signals-state-save-restore.c: New file.
1102 * common/signals-state-save-restore.h: New file.
1103
1104 2016-08-09 Pedro Alves <palves@redhat.com>
1105
1106 * value.c (unpack_value_bitfield): Skip unpacking if the parent
1107 has no contents buffer to begin with.
1108
1109 2016-08-08 Pedro Alves <palves@redhat.com>
1110
1111 * features/i386/amd64-avx-mpx-linux.c: Regenerate.
1112 * features/i386/amd64-avx-mpx.c: Regenerate.
1113 * features/i386/i386-avx-mpx-linux.c: Regenerate.
1114 * features/i386/i386-avx-mpx.c: Regenerate.
1115
1116 2016-08-05 Simon Marchi <simon.marchi@ericsson.com>
1117
1118 * event-top.h (cli_command_loop): Remove.
1119
1120 2016-08-05 Pedro Alves <palves@redhat.com>
1121
1122 PR remote/20398
1123 * remote-fileio.c (remote_fileio_quit_handler): Check the quit
1124 flag before calling quit.
1125
1126 2016-08-05 Pedro Alves <palves@redhat.com>
1127
1128 * NEWS: Mention that GDB and GDBserver build with a C++ compiler
1129 by default.
1130
1131 2016-08-05 Pedro Alves <palves@redhat.com>
1132
1133 * build-with-cxx.m4: Change help string to be in terms of
1134 --disable-build-with-cxx.
1135 * configure: Regenerate.
1136
1137 2016-08-04 Yao Qi <yao.qi@linaro.org>
1138
1139 * aarch64-linux-nat.c (tdesc_arm_with_vfpv3): Remove the
1140 declaration.
1141 (aarch64_linux_read_description): Remove code on getting
1142 auxv and select target description on it. Select target
1143 description by the result of NT_ARM_VFP ptrace request.
1144
1145 2016-08-03 Tom Tromey <tom@tromey.com>
1146
1147 PR python/18565:
1148 * python/py-frame.c (frapy_function): Use find_frame_funname.
1149
1150 2016-08-03 Tom Tromey <tom@tromey.com>
1151
1152 * stack.c (find_frame_funname): Avoid any possible leak in case
1153 cp_remove_params can throw.
1154
1155 2016-08-03 Tom Tromey <tom@tromey.com>
1156
1157 * NEWS: Mention new Python breakpoint events.
1158
1159 2016-08-02 Tom Tromey <tom@tromey.com>
1160
1161 * MAINTAINERS (Core): Add self as Rust maintainer.
1162
1163 2016-08-01 Joel Brobecker <brobecker@adacore.com>
1164
1165 * NEWS: Create a new section for the next release branch.
1166 Rename the section of the current branch, now that it has
1167 been cut.
1168
1169 2016-08-01 Joel Brobecker <brobecker@adacore.com>
1170
1171 GDB 7.12 branch created (41bfcd638a4e0e48b96ce4de2845372dea481322):
1172 * version.in: Bump version to 7.12.50.DATE-git.
1173
1174 2016-07-27 Alan Modra <amodra@gmail.com>
1175
1176 * amd64-darwin-tdep.c: Don't include libbfd.h.
1177 * i386-darwin-tdep.c: Likewise.
1178 * rs6000-nat.c: Likewise.
1179 * rs6000-tdep.c: Likewise.
1180
1181 2016-07-26 Tom Tromey <tom@tromey.com>
1182
1183 * symtab.c (register_symbol_computed_impl): Update.
1184 PR python/20190:
1185 * value.h (symbol_read_needs): Declare.
1186 (symbol_read_needs_frame): Add comment.
1187 * symtab.h (struct symbol_computed_ops) <read_variable>: Update
1188 comment.
1189 <get_symbol_read_needs>: Rename. Change return type.
1190 * findvar.c (symbol_read_needs): New function.
1191 (symbol_read_needs_frame): Rewrite.
1192 (default_read_var_value): Use symbol_read_needs.
1193 * dwarf2loc.c (struct symbol_needs_baton): Rename.
1194 <needs>: Renamed from needs_frame. Changed type.
1195 (needs_frame_read_addr_from_reg, symbol_needs_get_reg_value)
1196 (symbol_needs_read_mem, symbol_needs_frame_base)
1197 (symbol_needs_frame_cfa, symbol_needs_tls_address)
1198 (symbol_needs_dwarf_call): Rename.
1199 (needs_dwarf_reg_entry_value): Update.
1200 (symbol_needs_ctx_funcs, dwarf2_loc_desc_get_symbol_read_needs):
1201 Rename and update.
1202 (locexpr_get_symbol_read_needs, loclist_symbol_needs): Likewise.
1203 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
1204 * defs.h (enum symbol_needs_kind): New.
1205
1206 2016-07-26 Pedro Alves <palves@redhat.com>
1207
1208 * nat/linux-ptrace.c: Include "gregset.h".
1209 (linux_ptrace_test_ret_to_nx): Use PTRACE_GETREGS instead of
1210 PTRACE_PEEKUSER.
1211
1212 2016-07-26 Pedro Alves <palves@redhat.com>
1213
1214 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Rename 'native'
1215 parameter to 'ptrace'.
1216 * nat/amd64-linux-siginfo.c (GDB_SI_SIZE): New define.
1217 (nat_uptr_t): New an unsigned long.
1218 (nat_clock_t): Remove attribute __aligned__.
1219 (struct nat_timeval): Delete.
1220 (nat_siginfo_t): Remove attribute __aligned__.
1221 (ptrace_siginfo_t): Define.
1222 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
1223 (compat_x32_siginfo_from_siginfo)
1224 (siginfo_from_compat_x32_siginfo): Make 'from' parameter const.
1225 Convert through a ptrace_siginfo_t instead of a nat_siginfo_t.
1226 Remove casts.
1227 (amd64_linux_siginfo_fixup_common): Rename 'native' parameter to
1228 'ptrace'. Remove static assertions.
1229 (top level): New static assertions.
1230
1231 2016-07-25 Simon Marchi <simon.marchi@ericsson.com>
1232
1233 * top.h (make_delete_ui_cleanup): New declaration.
1234 * top.c (delete_ui_cleanup): New function.
1235 (make_delete_ui_cleanup): New function.
1236 (new_ui_command): Create restore_ui cleanup earlier, create a
1237 delete_ui cleanup and discard it on success.
1238
1239 2016-07-25 Pedro Alves <palves@redhat.com>
1240 Jan Kratochvil <jan.kratochvil@redhat.com>
1241
1242 * nat/linux-procfs.c (parse_proc_status_state): Handle lowercase
1243 't'.
1244
1245 2016-07-25 Pedro Alves <palves@redhat.com>
1246
1247 * nat/linux-procfs.c (enum proc_state): New enum.
1248 (parse_proc_status_state): New function.
1249 (linux_proc_pid_get_state): Replace output string buffer parameter
1250 with an output proc_state parameter. Use parse_proc_status_state.
1251 (linux_proc_pid_is_gone): Adjust to use proc_state values.
1252 (linux_proc_pid_has_state): Change type of 'state' parameter; now
1253 an enum proc_state. Adjust to linux_proc_pid_get_state interface
1254 change.
1255 (linux_proc_pid_is_stopped)
1256 (linux_proc_pid_is_trace_stopped_nowarn)
1257 (linux_proc_pid_is_zombie_maybe_warn): Adjust to
1258 linux_proc_pid_get_state interface change.
1259
1260 2016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
1261
1262 * MAINTAINERS (Write After Approval): Add Tim Wiederhake
1263
1264 2016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
1265
1266 * NEWS: Resume btrace on reconnect.
1267 * record-btrace.c: Added record-btrace.h include.
1268 (record_btrace_open): Split into this and ...
1269 (record_btrace_push_target): ... this.
1270 (record_btrace_disconnect): New function.
1271 (init_record_btrace_ops): Use record_btrace_disconnect.
1272 * record-btrace.h: New file.
1273 * remote.c: Added record-btrace.h include.
1274 (remote_start_remote): Check recording status.
1275 (remote_btrace_maybe_reopen): New function.
1276
1277 2016-07-23 Gabriel Krisman Bertazi <gabriel@krisman.be>
1278
1279 * xml-syscall.c (get_syscalls_by_group): New.
1280 (get_syscall_group_names): New.
1281 (struct syscall_group_desc): New structure to store group data.
1282 (struct syscalls_info): Include field to store the group list.
1283 (sysinfo_free_syscall_group_desc): New.
1284 (free_syscalls_info): Free group list.
1285 (syscall_group_create_syscall_group_desc): New.
1286 (syscall_group_add_syscall): New.
1287 (syscall_create_syscall_desc): Add syscall to its groups.
1288 (syscall_start_syscall): Load group attribute.
1289 (syscall_group_get_group_by_name): New.
1290 (xml_list_syscalls_by_group): New.
1291 (xml_list_of_groups): New.
1292 * xml-syscall.h (get_syscalls_by_group): Export function
1293 to retrieve a list of syscalls filtered by the group name.
1294 (get_syscall_group_names): Export function to retrieve the list
1295 of syscall groups.
1296 * break-catch-syscall.c (catch_syscall_split_args): Verify if
1297 argument is a syscall group and expand it to a list of syscalls
1298 when creating catchpoints.
1299 (catch_syscall_completer): Add word completion for system call
1300 groups.
1301 * configure.ac: Include dependency for xsltproc when building
1302 in maintainer-mode.
1303 * break-catch-syscall.c (_initialize_breakpoint): Update catch
1304 syscall command documentation.
1305 * NEWS: Include section about catching groups of syscalls.
1306 * configure: Regenerate.
1307 * data-directory/Makefile.in: Generate syscall xml when building
1308 in maintainer mode.
1309 * syscalls/gdb-syscalls.dtd: Include group attribute to the
1310 syscall element.
1311 * syscalls/apply-defaults.xsl: New.
1312 * syscalls/linux-defaults.xml.in: New.
1313 * syscalls/aarch64-linux.xml: Rename to aarch64-linux.xml.in.
1314 * syscalls/amd64-linux.xml: Rename to amd64-linux.xml.in.
1315 * syscalls/arm-linux.xml: Rename to arm-linux.xml.in.
1316 * syscalls/bfin-linux.xml: Rename to bfin-linux.xml.in.
1317 * syscalls/i386-linux.xml: Rename to i386-linux.xml.in.
1318 * syscalls/mips-n32-linux.xml: Rename to mips-n32-linux.xml.in.
1319 * syscalls/mips-n64-linux.xml: Rename to mips-n64-linux.xml.in.
1320 * syscalls/mips-o32-linux.xml: Rename to mips-o32-linux.xml.in.
1321 * syscalls/ppc-linux.xml: Rename to ppc-linux.xml.in.
1322 * syscalls/ppc64-linux.xml: Rename to ppc64-linux.xml.in.
1323 * syscalls/s390-linux.xml: Rename to s390-linux.xml.in.
1324 * syscalls/s390x-linux.xml: Rename to s390x-linux.xml.in.
1325 * syscalls/sparc-linux.xml: Rename to sparc-linux.xml.in.
1326 * syscalls/sparc64-linux.xml: Rename to sparc64-linux.xml.in.
1327 * syscalls/aarch64-linux.xml: Regenerate.
1328 * syscalls/amd64-linux.xml: Regenerate.
1329 * syscalls/arm-linux.xml: Regenerate.
1330 * syscalls/i386-linux.xml: Regenerate.
1331 * syscalls/mips-n32-linux.xml: Regenerate.
1332 * syscalls/mips-n64-linux.xml: Regenerate.
1333 * syscalls/mips-o32-linux.xml: Regenerate.
1334 * syscalls/ppc-linux.xml: Regenerate.
1335 * syscalls/ppc64-linux.xml: Regenerate.
1336 * syscalls/s390-linux.xml: Regenerate.
1337 * syscalls/s390x-linux.xml: Regenerate.
1338 * syscalls/sparc-linux.xml: Regenerate.
1339 * syscalls/sparc64-linux.xml: Regenerate.
1340
1341 2016-07-23 Andrew Pinski <apinski@cavium.com>
1342
1343 * nat/aarch64-linux-hw-point.c
1344 (aarch64_linux_get_debug_reg_capacity): Handle
1345 ARMv8.1 and ARMv8.2 debug versions.
1346 * nat/aarch64-linux-hw-point.h
1347 (AARCH64_DEBUG_ARCH_V8_1): New define.
1348 (AARCH64_DEBUG_ARCH_V8_2): New define.
1349
1350 2016-06-30 Руслан Ижбулатов <lrn1986@gmail.com>
1351
1352 PR gdb/14529
1353 * windows-nat.c (signal_event_command): New command 'signal-event'
1354 for W32 JIT debug support.
1355 * NEWS: Add an entry about the new 'signal-event' command.
1356
1357 2016-07-22 Tom Tromey <tom@tromey.com>
1358
1359 PR rust/20162:
1360 * dwarf2read.c (scan_partial_symbols) <DW_TAG_structure_type>:
1361 Call scan_partial_symbols for children when reading a Rust CU.
1362 (dwarf2_physname): Ignore invalid DW_AT_linkage_name generated by
1363 rustc.
1364 (process_structure_scope) <DW_TAG_subprogram>: Call
1365 read_func_scope for Rust.
1366
1367 2016-07-22 Yao Qi <yao.qi@linaro.org>
1368
1369 * ctf.c (ctf_traceframe_info): Call bt_ctf_get_uint64 rather than
1370 bt_ctf_get_int64.
1371
1372 2016-07-21 Tom Tromey <tom@tromey.com>
1373
1374 * rust-lang.c (rust_tuple_struct_type_p): Return false for empty
1375 structs.
1376 * rust-exp.y (struct_expr_list): Allow empty elements.
1377
1378 2016-07-21 Tom Tromey <tom@tromey.com>
1379
1380 * configure: Rebuild.
1381 * warning.m4 (AM_GDB_WARNINGS) <build_warnings>: Add
1382 -Wunused-but-set-parameter, -Wunused-but-set-variable.
1383
1384 2016-07-21 Pedro Alves <palves@redhat.com>
1385
1386 * go32-nat.c (go32_create_inferior): Add cast.
1387 * ser-go32.c (dos_noop): Delete.
1388 (dos_flush_output, dos_setparity, dos_drain_output): New
1389 functions.
1390 (dos_write): Add cast.
1391 (dos_ops): Use dos_flush_output, dos_setparity and
1392 dos_drain_output.
1393 * top.c (do_chdir_cleanup): Add cast.
1394
1395 2016-07-21 Pedro Alves <palves@redhat.com>
1396
1397 * windows-nat.c (handle_exception): Remove "th".
1398
1399 2016-07-21 Pedro Alves <palves@redhat.com>
1400
1401 * varobj.c (varobj_value_get_print_value): Move "gdbarch" to block
1402 scope that uses it.
1403
1404 2016-07-20 John Baldwin <jhb@FreeBSD.org>
1405
1406 * fbsd-nat.c (fbsd_enable_proc_events): Enable "PTRACE_VFORK"
1407 events.
1408 (fbsd_pending_vfork_done): Only define if "PTRACE_VFORK" is not
1409 defined.
1410 (fbsd_add_vfork_done): Likewise.
1411 (fbsd_is_vfork_done_pending): Likewise.
1412 (fbsd_next_vfork_done): Likewise.
1413 (fbsd_resume): Only ignore pending vfork done events if
1414 "PTRACE_VFORK" is not defined.
1415 (fbsd_wait): Only look for pending vfork done events if
1416 "PTRACE_VFORK" is not defined.
1417 [PTRACE_VFORK]: Handle "PL_FLAG_VFORKED" and "PL_FLAG_VFORK_DONE"
1418 events.
1419 (fbsd_follow_fork): Only fake a vfork done event if "PTRACE_VFORK"
1420 is not defined.
1421
1422 2016-07-20 John Baldwin <jhb@FreeBSD.org>
1423
1424 * fbsd-nat.c (fbsd_wait): Use "fbsd_enable_proc_events" on
1425 new child processes.
1426
1427 2016-07-20 John Baldwin <jhb@FreeBSD.org>
1428
1429 * fbsd-nat.c (fbsd_enable_lwp_events): Remove function.
1430 (fbsd_enable_proc_events): New function.
1431 (fbsd_enable_follow_fork): Remove function.
1432 (fbsd_post_startup_inferior): Use "fbsd_enable_proc_events".
1433 (fbsd_post_attach): Likewise.
1434
1435 2016-07-15 John Baldwin <jhb@FreeBSD.org>
1436
1437 * common/signals.c (gdb_signal_from_host): Handle SIGLIBRT.
1438 (do_gdb_signal_to_host): Likewise.
1439 * infrun.c (_initialize_infrun): Pass GDB_SIGNAL_LIBRT through to
1440 programs.
1441 * proc-events.c (signal_table): Add entry for SIGLIBRT.
1442
1443 2016-07-14 Tom Tromey <tom@tromey.com>
1444
1445 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Add missing
1446 newline.
1447
1448 2016-07-14 Tom Tromey <tom@tromey.com>
1449
1450 * mips-tdep.c (micromips_scan_prologue): Remove "frame_addr".
1451 (mips_o32_push_dummy_call): Remove "stack_used_p".
1452 * aarch64-tdep.c (aarch64_record_data_proc_imm): Remove
1453 "insn_bit28".
1454 * rust-lang.c (rust_print_type): Remove "len".
1455 * rust-exp.y (super_name): Remove "current_len".
1456 * python/py-framefilter.c (py_print_type): Remove "type".
1457 * mdebugread.c (parse_partial_symbols): Remove
1458 "past_first_source_file".
1459 <N_SO>: Remove "valu", "first_so_symnum", "prev_textlow_not_set".
1460 * m2-valprint.c (m2_print_unbounded_array): Remove
1461 "content_type".
1462 (m2_val_print): Remove "i".
1463 * linespec.c (unexpected_linespec_error): Remove "cleanup".
1464 * f-valprint.c (f_val_print): Remove "i".
1465 * elfread.c (elf_symtab_read): Remove "offset".
1466 * dwarf2-frame.c (dwarf2_fetch_cfa_info): Remove "addr_size".
1467 * jit.c (jit_dealloc_cache): Remove "i" and "frame_arch".
1468
1469 2016-07-14 Tom Tromey <tom@tromey.com>
1470
1471 * arch-utils.c (default_skip_permanent_breakpoint): Remove
1472 "bp_insn".
1473 * disasm.c (do_assembly_only): Remove "num_displayed".
1474 * dwarf2read.c (read_abbrev_offset): Remove "length".
1475 (dwarf_decode_macro_bytes) <DW_MACINFO_vendor_ext>: Remove
1476 "constant".
1477 * m32c-tdep.c (make_regs): Remove "r2hl", "r3hl", and "intbhl".
1478 * microblaze-tdep.c (microblaze_frame_cache): Remove "func".
1479 * tracefile.c (trace_save): Remove "status".
1480
1481 2016-07-14 Tom Tromey <tom@tromey.com>
1482
1483 * symfile.c (simple_overlay_update_1): Remove initialization
1484 of "size", and commented-out code.
1485 (simple_overlay_update): Likewise.
1486
1487 2016-07-14 Tom Tromey <tom@tromey.com>
1488
1489 * tui/tui-winsource.c (tui_show_source_line): Use getcurx.
1490 * tui/tui-io.c (tui_puts): Use getcurx.
1491 (tui_redisplay_readline): Likewise.
1492
1493 2016-07-14 Tom Tromey <tom@tromey.com>
1494
1495 * inflow.c (child_terminal_ours_1): Use ATTRIBUTE_UNUSED.
1496
1497 2016-07-14 Tom Tromey <tom@tromey.com>
1498
1499 * corefile.c (reopen_exec_file): Only examine st.st_mtime if stat
1500 succeeded.
1501
1502 2016-07-13 Tom Tromey <tom@tromey.com>
1503
1504 PR python/15620, PR python/18620:
1505 * python/py-evts.c (gdbpy_initialize_py_events): Call
1506 add_new_registry for new events.
1507 * python/py-events.h (events_object) <breakpoint_created,
1508 breakpoint_deleted, breakpoint_modified>: New fields.
1509 * python/py-breakpoint.c (gdbpy_breakpoint_created): Emit the
1510 breakpoint changed event.
1511 (gdbpy_breakpoint_deleted): Emit the breakpoint deleted event.
1512 (gdbpy_breakpoint_modified): New function.
1513 (gdbpy_initialize_breakpoints): Attach to the breakpoint modified
1514 observer.
1515
1516 2016-07-13 Tom Tromey <tom@tromey.com>
1517
1518 PR python/17698:
1519 * NEWS: Update.
1520 * python/py-breakpoint.c (bppy_get_pending): New function.
1521 (breakpoint_object_getset): Add entry for "pending".
1522 * breakpoint.h (pending_breakpoint_p): Declare.
1523 * breakpoint.c (pending_breakpoint_p): New function.
1524
1525 2016-07-13 Tom Tromey <tom@tromey.com>
1526
1527 * python/py-breakpoint.c (bppy_get_visibility)
1528 (gdbpy_breakpoint_created): Use user_breakpoint_p.
1529
1530 2016-07-13 Tom Tromey <tom@tromey.com>
1531
1532 PR cli/18053:
1533 * jit.c (jit_reader_load_command): Use tilde_expand.
1534 (_initialize_jit): Fix help for jit-reader-unload. Set completer
1535 for new commands.
1536
1537 2016-07-12 Tom Tromey <tom@tromey.com>
1538
1539 PR python/19293:
1540 * python/lib/gdb/command/unwinders.py (do_enable_unwinder): Call
1541 gdb.invalidate_cached_frames.
1542 * python/lib/gdb/unwinder.py (register_unwinder): Call
1543 gdb.invalidate_cached_frames.
1544 * python/python.c (gdbpy_invalidate_cached_frames): New function.
1545 (python_GdbMethods): Add entry for invalidate_cached_frames.
1546
1547 2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
1548
1549 * cp-namespace.c (cp_lookup_bare_symbol): Initialize
1550 lang_this.symbol.
1551
1552 2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
1553
1554 * cp-namespace.c (cp_lookup_bare_symbol): Use language passed as
1555 parameter to look for the symbol "this".
1556
1557
1558 2016-07-06 John Baldwin <jhb@FreeBSD.org>
1559
1560 * h8300-tdep.c (h8300_print_register): Remove extraneous parentheses.
1561
1562 2016-07-06 John Baldwin <jhb@FreeBSD.org>
1563
1564 * ada-lang.c (ada_unpack_from_contents): Use unsigned constants with
1565 left shifts.
1566
1567 2016-07-06 John Baldwin <jhb@FreeBSD.org>
1568
1569 * sh64-tdep.c (sh64_analyze_prologue): Set "uses_fp" when setting
1570 the MEDIA_FP_REGNUM register.
1571
1572 2016-07-06 John Baldwin <jhb@FreeBSD.org>
1573
1574 * score-tdep.c (score7_malloc_and_get_memblock): Remove check for
1575 negative size.
1576
1577 2016-07-06 John Baldwin <jhb@FreeBSD.org>
1578
1579 * fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
1580
1581 2016-07-06 Yao Qi <yao.qi@linaro.org>
1582
1583 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Don't call
1584 arm_vfp_cprc_sub_candidate for static field.
1585
1586 2016-07-06 Manish Goregaokar <manish@mozilla.com>
1587
1588 * rust-lang.c (rust_subscript): Allow subscripting pointers
1589
1590 2016-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1591
1592 * configure: Regenerate.
1593 * configure.ac (HAVE_LIBBABELTRACE): Fix pos variable dereference.
1594
1595 2016-07-01 Don Breazeal <donb@codesourcery.com>
1596
1597 * remote.c (remote_get_memory_xfer_limit): New function.
1598 * target-delegates.c: Regenerate.
1599 * target.c (memory_xfer_partial): Call
1600 target_ops.to_get_memory_xfer_limit.
1601 * target.h (struct target_ops) <to_get_memory_xfer_limit>: New
1602 member.
1603
1604 2016-07-01 John Baldwin <jhb@FreeBSD.org>
1605
1606 * fbsd-nat.c (struct fbsd_fork_child_info): Rename to ...
1607 (struct fbsd_fork_info): ... this.
1608 (struct fbsd_fork_info) <child>: Rename to ...
1609 (struct fbsd_fork_info) <ptid>: ... this.
1610 (fbsd_pending_children): Update type.
1611 (fbsd_remember_child): Update type and field name.
1612 (fbsd_is_child_pending): Likewise.
1613 (fbsd_pending_vfork_done): New variable.
1614 (fbsd_is_vfork_done_pending): New function.
1615 (fbsd_next_vfork_done): New function.
1616 (fbsd_resume): Don't resume processes with a pending vfork done
1617 event.
1618 (fbsd_wait): Report pending vfork done events.
1619 (fbsd_follow_fork): Delay and record a pending vfork done event
1620 for a vfork parent when detaching the child.
1621
1622 2016-07-01 John Baldwin <jhb@FreeBSD.org>
1623
1624 * fbsd-nat.c (super_resume): Move earlier next to "super_wait".
1625 (resume_one_thread_cb): Move below fork following helper code.
1626 (resume_all_threads_cb): Likewise.
1627 (fbsd_resume): Likewise.
1628
1629 2016-07-01 John Baldwin <jhb@FreeBSD.org>
1630
1631 * fbsd-nat.c (fbsd_follow_fork): Only detach child if
1632 "detach_fork" is true.
1633
1634 2016-07-01 John Baldwin <jhb@FreeBSD.org>
1635
1636 * x86bsd-nat.c: Include 'gdbthread.h'.
1637 (x86bsd_dr_set): Set debug registers on all threads belonging to
1638 the current inferior.
1639
1640 2016-07-01 John Baldwin <jhb@FreeBSD.org>
1641
1642 * Makefile.in [HFILES_NO_SRCDIR]: Replace 'amd64bsd-nat.h' with
1643 'x86bsd-nat.h'.
1644 * amd64bsd-nat.c: Include 'x86bsd-nat.h' instead of
1645 'amd64bsd-nat.h'.
1646 (amd64bsd_xsave_len): Rename and move to x86bsd-nat.c.
1647 (amd64bsd_fetch_inferior_registers): Replace 'amd64bsd_xsave_len'
1648 with 'x86bsd_xsave_len'.
1649 (amd64bsd_store_inferior_registers): Likewise.
1650 (amd64bsd_target): Inherit from x86bsd_target.
1651 (amd64bsd_dr_get): Rename and move to x86bsd-nat.c.
1652 (amd64bsd_dr_set): Likewise.
1653 (amd64bsd_dr_set_control): Likewise.
1654 (amd64bsd_dr_set_addr): Likewise.
1655 (amd64bsd_dr_get_addr): Likewise.
1656 (amd64bsd_dr_get_status): Likewise.
1657 (amd64bsd_dr_get_control): Likewise.
1658 * amd64fbsd-nat.c: Include 'x86bsd-nat.h' instead of
1659 'amd64bsd-nat.h'.
1660 (super_mourn_inferior): Move to x86bsd-nat.c.
1661 (amd64fbsd_mourn_inferior): Rename and move to x86bsd-nat.c.
1662 (amd64fbsd_read_description): Replace 'amd64bsd_xsave_len' with
1663 'x86bsd_xsave_len'.
1664 (_initialize_amd64fbsd_nat): Remove x86 watchpoint setup and
1665 mourn_inferior' target op.
1666 * config/i386/fbsd.mh (NATDEPFILES): Add x86bsd-nat.o.
1667 * config/i386/fbsd64.mh: Likewise.
1668 * config/i386/nbsd64.mh: Likewise.
1669 * config/i386/nbsdelf.mh: Likewise.
1670 * config/i386/obsd.mh: Likewise.
1671 * config/i386/obsd64.mh: Likewise.
1672 * i386bsd-nat.c: Include 'x86bsd-nat.h'.
1673 (i386bsd_xsave_len): Rename and move to x86bsd-nat.c.
1674 (i386bsd_fetch_inferior_registers): Replace 'i386bsd_xsave_len'
1675 with 'x86bsd_xsave_len'.
1676 (i386bsd_store_inferior_registers): Likewise.
1677 (i386bsd_target): Inherit from x86bsd_target.
1678 (i386bsd_dr_get): Rename and move to x86bsd-nat.c.
1679 (i386bsd_dr_set): Likewise.
1680 (i386bsd_dr_set_control): Likewise.
1681 (i386bsd_dr_set_addr): Likewise.
1682 (i386bsd_dr_get_addr): Likewise.
1683 (i386bsd_dr_get_status): Likewise.
1684 (i386bsd_dr_get_control): Likewise.
1685 * i386bsd-nat.h (i386bsd_xsave_len): Remove.
1686 (i386bsd_dr_set_control): Remove.
1687 (i386bsd_dr_set_addr): Remove.
1688 (i386bsd_dr_get_addr): Remove.
1689 (i386bsd_dr_get_status): Remove.
1690 (i386bsd_dr_get_control): Remove.
1691 * i386fbsd-nat.c: Include 'x86bsd-nat.h'.
1692 (i386fbsd_read_description): Replace 'i386bsd_xsave_len' with
1693 'x86bsd_xsave_len'.
1694 (_initialize_i386fbsd_nat): Remove x86 watchpoint setup and
1695 mourn_inferior' target op.
1696 * x86bsd-nat.c: New file.
1697 * x86bsd-nat.h: New file.
1698
1699 2016-07-01 Pedro Alves <palves@redhat.com>
1700 Tom Tromey <tom@tromey.com>
1701
1702 * jit.c (jit_reader_load_command): Call reinit_frame_cache and
1703 jit_inferior_created_hook.
1704 (jit_reader_unload_command): Call reinit_frame_cache and
1705 jit_inferior_exit_hook.
1706 * jit.c (struct jit_unwind_private) <registers>: Delete field.
1707 <regcache>: New field.
1708 (jit_unwind_reg_set_impl): Set the register's value in the
1709 regcache. Free the passed-in gdb_reg_value.
1710 (jit_dealloc_cache): Adjust to free the regcache.
1711 (jit_frame_sniffer): Allocate a regcache instead of an array of
1712 gdb_reg_value pointers.
1713 (jit_frame_this_id): Adjust.
1714 (jit_frame_prev_register): Read raw registers off of the regcache
1715 instead of from the gdb_reg_value pointer array. Use
1716 gdbarch_pseudo_register_read_value to read pseudo registers.
1717 * regcache.c (regcache_raw_set_cached_value): New function,
1718 factored out from ...
1719 (regcache_raw_write): ... here.
1720 * regcache.h (regcache_raw_set_cached_value): Declare.
1721
1722 2016-07-01 Pedro Alves <palves@redhat.com>
1723 Antoine Tremblay <antoine.tremblay@ericsson.com>
1724
1725 * inf-ptrace.c (inf_ptrace_detach_success): New function, factored
1726 out from ...
1727 (inf_ptrace_detach): ... here.
1728 * inf-ptrace.h (inf_ptrace_detach_success): New declaration.
1729 * linux-nat.c (get_pending_status): Rename to ...
1730 (get_detach_signal): ... this, and return a host signal instead of
1731 filling in a wait status.
1732 (detach_one_lwp): New function, factored out from detach_callback
1733 and adjusted to handle detaching from a zombie thread.
1734 (detach_callback): Skip the leader thread.
1735 (linux_nat_detach): No longer defer to inf_ptrace_detach to detach
1736 the leader thread, nor build a signal string to pass down.
1737 Instead, use target_announce_detach, detach_one_lwp and
1738 inf_ptrace_detach_success.
1739
1740 2016-07-01 Pedro Alves <palves@redhat.com>
1741
1742 * breakpoint.c (breakpoint_init_inferior): Discard watchpoint
1743 locations.
1744 * infcmd.c (detach_command): Call breakpoint_init_inferior.
1745
1746 2016-07-01 Pedro Alves <palves@redhat.com>
1747
1748 * darwin-nat.c (darwin_detach): Use target_announce_detach.
1749 * inf-ptrace.c (inf_ptrace_detach): Likewise.
1750 * nto-procfs.c (procfs_detach): Likewise.
1751 * remote.c (remote_detach_1): Likewise.
1752 * target.c (target_announce_detach): New function.
1753 * target.h (target_announce_detach): New declaration.
1754
1755 2016-06-29 Tom Tromey <tom@tromey.com>
1756
1757 PR python/20129:
1758 * python/lib/gdb/command/frame_filters.py (_do_enable_frame_filter)
1759 (SetFrameFilterPriority._set_filter_priority): Use "frame_filter",
1760 not "name".
1761
1762 2016-06-29 Tom Tromey <tom@tromey.com>
1763
1764 PR gdb/17210:
1765 * target.c (free_memory_read_result_vector): Take a pointer to the
1766 VEC as an argument.
1767 (read_memory_robust): Install a cleanup for "result".
1768 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update.
1769
1770 2016-06-29 Manish Goregaokar <manish@mozilla.com>
1771
1772 * rust-lang.c (rust_get_disr_info): Initialize saveptr to NULL.
1773
1774 2016-06-29 Manish Goregaokar <manish@mozilla.com>
1775
1776 * rust-lang.c (rust_get_disr_info): Use strtok_r instead of strsep.
1777
1778 2016-06-28 Yao Qi <yao.qi@linaro.org>
1779
1780 * aarch64-tdep.c (aarch64_displaced_step_b): Use int64_t for
1781 variable new_offset.
1782
1783 2016-06-27 Manish Goregaokar <manish@mozilla.com>
1784
1785 * rust-lang.c (rust_print_type, rust_decorations): Print unit
1786 types as "()".
1787 (rust_print_type): Omit return type for functions returning unit.
1788
1789 2016-06-25 Pierre-Marie de Rodat <derodat@adacore.com>
1790
1791 * python/py-breakpoint.c (bppy_init): Clear bppy_pending_object
1792 when there is an error during the breakpoint creation.
1793
1794 2016-06-25 Tom Tromey <tom@tromey.com>
1795
1796 * rust-lang.c (rust_get_disr_info, rust_print_type): Fix
1797 formatting.
1798
1799 2016-06-25 Manish Goregaokar <manish@mozilla.com>
1800
1801 PR gdb/20239
1802 * rust-lang.c (rust_get_disr_info): Correctly interpret
1803 NonZero-optimized enums of arbitrary depth.
1804 (rust_print_type): Correctly print NonZero-optimized
1805 enums.
1806
1807 2016-06-24 David Taylor <dtaylor@emc.com>
1808
1809 PR gdb/17520 Structure offset wrong when 1/4 GB or greater.
1810 * c-lang.h: Change all parameters, variables, and struct or union
1811 members used as struct or union fie3ld offsets from int to
1812 LONGEST.
1813 * c-valprint.c: Likewise.
1814 * cp-abi.c: Likewise.
1815 * cp-abi.h: Likewise.
1816 * cp-valprint.c: Likewise.
1817 * d-valprint.c: Likewise.
1818 * dwarf2loc.c: Likewise.
1819 * eval.c: Likewise.
1820 * extension-priv.h: Likewise.
1821 * extension.c: Likewise.
1822 * extension.h: Likewise.
1823 * findvar.c: Likewise.
1824 * gdbtypes.h: Likewise.
1825 * gnu-v2-abi.c: Likewise.
1826 * gnu-v3-abi.c: Likewise.
1827 * go-valprint.c: Likewise.
1828 * guile/guile-internal.h: Likewise.
1829 * guile/scm-pretty-print.c: Likewise.
1830 * jv-valprint.c Likewise.
1831 * opencl-lang.c: Likewise.
1832 * p-lang.h: Likewise.
1833 * python/py-prettyprint.c: Likewise.
1834 * python/python-internal.h: Likewise.
1835 * spu-tdep.c: Likewise.
1836 * typeprint.c: Likewise.
1837 * valarith.c: Likewise.
1838 * valops.c: Likewise.
1839 * valprint.c: Likewise.
1840 * valprint.h: Likewise.
1841 * value.c: Likewise.
1842 * value.h: Likewise.
1843 * p-valprint.c: Likewise.
1844 * c-typeprint.c (c_type_print_base): When printing offset, use
1845 plongest, not %d.
1846 * gdbtypes.c (recursive_dump_type): Ditto.
1847
1848 2016-06-24 David Taylor <david.taylor@emc.com>
1849
1850 * MAINTAINERS (Write After Approval): Add David Taylor.
1851
1852 2016-06-24 John Baldwin <jhb@FreeBSD.org>
1853
1854 * configure.ac: Check for support for system call LWP fields on
1855 FreeBSD.
1856 * config.in, configure: Rebuild.
1857 * data-directory/Makefile.in (SYSCALLS_FILES): Add freebsd.xml.
1858 * fbsd-nat.c (fbsd_wait) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
1859 Report system call events.
1860 [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]
1861 (fbsd_set_syscall_catchpoint): New function.
1862 (fbsd_nat_add_target) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
1863 Set "to_set_syscall_catchpoint" to "fbsd_set_syscall_catchpoint".
1864 * fbsd-tdep.c: Include xml-syscall.h
1865 (fbsd_get_syscall_number): New function.
1866 (fbsd_init_abi): Set XML system call file name.
1867 Add "get_syscall_number" gdbarch method.
1868 * syscalls/freebsd.xml: New file.
1869
1870 2016-06-24 John Baldwin <jhb@FreeBSD.org>
1871
1872 * fbsd-tdep.c: Include "auxv.h".
1873 (fbsd_print_auxv_entry): New function.
1874 (fbsd_init_abi): Install gdbarch "print_auxv_entry" method.
1875
1876 2016-06-24 John Baldwin <jhb@FreeBSD.org>
1877
1878 * auxv.c (fprint_auxv_entry): New function.
1879 (default_print_auxv_entry): New function.
1880 (fprint_target_auxv): Use gdbarch_print_auxv_entry.
1881 * auxv.h (enum auxv_format): New enum.
1882 (fprint_auxv_entry): Declare.
1883 (default_print_auxv_entry): Declare.
1884 * gdbarch.sh (print_auxv_entry): New.
1885 * gdbarch.c, gdbarch.h: Re-generated.
1886
1887 2016-06-24 John Baldwin <jhb@FreeBSD.org>
1888
1889 * fbsd-nat.c [KERN_PROC_AUXV] New variable super_xfer_partial.
1890 (fbsd_xfer_partial): New function.
1891 (fbsd_nat_add_target) [KERN_PROC_AUXV] Set "to_xfer_partial" to
1892 "fbsd_xfer_partial".
1893
1894 2016-06-23 Tom Tromey <tom@tromey.com>
1895
1896 * symtab.c (symbol_find_demangled_name): Loop over languages and
1897 use language_sniff_from_mangled_name.
1898 * rust-lang.c (rust_sniff_from_mangled_name): New function.
1899 (rust_language_defn): Update.
1900 * p-lang.c (pascal_language_defn): Update.
1901 * opencl-lang.c (opencl_language_defn): Update.
1902 * objc-lang.c (objc_sniff_from_mangled_name): New function.
1903 (objc_language_defn): Update.
1904 * m2-lang.c (m2_language_defn): Update.
1905 * language.h (struct language_defn) <la_sniff_from_mangled_name>: New
1906 field.
1907 (language_sniff_from_mangled_name): Declare.
1908 * language.c (language_sniff_from_mangled_name): New function.
1909 (unknown_language_defn, auto_language_defn, local_language_defn):
1910 Update.
1911 * jv-lang.c (java_sniff_from_mangled_name): New function.
1912 (java_language_defn): Use it.
1913 * go-lang.c (go_sniff_from_mangled_name): New function.
1914 (go_language_defn): Use it.
1915 * f-lang.c (f_language_defn): Update.
1916 * defs.h (enum language): Reorder.
1917 * d-lang.c (d_sniff_from_mangled_name): New function.
1918 (d_language_defn): Use it.
1919 * cp-support.h (gdb_sniff_from_mangled_name): Declare.
1920 * cp-support.c (gdb_sniff_from_mangled_name): New function.
1921 * c-lang.c (c_language_defn, cplus_language_defn)
1922 (asm_language_defn, minimal_language_defn): Update.
1923 * ada-lang.c (ada_sniff_from_mangled_name): New function.
1924 (ada_language_defn): Use it.
1925
1926 2016-06-23 Tom Tromey <tom@tromey.com>
1927
1928 * ada-lang.c (ada_extensions): New array.
1929 (ada_language_defn): Use it.
1930 * c-lang.c (c_extensions): New array.
1931 (c_language_defn): Use it.
1932 (cplus_extensions): New array.
1933 (cplus_language_defn): Use it.
1934 (asm_extensions): New array.
1935 (asm_language_defn): Use it.
1936 (minimal_language_defn): Update.
1937 * d-lang.c (d_extensions): New array.
1938 (d_language_defn): Use it.
1939 * f-lang.c (f_extensions): New array.
1940 (f_language_defn): Use it.
1941 * go-lang.c (go_language_defn): Update.
1942 * jv-lang.c (java_extensions): New array.
1943 (java_language_defn): Use it.
1944 * language.c (add_language): Call add_filename_language.
1945 (unknown_language_defn, auto_language_defn, local_language_defn):
1946 Update.
1947 * language.h (struct language_defn) <la_filename_extensions>: New
1948 field.
1949 * m2-lang.c (m2_language_defn): Update.
1950 * objc-lang.c (objc_extensions): New array.
1951 (objc_language_defn): Use it.
1952 * opencl-lang.c (opencl_language_defn): Update.
1953 * p-lang.c (p_extensions): New array.
1954 (pascal_language_defn): Use it.
1955 * rust-lang.c (rust_extensions): New array.
1956 (rust_language_defn): Use it.
1957 * symfile.c (add_filename_language): No longer static. Make "ext"
1958 const.
1959 (init_filename_language_table): Remove.
1960 (_initialize_symfile): Update.
1961 * symfile.h (add_filename_language): Declare.
1962
1963 2016-06-23 Tom Tromey <tom@tromey.com>
1964
1965 * symfile.c (filename_language_table): Now a VEC.
1966 (fl_table_size, fl_table_next): Remove.
1967 (add_filename_language): Use VEC_safe_push.
1968 (set_ext_lang_command, info_ext_lang_command)
1969 (deduce_language_from_filename): Use VEC_iterate.
1970 (init_filename_language_table): Use VEC_empty.
1971
1972 2016-06-23 Tom Tromey <tom@tromey.com>
1973
1974 * python/python.c (gdbpy_parameter): Now static.
1975 * python/python-internal.h (gdbpy_parameter): Don't declare.
1976
1977 2016-06-23 Tom Tromey <tom@tromey.com>
1978
1979 PR gdb/16483:
1980 * python/lib/gdb/command/frame_filters.py
1981 (InfoFrameFilter.list_frame_filters): Rename to print_list. Print
1982 nothing if no filters found. Return value indicating whether
1983 filters were printed.
1984 (InfoFrameFilter.print_list): Remove.
1985 (InfoFrameFilter.invoke): Print message if no frame filters
1986 found.
1987
1988 2016-06-21 Walfred Tedeschi <walfred.tedeschi@intel.com>
1989
1990 * f-valprint.c (f_val_print): Add field names for printing
1991 derived types fields.
1992
1993 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1994
1995 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Fix typo
1996 in name of last-break regset.
1997
1998 2016-06-21 Pedro Alves <palves@redhat.com>
1999
2000 * fork-child.c (fork_inferior): Switch the child to the main UI
2001 right after vfork. Save/restore the current UI in the parent.
2002 Flush outputs of the main UI instead of the current UI.
2003
2004 2016-06-21 Pedro Alves <palves@redhat.com>
2005
2006 * breakpoint.c (watchpoint_check): Send watchpoint-deleted output
2007 to all UIs.
2008
2009 2016-06-21 Pedro Alves <palves@redhat.com>
2010
2011 * NEWS: Mention support for running interpreters on separate
2012 UIs and the new new-ui command.
2013
2014 2016-06-21 Pedro Alves <palves@redhat.com>
2015
2016 * interps.c (set_top_level_interpreter): New function, factored
2017 out from captured_main.
2018 (interpreter_completer): Make extern.
2019 * interps.h (set_top_level_interpreter, interpreter_completer):
2020 New declarations.
2021 (captured_main): Use set_top_level_interpreter.
2022 * top.c [!O_NOCTTY] (O_NOCTTY): Define as 0.
2023 (open_terminal_stream, new_ui_command): New functions.
2024 (init_main): Install the "new-ui" command.
2025
2026 2016-06-21 Pedro Alves <palves@redhat.com>
2027
2028 * cli/cli-script.c (read_next_line): Adjust to per-UI stdin.
2029 (read_command_lines): Use input_interactive_p instead of
2030 input_from_terminal_p.
2031 * defs.h (struct ui): Forward declare.
2032 (input_from_terminal_p): Rename to ...
2033 (input_interactive_p): ... this.
2034 * event-top.c (stdin_event_handler): Pass 0 as from_tty argument
2035 to quit_command.
2036 (command_handler): Adjust to per-UI stdin.
2037 (handle_line_of_input): Adjust to per-UI stdin and use
2038 input_interactive_p instead of ISATTY and input_from_terminal_p.
2039 (gdb_readline_no_editing_callback): Adjust to per-UI stdin.
2040 (command_line_handler): Always pass true as "from_tty" parameter
2041 of handle_line_of_input and execute_command.
2042 (async_sigterm_handler): Pass 0 as from_tty argument to
2043 quit_command.
2044 * inflow.c (interactive_mode, show_interactive_mode): Moved to ...
2045 (gdb_has_a_terminal): Don't check interactive_mode here.
2046 (_initialize_inflow): Don't install "set interactive-mode" here.
2047 * main.c (captured_command_loop): Adjust to per-UI stdin.
2048 * mi/mi-interp.c (mi_execute_command_wrapper): Adjust to per-UI
2049 stdin.
2050 * top.c (new_ui): Save the stdin stream and whether it's a tty.
2051 (dont_repeat): Adjust to per-UI stdin.
2052 (command_line_input): Adjust to per-UI stdin and to use
2053 input_interactive_p.
2054 (quit_force): Write history if any UI supports interactive input.
2055 (interactive_mode, show_interactive_mode): Move here, from
2056 inflow.c.
2057 (input_from_terminal_p): Rename to ...
2058 (input_interactive_p): ... this, and check the "interactive_mode"
2059 global instead of calling gdb_has_a_terminal.
2060 (_initialize_top): Install "set interactive-mode" here.
2061 * top.h (struct ui) <stdin_stream, input_interactive_p>: New
2062 fields.
2063 * utils.c (quit): Pass 0 as from_tty argument to quit_force.
2064 (defaulted_query): Adjust to per-UI stdin and to use
2065 input_interactive_p.
2066
2067 2016-06-21 Pedro Alves <palves@redhat.com>
2068
2069 * event-top.c (stdin_event_handler): Don't quit gdb if it was a
2070 secondary UI's input stream that closed. Instead, just delete the
2071 UI.
2072
2073 2016-06-21 Pedro Alves <palves@redhat.com>
2074
2075 * event-top.c (main_ui_): Delete.
2076 (main_ui, current_ui, ui_list): No longer initialize here.
2077 * main.c (captured_main): UI initialization code factored out to
2078 new new_ui function.
2079 (gdb_main): Wrap captured_main with TRY/CATCH instead of
2080 catch_errors.
2081 * top.c (highest_ui_num): New global.
2082 (new_ui): New function.
2083 * top.h (struct ui) <num>: New field.
2084 (new_ui): New declaration.
2085
2086 2016-06-21 Pedro Alves <palves@redhat.com>
2087
2088 * cli/cli-interp.c (cli_on_normal_stop): Bail out early if there's
2089 nothing to print. Use should_print_stop_to_console.
2090 * tui/tui-interp.c (tui_on_normal_stop): Likewise.
2091
2092 2016-06-21 Pedro Alves <palves@redhat.com>
2093
2094 * breakpoint.c (new_until_break_fsm): Add 'cmd_interp' parameter.
2095 (until_break_fsm_should_stop, until_break_fsm_clean_up): Add
2096 thread parameter.
2097 (until_break_command): Pass command interpreter to thread fsm
2098 ctor.
2099 * cli/cli-interp.c (should_print_stop_to_console): Adjust.
2100 * gdbthread.h (struct thread_control_state) <command_interp>:
2101 Delete field.
2102 * infcall.c (new_call_thread_fsm): Add 'cmd_interp' parameter.
2103 Pass it down.
2104 (call_thread_fsm_should_stop): Add thread parameter.
2105 (call_function_by_hand_dummy): Pass command interpreter to thread
2106 fsm ctor. Pass thread pointer to fsm clean up method.
2107 * infcmd.c: Include interps.h.
2108 (struct step_command_fsm) <thread>: Delete field.
2109 (new_step_command_fsm): Add 'cmd_interp' parameter. Pass it down.
2110 (step_command_fsm_prepare): Remove references to fsm's thread
2111 field.
2112 (step_1): Pass command interpreter to thread
2113 fsm ctor. Pass thread pointer to fsm clean up method.
2114 (step_command_fsm_should_stop, step_command_fsm_clean_up): Add
2115 thread parameter and use it.
2116 (new_until_next_fsm): Add 'cmd_interp' parameter. Pass it down.
2117 (until_next_fsm_should_stop, until_next_fsm_clean_up): Add thread
2118 parameter and use it.
2119 (until_next_command): Pass command interpreter to thread fsm ctor.
2120 (struct finish_command_fsm) <thread>: Delete field.
2121 (finish_command_fsm_ops): Add NULL slot for should_notify_stop.
2122 (new_finish_command_fsm): Add 'cmd_interp' parameter and pass it
2123 down. Remove thread parameter and adjust.
2124 (finish_command_fsm_should_stop, finish_command_fsm_clean_up): Add
2125 thread parameter and use it.
2126 (finish_command): Pass command interpreter to thread fsm ctor.
2127 Don't pass thread.
2128 * infrun.c (follow_fork): Move thread fsm to child fork instead of
2129 command interpreter, only.
2130 (clear_proceed_status_thread): Remove reference to command_interp.
2131 (proceed): Don't record the thread's command interpreter.
2132 (clean_up_just_stopped_threads_fsms): Pass thread to fsm clean_up
2133 method.
2134 (fetch_inferior_event): Pass thread to fsm should_stop method.
2135 * thread-fsm.c (thread_fsm_ctor): Add 'cmd_interp' parameter.
2136 Store it.
2137 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
2138 parameter and pass it down.
2139 * thread-fsm.h (struct thread_fsm) <command_interp>: New field.
2140 (struct thread_fsm_ops) <clean_up, should_stop>: Add thread
2141 parameter.
2142 (thread_fsm_ctor): Add 'cmd_interp' parameter.
2143 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
2144 parameter.
2145 * thread.c (thread_cancel_execution_command): Pass thread to
2146 thread fsm clean_up method.
2147
2148 2016-06-21 Pedro Alves <palves@redhat.com>
2149
2150 * cli/cli-interp.c: Include gdbthread.h and thread-fsm.h.
2151 (should_print_stop_to_console): New function, factored out from
2152 mi_on_normal_stop_1.
2153 * cli/cli-interp.h (should_print_stop_to_console): Declare.
2154 * mi/mi-interp.c (mi_on_normal_stop_1): Use
2155 should_print_stop_to_console. Pass it the current UI's console
2156 interpreter.
2157 * mi/mi-main.c (captured_mi_execute_command): Use the
2158 INTERP_CONSOLE symbol rather than explicit "console".
2159
2160 2016-06-21 Pedro Alves <palves@redhat.com>
2161
2162 * infcmd.c (prepare_execution_command): Use
2163 all_uis_on_sync_execution_starting.
2164 * infrun.c (all_uis_on_sync_execution_starting): New function.
2165 * infrun.h (all_uis_on_sync_execution_starting): Declare.
2166
2167 2016-06-21 Pedro Alves <palves@redhat.com>
2168
2169 * annotate.c: Include top.h.
2170 (async_background_execution_p): Delete.
2171 (print_value_flags): Check the UI's prompt state rather then
2172 async_background_execution_p.
2173 * event-loop.c (start_event_loop): Set the prompt state to
2174 PROMPT_NEEDED.
2175 * event-top.c (display_gdb_prompt, async_enable_stdin)
2176 (async_disable_stdin): Check the current UI's prompt state instead
2177 of the sync_execution global.
2178 (command_line_handler): Set the prompt state to PROMPT_NEEDED
2179 before running a command, and display the prompt if still needed
2180 afterwards.
2181 * infcall.c (struct call_thread_fsm) <waiting_ui>: New field.
2182 (new_call_thread_fsm): New parameter 'waiting_ui'. Store it.
2183 (call_thread_fsm_should_stop): Set the prompt state to
2184 PROMPT_NEEDED.
2185 (run_inferior_call): Adjust to temporarily set the prompt state to
2186 PROMPT_BLOCKED instead of using the sync_execution global.
2187 (call_function_by_hand_dummy): Pass the current UI to
2188 new_call_thread_fsm.
2189 * infcmd.c: Include top.h.
2190 (continue_1): Check the current UI's prompt state instead of the
2191 sync_execution global.
2192 (continue_command): Validate global execution state before calling
2193 prepare_execution_command.
2194 (step_1): Call all_uis_check_sync_execution_done.
2195 (attach_post_wait): Don't call async_enable_stdin here. Remove
2196 reference to sync_execution.
2197 * infrun.c (sync_execution): Delete global.
2198 (follow_fork_inferior)
2199 (reinstall_readline_callback_handler_cleanup): Check the current
2200 UI's prompt state instead of the sync_execution global.
2201 (check_curr_ui_sync_execution_done)
2202 (all_uis_check_sync_execution_done): New functions.
2203 (fetch_inferior_event): Call all_uis_check_sync_execution_done
2204 instead of trying to determine whether the global sync execution
2205 changed.
2206 (handle_no_resumed): Check the prompt state of all UIs.
2207 (normal_stop): Emit the no unwait-for even to all PROMPT_BLOCKED
2208 UIs. Emit the "Switching to" notification to all UIs. Enable
2209 stdin in all UIs.
2210 * infrun.h (sync_execution): Delete.
2211 (all_uis_check_sync_execution_done): Declare.
2212 * main.c (captured_command_loop): Don't call
2213 interp_pre_command_loop if the prompt is blocked.
2214 (catch_command_errors, catch_command_errors_const): Adjust.
2215 (captured_main): Set the initial prompt state to PROMPT_NEEDED.
2216 * mi/mi-interp.c (display_mi_prompt): Set the prompt state to
2217 PROMPTED.
2218 (mi_interpreter_resume): Don't clear sync_execution. Remove hack
2219 comment.
2220 (mi_execute_command_input_handler): Set the prompt state to
2221 PROMPT_NEEDED before executing the command, and only display the
2222 prompt if the prompt state is PROMPT_NEEDED afterwards.
2223 (mi_on_resume_1): Adjust to check the prompt state.
2224 * target.c (target_terminal_inferior): Adjust to check the prompt
2225 state.
2226 * top.c (wait_sync_command_done, maybe_wait_sync_command_done)
2227 (execute_command): Check the current UI's prompt state instead of
2228 sync_execution.
2229 * top.h (enum prompt_state): New.
2230 (struct ui) <prompt_state>: New field.
2231 (ALL_UIS): New macro.
2232
2233 2016-06-21 Pedro Alves <palves@redhat.com>
2234
2235 * top.c (gdb_secondary_prompt_depth): Delete.
2236 (gdb_in_secondary_prompt_p): Add ui parameter. Use it.
2237 (gdb_readline_wrapper_cleanup, gdb_readline_wrapper): Adjust to
2238 per-UI gdb_secondary_prompt_depth.
2239 * top.h (struct ui) <secondary_prompt_depth>: New field.
2240
2241 2016-06-21 Pedro Alves <palves@redhat.com>
2242
2243 * cli/cli-interp.c (cli_interpreter_pre_command_loop): New
2244 function.
2245 (cli_interp_procs): Install it instead of cli_command_loop.
2246 * cli/cli-interp.h (cli_interpreter_pre_command_loop): Declare.
2247 * event-top.c (cli_command_loop): Delete.
2248 * interps.c (interp_new): Remove reference to command_loop_proc.
2249 (current_interp_command_loop): Delete.
2250 (interp_pre_command_loop): New function.
2251 (interp_command_loop_ftype): Delete.
2252 * interps.h (interp_pre_command_loop_ftype): New typedef.
2253 (struct interp_procs) <command_loop_proc>: Delele field.
2254 <pre_command_loop_proc>: New field.
2255 (current_interp_command_loop): Delete declaration.
2256 (interp_pre_command_loop): New declaration.
2257 * main.c (captured_command_loop): Call interp_pre_command_loop
2258 instead of current_interp_command_loop and start an event loop.
2259 * mi/mi-interp.c (mi_command_loop): Delete.
2260 (mi_interpreter_pre_command_loop): New.
2261 (mi_interp_procs): Update.
2262 * tui/tui-interp.c (tui_interp_procs): Install
2263 cli_interpreter_pre_command_loop instead of cli_command_loop.
2264
2265 2016-06-21 Pedro Alves <palves@redhat.com>
2266
2267 * interps.c (current_interpreter): New function.
2268 * interps.h (current_interpreter): New declaration.
2269 * mi/mi-cmds.h (raw_stdout): Delete declaration.
2270 * mi/mi-common.h (struct mi_interp) <raw_stdout,
2271 saved_raw_stdout>: New field.
2272 * mi/mi-interp.c (display_mi_prompt): New parameter 'mi'. Adjust
2273 to per-UI raw_stdout.
2274 (mi_interpreter_init): Adjust to per-UI raw_stdout.
2275 (mi_on_sync_execution_done, mi_execute_command_input_handler)
2276 (mi_command_loop): Pass MI instance to display_mi_prompt.
2277 (mi_on_normal_stop_1, mi_output_running_pid, mi_on_resume_1)
2278 (mi_on_resume): Adjust to per-UI raw_stdout.
2279 (saved_raw_stdout): Delete.
2280 (mi_set_logging): Adjust to per-UI raw_stdout and
2281 saved_raw_stdout.
2282 * mi/mi-main.c (raw_stdout): Delete.
2283 (mi_cmd_gdb_exit, captured_mi_execute_command)
2284 (mi_print_exception, mi_load_progress): Adjust to per-UI
2285 raw_stdout.
2286 (print_diff_now, mi_print_timing_maybe): New ui_file parameter.
2287 Pass it along.
2288 (print_diff): New ui_file parameter. Send output there instead of
2289 raw_stdout.
2290 * mi/mi-main.h (struct ui_file): Forward declare.
2291 (mi_print_timing_maybe): Add ui_file parameter.
2292
2293 2016-06-21 Pedro Alves <palves@redhat.com>
2294
2295 * mi/mi-interp.c (display_mi_prompt): New function.
2296
2297 2016-06-21 Pedro Alves <palves@redhat.com>
2298
2299 * target.c (target_terminal_inferior): Bail out after
2300 unregistering input_fd if not on the main UI.
2301 (target_terminal_ours): Bail out after registering input_fd if not
2302 on the main UI.
2303 (target_terminal_ours_for_output): Bail out if not on the main UI.
2304
2305 2016-06-21 Pedro Alves <palves@redhat.com>
2306
2307 * event-top.c (restore_ui_cleanup): Make extern.
2308 * infrun.c (fetch_inferior_event): Always switch to the main UI.
2309 * top.h (restore_ui_cleanup): Declare.
2310
2311 2016-06-21 Pedro Alves <palves@redhat.com>
2312
2313 PR mi/20034
2314 * cli/cli-interp.c: Include cli-interp.h and event-top.h.
2315 (cli_interpreter_resume): Pass 1 to gdb_setup_readline. Set the
2316 UI's input_handler here.
2317 (cli_interpreter_supports_command_editing): New function.
2318 (cli_interp_procs): Install it.
2319 * cli/cli-interp.h: New file.
2320 * event-top.c (async_command_editing_p): Rename to ...
2321 (set_editing_cmd_var): ... this.
2322 (change_line_handler): Add parameter 'editing', and use it. Bail
2323 early if the interpreter doesn't support editing. Don't touch
2324 readline state if editing is off.
2325 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
2326 (gdb_rl_callback_handler_reinstall): Assert the current UI is the
2327 main UI.
2328 (display_gdb_prompt): Don't call gdb_rl_callback_handler_remove if
2329 not using readline. Check whether the current UI is using command
2330 editing instead of checking the async_command_editing_p global.
2331 (set_async_editing_command): Delete.
2332 (gdb_setup_readline): Add 'editing' parameter. Only allow editing
2333 on the main UI. Don't touch readline state if editing is off.
2334 (gdb_disable_readline): Don't touch readline state if editing is
2335 off.
2336 * event-top.h (gdb_setup_readline): Add 'int' parameter.
2337 (set_async_editing_command): Delete declaration.
2338 (change_line_handler, command_line_handler): Declare.
2339 (async_command_editing_p): Rename to ...
2340 (set_editing_cmd_var): ... this.
2341 * infrun.c (reinstall_readline_callback_handler_cleanup): Check
2342 whether the current UI has editing enabled rather than checking
2343 the async_command_editing_p global.
2344 * interps.c (interp_supports_command_editing): New function.
2345 * interps.h (interp_supports_command_editing_ftype): New typedef.
2346 (struct interp_procs) <supports_command_editing_proc>: New field.
2347 (interp_supports_command_editing): Declare.
2348 * mi/mi-interp.c (mi_interpreter_resume): Pass 0 to
2349 gdb_setup_readline. Don't clear the async_command_editing_p
2350 global. Update comments.
2351 * top.c (gdb_readline_wrapper_line, gdb_readline_wrapper): Check
2352 whether the current UI has editing enabled rather than checking
2353 the async_command_editing_p global. Don't touch readline state if
2354 editing is off.
2355 (undo_terminal_modifications_before_exit): Switch to the main UI.
2356 Unconditionally call gdb_disable_readline.
2357 (set_editing): New function.
2358 (show_async_command_editing_p): Rename to ...
2359 (show_editing): ... this. Show the state of the current UI.
2360 (_initialize_top): Adjust.
2361 * top.h (struct ui) <command_editing>: New field.
2362 * tui/tui-interp.c: Include cli/cli-interp.h.
2363 (tui_resume): Pass 1 to gdb_setup_readline. Set the UI's
2364 input_handler.
2365 (tui_interp_procs): Install
2366 cli_interpreter_supports_command_editing.
2367 * tui/tui-io.c (tui_getc): Check whether the current UI has
2368 editing enabled rather than checking the async_command_editing_p
2369 global.
2370
2371 2016-06-21 Pedro Alves <palves@redhat.com>
2372
2373 * top.c: Call gen_ret_current_ui_field_ptr for current_uiout.
2374 * top.h (struct ui) <m_current_uiout>: New field.
2375 * ui-out.c (current_uiout): Delete.
2376 * ui-out.h (current_uiout): Delete.
2377 (current_ui_current_uiout_ptr): New declaration.
2378 (current_uiout): Reimplement as wrapper around
2379 current_ui_current_uiout_ptr.
2380
2381 2016-06-21 Pedro Alves <palves@redhat.com>
2382
2383 * ui-out.c (default_ui_out_impl): Delete.
2384 (def_uiout): Delete.
2385 (current_uiout): Set to NULL.
2386 (default_table_begin, default_table_body, default_table_end)
2387 (default_table_header, default_begin, default_end)
2388 (default_field_int, default_field_skip, default_field_string)
2389 (default_field_fmt, default_spaces, default_text, default_message)
2390 (default_wrap_hint, default_flush, default_data_destroy): Delete.
2391
2392 2016-06-21 Pedro Alves <palves@redhat.com>
2393
2394 * event-top.c (gdb_setup_readline): Pass the UI's outstream and
2395 errstream to stdout_fileopen and stderr_fileopen.
2396 * exceptions.c: Include top.h.
2397 (print_flush): Open the current UI's outstream file descriptor,
2398 instead of hardcoding file descriptor 1.
2399 * main.c (captured_main): Save the main UI's out and error
2400 streams. Adjust stderr_fileopen call.
2401 * top.h (struct ui) <outstream, errstream>: New fields.
2402 * ui-file.c (stderr_fileopen): Add stream parameter. Use it
2403 instead of stderr.
2404 * ui-file.h (stderr_fileopen): Add stream parameter and update
2405 comment.
2406
2407 2016-06-21 Pedro Alves <palves@redhat.com>
2408
2409 * event-top.c (input_fd): Delete.
2410 (stdin_event_handler): Switch to the UI whose input descriptor got
2411 the event. Adjust to per-UI input_fd.
2412 (gdb_setup_readline): Don't set the input_fd global. Adjust to
2413 per-UI input_fd.
2414 (gdb_disable_readline): Adjust to per-UI input_fd.
2415 * event-top.h (input_fd): Delete declaration.
2416 * linux-nat.c (linux_nat_terminal_inferior): Don't remove input_fd
2417 from the event-loop here.
2418 (linux_nat_terminal_ours): Don't register input_fd in the
2419 event-loop here.
2420 * main.c (captured_main): Adjust to per-UI input_fd.
2421 * remote.c (remote_terminal_inferior): Don't remove input_fd from
2422 the event-loop here.
2423 (remote_terminal_ours): Don't register input_fd in the event-loop
2424 here.
2425 * target.c: Include top.h and event-top.h.
2426 (target_terminal_inferior): Remove input_fd from the event-loop
2427 here.
2428 (target_terminal_ours): Register input_fd in the event-loop.
2429 * top.h (struct ui) <input_fd>: New field.
2430
2431 2016-06-21 Pedro Alves <palves@redhat.com>
2432
2433 * cli/cli-script.c (execute_user_command, read_next_line)
2434 (read_next_line): Adjust to per-UI instream.
2435 * event-top.c (stdin_event_handler, command_handler)
2436 (handle_line_of_input, command_line_handler)
2437 (gdb_readline_no_editing_callback, async_sigterm_handler)
2438 (gdb_setup_readline): Likewise.
2439 * inflow.c: Include top.h.
2440 (gdb_has_a_terminal, child_terminal_init_with_pgrp)
2441 (gdb_save_tty_state, child_terminal_inferior)
2442 (child_terminal_ours_1, copy_terminal_info): Use the main UI.
2443 (initialize_stdin_serial): Adjust to per-UI instream.
2444 * main.c (captured_command_loop, captured_main): Adjust to per-UI
2445 instream.
2446 * mi/mi-interp.c (mi_execute_command_wrapper): Likewise.
2447 * python/python.c (python_interactive_command): Likewise.
2448 * terminal.h (struct ui): Forward declare.
2449 (initialize_stdin_serial): Add struct ui parameter.
2450 * top.c (instream): Delete.
2451 (do_restore_instream_cleanup, read_command_file, dont_repeat)
2452 (gdb_readline_no_editing, command_line_input)
2453 (input_from_terminal_p, gdb_init): Adjust to per-UI instream.
2454 * top.h (struct ui) <instream>: New field.
2455 (instream): Delete declaration.
2456 (quit): Adjust to per-UI instream.
2457
2458 2016-06-21 Pedro Alves <palves@redhat.com>
2459
2460 * event-loop.c: Include top.h.
2461 (invoke_async_signal_handlers): Switch to the main UI.
2462 * event-top.c (main_ui_): Update comment.
2463 (main_ui): New global.
2464 * top.h (main_ui): Declare.
2465
2466 2016-06-21 Pedro Alves <palves@redhat.com>
2467
2468 * cli/cli-interp.c (cli_interp): Delete.
2469 (as_cli_interp): New function.
2470 (cli_on_normal_stop, cli_on_signal_received)
2471 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
2472 (cli_on_no_history): Send output to all CLI UIs.
2473 (cli_on_sync_execution_done, cli_on_command_error): Skip output if
2474 the top level interpreter is not a CLI.
2475 (cli_interpreter_init): Don't set cli_interp or install observers
2476 here.
2477 (_initialize_cli_interp): Install observers here.
2478 * event-top.c (main_ui_, ui_list): New globals.
2479 (current_ui): Point to main_ui_.
2480 (restore_ui_cleanup, switch_thru_all_uis_init)
2481 (switch_thru_all_uis_cond, switch_thru_all_uis_next): New
2482 functions.
2483 * mi/mi-interp.c (as_mi_interp): New function.
2484 (mi_interpreter_init): Don't install observers here.
2485 (mi_on_sync_execution_done): Skip output if the top level
2486 interpreter is not a MI.
2487 (mi_new_thread, mi_thread_exit, mi_record_changed)
2488 (mi_inferior_added, mi_inferior_appeared, mi_inferior_exit)
2489 (mi_inferior_removed): Send output to all MI UIs.
2490 (find_mi_interpreter, mi_interp_data): Delete.
2491 (find_mi_interp): New function.
2492 (mi_on_signal_received, mi_on_end_stepping_range)
2493 (mi_on_signal_exited, mi_on_exited, mi_on_no_history): Send output
2494 to all MI UIs.
2495 (mi_on_normal_stop): Rename to ...
2496 (mi_on_normal_stop_1): ... this.
2497 (mi_on_normal_stop): Reimplement, sending output to all MI UIs.
2498 (mi_traceframe_changed, mi_tsv_created, mi_tsv_deleted)
2499 (mi_tsv_modified, mi_breakpoint_created, mi_breakpoint_deleted)
2500 (mi_breakpoint_modified, mi_output_running_pid): Send output to
2501 all MI UIs.
2502 (mi_on_resume): Rename to ...
2503 (mi_on_resume_1): ... this. Don't handle infcalls here.
2504 (mi_on_resume): Reimplement, sending output to all MI UIs.
2505 (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
2506 (mi_memory_changed): Send output to all MI UIs.
2507 (report_initial_inferior): Install observers here.
2508 * top.h (struct ui) <next>: New field.
2509 (ui_list): Declare.
2510 (struct switch_thru_all_uis): New.
2511 (switch_thru_all_uis_init, switch_thru_all_uis_cond)
2512 (switch_thru_all_uis_next): Declare.
2513 (SWITCH_THRU_ALL_UIS): New macro.
2514 * tui/tui-interp.c (tui_interp): Delete global.
2515 (as_tui_interp): New function.
2516 (tui_on_normal_stop, tui_on_signal_received)
2517 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
2518 (tui_on_no_history): Send output to all TUI UIs.
2519 (tui_on_sync_execution_done, tui_on_command_error): Skip output if
2520 the top level interpreter is not a TUI.
2521 (tui_init): Don't set tui_interp or install observers here.
2522 (_initialize_tui_interp): Install observers here.
2523
2524 2016-06-21 Pedro Alves <palves@redhat.com>
2525
2526 * cli/cli-interp.c (cli_uiout): Delete, moved into ...
2527 (struct cli_interp): ... this new structure.
2528 (cli_on_normal_stop, cli_on_signal_received)
2529 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
2530 (cli_on_no_history): Use interp_ui_out.
2531 (cli_interpreter_init): If top level, set the cli_interp global.
2532 (cli_interpreter_init): Return the interp's data instead of NULL.
2533 (cli_interpreter_resume, cli_interpreter_exec, cli_ui_out): Adjust
2534 to cli_uiout being in the interpreter's data.
2535 (cli_interp_procs): New, factored out from _initialize_cli_interp.
2536 (cli_interp_factory): New function.
2537 (_initialize_cli_interp): Call interp_factory_register.
2538 * interps.c (get_interp_info): New, factored out from ...
2539 (get_current_interp_info): ... this.
2540 (interp_new): Add parameter 'data'. Store it.
2541 (struct interp_factory): New function.
2542 (interp_factory_p): New typedef. Define a VEC_P.
2543 (interpreter_factories): New global.
2544 (interp_factory_register): New function.
2545 (interp_add): Add 'ui' parameter. Use get_interp_info and
2546 interp_lookup_existing.
2547 (interp_lookup): Rename to ...
2548 (interp_lookup_existing): ... this. Add 'ui' parameter. Don't
2549 check for NULL or empty name here.
2550 (interp_lookup): Add 'ui' parameter and reimplement.
2551 (interp_set_temp, interpreter_exec_cmd): Adjust.
2552 (interpreter_completer): Complete on registered interpreter
2553 factories instead of interpreters.
2554 * interps.h (interp_factory_func): New typedef.
2555 (interp_factory_register): Declare.
2556 (interp_new, interp_add): Adjust.
2557 (interp_lookup): Declare.
2558 * main.c (captured_main): Adjust.
2559 * mi/mi-interp.c (mi_cmd_interpreter_exec): Adjust.
2560 (mi_interp_procs): New, factored out from
2561 _initialize_mi_interp.
2562 (mi_interp_factory): New function.
2563 * python/python.c (execute_gdb_command): Adjust.
2564 * tui/tui-interp.c (tui_init): If top level, set the tui_interp
2565 global.
2566 (tui_interp_procs): New.
2567 (tui_interp_factory): New function.
2568 (_initialize_tui_interp): Call interp_factory_register.
2569
2570 2016-06-21 Pedro Alves <palves@redhat.com>
2571
2572 * breakpoint.c (bpstat_do_actions_1): Access the current UI's
2573 async field instead of the interpreter_async global.
2574 * cli/cli-script.c (execute_user_command, while_command)
2575 (if_command, script_from_file): Likewise.
2576 * compile/compile.c: Include top.h instead of interps.h.
2577 (compile_file_command, compile_code_command)
2578 (compile_print_command): Access the current UI's async field
2579 instead of the interpreter_async global.
2580 * guile/guile.c: Include top.h instead of interps.h.
2581 (guile_repl_command, guile_command, gdbscm_execute_gdb_command):
2582 Access the current UI's async field instead of the
2583 interpreter_async global.
2584 * guile/scm-ports.c: Include top.h instead of interps.h.
2585 (ioscm_with_output_to_port_worker): Access the current UI's async
2586 field instead of the interpreter_async global.
2587 * inf-loop.c (inferior_event_handler): Likewise.
2588 * infcall.c (run_inferior_call): Likewise.
2589 * infrun.c (reinstall_readline_callback_handler_cleanup)
2590 (fetch_inferior_event): Likewise.
2591 * interps.c (interpreter_async): Delete.
2592 (struct ui_interp_info): New.
2593 (get_current_interp_info): New function.
2594 (interp_list, current_interpreter, top_level_interpreter_ptr):
2595 Delete.
2596 (interp_add, interp_set, interp_lookup, interp_ui_out)
2597 (current_interp_set_logging, interp_set_temp)
2598 (current_interp_named_p): Adjust to per-UI interpreters.
2599 (command_interpreter): Delete.
2600 (command_interp, current_interp_command_loop, interp_quiet_p)
2601 (interp_exec, interpreter_exec_cmd, interpreter_completer)
2602 (top_level_interpreter, top_level_interpreter_data): Adjust to
2603 per-UI interpreters.
2604 * interps.h (interpreter_async): Delete.
2605 * main.c (captured_command_loop): Access the current UI's async
2606 field instead of the interpreter_async global.
2607 * python/python.c (python_interactive_command, python_command)
2608 (execute_gdb_command): Likewise.
2609 * top.c (maybe_wait_sync_command_done, execute_command_to_string):
2610 Access the current UI's async field instead of the
2611 interpreter_async global.
2612 * top.h (struct tl_interp_info): Forward declare.
2613 (struct ui) <interp_info, async>: New fields.
2614
2615 2016-06-21 Pedro Alves <palves@redhat.com>
2616
2617 * main.c (gdb_stdout, gdb_stderr, gdb_stdlog, gdb_stdin): Delete
2618 globals.
2619 (gen_ret_current_ui_field_ptr): New macro. Use it to generate
2620 wrappers for gdb_stdout, gdb_stderr, gdb_stdlog and gdb_stdin.
2621 * top.h (struct ui) <m_gdb_stdout, m_gdb_stdin, m_gdb_stderr,
2622 m_gdb_stdlog>: New fields.
2623 (current_ui_gdb_stdout_ptr, current_ui_gdb_stdin_ptr)
2624 (current_ui_gdb_stderr_ptr, current_ui_gdb_stdlog_ptr): Declare.
2625 (gdb_stdout, gdb_stdin, gdb_stderr, gdb_stdlog): Reimplement as
2626 macros.
2627
2628 2016-06-21 Pedro Alves <palves@redhat.com>
2629
2630 * event-top.c: Update readline-related comments.
2631 (input_handler, call_readline): Delete globals.
2632 (gdb_rl_callback_handler): Call the current UI's input_handler
2633 method.
2634 (change_line_handler): Adjust to set current UI's properties
2635 instead of globals.
2636 (current_ui_, current_ui): New globals.
2637 (get_command_line_buffer): Rewrite to refer to the current UI.
2638 (stdin_event_handler): Adjust to call the call_readline method of
2639 the current UI.
2640 (gdb_readline_no_editing_callback): Adjust to call the current UI's
2641 input_handler method.
2642 (gdb_setup_readline): Adjust to set current UI's properties
2643 instead of globals.
2644 * event-top.h (call_readline, input_handler): Delete declarations.
2645 * mi/mi-interp.c (mi_interpreter_resume): Adjust to set current
2646 UI's properties instead of globals.
2647 * top.c (gdb_readline_wrapper_cleanup): Adjust to set current UI's
2648 properties instead of globals.
2649 (gdb_readline_wrapper): Adjust to call and set current UI's
2650 methods instead of globals.
2651 * top.h: Include buffer.h and event-loop.h.
2652 (struct ui): New struct.
2653 (current_ui): New declaration.
2654
2655 2016-06-21 Pedro Alves <palves@redhat.com>
2656
2657 * ada-lang.c (ada_exception_name_addr_1): Add comment.
2658 (print_it_exception): Select the current frame.
2659
2660 2016-06-17 Yan-Ting Lin <currygt52@gmail.com>
2661
2662 * Makefile.in (ALL_TARGET_OBS): Add nds32-tdep.o.
2663 (HFILES_NO_SRCDIR): Add nds32-tdep.h.
2664 (ALLDEPFILES): Add nds32-tdep.c.
2665 * NEWS: Mention new NDS32 port.
2666 * configure.tgt: Add NDS32.
2667 * nds32-tdep.c: New file.
2668 * nds32-tdep.h: New file.
2669 * features/Makefile (XMLTOC): Add nds32.xml.
2670 * features/nds32-core.xml: New file.
2671 * features/nds32-fpu.xml: New file.
2672 * features/nds32-system.xml: New file.
2673 * features/nds32.c: New file (generated).
2674 * features/nds32.xml: New file.
2675
2676 2016-06-14 John Baldwin <jhb@FreeBSD.org>
2677
2678 * v850-tdep.c (v850_use_struct_convention): Trim type length checks.
2679
2680 2016-06-14 John Baldwin <jhb@FreeBSD.org>
2681
2682 * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch.
2683
2684 2016-06-14 John Baldwin <jhb@FreeBSD.org>
2685
2686 * rs6000-tdep.c (ppc_process_record_op31): Initialize ra.
2687
2688 2016-06-13 Nick Clifton <nickc@redhat.com>
2689
2690 * gdbtypes.c (replace_type): Fix assertion.
2691
2692 2016-06-10 Tom Tromey <tom@tromey.com>
2693
2694 * gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
2695 (arch_boolean_type, arch_float_type, arch_complex_type)
2696 (arch_flags_type, append_flags_type_field)
2697 (append_flags_type_flag, arch_composite_type)
2698 (append_composite_type_field_raw)
2699 (append_composite_type_field_aligned)
2700 (append_composite_type_field): Make "name" parameter const.
2701 * gdbtypes.h (arch_type, arch_integer_type, arch_character_type)
2702 (arch_boolean_type, arch_float_type, arch_complex_type)
2703 (append_composite_type_field, append_composite_type_field_aligned)
2704 (append_composite_type_field_raw, arch_flags_type)
2705 (append_flags_type_field, append_flags_type_flag): Constify.
2706
2707 2016-06-10 Tom Tromey <tom@tromey.com>
2708
2709 PR rust/20110:
2710 * rust-exp.y (lex_number): Don't truncate large numbers to i32.
2711
2712 2016-06-10 Tom Tromey <tom@tromey.com>
2713
2714 * Makefile.in (COMMON_OBS): Remove rust-exp.o.
2715 (YYFILES): Add rust-exp.c.
2716 (YYOBJ): Add rust-exp.o.
2717 (local-maintainer-clean): Remove rust-exp.c.
2718
2719 2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
2720
2721 * NEWS: Mention that GDB now supports a negative repeat count in
2722 the 'x' command.
2723 * printcmd.c (decode_format): Allow '-' in the parameter
2724 "string_ptr" to accept a negative repeat count.
2725 (find_instruction_backward): New function.
2726 (read_memory_backward): New function.
2727 (integer_is_zero): New function.
2728 (find_string_backward): New function.
2729 (do_examine): Use new functions to examine memory backward.
2730 (_initialize_printcmd): Mention that 'x' command supports a negative
2731 repeat count.
2732
2733 2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
2734
2735 * MAINTAINERS (Write After Approval): Add Toshihito Kikuchi.
2736
2737 2016-06-09 Tom Tromey <tom@tromey.com>
2738
2739 PR python/19819:
2740 * python/py-xmethods.c (invoke_method_name)
2741 (py_get_result_type_method_name, py_invoke_method_name): Remove.
2742 (gdbpy_initialize_xmethods): Don't initialize
2743 py_invoke_method_name, py_get_result_type_method_name.
2744
2745 2016-06-07 Simon Marchi <simon.marchi@ericsson.com>
2746
2747 * mi/mi-interp.c (mi_record_changed): Add missing braces.
2748
2749 2016-06-07 Bernhard Heckel <bernhard.heckel@intel.com>
2750
2751 * findvar.c (follow_static_link): Check for valid pointer.
2752
2753 2016-06-06 Simon Marchi <simon.marchi@ericsson.com>
2754
2755 * NEWS: Mention the new fields in =record-started.
2756 * common/btrace-common.h (btrace_format_short_string): New function
2757 declaration.
2758 * common/btrace-common.c (btrace_format_short_string): New
2759 function.
2760 * mi/mi-interp.c (mi_record_changed): Output method and format
2761 fields in the =record-started record.
2762 * record-btrace.c (record_btrace_open): Adapt record_changed
2763 notification.
2764 * record-full.c (record_full_open): Likewise.
2765 * record.c (cmd_record_stop): Likewise.
2766
2767 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
2768
2769 * windows-nat.c (handle_output_debug_string): Return type of
2770 gdb_signal_from_host() is gdb_signal, not an int.
2771 (windows_get_exec_module_filename): Add pointer casts for C++.
2772
2773 2016-06-02 Tom Tromey <tom@tromey.com>
2774
2775 PR python/18984:
2776 * python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG.
2777
2778 2016-06-01 Pedro Alves <palves@redhat.com>
2779
2780 * remote-fileio.c (remote_fio_ctrl_c_flag, remote_fio_sa)
2781 (remote_fio_osa)
2782 (remote_fio_ofunc, remote_fileio_sig_init, remote_fileio_sig_set)
2783 (remote_fileio_sig_exit, remote_fileio_ctrl_c_signal_handler):
2784 Delete.
2785 (remote_fileio_o_quit_handler): New global.
2786 (remote_fileio_quit_handler): New function.
2787 (remote_fileio_reply): Check the quit flag instead of the custom
2788 'remote_fio_ctrl_c_flag' flag. Restore the quit handler instead
2789 of changing the SIGINT handler.
2790 (do_remote_fileio_request): Override the quit handler instead of
2791 changing the SIGINT handler.
2792
2793 2016-06-01 Nick Clifton <nickc@redhat.com>
2794
2795 * common/common-utils.c (xmalloc_failed): New function. Provided
2796 so that the version in libiberty is not linked in.
2797
2798 2016-06-01 Markus Metzger <markus.t.metzger@intel.com>
2799
2800 * infcmd.c (skip_finish_frames): New.
2801 (finish_command): Call skip_finish_frames.
2802
2803 2016-06-01 Yao Qi <yao.qi@linaro.org>
2804
2805 PR remote/19998
2806 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Call
2807 quit_serial_event_set.
2808
2809 2016-06-01 Joel Brobecker <brobecker@adacore.com>
2810
2811 GDB 7.11.1 released.
2812
2813 2016-05-31 Martin Galvan <martin.galvan@tallertechnologies.com>
2814
2815 PR c++/19893
2816 * dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer,
2817 fetch_const_value_from_synthetic_pointer): New functions.
2818 (indirect_pieced_value): Move lower half to indirect_synthetic_pointer.
2819 (pieced_value_funcs): Implement coerce_ref.
2820 * valops.c (value_addr): Call coerce_ref for synthetic references.
2821 * valprint.c (valprint_check_validity): Return true for synthetic
2822 references. Also, don't show "<synthetic pointer>" if they reference
2823 addressable values.
2824 (generic_val_print_ref): Handle synthetic references. Also move some
2825 code to print_ref_address.
2826 (print_ref_address, get_value_addr_contents): New functions.
2827
2828 2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2829
2830 PR c++/15231
2831 * dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID.
2832 (process_psymtab_comp_unit_reader, read_func_scope): Adjust callers.
2833 (read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block.
2834 (read_call_site_scope): Adjust callers.
2835 (dwarf2_get_pc_bounds): Implement pc_bounds_invalid.
2836 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
2837
2838 2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2839
2840 Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
2841 * dwarf2read.c (enum pc_bounds_kind) New.
2842 (dwarf2_get_pc_bounds): Use it in the declaration.
2843 (process_psymtab_comp_unit_reader): Adjust caller. Rename has_pc_info
2844 to cu_bounds_kind.
2845 (read_func_scope, read_lexical_block_scope, read_call_site_scope):
2846 Adjust callers.
2847 (dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
2848 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
2849
2850 2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2851
2852 * NEWS (QCatchSyscalls): Remove the parameter. Include ...
2853 (QCatchSyscalls:1 in qSupported) ... this separate entry which got
2854 deleted.
2855
2856 2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2857
2858 * NEWS (N stop reply): Remove empty line.
2859
2860 2016-05-28 Alan Modra <amodra@gmail.com>
2861
2862 * compile/compile-object-load.c (link_callbacks_multiple_definition,
2863 link_callbacks_warning, link_callbacks_undefined_symbol,
2864 link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
2865 link_callbacks_reloc_dangerous,
2866 link_callbacks_unattached_reloc): Return void.
2867
2868 2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
2869
2870 * opencl-lang.c (evaluate_subexp_opencl): If
2871 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to
2872 the returned value in the STRUCTOP_STRUCT case.
2873
2874 2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
2875
2876 * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS
2877 mode, forward the VALUE_LVAL attribute to the returned value in
2878 the STRUCTOP_PTR case.
2879
2880 2016-05-25 Tom Tromey <tom@tromey.com>
2881
2882 * python/py-value.c (value_object_as_number): Use correct spelling
2883 of HAVE_LIBPYTHON2_4.
2884
2885 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
2886
2887 * f-typeprint.c (f_type_print_base): Replace 0 by show.
2888
2889 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
2890
2891 * f-typeprint.c (f_type_print_base): Decrease show by one.
2892
2893 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
2894
2895 * f-typeprint.c (f_type_print_base): Don't print fields when show < 0.
2896
2897 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
2898
2899 * f-typeprint.c (f_type_print_base): Take print level into account.
2900
2901 2016-05-24 Tom Tromey <tom@tromey.com>
2902
2903 PR python/17386:
2904 * python/py-value.c (value_object_as_number): Add
2905 nb_inplace_floor_divide, nb_inplace_true_divide, nb_index.
2906
2907 2016-05-24 Tom Tromey <tom@tromey.com>
2908
2909 * python/py-value.c (value_object_as_number): Add
2910 nb_inplace_divide for Python 2.
2911
2912 2016-05-23 Tom Tromey <tom@tromey.com>
2913
2914 PR python/17981:
2915 * python/py-breakpoint.c (gdbpy_breakpoints): Return a new tuple
2916 when there are no breakpoints.
2917
2918 2016-05-24 Pedro Alves <palves@redhat.com>
2919
2920 PR gdb/19828
2921 * linux-nat.c (attach_proc_task_lwp_callback): Mark the lwp
2922 resumed, and add the thread to GDB's thread list.
2923
2924 2016-05-24 Pedro Alves <palves@redhat.com>
2925
2926 PR gdb/19828
2927 * linux-nat.c (get_pending_status): If the thread reported the
2928 event to the core and it's pending, use the pending status signal
2929 number.
2930
2931 2016-05-24 Pedro Alves <palves@redhat.com>
2932
2933 PR gdb/19828
2934 * linux-nat.c (lwp_lwpid_htab): New htab.
2935 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
2936 (lwp_lwpid_htab_add_lwp): New functions.
2937 (lwp_list): Tweak comment.
2938 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
2939 functions.
2940 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
2941 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
2942 (delete_lwp): Use lwp_list_remove. Remove htab too.
2943 (find_lwp_pid): Search in htab.
2944 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
2945 * linux-nat.h (struct lwp_info) <prev>: New field.
2946
2947 2016-05-24 Pedro Alves <palves@redhat.com>
2948
2949 PR gdb/19828
2950 * linux-nat.c (lwp_lwpid_htab): New htab.
2951 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
2952 (lwp_lwpid_htab_add_lwp): New functions.
2953 (lwp_list): Tweak comment.
2954 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
2955 functions.
2956 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
2957 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
2958 (delete_lwp): Use lwp_list_remove. Remove htab too.
2959 (find_lwp_pid): Search in htab.
2960 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
2961 * linux-nat.h (struct lwp_info) <prev>: New field.
2962
2963 2016-05-24 Pedro Alves <palves@redhat.com>
2964
2965 PR gdb/19828
2966 * linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core
2967 field.
2968 (linux_nat_update_thread_list): Don't fetch the core if already
2969 known.
2970
2971 2016-05-24 Pedro Alves <palves@redhat.com>
2972
2973 PR gdb/19828
2974 * linux-tdep.c (find_mapping_size): Delete.
2975 (linux_vsyscall_range_raw): Rewrite reading from
2976 /proc/PID/task/PID/maps directly instead of using
2977 gdbarch_find_memory_regions.
2978
2979 2016-05-24 Pedro Alves <palves@redhat.com>
2980
2981 PR gdb/19828
2982 * linux-nat.c (report_thread_events): New global.
2983 (linux_handle_extended_wait): Report
2984 TARGET_WAITKIND_THREAD_CREATED if thread event reporting is
2985 enabled.
2986 (wait_lwp, linux_nat_filter_event): Report all thread exits if
2987 thread event reporting is enabled. Remove comment.
2988 (filter_exit_event): New function.
2989 (linux_nat_wait_1): Use it.
2990 (linux_nat_thread_events): New function.
2991 (linux_nat_add_target): Install it as target_thread_events method.
2992
2993 2016-05-24 Yan-Ting Lin <currygt52@gmail.com>
2994
2995 * MAINTAINERS (Write After Approval): Add "Yan-Ting Lin".
2996
2997 2016-05-23 Yao Qi <yao.qi@arm.com>
2998
2999 * arch-utils.c (default_code_of_frame_writable): New function.
3000 * arch-utils.h (default_code_of_frame_writable): Declare.
3001 * arm-tdep.c (arm_code_of_frame_writable): New function.
3002 (arm_gdbarch_init): Install gdbarch method
3003 code_of_frame_writable if the target is M-profile.
3004 * frame.c (skip_unwritable_frames): New function.
3005 * frame.h (skip_unwritable_frames): Declare.
3006 * gdbarch.sh (code_of_frame_writable): New.
3007 * gdbarch.c, gdbarch.h: Re-generated.
3008 * infcmd.c (finish_command): Call skip_unwritable_frames.
3009
3010 2016-05-23 Tom Tromey <tom@tromey.com>
3011
3012 PR python/19438, PR python/18393:
3013 * python/py-objfile.c (objfpy_initialize): Initialize self->dict.
3014 * python/py-progspace.c (pspy_initialize): Initialize self->dict.
3015
3016 2016-05-23 Gary Benson <gbenson@redhat.com>
3017
3018 * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
3019 * linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
3020 Remove field.
3021 (try_thread_db_load_1): Remove td_thr_validate initialization.
3022
3023 2016-05-23 Jon Boden <jon@ubuntubsd.org> (tiny change)
3024
3025 * configure.ac: Search for libutil-freebsd as alternative to libutil.
3026 * configure: Re-generated.
3027
3028 2016-05-19 Andreas Schwab <schwab@suse.de>
3029
3030 * ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
3031 (libunwind_frame_set_descr): Likewise.
3032 (libunwind_frame_cache): Likewise.
3033 (libunwind_frame_dealloc_cache): Likewise.
3034 (libunwind_frame_sniffer): Likewise.
3035 (libunwind_search_unwind_table): Likewise.
3036 (libunwind_sigtramp_frame_sniffer): Likewise.
3037 (libunwind_get_reg_special): Likewise.
3038 (libunwind_load): Likewise.
3039 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
3040 (ia64_linux_store_register): Likewise.
3041 (ia64_linux_xfer_partial): Likewise.
3042 * ia64-tdep.c (ia64_access_reg): Likewise.
3043 (ia64_access_fpreg): Likewise.
3044 (ia64_access_rse_reg): Likewise.
3045 (ia64_access_rse_fpreg): Likewise.
3046
3047 2016-05-18 Tom Tromey <tom@tromey.com>
3048
3049 * rust-lang.c (rust_subscript): Initialize "high".
3050
3051 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
3052
3053 PR gdb/20045
3054 * mi/mi-main.c (mi_on_resume): Call target_can_async_p instead
3055 of target_is_async_p.
3056
3057 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
3058
3059 PR gdb/18077
3060 * mi/mi-main.c (run_one_inferior): Use run target to determine
3061 whether to run async or not.
3062 (mi_cmd_exec_run): Likewise.
3063
3064 2016-05-17 Tom Tromey <tom@tromey.com>
3065
3066 * std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
3067 * rust-lang.c: Don't include f-lang.h.
3068 (rust_range, rust_compute_range, rust_subscript)
3069 (rust_evaluate_subexp): Update.
3070 * rust-exp.y: Don't include f-lang.h.
3071 (ast_range, convert_ast_to_expression): Update.
3072 * parse.c (operator_length_standard): Update.
3073 * f-lang.h (enum f90_range_type): Move to expression.h.
3074 * f-exp.y: Use OP_RANGE.
3075 * expression.h (enum range_type): New enum; renamed from
3076 f90_range_type.
3077 * expprint.c: Don't include f-lang.h.
3078 (print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
3079 * eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
3080
3081 2016-05-17 Tom Tromey <tom@tromey.com>
3082
3083 * NEWS: Add Rust item.
3084
3085 2016-05-17 Tom Tromey <tom@tromey.com>
3086 Manish Goregaokar <manishsmail@gmail.com>
3087
3088 * symtab.c (symbol_find_demangled_name): Handle Rust.
3089 * symfile.c (init_filename_language_table): Treat ".rs" as Rust.
3090 * std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New
3091 constants.
3092 * rust-lang.h: New file.
3093 * rust-lang.c: New file.
3094 * rust-exp.y: New file.
3095 * dwarf2read.c (read_file_scope): Add Rust producer sniffing.
3096 (dwarf2_compute_name, read_func_scope, read_structure_type)
3097 (read_base_type, read_subrange_type, set_cu_language)
3098 (new_symbol_full, determine_prefix): Handle Rust.
3099 * defs.h (enum language) <language_rust>: New constant.
3100 * Makefile.in (SFILES): Add rust-exp.y, rust-lang.c.
3101 (COMMON_OBS): Add rust-exp.o, rust-lang.o.
3102
3103 2016-05-17 Tom Tromey <tom@tromey.com>
3104
3105 * valprint.h (struct generic_val_print_array) <array_start,
3106 array_end>: New fields.
3107 * valprint.c (generic_val_print_array): Add "decorations"
3108 parameter. Use "array_start", "array_end".
3109 (generic_val_print) <TYPE_CODE_ARRAY>: Update.
3110 * p-valprint.c (p_decorations): Update.
3111 * m2-valprint.c (m2_decorations): Update.
3112 * f-valprint.c (f_decorations): Update.
3113 * c-valprint.c (c_decorations): Update.
3114
3115 2016-05-17 Tom Tromey <tom@tromey.com>
3116
3117 * NEWS: Add "maint selftest" entry.
3118 * selftest.h: New file.
3119 * selftest.c: New file.
3120 * maint.c: Include selftest.h.
3121 (maintenance_selftest): New function.
3122 (_initialize_maint_cmds): Add "maint selftest" command.
3123 * configure.ac (GDB_SELF_TEST): Maybe define.
3124 * config.in, configure: Rebuild.
3125 * Makefile.in (SFILES): Add selftest.c.
3126 (COMMON_OBS): Add selftest.o.
3127
3128 2016-05-17 Tom Tromey <tom@tromey.com>
3129
3130 * expprint.c: Include f-lang.h.
3131 (print_subexp_standard, dump_subexp_body_standard): Handle
3132 OP_F90_RANGE.
3133
3134 2016-05-17 Tom Tromey <tom@tromey.com>
3135
3136 * Makefile.in (init.c): Search .y files for initialization
3137 functions.
3138
3139 2016-05-12 Doug Evans <dje@google.com>
3140
3141 PR symtab/19999
3142 * dwarf2loc.c (dwarf2_find_location_expression): For DWO files still
3143 add base_offset.
3144
3145 2016-05-10 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3146
3147 * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard
3148 anything.
3149 * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname.
3150
3151 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
3152
3153 * arm-tdep.c (arm_elf_make_msymbol_special): Use
3154 ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
3155
3156 2016-05-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3157
3158 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Remove unused
3159 variables.
3160 * aarch64-tdep.c (aarch64_skip_prologue): Likewise.
3161 (aarch64_scan_prologue): Likewise.
3162 (aarch64_prologue_prev_register): Likewise.
3163 (aarch64_dwarf2_prev_register): Likewise.
3164 (pass_in_v): Likewise.
3165 (aarch64_push_dummy_call): Likewise.
3166 (aarch64_breakpoint_from_pc): Likewise.
3167 (aarch64_return_in_memory): Likewise.
3168 (aarch64_return_value): Likewise.
3169 (aarch64_displaced_step_b_cond): Likewise.
3170 (aarch64_displaced_step_cb): Likewise.
3171 (aarch64_displaced_step_tb): Likewise.
3172 (aarch64_gdbarch_init): Likewise.
3173 (aarch64_process_record): Likewise.
3174 * alpha-mdebug-tdep.c (alpha_mdebug_init_abi): Likewise.
3175 * alpha-tdep.c (_initialize_alpha_tdep): Likewise.
3176 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
3177 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Likewise.
3178 * amd64-tdep.c (fixup_riprel): Likewise.
3179 * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue): Likewise.
3180 (amd64_windows_frame_decode_insns): Likewise.
3181 (amd64_windows_frame_cache): Likewise.
3182 (amd64_windows_frame_prev_register): Likewise.
3183 (amd64_windows_frame_this_id): Likewise.
3184 (amd64_windows_init_abi): Likewise.
3185 * arm-linux-tdep.c (arm_linux_get_syscall_number): Likewise.
3186 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
3187 * arm-symbian-tdep.c (arm_symbian_init_abi): Likewise.
3188 * arm-tdep.c (arm_make_epilogue_frame_cache): Likewise.
3189 (arm_epilogue_frame_prev_register): Likewise.
3190 (arm_record_vdata_transfer_insn): Likewise.
3191 (arm_record_exreg_ld_st_insn): Likewise.
3192 * auto-load.c (execute_script_contents): Likewise.
3193 (print_scripts): Likewise.
3194 * avr-tdep.c (avr_frame_prev_register): Likewise.
3195 (avr_push_dummy_call): Likewise.
3196 * bfin-linux-tdep.c (bfin_linux_sigframe_init): Likewise.
3197 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
3198 * blockframe.c (find_pc_partial_function_gnu_ifunc): Likewise.
3199 * break-catch-throw.c (fetch_probe_arguments): Likewise.
3200 * breakpoint.c (breakpoint_xfer_memory): Likewise.
3201 (breakpoint_init_inferior): Likewise.
3202 (breakpoint_inserted_here_p): Likewise.
3203 (software_breakpoint_inserted_here_p): Likewise.
3204 (hardware_breakpoint_inserted_here_p): Likewise.
3205 (bpstat_what): Likewise.
3206 (break_range_command): Likewise.
3207 (save_breakpoints): Likewise.
3208 * coffread.c (coff_symfile_read): Likewise.
3209 * cris-tdep.c (cris_push_dummy_call): Likewise.
3210 (cris_scan_prologue): Likewise.
3211 (cris_register_size): Likewise.
3212 (_initialize_cris_tdep): Likewise.
3213 * d-exp.y: Likewise.
3214 * dbxread.c (dbx_read_symtab): Likewise.
3215 (process_one_symbol): Likewise.
3216 (coffstab_build_psymtabs): Likewise.
3217 (elfstab_build_psymtabs): Likewise.
3218 * dicos-tdep.c (dicos_init_abi): Likewise.
3219 * disasm.c (do_mixed_source_and_assembly): Likewise.
3220 (gdb_disassembly): Likewise.
3221 * dtrace-probe.c (dtrace_process_dof): Likewise.
3222 * dwarf2read.c (error_check_comp_unit_head): Likewise.
3223 (build_type_psymtabs_1): Likewise.
3224 (skip_one_die): Likewise.
3225 (process_imported_unit_die): Likewise.
3226 (dwarf2_physname): Likewise.
3227 (read_file_scope): Likewise.
3228 (setup_type_unit_groups): Likewise.
3229 (create_dwo_cu_reader): Likewise.
3230 (create_dwo_cu): Likewise.
3231 (create_dwo_unit_in_dwp_v1): Likewise.
3232 (create_dwo_unit_in_dwp_v2): Likewise.
3233 (lookup_dwo_unit_in_dwp): Likewise.
3234 (free_dwo_file): Likewise.
3235 (check_producer): Likewise.
3236 (dwarf2_add_typedef): Likewise.
3237 (dwarf2_add_member_fn): Likewise.
3238 (read_unsigned_leb128): Likewise.
3239 (read_signed_leb128): Likewise.
3240 (dwarf2_const_value): Likewise.
3241 (follow_die_sig_1): Likewise.
3242 (dwarf_decode_macro_bytes): Likewise.
3243 * extension.c (restore_active_ext_lang): Likewise.
3244 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
3245 * ft32-tdep.c (ft32_analyze_prologue): Likewise.
3246 * gdbtypes.c (lookup_typename): Likewise.
3247 (resolve_dynamic_range): Likewise.
3248 (check_typedef): Likewise.
3249 * h8300-tdep.c (h8300_is_argument_spill): Likewise.
3250 (h8300_gdbarch_init): Likewise.
3251 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
3252 (hppa_frame_this_id): Likewise.
3253 (_initialize_hppa_tdep): Likewise.
3254 * hppanbsd-tdep.c (hppanbsd_sigtramp_cache_init): Likewise.
3255 * hppaobsd-tdep.c (hppaobsd_supply_fpregset): Likewise.
3256 * i386-dicos-tdep.c (i386_dicos_init_abi): Likewise.
3257 * i386-tdep.c (i386_bnd_type): Likewise.
3258 (i386_gdbarch_init): Likewise.
3259 (i386_mpx_bd_base): Likewise.
3260 * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Likewise.
3261 * i386obsd-tdep.c (i386obsd_elf_init_abi): Likewise.
3262 * ia64-tdep.c (examine_prologue): Likewise.
3263 (ia64_frame_cache): Likewise.
3264 (ia64_push_dummy_call): Likewise.
3265 * infcmd.c (finish_command_fsm_async_reply_reason): Likewise.
3266 (default_print_one_register_info): Likewise.
3267 * infrun.c (infrun_thread_ptid_changed): Likewise.
3268 (thread_still_needs_step_over): Likewise.
3269 (stop_all_threads): Likewise.
3270 (restart_threads): Likewise.
3271 (keep_going_stepped_thread): Likewise.
3272 * iq2000-tdep.c (iq2000_scan_prologue): Likewise.
3273 * language.c (language_init_primitive_type_symbols): Likewise.
3274 * linespec.c (add_sal_to_sals): Likewise.
3275 * linux-nat.c (status_callback): Likewise.
3276 (kill_unfollowed_fork_children): Likewise.
3277 (linux_nat_kill): Likewise.
3278 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
3279 * linux-thread-db.c (thread_db_notice_clone): Likewise.
3280 (record_thread): Likewise.
3281 * location.c (string_to_event_location_basic): Likewise.
3282 * m32c-tdep.c (m32c_prev_register): Likewise.
3283 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
3284 * m32r-tdep.c (decode_prologue): Likewise.
3285 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
3286 * machoread.c (macho_symtab_read): Likewise.
3287 (macho_symfile_read): Likewise.
3288 (macho_symfile_offsets): Likewise.
3289 * maint.c (set_per_command_cmd): Likewise.
3290 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
3291 (mi_cmd_stack_list_variables): Likewise.
3292 * mi/mi-main.c (mi_cmd_exec_run): Likewise.
3293 (output_register): Likewise.
3294 (mi_cmd_execute): Likewise.
3295 (mi_cmd_trace_define_variable): Likewise.
3296 (print_variable_or_computed): Likewise.
3297 * minsyms.c (prim_record_minimal_symbol_full): Likewise.
3298 * mn10300-tdep.c (mn10300_frame_prev_register): Likewise.
3299 * msp430-tdep.c (msp430_pseudo_register_write): Likewise.
3300 * mt-tdep.c (mt_registers_info): Likewise.
3301 * nios2-tdep.c (nios2_analyze_prologue): Likewise.
3302 (nios2_push_dummy_call): Likewise.
3303 (nios2_frame_unwind_cache): Likewise.
3304 (nios2_stub_frame_cache): Likewise.
3305 (nios2_stub_frame_sniffer): Likewise.
3306 (nios2_gdbarch_init): Likewise.
3307 * ppc-ravenscar-thread.c: Likewise.
3308 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
3309 * python/py-evts.c (add_new_registry): Likewise.
3310 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3311 (bpfinishpy_detect_out_scope_cb): Likewise.
3312 * python/py-framefilter.c (py_print_value): Likewise.
3313 * python/py-inferior.c (infpy_write_memory): Likewise.
3314 * python/py-infevents.c (create_inferior_call_event_object): Likewise.
3315 * python/py-infthread.c (thpy_get_ptid): Likewise.
3316 * python/py-linetable.c (ltpy_get_pcs_for_line): Likewise.
3317 (ltpy_get_all_source_lines): Likewise.
3318 (ltpy_is_valid): Likewise.
3319 (ltpy_iternext): Likewise.
3320 * python/py-symtab.c (symtab_and_line_to_sal_object): Likewise.
3321 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Likewise.
3322 (unwind_infopy_str): Likewise.
3323 * python/py-varobj.c (py_varobj_get_iterator): Likewise.
3324 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
3325 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
3326 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
3327 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
3328 * s390-linux-tdep.c (s390_supply_tdb_regset): Likewise.
3329 (s390_frame_prev_register): Likewise.
3330 (s390_dwarf2_frame_init_reg): Likewise.
3331 (s390_record_vr): Likewise.
3332 (s390_process_record): Likewise.
3333 * score-tdep.c (score_push_dummy_call): Likewise.
3334 (score3_analyze_prologue): Likewise.
3335 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
3336 * sh64-tdep.c (sh64_analyze_prologue): Likewise.
3337 (sh64_push_dummy_call): Likewise.
3338 (sh64_extract_return_value): Likewise.
3339 (sh64_do_fp_register): Likewise.
3340 * solib-aix.c (solib_aix_get_section_offsets): Likewise.
3341 * solib-darwin.c (darwin_read_exec_load_addr_from_dyld): Likewise.
3342 (darwin_solib_read_all_image_info_addr): Likewise.
3343 * solib-dsbt.c (enable_break): Likewise.
3344 * solib-frv.c (enable_break2): Likewise.
3345 (frv_fdpic_find_canonical_descriptor): Likewise.
3346 * solib-svr4.c (svr4_handle_solib_event): Likewise.
3347 * sparc-tdep.c (sparc_skip_stack_check): Likewise.
3348 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): Likewise.
3349 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
3350 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3351 * stack.c (read_frame_local): Likewise.
3352 * symfile.c (symbol_file_add_separate): Likewise.
3353 (remove_symbol_file_command): Likewise.
3354 * symmisc.c (maintenance_print_one_line_table): Likewise.
3355 * symtab.c (symbol_cache_flush): Likewise.
3356 (basic_lookup_transparent_type): Likewise.
3357 (sort_search_symbols_remove_dups): Likewise.
3358 * target.c (target_memory_map): Likewise.
3359 (target_detach): Likewise.
3360 (target_resume): Likewise.
3361 (acquire_fileio_fd): Likewise.
3362 (target_store_registers): Likewise.
3363 * thread.c (print_thread_info_1): Likewise.
3364 * tic6x-tdep.c (tic6x_analyze_prologue): Likewise.
3365 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Likewise.
3366 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
3367 (tilegx_analyze_prologue): Likewise.
3368 (tilegx_stack_frame_destroyed_p): Likewise.
3369 (tilegx_frame_cache): Likewise.
3370 * tracefile.c (trace_save): Likewise.
3371 * tracepoint.c (encode_actions_and_make_cleanup): Likewise.
3372 (start_tracing): Likewise.
3373 (print_one_static_tracepoint_marker): Likewise.
3374 * tui/tui.c (tui_enable): Likewise.
3375 * valops.c (value_struct_elt_bitpos): Likewise.
3376 (find_overload_match): Likewise.
3377 (find_oload_champ): Likewise.
3378 * value.c (value_contents_copy_raw): Likewise.
3379 * windows-tdep.c (windows_get_tlb_type): Likewise.
3380 * x86-linux-nat.c (x86_linux_enable_btrace): Likewise.
3381 * xcoffread.c (record_minimal_symbol): Likewise.
3382 (scan_xcoff_symtab): Likewise.
3383 * xtensa-tdep.c (execute_code): Likewise.
3384 (xtensa_gdbarch_init): Likewise.
3385 (_initialize_xtensa_tdep): Likewise.
3386
3387 2016-05-04 Ulrich Weigand <uweigand@de.ibm.com>
3388
3389 * spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++.
3390 (spu_bfd_open): Likewise.
3391
3392 2016-05-04 Yao Qi <yao.qi@linaro.org>
3393
3394 PR gdb/19947
3395 * corefile.c (read_memory): Rename it to ...
3396 (read_memory_object): ... it. Add parameter object.
3397 (read_memory): Call read_memory_object.
3398 (read_stack): Likewise.
3399 (read_code): Likewise.
3400
3401 2016-05-03 Yunlian Jiang <yunlian@google.com>
3402 Doug Evans <dje@google.com>
3403
3404 PR symtab/19914
3405 * dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile
3406 is separate debug file.
3407
3408 2016-05-03 Don Breazeal <donb@codesourcery.com>
3409
3410 * serial.h (gdb_pipe): Fix argument names in comment.
3411
3412 2016-05-03 Pedro Alves <palves@redhat.com>
3413
3414 PR python/20037
3415 * python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree
3416 oldloc.
3417
3418 2016-05-03 Pedro Alves <palves@redhat.com>
3419
3420 * python/python.c (_initialize_python) [IS_PY3K]: Remove dead
3421 code.
3422
3423 2016-05-03 Pedro Alves <palves@redhat.com>
3424
3425 * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
3426 * configure: Regenerate.
3427
3428 2016-05-03 Pedro Alves <palves@redhat.com>
3429
3430 * configure.ac (checking for the dynamic export flag): Add
3431 $PYTHON_CPPFLAGS to CPPFLAGS.
3432 * configure: Regenerate.
3433
3434 2016-05-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3435
3436 * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
3437 warning.
3438 (find_pc_mapped_section): Likewise.
3439 (list_overlays_command): Likewise.
3440
3441 2016-05-02 Eli Zaretskii <eliz@gnu.org>
3442
3443 * windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
3444 error in allocation of space for "$HOME/.gdbinit" string. This
3445 caused GDB to abort on startup whenever a '~/gdb.ini' file was
3446 actually found, because xsnprintf would hit an assertion
3447 violation.
3448
3449 2016-04-28 Simon Marchi <simon.marchi@ericsson.com>
3450
3451 * cli/cli-decode.c (help_cmd_list): Do not list commands that
3452 are deprecated.
3453
3454 2016-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3455
3456 * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
3457
3458 2016-04-27 Martin Galvan <martin.galvan@tallertechnologies.com>
3459
3460 * c-valprint.c (c_value_print): Always convert val back to reference
3461 type if we converted it to a pointer type.
3462
3463 2016-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3464
3465 * configure.ac: Enhance configure check for babeltrace to reject
3466 non-C++-enabled versions.
3467 * configure: Regenerate.
3468
3469 2016-04-26 Sanimir Agovic <sanimir.agovic@intel.com>
3470 Keven Boell <keven.boell@intel.com>
3471 Bernhard Heckel <bernhard.heckel@intel.com>
3472
3473 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
3474 function.
3475 (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
3476 (f77_print_array_1): Use value_subscript to subscript a
3477 value array.
3478 (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
3479 (f_val_print): Use value_field to construct a field value.
3480
3481 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
3482
3483 * valarith.c (value_address): Resolve dynamic types.
3484
3485 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
3486 Keven Boell <kevel.boell@intel.com>
3487
3488 * NEWS: Add new supported features for fortran.
3489 * gdbtypes.c (remove_dyn_prop): New.
3490 (resolve_dynamic_struct): Keep type length for fortran structs.
3491 * gdbtypes.h: Forward declaration of new function.
3492 * value.c (value_address): Return dynamic resolved location of a value.
3493 (set_value_component_location): Adjust the value address
3494 for single value prints.
3495 (value_primitive_field): Support value types with a dynamic location.
3496 (set_internalvar): Remove dynamic location property of
3497 internal variables.
3498
3499 2016-04-25 Pedro Alves <palves@redhat.com>
3500 Yao Qi <yao.qi@linaro.org>
3501
3502 * mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint
3503 object. Insert it if it is not inserted yet. Increase the
3504 refcount and link it into the proc's raw breakpoint list.
3505
3506 2016-04-25 Yao Qi <yao.qi@linaro.org>
3507
3508 * breakpoint.c (should_be_inserted): Return 0 if the location's
3509 owner is not single step breakpoint or single step breakpoint's
3510 thread isn't the thread which is stepping past a breakpoint.
3511 * gdbarch.sh (software_single_step): Update comments.
3512 * gdbarch.h: Regenerated.
3513 * infrun.c (struct step_over_info) <thread>: New field.
3514 (set_step_over_info): New argument 'thread'. Callers updated.
3515 (clear_step_over_info): Set field thread to -1.
3516 (thread_is_stepping_over_breakpoint): New function.
3517 * infrun.h (thread_is_stepping_over_breakpoint): Declaration.
3518
3519 2016-04-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3520
3521 * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX
3522 and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
3523
3524 2016-04-22 Yao Qi <yao.qi@linaro.org>
3525
3526 * valops.c (read_value_memory): New local variable 'stack'.
3527 Set it to either TARGET_OBJECT_STACK_MEMORY or
3528 TARGET_OBJECT_MEMORY.
3529
3530 2016-04-22 Pedro Alves <palves@redhat.com>
3531
3532 * ada-exp.y: Remove all yy symbol remappings.
3533 (GDB_YY_REMAP_PREFIX): Define.
3534 Include "yy-remap.h".
3535 * ada-lang.c (ada_language_defn): Adjust.
3536 * ada-lang.h (ada_error): Rename to ...
3537 (ada_yyerror): ... this.
3538 * c-exp.y: Remove all yy symbol remappings.
3539 (GDB_YY_REMAP_PREFIX): Define.
3540 Include "yy-remap.h".
3541 * c-lang.c (c_language_defn, cplus_language_defn)
3542 (asm_language_defn, minimal_language_defn): Adjust.
3543 * c-lang.h (c_error): Rename to ...
3544 (c_yyerror): ... this.
3545 * d-exp.y: Remove all yy symbol remappings.
3546 (GDB_YY_REMAP_PREFIX): Define.
3547 Include "yy-remap.h".
3548 * d-lang.c (d_language_defn): Adjust.
3549 * d-lang.h (d_error): Rename to ...
3550 (d_yyerror): ... this.
3551 * f-exp.y: Remove all yy symbol remappings.
3552 (GDB_YY_REMAP_PREFIX): Define.
3553 Include "yy-remap.h".
3554 * f-lang.c (f_language_defn): Adjust.
3555 * f-lang.h (f_error): Rename to ...
3556 (f_yyerror): ... this.
3557 * go-exp.y: Remove all yy symbol remappings.
3558 (GDB_YY_REMAP_PREFIX): Define.
3559 Include "yy-remap.h".
3560 * go-lang.c (go_language_defn): Adjust.
3561 * go-lang.h (go_error): Rename to ...
3562 (go_yyerror): ... this.
3563 * jv-exp.y: Remove all yy symbol remappings.
3564 (GDB_YY_REMAP_PREFIX): Define.
3565 Include "yy-remap.h".
3566 * jv-lang.c (java_language_defn): Adjust.
3567 * jv-lang.h (java_error): Rename to ...
3568 (java_yyerror): ... this.
3569 * m2-exp.y: Remove all yy symbol remappings.
3570 (GDB_YY_REMAP_PREFIX): Define.
3571 Include "yy-remap.h".
3572 * m2-lang.c (m2_language_defn): Adjust.
3573 * m2-lang.h (m2_error): Rename to ...
3574 (m2_yyerror): ... this.
3575 * objc-exp.y: Remove all yy symbol remappings.
3576 (GDB_YY_REMAP_PREFIX): Define.
3577 Include "yy-remap.h".
3578 * objc-lang.c (objc_language_defn): Adjust.
3579 * opencl-lang.c (opencl_language_defn): Adjust.
3580 * p-exp.y: Remove all yy symbol remappings.
3581 (GDB_YY_REMAP_PREFIX): Define.
3582 Include "yy-remap.h".
3583 * p-lang.c (pascal_language_defn): Adjust.
3584 * p-lang.h (pascal_error): Rename to ...
3585 (pascal_yyerror): ... this.
3586 * yy-remap.h: New file.
3587
3588 2016-04-22 Pedro Alves <palves@redhat.com>
3589
3590 * common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of
3591 the foreign frames issue.
3592 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
3593
3594 2016-04-22 Pedro Alves <palves@redhat.com>
3595
3596 * common/common-exceptions.c (enum catcher_state, struct catcher)
3597 (current_catcher): Define in C++ mode too.
3598 (exceptions_state_mc_catch): Call throw_exception_sjlj instead of
3599 throw_exception.
3600 (throw_exception_sjlj, throw_exception_cxx): New functions,
3601 factored out from throw_exception.
3602 (throw_exception): Reimplement.
3603 * common/common-exceptions.h (exceptions_state_mc_init)
3604 (exceptions_state_mc_action_iter)
3605 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
3606 Declare in C++ mode too.
3607 (TRY): Rename to ...
3608 (TRY_SJLJ): ... this.
3609 (CATCH): Rename to ...
3610 (CATCH_SJLJ): ... this.
3611 (END_CATCH): Rename to ...
3612 (END_CATCH_SJLJ): ... this.
3613 [GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ
3614 equivalents.
3615 (throw_exception): Update comments.
3616 (throw_exception_sjlj): Declare.
3617 * event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro
3618 comment. Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any
3619 intercepted exception.
3620 (gdb_rl_callback_handler): New function.
3621 (gdb_rl_callback_handler_install): Always install
3622 gdb_rl_callback_handler as readline callback.
3623
3624 2016-04-22 Pedro Alves <palves@redhat.com>
3625
3626 * event-top.c (rl_callback_read_char_wrapper): Rename to ...
3627 (gdb_rl_callback_read_char_wrapper): ... this.
3628 (change_line_handler, gdb_setup_readline): Adjust.
3629
3630 2016-04-22 Yao Qi <yao.qi@linaro.org>
3631
3632 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR
3633 bits 20 to 23.
3634
3635 2016-04-22 Joel Brobecker <brobecker@adacore.com>
3636
3637 * MAINTAINER: Remove myself as AIX Maintainer.
3638
3639 2016-04-22 Maciej W. Rozycki <macro@imgtec.com>
3640
3641 * mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set
3642 `num_regs' to 90 rather than 79. Where a target description is
3643 present adjust the setting appropriately.
3644
3645 2016-04-21 Pedro Alves <palves@redhat.com>
3646
3647 * common/common-exceptions.h (GDB_XCPT_TRY): Add comment.
3648 (GDB_XCPT): Always define as GDB_XCPT_SJMP.
3649
3650 2016-04-21 Pedro Alves <palves@redhat.com>
3651
3652 * aix-thread.c (pdc_read_data, pdc_write_data): Add cast.
3653 (aix_thread_resume): Use PTRACE_TYPE_ARG5.
3654 * rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5.
3655 (rs6000_ptrace_ldinfo): Change type of 'ldi' local to void
3656 pointer, and cast return to gdb_byte pointer.
3657
3658 2016-04-21 Pedro Alves <palves@redhat.com>
3659
3660 * s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
3661 void * instead of gdb_byte *.
3662
3663 2016-04-21 Pedro Alves <palves@redhat.com>
3664
3665 * dwarf2read.c (try_open_dwop_file, open_dwo_file)
3666 (file_file_name, file_full_name): Add char * cast to sentinel in
3667 concat/reconcat calls.
3668 * event-top.c (top_level_prompt): Likewise.
3669 * guile/guile.c (initialize_scheme_side): Likewise.
3670 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
3671 * macrotab.c (macro_source_fullname): Likewise.
3672 * main.c (get_init_files, captured_main): Likewise.
3673 * psymtab.c (psymtab_to_fullname): Likewise.
3674 * python/python.c (_initialize_python)
3675 (gdbpy_finish_initialization): Likewise.
3676 * source.c (symtab_to_fullname): Likewise.
3677
3678 2016-04-20 Pedro Alves <palves@redhat.com>
3679
3680 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes.
3681 * configure: Renegerate.
3682
3683 2016-04-20 Pedro Alves <palves@redhat.com>
3684
3685 * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host.
3686
3687 2016-04-20 Pedro Alves <palves@redhat.com>
3688
3689 * aarch64-tdep.c (aarch64_record_load_store): Change type of
3690 'reg_rm_val' local to ULONGEST.
3691
3692 2016-04-20 Pedro Alves <palves@redhat.com>
3693
3694 * darwin-nat.c (darwin_resume_thread): Add uintptr_t cast.
3695
3696 2016-04-20 Doug Evans <xdje42@gmail.com>
3697
3698 * symmisc.c (dump_symtab_1): Print owning compunit for identical
3699 blockvectors.
3700
3701 2016-04-20 Yao Qi <yao.qi@linaro.org>
3702
3703 * aarch32-linux-nat.c: Include "arch/arm-linux.h".
3704
3705 2016-04-20 Yao Qi <yao.qi@linaro.org>
3706
3707 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
3708 * arch/arm-linux.h: ... here.
3709
3710 2016-04-19 John Baldwin <jhb@FreeBSD.org>
3711
3712 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
3713 to void *.
3714 (amd64bsd_store_inferior_registers): Likewise.
3715 * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
3716 (resume_all_threads_cb): Likewise.
3717 * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
3718 (i386bsd_collect_gregset): Likewise.
3719 (i386bsd_fetch_inferior_registers): Change xstateregs to void *.
3720 (i386bsd_store_inferior_registers): Likewise.
3721
3722 2016-04-19 John Baldwin <jhb@FreeBSD.org>
3723
3724 * main.c (setup_alternate_signal_stack): Cast to char *.
3725
3726 2016-04-19 Doug Evans <xdje42@gmail.com>
3727
3728 * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
3729 All callers updated.
3730
3731 2016-04-19 Doug Evans <xdje42@gmail.com>
3732
3733 PR gdb/17911
3734 * source.c (is_regular_file): New arg errno_ptr.
3735 All callers updated.
3736
3737 2016-04-19 Andreas Arnez <arnez@linux.vnet.ibm.com>
3738
3739 * linux-record.c (record_linux_system_call): Merge handling for
3740 readlink/recv/read and pipe/pipe2.
3741
3742 2016-04-14 Walfred Tedeschi <walfred.tedeschi@intel.com>
3743
3744 * features/i386/amd64-mpx-linux.xml: Remove AVX feature.
3745 * features/i386/amd64-mpx.xml: Remove AVX feature.
3746 * features/i386/i386-mpx-linux.xml: Remove AVX feature.
3747 * features/i386/i386-mpx.xml: Remove AVX feature.
3748 * features/i386/amd64-mpx-linux.c: Regenerate.
3749 * features/i386/amd64-mpx.c: Regenerate.
3750 * features/i386/i386-mpx-linux.c: Regenerate.
3751 * features/i386/i386-mpx.c: Regenerate.
3752 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
3753 * regformats/i386/amd64-mpx.dat: Regenerate.
3754 * regformats/i386/i386-mpx-linux.dat: Regenerate.
3755 * regformats/i386/i386-mpx.dat: Regenerate.
3756
3757 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
3758
3759 * amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):
3760 New include.
3761 (amd64_linux_core_read_description): Add case for
3762 X86_XSTATE_AVX_MPX_MASK.
3763 (_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux.
3764 * amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition.
3765 * amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include.
3766 (amd64_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
3767 (_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx.
3768 * common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits.
3769 (X86_XSTATE_AVX_MPX_MASK): New case.
3770 * features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux)
3771 (i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules.
3772 (i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite)
3773 (i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite):
3774 New expedites.
3775 * i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New
3776 include.
3777 (i386_linux_core_read_description): Add case
3778 X86_XSTATE_AVX_MPX_MASK.
3779 (_initialize_i386_linux_tdep): Call
3780 initialize_tdesc_i386_avx_mpx_linux.
3781 * i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include.
3782 * i386-tdep.c (features/i386/i386-avx-mpx.c): New include.
3783 (i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
3784 * x86-linux-nat.c (x86_linux_read_description): Add case for
3785 X86_XSTATE_AVX_MPX_MASK.
3786 * features/i386/amd64-avx-mpx-linux.xml: New file.
3787 * features/i386/i386-avx-mpx-linux.xml: New file.
3788 * features/i386/i386-avx-mpx.xml: New file.
3789 * features/i386/amd64-avx-mpx.xml: New file.
3790 * features/i386/amd64-avx-mpx-linux.c: Generated.
3791 * features/i386/amd64-avx-mpx.c: Generated.
3792 * features/i386/i386-avx-mpx-linux.c: Generated.
3793 * features/i386/i386-avx-mpx.c: Generated.
3794 * regformats/i386/amd64-avx-mpx-linux.dat: Generated.
3795 * regformats/i386/amd64-avx-mpx.dat: Generated.
3796 * regformats/i386/i386-avx-mpx-linux.dat: Generated.
3797 * regformats/i386/i386-avx-mpx.dat: Generated.
3798
3799 2016-04-18 Pedro Alves <palves@redhat.com>
3800
3801 * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode.
3802 * configure: Regenerate.
3803
3804 2016-04-18 Martin Galvan <martin.galvan@tallertechnologies.com>
3805
3806 * valops.c (value_addr): For C++ references, set the copied value's
3807 enclosing_type as well.
3808
3809 2016-04-18 Yao Qi <yao.qi@linaro.org>
3810
3811 Revert:
3812 2016-04-15 Yao Qi <yao.qi@linaro.org>
3813
3814 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
3815 PC is far from the end of function.
3816
3817 2016-04-16 Pedro Alves <palves@redhat.com>
3818
3819 * ada-exp.y (yydefred): Define as ada_yydefred.
3820
3821 2016-04-15 Pedro Alves <palves@redhat.com>
3822
3823 * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and
3824 'name_str' locals.
3825
3826 2016-04-15 Pedro Alves <palves@redhat.com>
3827
3828 * btrace.c (pt_btrace_insn_flags): Change return type to
3829 btrace_insn_flags. Use btrace_insn_flags for local.
3830
3831 2016-04-15 Pedro Alves <palves@redhat.com>
3832
3833 * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also
3834 accept TRAP_BRKPT.
3835 [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT.
3836
3837 2016-04-15 Yao Qi <yao.qi@linaro.org>
3838
3839 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
3840 PC is far from the end of function.
3841
3842 2016-04-14 Pedro Alves <palves@redhat.com>
3843
3844 * cli/cli-cmds.c (alias_usage_error): New function.
3845 (alias_command): Use it.
3846 * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
3847 ctf_save_write_metadata call.
3848
3849 2016-04-14 Pedro Alves <palves@redhat.com>
3850
3851 * ada-typeprint.c (print_fixed_point_type): Don't pass float as
3852 argument to function expecting LONGEST.
3853 * value.c (unpack_long): Add casts to LONGEST.
3854
3855 2016-04-13 Luis Machado <lgustavo@codesourcery.com>
3856
3857 * exec.c (exec_file_locate_attach): Guard a couple functions
3858 that can throw errors.
3859 (exception_print_same): New helper function.
3860
3861 2016-04-13 Pedro Alves <palves@redhat.com>
3862
3863 PR remote/19840
3864 * remote.c (struct remote_state) <last_resume_exec_dir>: New
3865 field.
3866 (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
3867 (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
3868 (remote_resume): Store the last execution direction.
3869 (remote_execution_direction): New function.
3870 (init_remote_ops): Install it as to_execution_direction target_ops
3871 method.
3872
3873 2016-04-12 Pedro Alves <palves@redhat.com>
3874
3875 * common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
3876 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
3877
3878 2016-04-12 Pedro Alves <palves@redhat.com>
3879
3880 * common/common-exceptions.c (struct catcher) <buf>: Now a
3881 'jmp_buf' instead of SIGJMP_BUF.
3882 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
3883 (throw_exception): Use longjmp instead of SIGLONGJMP.
3884 * common/common-exceptions.h: Include <setjmp.h> instead of
3885 "gdb_setjmp.h".
3886 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
3887 [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
3888 SIGSETJMP.
3889 * cp-support.c: Include "gdb_setjmp.h".
3890
3891 2016-04-12 Pedro Alves <palves@redhat.com>
3892
3893 * common/common-exceptions.c (exception_rethrow): Remove
3894 prepare_to_throw_exception call.
3895 * common/common-exceptions.h (prepare_to_throw_exception): Delete
3896 declaration.
3897 * exceptions.c (prepare_to_throw_exception): Delete.
3898
3899 2016-04-12 Pedro Alves <palves@redhat.com>
3900
3901 * target.c (target_check_pending_interrupt): Delete.
3902 * target.h (struct target_ops) <to_check_pending_interrupt>:
3903 Remove method.
3904 (target_check_pending_interrupt): Remove declaration.
3905 * target-delegates.c: Regenerate.
3906
3907 2016-04-12 Pedro Alves <palves@redhat.com>
3908
3909 * defs.h: Update comments on SIGINT handling.
3910 (immediate_quit): Delete declaration.
3911 * event-loop.c (call_async_signal_handler): Delete.
3912 * event-loop.h (call_async_signal_handler): Delete declaration.
3913 (mark_async_signal_handler): Update comments.
3914 (gdb_call_async_signal_handler): Delete declaration.
3915 * event-top.c (handle_sigint): Call mark_async_signal_handler
3916 instead of gdb_call_async_signal_handler.
3917 * exceptions.c (prepare_to_throw_exception): Remove reference to
3918 immediate_quit.
3919 (exception_fprintf): Remove comments about immediate_quit.
3920 * mingw-hdep.c (sigint_event, sigint_handler): Delete.
3921 (gdb_select): Don't wait on sigint_event.
3922 (gdb_call_async_signal_handler): Delete.
3923 (_initialize_mingw_hdep): Delete.
3924 * posix-hdep.c (gdb_call_async_signal_handler): Delete.
3925 * utils.c (immediate_quit): Delete.
3926
3927 2016-04-12 Pedro Alves <palves@redhat.com>
3928
3929 * defs.h (quit_handler_ftype, quit_handler)
3930 (make_cleanup_override_quit_handler, default_quit_handler): New.
3931 (QUIT): Adjust comments.
3932 * event-top.c (default_quit_handler): New function.
3933 (quit_handler): New global.
3934 (struct quit_handler_cleanup_data): New.
3935 (restore_quit_handler, restore_quit_handler_dtor)
3936 (make_cleanup_override_quit_handler): New.
3937 (async_request_quit): Call QUIT.
3938 * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
3939 (async_sigint_remote_twice_token, async_sigint_remote_token):
3940 Delete.
3941 (remote_close): Update comments.
3942 (remote_start_remote): Don't set immediate_quit. Set starting_up
3943 earlier.
3944 (remote_serial_quit_handler, remote_unpush_and_throw): New
3945 functions.
3946 (remote_open_1): Clear got_ctrlc_during_io. Set
3947 remote_async_terminal_ours_p unconditionally.
3948 (async_initialize_sigint_signal_handler)
3949 (async_handle_remote_sigint, async_handle_remote_sigint_twice)
3950 (remote_check_pending_interrupt, async_remote_interrupt)
3951 (async_remote_interrupt_twice)
3952 (async_cleanup_sigint_signal_handler, ofunc)
3953 (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
3954 (remote_terminal_inferior, remote_terminal_ours): Remove async
3955 checks.
3956 (remote_wait_as): Don't install a SIGINT handler in sync mode.
3957 (readchar, remote_serial_write): Override the quit handler with
3958 remote_serial_quit_handler.
3959 (getpkt_or_notif_sane_1): Don't call QUIT.
3960 (initialize_remote_ops): Don't install
3961 remote_check_pending_interrupt.
3962 (_initialize_remote): Don't create async_sigint_remote_token and
3963 async_sigint_remote_twice_token.
3964 * ser-base.c (ser_base_wait_for): Call QUIT and use
3965 interruptible_select.
3966 (ser_base_write): Call QUIT.
3967 * ser-go32.c (dos_readchar, dos_write): Call QUIT.
3968 * ser-unix.c (wait_for): Don't use VTIME. Always take the
3969 gdb_select path, but call QUIT and interruptible_select.
3970 * utils.c (maybe_quit): Call the current quit handler. Don't call
3971 target_check_pending_interrupt.
3972 (defaulted_query, prompt_for_continue): Override the quit handler
3973 with the default quit handler.
3974
3975 2016-04-12 Pedro Alves <palves@redhat.com>
3976
3977 * tui/tui-hooks.c (tui_target_has_run): Delete.
3978 (tui_about_to_proceed): Delete.
3979 (tui_about_to_proceed_observer): Delete.
3980 (tui_install_hooks, tui_remove_hooks): Don't install/remove an
3981 about_to_proceed observer.
3982
3983 2016-04-12 Pedro Alves <palves@redhat.com>
3984
3985 * mi/mi-interp.c (mi_new_thread): Put
3986 target_terminal_ours_for_output in effect while outputting.
3987 (mi_thread_exit): Use target_terminal_ours_for_output instead of
3988 target_terminal_ours.
3989 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3990 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
3991 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3992 (mi_breakpoint_created, mi_breakpoint_deleted)
3993 (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
3994 (mi_command_param_changed, mi_memory_changed)
3995 (report_initial_inferior): Use target_terminal_ours_for_output
3996 instead of target_terminal_ours. Restore terminal settings.
3997 * mi/mi-main.c (mi_execute_command): Use
3998 target_terminal_ours_for_output instead of target_terminal_ours.
3999 Restore terminal settings.
4000
4001 2016-04-12 Pedro Alves <palves@redhat.com>
4002
4003 PR gdb/19828
4004 * gnu-nat.c (inf_validate_task_sc): Don't call
4005 target_terminal_ours / target_terminal_inferior around query.
4006 * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
4007 call target_terminal_ours / target_terminal_inferior around
4008 yquery.
4009 * linux-record.c (record_linux_system_call): Don't call
4010 target_terminal_ours / target_terminal_inferior around yquery.
4011 * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
4012 / target_terminal_inferior around query.
4013 * record-full.c (record_full_check_insn_num): Remove
4014 'set_terminal' parameter. Don't call target_terminal_ours /
4015 target_terminal_inferior around query.
4016 (record_full_message, record_full_registers_change)
4017 (record_full_xfer_partial): Adjust.
4018 * remote.c (interrupt_query): Don't call target_terminal_ours /
4019 target_terminal_inferior around query.
4020 * utils.c (defaulted_query): Install cleanup to restore target
4021 terminal. Put target_terminal_ours_for_output in effect while
4022 defaulted producing, and target_terminal_ours in in effect while
4023 handling input.
4024 (prompt_for_continue): Install cleanup to restore target terminal.
4025 Put target_terminal_ours in in effect while handling input.
4026
4027 2016-04-12 Pedro Alves <palves@redhat.com>
4028
4029 * utils.c (defaulted_query, prompt_for_continue): Free temporary
4030 strings with cleanups, instead of xfree.
4031
4032 2016-04-12 Pedro Alves <palves@redhat.com>
4033
4034 * utils.c (vwarning, internal_vproblem): Use
4035 make_cleanup_restore_target_terminal and
4036 target_terminal_ours_for_output.
4037
4038 2016-04-12 Pedro Alves <palves@redhat.com>
4039
4040 * infcmd.c (post_create_inferior, prepare_one_step): Use
4041 target_terminal_ours_for_output instead of target_terminal_ours.
4042
4043 2016-04-12 Pedro Alves <palves@redhat.com>
4044
4045 * exceptions.c (print_flush): Use target_terminal_ours_for_output
4046 instead of target_terminal_ours, and restore target terminal with
4047 a cleanup.
4048
4049 2016-04-12 Pedro Alves <palves@redhat.com>
4050
4051 * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
4052 instead of target_terminal_ours, and restore target terminal with
4053 a cleanup.
4054
4055 2016-04-12 Pedro Alves <palves@redhat.com>
4056
4057 * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
4058 functions.
4059 (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
4060
4061 2016-04-12 Pedro Alves <palves@redhat.com>
4062
4063 * ser-base.c (fd_event): Retry read_prim on EINTR.
4064 (do_ser_base_readchar): Retry read_prim on EINTR.
4065 (ser_base_write): Retry write_prim on EINTR.
4066 * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
4067 (ser_unix_write_prim): Remove comment.
4068
4069 2016-04-12 Pedro Alves <palves@redhat.com>
4070
4071 * remote.c (remote_pass_ctrlc): New function.
4072 (init_remote_ops): Install it.
4073 * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
4074 target.
4075 (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
4076 * target.h (struct target_ops) <to_pass_ctrlc>: New method.
4077 (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
4078 * target-delegates.c: Regenerate.
4079
4080 2016-04-12 Pedro Alves <palves@redhat.com>
4081
4082 * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
4083 mode.
4084 * linux-nat.c (linux_nat_interrupt): Delete.
4085 (linux_nat_add_target): Don't install linux_nat_interrupt.
4086 * remote.c (remote_interrupt_ns): Change return type to void.
4087 Throw error if interrupting the target is not supported.
4088 (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
4089
4090 2016-04-12 Pedro Alves <palves@redhat.com>
4091
4092 * defs.h (clear_quit_flag): Remove declaration.
4093 * extension-priv.h (struct extension_language_ops)
4094 <clear_quit_flag>: Remove field and update comments.
4095 * extension.c (clear_quit_flag): Delete.
4096 * guile/guile.c (guile_extension_ops): Adjust.
4097 * python/python.c (python_extension_ops): Adjust.
4098 (gdbpy_clear_quit_flag): Delete.
4099
4100 2016-04-12 Pedro Alves <palves@redhat.com>
4101
4102 * main.c (captured_main): Don't clear the quit flag.
4103
4104 2016-04-12 Pedro Alves <palves@redhat.com>
4105
4106 * exceptions.c (prepare_to_throw_exception): Don't clear the quit
4107 flag.
4108
4109 2016-04-12 Pedro Alves <palves@redhat.com>
4110
4111 * event-top.c (command_handler): Don't call clear_quit_flag.
4112
4113 2016-04-12 Pedro Alves <palves@redhat.com>
4114
4115 * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
4116 * remote.c (remote_wait_as): Don't call clear_quit_flag.
4117
4118 2016-04-12 Pedro Alves <palves@redhat.com>
4119
4120 * python/python.c: Include "ser-event.h".
4121 (gdbpy_event_fds): Delete.
4122 (gdbpy_serial_event): New.
4123 (gdbpy_run_events): Change prototype. Use serial_event_clear
4124 instead of serial_readchar.
4125 (gdbpy_post_event): Use serial_event_set instead of serial_write.
4126 (gdbpy_initialize_events): Use make_serial_event instead of
4127 serial_pipe.
4128
4129 2016-04-12 Pedro Alves <palves@redhat.com>
4130
4131 * defs.h: Extend QUIT-related comments to mention
4132 interruptible_select.
4133 (quit_serial_event_set, quit_serial_event_clear): Declare.
4134 * event-top.c: Include "ser-event.h" and "gdb_select.h".
4135 (quit_serial_event): New global.
4136 (async_init_signals): Make quit_serial_event.
4137 (quit_serial_event_set, quit_serial_event_clear)
4138 (quit_serial_event_fd, interruptible_select): New functions.
4139 * extension.c (set_quit_flag): Set the quit serial event.
4140 (check_quit_flag): Clear the quit serial event.
4141 * gdb_select.h (interruptible_select): New declaration.
4142 * guile/scm-ports.c (ioscm_input_waiting): Use
4143 interruptible_select instead of gdb_select.
4144 * top.c (gdb_readline_no_editing): Likewise.
4145 * ui-file.c (stdio_file_read): Likewise.
4146
4147 2016-04-12 Pedro Alves <palves@redhat.com>
4148
4149 * event-loop.c: Include "ser-event.h".
4150 (async_signal_handlers_serial_event): New global.
4151 (async_signals_handler, initialize_async_signal_handlers): New
4152 functions.
4153 (mark_async_signal_handler): Set
4154 async_signal_handlers_serial_event.
4155 (invoke_async_signal_handlers): Clear
4156 async_signal_handlers_serial_event.
4157 * event-top.c (async_init_signals): Call
4158 initialize_async_signal_handlers.
4159
4160 2016-04-12 Pedro Alves <palves@redhat.com>
4161
4162 * Makefile.in (SFILES): Add ser-event.c.
4163 (HFILES_NO_SRCDIR): Add ser-event.h.
4164 (COMMON_OBS): Add ser-event.o.
4165 * ser-event.c, ser-event.h: New files.
4166 * serial.c (new_serial): New function, factored out from
4167 (serial_fdopen_ops): ... this.
4168 (serial_open_ops_1): New function, factored out from
4169 (serial_open): ... this.
4170 (serial_open_ops): New function.
4171 * serial.h (struct serial): Forware declare.
4172 (serial_open_ops): New declaration.
4173
4174 2016-04-12 Pedro Alves <palves@redhat.com>
4175
4176 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
4177 Remove references to name.
4178 * serial.h (struct serial) <name>: Delete.
4179
4180 2016-04-12 Pedro Alves <palves@redhat.com>
4181
4182 * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
4183 Delete.
4184 (async_remote_fileio_interrupt): Delete.
4185 (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
4186 handler. Instead just always set the ctrl_c flag.
4187 (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
4188 re-enabling the SIGINT handler.
4189 (remote_fileio_func_open, remote_fileio_func_close)
4190 (remote_fileio_func_read, remote_fileio_func_write)
4191 (remote_fileio_func_lseek, remote_fileio_func_rename)
4192 (remote_fileio_func_unlink, remote_fileio_func_stat)
4193 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
4194 (remote_fileio_func_isatty, remote_fileio_func_system)
4195 (remote_fileio_request): Remove references to
4196 remote_fio_no_longjmp.
4197 (initialize_remote_fileio): Don't create an async signal handler.
4198
4199 2016-04-12 Pedro Alves <palves@redhat.com>
4200
4201 * event-top.c (stdin_event_handler): Call QUIT;
4202 (prompt_for_continue): Don't run with immediate_quit set.
4203
4204 2016-04-12 Pedro Alves <palves@redhat.com>
4205
4206 * tui/tui-io.c (tui_redisplay_readline): Check
4207 gdb_in_secondary_prompt_p instead of immediate_quit.
4208 * tui/tui.c: Include top.h.
4209 (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
4210 immediate_quit.
4211
4212 2016-04-12 Pedro Alves <palves@redhat.com>
4213
4214 * top.c (read_command_file): Inline command_loop here.
4215 (command_loop): Delete.
4216
4217 2016-04-12 Pedro Alves <palves@redhat.com>
4218
4219 * top.c: Include "gdb_select.h".
4220 (gdb_readline_no_editing): Wait for input with gdb_select instead
4221 of blocking in fgetc.
4222 (command_line_input): Don't set immediate_quit.
4223
4224 2016-04-08 Martin Galvan <martin.galvan@tallertechnologies.com>
4225
4226 * value.c (value_next): Make pass-by-reference parameters const-correct.
4227 (value_parent): Likewise.
4228 (value_enclosing_type): Likewise.
4229 (value_lazy): Likewise.
4230 (value_stack): Likewise.
4231 (value_embedded_offset): Likewise.
4232 (value_pointed_to_offset): Likewise.
4233 (value_raw_address): Likewise.
4234 (deprecated_value_modifiable): Likewise.
4235 (value_free_to_mark): Likewise.
4236 (value_release_to_mark): Likewise.
4237 (internalvar_name): Likewise.
4238 (readjust_indirect_value_type): Likewise.
4239 (value_initialized): Likewise.
4240 * value.h (value_next): Likewise.
4241 (value_parent): Likewise.
4242 (value_enclosing_type): Likewise.
4243 (value_lazy): Likewise.
4244 (value_stack): Likewise.
4245 (value_embedded_offset): Likewise.
4246 (value_pointed_to_offset): Likewise.
4247 (value_raw_address): Likewise.
4248 (deprecated_value_modifiable): Likewise.
4249 (value_free_to_mark): Likewise.
4250 (value_release_to_mark): Likewise.
4251 (internalvar_name): Likewise.
4252 (readjust_indirect_value_type): Likewise.
4253 (value_initialized): Likewise.
4254
4255 2016-04-07 Yao Qi <yao.qi@linaro.org>
4256
4257 * record-full.c (record_full_insert_breakpoint): Return
4258 early if entry on the address is found in
4259 record_full_breakpoints.
4260
4261 2016-04-07 Yao Qi <yao.qi@linaro.org>
4262
4263 * record-full.c (record_full_insert_breakpoint): Set
4264 bp_tgt->reqstd_address and bp_tgt->placed_size.
4265
4266 2016-04-06 Don Breazeal <donb@codesourcery.com>
4267
4268 * value.c (value_actual_type): Don't try to get rtti type
4269 of the value if it has been optimized out.
4270 (value_optimized_out): If a memory access error occurs,
4271 just check vaue->optimized_out.
4272
4273 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4274
4275 Revert the previous commit adding unknown_v_replies_ok.
4276
4277 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4278
4279 * remote.c (struct remote_state): New field unknown_v_replies_ok.
4280 (packet_config_support): Read it.
4281 (remote_start_remote): Set it.
4282
4283 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4284
4285 * remote.c: Revert check-in by a mistake in the previous commit.
4286
4287 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4288 Pedro Alves <palves@redhat.com>
4289
4290 * exec.c (exec_file_locate_attach): Print warning for unsupported
4291 target_pid_to_exec_file.
4292 * symfile-mem.c (add_vsyscall_page): Remove the "file" command
4293 message part.
4294
4295 2016-04-04 Simon Marchi <simon.marchi@ericsson.com>
4296
4297 * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
4298 trailing spaces.
4299
4300 2016-04-01 Artemiy Volkov <artemiyv@acm.org>
4301
4302 PR gdb/19820
4303 * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
4304 the type of BINOP_REPEAT's second operand.
4305
4306 2016-03-31 Yichao Yu <yyc1992@gmail.com>
4307
4308 PR gdb/19858
4309 * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
4310 got the breakpoint at the right address.
4311 (jit_inferior_created): New function.
4312 (_initialize_jit): Install jit_inferior_created as
4313 inferior_created observer.
4314
4315 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
4316
4317 * NEWS: Mention support for tracepoints on powerpc*-linux.
4318
4319 2016-03-31 Catalin Udma <catalin.udma@freescale.com>
4320
4321 PR python/19743
4322 * python/python.c (execute_gdb_command): Use console uiout
4323 when executing gdb command.
4324 * utils.c (restore_ui_out_closure): New structure.
4325 (do_restore_ui_out): New function.
4326 (make_cleanup_restore_ui_out): Likewise.
4327 * utils.h (make_cleanup_restore_ui_out): Declare.
4328
4329 2016-03-31 Pedro Alves <palves@redhat.com>
4330
4331 * NEWS: Mention that support for "target m32rsdi", "target mips",
4332 "target pmon", "target ddb", "target rockhopper", and "target lsi"
4333 was removed.
4334 * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
4335 remote-mips.o.
4336 (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
4337 * configure.tgt: Remove all references to remote-m32r-sdi.o and
4338 remote-mips.o.
4339 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
4340 function.
4341 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
4342 declaration.
4343 * remote-m32r-sdi.c, remote-mips.c: Delete files.
4344 * symfile.c (generic_load, generic_load): Remove comments.
4345
4346 2016-03-30 Yao Qi <yao.qi@linaro.org>
4347
4348 * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
4349 0 rather than NULL.
4350
4351 2016-03-30 Yao Qi <yao.qi@linaro.org>
4352
4353 * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
4354 (arm_epilogue_frame_this_id): New function.
4355 (arm_epilogue_frame_prev_register): New function.
4356 (arm_epilogue_frame_sniffer): New function.
4357 (arm_epilogue_frame_unwind): New.
4358 (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
4359
4360 2016-03-30 Yao Qi <yao.qi@linaro.org>
4361
4362 * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
4363 (arm_stack_frame_destroyed_p_1): ... here. Don't call
4364 arm_pc_is_thumb.
4365 (arm_stack_frame_destroyed_p): Call
4366 thumb_stack_frame_destroyed_p and
4367 arm_stack_frame_destroyed_p_1.
4368
4369 2016-03-30 Doug Evans <dje@google.com>
4370
4371 * python/py-utils.c (host_string_to_python_string): New function.
4372 * python/python-internal.h (host_string_to_python_string): Declare it.
4373 * python/py-*.c (*): Update all calls to
4374 PyString_Decode (str, strlen (str), host_charset (), NULL);
4375 to use host_string_to_python_string instead.
4376
4377 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
4378
4379 * remote.c (remote_check_symbols): Allocate own buffer for reply.
4380
4381 2016-03-29 Max Filippov <jcmvbkbc@gmail.com>
4382
4383 * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
4384 Use safe_read_memory_integer instead of read_memory_integer.
4385
4386 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
4387
4388 * NEWS: Mention support for tracepoints on s390*-linux.
4389
4390 2016-03-29 Don Breazeal <donb@codesourcery.com>
4391
4392 * gdb/value.c (value_actual_type): Fix formatting issue.
4393
4394 2016-03-23 Yao Qi <yao.qi@linaro.org>
4395
4396 * gdbarch.sh (software_single_step): Remove comments.
4397 * gdbarch.h: Regenerated.
4398
4399 2016-03-21 Yao Qi <yao.qi@linaro.org>
4400
4401 * arm-tdep.c (arm_record_media): New.
4402 (arm_record_ld_st_reg_offset): Call arm_record_media.
4403
4404 2016-03-21 Yao Qi <yao.qi@linaro.org>
4405
4406 * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
4407 more syscalls.
4408
4409 2016-03-18 Yao Qi <yao.qi@linaro.org>
4410
4411 * sparc-tdep.c (sparc_software_single_step): Make it static.
4412 * sparc-tdep.h (sparc_software_single_step): Remove declaration.
4413
4414 2016-03-18 Yao Qi <yao.qi@linaro.org>
4415
4416 * spu-tdep.c (spu_software_single_step): Throw error when
4417 target_read_memory fails.
4418
4419 2016-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4420
4421 * linux-thread-db.c (check_pid_namespace_match): Extend the message.
4422
4423 2016-03-17 Pedro Alves <palves@redhat.com>
4424 Don Breazeal <donb@codesourcery.com>
4425
4426 PR remote/19496
4427 * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
4428 instead of checking the 'non_stop' global.
4429 * remote.c (remote_add_thread): New parameter 'executing'. Use it
4430 to set the new thread's executing state.
4431 (remote_notice_new_inferior): Rename parameter 'running' to
4432 'executing'. Always set the thread state to THREAD_RUNNING in
4433 non-stop mode, and to THREAD_STOPPED in all-stop mode. Pass
4434 EXECUTING to remote_add_thread and notice_new_inferior.
4435 (remote_update_thread_list): Update to pass executing state, not
4436 running state.
4437
4438 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4439
4440 * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
4441 to 374.
4442 * syscalls/s390x-linux.xml: Likewise.
4443
4444 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4445
4446 * linux-record.c (record_mem_at_reg): New helper function.
4447 (record_linux_system_call): Exploit new helper function where
4448 applicable.
4449
4450 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4451
4452 * linux-record.c: Fix whitespace issues; tabify, remove trailing
4453 spaces.
4454
4455 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4456
4457 * linux-record.c (record_linux_system_call): Add missing return
4458 statements to handling of pipe and pipe2 syscalls.
4459
4460 2016-03-16 Doug Evans <dje@google.com>
4461
4462 * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
4463
4464 2016-03-16 Yao Qi <yao.qi@linaro.org>
4465
4466 * arm-linux-tdep.c (arm_linux_init_abi): Fix
4467 arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
4468 arm_linux_record_tdep.arg3. Set arm_linux_record_tdep.arg4,
4469 arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
4470 arm_linux_record_tdep.arg7.
4471
4472 2016-03-15 Keith Seitz <keiths@redhat.com>
4473
4474 PR breakpoints/18303
4475 * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
4476 look for "::" instead of simply ":".
4477 (cp_search_static_and_baseclasses): Return null_block_symbol for
4478 malformed input.
4479 Remove assertions.
4480 * cp-support.c (cp_find_first_component_aux): Do not return
4481 a prefix length for ':' unless the next character is also ':'.
4482
4483 2016-03-15 Doug Evans <dje@google.com>
4484
4485 * features/aarch64-core.xml (cpsr_flags): New flags type.
4486 (cpsr): Use it.
4487 * features/aarch64.c: Regenerate.
4488
4489 2016-03-15 Doug Evans <dje@google.com>
4490
4491 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
4492 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
4493 * features/i386/64bit-core.xml (i386_eflags): Ditto.
4494 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
4495 * features/i386/x32-core.xml (i386_eflags): Ditto.
4496
4497 2016-03-15 Doug Evans <dje@google.com>
4498 Wei-cheng Wang <cole945@gmail.com>
4499
4500 Extend flags to support multibit and enum bitfields.
4501 * NEWS: Document new features.
4502 * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
4503 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
4504 * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
4505 (append_flags_type_field): New function.
4506 (append_flags_type_flag): Call it.
4507 * gdbtypes.h (append_flags_type_field): Declare.
4508 * target-descriptions.c (struct tdesc_type_flag): Delete.
4509 (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
4510 (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
4511 (struct tdesc_type) <u.f>: Delete.
4512 (tdesc_predefined_types): Add "bool".
4513 (tdesc_predefined_type): New function.
4514 (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
4515 Update TDESC_TYPE_FLAGS support.
4516 (tdesc_free_type): Handle TDESC_TYPE_ENUM. Update TDESC_TYPE_FLAGS.
4517 (tdesc_create_flags): Update.
4518 (tdesc_create_enum): New function.
4519 (tdesc_add_field): Initialize start,end to -1.
4520 (tdesc_add_typed_bitfield): New function.
4521 (tdesc_add_bitfield): Call it.
4522 (tdesc_add_flag): Allow TDESC_TYPE_STRUCT. Update.
4523 (tdesc_add_enum_value): New function.
4524 (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
4525 TDESC_TYPE_STRUCT. Handle TDESC_TYPE_ENUM.
4526 * target-descriptions.h (tdesc_create_enum): Declare.
4527 (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
4528 * valprint.c (generic_val_print_enum_1): New function.
4529 (generic_val_print_enum): Call it.
4530 (val_print_type_code_flags): Make static. Handle multibit bitfields
4531 and enum bitfields.
4532 * valprint.h (val_print_type_code_flags): Delete.
4533 * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
4534 Delete. All uses removed.
4535 (tdesc_start_enum): New function.
4536 (tdesc_start_field): Handle multibit and enum bitfields.
4537 (tdesc_start_enum_value): New function.
4538 (enum_value_attributes, enum_children, enum_attributes): New static
4539 globals.
4540 (feature_children): Add "enum".
4541 * features/gdb-target.dtd (enum, evalue): New elements.
4542
4543 2016-03-15 Doug Evans <dje@google.com>
4544
4545 * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
4546 from LONGEST to int.
4547 (struct tdesc_type) <u.f.size>: Ditto.
4548 (tdesc_set_struct_size): Change type of "size" arg from LONGEST
4549 to int. Add assertion size > 0.
4550 (tdesc_create_flags): Ditto.
4551 * target-descriptions.h (tdesc_set_struct_size): Update.
4552 (tdesc_create_flags): Update.
4553 * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
4554 (MAX_VECTOR_SIZE): New macro.
4555 (tdesc_start_struct): Catch conversion errors from LONGEST to int.
4556 (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
4557
4558 2016-03-15 Doug Evans <dje@google.com>
4559
4560 * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
4561 TYPE_CODE_FLAGS instead of "field_type", for consistency.
4562 * features/i386/amd64-avx-linux.c: Regenerate.
4563 * features/i386/amd64-avx.c: Regenerate.
4564 * features/i386/amd64-avx512-linux.c: Regenerate.
4565 * features/i386/amd64-avx512.c: Regenerate.
4566 * features/i386/amd64-linux.c: Regenerate.
4567 * features/i386/amd64-mpx-linux.c: Regenerate.
4568 * features/i386/amd64-mpx.c: Regenerate.
4569 * features/i386/amd64.c: Regenerate.
4570 * features/i386/i386-avx-linux.c: Regenerate.
4571 * features/i386/i386-avx.c: Regenerate.
4572 * features/i386/i386-avx512-linux.c: Regenerate.
4573 * features/i386/i386-avx512.c: Regenerate.
4574 * features/i386/i386-linux.c: Regenerate.
4575 * features/i386/i386-mmx-linux.c: Regenerate.
4576 * features/i386/i386-mmx.c: Regenerate.
4577 * features/i386/i386-mpx-linux.c: Regenerate.
4578 * features/i386/i386-mpx.c: Regenerate.
4579 * features/i386/i386.c: Regenerate.
4580 * features/i386/x32-avx-linux.c: Regenerate.
4581 * features/i386/x32-avx.c: Regenerate.
4582 * features/i386/x32-avx512-linux.c: Regenerate.
4583 * features/i386/x32-avx512.c: Regenerate.
4584 * features/i386/x32-linux.c: Regenerate.
4585 * features/i386/x32.c: Regenerate.
4586
4587 2016-03-15 Pedro Alves <palves@redhat.com>
4588
4589 PR gdb/19676
4590 * linux-thread-db.c (try_thread_db_load_1): Leave
4591 info->td_ta_thr_iter_p NULL iff debugging a live process and we
4592 have /proc access.
4593 (find_new_threads_once): Assert that we have a non-NULL
4594 info->td_ta_thr_iter_p instead of checking whether the target has
4595 execution.
4596
4597 2016-03-15 Pedro Alves <palves@redhat.com>
4598
4599 PR gdb/19676
4600 * infrun.c (displaced_step_prepare): Also disable displaced
4601 stepping on NOT_SUPPORTED_ERROR.
4602 * linux-tdep.c (linux_displaced_step_location): If reading auxv
4603 fails, throw NOT_SUPPORTED_ERROR instead of generic error.
4604
4605 2016-03-13 Marcin Kościelnicki <koriakin@0x04.net>
4606
4607 * s390-linux-tdep.c (s390_gen_return_address): New function.
4608 (s390_gdbarch_init): Fill gen_return_address hook.
4609
4610 2016-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
4611
4612 * symmisc.c (maintenance_info_line_tables): New function.
4613 (maintenance_print_one_line_table): New function.
4614 (_initialize_symmisc): Register 'maint info line-table' command.
4615 * NEWS: Mention new command.
4616
4617 2016-03-11 Marcin Kościelnicki <koriakin@0x04.net>
4618
4619 * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
4620 (s390_ax_pseudo_register_push_stack): New function.
4621 (s390_gdbarch_init): Fill ax_pseudo_register_collect and
4622 ax_pseudo_register_push_stack hooks.
4623
4624 2016-03-10 Simon Marchi <simon.marchi@polymtl.ca>
4625
4626 * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
4627 gdb/function/as_string.py.
4628 * python/lib/gdb/function/as_string.py: New file.
4629 * NEWS: Mention the new $_as_string function.
4630
4631 2016-03-09 Jose E. Marchesi <jose.marchesi@oracle.com>
4632
4633 * target.h: Fix doc string of target_can_use_hardware_watchpoint.
4634
4635 2016-03-09 Pedro Alves <palves@redhat.com>
4636
4637 * event-top.c (more_to_come): Delete.
4638 (struct readline_input_state): Delete.
4639 (readline_input_state): Delete.
4640 (get_command_line_buffer): New function.
4641 (command_handler): Update comments. Don't handle NULL commands
4642 here. Do not execute commented lines.
4643 (command_line_append_input_line): New function.
4644 (handle_line_of_input): New function, partly based on
4645 command_line_handler and command_line_input.
4646 (command_line_handler): Rewrite.
4647 * event-top.h (command_handler): New declaration.
4648 (command_loop): Defer command execution to command_handler.
4649 (command_line_input): Update comments. Simplify, using struct
4650 buffer and handle_line_of_input.
4651 * top.h (struct buffer): New forward declaration.
4652 (handle_line_of_input): New declaration.
4653
4654 2016-03-09 Pedro Alves <palves@redhat.com>
4655
4656 * event-top.c (command_line_handler): Use xfree + xstrdup instead
4657 of xrealloc + strcpy.
4658 * main.c (captured_main): Use xstrdup instead of xmalloc plus
4659 manual clear.
4660 * top.c (saved_command_line): Rewrite comment.
4661 (saved_command_line_size): Delete.
4662 (command_line_input): Use xfree + xstrdup instead of xrealloc +
4663 strcpy.
4664 * top.h (saved_command_line_size): Delete declaration.
4665
4666 2016-03-09 Pedro Alves <palves@redhat.com>
4667
4668 * event-top.c: Include buffer.h.
4669 (gdb_readline_no_editing_callback): Use struct buffer instead
4670 of xrealloc.
4671
4672 2016-03-09 Pedro Alves <palves@redhat.com>
4673
4674 * common/buffer.h (buffer_grow_char): New function.
4675 * top.c: Include buffer.h.
4676 (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
4677 'prompt'. Use struct buffer instead of xrealloc.
4678
4679 2016-03-09 Pedro Alves <palves@redhat.com>
4680
4681 * defs.h (gdb_readline): Delete declaration.
4682 * top.c (gdb_readline): Rename to ...
4683 (gdb_readline_no_editing): ... this, and make static.
4684
4685 2016-03-09 Pedro Alves <palves@redhat.com>
4686
4687 * utils.c (prompt_for_continue): Update comments.
4688
4689 2016-03-09 Pedro Alves <palves@redhat.com>
4690
4691 * event-top.c (async_annotation_suffix): Delete.
4692 (top_level_prompt, command_line_handler): Don't use
4693 'async_annotation_suffix' and simplify.
4694 * event-top.h (async_annotation_suffix): Delete declaration.
4695 (init_main): Remove reference to 'async_annotation_suffix'.
4696
4697 2016-03-09 Pedro Alves <palves@redhat.com>
4698
4699 * event-top.c (gdb_readline2): Rename to ...
4700 (gdb_readline_no_editing_callback): ... this.
4701 (change_line_handler, stdin_event_handler)
4702 (gdb_setup_readline): Adjust.
4703 * event-top.h (gdb_readline2): Rename to ...
4704 (gdb_readline_no_editing_callback): ... this, and move closer to
4705 other readline-related declarations.
4706 * mi/mi-interp.c (mi_interpreter_resume): Adjust.
4707
4708 2016-03-09 Pedro Alves <palves@redhat.com>
4709
4710 * top.c (window_hook): Delete.
4711 (command_loop): Remove references to window_hook.
4712
4713 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
4714
4715 * corefile.c (safe_read_memory_unsigned_integer): New function.
4716 * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
4717 * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
4718
4719 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
4720
4721 * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
4722 (rs6000_gen_return_address): New function.
4723 (rs6000_gdbarch_init): Wire in the above.
4724
4725 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
4726
4727 * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
4728 (rs6000_gdbarch_init): Wire in the above.
4729
4730 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
4731
4732 * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
4733 instructions that do nothing or are conditional traps.
4734
4735 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
4736
4737 * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
4738 frame func's PC in info->func before any other failure can occur.
4739 (s390_frame_this_id): Use frame_id_build_unavailable_stack if
4740 info->func has been filled out.
4741
4742 2016-03-09 Pedro Alves <palves@redhat.com>
4743
4744 * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
4745
4746 2016-03-09 Pedro Alves <palves@redhat.com>
4747
4748 * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
4749
4750 2016-03-09 Pedro Alves <palves@redhat.com>
4751
4752 * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
4753 order is BFD_ENDIAN_BIG or if the cris version is unsupported.
4754
4755 2016-03-09 Pedro Alves <palves@redhat.com>
4756
4757 * doublest.c: Extend comments.
4758 (floatformat_to_doublest, floatformat_from_doublest): Copy the
4759 floatformat's total size, not the host type's size.
4760
4761 2016-03-09 Pedro Alves <palves@redhat.com>
4762
4763 * doublest.c (floatformat_totalsize_bytes): New function.
4764 (floatformat_from_type): Assert that the type's length is at least
4765 as long as the floatformat's totalsize.
4766 * doublest.h (floatformat_totalsize_bytes): New declaration.
4767 * gdbtypes.c (arch_float_type): Assert that the type's length is
4768 at least as long as the floatformat's totalsize.
4769
4770 2016-03-09 Pedro Alves <palves@redhat.com>
4771
4772 * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
4773 format to floatformats_ieee_double.
4774
4775 2016-03-07 Pedro Alves <palves@redhat.com>
4776
4777 * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
4778 before calling bfd_get_flavour.
4779
4780 2016-03-05 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4781
4782 * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
4783 (avr_push_dummy_call): Correct last needed argument register.
4784 Write MSB of argument into register and subsequent bytes into
4785 other registers in decreasing order.
4786
4787 2016-03-04 Yao Qi <yao.qi@linaro.org>
4788
4789 * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
4790 condition check. Record the right D register number.
4791
4792 2016-03-04 Yao Qi <yao.qi@linaro.org>
4793
4794 * arm-tdep.c (arm_record_extension_space): Remove code
4795 printing "Process record does not support".
4796 (arm_record_data_proc_misc_ld_str): Likewise.
4797 (decode_insn): Call arm_record_extension_space if condition
4798 is 0xf. Call arm_record_unsupported_insn if ret isn't
4799 ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold
4800 the value of thumb2_record_decode_insn_handler.
4801
4802 2016-03-04 Simon Marchi <simon.marchi@ericsson.com>
4803
4804 * features/feature_to_c.sh: Print the help when passing no
4805 argument.
4806
4807 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
4808
4809 * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
4810
4811 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
4812
4813 * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
4814
4815 2016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
4816
4817 * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
4818 exception when attempting to access the inferior's backchain.
4819
4820 2016-02-29 Yao Qi <yao.qi@linaro.org>
4821
4822 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
4823 eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
4824 Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
4825 for aarch64_sys_epoll_create1.
4826
4827 2016-02-29 Yao Qi <yao.qi@linaro.org>
4828
4829 * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
4830 <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
4831 <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
4832 * linux-record.c (record_linux_system_call): Handle them.
4833
4834 2016-02-28 Iain Buclaw <ibuclaw@gdcproject.org>
4835
4836 * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
4837 cyclic imports.
4838
4839 2016-02-26 Keith Seitz <keiths@redhat.com>
4840
4841 * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
4842 to avoid invalid conversion from void *.
4843
4844 2016-02-26 Yao Qi <yao.qi@linaro.org>
4845
4846 * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
4847 per bit 8. Check bit 20 instead of bit 4 for VMOV
4848 instruction. Record D registers for instructions changing
4849 S registers. Change of the order of length and address
4850 in record_buf_mem array.
4851
4852 2016-02-26 Yao Qi <yao.qi@linaro.org>
4853
4854 * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
4855 number of Rd.
4856
4857 2016-02-25 Doug Evans <dje@google.com>
4858
4859 * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
4860 compiler warning.
4861 (recv_long_data): Ditto.
4862
4863 2016-02-25 Simon Marchi <simon.marchi@ericsson.com>
4864
4865 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
4866 Initialize variables.
4867
4868 2016-02-25 Antoine Tremblay <antoine.tremblay@ericsson.com>
4869
4870 * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
4871 (ax_reg_mask): Likewise.
4872
4873 2016-02-24 Pedro Alves <palves@redhat.com>
4874
4875 * linux-nat.c (save_sigtrap) Delete.
4876 (stop_wait_callback): Call save_stop_reason instead of
4877 save_sigtrap.
4878 (check_stopped_by_breakpoint): Rename to ...
4879 (save_stop_reason): ... this. Bits of save_sigtrap folded here.
4880 Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
4881 GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out
4882 common code between the USE_SIGTRAP_SIGINFO and
4883 !USE_SIGTRAP_SIGINFO blocks.
4884 (linux_nat_filter_event): Call save_stop_reason instead of
4885 save_sigtrap.
4886 * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
4887 si_code for MIPS.
4888 * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add
4889 comments on MIPS behavior.
4890 (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
4891
4892 2016-02-24 Marcin Kościelnicki <koriakin@0x04.net>
4893
4894 * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
4895 to avoid spurious warnings.
4896
4897 2016-02-24 Gary Benson <gbenson@redhat.com>
4898
4899 * exec.c (exec_file_locate_attach): Do not attempt to
4900 locate main executable locally if not found in sysroot.
4901
4902 2016-02-24 Joel Brobecker <brobecker@adacore.com>
4903
4904 GDB 7.11 released.
4905
4906 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
4907
4908 * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
4909 unavailable PC/SP to build unavailable frame.
4910
4911 2016-02-23 Doug Evans <dje@google.com>
4912
4913 Extend "skip" command to support -file, -gfile, -function, -rfunction.
4914 * NEWS: Document new features.
4915 * skip.c: #include "fnmatch.h", "gdb_regex.h".
4916 (skiplist_entry) <file>: Renamed from filename.
4917 <function>: Renamed from function_name.
4918 <file_is_glob, function_is_regexp>: New members.
4919 <compiled_function_regexp, compiled_function_regexp_is_valid>:
4920 New members.
4921 (make_skip_entry): New function.
4922 (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
4923 (make_free_skiplist_entry_cleanup): New function.
4924 (skip_file_command): Update.
4925 (skip_function, skip_function_command): Update.
4926 (compile_skip_regexp): New functions.
4927 (skip_command): Add support for new options.
4928 (skip_info): Update.
4929 (skip_file_p, skip_gfile_p): New functions.
4930 (skip_function_p, skip_rfunction_p): New functions.
4931 (function_name_is_marked_for_skip): Update and simplify.
4932 (_initialize_step_skip): Update.
4933 * symtab.c: #include "fnmatch.h".
4934 (compare_glob_filenames_for_search): New function.
4935 * symtab.h (compare_glob_filenames_for_search): Declare.
4936 * utils.c (count_path_elements): New function.
4937 (strip_leading_path_elements): New function.
4938 * utils.h (count_path_elements): Declare.
4939 (strip_leading_path_elements): Declare.
4940
4941 2016-02-23 Simon Marchi <simon.marchi@ericsson.com>
4942
4943 * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
4944 (thumb_process_displaced_insn): Likewise.
4945 (arm_process_displaced_insn): Adjust calls.
4946
4947 2016-02-23 Yao Qi <yao.qi@linaro.org>
4948
4949 * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
4950 Remove.
4951 <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
4952 <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
4953 <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
4954 <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
4955 <aarch64_sys_linkat, aarch64_sys_renameat>: New.
4956 <aarch64_sys_faccessat>: New.
4957 <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
4958 <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
4959 <aarch64_sys_newfstatat>: New.
4960 (UNSUPPORTED_SYSCALL_MAP): New macro.
4961 (aarch64_canonicalize_syscall): Add missing syscalls.
4962
4963 2016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4964
4965 * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
4966
4967 2016-02-22 Yao Qi <yao.qi@linaro.org>
4968
4969 * arm-tdep.c: Fix code format issues.
4970
4971 2016-02-21 Iain Buclaw <ibuclaw@gdcproject.org>
4972
4973 * d-namespace.c (d_lookup_symbol_imports): Remove argument
4974 'search_parents'. All callers updated.
4975
4976 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
4977
4978 * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
4979 (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
4980
4981 2016-02-18 Walfred Tedeschi <walfred.tedeschi@intel.com>
4982
4983 * NEWS: Add entry for bound violation.
4984 * amd64-linux-tdep.c (amd64_linux_init_abi_common):
4985 Add handler for segmentation fault.
4986 * gdbarch.sh (handle_segmentation_fault): New.
4987 * gdbarch.c: Regenerate.
4988 * gdbarch.h: Regenerate.
4989 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
4990 (SIG_CODE_BONDARY_FAULT): New define.
4991 (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
4992 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
4993 * i386-tdep.c (i386_mpx_enabled): Add as external.
4994 * i386-tdep.c (i386_mpx_enabled): Add as external.
4995 * infrun.c (handle_segmentation_fault): New function.
4996 (print_signal_received_reason): Use handle_segmentation_fault.
4997
4998 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
4999
5000 * arch-utils.c (default_guess_tracepoint_registers): New function.
5001 * arch-utils.h (default_guess_tracepoint_registers): New prototype.
5002 * gdbarch.c: Regenerate.
5003 * gdbarch.h: Regenerate.
5004 * gdbarch.sh: Add guess_tracepoint_registers hook.
5005 * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
5006
5007 2016-02-17 Gary Benson <gbenson@redhat.com>
5008
5009 * exec.c (exec_file_locate_attach): Add missing cleanup.
5010
5011 2016-02-16 Don Breazeal <donb@codesourcery.com>
5012
5013 PR remote/19496
5014 * remote.c (remove_new_fork_children): Check for pending
5015 fork status in thread_info.suspend.
5016
5017 2016-02-16 Yao Qi <yao.qi@linaro.org>
5018
5019 * arm-linux-tdep.c (arm_linux_software_single_step): Assign
5020 'old_chain' later.
5021
5022 2016-02-16 Yao Qi <yao.qi@linaro.org>
5023
5024 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
5025 <syscall_next_pc>: Remove argument PC. Callers updated.
5026 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
5027 Remove argument PC. Get pc from regcache_read_pc.
5028 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
5029 argument PC.
5030
5031 2016-02-15 Yao Qi <yao.qi@linaro.org>
5032
5033 * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
5034
5035 2016-02-12 Yao Qi <yao.qi@linaro.org>
5036
5037 * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
5038 nextpc according to instruction.
5039
5040 2016-02-12 Yao Qi <yao.qi@linaro.org>
5041
5042 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
5043 self->ops->fixup if it isn't NULL.
5044 * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
5045 (struct arm_get_next_pcs_ops) <fixup>: New field.
5046 * arch/arm-linux.c: Include common-regcache.h and
5047 arch/arm-get-next-pcs.h.
5048 (arm_linux_get_next_pcs_fixup): New function.
5049 * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
5050 * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
5051 it with arm_linux_get_next_pcs_fixup.
5052 (arm_linux_software_single_step): Move code to
5053 arm_linux_get_next_pcs_fixup.
5054 * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
5055
5056 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
5057
5058 * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
5059 and return NULL.
5060
5061 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
5062
5063 * frame.h (skip_tailcall_frames): Update comment.
5064 * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
5065 if only artificial frames are found. Update comment.
5066 (frame_unwind_caller_id): Handle NULL return.
5067 (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
5068 skip_artificial_frames does not return NULL.
5069 (frame_pop): Add an error if only tailcall frames are found.
5070 * infcmd.c (finish_command): Move skip_tailcall_frames call into
5071 forward-execution case. Add an error if only tailcall frames are
5072 found.
5073
5074 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
5075
5076 * stack.c (frame_info): Check frame_unwind_caller_id.
5077
5078 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
5079
5080 * frame.h (skip_tailcall_frames): New.
5081 * frame.c (skip_tailcall_frames): New.
5082 (frame_pop): Call skip_tailcall_frames.
5083 * infcmd.c (finish_command): Call skip_tailcall_frames.
5084
5085 2016-02-11 Pedro Alves <palves@redhat.com>
5086
5087 * Makefile.in (check-parallel): New rule.
5088
5089 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
5090
5091 * arm-tdep.c (arm_skip_prologue): Remove unused variables.
5092 (arm_analyze_prologue): Likewise.
5093 (arm_scan_prologue): Likewise.
5094 (arm_m_exception_prev_register): Likewise.
5095 (arm_copy_block_xfer): Likewise.
5096 (thumb2_copy_block_xfer): Likewise.
5097 (arm_decode_miscellaneous): Likewise.
5098 (arm_decode_ld_st_word_ubyte): Likewise.
5099 (arm_decode_svc_copro): Likewise.
5100 (thumb2_decode_svc_copro): Likewise.
5101 (thumb_copy_16bit_ldr_literal): Likewise.
5102 (thumb_copy_pop_pc_16bit): Likewise.
5103 (decode_thumb_32bit_ld_mem_hints): Likewise.
5104 (arm_show_force_mode): Likewise.
5105 (_initialize_arm_tdep): Likewise.
5106 (arm_record_strx): Likewise.
5107 (arm_record_extension_space): Likewise.
5108 (arm_record_data_proc_misc_ld_str): Likewise.
5109 (arm_record_exreg_ld_st_insn): Likewise.
5110 (arm_record_vfp_data_proc_insn): Likewise.
5111 (arm_record_coproc_data_proc): Likewise.
5112 (thumb_record_misc): Likewise.
5113 (thumb_record_ldm_stm_swi): Likewise.
5114 (thumb2_record_ld_st_dual_ex_tbb): Likewise.
5115 (thumb2_record_ld_mem_hints): Likewise.
5116 (thumb2_record_lmul_lmla_div): Likewise.
5117 (thumb2_record_asimd_struct_ld_st): Likewise.
5118 (arm_process_record): Likewise.
5119
5120 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
5121
5122 * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
5123 (ARM displaced stepping support): Remove reference to
5124 arm_displaced_step_copy_insn in comment.
5125 * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
5126 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
5127 reference to arm_displaced_step_copy_insn in comment.
5128
5129 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
5130
5131 * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
5132 (thumb_copy_b): Likewise.
5133 (arm_decode_b_bl_ldmstm): Likewise.
5134 (thumb_copy_16bit_ldr_literal): Likewise.
5135 (thumb_copy_pop_pc_16bit): Likewise.
5136
5137 2016-02-11 Antoine Tremblay <antoine.tremblay@ericsson.com>
5138
5139 * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
5140 than loc->gdbarch.
5141
5142 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
5143
5144 * tracefile-tfile.c (trace_tdesc): New static variable.
5145 (tfile_open): Clear trace_tdesc, call target_find_description.
5146 (tfile_interp_line): Recognize tdesc lines.
5147 (tfile_close): Clear trace_tdesc.
5148 (tfile_xfer_partial_features): New function.
5149 (tfile_xfer_partial): Call tfile_xfer_partial_features.
5150 (tfile_append_tdesc_line): New function.
5151
5152 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
5153
5154 * ctf.c (ctf_write_tdesc): New function.
5155 (ctf_write_ops): Wire in ctf_write_tdesc.
5156 * tracefile-tfile.c (tfile_write_tdesc): New function.
5157 (tfile_write_ops): Wire in tfile_write_tdesc.
5158 * tracefile.c (trace_save): Call write_tdesc method.
5159 * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
5160 * xml-tdesc.c (target_fetch_description_xml): New function.
5161 * xml-tdesc.h: Add target_fetch_description_xml prototype.
5162
5163 2016-02-10 Simon Marchi <simon.marchi@ericsson.com>
5164
5165 * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
5166 (arm_decode_dp_misc): Likewise.
5167
5168 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
5169
5170 * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
5171 (amd64_init_abi): Fill ax_pseudo_register_collect hook.
5172 * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
5173 misleading comment.
5174 (i386_pseudo_register_write): Ditto.
5175 (i386_ax_pseudo_register_collect): New function.
5176 (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
5177 * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
5178
5179 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
5180
5181 * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
5182 instead of gdb order.
5183
5184 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
5185
5186 * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
5187 check.
5188
5189 2016-02-10 Joel Brobecker <brobecker@adacore.com>
5190
5191 * NEWS: Create a new section for the next release branch.
5192 Rename the section of the current branch, now that it has
5193 been cut.
5194
5195 2016-02-10 Joel Brobecker <brobecker@adacore.com>
5196
5197 GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
5198 * version.in: Bump version to 7.11.50.DATE-git.
5199
5200 2016-02-09 Keith Seitz <keiths@redhat.com>
5201
5202 PR breakpoints/19546
5203 * breakpoint.c (breakpoint_event_location_empty_p): New function.
5204 (update_breakpoints_after_exec, bkpt_re_set): Use this new function
5205 instead of event_location_empty_p.
5206
5207 2016-02-09 Keith Seitz <keiths@redhat.com>
5208
5209 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
5210 string_to_event_location_basic instead of string_to_event_location.
5211
5212 2016-02-09 Keith Seitz <keiths@redhat.com>
5213
5214 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
5215 leading whitespace and use string_to_event_location_basic instead
5216 of new_linespec_location.
5217
5218 2016-02-09 Keith Seitz <keiths@redhat.com>
5219
5220 PR python/19506
5221 * python/py-breakpoint.c (bppy_init): Use
5222 string_to_event_location_basic instead of new_linespec_location.
5223
5224 2016-02-09 Keith Seitz <keiths@redhat.com>
5225
5226 * location.c (string_to_explicit_location): Note that "-p" is
5227 reserved for probe locations and return NULL for any input
5228 that starts with that.
5229 (string_to_event_location): Move "legacy" linespec code to ...
5230 (string_to_event_location_basic): ... here.
5231 * location.h (string_to_event_location): Update comment.
5232 (string_to_event_location_basic): New function.
5233
5234 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
5235
5236 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
5237 to AC_OUTPUT. Remove "exit 0" at the end.
5238 * configure: Regenerate.
5239
5240 2016-02-09 Pedro Alves <palves@redhat.com>
5241
5242 PR breakpoints/19548
5243 * breakpoint.c (create_overlay_event_breakpoint): Don't update
5244 global location list here.
5245 (create_longjmp_master_breakpoint)
5246 (create_std_terminate_master_breakpoint)
5247 (create_exception_master_breakpoint, create_jit_event_breakpoint)
5248 (update_breakpoint_locations):
5249 (breakpoint_re_set): Update global location list after all
5250 breakpoints are re-set.
5251
5252 2016-02-08 Simon Marchi <simon.marchi@ericsson.com>
5253
5254 * remote.c (remote_register_number_and_offset): Remove unused
5255 variable(s).
5256 (remote_thread_always_alive): Likewise.
5257 (remote_update_thread_list): Likewise.
5258 (process_initial_stop_replies): Likewise.
5259 (remote_start_remote): Likewise.
5260 (remote_check_symbols): Likewise.
5261 (discard_pending_stop_replies): Likewise.
5262 (process_stop_reply): Likewise.
5263 (putpkt_binary): Likewise.
5264 (getpkt): Likewise.
5265 (remote_add_target_side_condition): Likewise.
5266 (remote_insert_breakpoint): Likewise.
5267 (remote_supports_stopped_by_sw_breakpoint): Likewise.
5268 (remote_supports_stopped_by_hw_breakpoint): Likewise.
5269 (remote_xfer_partial): Likewise.
5270 (remote_read_btrace): Likewise.
5271 (remote_async_serial_handler): Likewise.
5272 (remote_thread_events): Likewise.
5273 (_initialize_remote): Likewise.
5274
5275 2016-02-07 Simon Marchi <simon.marchi@polymtl.ca>
5276
5277 * varobj.h (varobj_delete): Remove dellist parameter, update and
5278 move documentation here.
5279 * varobj.c (struct cpstack, cppush, cppop): Remove.
5280 (delete_variable): Remove resultp (first) parameter.
5281 (delete_variable_1): Likewise.
5282 (varobj_delete): Remove dellist parameter and unused code.
5283 (update_dynamic_varobj_children): Adjust varobj_delete call.
5284 (update_type_if_necessary): Likewise.
5285 (varobj_set_visualizer): Likewise.
5286 (varobj_update): Likewise.
5287 (value_of_root): Likewise.
5288 (varobj_invalidate_iter): Likewise.
5289 * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
5290
5291 2016-02-04 Yao Qi <yao.qi@linaro.org>
5292
5293 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
5294 0 before handling 'F' and set it back afterwards.
5295
5296 2016-02-02 Simon Marchi <simon.marchi@ericsson.com>
5297
5298 * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
5299
5300 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5301
5302 * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
5303 New types.
5304 (compat_siginfo): New bound fields added.
5305 (compat_x32_siginfo): New field added.
5306 (cpt_si_addr_lsb): New define.
5307 (compat_siginfo_from_siginfo): Use nat_siginfo.
5308 (siginfo_from_compat_siginfo): Use nat_siginfo.
5309 (compat_x32_siginfo_from_siginfo): Likewise.
5310 (siginfo_from_compat_x32_siginfo): Likewise.
5311
5312 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5313
5314 * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
5315 structure to the siginfo if extra_fields contains
5316 LINUX_SIGINFO_FIELD_ADDR_BND.
5317
5318 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5319
5320 * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
5321 * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
5322 * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
5323 function.
5324 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
5325 x86_linux_get_siginfo_type for the amd64 abi.
5326 * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
5327 function.
5328 (i386_linux_init_abi): Add new function at the i386 ABI
5329 initialization.
5330
5331 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5332
5333 * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
5334 (linux_siginfo_extra_fields): New enum type.
5335 * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
5336 (linux_get_siginfo_type): Use new function.
5337
5338 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5339
5340 * nat/amd64-linux-siginfo.c: New file.
5341 * nat/amd64-linux-siginfo.h: New file.
5342 * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
5343 (amd64-linux-siginfo.o): New rule.
5344 * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
5345 * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
5346 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
5347 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
5348 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
5349 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
5350 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
5351 (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
5352
5353 2016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5354
5355 * value.c (max_value_size): New variable.
5356 (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
5357 (set_max_value_size): New function.
5358 (show_max_value_size): New function.
5359 (check_type_length_before_alloc): New function.
5360 (allocate_value_contents): Call check_type_length_before_alloc.
5361 (set_value_enclosing_type): Likewise.
5362 (_initialize_values): Add set/show handler for max-value-size.
5363 * NEWS: Mention new set/show command.
5364
5365 2016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
5366
5367 * varobj.h (struct varobj): Fix typos in comments.
5368 (struct lang_varobj_ops): Likewise.
5369 * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
5370 (varobj_create): Move misplaced comment.
5371
5372 2016-01-29 Simon Marchi <simon.marchi@ericsson.com>
5373
5374 * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
5375 to for include additional lines.
5376 * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
5377
5378 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
5379
5380 * gnulib/import/Makefile.am: Regenerate.
5381 * gnulib/import/Makefile.in: Regenerate.
5382 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5383 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
5384
5385 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
5386
5387 * remote.c (skip_to_semicolon): Remove.
5388 (remote_parse_stop_reply): Use strchrnul instead of
5389 skip_to_semicolon.
5390 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
5391 strchrnul.
5392 * gnulib/aclocal.m4: Regenerate.
5393 * gnulib/config.in: Regenerate.
5394 * gnulib/configure: Regenerate.
5395 * gnulib/import/Makefile.am: Regenerate.
5396 * gnulib/import/Makefile.in: Regenerate.
5397 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5398 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5399 * gnulib/import/m4/rawmemchr.m4: New file.
5400 * gnulib/import/m4/strchrnul.m4: New file.
5401 * gnulib/import/rawmemchr.c: New file.
5402 * gnulib/import/rawmemchr.valgrind: New file.
5403 * gnulib/import/strchrnul.c: New file.
5404 * gnulib/import/strchrnul.valgrind: New file.
5405
5406 2016-01-28 Yao Qi <yao.qi@linaro.org>
5407
5408 * breakpoint.c (build_target_command_list): Don't call continue
5409 if aexpr is NULL.
5410 (build_target_condition_list): Likewise.
5411
5412 2016-01-27 Kevin Buettner <kevinb@redhat.com>
5413
5414 * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
5415 bytes as aggregates.
5416
5417 2016-01-27 Joel Brobecker <brobecker@adacore.com>
5418
5419 * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
5420 Linespec Maintainers.
5421
5422 2016-01-26 Simon Marchi <simon.marchi@ericsson.com>
5423
5424 * common/common-utils.c (skip_spaces): Fix comment.
5425 (skip_to_space_const): Likewise.
5426
5427 2016-01-25 Yao Qi <yao.qi@linaro.org>
5428
5429 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
5430 Remove argument pc. Get pc by regcache_read_pc. Callers updated.
5431 (arm_deal_with_atomic_sequence_raw): Likewise.
5432 (thumb_get_next_pcs_raw): Likewise.
5433 (arm_get_next_pcs_raw): Likewise.
5434 (arm_get_next_pcs): Remove argument pc. Callers updated.
5435 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
5436
5437 2016-01-25 Mark Wielaard <mjw@redhat.com>
5438
5439 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
5440 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
5441 if statement.
5442 * inflow.c (child_terminal_ours_1): Fix misleading indentation of
5443 statement block by introducing an else.
5444 * linux-record.c (record_linux_sockaddr): Fix misleading indentation
5445 of return statements.
5446 (record_linux_msghdr): Likewise.
5447
5448 2016-01-25 Pedro Alves <palves@redhat.com>
5449
5450 PR threads/19461
5451 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
5452 parent/child running states.
5453
5454 2016-01-25 Pedro Alves <palves@redhat.com>
5455
5456 PR gdb/19494
5457 * linux-nat.c (kill_one_lwp): New, factored out from ...
5458 (kill_callback): ... this.
5459 (kill_wait_callback): New, factored out from ...
5460 (kill_wait_one_lwp): ... this.
5461 (kill_unfollowed_fork_children): New function.
5462 (linux_nat_kill): Use it.
5463
5464 2016-01-22 John Baldwin <jhb@FreeBSD.org>
5465
5466 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
5467
5468 2016-01-22 Yao Qi <yao.qi@linaro.org>
5469
5470 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
5471 instead of warning.
5472 (store_fpregs, fetch_regs, store_regs): Likewise.
5473 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5474 (fetch_vfp_regs, store_vfp_regs): Likewise.
5475
5476 2016-01-21 Doug Evans <dje@google.com>
5477
5478 * breakpoint.c (init_breakpoint_sal): Add comment.
5479
5480 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
5481
5482 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
5483
5484 2016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
5485
5486 * disasm.c (maybe_add_dis_line_entry): Rename to...
5487 (add_dis_line_entry): ...this, and update header comment.
5488 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
5489
5490 2016-01-21 Pedro Alves <palves@redhat.com>
5491
5492 * Makefile.in (COMPILER_CFLAGS): New.
5493 (CXXFLAGS): Get it from configure.
5494 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
5495 instead of CFLAGS.
5496 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
5497 COMPILER_CFLAGS.
5498 * configure: Regenerate.
5499
5500 2016-01-21 Joel Brobecker <brobecker@adacore.com>
5501
5502 * location.h (new_address_location): Add new parameters
5503 "addr_string" and "addr_string_len".
5504 (get_address_string_location): Add declaration.
5505 * location.c (new_address_location): Add new parameters
5506 "addr_string" and "addr_string_len". If not NULL, store
5507 a copy of the addr_string in the new location as well.
5508 (get_address_string_location): New function.
5509 (string_to_event_location): Update call to new_address_location.
5510 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
5511 Save the event location in the parser's state before
5512 passing it to convert_address_location_to_sals.
5513 * breakpoint.c (create_thread_event_breakpoint): Update call
5514 to new_address_location.
5515 (init_breakpoint_sal): Get the event location's string, if any,
5516 and use it to update call to new_address_location.
5517 * python/py-finishbreakpoint.c (bpfinishpy_init):
5518 Update call to new_address_location.
5519 * spu-tdep.c (spu_catch_start): Likewise.
5520
5521 * config/djgpp/fnchange.lst: Add entries for
5522 gdb/testsuite/gdb.base/break-fun-addr1.c and
5523 gdb/testsuite/gdb.base/break-fun-addr2.c.
5524
5525 2016-01-21 Yao Qi <yao.qi@linaro.org>
5526
5527 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
5528 is_thumb and set it according to CPSR saved on the stack.
5529 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
5530 arm_linux_sigreturn_next_pc.
5531
5532 2016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5533
5534 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
5535 Fix enumerators sort key function.
5536
5537 2016-01-20 Joel Brobecker <brobecker@adacore.com>
5538
5539 * printcmd.c (print_scalar_formatted): Move binary operator from
5540 end of line to beginning of next line. Adjust formatting
5541 accordingly.
5542
5543 2016-01-19 John Baldwin <jhb@FreeBSD.org>
5544
5545 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
5546 "len" with sysctl.
5547
5548 2016-01-19 John Baldwin <jhb@FreeBSD.org>
5549
5550 * fbsd-tdep.c (find_stop_signal): Remove.
5551 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
5552 <stop_signal>: New field.
5553 <abort_iteration>: New field.
5554 (fbsd_collect_regset_section_cb): Use new fields.
5555 (fbsd_collect_thread_registers): New function.
5556 (struct fbsd_corefile_thread_data): New structure.
5557 (fbsd_corefile_thread): New function.
5558 (fbsd_make_corefile_notes): Use new function to dump notes for each
5559 non-exited thread in a process.
5560
5561 2016-01-19 John Baldwin <jhb@FreeBSD.org>
5562
5563 * configure.ac: Check for support for LWP names on FreeBSD.
5564 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
5565 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
5566 (fbsd_fetch_kinfo_proc): Move function earlier.
5567 [PT_LWPINFO] (fbsd_thread_alive): New function.
5568 [PT_LWPINFO] (fbsd_pid_to_str): New function.
5569 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
5570 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
5571 [PT_LWPINFO] (fbsd_add_threads): New function.
5572 [PT_LWPINFO] (fbsd_update_thread_list): New function.
5573 [PT_LWPINFO] New variable super_resume.
5574 [PT_LWPINFO] (resume_one_thread_cb): New function.
5575 [PT_LWPINFO] (resume_all_threads_cb): New function.
5576 [PT_LWPINFO] (fbsd_resume): New function.
5577 (fbsd_remember_child): Save full ptid instead of plain pid.
5578 (fbsd_is_child_pending): Return ptid of saved child process.
5579 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
5580 first stop.
5581 [PT_LWP_EVENTS] Handle LWP events.
5582 [TDP_RFPPWAIT] Include LWP in child ptid.
5583 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
5584 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
5585 Add threads for existing processes.
5586 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
5587 "fbsd_thread_alive".
5588 Set "to_pid_to_str" to "fbsd_pid_to_str".
5589 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
5590 "fbsd_thread_name".
5591 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
5592 Set "to_has_thread_control" to "tc_schedlock".
5593 Set "to_resume" to "fbsd_resume".
5594 (_initialize_fbsd_nat): New function.
5595 * configure: Regenerate.
5596 * config.in: Regenerate.
5597
5598 2016-01-19 John Baldwin <jhb@FreeBSD.org>
5599
5600 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
5601 get_ptrace_pid.
5602 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
5603 (amd64bsd_dr_get): Use get_ptrace_pid.
5604 (amd64bsd_dr_set): Use get_ptrace_pid.
5605 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
5606 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
5607 (i386bsd_dr_get): Use get_ptrace_pid.
5608 (i386bsd_dr_set): Use get_ptrace_pid.
5609 * inf-ptrace.c (get_ptrace_pid): Export.
5610 * inf-ptrace.h (get_ptrace_pid): Declare.
5611 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
5612 (ppcfbsd_store_inferior_registers): Use lwp id.
5613
5614 2016-01-19 John Baldwin <jhb@FreeBSD.org>
5615
5616 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
5617 (fbsd_core_thread_name): New function.
5618 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
5619 Add "core_thread_name" gdbarch method.
5620
5621 2016-01-19 John Baldwin <jhb@FreeBSD.org>
5622
5623 * corelow.c (core_thread_name): New function.
5624 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
5625 target op.
5626 * gdbarch.sh (core_thread_name): New gdbarch callback.
5627 * gdbarch.h: Re-generate.
5628 * gdbarch.c: Re-generate.
5629
5630 2016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
5631
5632 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
5633 convert gdb.Value to integer type using int().
5634
5635 2016-01-19 John Baldwin <jhb@FreeBSD.org>
5636
5637 * configure.ac: Include <sys/types.h when checking for "r_fs" in
5638 "struct reg".
5639 * configure: Regenerate.
5640
5641 2016-01-19 Pedro Alves <palves@redhat.com>
5642
5643 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
5644 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
5645 current program space down to linespec decoding and breakpoint
5646 location updating.
5647 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
5648 decode_line_full.
5649 (until_break_command): Adjust calls to decode_line_1.
5650 (base_breakpoint_decode_location, bkpt_decode_location): Add
5651 'search_pspace' parameter. Pass it along.
5652 (bkpt_probe_create_sals_from_location): Adjust calls to
5653 parse_probes.
5654 (tracepoint_decode_location, tracepoint_probe_decode_location)
5655 (strace_marker_decode_location): Add 'search_pspace' parameter.
5656 Pass it along.
5657 (all_locations_are_pending): Rewrite to take a breakpoint and
5658 program space as arguments instead.
5659 (hoist_existing_locations): New function.
5660 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
5661 hoist_existing_locations instead of always removing all locations,
5662 and adjust to all_locations_are_pending change.
5663 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
5664 Don't disable the breakpoint if there are other locations in
5665 another program space.
5666 (breakpoint_re_set_default): Adjust to pass down the current
5667 program space as filter program space.
5668 (decode_location_default): Add 'search_pspace' parameter and pass
5669 it along.
5670 (prepare_re_set_context): Don't switch program space here.
5671 (breakpoint_re_set): Use save_current_space_and_thread instead of
5672 save_current_program_space.
5673 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
5674 'search_pspace' parameter.
5675 (update_breakpoint_locations): Add 'filter_pspace' parameter.
5676 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
5677 decode_line_1.
5678 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
5679 program space as filter program space.
5680 * linespec.c (struct linespec_state) <search_pspace>: New field.
5681 (create_sals_line_offset, convert_explicit_location_to_sals)
5682 (parse_linespec): Pass the search program space down.
5683 (linespec_state_constructor): Add 'search_pspace' parameter.
5684 Store it.
5685 (linespec_parser_new): Add 'search_pspace' parameter and pass it
5686 along.
5687 (linespec_lex_to_end): Adjust.
5688 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
5689 and pass it along.
5690 (decode_line_with_last_displayed): Adjust.
5691 (collect_symtabs_from_filename, symtabs_from_filename): New
5692 'search_pspace' parameter. Use it.
5693 (find_function_symbols): Pass the search program space down.
5694 * linespec.h (decode_line_1, decode_line_full): Add
5695 'search_pspace' parameter.
5696 * probe.c (parse_probes_in_pspace): New function, factored out
5697 from ...
5698 (parse_probes): ... this. Add 'search_pspace' parameter and use
5699 it.
5700 * probe.h (parse_probes): Add pspace' parameter.
5701 * python/python.c (gdbpy_decode_line): Adjust.
5702 * tracepoint.c (scope_info): Adjust.
5703
5704 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
5705
5706 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
5707 instruction support.
5708 (micromips_next_pc): Likewise.
5709 (micromips_scan_prologue): Likewise.
5710 (micromips_deal_with_atomic_sequence): Likewise.
5711 (micromips_stack_frame_destroyed_p): Likewise.
5712 (mips_breakpoint_from_pc): Likewise.
5713
5714 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
5715
5716 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
5717 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
5718
5719 2016-01-18 Pedro Alves <palves@redhat.com>
5720
5721 * NEWS: Mention that GDB now displays the ID and name of the
5722 thread that hit a breakpoint or received a signal.
5723 * break-catch-sig.c (signal_catchpoint_print_it): Use
5724 maybe_print_thread_hit_breakpoint.
5725 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
5726 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
5727 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
5728 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
5729 (print_it_catch_exec, print_it_ranged_breakpoint)
5730 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
5731 Use maybe_print_thread_hit_breakpoint.
5732 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
5733 * gdbthread.h (show_thread_that_caused_stop): Declare.
5734 * infrun.c (print_signal_received_reason): Print which thread
5735 received signal.
5736 * thread.c (show_thread_that_caused_stop): New function.
5737
5738 2016-01-18 Gary Benson <gbenson@redhat.com>
5739
5740 * nat/linux-namespaces.c (do_fork): New function.
5741 (linux_mntns_get_helper): Use the above.
5742
5743 2016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
5744
5745 Pushed by Joel Brobecker <brobecker@adacore.com>.
5746 PR gdb/19208
5747 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
5748 if the function has no name.
5749
5750 2016-01-15 Sandra Loosemore <sandra@codesourcery.com>
5751
5752 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
5753 Conditionalize for Windows host.
5754 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
5755 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
5756 (phony_iconv_open): Handle both UTF-32 endiannesses.
5757 (phony_iconv): Likewise. Check for output overflow and clean up
5758 out-of-input cases. Correct adjustment to input buffer pointer.
5759 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
5760 phony_iconv_open.
5761
5762 2016-01-15 Pedro Alves <palves@redhat.com>
5763
5764 * NEWS: Mention star wildcard ranges.
5765 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
5766 (number_range_setup_range): New function.
5767 * cli/cli-utils.h (number_range_setup_range): New declaration.
5768 * thread.c (thread_apply_command): Support star TID ranges.
5769 * tid-parse.c (tid_range_parser_finished)
5770 (tid_range_parser_string, tid_range_parser_skip)
5771 (get_tid_or_range, get_tid_or_range): Handle
5772 TID_RANGE_STATE_STAR_RANGE.
5773 (tid_range_parser_star_range): New function.
5774 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
5775 New value.
5776 (tid_range_parser_star_range): New declaration.
5777
5778 2016-01-15 Pedro Alves <palves@redhat.com>
5779
5780 * thread.c (thread_apply_command): Use the tid range parser to
5781 advance past the thread ID list.
5782 * tid-parse.c (get_positive_number_trailer): New function.
5783 (parse_thread_id): Use it.
5784 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
5785 thread ID error.
5786 (get_tid_or_range): Detect negative values. Return 0 instead of
5787 throwing invalid thread ID error.
5788
5789 2016-01-14 Yao Qi <yao.qi@linaro.org>
5790
5791 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
5792 Declare.
5793 (arm_linux_get_next_pcs_ops): Install
5794 arm_linux_get_next_pcs_syscall_next_pc.
5795 (arm_linux_syscall_next_pc): Change to ...
5796 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
5797 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
5798 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
5799 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
5800 call tdep->syscall_next_pc.
5801 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
5802 (arm_get_next_pcs_syscall_next_pc): Remove.
5803
5804 2016-01-14 Yao Qi <yao.qi@linaro.org>
5805
5806 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
5807 * thread.c (do_captured_thread_select): Cast to const char *.
5808
5809 2016-01-14 Yao Qi <yao.qi@linaro.org>
5810
5811 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
5812 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
5813 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
5814 instead.
5815 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
5816 <arm_thumb2_breakpoint>: Remove.
5817 <has_thumb2_breakpoint>: New field.
5818 (arm_get_next_pcs_ctor): Update declaration.
5819 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
5820 1 to arm_get_next_pcs_ctor.
5821 * arm-tdep.c (arm_software_single_step): Pass 0 to
5822 arm_get_next_pcs_ctor.
5823
5824 2016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
5825
5826 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
5827
5828 2016-01-13 Yao Qi <yao.qi@linaro.org>
5829
5830 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
5831 byte_order_for_code to read instruction.
5832
5833 2016-01-13 Pedro Alves <palves@redhat.com>
5834
5835 * NEWS: Mention $_gthread.
5836 * gdbthread.h (struct thread_info) <global_num>: Mention
5837 $_gthread.
5838 * thread.c (thread_num_make_value_helper): New function.
5839 (thread_id_make_value): Delete.
5840 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
5841 New.
5842 (thread_funcs): Adjust.
5843 (gthread_funcs): New.
5844 (_initialize_thread): Register $_gthread variable.
5845
5846 2016-01-13 Pedro Alves <palves@redhat.com>
5847
5848 * NEWS: Mention "info threads -gid".
5849 * gdbthread.h (struct thread_info) <global_num>: Mention "info
5850 threads -gid".
5851 * thread.c (info_threads_command): Handle "-gid".
5852 (_initialize_thread): Adjust "info threads" help string to mention
5853 -gid.
5854
5855 2016-01-13 Pedro Alves <palves@redhat.com>
5856
5857 * NEWS: Mention InferiorThread.global_num.
5858 * python/py-infthread.c (thpy_get_global_num): New function.
5859 (thread_object_getset): Register "global_num".
5860
5861 2016-01-13 Pedro Alves <palves@redhat.com>
5862
5863 * NEWS: Mention that thread IDs are now per inferior and global
5864 thread IDs.
5865 * Makefile.in (SFILES): Add tid-parse.c.
5866 (COMMON_OBS): Add tid-parse.o.
5867 (HFILES_NO_SRCDIR): Add tid-parse.h.
5868 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
5869 * breakpoint.c (insert_breakpoint_locations)
5870 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
5871 (print_one_breakpoint_location, set_longjmp_breakpoint)
5872 (check_longjmp_breakpoint_for_call_dummy)
5873 (set_momentary_breakpoint): Adjust to use global IDs.
5874 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
5875 (until_break_command, longjmp_bkpt_dtor)
5876 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
5877 to use global IDs.
5878 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
5879 ptid_to_global_thread_id.
5880 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5881 * gdbthread.h (struct thread_info): Rename field 'num' to
5882 'global_num. Add new fields 'per_inf_num' and 'inf'.
5883 (thread_id_to_pid): Rename thread_id_to_pid to
5884 global_thread_id_to_ptid.
5885 (pid_to_thread_id): Rename to ...
5886 (ptid_to_global_thread_id): ... this.
5887 (valid_thread_id): Rename to ...
5888 (valid_global_thread_id): ... this.
5889 (find_thread_id): Rename to ...
5890 (find_thread_global_id): ... this.
5891 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
5892 (print_thread_info): Add comment.
5893 * tid-parse.h: New file.
5894 * tid-parse.c: New file.
5895 * infcmd.c (step_command_fsm_prepare)
5896 (step_command_fsm_should_stop): Adjust to use the global thread
5897 ID.
5898 (until_next_command, until_next_command)
5899 (finish_command_fsm_should_stop): Adjust to use the global thread
5900 ID.
5901 (attach_post_wait): Adjust to check the inferior number too.
5902 * inferior.h (struct inferior) <highest_thread_num>: New field.
5903 * infrun.c (handle_signal_stop)
5904 (insert_exception_resume_breakpoint)
5905 (insert_exception_resume_from_probe): Adjust to use the global
5906 thread ID.
5907 * record-btrace.c (record_btrace_open): Use global thread IDs.
5908 * remote.c (process_initial_stop_replies): Also consider the
5909 inferior number.
5910 * target.c (target_pre_inferior): Clear the inferior's highest
5911 thread num.
5912 * thread.c (clear_thread_inferior_resources): Adjust to use the
5913 global thread ID.
5914 (new_thread): New inferior parameter. Adjust to use it. Set both
5915 the thread's global ID and the thread's per-inferior ID.
5916 (add_thread_silent): Adjust.
5917 (find_thread_global_id): New.
5918 (find_thread_id): Make static. Adjust to rename.
5919 (valid_thread_id): Rename to ...
5920 (valid_global_thread_id): ... this.
5921 (pid_to_thread_id): Rename to ...
5922 (ptid_to_global_thread_id): ... this.
5923 (thread_id_to_pid): Rename to ...
5924 (global_thread_id_to_ptid): ... this. Adjust.
5925 (first_thread_of_process): Adjust.
5926 (do_captured_list_thread_ids): Adjust to use global thread IDs.
5927 (should_print_thread): New function.
5928 (print_thread_info): Rename to ...
5929 (print_thread_info_1): ... this, and add new show_global_ids
5930 parameter. Handle it. Iterate over inferiors.
5931 (print_thread_info): Reimplement as wrapper around
5932 print_thread_info_1.
5933 (show_inferior_qualified_tids): New function.
5934 (print_thread_id): Use it.
5935 (tp_array_compar): Compare inferior numbers too.
5936 (thread_apply_command): Use tid_range_parser.
5937 (do_captured_thread_select): Use parse_thread_id.
5938 (thread_id_make_value): Adjust.
5939 (_initialize_thread): Adjust "info threads" help string.
5940 * varobj.c (struct varobj_root): Update comment.
5941 (varobj_create): Adjust to use global thread IDs.
5942 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
5943 * windows-tdep.c (display_tib): No longer accept an argument.
5944 * cli/cli-utils.c (get_number_trailer): Make extern.
5945 * cli/cli-utils.h (get_number_trailer): Declare.
5946 (get_number_const): Adjust documentation.
5947 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
5948 thread IDs.
5949 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
5950 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
5951 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
5952 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
5953 Likewise.
5954 * python/py-breakpoint.c (bppy_set_thread): Likewise.
5955 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
5956 * python/py-infthread.c (thpy_get_num): Add comment and return the
5957 per-inferior thread ID.
5958 (thread_object_getset): Update comment of "num".
5959
5960 2016-01-13 Pedro Alves <palves@redhat.com>
5961
5962 * breakpoint.c (remove_threaded_breakpoints)
5963 (print_one_breakpoint_location): Use print_thread_id.
5964 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
5965 (btrace_fetch, btrace_clear): Use print_thread_id.
5966 * common/print-utils.c (CELLSIZE): Delete.
5967 (get_cell): Rename to ...
5968 (get_print_cell): ... this and made extern. Adjust call callers.
5969 Adjust to use PRINT_CELL_SIZE.
5970 * common/print-utils.h (get_print_cell): Declare.
5971 (PRINT_CELL_SIZE): New.
5972 * gdbthread.h (print_thread_id): Declare.
5973 * infcmd.c (signal_command): Use print_thread_id.
5974 * inferior.c (print_inferior): Use print_thread_id.
5975 * infrun.c (handle_signal_stop)
5976 (insert_exception_resume_breakpoint)
5977 (insert_exception_resume_from_probe)
5978 (print_signal_received_reason): Use print_thread_id.
5979 * record-btrace.c (record_btrace_info)
5980 (record_btrace_resume_thread, record_btrace_cancel_resume)
5981 (record_btrace_step_thread, record_btrace_wait): Use
5982 print_thread_id.
5983 * thread.c (thread_apply_all_command): Use print_thread_id.
5984 (print_thread_id): New function.
5985 (thread_apply_command): Use print_thread_id.
5986 (thread_command, thread_find_command, do_captured_thread_select):
5987 Use print_thread_id.
5988
5989 2016-01-13 Pedro Alves <palves@redhat.com>
5990
5991 * NEWS: Mention InferiorThread.inferior.
5992 * python/py-infthread.c (thpy_get_inferior): New.
5993 (thread_object_getset): Register "inferior".
5994
5995 2016-01-13 Pedro Alves <palves@redhat.com>
5996
5997 * NEWS: Mention $_inferior.
5998 * inferior.c (inferior_id_make_value): New.
5999 (inferior_funcs): New.
6000 (_initialize_inferior): Create $_inferior variable.
6001
6002 2016-01-13 Pedro Alves <palves@redhat.com>
6003
6004 PR breakpoints/19388
6005 * frame.c (get_current_frame): Use validate_registers_access.
6006 * gdbthread.h (validate_registers_access): Declare.
6007 * infrun.c (validate_siginfo_access): Delete.
6008 (siginfo_value_read, siginfo_value_write): Use
6009 validate_registers_access.
6010 * thread.c (validate_registers_access): New function.
6011
6012 2016-01-12 Josh Stone <jistone@redhat.com>
6013 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6014
6015 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
6016 syscall_entry and syscall_return stop reasons. Mention GDB
6017 support for remote catch syscall.
6018 * remote.c (PACKET_QCatchSyscalls): New enum.
6019 (remote_set_syscall_catchpoint): New function.
6020 (remote_protocol_features): New element for QCatchSyscalls.
6021 (remote_parse_stop_reply): Parse syscall_entry/return stops.
6022 (init_remote_ops): Install remote_set_syscall_catchpoint.
6023 (_initialize_remote): Config QCatchSyscalls.
6024 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
6025
6026 2016-01-12 Yao Qi <yao.qi@linaro.org>
6027
6028 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
6029 to gdb_byte * and pass to linux_fork_to_function.
6030
6031 2016-01-12 Yao Qi <yao.qi@linaro.org>
6032
6033 * nat/linux-ptrace.c (linux_fork_to_function): Change type
6034 of argument 'function'.
6035 (linux_grandchild_function): Change return type to 'int'.
6036 Change child_stack's type to 'void *'.
6037 (linux_child_function): Likewise.
6038
6039 2016-01-12 Pedro Alves <palves@redhat.com>
6040
6041 Remove use of the registered trademark symbol throughout.
6042
6043 2016-01-12 Thomas Schwinge <thomas@codesourcery.com>
6044
6045 * reply_mig_hack.awk: Rewrite one regular expression.
6046
6047 2016-01-11 Mike Frysinger <vapier@gentoo.org>
6048
6049 * acinclude.m4: Include new warning.m4 file.
6050 * configure: Regenerated.
6051 * configure.ac: Move all warning logic ...
6052 * warning.m4: ... here.
6053
6054 2016-01-08 Yao Qi <yao.qi@linaro.org>
6055
6056 * extension.c: Include target.h.
6057 (set_active_ext_lang): Only call install_gdb_sigint_handler,
6058 check_quit_flag, and set_quit_flag if target_terminal_is_ours
6059 returns false.
6060 (restore_active_ext_lang): Likewise.
6061 * target.c (target_terminal_is_ours): New function.
6062 * target.h (target_terminal_is_ours): Declare.
6063
6064 2016-01-07 Maciej W. Rozycki <macro@imgtec.com>
6065
6066 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
6067 to `err' in the little-endian leg.
6068
6069 2016-01-06 Yao Qi <yao.qi@linaro.org>
6070
6071 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
6072 lines below.
6073 (thumb_get_next_pcs_raw): Make it static.
6074 (arm_get_next_pcs_raw): Likewise.
6075 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
6076 declaration.
6077 (arm_get_next_pcs_raw): Likewise.
6078
6079 2016-01-05 Mike Frysinger <vapier@gentoo.org>
6080
6081 * version.in: Change cvs to git.
6082
6083 2016-01-05 Mike Frysinger <vapier@gentoo.org>
6084
6085 * configure.tgt (score-*-*): Delete gdb_sim assignment.
6086
6087 2016-01-05 Pedro Alves <palves@redhat.com>
6088
6089 PR sim/13418
6090 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
6091 the target is powerpc*.
6092 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
6093 of WITH_SIM.
6094 * configure: Regenerate.
6095 * config.in: Regenerate.
6096
6097 2016-01-04 Markus Metzger <markus.t.metzger@intel.com>
6098
6099 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
6100
6101 2016-01-02 Mike Frysinger <vapier@gentoo.org>
6102
6103 * configure.tgt (powerpc*-*-*): Delete test call and
6104 always assign gdb_sim.
6105
6106 2016-01-01 Joel Brobecker <brobecker@adacore.com>
6107
6108 Update year range in copyright notice of all files.
6109
6110 2016-01-01 Joel Brobecker <brobecker@adacore.com>
6111
6112 * top.c (print_gdb_version): Change copyright year in version
6113 message.
6114
6115 2016-01-01 Joel Brobecker <brobecker@adacore.com>
6116
6117 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
6118
6119 For older changes see ChangeLog-2015.
6120 \f
6121 Local Variables:
6122 mode: change-log
6123 left-margin: 8
6124 fill-column: 74
6125 version-control: never
6126 coding: utf-8
6127 End:
This page took 0.154126 seconds and 4 git commands to generate.