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