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