f21b3585f66bdb5c61ff12724c495f530a26ded4
[binutils-gdb.git] / gdb / ChangeLog
1 2015-04-27 John Baldwin <jhb@FreeBSD.org>
2
3 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
4 event if PL_FLAG_EXEC is set.
5 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
6 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
7 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
9 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
10
11 2015-04-27 John Baldwin <jhb@FreeBSD.org>
12
13 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
14 [TDP_RFPPWAIT] New variable fbsd_pending_children.
15 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
16 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
17 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
18 [PT_LWPINFO] (fbsd_wait): New function.
19 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
20 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
21 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
22 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
23 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
24 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
25 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
26 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
27 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
28 "fbsd_wait".
29 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
30 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
31 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
32 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
33 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
34 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
35 Set "to_post_attach" to "fbsd_post_attach".
36
37 2015-04-27 John Baldwin <jhb@FreeBSD.org>
38
39 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
40 (fbsd_find_memory_regions): Mark static.
41 (fbsd_nat_add_target): New function.
42 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
43 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
44 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
45 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
46 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
47 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
48
49 2015-04-27 Gary Benson <gbenson@redhat.com>
50
51 * objfiles.c (allocate_objfile): Do not attempt to expand name
52 if name is a "target:" filename.
53 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
54 to load auto-load scripts for objfiles with "target:" filenames.
55
56 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
57
58 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
59 (enum s390_vector_abi_kind): New enum.
60 (struct gdbarch_tdep)<vector_abi>: New field.
61 (s390_effective_inner_type): Add parameter min_size. Stop
62 unwrapping if the inner type is smaller than min_size.
63 (s390_function_arg_float): Adjust call to
64 s390_effective_inner_type.
65 (s390_function_arg_vector): New function.
66 (s390_function_arg_integer): Adjust comment.
67 (struct s390_arg_state)<vr>: New field.
68 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
69 arguments according to vector ABI when appropriate.
70 (s390_push_dummy_call): Initialize the argument state's field
71 'vr'. Adjust calls to s390_handle_arg.
72 (s390_register_return_value): Handle vector return values.
73 (s390_return_value): Apply the "register" return value convention
74 to a vector when appropriate.
75 (s390_gdbarch_init): Initialize tdep->vector_abi.
76 * NEWS: Announce S390 vector ABI support.
77
78 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
79
80 * s390-linux-tdep.c (s390_return_value_convention): Remove
81 function. Inline its logic...
82 (s390_return_value): ...here. Instead, move the handling of the
83 "register" return value convention...
84 (s390_register_return_value): ...here. New function.
85
86 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
87
88 * s390-linux-tdep.c
89 (is_float_singleton): Remove function. Move the "singleton" part
90 of the logic...
91 (s390_effective_inner_type): ...here. New function.
92 (is_float_like): Remove function. Inline its logic...
93 (s390_function_arg_float): ...here.
94 (is_pointer_like, is_integer_like, is_struct_like): Remove
95 functions. Inline their logic...
96 (s390_function_arg_integer): ...here.
97 (s390_function_arg_pass_by_reference): Remove function.
98 (extend_simple_arg): Remove function.
99 (alignment_of): Remove function.
100 (struct s390_arg_state): New structure.
101 (s390_handle_arg): New function.
102 (s390_push_dummy_call): Move parameter placement logic to the new
103 function s390_handle_arg. Call it for calculating the stack area
104 sizes first, and again for actually writing the parameters.
105
106 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
107
108 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
109 false if the argument is zero.
110
111 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
112
113 * ada-lang.c (template_to_static_fixed_type): Return input type
114 when it is already fixed. Cache the input type itself when not
115 creating a static fixed copy. Make it explicit that we never
116 molestate the input type.
117 * gdbtypes.c (resolve_dynamic_struct): Reset the
118 TYPE_TARGET_TYPE field for resolved copies.
119
120 2015-04-27 Joel Brobecker <brobecker@adacore.com>
121
122 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
123 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
124 (template_to_static_fixed_type): Call ada_check_typedef only
125 when necessary.
126
127 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
128
129 * cli/cli-dump.c (srec_dump_command): Add internationalization
130 mark ups.
131 (ihex_dump_command): Likewise.
132 (tekhex_dump_command): Likewise.
133 (binary_dump_command): Likewise.
134 (binary_append_command): Likewise.
135
136 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
137
138 * cli/cli-dump.c (verilog_cmdlist): New variable.
139 (dump_verilog_memory): New function.
140 (dump_verilog_value): New function.
141 (verilog_dump_command): New function.
142 (_initialize_cli_dump): Add new commands to support verilog dump
143 format.
144 * NEWS: Add entry for "dump verilog".
145
146 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
147
148 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
149 descriptive type when there is none.
150
151 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
152
153 * tui/tui-win.c (tui_async_resize_screen): Call
154 rl_resize_terminal().
155
156 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
157
158 * windows-nat.c (handle_output_debug_string): Don't change
159 current_event.dwThreadId.
160 (get_windows_debug_event): Use thread_id, rather than relying on
161 current_event.dwThreadId being changed.
162
163 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
164
165 * windows-nat.c (windows_continue): Report an error if
166 ContinueDebugEvent() fails.
167
168 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
169
170 * windows-nat.c (windows_resume): Fix misspelling in debug output.
171
172 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
173
174 * windows-nat.c (get_windows_debug_event): Replace retval with
175 thread_id throughout. Update stale comment.
176
177 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
178
179 * windows-nat.c (get_windows_debug_event): Don't use ternary
180 conditional operator.
181
182 2015-04-21 Pierre Muller <muller@sourceware.org>
183
184 PR pascal/17815
185 p-exp.y (yylex): Reorganize code to return the matched pattern
186 for a field of this.
187
188 2015-04-21 Gary Benson <gbenson@redhat.com>
189
190 * common/fileio.h (fileio_to_host_openflags): New declaration.
191 * common/fileio.c (fcntl.h): New include.
192 (fileio_to_host_openflags): New function, factored out from...
193 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
194 Single use updated.
195
196 2015-04-21 Kevin Buettner <kevinb@redhat.com>
197
198 * rl78-tdep.c (RL78_SP_ADDR): Define.
199 (opc_reg_to_gdb_regnum): New static function.
200 (rl78_analyze_prologue): Recognize instructions forming slightly
201 more interesting prologues.
202
203 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
204
205 Revert:
206 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
207 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
208 TYPE_CODE_REF types so that they are not considered as dynamic
209 depending on the referenced type.
210 (resolve_dynamic_type_internal): Likewise.
211
212 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
213
214 Revert:
215 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
216 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
217 "top_level" parameter.
218 (resolve_dynamic_type_internal): Remove the unused "top_level"
219 parameter. Update call to is_dynamic_type_internal.
220 (is_dynamic_type): Update call to is_dynamic_type_internal.
221 (resolve_dynamic_range): Update call to
222 resolve_dynamic_type_internal.
223 (resolve_dynamic_union): Likewise.
224 (resolve_dynamic_struct): Likewise.
225 (resolve_dynamic_type): Likewise.
226
227 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
228
229 * breakpoint.c (update_dprintf_command_list): Remove duplicated
230 xmalloc.
231
232 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
233
234 * reply_mig_hack.awk: Robustify parsing.
235
236 * reply_mig_hack.awk: Don't bother to declare an intermediate
237 function pointer variable.
238
239 2015-04-17 Doug Evans <dje@google.com>
240
241 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
242 to "exec_displacement" to avoid confusion with inner use of the name.
243
244 2015-04-17 Pedro Alves <palves@redhat.com>
245
246 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
247 if HW point of TYPE isn't supported.
248
249 2015-04-17 Yao Qi <yao.qi@linaro.org>
250 Pedro Alves <palves@redhat.com>
251
252 * target.h (target_can_use_hardware_watchpoint): Update comments.
253 Remove trailing ";".
254
255 2015-04-17 Gary Benson <gbenson@redhat.com>
256
257 * remote.c (remote_add_inferior): New argument try_open_exec.
258 If nonzero, attempt to open the inferior's executable file as
259 the main executable if no main executable is open already.
260 All callers updated.
261 * NEWS: Mention that GDB now supports automatic location and
262 retrieval of executable + files from remote targets.
263
264 2015-04-17 Gary Benson <gbenson@redhat.com>
265
266 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
267 * remote.c (PACKET_qXfer_exec_file): Likewise.
268 (remote_protocol_features): Register the
269 "qXfer:exec-file:read" feature.
270 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
271 (remote_pid_to_exec_file): New function.
272 (init_remote_ops): Initialize to_pid_to_exec_file.
273 (_initialize_remote): Register new "set/show remote
274 pid-to-exec-file-packet" command.
275 * NEWS: Announce new qXfer:exec-file:read packet.
276
277 2015-04-17 Gary Benson <gbenson@redhat.com>
278
279 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
280 New declaration.
281 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
282 New function, factored out from...
283 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
284
285 2015-04-17 Gary Benson <gbenson@redhat.com>
286
287 * exec.c (solist.h): New include.
288 (exec_file_locate_attach): Prefix absolute executable
289 paths with gdb_sysroot if set.
290 * NEWS: Mention that executable paths may be prepended
291 with sysroot.
292
293 2015-04-17 Gary Benson <gbenson@redhat.com>
294
295 * solist.h (exec_file_find): New declaration.
296 * solib.c (solib_find_1): New function, factored out from...
297 (solib_find): ...here.
298 (exec_file_find): New function.
299
300 2015-04-17 Gary Benson <gbenson@redhat.com>
301
302 * gdbcore.h (exec_file_locate_attach): New declaration.
303 * exec.c (exec_file_locate_attach): New function, factored
304 out from...
305 * infcmd.c (attach_command_post_wait): ...here.
306
307 2015-04-17 Mike Frysinger <vapier@gentoo.org>
308
309 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
310
311 2015-04-16 Yao Qi <yao.qi@linaro.org>
312
313 * infrun.c (maybe_software_singlestep): Declare.
314 (displaced_step_fixup): Call maybe_software_singlestep.
315
316 2015-04-15 Doug Evans <dje@google.com>
317
318 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
319
320 2015-04-15 Doug Evans <dje@google.com>
321
322 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
323
324 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
325
326 * python/lib/gdb/command/unwinders.py: Add parentheses.
327
328 2015-04-15 Yao Qi <yao.qi@linaro.org>
329
330 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
331
332 2015-04-15 Yao Qi <yao.qi@linaro.org>
333
334 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
335
336 2015-04-15 Yao Qi <yao.qi@linaro.org>
337
338 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
339 dsc->insn_size instead of 4.
340
341 2015-04-14 Gary Benson <gbenson@redhat.com>
342
343 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
344 * minidebug.c (lzma_stat): Likewise.
345 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
346 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
347
348 2015-04-13 Stan Shebs <stanshebs@google.com>
349
350 * MAINTAINERS: Update my email address.
351
352 2015-04-13 John Baldwin <jhb@FreeBSD.org>
353
354 * amd64-tdep.c (amd64_target_description): New function.
355 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
356 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
357 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
358 x86 extended save area.
359 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
360 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
361 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
362 (_initialize_amd64fbsd_nat): Set "to_read_description" to
363 "amd64fbsd_read_description".
364 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
365 (amd64fbsd_supply_xstateregset): New function.
366 (amd64fbsd_collect_xstateregset): New function.
367 Add "amd64fbsd_xstateregset".
368 (amd64fbsd_iterate_over_regset_sections): New function.
369 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
370 "I386_FBSD_XSAVE_XCR0_OFFSET".
371 Add "iterate_over_regset_sections" gdbarch method.
372 Add "core_read_description" gdbarch method.
373 * i386-tdep.c (i386_target_description): New function.
374 * i386-tdep.h: Export i386_target_description and tdesc_i386.
375 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
376 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
377 x86 extended save area.
378 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
379 * i386bsd-nat.h: Export i386bsd_xsave_len.
380 * i386fbsd-nat.c (i386fbsd_read_description): New function.
381 (_initialize_i386fbsd_nat): Set "to_read_description" to
382 "i386fbsd_read_description".
383 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
384 (i386fbsd_core_read_description): New function.
385 (i386fbsd_supply_xstateregset): New function.
386 (i386fbsd_collect_xstateregset): New function.
387 Add "i386fbsd_xstateregset".
388 (i386fbsd_iterate_over_regset_sections): New function.
389 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
390 "I386_FBSD_XSAVE_XCR0_OFFSET".
391 Add "iterate_over_regset_sections" gdbarch method.
392 Add "core_read_description" gdbarch method.
393 * i386fbsd-tdep.h: New file.
394
395 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
396
397 * NEWS (Changes since GDB 7.9): Add removed -xdb.
398 * breakpoint.c (command_line_is_silent): Remove xdb_commands
399 conditional.
400 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
401 and lb.
402 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
403 va.
404 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
405 conditional.
406 * defs.h (xdb_commands): Remove declaration.
407 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
408 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
409 * infcmd.c (run_no_args_command, go_command): Remove.
410 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
411 * infrun.c (xdb_handle_command): Remove.
412 (_initialize_infrun): Remove xdb_commands for lz and z.
413 * main.c (xdb_commands): Remove variable.
414 (captured_main): Remove "xdb" from long_options.
415 (print_gdb_help): Remove --xdb from help.
416 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
417 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
418 * stack.c (backtrace_full_command, args_plus_locals_info)
419 (current_frame_command): Remove.
420 (_initialize_stack): Remove xdb_commands for t, T and l.
421 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
422 * thread.c (_initialize_thread): Remove xdb_commands condition.
423 * tui/tui-layout.c (tui_toggle_layout_command)
424 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
425 (_initialize_tui_layout): Remove xdb_commands for td and ts.
426 * tui/tui-regs.c (tui_scroll_regs_forward_command)
427 (tui_scroll_regs_backward_command): Remove.
428 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
429 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
430 (_initialize_tui_win): Remove xdb_commands for U and w.
431 * utils.c (pagination_on_command, pagination_off_command): Remove.
432 (initialize_utils): Remove xdb_commands for am and sm.
433
434 2015-04-10 Pedro Alves <palves@redhat.com>
435
436 * infrun.c (displaced_step_fixup): Switch to the event ptid
437 earlier. If the thread stopped for a watchpoint and the
438 target/arch has non-continuable watchpoints, cancel the displaced
439 step.
440 (resume): Don't start a displaced step if in-line step-over info
441 is valid.
442
443 2015-04-10 Pedro Alves <palves@redhat.com>
444
445 * infrun.c (displaced_step_in_progress): New function.
446 (do_target_resume): Advise target to report all signals if
447 displaced stepping.
448
449 2015-04-10 Pedro Alves <palves@redhat.com>
450
451 PR gdb/18216
452 * infrun.c (process_event_stop_test): Don't assume a step-resume
453 is set if tp->stepped_breakpoint is true.
454
455 2015-04-10 Yao Qi <yao.qi@linaro.org>
456
457 * arm-tdep.c (install_alu_reg): Update comment.
458 (thumb_copy_alu_reg): Remove local variable rn. Update
459 debugging message. Use r2 instead of r1 in the modified
460 instruction.
461
462 2015-04-10 Pedro Alves <palves@redhat.com>
463
464 PR gdb/13858
465 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
466 linux_displaced_step_location as gdbarch_displaced_step_location
467 hook.
468 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
469 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
470 * linux-tdep.c (linux_displaced_step_location): New function,
471 based on ppc_linux_displaced_step_location.
472 * linux-tdep.h (linux_displaced_step_location): New declaration.
473 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
474 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
475 Delete.
476 (ppc_linux_init_abi): Install linux_displaced_step_location as
477 gdbarch_displaced_step_location hook, even without Cell/B.E..
478 (_initialize_ppc_linux_tdep): Don't install
479 ppc_linux_inferior_created as inferior_created observer.
480 * s390-linux-tdep.c (s390_gdbarch_init): Install
481 linux_displaced_step_location as gdbarch_displaced_step_location
482 hook.
483
484 2015-04-09 Gary Benson <gbenson@redhat.com>
485
486 * common/common-remote-fileio.h: Rename to...
487 * common/fileio.h: ...this. Update all references.
488 (remote_fileio_to_fio_error): Rename to...
489 (host_to_fileio_error): ...this.
490 (remote_fileio_to_be): Rename to...
491 (host_to_bigendian): ...this. Update all callers.
492 (remote_fileio_to_fio_uint): Rename to...
493 (host_to_fileio_uint): ...this. Update all callers.
494 (remote_fileio_to_fio_time): Rename to...
495 (host_to_fileio_time): ...this. Update all callers.
496 (remote_fileio_to_fio_stat): Rename to...
497 (host_to_fileio_stat): ...this.
498 Update all references.
499 * common/common-remote-fileio.c: Rename to...
500 * common/fileio.c: ...this. Update all references.
501 (remote_fileio_to_fio_error): Rename to...
502 (host_to_fileio_error): ...this. Update all callers.
503 (remote_fileio_mode_to_target): Rename to...
504 (fileio_mode_pack): ...this. Update all callers.
505 (remote_fileio_to_fio_mode): Rename to...
506 (host_to_fileio_mode): ...this. Update all callers.
507 (remote_fileio_to_fio_ulong): Rename to...
508 (host_to_fileio_ulong): ...this. Update all callers.
509 (remote_fileio_to_fio_stat): Rename to...
510 (host_to_fileio_stat): ...this. Update all callers.
511
512 2015-04-09 Andy Wingo <wingo@igalia.com>
513
514 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
515 (frame_functions): Bind gdbscm_frame_read_register to
516 frame-read-register.
517 * guile/lib/gdb.scm (frame-read-register): Export.
518
519 2015-04-09 Gary Benson <gbenson@redhat.com>
520
521 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
522 New declaration.
523 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
524 New function, factored out the named functions below.
525 * inf-child.c (gdb/fileio.h): Remove include.
526 (common-remote-fileio.h): New include.
527 (inf_child_errno_to_fileio_error): Remove function. Update
528 all callers to use remote_fileio_to_fio_error.
529 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
530
531 2015-04-09 Andy Wingo <wingo@igalia.com>
532
533 * MAINTAINERS (Write After Approval): Add Andy Wingo.
534
535 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
536
537 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
538 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
539 * configure: Regenerated.
540
541 2015-04-09 Pedro Alves <palves@redhat.com>
542
543 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
544 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
545 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
546 * gnulib/import/Makefile.am: Update.
547 * gnulib/import/Makefile.in: Update.
548 * gnulib/import/m4/gnulib-cache.m4: Update.
549 * gnulib/import/m4/gnulib-comp.m4: Update.
550 * gnulib/import/m4/strtok_r.m4: New file.
551 * gnulib/import/strtok_r.c: New file.
552
553 2015-04-09 Pedro Alves <palves@redhat.com>
554
555 * gnulib/update-gnulib.sh (aclocal version check): Filter out
556 "called too early to check prototype".
557
558 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
559
560 PR python/16699
561 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
562 use a caching mechanism. Adjust comments and code to reflect
563 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
564 (cmdpy_completer_handle_brkchars): Adjust call to
565 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
566 (cmdpy_completer): Likewise.
567
568 2015-04-08 Yao Qi <yao.qi@linaro.org>
569
570 * spu-tdep.c (spu_gdbarch_init): Don't call
571 set_gdbarch_cannot_step_breakpoint.
572
573 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
574
575 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
576
577 2015-04-07 Pedro Alves <palves@redhat.com>
578
579 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
580 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
581 (delete_exited_threads): New declaration.
582 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
583 * linux-nat.c (linux_nat_update_thread_list): New function.
584 (linux_nat_add_target): Install it.
585 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
586 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
587 (delete_exited_threads): New function.
588
589 2015-04-07 Pedro Alves <pedro@codesourcery.com>
590
591 * infrun.c (resume) <displaced stepping debug output>: Get the
592 leader thread's regcache, not resume_ptid's.
593
594 2015-04-06 Doug Evans <xdje42@gmail.com>
595
596 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
597 VAR_DOMAIN.
598 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
599 Include symbol domain in debugging output.
600
601 2015-04-06 Pedro Alves <palves@redhat.com>
602 Bernd Edlinger <bernd.edlinger@hotmail.de>
603
604 * configure.ac: Remove the mingw32-specific stub-termcap.o
605 fallback, and instead fallback to the stub termcap on all hosts.
606 * configure: Regenerate.
607 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
608 symbols.
609
610 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
611
612 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
613 "top_level" parameter.
614 (resolve_dynamic_type_internal): Remove the unused "top_level"
615 parameter. Update call to is_dynamic_type_internal.
616 (is_dynamic_type): Update call to is_dynamic_type_internal.
617 (resolve_dynamic_range): Update call to
618 resolve_dynamic_type_internal.
619 (resolve_dynamic_union): Likewise.
620 (resolve_dynamic_struct): Likewise.
621 (resolve_dynamic_type): Likewise.
622
623 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
624
625 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
626 TYPE_CODE_REF types so that they are not considered as dynamic
627 depending on the referenced type.
628 (resolve_dynamic_type_internal): Likewise.
629
630 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
631
632 * Makefile.in (top_srcdir): New.
633 * configure: Regenerated.
634
635 2015-04-02 Gary Benson <gbenson@redhat.com>
636
637 * NEWS: Announce the new default sysroot of "target:".
638
639 2015-04-02 Gary Benson <gbenson@redhat.com>
640
641 * main.c (captured_main): Set gdb_sysroot to "target:"
642 if not otherwise set.
643
644 2015-04-02 Gary Benson <gbenson@redhat.com>
645
646 * exec.c (exec_file_attach): Support "target:" filenames.
647
648 2015-04-02 Gary Benson <gbenson@redhat.com>
649
650 * solib.c (solib_find): Strip "target:" prefix from sysroot
651 if accessing local files.
652
653 2015-04-02 Gary Benson <gbenson@redhat.com>
654
655 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
656 checks and error messages.
657
658 2015-04-02 Gary Benson <gbenson@redhat.com>
659
660 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
661 (remote_filename_p): Remove declaration.
662 (remote_bfd_open): Likewise.
663 * remote.c (remote_bfd_iovec_open): Remove function.
664 (remote_bfd_iovec_close): Likewise.
665 (remote_bfd_iovec_pread): Likewise.
666 (remote_bfd_iovec_stat): Likewise.
667 (remote_filename_p): Likewise.
668 (remote_bfd_open): Likewise.
669 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
670 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
671 (gdb_bfd_open_maybe_remote): Remove function.
672 (symfile_bfd_open): Replace remote filename check with
673 target filename check.
674 (reread_symbols): Use gdb_bfd_open.
675 * build-id.c (gdbcore.h): New include.
676 (build_id_to_debug_bfd): Use gdb_bfd_open.
677 * infcmd.c (attach_command_post_wait): Remove remote filename
678 check.
679 * solib.c (solib_find): Replace remote-specific handling with
680 target-specific handling. Update comments where necessary.
681 (solib_bfd_open): Replace remote-specific handling with
682 target-specific handling.
683 (gdb_sysroot_changed): New function.
684 (_initialize_solib): Call the above when gdb_sysroot changes.
685 * windows-tdep.c (gdbcore.h): New include.
686 (windows_xfer_shared_library): Use gdb_bfd_open.
687
688 2015-04-02 Gary Benson <gbenson@redhat.com>
689
690 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
691 (is_target_filename): New declaration.
692 (gdb_bfd_has_target_filename): Likewise.
693 (gdb_bfd_open): Update documentation comment.
694 * gdb_bfd.c (target.h): New include.
695 (gdb/fileio.h): Likewise.
696 (is_target_filename): New function.
697 (gdb_bfd_has_target_filename): Likewise.
698 (fileio_errno_to_host): Likewise.
699 (gdb_bfd_iovec_fileio_open): Likewise.
700 (gdb_bfd_iovec_fileio_pread): Likewise.
701 (gdb_bfd_iovec_fileio_close): Likewise.
702 (gdb_bfd_iovec_fileio_fstat): Likewise.
703 (gdb_bfd_open): Use target fileio to access paths prefixed
704 with "target:" where necessary.
705
706 2015-04-02 Gary Benson <gbenson@redhat.com>
707
708 * target.h (struct target_ops) <to_filesystem_is_local>:
709 New field.
710 (target_filesystem_is_local): New macro.
711 * target-delegates.c: Regenerate.
712 * remote.c (remote_filesystem_is_local): New function.
713 (init_remote_ops): Initialize to_filesystem_is_local.
714
715 2015-04-02 Gary Benson <gbenson@redhat.com>
716
717 * target.h (struct target_ops) <to_fileio_fstat>: New field.
718 (target_fileio_fstat): New declaration.
719 * target.c (target_fileio_fstat): New function.
720 * inf-child.c (inf_child_fileio_fstat): Likewise.
721 (inf_child_target): Initialize to_fileio_fstat.
722 * remote.c (init_remote_ops): Likewise.
723
724 2015-04-01 Sasha Smundak <asmundak@google.com>
725
726 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
727 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
728 (py-unwind.o): New recipe.
729 * NEWS: mention Python frame unwinding.
730 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
731 gdb/unwinder.py and gdb/command/unwinder.py
732 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
733 list.
734 (execute_unwinders): New function.
735 * python/lib/gdb/command/unwinders.py: New file.
736 * python/lib/gdb/unwinder.py: New file.
737 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
738 (objfpy_dealloc): Decrement frame_unwinders reference count.
739 (objfpy_initialize): Create frame_unwinders list.
740 (objfpy_get_frame_unwinders): New function.
741 (objfpy_set_frame_unwinders): Ditto.
742 (objfile_getset): Add frame_unwinders attribute to Objfile.
743 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
744 (pspy_dealloc): Decrement frame_unwinders reference count.
745 (pspy_initialize): Create frame_unwinders list.
746 (pspy_get_frame_unwinders): New function.
747 (pspy_set_frame_unwinders): Ditto.
748 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
749 * python/py-unwind.c: New file.
750 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
751 (objpy_get_frame_unwinders): New prototype.
752 (gdbpy_initialize_unwind): New prototype.
753 * python/python.c (gdbpy_apply_type_printers): Call
754 gdbpy_initialize_unwind.
755
756 2015-04-01 Pedro Alves <palves@redhat.com>
757
758 * infrun.c (resume): Check currently_stepping after clearing
759 stepped_breakpoint, not before.
760
761 2015-04-01 Pedro Alves <palves@redhat.com>
762
763 * infrun.c (print_target_wait_results): Print all the ptid
764 elements.
765
766 2015-04-01 Pedro Alves <palves@redhat.com>
767
768 * infrun.c (keep_going): Also discard cleanups if inserting
769 breakpoints fails.
770
771 2015-04-01 Pedro Alves <palves@redhat.com>
772
773 * infrun.c (wait_for_inferior): Install the
774 finish_thread_state_cleanup cleanup across the whole function, not
775 just around handle_inferior_event.
776
777 2015-04-01 Pedro Alves <palves@redhat.com>
778
779 * infrun.c (resume) <step past permanent breakpoint>: Use
780 do_target_resume.
781
782 2015-04-01 Pedro Alves <palves@redhat.com>
783
784 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
785
786 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
787
788 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
789
790 2015-04-01 Pedro Alves <palves@redhat.com>
791
792 * linux-thread-db.c (record_thread): Readd the thread to gdb's
793 list if it was marked exited.
794
795 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
796
797 * configure: Regenerated.
798
799 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
800 Jan Kratochvil <jan.kratochvil@redhat.com>
801 Oleg Nesterov <oleg@redhat.com>
802
803 PR corefiles/16092
804 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
805 New enum identifying the various options of the coredump_filter
806 file.
807 (struct smaps_vmflags): New struct.
808 (use_coredump_filter): New variable.
809 (decode_vmflags): New function.
810 (mapping_is_anonymous_p): Likewise.
811 (dump_mapping_p): Likewise.
812 (linux_find_memory_regions_full): New variables
813 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
814 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
815 parsing of its information. Implement memory mapping filtering
816 based on its contents.
817 (show_use_coredump_filter): New function.
818 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
819 * NEWS: Mention the possibility of using the
820 '/proc/PID/coredump_filter' file when generating a corefile.
821 Mention new command 'set use-coredump-filter'.
822
823 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
824
825 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
826 read_memory_unsigned_integer.
827
828 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
829
830 * Makefile.in (ZLIB): New.
831 (ZLIBINC): Likewise.
832 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
833 (CLIBS): Add $(ZLIB).
834 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
835 Add -lz to LIBS.
836 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
837 * top.c (print_gdb_configuration): Remove --with-zlib and
838 --without-zlib.
839 * config.in: Regenerated.
840 * configure: Likewise.
841
842 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
843
844 * NEWS: Mention info os cpus support.
845 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
846 (struct osdata_type): Add cpus entry, reorder the entries in
847 alphabetical order.
848
849 2015-03-31 Matthias Klose <doko@ubuntu.com>
850
851 * compile/compile.c (compile_to_object): Allow triplets with or
852 without vendor set.
853
854 2015-03-30 Doug Evans <dje@google.com>
855
856 PR c++/18141
857 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
858 klass in VAR_DOMAIN.
859
860 2015-03-30 Gary Benson <gbenson@redhat.com>
861
862 * remote.c (remote_mourn_1): Remove function. Update all callers
863 to use remote_mourn.
864 (extended_remote_mourn_1): Remove function. Update all callers
865 to use extended_remote_mourn.
866 (extended_remote_attach_1): Remove function. Update all callers
867 to use extended_remote_attach.
868
869 2015-03-28 James Bowman <james.bowman@ftdichip.com>
870
871 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
872 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
873 (ALLDEPFILES): Add ft32-tdep.c.
874 * configure.tgt: Add FT32 entry.
875 * ft32-tdep.c: New file, FT32 target-dependent code.
876 * ft32-tdep.h: New file, FT32 target-dependent code.
877
878 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
879
880 Revert:
881 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
882 Code cleanup.
883 * printcmd.c (print_command_1): Move expr variable scope.
884
885 2015-03-27 Joel Brobecker <brobecker@adacore.com>
886
887 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
888
889 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
890
891 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
892 sections.
893
894 2015-03-26 Joel Brobecker <brobecker@adacore.com>
895
896 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
897 exception raised while parsing the probe arguments.
898 Force parsing to be done using the C language parser.
899 * expression.h (parse_expression_with_language): Declare.
900 * parse.c (parse_expression_with_language): New function.
901
902 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
903
904 * MAINTAINERS (Write After Approval): Add "Jon Turney".
905
906 2015-03-26 Andy Wingo <wingo@igalia.com>
907
908 PR symtab/18148
909 * dwarf2read.c (struct partial_die_info): Add has_const_value
910 member.
911 (add_partial_symbol): Don't punt on symbols that have const_value
912 attributes.
913 (read_partial_die): Detect DW_AT_const_value.
914
915 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
916
917 Code cleanup.
918 * printcmd.c (print_command_1): Move expr variable scope.
919
920 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
921
922 Code cleanup.
923 * printcmd.c (validate_format): Make the parameter cmdname const.
924
925 2015-03-26 Don Breazeal <donb@codesourcery.com>
926
927 * remote.c (_initialize_remote): Update comment.
928
929 2015-03-26 Pedro Alves <palves@redhat.com>
930 Jon TURNEY <jon.turney@dronecode.org.uk>
931
932 * coffread.c (coff_symfile_read): When constructing the name of an
933 import stub symbol from import symbol for amd64, only skip the
934 char after _imp_ if the target is underscored (like i386) and the
935 char is indeed the target's leading char.
936
937 2015-03-25 Pedro Alves <palves@redhat.com>
938
939 * target.h <to_async>: Replace 'callback' and 'context' parameters
940 with boolean 'enable' parameter.
941 (target_async): Replace CALLBACK and CONTEXT parameters with
942 boolean ENABLE parameter.
943 * inf-loop.c (inferior_event_handler): Adjust.
944 * linux-nat.c (linux_nat_attach, linux_nat_resume)
945 (linux_nat_resume): Adjust.
946 (async_client_callback, async_client_context): Delete.
947 (handle_target_event): Call inferior_event_handler directly.
948 (linux_nat_async): Replace 'callback' and 'context' parameters
949 with boolean 'enable' parameter. Adjust. Remove references to
950 async_client_callback and async_client_context.
951 (linux_nat_close): Adjust.
952 * record-btrace.c (record_btrace_async): Replace 'callback' and
953 'context' parameters with boolean 'enable' parameter. Adjust.
954 (record_btrace_resume): Adjust.
955 * record-full.c (record_full_async): Replace 'callback' and
956 'context' parameters with boolean 'enable' parameter. Adjust.
957 (record_full_resume, record_full_core_resume): Adjust.
958 * remote.c (struct remote_state) <async_client_callback,
959 async_client_context>: Delete fields.
960 (remote_start_remote, extended_remote_attach_1, remote_resume)
961 (extended_remote_create_inferior): Adjust.
962 (remote_async_serial_handler): Call inferior_event_handler
963 directly.
964 (remote_async): Replace 'callback' and 'context' parameters with
965 boolean 'enable' parameter. Adjust.
966 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
967 Adjust.
968 * target-delegates.c: Regenerate.
969
970 2015-03-25 Gary Benson <gbenson@redhat.com>
971 Pedro Alves <palves@redhat.com>
972
973 * target.c (fileio_ft_t): New typedef, define object vector.
974 (fileio_fhandles): New static variable.
975 (is_closed_fileio_fh): New macro.
976 (lowest_closed_fd): New static variable.
977 (acquire_fileio_fd): New function.
978 (release_fileio_fd): Likewise.
979 (fileio_fd_to_fh): New macro.
980 (target_fileio_open): Wrap the file descriptor on success.
981 (target_fileio_pwrite): Updated to use wrapped file descriptor.
982 (target_fileio_pread): Likewise.
983 (target_fileio_close): Likewise.
984
985 2015-03-24 Pedro Alves <palves@redhat.com>
986
987 * thread.c (thread_apply_all_command): Take exited threads into
988 account.
989
990 2015-03-24 Pedro Alves <palves@redhat.com>
991
992 * infrun.c (resume, proceed): Mention
993 switch_back_to_stepped_thread, not switch_back_to_stepping.
994
995 2015-03-24 Pedro Alves <palves@redhat.com>
996
997 * infrun.c (user_visible_resume_ptid): Rewrite going from
998 most-locked to unlocked instead of the opposite. Move comment ...
999 * infrun.h (user_visible_resume_ptid): ... here.
1000
1001 2015-03-24 Pedro Alves <palves@redhat.com>
1002
1003 * linux-nat.c (linux_nat_resume): Output debug logs before trying
1004 to resume the event lwp. Use the lwp's ptid instead of the passed
1005 in (maybe wildcard) ptid.
1006 (stop_wait_callback): Tweak debug log output.
1007 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
1008 TRAP_TRACE.
1009 (linux_nat_filter_event): In debug output, distinguish a
1010 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
1011 before trying to resume the lwp.
1012
1013 2015-03-24 Joel Brobecker <brobecker@adacore.com>
1014
1015 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
1016 pointer indirection.
1017 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
1018 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
1019
1020 2015-03-24 Joel Brobecker <brobecker@adacore.com>
1021
1022 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
1023 Renames DYN_ATTR_DATA_LOCATION.
1024 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
1025 DYN_ATTR_DATA_LOCATION.
1026 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
1027 instead of DYN_ATTR_DATA_LOCATION.
1028
1029 2015-03-24 Pedro Alves <palves@redhat.com>
1030
1031 * breakpoint.c (until_break_command): Adjust call to proceed.
1032 * gdbthread.h (struct thread_control_state) <stepping_command>:
1033 New field.
1034 * infcall.c (run_inferior_call): Adjust call to proceed.
1035 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
1036 Adjust calls to proceed.
1037 (set_step_frame): Set the current thread's step_start_function
1038 here.
1039 (step_once): Adjust calls to proceed.
1040 (jump_command, signal_command, until_next_command)
1041 (finish_backward, finish_forward, proceed_after_attach_callback)
1042 (attach_command_post_wait): Adjust calls to proceed.
1043 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
1044 (do_target_resume): New function, factored out from ...
1045 (resume): ... here. Remove 'step' parameter. Instead, check
1046 currently_stepping to determine whether the thread should be
1047 single-stepped.
1048 (proceed): Remove 'step' parameter and don't set the thread's
1049 step_start_function here. Adjust call to 'resume'.
1050 (handle_inferior_event): Adjust calls to 'resume'.
1051 (switch_back_to_stepped_thread): Use do_target_resume instead of
1052 'resume'.
1053 (keep_going): Adjust calls to 'resume'.
1054 * infrun.h (proceed): Remove 'step' parameter.
1055 (resume): Likewise.
1056 * windows-nat.c (do_initial_windows_stuff): Adjust call to
1057 'resume'.
1058 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
1059
1060 2015-03-24 Pedro Alves <palves@redhat.com>
1061
1062 * gdbthread.h (struct thread_control_state) <stepping_command>:
1063 New field.
1064 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
1065 the thread's stepping_command field.
1066 * infrun.c (resume): Check the thread's stepping_command flag to
1067 determine which threads should be resumed. Rename 'entry_step'
1068 local to user_step.
1069 (clear_proceed_status_thread): Clear 'stepping_command'.
1070 (schedlock_applies): Change parameter type to struct thread_info
1071 pointer. Adjust.
1072 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
1073 (switch_back_to_stepped_thread): Adjust calls to
1074 'schedlock_applies'.
1075 (_initialize_infrun): Adjust "set scheduler-locking step" help.
1076
1077 2015-03-24 Pedro Alves <palves@redhat.com>
1078
1079 * infrun.c (step_start_function): Delete and ...
1080 * gdbthread.h (struct thread_control_state) <step_start_function>:
1081 ... now a field here.
1082 * infrun.c (clear_proceed_status_thread): Clear the thread's
1083 step_start_function.
1084 (proceed, process_event_stop_test, print_stop_event): Adjust.
1085
1086 2015-03-24 Pedro Alves <palves@redhat.com>
1087
1088 * infrun.c (proceed): No longer handle negative step.
1089
1090 2015-03-24 Gary Benson <gbenson@redhat.com>
1091
1092 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
1093 (x86_linux_prepare_to_resume): Likewise.
1094 * x86-linux-nat.c (x86_linux_new_thread):
1095 Moved to nat/x86-linux.c.
1096 (x86_linux_prepare_to_resume): Likewise.
1097 * nat/x86-linux.c (x86_linux_new_thread): New function.
1098 (x86_linux_prepare_to_resume): Likewise.
1099
1100 2015-03-24 Gary Benson <gbenson@redhat.com>
1101
1102 * nat/x86-linux-dregs.h: New file.
1103 * nat/x86-linux-dregs.c: Likewise.
1104 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
1105 (x86-linux-dregs.o): New rule.
1106 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
1107 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1108 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
1109 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
1110 (x86_linux_dr_get): Likewise.
1111 (x86_linux_dr_set): Likewise.
1112 (x86_linux_dr_get_addr): Likewise.
1113 (x86_linux_dr_get_control): Likewise.
1114 (x86_linux_dr_get_status): Likewise.
1115 (update_debug_registers_callback): Likewise.
1116 (x86_linux_dr_set_control): Likewise.
1117 (x86_linux_dr_set_addr): Likewise.
1118 (x86_linux_update_debug_registers): Likewise.
1119
1120 2015-03-24 Gary Benson <gbenson@redhat.com>
1121
1122 * x86-linux-nat.c (x86_linux_update_debug_registers):
1123 New function, factored out from...
1124 (x86_linux_prepare_to_resume): ...this.
1125
1126 2015-03-24 Gary Benson <gbenson@redhat.com>
1127
1128 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
1129 (x86_linux_dr_set): Likewise.
1130 (x86_linux_dr_get_addr): Likewise.
1131 (x86_linux_dr_get_control): Likewise.
1132 (x86_linux_dr_get_status): Likewise.
1133 (update_debug_registers_callback): Likewise.
1134 (x86_linux_dr_set_control): Likewise.
1135 (x86_linux_dr_set_addr): Likewise.
1136 (x86_linux_prepare_to_resume): Likewise.
1137 (x86_linux_new_thread): Likewise.
1138
1139 2015-03-24 Gary Benson <gbenson@redhat.com>
1140
1141 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
1142 (x86_linux_new_thread): Rename argument.
1143
1144 2015-03-24 Gary Benson <gbenson@redhat.com>
1145
1146 * nat/x86-linux.h: New file.
1147 * nat/x86-linux.c: Likewise.
1148 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
1149 (x86-linux.o): New rule.
1150 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
1151 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1152 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
1153 (lwp_set_arch_private_info): New declaration.
1154 (lwp_arch_private_info): Likewise.
1155 * linux-nat.c (lwp_set_arch_private_info): New function.
1156 (lwp_arch_private_info): Likewise.
1157 * x86-linux-nat.c: Include nat/x86-linux.h.
1158 (arch_lwp_info): Removed structure.
1159 (update_debug_registers_callback):
1160 Use lwp_set_debug_registers_changed.
1161 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
1162 and lwp_set_debug_registers_changed.
1163 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
1164
1165 2015-03-24 Gary Benson <gbenson@redhat.com>
1166
1167 * nat/linux-nat.h (ptid_of_lwp): New declaration.
1168 (lwp_is_stopped): Likewise.
1169 (lwp_stop_reason): Likewise.
1170 * linux-nat.c (ptid_of_lwp): New function.
1171 (lwp_is_stopped): Likewise.
1172 (lwp_is_stopped_by_watchpoint): Likewise.
1173 * x86-linux-nat.c (update_debug_registers_callback):
1174 Use lwp_is_stopped.
1175 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
1176 lwp_stop_reason.
1177
1178 2015-03-24 Gary Benson <gbenson@redhat.com>
1179
1180 * linux-nat.h (linux_stop_lwp): Move declaration to...
1181 * nat/linux-nat.h (linux_stop_lwp): New declaration.
1182
1183 2015-03-24 Gary Benson <gbenson@redhat.com>
1184
1185 * linux-nat.h: Include nat/linux-nat.h.
1186 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
1187 * nat/linux-nat.h (struct lwp_info): New forward declaration.
1188 (iterate_over_lwps_ftype): New typedef.
1189 (iterate_over_lwps): New declaration.
1190 * linux-nat.h (iterate_over_lwps): Update comment. Use
1191 iterate_over_lwps_ftype. Update callback return value check.
1192
1193 2015-03-24 Gary Benson <gbenson@redhat.com>
1194
1195 * x86-nat.h (x86_debug_reg_state): Move declaration to...
1196 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
1197
1198 2015-03-24 Gary Benson <gbenson@redhat.com>
1199
1200 * nat/linux-nat.h (current_lwp_ptid): New declaration.
1201 * linux-nat.c (current_lwp_ptid): New function.
1202 * x86-linux-nat.c: Include nat/linux-nat.h.
1203 (x86_linux_dr_get_addr): Use current_lwp_ptid.
1204 (x86_linux_dr_get_control): Likewise.
1205 (x86_linux_dr_get_status): Likewise.
1206 (x86_linux_dr_set_control): Likewise.
1207 (x86_linux_dr_set_addr): Likewise.
1208
1209 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
1210
1211 PR breakpoints/16466
1212 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
1213
1214 2015-03-23 Joel Brobecker <brobecker@adacore.com>
1215
1216 * ser-mingw.c (ser_windows_setparity): Fix indentation.
1217 * ser-unix.c (hardwire_setparity): Likewise.
1218
1219 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
1220
1221 * NEWS: Mention set/show serial parity command.
1222 * monitor.c (monitor_open): Call serial_setparity.
1223 * remote.c (remote_open_1): Likewise.
1224 * ser-base.c (ser_base_serparity): New function.
1225 * ser-base.h (ser_base_setparity): Add declaration.
1226 * ser-go32.c (dos_ops): Set "setparity" field.
1227 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
1228 state.Parity.
1229 (ser_windows_setparity): New function.
1230 (hardwire_ops): Add ser_windows_setparity.
1231 (tty_ops): Add NULL for setparity field.
1232 (pipe_ops): Add ser_base_setparity.
1233 (tcp_ops): Likewise.
1234 * ser-pipe.c (pipe_ops): Likewise.
1235 * ser-tcp.c (tcp_ops): Likewise.
1236 * ser-unix.c (hardwire_setparity): Add declaration.
1237 (hardwire_raw): Don't reset PARENB flag.
1238 (hardwire_setparity): New function.
1239 (hardwire_ops): Add hardwire_setparity.
1240 * serial.c (serial_setparity): New function.
1241 (serial_parity): New global.
1242 (parity_none, parity_odd, parity_even, parity_enums, parity):
1243 New static globals.
1244 (set_parity): New function.
1245 (_initialize_serial): Add set/show serial parity commands.
1246 * serial.h (GDBPARITY_NONE): Define.
1247 (GDBPARITY_ODD): Define.
1248 (GDBPARITY_EVEN): Define.
1249 (serial_setparity) Add declaration.
1250 (struct serial_ops): Add setparity field.
1251 * target.h (serial_parity): Add declaration.
1252
1253 2015-03-23 Keith Seitz <keiths@redhat.com>
1254
1255 * linespec.c (linespec_lexer_lex_keyword): Update comment.
1256
1257 2015-03-23 Keith Seitz <keiths@redhat.com>
1258
1259 * breakpoint.c (parse_breakpoint_sals): Use
1260 linespec_lexer_lex_keyword to ascertain if the user specified
1261 a NULL location.
1262 * linespec.c [IF_KEYWORD_INDEX]: Define.
1263 (linespec_lexer_lex_keyword): Export.
1264 (struct ls_parser) <keyword_ok>: Remove.
1265 A keyword is only a keyword if not followed by another keyword.
1266 (linespec_lexer_lex_one): Remove keyword_ok handling.
1267 Add comment explaining why the parsing stream is not advanced
1268 when a keyword is seen.
1269 (parse_linespec): Remove parser->keyword_ok.
1270 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
1271
1272 2015-03-23 Keith Seitz <keiths@redhat.com>
1273
1274 PR gdb/18021
1275 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
1276 if we find a static method with DW_AT_vtable_elem_location.
1277
1278 2015-03-21 Eli Zaretskii <eliz@gnu.org>
1279
1280 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
1281 before the second loop, to avoid undefined behavior. Reported by
1282 Anton Blanchard <anton@samba.org>.
1283
1284 2015-03-20 Keven Boell <keven.boell@intel.com>
1285
1286 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
1287 data_location usage to linked list.
1288 (resolve_dynamic_type_internal): Adapt data_location to
1289 linked list.
1290 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
1291 (copy_type_recursive, copy_type): Add copy of linked list.
1292 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
1293 (struct dynamic_prop_list): New struct.
1294 * dwarf2read.c (set_die_type): Set data_location data.
1295
1296 2015-03-20 Pedro Alves <palves@redhat.com>
1297
1298 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
1299 inner block and make it const.
1300 * machoread.c (get_archive_prefix_len): Make "lparen" const.
1301
1302 2015-03-20 Pedro Alves <palves@redhat.com>
1303
1304 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
1305 * breakpoint.h (set_breakpoint_condition): Update declaration.
1306
1307 2015-03-20 Pedro Alves <palves@redhat.com>
1308
1309 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
1310
1311 2015-03-20 Pedro Alves <palves@redhat.com>
1312
1313 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
1314
1315 2015-03-20 Pedro Alves <palves@redhat.com>
1316
1317 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
1318
1319 2015-03-20 Pedro Alves <palves@redhat.com>
1320
1321 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
1322 (nto_init_solib_absolute_prefix): Likewise.
1323
1324 2015-03-20 Pedro Alves <palves@redhat.com>
1325
1326 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
1327 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
1328
1329 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1330
1331 * config/djgpp/README: Remove gdb.hp.
1332
1333 2015-03-20 Yao Qi <yao.qi@linaro.org>
1334
1335 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
1336 set_gdbarch_cannot_step_breakpoint.
1337
1338 2015-03-19 Pedro Alves <palves@redhat.com>
1339
1340 * linux-nat.c (linux_resume_one_lwp): Rename to ...
1341 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
1342 instead call perror_with_name.
1343 (check_ptrace_stopped_lwp_gone): New function.
1344 (linux_resume_one_lwp): Reimplement as wrapper around
1345 linux_resume_one_lwp_throw that swallows errors if the LWP is
1346 gone.
1347 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
1348 swallows errors if the LWP is gone. Use
1349 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
1350
1351 2015-03-19 Pedro Alves <palves@redhat.com>
1352
1353 * linux-nat.c (status_callback): Return early if the LWP has no
1354 status pending.
1355
1356 2015-03-19 Pedro Alves <palves@redhat.com>
1357
1358 * linux-nat.c (select_event_lwp_callback): Update comment to no
1359 longer mention SIGTRAP.
1360
1361 2015-03-18 Tristan Gingold <gingold@adacore.com>
1362
1363 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
1364 redirection code to ...
1365 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
1366 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
1367
1368 2015-03-18 Gary Benson <gbenson@redhat.com>
1369
1370 (remote_protocol_features): Remove the "vFile:fstat" feature.
1371 (remote_hostio_fstat): Probe for "vFile:fstat" support.
1372
1373 2015-03-11 Yao Qi <yao.qi@linaro.org>
1374
1375 PR tdep/18107
1376 * aarch64-linux-tdep.c: Include xml-syscall.h
1377 (aarch64_linux_get_syscall_number): New function.
1378 (aarch64_linux_init_abi): Call
1379 set_gdbarch_get_syscall_number.
1380 * syscalls/aarch64-linux.xml: New file.
1381
1382 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
1383
1384 * ser-base.h (ser_base_setstopbits): Change second argument name
1385 from "rate" to "num".
1386
1387 2015-03-17 Gary Benson <gbenson@redhat.com>
1388 Luke Allardyce <lukeallardyce@gmail.com>
1389
1390 PR gdb/18131
1391 * common/common-remote-fileio.h (sys/stat.h): New include.
1392 (stuct stat): Remove forward declaration.
1393
1394 2015-03-16 John Baldwin <jhb@FreeBSD.org>
1395
1396 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
1397 before writing core register notes.
1398
1399 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
1400 Pedro Alves <palves@redhat.com>
1401
1402 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
1403 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
1404 (tgoto): Wrap with extern "C".
1405
1406 2015-03-16 Pedro Alves <palves@redhat.com>
1407 Yuanhui Zhang <asmwarrior@gmail.com>
1408
1409 * stub-termcap.c (tputs): Change prototype.
1410
1411 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
1412 Pedro Alves <palves@redhat.com>
1413
1414 * windows-nat.c (struct thread_info_struct): Rename to ...
1415 (struct windows_thread_info_struct): ... this.
1416 (thread_info): Rename to ...
1417 (windows_thread_info): ... this.
1418 All users updated.
1419
1420 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1421 Pedro Alves <palves@redhat.com>
1422
1423 * NEWS: New Removed targets and native configurations.
1424
1425 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1426
1427 Remove HPUX.
1428 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
1429 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
1430 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
1431 ia64-hpux-tdep.h, solib-ia64-hpux.h.
1432 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
1433 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
1434 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
1435 hppa-hpux-tdep.c.
1436 * config/ia64/hpux.mh: Remove file.
1437 * config/pa/hpux.mh: Remove file.
1438 * configure: Rebuilt.
1439 * configure.ac (dlgetmodinfo, somread.o): Remove.
1440 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
1441 (ia64-*-hpux*): Remove its float format exception.
1442 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
1443 * hppa-hpux-nat.c: Remove file.
1444 * hppa-hpux-tdep.c: Remove file.
1445 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
1446 Move them here from hppa-tdep.h
1447 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
1448 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
1449 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
1450 Move them to hppa-tdep.c.
1451 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
1452 declarations.
1453 * ia64-hpux-nat.c: Remove file.
1454 * ia64-hpux-tdep.c: Remove file.
1455 * ia64-hpux-tdep.h: Remove file.
1456 * inf-ttrace.c: Remove file.
1457 * inf-ttrace.h: Remove file.
1458 * solib-ia64-hpux.c: Remove file.
1459 * solib-ia64-hpux.h: Remove file.
1460 * solib-pa64.c: Remove file.
1461 * solib-pa64.h: Remove file.
1462 * solib-som.c: Remove file.
1463 * solib-som.h: Remove file.
1464 * somread.c: Remove file.
1465
1466 2015-03-13 John Baldwin <jhb@FreeBSD.org>
1467
1468 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
1469 * config.in: Regenerate.
1470 * configure: Regenerate.
1471 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
1472 define.
1473 (fbsd_find_memory_regions): Use kinfo_getvmmap to
1474 enumerate memory regions if present.
1475
1476 2015-03-13 John Baldwin <jhb@FreeBSD.org>
1477
1478 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
1479 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
1480 expressions.
1481 (i386fbsd_sigtramp_p): Likewise.
1482
1483 2015-03-12 John Baldwin <jhb@FreeBSD.org>
1484
1485 * MAINTAINERS (Write After Approval): Add John Baldwin.
1486
1487 2015-03-12 Gary Benson <gbenson@redhat.com>
1488
1489 * solib.c (_initialize_solib): Make "set/show sysroot" use
1490 add_setshow_optional_filename_cmd so it can be restored to
1491 empty after being set.
1492
1493 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
1494
1495 * Makefile.in (SFILES): New source break-catch-syscall.c.
1496 (COMMON_OBS): New object break-catch-syscall.o.
1497 * break-catch-syscall.c: New file.
1498 * breakpoint.c: Remove inclusion of "xml-syscall.h".
1499 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
1500 (struct syscall_catchpoint): Likewise.
1501 (dtor_catch_syscall): Likewise.
1502 (catch_syscall_inferior_data): Likewise.
1503 (struct catch_syscall_inferior_data): Likewise.
1504 (get_catch_syscall_inferior_data): Likewise.
1505 (catch_syscall_inferior_data_cleanup): Likewise.
1506 (insert_catch_syscall): Likewise.
1507 (remove_catch_syscall): Likewise.
1508 (breakpoint_hit_catch_syscall): Likewise.
1509 (print_it_catch_syscall): Likewise.
1510 (print_one_catch_syscall): Likewise.
1511 (print_mention_catch_syscall): Likewise.
1512 (print_recreate_catch_syscall): Likewise.
1513 (catch_syscall_breakpoint_ops): Likewise.
1514 (syscall_catchpoint_p): Likewise.
1515 (create_syscall_event_catchpoint): Likewise.
1516 (catch_syscall_split_args): Likewise.
1517 (catch_syscall_command_1): Likewise.
1518 (is_syscall_catchpoint_enabled): Likewise.
1519 (catch_syscall_enabled): Likewise.
1520 (catching_syscall_number): Likewise.
1521 (catch_syscall_completer): Likewise.
1522 (clear_syscall_counts): Likewise.
1523 (initialize_breakpoint_ops): Move initialization of syscall
1524 catchpoints to break-catch-syscall.c.
1525 (_initialize_breakpoint): Move code related to syscall catchpoints
1526 to break-catch-syscall.c.
1527
1528 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
1529
1530 * breakpoint.c (breakpoint_find_if): New function.
1531 * breakpoint.h (breakpoint_find_if): New prototype.
1532
1533 2015-03-11 Gary Benson <gbenson@redhat.com>
1534
1535 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
1536 * remote-fileio.c (remote_fileio_to_host_uint): New function.
1537 (remote_fileio_to_host_ulong): Likewise.
1538 (remote_fileio_to_host_mode): Likewise.
1539 (remote_fileio_to_host_time): Likewise.
1540 (remote_fileio_to_host_stat): Likewise.
1541 * remote.c (PACKET_vFile_fstat): New enum value.
1542 (remote_protocol_features): Register the "vFile:fstat" feature.
1543 (remote_hostio_fstat): New function.
1544 (remote_bfd_iovec_stat): Use the above.
1545 (_initialize_remote): Register new "set/show remote
1546 hostio-fstat-packet" command.
1547 * symfile.c (separate_debug_file_exists): Update comment.
1548 * NEWS: Announce new vFile:fstat packet.
1549
1550 2015-03-11 Gary Benson <gbenson@redhat.com>
1551
1552 * common/common-remote-fileio.h: New file.
1553 * common/common-remote-fileio.c: Likewise.
1554 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
1555 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
1556 (COMMON_OBS): Add common-remote-fileio.o.
1557 (common-remote-fileio.o): New rule.
1558 * remote-fileio.h (common-remote-fileio.h): New include.
1559 * remote-fileio.c (gdb/fileio.h): Do not include.
1560 (remote_fileio_to_be): Moved to common-remote-fileio.h.
1561 (remote_fileio_to_fio_uint): Likewise.
1562 (remote_fileio_to_fio_time): Likewise.
1563 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
1564 (remote_fileio_to_fio_mode): Likewise.
1565 (remote_fileio_to_fio_ulong): Likewise.
1566 (remote_fileio_to_fio_stat): Likewise.
1567
1568 2015-03-11 Andy Wingo <wingo@igalia.com>
1569
1570 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
1571 we were checking the cached type, not the cached dynamic type.
1572
1573 2015-03-11 Andy Wingo <wingo@igalia.com>
1574
1575 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
1576 other strings, as these are on the GC'd heap, and will be
1577 collected along with the smob.
1578
1579 2015-03-11 Andy Wingo <wingo@igalia.com>
1580
1581 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
1582 (objfile_functions): Bind gdbscm_objfile_progspace to
1583 objfile-progspace.
1584 * guile/lib/gdb.scm: Add objfile-progspace to exports.
1585
1586 2015-03-11 Andy Wingo <wingo@igalia.com>
1587
1588 * guile/guile.c (_initialize_guile): Disable automatic
1589 finalization, if Guile offers us that possibility.
1590 * guile/guile.c (call_initialize_gdb_module):
1591 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
1592 finalizers in appropriate places.
1593 * configure.ac (AC_TRY_LIBGUILE): Add a check for
1594 scm_set_automatic_finalization_enabled.
1595 * configure: Regenerated.
1596
1597 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
1598
1599 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
1600 SAL, if possible.
1601
1602 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
1603
1604 * s390-linux-nat.c (struct arch_lwp_info): New.
1605 (s390_fix_watch_points): Rename to...
1606 (s390_prepare_to_resume): ...this. Skip the PER info update
1607 unless the watch points have changed.
1608 (s390_refresh_per_info, s390_new_thread): New functions.
1609 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
1610 s390_fix_watch_points.
1611 (s390_remove_watchpoint): Likewise.
1612 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
1613 Register s390_prepare_to_resume.
1614
1615 2015-03-09 Pedro Alves <palves@redhat.com>
1616
1617 Revert:
1618 2015-03-07 Pedro Alves <palves@redhat.com>
1619 * common/gdb_socket.h: New file.
1620 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
1621 sys/socket.h.
1622 (net_open): Use union gdb_sockaddr_u.
1623
1624 2015-03-07 Pedro Alves <palves@redhat.com>
1625
1626 * configure.ac (build_warnings): Move -Wmissing-prototypes
1627 -Wdeclaration-after-statement -Wmissing-parameter-type
1628 -Wold-style-declaration -Wold-style-definition to the C-specific
1629 set.
1630 * configure: Regenerate.
1631
1632 2015-03-07 Pedro Alves <palves@redhat.com>
1633
1634 * common/gdb_socket.h: New file.
1635 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
1636 sys/socket.h.
1637 (net_open): Use union gdb_sockaddr_u.
1638
1639 2015-03-07 Pedro Alves <palves@redhat.com>
1640
1641 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
1642 (exceptions_state_mc_action_iter)
1643 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
1644 Don't define.
1645 [__cplusplus] (try_scope_depth): New global.
1646 [__cplusplus] (exception_try_scope_entry)
1647 (exception_try_scope_exit, gdb_exception_sliced_copy)
1648 (exception_rethrow): New functions.
1649 (throw_exception): In C++ mode, throw
1650 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
1651 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
1652 (throw_it): In C++ mode, use try_scope_depth.
1653 * common/common-exceptions.h [!__cplusplus]
1654 (exceptions_state_mc_action_iter)
1655 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
1656 Don't declare.
1657 [__cplusplus] (exception_try_scope_entry)
1658 (exception_try_scope_exit, exception_rethrow): Declare.
1659 [__cplusplus] (struct exception_try_scope): New struct.
1660 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
1661 C++ exceptions.
1662 (struct gdb_exception_RETURN_MASK_ALL)
1663 (struct gdb_exception_RETURN_MASK_ERROR)
1664 (struct gdb_exception_RETURN_MASK_QUIT): New types.
1665
1666 2015-03-07 Pedro Alves <palves@redhat.com>
1667
1668 * main.c (handle_command_errors): Remove volatile qualifier from
1669 parameter.
1670
1671 2015-03-07 Pedro Alves <palves@redhat.com>
1672
1673 * breakpoint.c (save_breakpoints): Adjust to avoid code between
1674 TRY and CATCH.
1675 * gdbtypes.c (safe_parse_type): Remove empty line.
1676 (types_deeply_equal):
1677 * guile/scm-frame.c (gdbscm_frame_name):
1678 * linux-thread-db.c (find_new_threads_once):
1679 * python/py-breakpoint.c (bppy_get_commands):
1680 * record-btrace.c (record_btrace_insert_breakpoint)
1681 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
1682 (record_btrace_start_replaying): Adjust to avoid code between TRY
1683 and CATCH.
1684
1685 2015-03-07 Pedro Alves <palves@redhat.com>
1686
1687 * common/common-exceptions.c (struct catcher) <exception>: No
1688 longer a pointer to volatile exception. Now an exception value.
1689 <mask>: Delete field.
1690 (exceptions_state_mc_init): Remove all parameters. Adjust.
1691 (exceptions_state_mc): No longer pop the catcher here.
1692 (exceptions_state_mc_catch): New function.
1693 (throw_exception): Adjust.
1694 * common/common-exceptions.h (exceptions_state_mc_init): Remove
1695 all parameters.
1696 (exceptions_state_mc_catch): Declare.
1697 (TRY_CATCH): Rename to ...
1698 (TRY): ... this. Remove EXCEPTION and MASK parameters.
1699 (CATCH, END_CATCH): New.
1700 All callers adjusted.
1701
1702 2015-03-07 Tom Tromey <tromey@redhat.com>
1703
1704 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
1705
1706 2015-03-07 Pedro Alves <palves@redhat.com>
1707
1708 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
1709 (amd64_epilogue_frame_cache): Normal exception handling code.
1710 * break-catch-throw.c (check_status_exception_catchpoint)
1711 (re_set_exception_catchpoint): Ditto.
1712 * cli/cli-interp.c (safe_execute_command):
1713 * cli/cli-script.c (script_from_file): Ditto.
1714 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
1715 Ditto.
1716 * compile/compile-object-run.c (compile_object_run): Ditto.
1717 * cp-abi.c (baseclass_offset): Ditto.
1718 * cp-valprint.c (cp_print_value): Ditto.
1719 * exceptions.c (catch_exceptions_with_msg):
1720 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
1721 * frame.c (get_frame_address_in_block_if_available): Ditto.
1722 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
1723 (i386_sigtramp_frame_cache): Ditto.
1724 * infcmd.c (post_create_inferior): Ditto.
1725 * linespec.c (parse_linespec, find_linespec_symbols):
1726 * p-valprint.c (pascal_object_print_value): Ditto.
1727 * parse.c (parse_expression_for_completion): Ditto.
1728 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1729 * remote.c (remote_get_noisy_reply): Ditto.
1730 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
1731 * solib-svr4.c (solib_svr4_r_map): Ditto.
1732
1733 2015-03-06 Gary Benson <gbenson@redhat.com>
1734
1735 * common/common-utils.h (startswith): New inline function.
1736 All places where this logic was used updated to use the above.
1737
1738 2015-03-05 Pedro Alves <palves@redhat.com>
1739
1740 PR gdb/18002
1741 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
1742 after reading the breakpoint's shadow memory.
1743
1744 2015-03-05 Mark Kettenis <kettenis@gnu.org>
1745
1746 * hppabsd-nat.c: Remove file.
1747 * hppaobsd-nat.c: New file.
1748 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
1749 hppaobsd-nat.c.
1750 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
1751 hppaobsd-nat.o.
1752
1753 2015-03-04 Pedro Alves <palves@redhat.com>
1754
1755 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
1756 (target_decr_pc_after_break): Delete declaration.
1757 * target.c (default_target_decr_pc_after_break)
1758 (target_decr_pc_after_break): Delete.
1759 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
1760 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
1761 * linux-thread-db.c (check_event): Likewise.
1762 * infrun.c (adjust_pc_after_break): Likewise.
1763 * darwin-nat.c (cancel_breakpoint): Likewise.
1764 * aix-thread.c (aix_thread_wait): Likewise.
1765 * target-delegates.c: Regenerate.
1766
1767 2015-03-04 Pedro Alves <palves@redhat.com>
1768
1769 * linux-nat.c (save_sigtrap): Check for breakpoints before
1770 checking watchpoints.
1771 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
1772 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
1773 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
1774 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
1775 (linux_nat_stopped_by_sw_breakpoint)
1776 (linux_nat_supports_stopped_by_sw_breakpoint)
1777 (linux_nat_stopped_by_hw_breakpoint)
1778 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
1779 (linux_nat_wait_1): Don't re-increment the PC if relying on
1780 SIGTRAP's siginfo->si_code.
1781 (linux_nat_add_target): Install new target methods.
1782 * linux-thread-db.c (check_event): Don't account for breakpoint PC
1783 offset if the target already adjusted the PC.
1784 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
1785 (GDB_ARCH_TRAP_BRKPT): New.
1786 (TRAP_HWBKPT): Define if not already defined.
1787
1788 2015-03-04 Pedro Alves <palves@redhat.com>
1789
1790 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
1791 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
1792 Delete field.
1793 <stop_reason>: New field.
1794 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
1795 (packet_set_cmd_state): New function.
1796 (remote_protocol_features): Register the "swbreak" and "hwbreak"
1797 features.
1798 (remote_query_supported): If not disabled with the corresponding
1799 "set remote foo-packet" command, report support for the swbreak
1800 and hwbreak features.
1801 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
1802 field.
1803 <stop_reason>: New field.
1804 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
1805 (remote_wait_as): Adjust.
1806 (remote_stopped_by_sw_breakpoint)
1807 (remote_supports_stopped_by_sw_breakpoint)
1808 (remote_stopped_by_hw_breakpoint)
1809 (remote_supports_stopped_by_hw_breakpoint): New functions.
1810 (remote_stopped_by_watchpoint): New function.
1811 (init_remote_ops): Install them.
1812 (_initialize_remote): Register new "set/show remote
1813 swbreak-feature-packet" and "set/show remote
1814 swbreak-feature-packet" commands.
1815
1816 2015-03-04 Pedro Alves <palves@redhat.com>
1817
1818 * btrace.h: Include target/waitstatus.h.
1819 (struct btrace_thread_info) <stop_reason>: New field.
1820 * record-btrace.c (record_btrace_step_thread): Use
1821 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
1822 (record_btrace_decr_pc_after_break): Delete.
1823 (record_btrace_stopped_by_sw_breakpoint)
1824 (record_btrace_supports_stopped_by_sw_breakpoint)
1825 (record_btrace_stopped_by_hw_breakpoint)
1826 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
1827 (init_record_btrace_ops): Install them.
1828 * record-full.c (record_full_hw_watchpoint): Delete and replace
1829 with ...
1830 (record_full_stop_reason): ... this throughout.
1831 (record_full_exec_insn): Adjust.
1832 (record_full_wait_1): Adjust. No longer re-increment the PC.
1833 (record_full_wait_1): Adjust. Use
1834 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
1835 (record_full_stopped_by_watchpoint): Adjust.
1836 (record_full_stopped_by_sw_breakpoint)
1837 (record_full_supports_stopped_by_sw_breakpoint)
1838 (record_full_supports_stopped_by_sw_breakpoint)
1839 (record_full_stopped_by_hw_breakpoint)
1840 (record_full_supports_stopped_by_hw_breakpoint): New functions.
1841 (init_record_full_ops, init_record_full_core_ops): Install them.
1842 * record.c (record_check_stopped_by_breakpoint): New function.
1843 * record.h: Include target/waitstatus.h.
1844 (record_check_stopped_by_breakpoint): New declaration.
1845
1846 2015-03-04 Pedro Alves <palves@redhat.com>
1847
1848 enum lwp_stop_reason -> enum target_stop_reason
1849 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
1850 (linux_nat_stopped_by_watchpoint, status_callback)
1851 (linux_nat_wait_1): Adjust.
1852 * linux-nat.h (enum lwp_stop_reason): Delete.
1853 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
1854 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
1855 * target/waitstatus.h (enum target_stop_reason): New.
1856
1857 2015-03-04 Pedro Alves <palves@redhat.com>
1858
1859 * breakpoint.c (need_moribund_for_location_type): New function.
1860 (bpstat_stop_status): Don't skipping checking moribund locations
1861 of breakpoint types which the target tell caused a stop.
1862 (program_breakpoint_here_p): New function, factored out from ...
1863 (bp_loc_is_permanent): ... this.
1864 (update_global_location_list): Don't create a moribund location if
1865 the target supports reporting stops of the type of the removed
1866 breakpoint.
1867 * breakpoint.h (program_breakpoint_here_p): New declaration.
1868 * infrun.c (adjust_pc_after_break): Return early if the target has
1869 already adjusted the PC. Add comments.
1870 (handle_signal_stop): If nothing explains a signal, and the target
1871 tells us the stop was caused by a software breakpoint, check if
1872 there's a breakpoint instruction in the memory. If so, adjust the
1873 PC before presenting the stop to the user. Otherwise, ignore the
1874 trap. If nothing explains a signal, and the target tells us the
1875 stop was caused by a hardware breakpoint, ignore the trap.
1876 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
1877 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
1878 to_supports_stopped_by_hw_breakpoint>: New fields.
1879 (target_stopped_by_sw_breakpoint)
1880 (target_supports_stopped_by_sw_breakpoint)
1881 (target_stopped_by_hw_breakpoint)
1882 (target_supports_stopped_by_hw_breakpoint): Define.
1883 * target-delegates.c: Regenerate.
1884
1885 2015-03-04 Pedro Alves <palves@redhat.com>
1886
1887 * infrun.c (follow_fork_inferior): Use the whole of the
1888 inferior_ptid and pending_follow.related_pid ptids instead of
1889 building ptids from the process components. Adjust verbose output
1890 to use target_pid_to_str.
1891 * linux-nat.c (linux_child_follow_fork): Use the whole of the
1892 inferior_ptid and pending_follow.related_pid ptids instead of
1893 building ptids from the process components.
1894
1895 2015-03-04 Mark Kettenis <kettenis@gnu.org>
1896
1897 * inf-ptrace.c [PT_GET_PROCESS_STATE]
1898 (inf_ptrace_insert_fork_catchpoint): New function.
1899 (inf_ptrace_remove_fork_catchpoint): New function.
1900 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
1901
1902 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
1903
1904 * s390-linux-tdep.c (s390_register_name): Return empty string
1905 instead of NULL for registers that shouldn't be visible.
1906
1907 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
1908
1909 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
1910 XML file for 64-bit targets.
1911
1912 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
1913
1914 * target.h (find_default_create_inferior): Remove declaration.
1915 (find_default_attach): Likewise.
1916
1917 2015-03-03 Pedro Alves <palves@redhat.com>
1918
1919 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
1920 Use ptid_get_pid to get the overall process id when resuming all
1921 threads.
1922
1923 2015-03-03 Pedro Alves <palves@redhat.com>
1924
1925 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
1926 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
1927 * inf-ptrace.c (get_ptrace_pid): New function.
1928 (inf_ptrace_resume): Use it.
1929 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
1930 to the lower layer.
1931
1932 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
1933
1934 * nat/linux-btrace.c: Include sys/utsname.h.
1935 (linux_determine_kernel_ptr_bits): New.
1936 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
1937 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
1938 ptr_bits.
1939
1940 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
1941
1942 * btrace.c (ftrace_update_function): Treat return as tailcall for
1943 "_dl_runtime_resolve".
1944
1945 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
1946
1947 * btrace.h (btrace_function) <lbegin, lend>: Remove.
1948 * btrace.c (ftrace_debug): Do not print the line range.
1949 (ftrace_skip_file, ftrace_update_lines): Remove.
1950 (ftrace_new_function): Remove lbegin and lend initialization.
1951 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
1952 * record-btrace.c (btrace_compute_src_line_range): New.
1953 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
1954
1955 2015-03-02 Pedro Alves <palves@redhat.com>
1956
1957 * infrun.c (follow_exec): Delete all threads of the process except
1958 the event thread. Extended comments.
1959
1960 2015-03-02 Joel Brobecker <brobecker@adacore.com>
1961
1962 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
1963
1964 2015-03-02 Joel Brobecker <brobecker@adacore.com>
1965
1966 * utils.h: Remove <stdbool.h> #include.
1967 (producer_is_gcc): Change return type to "int".
1968 * utils.c (producer_is_gcc): Change return type to int.
1969 Return 1 instead of true, and 0 instead of false.
1970 Adjust function documentation accordingly.
1971
1972 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
1973
1974 * s390-linux-nat.c (have_regset_vxrs): New static variable.
1975 (s390_linux_fetch_inferior_registers): Handle vector registers, if
1976 present.
1977 (s390_linux_store_inferior_registers): Likewise.
1978 (s390_get_hwcap): Remove function. Embed its logic...
1979 (s390_read_description): ...here. Yield a target description with
1980 vector registers if applicable.
1981 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
1982 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
1983 "features/s390x-tevx-linux64.c".
1984 (struct gdbarch_tdep) <v0_full_regnum>: New field.
1985 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
1986 for "GNU/Linux-specific registers".
1987 (s390_dwarf_reg_r0l): New enum value.
1988 (s390_dwarf_reg_to_regnum): Support vector registers.
1989 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
1990 of GPR lower halves.
1991 (regnum_is_vxr_full): New function.
1992 (s390_register_name): New function.
1993 (s390_pseudo_register_name): Handle v0-v15, which are composed of
1994 f0-f15 and v0l-v15l.
1995 (s390_pseudo_register_type): Likewise.
1996 (s390_pseudo_register_read): Likewise.
1997 (s390_pseudo_register_write): Likewise.
1998 (s390_value_from_register): Account for the fact that values are
1999 placed left-justified in vector registers.
2000 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
2001 the vector reggroup and omit them from the general reggroup.
2002 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
2003 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
2004 (s390_iterate_over_regset_sections): Add iterations for the two
2005 new vector regsets.
2006 (s390_core_read_description): Yield a target description with
2007 vector registers if applicable.
2008 (s390_gdbarch_init): Handle target descriptions with vector
2009 registers. Add "register_name" gdbarch method.
2010 (_initialize_s390_tdep): Call new tdesc initialization functions.
2011 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
2012 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
2013 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
2014 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
2015 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
2016 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
2017 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
2018 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
2019 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
2020 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
2021 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
2022 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
2023 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
2024 (S390_NUM_REGS): Adjust value.
2025 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
2026 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
2027 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
2028 * NEWS: Announce S/390 vector register support.
2029
2030 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
2031
2032 * features/s390-tevx-linux64.xml: New file.
2033 * features/s390-vx-linux64.xml: New file.
2034 * features/s390-vx.xml: New file.
2035 * features/s390x-tevx-linux64.xml: New file.
2036 * features/s390x-vx-linux64.xml: New file.
2037 * features/Makefile (WHICH): Add s390-vx-linux64,
2038 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
2039 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
2040 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
2041 macros.
2042 * features/s390-tevx-linux64.c: New generated file.
2043 * features/s390-vx-linux64.c: Likewise.
2044 * features/s390x-tevx-linux64.c: Likewise.
2045 * features/s390x-vx-linux64.c: Likewise.
2046 * regformats/s390-tevx-linux64.dat: Likewise.
2047 * regformats/s390-vx-linux64.dat: Likewise.
2048 * regformats/s390x-tevx-linux64.dat: Likewise.
2049 * regformats/s390x-vx-linux64.dat: Likewise.
2050
2051 2015-02-28 Doug Evans <xdje42@gmail.com>
2052
2053 * symtab.h (struct symtab) <next>: Fix comment.
2054
2055 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
2056
2057 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
2058 python_GdbMethods.
2059
2060 2015-02-27 Pedro Alves <palves@redhat.com>
2061
2062 * dtrace-probe.c (dtrace_probe_ops): Make extern.
2063
2064 2015-02-27 Pedro Alves <palves@redhat.com>
2065
2066 * common/common-exceptions.h (exception_none): Declare.
2067 * common/common-exceptions.c (exception_none): Moved from
2068 exceptions.c.
2069 (exceptions_state_mc_init): Use exception_none.
2070 * exceptions.c (exception_none): Move to
2071 common/common-exceptions.c.
2072 * exceptions.h (exception_none): Move to
2073 common/common-exceptions.h.
2074
2075 2015-02-27 Pedro Alves <palves@redhat.com>
2076
2077 * main.c (catch_command_errors, catch_command_errors_const):
2078 Remove 'mask' argument. Adjust.
2079 (captured_main): Adjust callers.
2080
2081 2015-02-27 Pedro Alves <palves@redhat.com>
2082
2083 * python/python-internal.h: Include "extension-priv.h".
2084
2085 2015-02-27 Pedro Alves <palves@redhat.com>
2086
2087 * breakpoint.h (enum print_stop_action): Move further up in the
2088 file.
2089
2090 2015-02-27 Pedro Alves <palves@redhat.com>
2091
2092 * gdbarch.sh: Include regcache.h.
2093 * gdbarch.h: Regenerate.
2094
2095 2015-02-27 Pedro Alves <palves@redhat.com>
2096
2097 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
2098 Remove duplicate const.
2099 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
2100 duplicate const.
2101
2102 2015-02-27 Pedro Alves <palves@redhat.com>
2103
2104 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
2105 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
2106 * features/feature_to_c.sh: Tag the generated xml_builtin array
2107 with extern const in C++ mode.
2108
2109 2015-02-27 Tom Tromey <tromey@redhat.com>
2110
2111 * minidebug.c (struct lzma_stream): Rename to ...
2112 (struct gdb_lzma_stream): ... this.
2113 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
2114
2115 2015-02-27 Pedro Alves <palves@redhat.com>
2116
2117 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
2118 function.
2119 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
2120 (mi_cmd_stack_list_variables): Use it.
2121
2122 2015-02-27 Pedro Alves <palves@redhat.com>
2123
2124 * x86-linux-nat.c (u_debugreg_offset): New function.
2125 (x86_linux_dr_get, x86_linux_dr_set): Use it.
2126
2127 2015-02-27 Pedro Alves <palves@redhat.com>
2128
2129 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
2130 declaration.
2131 Include break-common.h.
2132
2133 2015-02-27 Tom Tromey <tromey@redhat.com>
2134 Pedro Alves <palves@redhat.com>
2135
2136 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
2137 local used to iterate over enums.
2138 * completer.c (signal_completer): Likewise.
2139 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
2140 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
2141 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
2142 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
2143 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
2144 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
2145 * tui-wingeneral.c (tui_refresh_all): Likewise.
2146
2147 2015-02-27 Pedro Alves <palves@redhat.com>
2148
2149 * target.h: Include "infrun.h".
2150
2151 2015-02-27 Pedro Alves <palves@redhat.com>
2152
2153 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
2154
2155 2015-02-27 Pedro Alves <palves@redhat.com>
2156
2157 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
2158 (IPA_SYM): Use it.
2159 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
2160
2161 2015-02-27 Pedro Alves <palves@redhat.com>
2162
2163 * cli-out.c (_rl_erase_entire_line): Move declaration out of
2164 cli_mld_erase_entire_line, and make it extern "C".
2165 * common/common-defs.h (EXTERN_C): New.
2166 * completer.c (_rl_completion_prefix_display_length)
2167 (_rl_print_completions_horizontally, QSFUNC): Move declarations
2168 out of gdb_display_match_list_1.
2169 (_rl_qsort_string_compare): Move declaration out of
2170 gdb_display_match_list_1, and make it extern "C".
2171 * defs.h (re_comp): Use EXTERN_C.
2172 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
2173 and make it extern "C".
2174 (monstartup): Move declaration out of maintenance_set_profile_cmd,
2175 and make it extern "C".
2176 (main): Move declaration out of maintenance_set_profile_cmd.
2177 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
2178 EXTERN_C.
2179
2180 2015-02-27 Pedro Alves <palves@redhat.com>
2181
2182 * python/python.c (GdbMethods): Rename to ...
2183 (python_GdbMethods): ... this and make extern.
2184 (GdbModuleDef): Rename to ...
2185 (python_GdbModuleDef): ... this and make extern.
2186
2187 2015-02-27 Pedro Alves <palves@redhat.com>
2188
2189 * record-btrace.c (set_record_btrace_cmdlist)
2190 (show_record_btrace_cmdlist): Remove redefinitions.
2191
2192 2015-02-27 Tom Tromey <tromey@redhat.com>
2193 Pedro Alves <palves@redhat.com>
2194
2195 * dwarf2-frame.c (enum cfa_how_kind, struct
2196 dwarf2_frame_state_reg_info): Move out of struct
2197 dwarf2_frame_state.
2198 * dwarf2read.c (struct tu_stats): Move out of struct
2199 dwarf2_per_objfile.
2200 (struct file_entry): Move out of struct line_header.
2201 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
2202 typedef_field_list): Move out of struct field_info.
2203 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
2204 Move out of struct dynamic_prop.
2205 (union type_owner, union field_location, struct field, struct
2206 range_bounds, union type_specific): Move out of struct main_type.
2207 (struct fn_fieldlist, struct fn_field, struct typedef_field)
2208 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
2209 (struct call_site_target, union call_site_parameter_u, struct
2210 call_site_parameter): Move out of struct call_site.
2211 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
2212 m32c_prologue.
2213 (enum srcdest_kind): Move out of struct srcdest.
2214 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
2215 * prologue-value.h (enum prologue_value_kind): Move out of struct
2216 prologue_value.
2217 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
2218 gdbarch_tdep.
2219 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
2220 out of struct field_info.
2221 * symfile.h (struct other_sections): Move out of struct
2222 section_addr_info.
2223 * symtab.c (struct symbol_cache_slot): Move out struct
2224 block_symbol_cache.
2225 * target-descriptions.c (enum tdesc_type_kind): Move out of
2226 typedef struct tdesc_type.
2227 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
2228 struct tui_line_or_address.
2229 * value.c (enum internalvar_kind, union internalvar_data): Move
2230 out of struct internalvar.
2231 * xtensa-tdep.h (struct ctype_cache): Move out of struct
2232 gdbarch_tdep.
2233
2234 2015-02-27 Tom Tromey <tromey@redhat.com>
2235 Pedro Alves <palves@redhat.com>
2236
2237 Rename symbols whose names are reserved C++ keywords throughout.
2238
2239 2015-02-27 Pedro Alves <palves@redhat.com>
2240
2241 * Makefile.in (COMPILER): New, get it from autoconf.
2242 (COMPILE.pre, CC_LD): Use COMPILER.
2243 (CXX): Get from autoconf instead.
2244 (CXX_FOR_TARGET): Default to g++ instead of gcc.
2245 * acinclude.m4: Include build-with-cxx.m4.
2246 * build-with-cxx.m4: New file.
2247 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
2248 Disable -Werror by default if building in C++ mode.
2249 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
2250 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
2251 Run supported-warning-flags tests with the C++ compiler.
2252 Save/restore CXXFLAGS too.
2253 * configure: Regenerate.
2254
2255 2015-02-27 Pedro Alves <palves@redhat.com>
2256
2257 * libiberty.m4: New file.
2258 * acinclude.m4: Include libiberty.m4.
2259 * configure.ac: Call libiberty_INIT.
2260 * config.in, configure: Regenerate.
2261
2262 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
2263
2264 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
2265 31-bit targets, but 64-bit targets as well.
2266 (s390_gnu_triplet_regexp): New function.
2267 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
2268 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
2269 method.
2270
2271 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
2272
2273 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
2274 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
2275 from CONTEXT_DEBUGGER.
2276
2277 2015-02-26 Doug Evans <dje@google.com>
2278
2279 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
2280 CHECK_TYPEDEF.
2281 (set_type_vptr_fieldno): Ditto.
2282 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
2283 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
2284
2285 2015-02-26 Pedro Alves <palves@redhat.com>
2286
2287 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
2288 * complaints.c (vcomplaint): Pass argument FMT directly to
2289 printf-like functions instead of complaint->fmt.
2290 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
2291 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
2292 * compile/compile-loc2c.c (pushf, unary, binary): Add
2293 ATTRIBUTE_PRINTF.
2294 (do_compile_dwarf_expr_to_c): Pass string literal as format string
2295 to pushf.
2296 (BINARY): Pass string literal as format string to 'binary'.
2297 * compile/compile-object-load.c (link_callbacks_einfo): Add
2298 ATTRIBUTE_PRINTF.
2299 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
2300
2301 2015-02-26 Pedro Alves <palves@redhat.com>
2302
2303 * windows-termcap.c: Rename to ...
2304 * stub-termcap.c: ... this. Adjust header line.
2305 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
2306 windows-termcap.c.
2307 * configure: Regenerate.
2308 * configure.ac: Refer to stub-termcap.o instead of
2309 windows-termcap.o.
2310 * gdb_curses.h: Mention stub-termcap.c instead of
2311 windows-termcap.c.
2312
2313 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2314
2315 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
2316 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
2317
2318 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
2319
2320 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
2321
2322 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2323
2324 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
2325 bfd_canonicalize_symtab.
2326
2327 2015-02-25 John Baldwin <jhb@FreeBSD.org>
2328
2329 * amd64fbsd-nat.c: Include sys/user.h.
2330 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
2331 instead of KERN_PS_STRINGS to locate the signal trampoline.
2332 * i386fbsd-nat.c: Include sys/user.h.
2333 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
2334 instead of KERN_PS_STRINGS to locate the signal trampoline.
2335 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
2336 (amd64fbsd_sigtramp_p): New.
2337 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
2338 longer set default values.
2339 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
2340 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
2341 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
2342 (i386fbsd_freebsd4_sigtramp_start)
2343 (i386fbsd_freebsd4_sigtramp_middle)
2344 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
2345 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
2346 (i386fbsd_sigtramp_p): New.
2347 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
2348 longer set default values.
2349 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
2350
2351 2015-02-25 John Baldwin <jhb@freebsd.org>
2352
2353 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
2354 get_frame_register instead of frame_unwind_register_unsigned.
2355
2356 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2357
2358 PR build/18033
2359 * compile/compile-c-support.c (c_compute_program): Change // comment.
2360 * compile/compile-object-load.c (setup_sections): Change // comment.
2361
2362 2015-02-26 Joel Brobecker <brobecker@adacore.com>
2363
2364 PR build/18033:
2365 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
2366
2367 2015-02-23 Pedro Alves <palves@redhat.com>
2368
2369 * remote.c (skip_to_semicolon): New function.
2370 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
2371 special case the stop reasons that look like hex numbers
2372 upfront. Instead handle real register numbers after matching
2373 all the known stop reasons.
2374
2375 2015-02-21 Doug Evans <dje@google.com>
2376
2377 PR c++/17976, symtab/17821
2378 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
2379 is_in_anonymous. All callers updated.
2380 (find_symbol_in_baseclass): Ditto.
2381 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
2382 for symbols in an anonymous namespace.
2383 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
2384 DW_AT_name directly.
2385 (dwarf2_name): Convert missing namespace name to
2386 CP_ANONYMOUS_NAMESPACE_STR.
2387
2388 2015-02-20 Pedro Alves <palves@redhat.com>
2389
2390 * linux-nat.c (linux_handle_extended_wait): Call
2391 thread_db_notice_clone whenever a new clone LWP is detected.
2392 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
2393 functions.
2394 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
2395 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
2396 (linux_unstop_all_lwps): Declare.
2397 * linux-thread-db.c (struct thread_get_info_inout): Delete.
2398 (thread_get_info_callback): Delete.
2399 (thread_from_lwp): Use td_thr_get_info and record_thread.
2400 (thread_db_attach_lwp): Delete.
2401 (thread_db_notice_clone): New function.
2402 (try_thread_db_load_1): If /proc is mounted and shows the
2403 process'es task list, walk over all LWPs and call thread_from_lwp
2404 instead of relying on td_ta_thr_iter.
2405 (attach_thread): Don't call check_thread_signals here. Split the
2406 tail part of the function (which adds the thread to the core GDB
2407 thread list) to ...
2408 (record_thread): ... this function. Call check_thread_signals
2409 here.
2410 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
2411 call thread_from_lwp.
2412 (thread_db_update_thread_list): Rename to ...
2413 (thread_db_update_thread_list_org): ... this.
2414 (thread_db_update_thread_list): New function.
2415 (thread_db_find_thread_from_tid): Delete.
2416 (thread_db_get_ada_task_ptid): Simplify.
2417 * nat/linux-procfs.c: Include <sys/stat.h>.
2418 (linux_proc_task_list_dir_exists): New function.
2419 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
2420
2421 2015-02-20 Pedro Alves <palves@redhat.com>
2422
2423 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
2424 main LWP. Handle the case of waitpid returning 0 if we're already
2425 attached to the LWP. Don't set the LWP's last_resume_kind to
2426 resume_stop if we already knew about the LWP.
2427 (linux_nat_filter_event): Add debug logs.
2428
2429 2015-02-20 Pedro Alves <palves@redhat.com>
2430
2431 * target.h (forward_target_decr_pc_after_break): Delete
2432 declaration.
2433
2434 2015-02-20 Pedro Alves <palves@redhat.com>
2435
2436 PR threads/18006
2437 * linux-thread-db.c (thread_get_info_callback): Return early if
2438 the thread's lwp id is -1.
2439
2440 2015-02-20 Joel Brobecker <brobecker@adacore.com>
2441
2442 GDB 7.9 released.
2443
2444 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
2445
2446 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
2447 (dtrace_get_probes) Change type of variable 'dof'.
2448
2449 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
2450
2451 PR breakpoints/16812
2452 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
2453 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
2454 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
2455
2456 2015-02-19 David Taylor <dtaylor@emc.com>
2457
2458 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
2459
2460 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
2461
2462 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
2463 function.
2464 (tui_putc): Don't call tui_handle_resize_during_io.
2465 (tui_getc): Likewise.
2466 (tui_mld_getc): Likewise.
2467 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
2468 (tui_sigwinch_token): New static variable.
2469 (tui_initialize_win): Adjust documentation. Set
2470 tui_sigwinch_token.
2471 (tui_async_resize_screen): New asynchronous callback.
2472 (tui_sigwinch_handler): Adjust documentation. Asynchronously
2473 invoke tui_async_resize_screen.
2474
2475 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
2476
2477 * configure: Regenerated.
2478 * configure.ac: Use GDB_AC_TRANSFORM.
2479 * Makefile.in (aclocal_m4_deps): Added transform.m4.
2480 * acinclude.m4: sinclude transform.m4.
2481 * transform.m4: New file.
2482 (GDB_AC_TRANSFORM): New macro.
2483
2484 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2485
2486 * NEWS: Announce the support for DTrace SDT probes.
2487
2488 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2489
2490 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
2491 (amd64_dtrace_parse_probe_argument): New function.
2492 (amd64_dtrace_probe_is_enabled): Likewise.
2493 (amd64_dtrace_enable_probe): Likewise.
2494 (amd64_dtrace_disable_probe): Likewise.
2495 (amd64_linux_init_abi): Register the
2496 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
2497 `gdbarch_dtrace_disable_probe' and
2498 `gdbarch_dtrace_probe_is_enabled' hooks.
2499 (amd64_dtrace_disabled_probe_sequence_1): New constant.
2500 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
2501 (amd64_dtrace_enable_probe_sequence): Likewise.
2502 (amd64_dtrace_disable_probe_sequence): Likewise.
2503
2504 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2505
2506 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
2507 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
2508 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
2509 handle ELF files.
2510 * Makefile.in (SFILES): dtrace-probe.c added.
2511 * configure: Regenerate.
2512 * dtrace-probe.c: New file.
2513 (SHT_SUNW_dof): New constant.
2514 (dtrace_probe_type): New enum.
2515 (dtrace_probe_arg): New struct.
2516 (dtrace_probe_arg_s): New typedef.
2517 (struct dtrace_probe_enabler): New struct.
2518 (dtrace_probe_enabler_s): New typedef.
2519 (dtrace_probe): New struct.
2520 (dtrace_probe_is_linespec): New function.
2521 (dtrace_dof_sect_type): New enum.
2522 (dtrace_dof_dofh_ident): Likewise.
2523 (dtrace_dof_encoding): Likewise.
2524 (DTRACE_DOF_ENCODE_LSB): Likewise.
2525 (DTRACE_DOF_ENCODE_MSB): Likewise.
2526 (dtrace_dof_hdr): New struct.
2527 (dtrace_dof_sect): Likewise.
2528 (dtrace_dof_provider): Likewise.
2529 (dtrace_dof_probe): Likewise.
2530 (DOF_UINT): New macro.
2531 (DTRACE_DOF_PTR): Likewise.
2532 (DTRACE_DOF_SECT): Likewise.
2533 (dtrace_process_dof_probe): New function.
2534 (dtrace_process_dof): Likewise.
2535 (dtrace_build_arg_exprs): Likewise.
2536 (dtrace_get_arg): Likewise.
2537 (dtrace_get_probes): Likewise.
2538 (dtrace_get_probe_argument_count): Likewise.
2539 (dtrace_can_evaluate_probe_arguments): Likewise.
2540 (dtrace_evaluate_probe_argument): Likewise.
2541 (dtrace_compile_to_ax): Likewise.
2542 (dtrace_probe_destroy): Likewise.
2543 (dtrace_gen_info_probes_table_header): Likewise.
2544 (dtrace_gen_info_probes_table_values): Likewise.
2545 (dtrace_probe_is_enabled): Likewise.
2546 (dtrace_probe_ops): New variable.
2547 (info_probes_dtrace_command): New function.
2548 (_initialize_dtrace_probe): Likewise.
2549 (dtrace_type_name): Likewise.
2550
2551 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2552
2553 * gdbarch.sh (dtrace_parse_probe_argument): New.
2554 (dtrace_probe_is_enabled): Likewise.
2555 (dtrace_enable_probe): Likewise.
2556 (dtrace_disable_probe): Likewise.
2557 * gdbarch.c: Regenerate.
2558 * gdbarch.h: Regenerate.
2559
2560 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2561
2562 * stap-probe.c (stap_probe_ops): Add NULLs in the static
2563 stap_probe_ops for `enable_probe' and `disable_probe'.
2564 * probe.c (enable_probes_command): New function.
2565 (disable_probes_command): Likewise.
2566 (_initialize_probe): Define the cli commands `enable probe' and
2567 `disable probe'.
2568 (parse_probe_linespec): New function.
2569 (info_probes_for_ops): Use parse_probe_linespec.
2570 * probe.h (probe_ops): New hooks `enable_probe' and
2571 `disable_probe'.
2572
2573 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2574
2575 * probe.c (compute_probe_arg): Moved from stap-probe.c
2576 (compile_probe_arg): Likewise.
2577 (probe_funcs): Likewise.
2578 * stap-probe.c (compute_probe_arg): Moved to probe.c.
2579 (compile_probe_arg): Likewise.
2580 (probe_funcs): Likewise.
2581
2582 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2583
2584 * probe.c (print_ui_out_not_applicables): New function.
2585 (exists_probe_with_pops): Likewise.
2586 (info_probes_for_ops): Do not include column headers for probe
2587 types for which no probe has been actually found on any object.
2588 Also invoke `print_ui_out_not_applicables' in order to match the
2589 column rows with the header when probes of several types are
2590 listed.
2591 Print the "Type" column.
2592 * probe.h (probe_ops): Added a new probe operation `type_name'.
2593 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
2594 (stap_type_name): New function.
2595
2596 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
2597
2598 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
2599 (key_is_command_char): Delete.
2600
2601 2015-02-17 Pedro Alves <palves@redhat.com>
2602
2603 * tui/tui.c (tui_enable): Resize windows before anything
2604 might show a window.
2605
2606 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
2607
2608 PR gdb/17984
2609 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
2610 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
2611 call.
2612 * aarch64-tdep.h (tdesc_aarch64): Declare.
2613
2614 2015-02-12 Mark Wielaard <mjw@redhat.com>
2615
2616 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
2617
2618 2015-02-13 Doug Evans <dje@google.com>
2619
2620 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
2621 anonymous_namespace to is_in_anonymous for consistency with the rest
2622 of the file.
2623 (cp_lookup_bare_symbol): Fix typo in comment.
2624 (cp_search_static_and_baseclasses): Ditto.
2625 (search_symbol_list): Use vertical space in comment better.
2626 (reset_directive_searched): Ditto. Fix typo.
2627 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
2628
2629 2015-02-13 Yao Qi <yao.qi@arm.com>
2630
2631 * MAINTAINERS: Update my email address.
2632
2633 2015-02-12 Doug Evans <dje@google.com>
2634
2635 * symtab.c (completion_list_add_name): Fix memory leak.
2636
2637 2015-02-12 Doug Evans <dje@google.com>
2638
2639 * completer.c (complete_line): Remove incorrect comment.
2640
2641 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2642
2643 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
2644 (py_print_frame): Use RETURN_MASK_ERROR.
2645
2646 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2647
2648 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
2649 function comment. Wrap all function that can throw in cleanups.
2650 (gdbpy_apply_frame_filter): Wrap all function that can throw in
2651 cleanups.
2652
2653 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2654
2655 * python/py-framefilter.c (py_print_frame): Substitute goto error.
2656 Remove the error label.
2657
2658 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2659
2660 * python/py-framefilter.c (py_print_frame): Put conditional code paths
2661 with goto first, indent the former else codepath left. Put variable
2662 'elided' to a new inner block.
2663
2664 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2665
2666 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
2667
2668 2015-02-11 Pedro Alves <palves@redhat.com>
2669
2670 * xcoffread.c (within_function): Delete.
2671
2672 2015-02-11 Tom Tromey <tromey@redhat.com>
2673 Pedro Alves <palves@redhat.com>
2674
2675 * breakpoint.c (base_breakpoint_ops): Delete.
2676 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
2677 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
2678 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
2679 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
2680 * python/py-arch.c (arch_object_type): Make extern.
2681 * python/py-block.c (block_syms_iterator_object_type): Make extern.
2682 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
2683 * python/py-cmd.c (cmdpy_object_type): Make extern.
2684 * python/py-continueevent.c (continue_event_object_type)
2685 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
2686 parameter. Update all callers.
2687 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
2688 * python/py-exitedevent.c (exited_event_object_type): Make extern.
2689 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
2690 * python/py-function.c (fnpy_object_type): Make extern.
2691 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
2692 * python/py-infevents.c (call_pre_event_object_type)
2693 (inferior_call_post_event_object_type).
2694 (memory_changed_event_object_type): Make extern.
2695 * python/py-infthread.c (thread_object_type): Make extern.
2696 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
2697 * python/py-linetable.c (linetable_entry_object_type)
2698 (linetable_object_type, ltpy_iterator_object_type): Make extern.
2699 * python/py-newobjfileevent.c (new_objfile_event_object_type)
2700 (clear_objfiles_event_object_type): Make extern.
2701 * python/py-objfile.c (objfile_object_type): Make extern.
2702 * python/py-param.c (parmpy_object_type): Make extern.
2703 * python/py-progspace.c (pspace_object_type): Make extern.
2704 * python/py-signalevent.c (signal_event_object_type): Make extern.
2705 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
2706 * python/py-type.c (type_object_type, field_object_type)
2707 (type_iterator_object_type): Make extern.
2708 * python/python.c (python_extension_script_ops)
2709 (python_extension_ops): Make extern.
2710 * stap-probe.c (stap_probe_ops): Make extern.
2711
2712 2015-02-11 Pedro Alves <pedro@codesourcery.com>
2713
2714 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
2715 because the event thread is not the current thread.
2716
2717 2015-02-11 Doug Evans <xdje42@gmail.com>
2718
2719 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
2720 been initialized yet, return NULL.
2721
2722 2015-02-11 Doug Evans <dje@google.com>
2723
2724 * symfile.h (new_symfile_objfile): Delete.
2725 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
2726 All callers updated.
2727
2728 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
2729
2730 * tui/tui-io.c (tui_handle_resize_during_io): Call
2731 tui_update_gdb_sizes() after resizing the screen.
2732 * tui/tui.c (tui_enable): Resize the terminal before
2733 calling tui_update_gdb_sizes().
2734
2735 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
2736
2737 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
2738 line before printing a newline.
2739
2740 2015-02-11 Mark Wielaard <mjw@redhat.com>
2741
2742 * utils.c (producer_is_gcc): Return true or false.
2743
2744 2015-02-10 Mark Wielaard <mjw@redhat.com>
2745
2746 * utils.h (producer_is_gcc): Change return type to bool. Add major
2747 argument.
2748 * utils.c (producer_is_gcc): Likewise.
2749 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
2750 * dwarf2read.c (check_producer): Likewise.
2751
2752 2015-02-10 Pedro Alves <palves@redhat.com>
2753
2754 * infrun.c (displaced_step_fixup): Switch to the event thread
2755 before calling gdbarch_displaced_step_fixup.
2756
2757 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
2758
2759 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
2760
2761 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
2762
2763 * ada-varobj.c (ada_name_of_child): Constify parent.
2764 (ada_path_expr_of_child): Same.
2765 (ada_value_of_child): Same.
2766 (ada_type_of_child): Same.
2767 * c-varobj.c (c_is_path_expr_parent): Same.
2768 (c_describe_child): Same.
2769 (c_name_of_child): Same.
2770 (c_value_of_child): Same.
2771 (c_type_of_child): Same.
2772 (cplus_number_of_children): Same.
2773 (cplus_describe_child): Constify var.
2774 (cplus_name_of_child): Constify parent.
2775 (cplus_value_of_child): Same.
2776 (cplus_type_of_child): Same.
2777 * jv-varobj.c (java_name_of_child): Same.
2778 (java_value_of_child): Same.
2779 (java_type_of_child): Same.
2780 * varobj.c (value_of_child): Same.
2781 (varobj_default_is_path_expr_parent): Constify var, parent and return
2782 value.
2783 (varobj_get_path_expr): Constify var, modify path_expr through
2784 mutable_var.
2785 (install_new_value): Constify parent.
2786 (value_of_child): Constify parent.
2787 * varobj.h (struct varobj): Constify parent.
2788 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
2789 type_of_child.
2790 (varobj_get_path_expr): Constify var.
2791 (varobj_get_path_expr_parent): Constify var and return value.
2792
2793 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
2794
2795 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
2796 (arm_prologue_this_id): Move PC and SP limit checks to
2797 arm_prologue_unwind_stop_reason.
2798 (arm_prologue_unwind) <stop_reason> : Set to
2799 arm_prologue_unwind_stop_reason.
2800
2801 2015-02-09 Mark Wielaard <mjw@redhat.com>
2802
2803 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
2804 DW_LANG_Fortran08 as language_fortran.
2805
2806 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
2807
2808 PR remote/17946
2809 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
2810 of pointer against char.
2811
2812 2015-02-09 Mark Wielaard <mjw@redhat.com>
2813
2814 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
2815 (c_type_print_modifier): Likewise.
2816 * dwarf2read.c (read_tag_atomic_type): New function.
2817 (read_type_die_1): Handle DW_TAG_atomic_type.
2818 * gdbtypes.c (make_atomic_type): New function.
2819 (recursive_dump_type): Handle TYPE_ATOMIC.
2820 * gdbtypes.h (enum type_flag_values): Renumber.
2821 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
2822 (TYPE_ATOMIC): New macro.
2823 (make_atomic_type): Declare.
2824
2825 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2826
2827 * btrace.c (ftrace_find_call): Skip gaps.
2828 (ftrace_new_function): Initialize level.
2829 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
2830 (ftrace_new_switch): Update
2831 level computation.
2832 (ftrace_new_gap): New.
2833 (ftrace_update_function): Create new function after gap.
2834 (btrace_compute_ftrace_bts): Create gap on error.
2835 (btrace_stitch_bts): Update parameters. Clear trace if it
2836 becomes empty.
2837 (btrace_stitch_trace): Update parameters. Update callers.
2838 (btrace_clear): Reset the number of gaps.
2839 (btrace_insn_get): Return NULL if the iterator points to a gap.
2840 (btrace_insn_number): Return zero if the iterator points to a gap.
2841 (btrace_insn_end): Allow gaps at the end.
2842 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
2843 (btrace_find_insn_by_number): Assert that the found iterator does
2844 not point to a gap.
2845 (btrace_call_next, btrace_call_prev): Assert that the last function
2846 is not a gap.
2847 * btrace.h (btrace_bts_error): New.
2848 (btrace_function): Update comment.
2849 (btrace_function) <insn, insn_offset, number>: Update comment.
2850 (btrace_function) <errcode>: New.
2851 (btrace_thread_info) <ngaps>: New.
2852 (btrace_thread_info) <replay>: Update comment.
2853 (btrace_insn_get): Update comment.
2854 * record-btrace.c (btrace_ui_out_decode_error): New.
2855 (record_btrace_info): Print number of gaps.
2856 (btrace_insn_history, btrace_call_history): Call
2857 btrace_ui_out_decode_error for gaps.
2858 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
2859
2860 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2861
2862 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
2863 * nat/linux-btrace.c: (btrace_this_cpu): New.
2864 (cpu_supports_bts): Call btrace_this_cpu.
2865 (intel_supports_bts): Add cpu parameter.
2866
2867 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2868
2869 * btrace.h (btrace_insn_class): New.
2870 (btrace_insn) <size, iclass>: New.
2871 * btrace.c (ftrace_find_call): Update parameters. Update users.
2872 Use instruction classification.
2873 (ftrace_new_return): Update parameters. Update users.
2874 (ftrace_update_function): Update parameters. Update users. Use
2875 instruction classification.
2876 (ftrace_update_insns): Update parameters. Update users.
2877 (ftrace_classify_insn): New.
2878 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
2879 TRY_CATCH around call to gdb_insn_length.
2880
2881 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2882
2883 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
2884 Update parameters. Update users.
2885
2886 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2887
2888 * btrace.c (parse_xml_btrace_conf_bts): Add size.
2889 (btrace_conf_bts_attributes): New.
2890 (btrace_conf_children): Add attributes.
2891 * common/btrace-common.h (btrace_config_bts): New.
2892 (btrace_config)<bts>: New.
2893 (btrace_config): Update comment.
2894 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
2895 Use config.
2896 * features/btrace-conf.dtd: Increment version. Add size
2897 attribute to bts element.
2898 * record-btrace.c (set_record_btrace_bts_cmdlist,
2899 show_record_btrace_bts_cmdlist): New.
2900 (record_btrace_adjust_size, record_btrace_print_bts_conf,
2901 record_btrace_print_conf, cmd_set_record_btrace_bts,
2902 cmd_show_record_btrace_bts): New.
2903 (record_btrace_info): Call record_btrace_print_conf.
2904 (_initialize_record_btrace): Add commands.
2905 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
2906 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
2907 (btrace_sync_conf): Synchronize bts size.
2908 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
2909 * NEWS: Announce new commands and new packets.
2910
2911 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2912
2913 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
2914 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
2915 (x86_linux_btrace_conf): New.
2916 (x86_linux_create_target): Initialize to_btrace_conf.
2917 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
2918 Check format. Split into this and ...
2919 (linux_enable_bts): ... this.
2920 (linux_btrace_conf): New.
2921 (perf_event_skip_record): Renamed into ...
2922 (perf_event_skip_bts_record): ... this. Updated users.
2923 (linux_disable_btrace): Split into this and ...
2924 (linux_disable_bts): ... this.
2925 (linux_read_btrace): Check format.
2926 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
2927 (linux_btrace_conf): New.
2928 (btrace_target_info)<ptid>: Moved.
2929 (btrace_target_info)<conf>: New.
2930 (btrace_target_info): Split into this and ...
2931 (btrace_tinfo_bts): ... this. Updated users.
2932 * btrace.c (btrace_enable): Update parameters.
2933 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
2934 (btrace_conf_children, btrace_conf_attributes)
2935 (btrace_conf_elements): New.
2936 * btrace.h (btrace_enable): Update parameters.
2937 (btrace_conf, parse_xml_btrace_conf): New.
2938 * common/btrace-common.h (btrace_config): New.
2939 * feature/btrace-conf.dtd: New.
2940 * record-btrace.c (record_btrace_conf): New.
2941 (record_btrace_cmdlist): New.
2942 (record_btrace_enable_warn, record_btrace_open): Pass
2943 &record_btrace_conf.
2944 (record_btrace_info): Print recording format.
2945 (cmd_record_btrace_bts_start): New.
2946 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
2947 (_initialize_record_btrace): Add "record btrace bts" subcommand.
2948 Add "record bts" alias command.
2949 * remote.c (remote_state)<btrace_config>: New.
2950 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
2951 (remote_protocol_features): Add qXfer:btrace-conf:read.
2952 (remote_open_1): Call remote_btrace_reset.
2953 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
2954 (btrace_target_info)<conf>: New.
2955 (btrace_sync_conf, btrace_read_config): New.
2956 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
2957 btrace_read_conf.
2958 (remote_btrace_conf): New.
2959 (init_remote_ops): Initialize to_btrace_conf.
2960 (_initialize_remote): Add qXfer:btrace-conf packet.
2961 * target.c (target_enable_btrace): Update parameters.
2962 (target_btrace_conf): New.
2963 * target.h (target_enable_btrace): Update parameters.
2964 (target_btrace_conf): New.
2965 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
2966 (target_ops)<to_enable_btrace>: Update parameters and comment.
2967 (target_ops)<to_btrace_conf>: New.
2968 * target-delegates: Regenerate.
2969 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
2970 (target_debug_print_const_struct_btrace_target_info_p): New.
2971 * NEWS: Announce new command and new packet.
2972
2973 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2974
2975 * nat/linux-btrace.h (perf_event_buffer): New.
2976 (btrace_target_info) <buffer, size, data_head>: Replace with ...
2977 <bts>: ... this.
2978 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
2979 (perf_event_buffer_size, perf_event_buffer_begin)
2980 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
2981 Updated users.
2982 (perf_event_new_data): New.
2983
2984 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2985
2986 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
2987 * record-btrace.c (record_btrace_open): Remove call to
2988 target_supports_btrace.
2989 * remote.c (remote_supports_btrace): Update parameters.
2990 * target.c (target_supports_btrace): Update parameters.
2991 * target.h (to_supports_btrace, target_supports_btrace): Update
2992 parameters.
2993 * target-delegates.c: Regenerate.
2994 * target-debug.h (target_debug_print_enum_btrace_format): New.
2995 * nat/linux-btrace.c
2996 (kernel_supports_btrace): Rename into ...
2997 (kernel_supports_bts): ... this. Update users. Update warning text.
2998 (intel_supports_btrace): Rename into ...
2999 (intel_supports_bts): ... this. Update users.
3000 (cpu_supports_btrace): Rename into ...
3001 (cpu_supports_bts): ... this. Update users.
3002 (linux_supports_btrace): Update parameters. Split into this and ...
3003 (linux_supports_bts): ... this.
3004 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
3005
3006 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3007
3008 * Makefile.in (SFILES): Add common/btrace-common.c.
3009 (COMMON_OBS): Add common/btrace-common.o.
3010 (btrace-common.o): Add build rules.
3011 * btrace.c (parse_xml_btrace): Update parameters.
3012 (parse_xml_btrace_block): Set format field.
3013 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
3014 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
3015 (btrace_compute_ftrace): Split into this and...
3016 (btrace_compute_ftrace_bts): ...this.
3017 (btrace_stitch_trace): Split into this and...
3018 (btrace_stitch_bts): ...this.
3019 * btrace.h (parse_xml_btrace): Update parameters.
3020 (make_cleanup_btrace_data): New.
3021 * common/btrace-common.c: New.
3022 * common/btrace-common.h: Include common-defs.h.
3023 (btrace_block_s): Update comment.
3024 (btrace_format): New.
3025 (btrace_format_string): New.
3026 (btrace_data_bts): New.
3027 (btrace_data): New.
3028 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
3029 * remote.c (remote_read_btrace): Update parameters.
3030 * target.c (target_read_btrace): Update parameters.
3031 * target.h (target_read_btrace): Update parameters.
3032 (target_ops)<to_read_btrace>: Update parameters.
3033 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
3034 * target-delegates.c: Regenerate.
3035 * target-debug (target_debug_print_struct_btrace_data_p): New.
3036 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
3037 (linux_read_bts): ...this.
3038 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
3039
3040 2015-02-06 Doug Evans <dje@google.com>
3041
3042 * remote-m32r-sdi.c: Include symfile.h.
3043
3044 2015-02-06 Doug Evans <dje@google.com>
3045
3046 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
3047 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
3048 to here.
3049
3050 2015-02-06 Pedro Alves <palves@redhat.com>
3051
3052 * linux-thread-db.c (find_new_threads_callback): Add debug output.
3053
3054 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
3055
3056 PR gdb/15678
3057 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
3058 (enable_count_command): Check args for NULL value.
3059
3060 2015-02-05 Doug Evans <xdje42@gmail.com>
3061
3062 * guile/scm-frame.c: Fix spelling errors in a comment.
3063
3064 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3065
3066 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
3067 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
3068 return type.
3069
3070 2015-02-04 Pedro Alves <palves@redhat.com>
3071
3072 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
3073 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
3074 returns true.
3075 (resume_stopped_resumed_lwps): Don't check whether the thread is
3076 marked as executing.
3077 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
3078
3079 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3080
3081 * regset.h (struct regset): Add flags field.
3082 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
3083 * corelow.c (get_core_register_section): Add warning if the size
3084 exceeds the requested size and the regset does not have the
3085 REGSET_VARIABLE_SIZE flag set.
3086 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
3087 flag.
3088 * armbsd-tdep.c (armbsd_gregset): Likewise.
3089 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3090 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
3091 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
3092 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
3093
3094 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3095
3096 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
3097 For ".reg-xstate", explicitly specify the requested section size
3098 via X86_XSTATE_SIZE instead of just 0 on input and
3099 X86_XSTATE_MAX_SIZE on output.
3100 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
3101 Likewise.
3102
3103 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3104
3105 PR corefiles/17808:
3106 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
3107 function type, particularly its SIZE parameter.
3108 * gdbarch.h: Regenerate.
3109 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
3110 actual against required size using ">=" instead of "==".
3111 (amd64_collect_fpregset): Likewise.
3112 * i386-tdep.c (i386_supply_gregset): Likewise.
3113 (i386_collect_gregset): Likewise.
3114 (i386_supply_fpregset): Likewise.
3115 (i386_collect_fpregset): Likewise.
3116 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
3117 (mips_fill_gregset_wrapper): Likewise.
3118 (mips_supply_fpregset_wrapper): Likewise.
3119 (mips_fill_fpregset_wrapper): Likewise.
3120 (mips64_supply_gregset_wrapper): Likewise.
3121 (mips64_fill_gregset_wrapper): Likewise.
3122 (mips64_supply_fpregset_wrapper): Likewise.
3123 (mips64_fill_fpregset_wrapper): Likewise.
3124 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
3125 (am33_supply_fpregset_method): Likewise.
3126 (am33_collect_gregset_method): Likewise.
3127 (am33_collect_fpregset_method): Likewise.
3128
3129 2015-02-04 Doug Evans <dje@google.com>
3130 Pedro Alves <palves@redhat.com>
3131 Eli Zaretskii <eliz@gnu.org>
3132
3133 PR tui/17810
3134 * tui/tui-command.c (tui_refresh_cmd_win): New function.
3135 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
3136 * tui/tui-file.c: #include tui/tui-command.h.
3137 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
3138 (tui_file_flush): Refresh command window if stream is gdb_stdout.
3139 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
3140
3141 2015-02-04 Pedro Alves <palves@redhat.com>
3142
3143 Fix build breakage.
3144 * event-loop.c (gdb_do_one_event): Add default switch case.
3145
3146 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3147
3148 Filter out inferior gcc option -fpreprocessed.
3149 * compile/compile.c (filter_args): New function.
3150 (get_args): Use it.
3151
3152 2015-02-03 Pedro Alves <palves@redhat.com>
3153
3154 * event-loop.c: Don't declare nor define a queue type for
3155 gdb_event_p.
3156 (event_queue): Delete.
3157 (create_event, create_file_event, gdb_event_xfree)
3158 (initialize_event_loop, process_event): Delete.
3159 (gdb_do_one_event): Return as soon as one event is handled.
3160 (handle_file_event): Change prototype. Used the passed in
3161 file_handler pointer and ready_mask instead of looping over all
3162 file handlers.
3163 (gdb_wait_for_event): Update the poll/select timeouts before
3164 blocking. Run event handlers directly instead of queueing events.
3165 Return as soon as one event is handled.
3166 (struct async_event_handler_data): Delete.
3167 (invoke_async_event_handler): Delete.
3168 (check_async_event_handlers): Change return type to int. Run
3169 event handlers directly instead of queueing events. Return as
3170 soon as one event is handled.
3171 (handle_timer_event): Delete.
3172 (update_wait_timeout): New function, factored out from
3173 poll_timers.
3174 (poll_timers): Reimplement.
3175 * event-loop.h (initialize_event_loop): Delete declaration.
3176 * top.c (gdb_init): Don't call initialize_event_loop.
3177
3178 2015-02-03 Pedro Alves <palves@redhat.com>
3179
3180 * event-loop.c (clear_async_event_handler): New function.
3181 * event-loop.h (clear_async_event_handler): New declaration.
3182 * record-btrace.c (record_btrace_async): New function.
3183 (init_record_btrace_ops): Install record_btrace_async.
3184 * record-full.c (record_full_async): New function.
3185 (record_full_resume): Don't mark the async event source here.
3186 (init_record_full_ops): Install record_full_async.
3187 (record_full_core_resume): Don't mark the async event source here.
3188 (init_record_full_core_ops): Install record_full_async.
3189 * remote.c (remote_async): Mark and clear the async stop reply
3190 queue event-loop token as appropriate.
3191
3192 2015-02-03 Pedro Alves <palves@redhat.com>
3193
3194 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
3195 target_is_async_p instead of target_can_async.
3196 (linux_nat_wait): Use target_is_async_p instead of
3197 target_can_async. Don't enable async here.
3198 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
3199 target_is_async_p instead of target_can_async.
3200
3201 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
3202
3203 * varobj.h (lang_varobj_ops): Mention which return values need
3204 to be freed.
3205
3206 2015-02-02 Joel Brobecker <brobecker@adacore.com>
3207
3208 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
3209
3210 2015-02-02 Joel Brobecker <brobecker@adacore.com>
3211
3212 PR gdb/17856:
3213 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
3214 results found in the cache.
3215
3216 2015-02-02 Joel Brobecker <brobecker@adacore.com>
3217
3218 PR gdb/17854:
3219 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
3220 when allocating a new one.
3221
3222 2015-02-01 Tom Tromey <tom@tromey.com>
3223
3224 * MAINTAINERS: Remove myself.
3225
3226 2015-01-31 Doug Evans <xdje42@gmail.com>
3227
3228 * dwarf2read.c (process_structure_scope): Update setting of
3229 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
3230 * gdbtypes.c (internal_type_vptr_fieldno): New function.
3231 (set_type_vptr_fieldno): New function.
3232 (internal_type_vptr_basetype): New function.
3233 (set_type_vptr_basetype): New function.
3234 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
3235 TYPE_VPTR_BASETYPE.
3236 (allocate_cplus_struct_type): Initialize vptr_fieldno.
3237 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
3238 (print_cplus_stuff): ... moved here.
3239 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
3240 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
3241 moved to ...
3242 (struct cplus_struct_type): ... here. All uses updated.
3243 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
3244 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
3245 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
3246 * stabsread.c (read_tilde_fields): Update setting of
3247 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
3248
3249 2015-01-31 Doug Evans <xdje42@gmail.com>
3250
3251 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
3252 to self_p.
3253 (cp_print_class_member): Rename local domain to self_type.
3254 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
3255 domain_type to self_type.
3256 (set_die_type) <need_gnat_info>: Handle
3257 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
3258 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
3259 TYPE_SPECIFIC_SELF_TYPE.
3260 * gdbtypes.c (internal_type_self_type): New function.
3261 (set_type_self_type): New function.
3262 (smash_to_memberptr_type): Rename parameter domain to self_type.
3263 Update setting of TYPE_SELF_TYPE.
3264 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
3265 (smash_to_method_type): Rename parameter domain to self_type.
3266 Update setting of TYPE_SELF_TYPE.
3267 (check_stub_method): Call smash_to_method_type.
3268 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
3269 (copy_type_recursive): Ditto.
3270 * gdbtypes.h (enum type_specific_kind): New value
3271 TYPE_SPECIFIC_SELF_TYPE.
3272 (struct main_type) <type_specific>: New member self_type.
3273 (struct cplus_struct_type) <fn_field.type>: Update comment.
3274 (TYPE_SELF_TYPE): Rewrite.
3275 (internal_type_self_type, set_type_self_type): Declare.
3276 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
3277 self_type.
3278 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
3279 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
3280 TYPE_TARGET_TYPE.
3281 * stabsread.c (read_member_functions): Mark methods with
3282 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
3283 TYPE_SELF_TYPE.
3284
3285 2015-01-31 Doug Evans <xdje42@gmail.com>
3286
3287 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
3288 All uses updated.
3289
3290 2015-01-31 Doug Evans <xdje42@gmail.com>
3291
3292 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
3293 or unions. Return zero if union.
3294 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
3295 (gnuv3_rtti_type): Pass already-check_typedef'd value to
3296 gnuv3_get_vtable.
3297 (compute_vtable_size): Assert only passed structs.
3298 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
3299
3300 2015-01-31 Doug Evans <xdje42@gmail.com>
3301
3302 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
3303 kinds.
3304
3305 2015-01-31 Gary Benson <gbenson@redhat.com>
3306 Doug Evans <dje@google.com>
3307
3308 PR cli/9007
3309 PR cli/11920
3310 PR cli/15548
3311 * cli/cli-cmds.c (complete_command): Notify user if max-completions
3312 reached.
3313 * common/common-exceptions.h (enum errors)
3314 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
3315 * completer.h (get_max_completions_reached_message): New declaration.
3316 (max_completions): Likewise.
3317 (completion_tracker_t): New typedef.
3318 (new_completion_tracker): New declaration.
3319 (make_cleanup_free_completion_tracker): Likewise.
3320 (maybe_add_completion_enum): New enum.
3321 (maybe_add_completion): New declaration.
3322 (throw_max_completions_reached_error): Likewise.
3323 * completer.c (max_completions): New global variable.
3324 (new_completion_tracker): New function.
3325 (free_completion_tracker): Likewise.
3326 (make_cleanup_free_completion_tracker): Likewise.
3327 (maybe_add_completions): Likewise.
3328 (throw_max_completions_reached_error): Likewise.
3329 (complete_line): Remove duplicates and limit result to max_completions
3330 entries.
3331 (get_max_completions_reached_message): New function.
3332 (gdb_display_match_list): Handle max_completions.
3333 (_initialize_completer): New declaration and function.
3334 * symtab.c: Include completer.h.
3335 (completion_tracker): New static variable.
3336 (completion_list_add_name): Call maybe_add_completion.
3337 (default_make_symbol_completion_list_break_on_1): Renamed from
3338 default_make_symbol_completion_list_break_on. Maintain
3339 completion_tracker across calls to completion_list_add_name.
3340 (default_make_symbol_completion_list_break_on): New function.
3341 * top.c (init_main): Set rl_completion_display_matches_hook.
3342 * tui/tui-io.c: Include completer.h.
3343 (tui_old_rl_display_matches_hook): New static global.
3344 (tui_rl_display_match_list): Notify user if max-completions reached.
3345 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
3346 * NEWS (New Options): Mention set/show max-completions.
3347
3348 2015-01-31 Gary Benson <gbenson@redhat.com>
3349
3350 * symtab.c (struct add_name_data) <code>: New field.
3351 Updated comments.
3352 (add_symtab_completions): New function.
3353 (symtab_expansion_callback): Likewise.
3354 (default_make_symbol_completion_list_break_on): Set datum.code.
3355 Move minimal symbol scan before calling expand_symtabs_matching.
3356 Scan known primary symtabs for externs and statics before calling
3357 expand_symtabs_matching. Pass symtab_expansion_callback as
3358 expansion_notify argument to expand_symtabs_matching. Do not scan
3359 primary symtabs for externs and statics after calling
3360 expand_symtabs_matching.
3361
3362 2015-01-31 Gary Benson <gbenson@redhat.com>
3363
3364 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
3365 (struct quick_symbol_functions) <expand_symtabs_matching>:
3366 New argument expansion_notify. All uses updated.
3367 (expand_symtabs_matching): New argument expansion_notify.
3368 All uses updated.
3369 * symfile-debug.c (debug_qf_expand_symtabs_matching):
3370 Also print expansion notify.
3371 * symtab.c (expand_symtabs_matching_via_partial): Call
3372 expansion_notify whenever a partial symbol table is expanded.
3373 * dwarf2read.c (dw2_expand_symtabs_matching): Call
3374 expansion_notify whenever a symbol table is instantiated.
3375
3376 2015-01-31 Doug Evans <xdje42@gmail.com>
3377
3378 * cli-out.c: #include completer.h, readline/readline.h.
3379 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
3380 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
3381 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
3382 * cli-out.h (cli_display_match_list): Declare.
3383 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
3384 (ELLIPSIS_LEN): Ditto.
3385 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
3386 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
3387 (gdb_fnprint, gdb_print_filename): Ditto.
3388 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
3389 (gdb_display_match_list): Ditto.
3390 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
3391 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
3392 (mld_beep_ftype, mld_read_key_ftype): Ditto.
3393 (match_list_displayer): New struct.
3394 (gdb_display_match_list): Declare.
3395 * top.c (init_main): Set rl_completion_display_matches_hook.
3396 * tui/tui-io.c: #include completer.h.
3397 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
3398 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
3399 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
3400 (tui_mld_getc, tui_mld_read_key): Ditto.
3401 (tui_rl_display_match_list): Rewrite.
3402 (tui_handle_resize_during_io): New arg for_completion. All callers
3403 updated.
3404
3405 2015-01-31 Doug Evans <xdje42@gmail.com>
3406
3407 Add symbol lookup cache.
3408 * NEWS: Document new options and commands.
3409 * symtab.c (symbol_cache_key): New static global.
3410 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
3411 (SYMBOL_LOOKUP_FAILED): New macro.
3412 (symbol_cache_slot_state): New enum.
3413 (block_symbol_cache): New struct.
3414 (symbol_cache): New struct.
3415 (new_symbol_cache_size, symbol_cache_size): New static globals.
3416 (hash_symbol_entry, eq_symbol_entry): New functions.
3417 (symbol_cache_byte_size, resize_symbol_cache): New functions.
3418 (make_symbol_cache, free_symbol_cache): New functions.
3419 (get_symbol_cache, symbol_cache_cleanup): New function.
3420 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
3421 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
3422 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
3423 (symbol_cache_flush, symbol_cache_dump): New functions.
3424 (maintenance_print_symbol_cache): New function.
3425 (maintenance_flush_symbol_cache): New function.
3426 (symbol_cache_stats): New function.
3427 (maintenance_print_symbol_cache_statistics): New function.
3428 (symtab_new_objfile_observer): New function.
3429 (symtab_free_objfile_observer): New function.
3430 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
3431 (_initialize_symtab): Init symbol_cache_key. New parameter
3432 maint symbol-cache-size. New maint commands print symbol-cache,
3433 print symbol-cache-statistics, flush-symbol-cache.
3434 Install new_objfile, free_objfile observers.
3435
3436 2015-01-31 Joel Brobecker <brobecker@adacore.com>
3437
3438 PR symtab/17855
3439 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
3440 to end.
3441
3442 2015-01-31 Doug Evans <xdje42@gmail.com>
3443
3444 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
3445 * auto-load.c: #include ctype.h.
3446 (struct auto_load_pspace_info): Replace member loaded_scripts with
3447 new members loaded_script_files, loaded_script_texts.
3448 (auto_load_pspace_data_cleanup): Update.
3449 (init_loaded_scripts_info): Update.
3450 (get_auto_load_pspace_data_for_loading): Update.
3451 (maybe_add_script_file): Renamed from maybe_add_script. All callers
3452 updated.
3453 (maybe_add_script_text): New function.
3454 (clear_section_scripts): Update.
3455 (source_script_file, execute_script_contents): New functions.
3456 (source_section_scripts): Add support for
3457 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
3458 (print_scripts): New function.
3459 (auto_load_info_scripts): Also print inlined scripts.
3460 (maybe_print_unsupported_script_warning): Renamed from
3461 unsupported_script_warning_print. All callers updated.
3462 (maybe_print_script_not_found_warning): Renamed from
3463 script_not_found_warning_print. All callers updated.
3464 * extension-priv.h (struct extension_language_script_ops): New member
3465 objfile_script_executor.
3466 * extension.c (ext_lang_objfile_script_executor): New function.
3467 * extension.h (objfile_script_executor_func): New typedef.
3468 (ext_lang_objfile_script_executor): Declare.
3469 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
3470 * guile/guile.c (guile_extension_script_ops): Update.
3471 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
3472 * python/python.c (python_extension_script_ops): Update.
3473 (gdbpy_execute_objfile_script): New function.
3474
3475 2015-01-31 Eli Zaretskii <eliz@gnu.org>
3476
3477 * tui/tui-io.c (tui_expand_tabs): New function.
3478 (tui_puts, tui_redisplay_readline): Expand TABs into the
3479 appropriate number of spaces.
3480 * tui/tui-regs.c: Include tui-io.h.
3481 (tui_register_format): Call tui_expand_tabs to expand TABs into
3482 the appropriate number of spaces.
3483 * tui/tui-io.h: Add prototype for tui_expand_tabs.
3484
3485 2015-01-30 Doug Evans <dje@google.com>
3486
3487 * NEWS: "info source" command now display producer string if present.
3488 * source.c (source_info): Print producer string if present.
3489
3490 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3491
3492 * varobj.c (varobj_delete): Fix comment.
3493
3494 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3495
3496 * varobj.c (create_child): Modify comment.
3497
3498 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3499
3500 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
3501 parameter.
3502 (ada_name_of_variable): Same.
3503 (ada_path_expr_of_child): Same.
3504 (ada_value_of_variable): Same.
3505 (ada_value_is_changeable_p): Same.
3506 (ada_value_has_mutated): Same.
3507 * c-varobj.c (varobj_is_anonymous_child): Same.
3508 (c_is_path_expr_parent): Same.
3509 (c_number_of_children): Same.
3510 (c_name_of_variable): Same.
3511 (c_path_expr_of_child): Same.
3512 (get_type): Same.
3513 (c_value_of_variable): Same.
3514 (cplus_number_of_children): Same.
3515 (cplus_name_of_variable): Same.
3516 (cplus_path_expr_of_child): Same.
3517 (cplus_value_of_variable): Same.
3518 * jv-varobj.c (java_number_of_children): Same.
3519 (java_name_of_variable): Same.
3520 (java_path_expr_of_child): Same.
3521 (java_value_of_variable): Same.
3522 * varobj.c (number_of_children): Same.
3523 (name_of_variable): Same.
3524 (is_root_p): Same.
3525 (varobj_ensure_python_env): Same.
3526 (varobj_get_objname): Same.
3527 (varobj_get_expression): Same.
3528 (varobj_get_display_format): Same.
3529 (varobj_get_display_hint): Same.
3530 (varobj_has_more): Same.
3531 (varobj_get_thread_id): Same.
3532 (varobj_get_frozen): Same.
3533 (dynamic_varobj_has_child_method): Same.
3534 (varobj_get_gdb_type): Same.
3535 (is_path_expr_parent): Same.
3536 (varobj_default_is_path_expr_parent): Same.
3537 (varobj_get_language): Same.
3538 (varobj_get_attributes): Same.
3539 (varobj_is_dynamic_p): Same.
3540 (varobj_get_child_range): Same.
3541 (varobj_value_has_mutated): Same.
3542 (varobj_get_value_type): Same.
3543 (number_of_children): Same.
3544 (name_of_variable): Same.
3545 (check_scope): Same.
3546 (varobj_editable_p): Same.
3547 (varobj_value_is_changeable_p): Same.
3548 (varobj_floating_p): Same.
3549 (varobj_default_value_is_changeable_p): Same.
3550
3551 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3552
3553 * varobj.c (varobj_get_path_expr): Set var->path_expr.
3554 * c-varobj.c (c_path_expr_of_child): Set local var instead of
3555 child->path_expr.
3556 (cplus_path_expr_of_child): Same.
3557
3558 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3559
3560 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
3561 result.
3562 (mi_cmd_var_info_expression): Same.
3563 * varobj.c (varobj_get_expression): Mention in the comment that
3564 the result must by freed by the caller.
3565
3566 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3567
3568 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
3569 varobj_get_type.
3570 (varobj_update_one): Same.
3571 * varobj.c (update_type_if_necessary): Free curr_type_str and
3572 new_type_str.
3573 (varobj_get_type): Specify in comment that the result needs to be
3574 freed by the caller.
3575
3576 2015-01-29 Doug Evans <dje@google.com>
3577
3578 PR symtab/17890
3579 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
3580
3581 2015-01-25 Mark Wielaard <mjw@redhat.com>
3582
3583 * dwarf2read.c (checkproducer): Call producer_is_gcc.
3584 * utils.c (producer_is_gcc_ge_4): Likewise.
3585 (producer_is_gcc): New function.
3586 * utils.h (producer_is_gcc): New declaration.
3587
3588 2015-01-29 Joel Brobecker <brobecker@adacore.com>
3589
3590 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
3591 kind.
3592 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
3593 parameter by "addr_stack" parameter.
3594 (resolve_dynamic_range): Replace "addr" parameter by
3595 "stack_addr" parameter. Update function documentation.
3596 Update code accordingly.
3597 (resolve_dynamic_array, resolve_dynamic_union)
3598 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
3599 (resolve_dynamic_type): Update code, following the changes made
3600 to resolve_dynamic_type_internal's interface.
3601 * dwarf2loc.h (struct property_addr_info): New.
3602 (dwarf2_evaluate_property): Replace "address" parameter
3603 by "addr_stack" parameter. Adjust function documentation.
3604 (struct dwarf2_offset_baton): New.
3605 (struct dwarf2_property_baton): Update documentation of
3606 field "referenced_type" to be more general. New field
3607 "offset_info" in union data field.
3608 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
3609 parameter by "addr_stack" parameter. Adjust code accordingly.
3610 Add support for PROP_ADDR_OFFSET properties.
3611 * dwarf2read.c (attr_to_dynamic_prop): Add support for
3612 DW_AT_data_member_location attributes as well. Use case
3613 statements instead of if/else condition.
3614
3615 2015-01-29 Joel Brobecker <brobecker@adacore.com>
3616
3617 * ada-varobj.c (ada_varobj_get_array_number_of_children):
3618 Return zero if PARENT_VALUE is NULL and parent_type's
3619 range type is dynamic.
3620
3621 2015-01-29 Joel Brobecker <brobecker@adacore.com>
3622
3623 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
3624 nonzero if the type's subtype is dynamic.
3625 (resolve_dynamic_range): Also resolve the range's subtype.
3626
3627 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
3628
3629 Pushed by Joel Brobecker <brobecker@adacore.com>.
3630 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
3631
3632 2015-01-27 Doug Evans <dje@google.com>
3633
3634 * NEWS: Mention gdb.Objfile.username.
3635 * python/py-objfile.c (objfpy_get_username): New function.
3636 (objfile_getset): Add "username".
3637
3638 2015-01-24 Mark Wielaard <mjw@redhat.com>
3639
3640 * stack.c (return_command): Markup warning message with _.
3641
3642 2015-01-24 Doug Evans <xdje42@gmail.com>
3643
3644 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
3645
3646 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3647
3648 Fix 100x slowdown regression on DWZ files.
3649 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
3650 (struct line_header): Add offset and offset_in_dwz.
3651 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
3652 (free_line_header_voidp): New declaration.
3653 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
3654 functions.
3655 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
3656 (handle_DW_AT_stmt_list): Use line_header_hash.
3657 (free_line_header_voidp): New function.
3658 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
3659 (dwarf_decode_lines): New parameter decode_mapping, use it.
3660 (dwarf2_free_objfile): Free line_header_hash.
3661
3662 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
3663
3664 PR gdb/17416
3665 * valops.c (value_rtti_indirect_type): Catch exception thrown by
3666 value_ind.
3667
3668 2015-01-15 Mark Wielaard <mjw@redhat.com>
3669
3670 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
3671 DW_AT_noreturn.
3672 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
3673 calling_convention an 8 bit bit field.
3674 (TYPE_NO_RETURN): New macro.
3675 * infcmd.c (finish_command): Query if function does not return
3676 normally.
3677 * stack.c (return_command): Likewise.
3678
3679 2015-01-23 Pedro Alves <palves@redhat.com>
3680
3681 * linux-nat.c (linux_is_async_p): New macro.
3682 (linux_nat_is_async_p):
3683 (linux_nat_terminal_inferior): Check whether the target can async
3684 instead of whether it is already async.
3685 (linux_nat_terminal_ours): Don't check whether the target is
3686 async.
3687 (linux_async_pipe): Use linux_is_async_p.
3688
3689 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3690
3691 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
3692 '-ascending'.
3693 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
3694 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
3695 Sort tp_array using tp_array_compar.
3696 (_initialize_thread): Extend thread_apply_all_command help.
3697
3698 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3699
3700 * corelow.c (core_open): Call also thread_command.
3701 * gdbthread.h (thread_command): New prototype moved from ...
3702 * thread.c (thread_command): ... here.
3703 (thread_command): Make it global.
3704
3705 2015-01-22 Pedro Alves <palves@redhat.com>
3706
3707 * configure.ac [*mingw32*]: Check $curses_found instead of
3708 $prefer_curses.
3709 * configure: Regenerate.
3710 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
3711 HAVE_NCURSES_NCURSES_H checks.
3712
3713 2015-01-22 Eli Zaretskii <eliz@gnu.org>
3714
3715 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
3716 fails with the 1st arg NULL, try again with "unknown". Don't test
3717 the "cup" capability: it isn't supported by the Windows port of
3718 ncurses, but the Windows console driver is still capable of
3719 supporting TUI.
3720
3721 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3722
3723 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
3724
3725 2015-01-22 Eli Zaretskii <eliz@gnu.org>
3726
3727 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
3728 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
3729 reason that "make TAGS" is broken.
3730
3731 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
3732
3733 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
3734 and check additional store instructions.
3735
3736 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
3737
3738 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
3739
3740 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
3741
3742 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
3743 ppc_canonicalize_syscall, ppc_linux_syscall_record,
3744 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
3745 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
3746 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
3747 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
3748 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
3749 ppc_process_record_op19, ppc_process_record_op31,
3750 ppc_process_record_op59, ppc_process_record_op60,
3751 ppc_process_record_op63): Likewise.
3752
3753 2015-01-20 Joel Brobecker <brobecker@adacore.com>
3754
3755 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
3756 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
3757 strerror.
3758
3759 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
3760
3761 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
3762 ppc_process_record_op31, ppc_process_record_op59,
3763 ppc_process_record_op60, ppc_process_record_op63,
3764 ppc_process_record): Fix -Wformat warning.
3765 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
3766 Remove unused variables.
3767
3768 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
3769
3770 * MAINTAINERS (Write After Approval): Add "Chen Gang".
3771
3772 2015-01-19 Eli Zaretskii <eliz@gnu.org>
3773
3774 * configure.ac [*mingw32*]: Only add windows-termcap.o to
3775 CONFIG_OBS if not building with a curses library.
3776 * configure: Regenerate.
3777
3778 * windows-termcap.c: Include defs.h. Make the whole body empty if
3779 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
3780 HAVE_NCURSES_NCURSES_H is defined.
3781
3782 2015-01-19 Joel Brobecker <brobecker@adacore.com>
3783
3784 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
3785 from end of line to start of next line.
3786
3787 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
3788
3789 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
3790 Scan PLT stub backward for reverse debugging.
3791 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
3792
3793 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
3794 Ulrich Weigand <uweigand@de.ibm.com>
3795
3796 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
3797 gdb_target_obs.
3798 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
3799 record.
3800 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
3801 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
3802 (ppc_linux_init_abi): Set process_record, process_record_signal.
3803 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
3804 ppc_linux_record_tdep to gdbarch_tdep.
3805 (ppc_process_record): New declaration.
3806 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
3807 ppc_process_record_op19, ppc_process_record_op31,
3808 ppc_process_record_op59, ppc_process_record_op60,
3809 ppc_process_record_op63, ppc_process_record): New functions.
3810
3811 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
3812
3813 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
3814 rs6000_in_function_epilogue_frame_p and add an argument
3815 for frame_info.
3816 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
3817 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
3818 New functions.
3819 (rs6000_epilogue_frame_unwind): New.
3820 (rs6000_gdbarch_init): Append epilogue unwinder.
3821
3822 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
3823
3824 * nat/linux-personality.c: Replace "#ifndef
3825 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
3826 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
3827 systems.
3828
3829 2015-01-16 Eli Zaretskii <eliz@gnu.org>
3830
3831 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
3832 functions.
3833 (_initialize_tui_win) <border-kind, border-mode>:
3834 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
3835 (tui_set_tab_width_command): Fix the commentary.
3836
3837 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
3838
3839 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
3840 Doc fix.
3841 (tui_set_tab_width_command): Delete and recreate the source and
3842 the disassembly windows, to show the effect of the changed tab
3843 size immediately.
3844
3845 * tui/tui-data.h (LINE_PREFIX): Make shorter
3846 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
3847 "Thread NNNNN.XXXX" thread ID notation on Windows.
3848
3849 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3850
3851 Fix gcc-5 compilation.
3852 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
3853
3854 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
3855
3856 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
3857 (linux-personality.o): New rule.
3858 * common/common-defs.h: Include <stdint.h>.
3859 * config/aarch64/linux.mh (NATDEPFILES): Include
3860 linux-personality.o.
3861 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3862 * config/arm/linux.mh (NATDEPFILES): Likewise.
3863 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3864 * config/i386/linux.mh (NATDEPFILES): Likewise.
3865 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3866 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3867 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3868 * config/mips/linux.mh (NATDEPFILES): Likewise.
3869 * config/pa/linux.mh (NATDEPFILES): Likewise.
3870 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3871 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3872 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3873 * config/s390/linux.mh (NATDEPFILES): Likewise.
3874 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3875 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3876 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3877 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3878 * defs.h: Remove #include <stdint.h> (moved to
3879 common/common-defs.h).
3880 * linux-nat.c: Include nat/linux-personality.h. Remove #include
3881 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
3882 nat/linux-personality.c).
3883 (linux_nat_create_inferior): Remove code to disable address space
3884 randomization (moved to nat/linux-personality.c). Create cleanup
3885 to disable address space randomization.
3886 * nat/linux-personality.c: New file.
3887 * nat/linux-personality.h: Likewise.
3888
3889 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
3890
3891 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
3892 common/posix-strerror.c.
3893 (posix-strerror.o): New rule.
3894 (mingw-strerror.o): Likewise.
3895 * common/common-utils.h (safe_strerror): Move prototype to here,
3896 from utils.h.
3897 * common/common.host: New file.
3898 * common/mingw-strerror.c: Likewise.
3899 * common/posix-strerror.c: Likewise.
3900 * configure: Regenerated.
3901 * configure.ac: Source common/common.host. Add variable
3902 common_host_obs to gdb_host_obs.
3903 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
3904 gdb/common/posix-strerror.c when warning about the use of
3905 strerror.
3906 * mingw-hdep.c (safe_strerror): Remove definition; move it to
3907 common/mingw-strerror.c.
3908 * posix-hdep.c (safe_strerror): Remove definition; move it to
3909 common/posix-hdep.c.
3910 * utils.h (safe_strerror): Remove prototype; move to
3911 common/common-utils.h.
3912
3913 2015-01-15 Joel Brobecker <brobecker@adacore.com>
3914
3915 GDB 7.8.2 released.
3916
3917 2015-01-15 Joel Brobecker <brobecker@adacore.com>
3918
3919 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
3920 ___XA type if the array has already been fixed.
3921
3922 2015-01-14 Yao Qi <yao@codesourcery.com>
3923
3924 * Makefile.in (ppc-linux.o): New rule.
3925 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
3926 * configure.ac: AC_CHECK_FUNCS(getauxval).
3927 * config.in: Re-generated.
3928 * configure: Re-generated.
3929 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
3930 Declare.
3931 * nat/ppc-linux.c: New file.
3932 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
3933 Call ppc64_64bit_inferior_p.
3934
3935 2015-01-14 Yao Qi <yao@codesourcery.com>
3936
3937 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
3938 nat/ppc-linux.h.
3939 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
3940 (PPC_FEATURE_HAS_DFP): Likewise.
3941 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
3942 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
3943 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
3944 Include "nat/ppc-linux.h".
3945 * nat/ppc-linux.h: New file.
3946 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
3947
3948 2015-01-14 Pedro Alves <palves@redhat.com>
3949
3950 PR gdb/17525
3951 * breakpoint.c: Include "interps.h".
3952 (bpstat_do_actions_1): Also check whether the interpreter is
3953 async.
3954
3955 2015-01-14 Pedro Alves <palves@redhat.com>
3956
3957 PR cli/17828
3958 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
3959 reinstall if the interpreter is sync.
3960
3961 2015-01-13 Doug Evans <dje@google.com>
3962
3963 * objfiles.c (objfile_filename): New function.
3964 * objfiles.h (objfile_filename): Declare it.
3965 (objfile_name): Add function comment.
3966 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
3967 bfd file name (which may be realpath'd), and the original name.
3968
3969 2015-01-13 Joel Brobecker <brobecker@adacore.com>
3970
3971 * NEWS: Create a new section for the next release branch.
3972 Rename the section of the current branch, now that it has
3973 been cut.
3974
3975 2015-01-13 Joel Brobecker <brobecker@adacore.com>
3976
3977 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
3978 * version.in: Bump version to 7.9.50.DATE-cvs.
3979
3980 2015-01-13 Joel Brobecker <brobecker@adacore.com>
3981
3982 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
3983 Remove trailing new-line in argument of call to warning.
3984
3985 2015-01-13 Joel Brobecker <brobecker@adacore.com>
3986
3987 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
3988 new-line in argument of call to "warning".
3989
3990 2015-01-13 Joel Brobecker <brobecker@adacore.com>
3991
3992 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
3993 in static block, then try searching for primitive types.
3994
3995 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
3996
3997 * top.h (gdb_add_history): Declare.
3998 * top.c (command_count): New variable.
3999 (gdb_add_history): New function.
4000 (gdb_safe_append_history): New static function.
4001 (quit_force): Call it.
4002 (command_line_input): Use gdb_add_history instead of
4003 add_history.
4004 * event-top.c (command_line_handler): Likewise.
4005
4006 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
4007
4008 PR gdb/17046
4009 * darwin-nat.c: Replace <machine/setjmp.h> #include by
4010 <setjmp.h> #include.
4011
4012 2015-01-11 Doug Evans <xdje42@gmail.com>
4013
4014 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
4015
4016 2015-01-11 Doug Evans <xdje42@gmail.com>
4017
4018 PR gdb/15830
4019 * NEWS: The "maint demangle" command is renamed as "demangle".
4020 * demangle.c: #include cli/cli-utils.h, language.h.
4021 (demangle_command): New function.
4022 (_initialize_demangle): Add new command "demangle".
4023 * maint.c (maintenance_demangle): Stub out.
4024 (_initialize_maint_cmds): Update help text for "maint demangle",
4025 and mark as deprecated.
4026
4027 2015-01-11 Mark Kettenis <kettenis@gnu.org>
4028
4029 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
4030 inferior_thread is a function.
4031
4032 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
4033
4034 * Makefile.in (.y.c): Don't munge yacc's #line
4035 directives.
4036
4037 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
4038
4039 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
4040 to prompt for input.
4041 * tui/tui-hooks.c (tui_query_hook): Remove.
4042 (tui_install_hooks): Don't set deprecated_query_hook.
4043 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
4044 height calculation. Always update the command window's cur_line.
4045
4046 2015-01-09 Pedro Alves <palves@redhat.com>
4047
4048 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
4049 function.
4050 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
4051 declaration.
4052 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
4053 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
4054 stop_reason.
4055 (check_stopped_by_watchpoint): New function.
4056 (save_sigtrap): Reimplement.
4057 (linux_nat_stopped_by_watchpoint): Adjust.
4058 (linux_nat_lp_status_is_event): Delete.
4059 (stop_wait_callback): Only call save_sigtrap after storing the
4060 pending status.
4061 (status_callback): If the thread had been stopped for a breakpoint
4062 that has since been removed, discard the event and resume the LWP.
4063 (count_events_callback, select_event_lwp_callback): Use
4064 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
4065 (cancel_breakpoint): Rename to ...
4066 (check_stopped_by_breakpoint): ... this. Record whether the LWP
4067 stopped for a software breakpoint or hardware breakpoint.
4068 (select_event_lwp): Only give preference to the stepping LWP in
4069 all-stop mode. Adjust comments.
4070 (stop_and_resume_callback): Remove references to new_pending_p.
4071 (linux_nat_filter_event): Likewise. Leave exit events of the
4072 leader thread pending here. Handle signal short circuiting here.
4073 Only call save_sigtrap after storing the pending waitstatus.
4074 (linux_nat_wait_1): Remove 'retry' label. Remove references to
4075 new_pending. Don't handle leaving events the caller is not
4076 interested in pending here, nor handle signal short-circuiting
4077 here. Also give equal priority to all LWPs that have had events
4078 in non-stop mode. If reporting a software breakpoint event,
4079 unadjust the LWP's PC.
4080 * linux-nat.h (enum lwp_stop_reason): New.
4081 (struct lwp_info) <stop_pc>: New field.
4082 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
4083 (struct lwp_info) <stop_reason>: New field.
4084 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
4085
4086 2015-01-09 Pedro Alves <palves@redhat.com>
4087
4088 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
4089 Set the LWP's 'resumed' flag.
4090
4091 2015-01-09 Pedro Alves <palves@redhat.com>
4092
4093 * linux-nat.c (linux_resume_one_lwp): New function.
4094 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
4095 (linux_nat_resume): Use lwp_status_pending_p and
4096 linux_resume_one_lwp.
4097 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
4098 (linux_handle_extended_wait): Use linux_resume_one_lwp.
4099 (status_callback, running_callback): Use lwp_status_pending_p.
4100 (lwp_status_pending_p): New function.
4101 (stop_and_resume_callback): Use lwp_status_pending_p.
4102 (linux_nat_filter_event): Use linux_resume_one_lwp.
4103 (linux_nat_wait_1): Always use status_callback to look for an LWP
4104 with a pending status. Use linux_resume_one_lwp.
4105 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
4106 linux_resume_one_lwp.
4107
4108 2015-01-09 Pedro Alves <palves@redhat.com>
4109
4110 * breakpoint.c (bp_location_inserted_here_p): New function,
4111 factored out from ...
4112 (breakpoint_inserted_here_p): ... here. Use
4113 ALL_BP_LOCATIONS_AT_ADDR.
4114 (software_breakpoint_inserted_here_p): Use
4115 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
4116
4117 2014-01-09 Pedro Alves <palves@redhat.com>
4118
4119 Skip enabling event reporting if the kernel supports
4120 PTRACE_EVENT_CLONE.
4121 * linux-thread-db.c: Include "nat/linux-ptrace.h".
4122 (thread_db_use_events): New function.
4123 (try_thread_db_load_1): Check thread_db_use_events before enabling
4124 event reporting.
4125 (update_thread_state): New function.
4126 (attach_thread): Use it. Check thread_db_use_events before
4127 enabling event reporting.
4128 (thread_db_detach): Check thread_db_use_events before disabling
4129 event reporting.
4130 (find_new_threads_callback): Check thread_db_use_events before
4131 enabling event reporting. Update the thread's state if not using
4132 libthread_db events.
4133
4134 2015-01-09 Pedro Alves <palves@redhat.com>
4135
4136 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
4137 about to wait for is > 0.
4138 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
4139 the kernel thread ID is -1.
4140
4141 2015-01-09 Pedro Alves <palves@redhat.com>
4142
4143 * linux-nat.c (attach_proc_task_lwp_callback): New function.
4144 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
4145 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
4146 ptrace option flags.
4147 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
4148 field.
4149 * nat/linux-procfs.c: Include <dirent.h>.
4150 (linux_proc_get_int): New parameter "warn". Handle it.
4151 (linux_proc_get_tgid): Adjust.
4152 (linux_proc_get_tracerpid): Rename to ...
4153 (linux_proc_get_tracerpid_nowarn): ... this.
4154 (linux_proc_pid_get_state): New function, factored out from
4155 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
4156 and handle it.
4157 (linux_proc_pid_is_gone): New function.
4158 (linux_proc_pid_is_stopped): Adjust.
4159 (linux_proc_pid_is_zombie_maybe_warn)
4160 (linux_proc_pid_is_zombie_nowarn): New functions.
4161 (linux_proc_pid_is_zombie): Use
4162 linux_proc_pid_is_zombie_maybe_warn.
4163 (linux_proc_attach_tgid_threads): New function.
4164 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
4165 (linux_proc_get_tracerpid): Rename to ...
4166 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
4167 (linux_proc_pid_is_gone): New declaration.
4168 (linux_proc_pid_is_zombie): Update comment.
4169 (linux_proc_pid_is_zombie_nowarn): New declaration.
4170 (linux_proc_attach_lwp_func): New typedef.
4171 (linux_proc_attach_tgid_threads): New declaration.
4172 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
4173 use nowarn functions.
4174 (linux_ptrace_attach_fail_reason_string): Move here from
4175 gdbserver/linux-low.c and rename.
4176 (ptrace_supports_feature): If the current ptrace options are not
4177 known yet, check them now, instead of asserting.
4178 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
4179 Declare.
4180
4181 2015-01-09 Pedro Alves <palves@redhat.com>
4182
4183 * linux-thread-db.c (thread_db_find_new_threads_silently)
4184 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
4185 (find_new_threads_once): Print debug output on gdb_stdlog.
4186
4187 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
4188 Pedro Alves <palves@redhat.com>
4189
4190 * compile/compile.c: Include "gdb_wait.h".
4191 (do_rmdir): Check return value, and free 'zap'.
4192
4193 2015-01-08 Pedro Alves <palves@redhat.com>
4194 Yao Qi <yao@codesourcery.com>
4195
4196 * dwarf2loc.c (indirect_pieced_value): Don't call
4197 gdb_sign_extend. Call extract_signed_integer instead.
4198 * utils.c (gdb_sign_extend): Remove.
4199 * utils.h (gdb_sign_extend): Remove declaration.
4200
4201 2015-01-07 Pierre Muller <muller@sourceware.org>
4202
4203 PR symtab/17811
4204 * stabsread.c (define_symbol): Set language for C++ special symbols.
4205
4206 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
4207
4208 * inflow.c (initial_gdb_ttystate): Tweak comment.
4209
4210 2015-01-07 Joel Brobecker <brobecker@adacore.com>
4211
4212 * inflow.c (set_initial_gdb_ttystate): Add empty line after
4213 comment documenting function.
4214
4215 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
4216
4217 * terminal.h (set_initial_gdb_ttystate): Declare.
4218 * inflow.c (initial_gdb_ttystate): New static variable.
4219 (set_initial_gdb_ttystate): New setter.
4220 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
4221 instead of our current terminal state.
4222 * top.c (gdb_init): Call set_initial_gdb_ttystate.
4223
4224 2015-01-07 Joel Brobecker <brobecker@adacore.com>
4225
4226 * guile/scm-type.c (tyscm_array_1): Add comment.
4227 * python/py-type.c (typy_array_1): Add comment.
4228
4229 2015-01-06 Joel Brobecker <brobecker@adacore.com>
4230
4231 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
4232 error if N2 is equal to N1 - 1.
4233
4234 2015-01-06 Joel Brobecker <brobecker@adacore.com>
4235
4236 * python/py-type.c (typy_array_1): Do not raise negative-length
4237 exception if N2 is equal to N1 - 1.
4238
4239 2015-01-03 Doug Evans <xdje42@gmail.com>
4240
4241 * c-exp.y: Whitespace cleanup.
4242 (classify_inner_name): Remove extra ;.
4243
4244 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
4245
4246 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
4247 offset signed.
4248
4249 2015-01-02 Doug Evans <dje@google.com>
4250
4251 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
4252
4253 2015-01-02 Doug Evans <dje@google.com>
4254
4255 * symtab.h (struct symbol): Fix typo in comment.
4256
4257 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4258
4259 Update year range in copyright notice of all files.
4260
4261 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4262
4263 * top.c (print_gdb_version): Update copyright year to 2015.
4264
4265 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4266
4267 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
4268
4269 For older changes see ChangeLog-2014.
4270 \f
4271 Local Variables:
4272 mode: change-log
4273 left-margin: 8
4274 fill-column: 74
4275 version-control: never
4276 coding: utf-8
4277 End: