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