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