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