Implement remote_bfd_iovec_stat
[binutils-gdb.git] / gdb / ChangeLog
1 2015-03-11 Gary Benson <gbenson@redhat.com>
2
3 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
4 * remote-fileio.c (remote_fileio_to_host_uint): New function.
5 (remote_fileio_to_host_ulong): Likewise.
6 (remote_fileio_to_host_mode): Likewise.
7 (remote_fileio_to_host_time): Likewise.
8 (remote_fileio_to_host_stat): Likewise.
9 * remote.c (PACKET_vFile_fstat): New enum value.
10 (remote_protocol_features): Register the "vFile:fstat" feature.
11 (remote_hostio_fstat): New function.
12 (remote_bfd_iovec_stat): Use the above.
13 (_initialize_remote): Register new "set/show remote
14 hostio-fstat-packet" command.
15 * symfile.c (separate_debug_file_exists): Update comment.
16 * NEWS: Announce new vFile:fstat packet.
17
18 2015-03-11 Gary Benson <gbenson@redhat.com>
19
20 * common/common-remote-fileio.h: New file.
21 * common/common-remote-fileio.c: Likewise.
22 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
23 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
24 (COMMON_OBS): Add common-remote-fileio.o.
25 (common-remote-fileio.o): New rule.
26 * remote-fileio.h (common-remote-fileio.h): New include.
27 * remote-fileio.c (gdb/fileio.h): Do not include.
28 (remote_fileio_to_be): Moved to common-remote-fileio.h.
29 (remote_fileio_to_fio_uint): Likewise.
30 (remote_fileio_to_fio_time): Likewise.
31 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
32 (remote_fileio_to_fio_mode): Likewise.
33 (remote_fileio_to_fio_ulong): Likewise.
34 (remote_fileio_to_fio_stat): Likewise.
35
36 2015-03-11 Andy Wingo <wingo@igalia.com>
37
38 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
39 we were checking the cached type, not the cached dynamic type.
40
41 2015-03-11 Andy Wingo <wingo@igalia.com>
42
43 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
44 other strings, as these are on the GC'd heap, and will be
45 collected along with the smob.
46
47 2015-03-11 Andy Wingo <wingo@igalia.com>
48
49 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
50 (objfile_functions): Bind gdbscm_objfile_progspace to
51 objfile-progspace.
52 * guile/lib/gdb.scm: Add objfile-progspace to exports.
53
54 2015-03-11 Andy Wingo <wingo@igalia.com>
55
56 * guile/guile.c (_initialize_guile): Disable automatic
57 finalization, if Guile offers us that possibility.
58 * guile/guile.c (call_initialize_gdb_module):
59 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
60 finalizers in appropriate places.
61 * configure.ac (AC_TRY_LIBGUILE): Add a check for
62 scm_set_automatic_finalization_enabled.
63 * configure: Regenerated.
64
65 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
66
67 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
68 SAL, if possible.
69
70 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
71
72 * s390-linux-nat.c (struct arch_lwp_info): New.
73 (s390_fix_watch_points): Rename to...
74 (s390_prepare_to_resume): ...this. Skip the PER info update
75 unless the watch points have changed.
76 (s390_refresh_per_info, s390_new_thread): New functions.
77 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
78 s390_fix_watch_points.
79 (s390_remove_watchpoint): Likewise.
80 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
81 Register s390_prepare_to_resume.
82
83 2015-03-09 Pedro Alves <palves@redhat.com>
84
85 Revert:
86 2015-03-07 Pedro Alves <palves@redhat.com>
87 * common/gdb_socket.h: New file.
88 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
89 sys/socket.h.
90 (net_open): Use union gdb_sockaddr_u.
91
92 2015-03-07 Pedro Alves <palves@redhat.com>
93
94 * configure.ac (build_warnings): Move -Wmissing-prototypes
95 -Wdeclaration-after-statement -Wmissing-parameter-type
96 -Wold-style-declaration -Wold-style-definition to the C-specific
97 set.
98 * configure: Regenerate.
99
100 2015-03-07 Pedro Alves <palves@redhat.com>
101
102 * common/gdb_socket.h: New file.
103 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
104 sys/socket.h.
105 (net_open): Use union gdb_sockaddr_u.
106
107 2015-03-07 Pedro Alves <palves@redhat.com>
108
109 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
110 (exceptions_state_mc_action_iter)
111 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
112 Don't define.
113 [__cplusplus] (try_scope_depth): New global.
114 [__cplusplus] (exception_try_scope_entry)
115 (exception_try_scope_exit, gdb_exception_sliced_copy)
116 (exception_rethrow): New functions.
117 (throw_exception): In C++ mode, throw
118 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
119 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
120 (throw_it): In C++ mode, use try_scope_depth.
121 * common/common-exceptions.h [!__cplusplus]
122 (exceptions_state_mc_action_iter)
123 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
124 Don't declare.
125 [__cplusplus] (exception_try_scope_entry)
126 (exception_try_scope_exit, exception_rethrow): Declare.
127 [__cplusplus] (struct exception_try_scope): New struct.
128 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
129 C++ exceptions.
130 (struct gdb_exception_RETURN_MASK_ALL)
131 (struct gdb_exception_RETURN_MASK_ERROR)
132 (struct gdb_exception_RETURN_MASK_QUIT): New types.
133
134 2015-03-07 Pedro Alves <palves@redhat.com>
135
136 * main.c (handle_command_errors): Remove volatile qualifier from
137 parameter.
138
139 2015-03-07 Pedro Alves <palves@redhat.com>
140
141 * breakpoint.c (save_breakpoints): Adjust to avoid code between
142 TRY and CATCH.
143 * gdbtypes.c (safe_parse_type): Remove empty line.
144 (types_deeply_equal):
145 * guile/scm-frame.c (gdbscm_frame_name):
146 * linux-thread-db.c (find_new_threads_once):
147 * python/py-breakpoint.c (bppy_get_commands):
148 * record-btrace.c (record_btrace_insert_breakpoint)
149 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
150 (record_btrace_start_replaying): Adjust to avoid code between TRY
151 and CATCH.
152
153 2015-03-07 Pedro Alves <palves@redhat.com>
154
155 * common/common-exceptions.c (struct catcher) <exception>: No
156 longer a pointer to volatile exception. Now an exception value.
157 <mask>: Delete field.
158 (exceptions_state_mc_init): Remove all parameters. Adjust.
159 (exceptions_state_mc): No longer pop the catcher here.
160 (exceptions_state_mc_catch): New function.
161 (throw_exception): Adjust.
162 * common/common-exceptions.h (exceptions_state_mc_init): Remove
163 all parameters.
164 (exceptions_state_mc_catch): Declare.
165 (TRY_CATCH): Rename to ...
166 (TRY): ... this. Remove EXCEPTION and MASK parameters.
167 (CATCH, END_CATCH): New.
168 All callers adjusted.
169
170 2015-03-07 Tom Tromey <tromey@redhat.com>
171
172 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
173
174 2015-03-07 Pedro Alves <palves@redhat.com>
175
176 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
177 (amd64_epilogue_frame_cache): Normal exception handling code.
178 * break-catch-throw.c (check_status_exception_catchpoint)
179 (re_set_exception_catchpoint): Ditto.
180 * cli/cli-interp.c (safe_execute_command):
181 * cli/cli-script.c (script_from_file): Ditto.
182 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
183 Ditto.
184 * compile/compile-object-run.c (compile_object_run): Ditto.
185 * cp-abi.c (baseclass_offset): Ditto.
186 * cp-valprint.c (cp_print_value): Ditto.
187 * exceptions.c (catch_exceptions_with_msg):
188 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
189 * frame.c (get_frame_address_in_block_if_available): Ditto.
190 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
191 (i386_sigtramp_frame_cache): Ditto.
192 * infcmd.c (post_create_inferior): Ditto.
193 * linespec.c (parse_linespec, find_linespec_symbols):
194 * p-valprint.c (pascal_object_print_value): Ditto.
195 * parse.c (parse_expression_for_completion): Ditto.
196 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
197 * remote.c (remote_get_noisy_reply): Ditto.
198 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
199 * solib-svr4.c (solib_svr4_r_map): Ditto.
200
201 2015-03-06 Gary Benson <gbenson@redhat.com>
202
203 * common/common-utils.h (startswith): New inline function.
204 All places where this logic was used updated to use the above.
205
206 2015-03-05 Pedro Alves <palves@redhat.com>
207
208 PR gdb/18002
209 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
210 after reading the breakpoint's shadow memory.
211
212 2015-03-05 Mark Kettenis <kettenis@gnu.org>
213
214 * hppabsd-nat.c: Remove file.
215 * hppaobsd-nat.c: New file.
216 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
217 hppaobsd-nat.c.
218 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
219 hppaobsd-nat.o.
220
221 2015-03-04 Pedro Alves <palves@redhat.com>
222
223 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
224 (target_decr_pc_after_break): Delete declaration.
225 * target.c (default_target_decr_pc_after_break)
226 (target_decr_pc_after_break): Delete.
227 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
228 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
229 * linux-thread-db.c (check_event): Likewise.
230 * infrun.c (adjust_pc_after_break): Likewise.
231 * darwin-nat.c (cancel_breakpoint): Likewise.
232 * aix-thread.c (aix_thread_wait): Likewise.
233 * target-delegates.c: Regenerate.
234
235 2015-03-04 Pedro Alves <palves@redhat.com>
236
237 * linux-nat.c (save_sigtrap): Check for breakpoints before
238 checking watchpoints.
239 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
240 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
241 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
242 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
243 (linux_nat_stopped_by_sw_breakpoint)
244 (linux_nat_supports_stopped_by_sw_breakpoint)
245 (linux_nat_stopped_by_hw_breakpoint)
246 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
247 (linux_nat_wait_1): Don't re-increment the PC if relying on
248 SIGTRAP's siginfo->si_code.
249 (linux_nat_add_target): Install new target methods.
250 * linux-thread-db.c (check_event): Don't account for breakpoint PC
251 offset if the target already adjusted the PC.
252 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
253 (GDB_ARCH_TRAP_BRKPT): New.
254 (TRAP_HWBKPT): Define if not already defined.
255
256 2015-03-04 Pedro Alves <palves@redhat.com>
257
258 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
259 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
260 Delete field.
261 <stop_reason>: New field.
262 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
263 (packet_set_cmd_state): New function.
264 (remote_protocol_features): Register the "swbreak" and "hwbreak"
265 features.
266 (remote_query_supported): If not disabled with the corresponding
267 "set remote foo-packet" command, report support for the swbreak
268 and hwbreak features.
269 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
270 field.
271 <stop_reason>: New field.
272 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
273 (remote_wait_as): Adjust.
274 (remote_stopped_by_sw_breakpoint)
275 (remote_supports_stopped_by_sw_breakpoint)
276 (remote_stopped_by_hw_breakpoint)
277 (remote_supports_stopped_by_hw_breakpoint): New functions.
278 (remote_stopped_by_watchpoint): New function.
279 (init_remote_ops): Install them.
280 (_initialize_remote): Register new "set/show remote
281 swbreak-feature-packet" and "set/show remote
282 swbreak-feature-packet" commands.
283
284 2015-03-04 Pedro Alves <palves@redhat.com>
285
286 * btrace.h: Include target/waitstatus.h.
287 (struct btrace_thread_info) <stop_reason>: New field.
288 * record-btrace.c (record_btrace_step_thread): Use
289 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
290 (record_btrace_decr_pc_after_break): Delete.
291 (record_btrace_stopped_by_sw_breakpoint)
292 (record_btrace_supports_stopped_by_sw_breakpoint)
293 (record_btrace_stopped_by_hw_breakpoint)
294 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
295 (init_record_btrace_ops): Install them.
296 * record-full.c (record_full_hw_watchpoint): Delete and replace
297 with ...
298 (record_full_stop_reason): ... this throughout.
299 (record_full_exec_insn): Adjust.
300 (record_full_wait_1): Adjust. No longer re-increment the PC.
301 (record_full_wait_1): Adjust. Use
302 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
303 (record_full_stopped_by_watchpoint): Adjust.
304 (record_full_stopped_by_sw_breakpoint)
305 (record_full_supports_stopped_by_sw_breakpoint)
306 (record_full_supports_stopped_by_sw_breakpoint)
307 (record_full_stopped_by_hw_breakpoint)
308 (record_full_supports_stopped_by_hw_breakpoint): New functions.
309 (init_record_full_ops, init_record_full_core_ops): Install them.
310 * record.c (record_check_stopped_by_breakpoint): New function.
311 * record.h: Include target/waitstatus.h.
312 (record_check_stopped_by_breakpoint): New declaration.
313
314 2015-03-04 Pedro Alves <palves@redhat.com>
315
316 enum lwp_stop_reason -> enum target_stop_reason
317 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
318 (linux_nat_stopped_by_watchpoint, status_callback)
319 (linux_nat_wait_1): Adjust.
320 * linux-nat.h (enum lwp_stop_reason): Delete.
321 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
322 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
323 * target/waitstatus.h (enum target_stop_reason): New.
324
325 2015-03-04 Pedro Alves <palves@redhat.com>
326
327 * breakpoint.c (need_moribund_for_location_type): New function.
328 (bpstat_stop_status): Don't skipping checking moribund locations
329 of breakpoint types which the target tell caused a stop.
330 (program_breakpoint_here_p): New function, factored out from ...
331 (bp_loc_is_permanent): ... this.
332 (update_global_location_list): Don't create a moribund location if
333 the target supports reporting stops of the type of the removed
334 breakpoint.
335 * breakpoint.h (program_breakpoint_here_p): New declaration.
336 * infrun.c (adjust_pc_after_break): Return early if the target has
337 already adjusted the PC. Add comments.
338 (handle_signal_stop): If nothing explains a signal, and the target
339 tells us the stop was caused by a software breakpoint, check if
340 there's a breakpoint instruction in the memory. If so, adjust the
341 PC before presenting the stop to the user. Otherwise, ignore the
342 trap. If nothing explains a signal, and the target tells us the
343 stop was caused by a hardware breakpoint, ignore the trap.
344 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
345 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
346 to_supports_stopped_by_hw_breakpoint>: New fields.
347 (target_stopped_by_sw_breakpoint)
348 (target_supports_stopped_by_sw_breakpoint)
349 (target_stopped_by_hw_breakpoint)
350 (target_supports_stopped_by_hw_breakpoint): Define.
351 * target-delegates.c: Regenerate.
352
353 2015-03-04 Pedro Alves <palves@redhat.com>
354
355 * infrun.c (follow_fork_inferior): Use the whole of the
356 inferior_ptid and pending_follow.related_pid ptids instead of
357 building ptids from the process components. Adjust verbose output
358 to use target_pid_to_str.
359 * linux-nat.c (linux_child_follow_fork): Use the whole of the
360 inferior_ptid and pending_follow.related_pid ptids instead of
361 building ptids from the process components.
362
363 2015-03-04 Mark Kettenis <kettenis@gnu.org>
364
365 * inf-ptrace.c [PT_GET_PROCESS_STATE]
366 (inf_ptrace_insert_fork_catchpoint): New function.
367 (inf_ptrace_remove_fork_catchpoint): New function.
368 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
369
370 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
371
372 * s390-linux-tdep.c (s390_register_name): Return empty string
373 instead of NULL for registers that shouldn't be visible.
374
375 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
376
377 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
378 XML file for 64-bit targets.
379
380 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
381
382 * target.h (find_default_create_inferior): Remove declaration.
383 (find_default_attach): Likewise.
384
385 2015-03-03 Pedro Alves <palves@redhat.com>
386
387 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
388 Use ptid_get_pid to get the overall process id when resuming all
389 threads.
390
391 2015-03-03 Pedro Alves <palves@redhat.com>
392
393 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
394 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
395 * inf-ptrace.c (get_ptrace_pid): New function.
396 (inf_ptrace_resume): Use it.
397 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
398 to the lower layer.
399
400 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
401
402 * nat/linux-btrace.c: Include sys/utsname.h.
403 (linux_determine_kernel_ptr_bits): New.
404 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
405 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
406 ptr_bits.
407
408 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
409
410 * btrace.c (ftrace_update_function): Treat return as tailcall for
411 "_dl_runtime_resolve".
412
413 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
414
415 * btrace.h (btrace_function) <lbegin, lend>: Remove.
416 * btrace.c (ftrace_debug): Do not print the line range.
417 (ftrace_skip_file, ftrace_update_lines): Remove.
418 (ftrace_new_function): Remove lbegin and lend initialization.
419 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
420 * record-btrace.c (btrace_compute_src_line_range): New.
421 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
422
423 2015-03-02 Pedro Alves <palves@redhat.com>
424
425 * infrun.c (follow_exec): Delete all threads of the process except
426 the event thread. Extended comments.
427
428 2015-03-02 Joel Brobecker <brobecker@adacore.com>
429
430 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
431
432 2015-03-02 Joel Brobecker <brobecker@adacore.com>
433
434 * utils.h: Remove <stdbool.h> #include.
435 (producer_is_gcc): Change return type to "int".
436 * utils.c (producer_is_gcc): Change return type to int.
437 Return 1 instead of true, and 0 instead of false.
438 Adjust function documentation accordingly.
439
440 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
441
442 * s390-linux-nat.c (have_regset_vxrs): New static variable.
443 (s390_linux_fetch_inferior_registers): Handle vector registers, if
444 present.
445 (s390_linux_store_inferior_registers): Likewise.
446 (s390_get_hwcap): Remove function. Embed its logic...
447 (s390_read_description): ...here. Yield a target description with
448 vector registers if applicable.
449 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
450 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
451 "features/s390x-tevx-linux64.c".
452 (struct gdbarch_tdep) <v0_full_regnum>: New field.
453 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
454 for "GNU/Linux-specific registers".
455 (s390_dwarf_reg_r0l): New enum value.
456 (s390_dwarf_reg_to_regnum): Support vector registers.
457 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
458 of GPR lower halves.
459 (regnum_is_vxr_full): New function.
460 (s390_register_name): New function.
461 (s390_pseudo_register_name): Handle v0-v15, which are composed of
462 f0-f15 and v0l-v15l.
463 (s390_pseudo_register_type): Likewise.
464 (s390_pseudo_register_read): Likewise.
465 (s390_pseudo_register_write): Likewise.
466 (s390_value_from_register): Account for the fact that values are
467 placed left-justified in vector registers.
468 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
469 the vector reggroup and omit them from the general reggroup.
470 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
471 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
472 (s390_iterate_over_regset_sections): Add iterations for the two
473 new vector regsets.
474 (s390_core_read_description): Yield a target description with
475 vector registers if applicable.
476 (s390_gdbarch_init): Handle target descriptions with vector
477 registers. Add "register_name" gdbarch method.
478 (_initialize_s390_tdep): Call new tdesc initialization functions.
479 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
480 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
481 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
482 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
483 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
484 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
485 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
486 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
487 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
488 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
489 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
490 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
491 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
492 (S390_NUM_REGS): Adjust value.
493 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
494 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
495 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
496 * NEWS: Announce S/390 vector register support.
497
498 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
499
500 * features/s390-tevx-linux64.xml: New file.
501 * features/s390-vx-linux64.xml: New file.
502 * features/s390-vx.xml: New file.
503 * features/s390x-tevx-linux64.xml: New file.
504 * features/s390x-vx-linux64.xml: New file.
505 * features/Makefile (WHICH): Add s390-vx-linux64,
506 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
507 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
508 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
509 macros.
510 * features/s390-tevx-linux64.c: New generated file.
511 * features/s390-vx-linux64.c: Likewise.
512 * features/s390x-tevx-linux64.c: Likewise.
513 * features/s390x-vx-linux64.c: Likewise.
514 * regformats/s390-tevx-linux64.dat: Likewise.
515 * regformats/s390-vx-linux64.dat: Likewise.
516 * regformats/s390x-tevx-linux64.dat: Likewise.
517 * regformats/s390x-vx-linux64.dat: Likewise.
518
519 2015-02-28 Doug Evans <xdje42@gmail.com>
520
521 * symtab.h (struct symtab) <next>: Fix comment.
522
523 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
524
525 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
526 python_GdbMethods.
527
528 2015-02-27 Pedro Alves <palves@redhat.com>
529
530 * dtrace-probe.c (dtrace_probe_ops): Make extern.
531
532 2015-02-27 Pedro Alves <palves@redhat.com>
533
534 * common/common-exceptions.h (exception_none): Declare.
535 * common/common-exceptions.c (exception_none): Moved from
536 exceptions.c.
537 (exceptions_state_mc_init): Use exception_none.
538 * exceptions.c (exception_none): Move to
539 common/common-exceptions.c.
540 * exceptions.h (exception_none): Move to
541 common/common-exceptions.h.
542
543 2015-02-27 Pedro Alves <palves@redhat.com>
544
545 * main.c (catch_command_errors, catch_command_errors_const):
546 Remove 'mask' argument. Adjust.
547 (captured_main): Adjust callers.
548
549 2015-02-27 Pedro Alves <palves@redhat.com>
550
551 * python/python-internal.h: Include "extension-priv.h".
552
553 2015-02-27 Pedro Alves <palves@redhat.com>
554
555 * breakpoint.h (enum print_stop_action): Move further up in the
556 file.
557
558 2015-02-27 Pedro Alves <palves@redhat.com>
559
560 * gdbarch.sh: Include regcache.h.
561 * gdbarch.h: Regenerate.
562
563 2015-02-27 Pedro Alves <palves@redhat.com>
564
565 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
566 Remove duplicate const.
567 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
568 duplicate const.
569
570 2015-02-27 Pedro Alves <palves@redhat.com>
571
572 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
573 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
574 * features/feature_to_c.sh: Tag the generated xml_builtin array
575 with extern const in C++ mode.
576
577 2015-02-27 Tom Tromey <tromey@redhat.com>
578
579 * minidebug.c (struct lzma_stream): Rename to ...
580 (struct gdb_lzma_stream): ... this.
581 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
582
583 2015-02-27 Pedro Alves <palves@redhat.com>
584
585 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
586 function.
587 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
588 (mi_cmd_stack_list_variables): Use it.
589
590 2015-02-27 Pedro Alves <palves@redhat.com>
591
592 * x86-linux-nat.c (u_debugreg_offset): New function.
593 (x86_linux_dr_get, x86_linux_dr_set): Use it.
594
595 2015-02-27 Pedro Alves <palves@redhat.com>
596
597 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
598 declaration.
599 Include break-common.h.
600
601 2015-02-27 Tom Tromey <tromey@redhat.com>
602 Pedro Alves <palves@redhat.com>
603
604 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
605 local used to iterate over enums.
606 * completer.c (signal_completer): Likewise.
607 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
608 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
609 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
610 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
611 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
612 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
613 * tui-wingeneral.c (tui_refresh_all): Likewise.
614
615 2015-02-27 Pedro Alves <palves@redhat.com>
616
617 * target.h: Include "infrun.h".
618
619 2015-02-27 Pedro Alves <palves@redhat.com>
620
621 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
622
623 2015-02-27 Pedro Alves <palves@redhat.com>
624
625 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
626 (IPA_SYM): Use it.
627 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
628
629 2015-02-27 Pedro Alves <palves@redhat.com>
630
631 * cli-out.c (_rl_erase_entire_line): Move declaration out of
632 cli_mld_erase_entire_line, and make it extern "C".
633 * common/common-defs.h (EXTERN_C): New.
634 * completer.c (_rl_completion_prefix_display_length)
635 (_rl_print_completions_horizontally, QSFUNC): Move declarations
636 out of gdb_display_match_list_1.
637 (_rl_qsort_string_compare): Move declaration out of
638 gdb_display_match_list_1, and make it extern "C".
639 * defs.h (re_comp): Use EXTERN_C.
640 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
641 and make it extern "C".
642 (monstartup): Move declaration out of maintenance_set_profile_cmd,
643 and make it extern "C".
644 (main): Move declaration out of maintenance_set_profile_cmd.
645 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
646 EXTERN_C.
647
648 2015-02-27 Pedro Alves <palves@redhat.com>
649
650 * python/python.c (GdbMethods): Rename to ...
651 (python_GdbMethods): ... this and make extern.
652 (GdbModuleDef): Rename to ...
653 (python_GdbModuleDef): ... this and make extern.
654
655 2015-02-27 Pedro Alves <palves@redhat.com>
656
657 * record-btrace.c (set_record_btrace_cmdlist)
658 (show_record_btrace_cmdlist): Remove redefinitions.
659
660 2015-02-27 Tom Tromey <tromey@redhat.com>
661 Pedro Alves <palves@redhat.com>
662
663 * dwarf2-frame.c (enum cfa_how_kind, struct
664 dwarf2_frame_state_reg_info): Move out of struct
665 dwarf2_frame_state.
666 * dwarf2read.c (struct tu_stats): Move out of struct
667 dwarf2_per_objfile.
668 (struct file_entry): Move out of struct line_header.
669 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
670 typedef_field_list): Move out of struct field_info.
671 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
672 Move out of struct dynamic_prop.
673 (union type_owner, union field_location, struct field, struct
674 range_bounds, union type_specific): Move out of struct main_type.
675 (struct fn_fieldlist, struct fn_field, struct typedef_field)
676 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
677 (struct call_site_target, union call_site_parameter_u, struct
678 call_site_parameter): Move out of struct call_site.
679 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
680 m32c_prologue.
681 (enum srcdest_kind): Move out of struct srcdest.
682 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
683 * prologue-value.h (enum prologue_value_kind): Move out of struct
684 prologue_value.
685 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
686 gdbarch_tdep.
687 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
688 out of struct field_info.
689 * symfile.h (struct other_sections): Move out of struct
690 section_addr_info.
691 * symtab.c (struct symbol_cache_slot): Move out struct
692 block_symbol_cache.
693 * target-descriptions.c (enum tdesc_type_kind): Move out of
694 typedef struct tdesc_type.
695 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
696 struct tui_line_or_address.
697 * value.c (enum internalvar_kind, union internalvar_data): Move
698 out of struct internalvar.
699 * xtensa-tdep.h (struct ctype_cache): Move out of struct
700 gdbarch_tdep.
701
702 2015-02-27 Tom Tromey <tromey@redhat.com>
703 Pedro Alves <palves@redhat.com>
704
705 Rename symbols whose names are reserved C++ keywords throughout.
706
707 2015-02-27 Pedro Alves <palves@redhat.com>
708
709 * Makefile.in (COMPILER): New, get it from autoconf.
710 (COMPILE.pre, CC_LD): Use COMPILER.
711 (CXX): Get from autoconf instead.
712 (CXX_FOR_TARGET): Default to g++ instead of gcc.
713 * acinclude.m4: Include build-with-cxx.m4.
714 * build-with-cxx.m4: New file.
715 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
716 Disable -Werror by default if building in C++ mode.
717 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
718 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
719 Run supported-warning-flags tests with the C++ compiler.
720 Save/restore CXXFLAGS too.
721 * configure: Regenerate.
722
723 2015-02-27 Pedro Alves <palves@redhat.com>
724
725 * libiberty.m4: New file.
726 * acinclude.m4: Include libiberty.m4.
727 * configure.ac: Call libiberty_INIT.
728 * config.in, configure: Regenerate.
729
730 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
731
732 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
733 31-bit targets, but 64-bit targets as well.
734 (s390_gnu_triplet_regexp): New function.
735 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
736 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
737 method.
738
739 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
740
741 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
742 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
743 from CONTEXT_DEBUGGER.
744
745 2015-02-26 Doug Evans <dje@google.com>
746
747 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
748 CHECK_TYPEDEF.
749 (set_type_vptr_fieldno): Ditto.
750 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
751 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
752
753 2015-02-26 Pedro Alves <palves@redhat.com>
754
755 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
756 * complaints.c (vcomplaint): Pass argument FMT directly to
757 printf-like functions instead of complaint->fmt.
758 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
759 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
760 * compile/compile-loc2c.c (pushf, unary, binary): Add
761 ATTRIBUTE_PRINTF.
762 (do_compile_dwarf_expr_to_c): Pass string literal as format string
763 to pushf.
764 (BINARY): Pass string literal as format string to 'binary'.
765 * compile/compile-object-load.c (link_callbacks_einfo): Add
766 ATTRIBUTE_PRINTF.
767 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
768
769 2015-02-26 Pedro Alves <palves@redhat.com>
770
771 * windows-termcap.c: Rename to ...
772 * stub-termcap.c: ... this. Adjust header line.
773 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
774 windows-termcap.c.
775 * configure: Regenerate.
776 * configure.ac: Refer to stub-termcap.o instead of
777 windows-termcap.o.
778 * gdb_curses.h: Mention stub-termcap.c instead of
779 windows-termcap.c.
780
781 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
782
783 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
784 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
785
786 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
787
788 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
789
790 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
791
792 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
793 bfd_canonicalize_symtab.
794
795 2015-02-25 John Baldwin <jhb@FreeBSD.org>
796
797 * amd64fbsd-nat.c: Include sys/user.h.
798 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
799 instead of KERN_PS_STRINGS to locate the signal trampoline.
800 * i386fbsd-nat.c: Include sys/user.h.
801 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
802 instead of KERN_PS_STRINGS to locate the signal trampoline.
803 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
804 (amd64fbsd_sigtramp_p): New.
805 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
806 longer set default values.
807 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
808 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
809 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
810 (i386fbsd_freebsd4_sigtramp_start)
811 (i386fbsd_freebsd4_sigtramp_middle)
812 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
813 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
814 (i386fbsd_sigtramp_p): New.
815 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
816 longer set default values.
817 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
818
819 2015-02-25 John Baldwin <jhb@freebsd.org>
820
821 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
822 get_frame_register instead of frame_unwind_register_unsigned.
823
824 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
825
826 PR build/18033
827 * compile/compile-c-support.c (c_compute_program): Change // comment.
828 * compile/compile-object-load.c (setup_sections): Change // comment.
829
830 2015-02-26 Joel Brobecker <brobecker@adacore.com>
831
832 PR build/18033:
833 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
834
835 2015-02-23 Pedro Alves <palves@redhat.com>
836
837 * remote.c (skip_to_semicolon): New function.
838 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
839 special case the stop reasons that look like hex numbers
840 upfront. Instead handle real register numbers after matching
841 all the known stop reasons.
842
843 2015-02-21 Doug Evans <dje@google.com>
844
845 PR c++/17976, symtab/17821
846 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
847 is_in_anonymous. All callers updated.
848 (find_symbol_in_baseclass): Ditto.
849 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
850 for symbols in an anonymous namespace.
851 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
852 DW_AT_name directly.
853 (dwarf2_name): Convert missing namespace name to
854 CP_ANONYMOUS_NAMESPACE_STR.
855
856 2015-02-20 Pedro Alves <palves@redhat.com>
857
858 * linux-nat.c (linux_handle_extended_wait): Call
859 thread_db_notice_clone whenever a new clone LWP is detected.
860 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
861 functions.
862 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
863 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
864 (linux_unstop_all_lwps): Declare.
865 * linux-thread-db.c (struct thread_get_info_inout): Delete.
866 (thread_get_info_callback): Delete.
867 (thread_from_lwp): Use td_thr_get_info and record_thread.
868 (thread_db_attach_lwp): Delete.
869 (thread_db_notice_clone): New function.
870 (try_thread_db_load_1): If /proc is mounted and shows the
871 process'es task list, walk over all LWPs and call thread_from_lwp
872 instead of relying on td_ta_thr_iter.
873 (attach_thread): Don't call check_thread_signals here. Split the
874 tail part of the function (which adds the thread to the core GDB
875 thread list) to ...
876 (record_thread): ... this function. Call check_thread_signals
877 here.
878 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
879 call thread_from_lwp.
880 (thread_db_update_thread_list): Rename to ...
881 (thread_db_update_thread_list_org): ... this.
882 (thread_db_update_thread_list): New function.
883 (thread_db_find_thread_from_tid): Delete.
884 (thread_db_get_ada_task_ptid): Simplify.
885 * nat/linux-procfs.c: Include <sys/stat.h>.
886 (linux_proc_task_list_dir_exists): New function.
887 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
888
889 2015-02-20 Pedro Alves <palves@redhat.com>
890
891 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
892 main LWP. Handle the case of waitpid returning 0 if we're already
893 attached to the LWP. Don't set the LWP's last_resume_kind to
894 resume_stop if we already knew about the LWP.
895 (linux_nat_filter_event): Add debug logs.
896
897 2015-02-20 Pedro Alves <palves@redhat.com>
898
899 * target.h (forward_target_decr_pc_after_break): Delete
900 declaration.
901
902 2015-02-20 Pedro Alves <palves@redhat.com>
903
904 PR threads/18006
905 * linux-thread-db.c (thread_get_info_callback): Return early if
906 the thread's lwp id is -1.
907
908 2015-02-20 Joel Brobecker <brobecker@adacore.com>
909
910 GDB 7.9 released.
911
912 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
913
914 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
915 (dtrace_get_probes) Change type of variable 'dof'.
916
917 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
918
919 PR breakpoints/16812
920 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
921 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
922 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
923
924 2015-02-19 David Taylor <dtaylor@emc.com>
925
926 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
927
928 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
929
930 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
931 function.
932 (tui_putc): Don't call tui_handle_resize_during_io.
933 (tui_getc): Likewise.
934 (tui_mld_getc): Likewise.
935 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
936 (tui_sigwinch_token): New static variable.
937 (tui_initialize_win): Adjust documentation. Set
938 tui_sigwinch_token.
939 (tui_async_resize_screen): New asynchronous callback.
940 (tui_sigwinch_handler): Adjust documentation. Asynchronously
941 invoke tui_async_resize_screen.
942
943 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
944
945 * configure: Regenerated.
946 * configure.ac: Use GDB_AC_TRANSFORM.
947 * Makefile.in (aclocal_m4_deps): Added transform.m4.
948 * acinclude.m4: sinclude transform.m4.
949 * transform.m4: New file.
950 (GDB_AC_TRANSFORM): New macro.
951
952 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
953
954 * NEWS: Announce the support for DTrace SDT probes.
955
956 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
957
958 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
959 (amd64_dtrace_parse_probe_argument): New function.
960 (amd64_dtrace_probe_is_enabled): Likewise.
961 (amd64_dtrace_enable_probe): Likewise.
962 (amd64_dtrace_disable_probe): Likewise.
963 (amd64_linux_init_abi): Register the
964 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
965 `gdbarch_dtrace_disable_probe' and
966 `gdbarch_dtrace_probe_is_enabled' hooks.
967 (amd64_dtrace_disabled_probe_sequence_1): New constant.
968 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
969 (amd64_dtrace_enable_probe_sequence): Likewise.
970 (amd64_dtrace_disable_probe_sequence): Likewise.
971
972 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
973
974 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
975 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
976 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
977 handle ELF files.
978 * Makefile.in (SFILES): dtrace-probe.c added.
979 * configure: Regenerate.
980 * dtrace-probe.c: New file.
981 (SHT_SUNW_dof): New constant.
982 (dtrace_probe_type): New enum.
983 (dtrace_probe_arg): New struct.
984 (dtrace_probe_arg_s): New typedef.
985 (struct dtrace_probe_enabler): New struct.
986 (dtrace_probe_enabler_s): New typedef.
987 (dtrace_probe): New struct.
988 (dtrace_probe_is_linespec): New function.
989 (dtrace_dof_sect_type): New enum.
990 (dtrace_dof_dofh_ident): Likewise.
991 (dtrace_dof_encoding): Likewise.
992 (DTRACE_DOF_ENCODE_LSB): Likewise.
993 (DTRACE_DOF_ENCODE_MSB): Likewise.
994 (dtrace_dof_hdr): New struct.
995 (dtrace_dof_sect): Likewise.
996 (dtrace_dof_provider): Likewise.
997 (dtrace_dof_probe): Likewise.
998 (DOF_UINT): New macro.
999 (DTRACE_DOF_PTR): Likewise.
1000 (DTRACE_DOF_SECT): Likewise.
1001 (dtrace_process_dof_probe): New function.
1002 (dtrace_process_dof): Likewise.
1003 (dtrace_build_arg_exprs): Likewise.
1004 (dtrace_get_arg): Likewise.
1005 (dtrace_get_probes): Likewise.
1006 (dtrace_get_probe_argument_count): Likewise.
1007 (dtrace_can_evaluate_probe_arguments): Likewise.
1008 (dtrace_evaluate_probe_argument): Likewise.
1009 (dtrace_compile_to_ax): Likewise.
1010 (dtrace_probe_destroy): Likewise.
1011 (dtrace_gen_info_probes_table_header): Likewise.
1012 (dtrace_gen_info_probes_table_values): Likewise.
1013 (dtrace_probe_is_enabled): Likewise.
1014 (dtrace_probe_ops): New variable.
1015 (info_probes_dtrace_command): New function.
1016 (_initialize_dtrace_probe): Likewise.
1017 (dtrace_type_name): Likewise.
1018
1019 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
1020
1021 * gdbarch.sh (dtrace_parse_probe_argument): New.
1022 (dtrace_probe_is_enabled): Likewise.
1023 (dtrace_enable_probe): Likewise.
1024 (dtrace_disable_probe): Likewise.
1025 * gdbarch.c: Regenerate.
1026 * gdbarch.h: Regenerate.
1027
1028 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
1029
1030 * stap-probe.c (stap_probe_ops): Add NULLs in the static
1031 stap_probe_ops for `enable_probe' and `disable_probe'.
1032 * probe.c (enable_probes_command): New function.
1033 (disable_probes_command): Likewise.
1034 (_initialize_probe): Define the cli commands `enable probe' and
1035 `disable probe'.
1036 (parse_probe_linespec): New function.
1037 (info_probes_for_ops): Use parse_probe_linespec.
1038 * probe.h (probe_ops): New hooks `enable_probe' and
1039 `disable_probe'.
1040
1041 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
1042
1043 * probe.c (compute_probe_arg): Moved from stap-probe.c
1044 (compile_probe_arg): Likewise.
1045 (probe_funcs): Likewise.
1046 * stap-probe.c (compute_probe_arg): Moved to probe.c.
1047 (compile_probe_arg): Likewise.
1048 (probe_funcs): Likewise.
1049
1050 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
1051
1052 * probe.c (print_ui_out_not_applicables): New function.
1053 (exists_probe_with_pops): Likewise.
1054 (info_probes_for_ops): Do not include column headers for probe
1055 types for which no probe has been actually found on any object.
1056 Also invoke `print_ui_out_not_applicables' in order to match the
1057 column rows with the header when probes of several types are
1058 listed.
1059 Print the "Type" column.
1060 * probe.h (probe_ops): Added a new probe operation `type_name'.
1061 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
1062 (stap_type_name): New function.
1063
1064 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
1065
1066 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
1067 (key_is_command_char): Delete.
1068
1069 2015-02-17 Pedro Alves <palves@redhat.com>
1070
1071 * tui/tui.c (tui_enable): Resize windows before anything
1072 might show a window.
1073
1074 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
1075
1076 PR gdb/17984
1077 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
1078 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
1079 call.
1080 * aarch64-tdep.h (tdesc_aarch64): Declare.
1081
1082 2015-02-12 Mark Wielaard <mjw@redhat.com>
1083
1084 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
1085
1086 2015-02-13 Doug Evans <dje@google.com>
1087
1088 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
1089 anonymous_namespace to is_in_anonymous for consistency with the rest
1090 of the file.
1091 (cp_lookup_bare_symbol): Fix typo in comment.
1092 (cp_search_static_and_baseclasses): Ditto.
1093 (search_symbol_list): Use vertical space in comment better.
1094 (reset_directive_searched): Ditto. Fix typo.
1095 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
1096
1097 2015-02-13 Yao Qi <yao.qi@arm.com>
1098
1099 * MAINTAINERS: Update my email address.
1100
1101 2015-02-12 Doug Evans <dje@google.com>
1102
1103 * symtab.c (completion_list_add_name): Fix memory leak.
1104
1105 2015-02-12 Doug Evans <dje@google.com>
1106
1107 * completer.c (complete_line): Remove incorrect comment.
1108
1109 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1110
1111 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
1112 (py_print_frame): Use RETURN_MASK_ERROR.
1113
1114 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1115
1116 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
1117 function comment. Wrap all function that can throw in cleanups.
1118 (gdbpy_apply_frame_filter): Wrap all function that can throw in
1119 cleanups.
1120
1121 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1122
1123 * python/py-framefilter.c (py_print_frame): Substitute goto error.
1124 Remove the error label.
1125
1126 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1127
1128 * python/py-framefilter.c (py_print_frame): Put conditional code paths
1129 with goto first, indent the former else codepath left. Put variable
1130 'elided' to a new inner block.
1131
1132 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1133
1134 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
1135
1136 2015-02-11 Pedro Alves <palves@redhat.com>
1137
1138 * xcoffread.c (within_function): Delete.
1139
1140 2015-02-11 Tom Tromey <tromey@redhat.com>
1141 Pedro Alves <palves@redhat.com>
1142
1143 * breakpoint.c (base_breakpoint_ops): Delete.
1144 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
1145 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
1146 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
1147 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
1148 * python/py-arch.c (arch_object_type): Make extern.
1149 * python/py-block.c (block_syms_iterator_object_type): Make extern.
1150 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
1151 * python/py-cmd.c (cmdpy_object_type): Make extern.
1152 * python/py-continueevent.c (continue_event_object_type)
1153 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
1154 parameter. Update all callers.
1155 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
1156 * python/py-exitedevent.c (exited_event_object_type): Make extern.
1157 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
1158 * python/py-function.c (fnpy_object_type): Make extern.
1159 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
1160 * python/py-infevents.c (call_pre_event_object_type)
1161 (inferior_call_post_event_object_type).
1162 (memory_changed_event_object_type): Make extern.
1163 * python/py-infthread.c (thread_object_type): Make extern.
1164 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
1165 * python/py-linetable.c (linetable_entry_object_type)
1166 (linetable_object_type, ltpy_iterator_object_type): Make extern.
1167 * python/py-newobjfileevent.c (new_objfile_event_object_type)
1168 (clear_objfiles_event_object_type): Make extern.
1169 * python/py-objfile.c (objfile_object_type): Make extern.
1170 * python/py-param.c (parmpy_object_type): Make extern.
1171 * python/py-progspace.c (pspace_object_type): Make extern.
1172 * python/py-signalevent.c (signal_event_object_type): Make extern.
1173 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
1174 * python/py-type.c (type_object_type, field_object_type)
1175 (type_iterator_object_type): Make extern.
1176 * python/python.c (python_extension_script_ops)
1177 (python_extension_ops): Make extern.
1178 * stap-probe.c (stap_probe_ops): Make extern.
1179
1180 2015-02-11 Pedro Alves <pedro@codesourcery.com>
1181
1182 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
1183 because the event thread is not the current thread.
1184
1185 2015-02-11 Doug Evans <xdje42@gmail.com>
1186
1187 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
1188 been initialized yet, return NULL.
1189
1190 2015-02-11 Doug Evans <dje@google.com>
1191
1192 * symfile.h (new_symfile_objfile): Delete.
1193 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
1194 All callers updated.
1195
1196 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
1197
1198 * tui/tui-io.c (tui_handle_resize_during_io): Call
1199 tui_update_gdb_sizes() after resizing the screen.
1200 * tui/tui.c (tui_enable): Resize the terminal before
1201 calling tui_update_gdb_sizes().
1202
1203 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
1204
1205 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
1206 line before printing a newline.
1207
1208 2015-02-11 Mark Wielaard <mjw@redhat.com>
1209
1210 * utils.c (producer_is_gcc): Return true or false.
1211
1212 2015-02-10 Mark Wielaard <mjw@redhat.com>
1213
1214 * utils.h (producer_is_gcc): Change return type to bool. Add major
1215 argument.
1216 * utils.c (producer_is_gcc): Likewise.
1217 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
1218 * dwarf2read.c (check_producer): Likewise.
1219
1220 2015-02-10 Pedro Alves <palves@redhat.com>
1221
1222 * infrun.c (displaced_step_fixup): Switch to the event thread
1223 before calling gdbarch_displaced_step_fixup.
1224
1225 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
1226
1227 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
1228
1229 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
1230
1231 * ada-varobj.c (ada_name_of_child): Constify parent.
1232 (ada_path_expr_of_child): Same.
1233 (ada_value_of_child): Same.
1234 (ada_type_of_child): Same.
1235 * c-varobj.c (c_is_path_expr_parent): Same.
1236 (c_describe_child): Same.
1237 (c_name_of_child): Same.
1238 (c_value_of_child): Same.
1239 (c_type_of_child): Same.
1240 (cplus_number_of_children): Same.
1241 (cplus_describe_child): Constify var.
1242 (cplus_name_of_child): Constify parent.
1243 (cplus_value_of_child): Same.
1244 (cplus_type_of_child): Same.
1245 * jv-varobj.c (java_name_of_child): Same.
1246 (java_value_of_child): Same.
1247 (java_type_of_child): Same.
1248 * varobj.c (value_of_child): Same.
1249 (varobj_default_is_path_expr_parent): Constify var, parent and return
1250 value.
1251 (varobj_get_path_expr): Constify var, modify path_expr through
1252 mutable_var.
1253 (install_new_value): Constify parent.
1254 (value_of_child): Constify parent.
1255 * varobj.h (struct varobj): Constify parent.
1256 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
1257 type_of_child.
1258 (varobj_get_path_expr): Constify var.
1259 (varobj_get_path_expr_parent): Constify var and return value.
1260
1261 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
1262
1263 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
1264 (arm_prologue_this_id): Move PC and SP limit checks to
1265 arm_prologue_unwind_stop_reason.
1266 (arm_prologue_unwind) <stop_reason> : Set to
1267 arm_prologue_unwind_stop_reason.
1268
1269 2015-02-09 Mark Wielaard <mjw@redhat.com>
1270
1271 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
1272 DW_LANG_Fortran08 as language_fortran.
1273
1274 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
1275
1276 PR remote/17946
1277 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
1278 of pointer against char.
1279
1280 2015-02-09 Mark Wielaard <mjw@redhat.com>
1281
1282 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
1283 (c_type_print_modifier): Likewise.
1284 * dwarf2read.c (read_tag_atomic_type): New function.
1285 (read_type_die_1): Handle DW_TAG_atomic_type.
1286 * gdbtypes.c (make_atomic_type): New function.
1287 (recursive_dump_type): Handle TYPE_ATOMIC.
1288 * gdbtypes.h (enum type_flag_values): Renumber.
1289 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
1290 (TYPE_ATOMIC): New macro.
1291 (make_atomic_type): Declare.
1292
1293 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
1294
1295 * btrace.c (ftrace_find_call): Skip gaps.
1296 (ftrace_new_function): Initialize level.
1297 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
1298 (ftrace_new_switch): Update
1299 level computation.
1300 (ftrace_new_gap): New.
1301 (ftrace_update_function): Create new function after gap.
1302 (btrace_compute_ftrace_bts): Create gap on error.
1303 (btrace_stitch_bts): Update parameters. Clear trace if it
1304 becomes empty.
1305 (btrace_stitch_trace): Update parameters. Update callers.
1306 (btrace_clear): Reset the number of gaps.
1307 (btrace_insn_get): Return NULL if the iterator points to a gap.
1308 (btrace_insn_number): Return zero if the iterator points to a gap.
1309 (btrace_insn_end): Allow gaps at the end.
1310 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
1311 (btrace_find_insn_by_number): Assert that the found iterator does
1312 not point to a gap.
1313 (btrace_call_next, btrace_call_prev): Assert that the last function
1314 is not a gap.
1315 * btrace.h (btrace_bts_error): New.
1316 (btrace_function): Update comment.
1317 (btrace_function) <insn, insn_offset, number>: Update comment.
1318 (btrace_function) <errcode>: New.
1319 (btrace_thread_info) <ngaps>: New.
1320 (btrace_thread_info) <replay>: Update comment.
1321 (btrace_insn_get): Update comment.
1322 * record-btrace.c (btrace_ui_out_decode_error): New.
1323 (record_btrace_info): Print number of gaps.
1324 (btrace_insn_history, btrace_call_history): Call
1325 btrace_ui_out_decode_error for gaps.
1326 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
1327
1328 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
1329
1330 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
1331 * nat/linux-btrace.c: (btrace_this_cpu): New.
1332 (cpu_supports_bts): Call btrace_this_cpu.
1333 (intel_supports_bts): Add cpu parameter.
1334
1335 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
1336
1337 * btrace.h (btrace_insn_class): New.
1338 (btrace_insn) <size, iclass>: New.
1339 * btrace.c (ftrace_find_call): Update parameters. Update users.
1340 Use instruction classification.
1341 (ftrace_new_return): Update parameters. Update users.
1342 (ftrace_update_function): Update parameters. Update users. Use
1343 instruction classification.
1344 (ftrace_update_insns): Update parameters. Update users.
1345 (ftrace_classify_insn): New.
1346 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
1347 TRY_CATCH around call to gdb_insn_length.
1348
1349 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
1350
1351 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
1352 Update parameters. Update users.
1353
1354 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
1355
1356 * btrace.c (parse_xml_btrace_conf_bts): Add size.
1357 (btrace_conf_bts_attributes): New.
1358 (btrace_conf_children): Add attributes.
1359 * common/btrace-common.h (btrace_config_bts): New.
1360 (btrace_config)<bts>: New.
1361 (btrace_config): Update comment.
1362 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
1363 Use config.
1364 * features/btrace-conf.dtd: Increment version. Add size
1365 attribute to bts element.
1366 * record-btrace.c (set_record_btrace_bts_cmdlist,
1367 show_record_btrace_bts_cmdlist): New.
1368 (record_btrace_adjust_size, record_btrace_print_bts_conf,
1369 record_btrace_print_conf, cmd_set_record_btrace_bts,
1370 cmd_show_record_btrace_bts): New.
1371 (record_btrace_info): Call record_btrace_print_conf.
1372 (_initialize_record_btrace): Add commands.
1373 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
1374 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
1375 (btrace_sync_conf): Synchronize bts size.
1376 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
1377 * NEWS: Announce new commands and new packets.
1378
1379 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
1380
1381 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
1382 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
1383 (x86_linux_btrace_conf): New.
1384 (x86_linux_create_target): Initialize to_btrace_conf.
1385 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
1386 Check format. Split into this and ...
1387 (linux_enable_bts): ... this.
1388 (linux_btrace_conf): New.
1389 (perf_event_skip_record): Renamed into ...
1390 (perf_event_skip_bts_record): ... this. Updated users.
1391 (linux_disable_btrace): Split into this and ...
1392 (linux_disable_bts): ... this.
1393 (linux_read_btrace): Check format.
1394 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
1395 (linux_btrace_conf): New.
1396 (btrace_target_info)<ptid>: Moved.
1397 (btrace_target_info)<conf>: New.
1398 (btrace_target_info): Split into this and ...
1399 (btrace_tinfo_bts): ... this. Updated users.
1400 * btrace.c (btrace_enable): Update parameters.
1401 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
1402 (btrace_conf_children, btrace_conf_attributes)
1403 (btrace_conf_elements): New.
1404 * btrace.h (btrace_enable): Update parameters.
1405 (btrace_conf, parse_xml_btrace_conf): New.
1406 * common/btrace-common.h (btrace_config): New.
1407 * feature/btrace-conf.dtd: New.
1408 * record-btrace.c (record_btrace_conf): New.
1409 (record_btrace_cmdlist): New.
1410 (record_btrace_enable_warn, record_btrace_open): Pass
1411 &record_btrace_conf.
1412 (record_btrace_info): Print recording format.
1413 (cmd_record_btrace_bts_start): New.
1414 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
1415 (_initialize_record_btrace): Add "record btrace bts" subcommand.
1416 Add "record bts" alias command.
1417 * remote.c (remote_state)<btrace_config>: New.
1418 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
1419 (remote_protocol_features): Add qXfer:btrace-conf:read.
1420 (remote_open_1): Call remote_btrace_reset.
1421 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
1422 (btrace_target_info)<conf>: New.
1423 (btrace_sync_conf, btrace_read_config): New.
1424 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
1425 btrace_read_conf.
1426 (remote_btrace_conf): New.
1427 (init_remote_ops): Initialize to_btrace_conf.
1428 (_initialize_remote): Add qXfer:btrace-conf packet.
1429 * target.c (target_enable_btrace): Update parameters.
1430 (target_btrace_conf): New.
1431 * target.h (target_enable_btrace): Update parameters.
1432 (target_btrace_conf): New.
1433 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
1434 (target_ops)<to_enable_btrace>: Update parameters and comment.
1435 (target_ops)<to_btrace_conf>: New.
1436 * target-delegates: Regenerate.
1437 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
1438 (target_debug_print_const_struct_btrace_target_info_p): New.
1439 * NEWS: Announce new command and new packet.
1440
1441 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
1442
1443 * nat/linux-btrace.h (perf_event_buffer): New.
1444 (btrace_target_info) <buffer, size, data_head>: Replace with ...
1445 <bts>: ... this.
1446 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
1447 (perf_event_buffer_size, perf_event_buffer_begin)
1448 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
1449 Updated users.
1450 (perf_event_new_data): New.
1451
1452 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
1453
1454 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
1455 * record-btrace.c (record_btrace_open): Remove call to
1456 target_supports_btrace.
1457 * remote.c (remote_supports_btrace): Update parameters.
1458 * target.c (target_supports_btrace): Update parameters.
1459 * target.h (to_supports_btrace, target_supports_btrace): Update
1460 parameters.
1461 * target-delegates.c: Regenerate.
1462 * target-debug.h (target_debug_print_enum_btrace_format): New.
1463 * nat/linux-btrace.c
1464 (kernel_supports_btrace): Rename into ...
1465 (kernel_supports_bts): ... this. Update users. Update warning text.
1466 (intel_supports_btrace): Rename into ...
1467 (intel_supports_bts): ... this. Update users.
1468 (cpu_supports_btrace): Rename into ...
1469 (cpu_supports_bts): ... this. Update users.
1470 (linux_supports_btrace): Update parameters. Split into this and ...
1471 (linux_supports_bts): ... this.
1472 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
1473
1474 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
1475
1476 * Makefile.in (SFILES): Add common/btrace-common.c.
1477 (COMMON_OBS): Add common/btrace-common.o.
1478 (btrace-common.o): Add build rules.
1479 * btrace.c (parse_xml_btrace): Update parameters.
1480 (parse_xml_btrace_block): Set format field.
1481 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
1482 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
1483 (btrace_compute_ftrace): Split into this and...
1484 (btrace_compute_ftrace_bts): ...this.
1485 (btrace_stitch_trace): Split into this and...
1486 (btrace_stitch_bts): ...this.
1487 * btrace.h (parse_xml_btrace): Update parameters.
1488 (make_cleanup_btrace_data): New.
1489 * common/btrace-common.c: New.
1490 * common/btrace-common.h: Include common-defs.h.
1491 (btrace_block_s): Update comment.
1492 (btrace_format): New.
1493 (btrace_format_string): New.
1494 (btrace_data_bts): New.
1495 (btrace_data): New.
1496 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
1497 * remote.c (remote_read_btrace): Update parameters.
1498 * target.c (target_read_btrace): Update parameters.
1499 * target.h (target_read_btrace): Update parameters.
1500 (target_ops)<to_read_btrace>: Update parameters.
1501 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
1502 * target-delegates.c: Regenerate.
1503 * target-debug (target_debug_print_struct_btrace_data_p): New.
1504 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
1505 (linux_read_bts): ...this.
1506 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
1507
1508 2015-02-06 Doug Evans <dje@google.com>
1509
1510 * remote-m32r-sdi.c: Include symfile.h.
1511
1512 2015-02-06 Doug Evans <dje@google.com>
1513
1514 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
1515 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
1516 to here.
1517
1518 2015-02-06 Pedro Alves <palves@redhat.com>
1519
1520 * linux-thread-db.c (find_new_threads_callback): Add debug output.
1521
1522 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
1523
1524 PR gdb/15678
1525 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
1526 (enable_count_command): Check args for NULL value.
1527
1528 2015-02-05 Doug Evans <xdje42@gmail.com>
1529
1530 * guile/scm-frame.c: Fix spelling errors in a comment.
1531
1532 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1533
1534 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
1535 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
1536 return type.
1537
1538 2015-02-04 Pedro Alves <palves@redhat.com>
1539
1540 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
1541 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
1542 returns true.
1543 (resume_stopped_resumed_lwps): Don't check whether the thread is
1544 marked as executing.
1545 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
1546
1547 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
1548
1549 * regset.h (struct regset): Add flags field.
1550 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
1551 * corelow.c (get_core_register_section): Add warning if the size
1552 exceeds the requested size and the regset does not have the
1553 REGSET_VARIABLE_SIZE flag set.
1554 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
1555 flag.
1556 * armbsd-tdep.c (armbsd_gregset): Likewise.
1557 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1558 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
1559 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
1560 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
1561
1562 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
1563
1564 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
1565 For ".reg-xstate", explicitly specify the requested section size
1566 via X86_XSTATE_SIZE instead of just 0 on input and
1567 X86_XSTATE_MAX_SIZE on output.
1568 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
1569 Likewise.
1570
1571 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
1572
1573 PR corefiles/17808:
1574 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
1575 function type, particularly its SIZE parameter.
1576 * gdbarch.h: Regenerate.
1577 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
1578 actual against required size using ">=" instead of "==".
1579 (amd64_collect_fpregset): Likewise.
1580 * i386-tdep.c (i386_supply_gregset): Likewise.
1581 (i386_collect_gregset): Likewise.
1582 (i386_supply_fpregset): Likewise.
1583 (i386_collect_fpregset): Likewise.
1584 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
1585 (mips_fill_gregset_wrapper): Likewise.
1586 (mips_supply_fpregset_wrapper): Likewise.
1587 (mips_fill_fpregset_wrapper): Likewise.
1588 (mips64_supply_gregset_wrapper): Likewise.
1589 (mips64_fill_gregset_wrapper): Likewise.
1590 (mips64_supply_fpregset_wrapper): Likewise.
1591 (mips64_fill_fpregset_wrapper): Likewise.
1592 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
1593 (am33_supply_fpregset_method): Likewise.
1594 (am33_collect_gregset_method): Likewise.
1595 (am33_collect_fpregset_method): Likewise.
1596
1597 2015-02-04 Doug Evans <dje@google.com>
1598 Pedro Alves <palves@redhat.com>
1599 Eli Zaretskii <eliz@gnu.org>
1600
1601 PR tui/17810
1602 * tui/tui-command.c (tui_refresh_cmd_win): New function.
1603 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
1604 * tui/tui-file.c: #include tui/tui-command.h.
1605 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
1606 (tui_file_flush): Refresh command window if stream is gdb_stdout.
1607 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
1608
1609 2015-02-04 Pedro Alves <palves@redhat.com>
1610
1611 Fix build breakage.
1612 * event-loop.c (gdb_do_one_event): Add default switch case.
1613
1614 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1615
1616 Filter out inferior gcc option -fpreprocessed.
1617 * compile/compile.c (filter_args): New function.
1618 (get_args): Use it.
1619
1620 2015-02-03 Pedro Alves <palves@redhat.com>
1621
1622 * event-loop.c: Don't declare nor define a queue type for
1623 gdb_event_p.
1624 (event_queue): Delete.
1625 (create_event, create_file_event, gdb_event_xfree)
1626 (initialize_event_loop, process_event): Delete.
1627 (gdb_do_one_event): Return as soon as one event is handled.
1628 (handle_file_event): Change prototype. Used the passed in
1629 file_handler pointer and ready_mask instead of looping over all
1630 file handlers.
1631 (gdb_wait_for_event): Update the poll/select timeouts before
1632 blocking. Run event handlers directly instead of queueing events.
1633 Return as soon as one event is handled.
1634 (struct async_event_handler_data): Delete.
1635 (invoke_async_event_handler): Delete.
1636 (check_async_event_handlers): Change return type to int. Run
1637 event handlers directly instead of queueing events. Return as
1638 soon as one event is handled.
1639 (handle_timer_event): Delete.
1640 (update_wait_timeout): New function, factored out from
1641 poll_timers.
1642 (poll_timers): Reimplement.
1643 * event-loop.h (initialize_event_loop): Delete declaration.
1644 * top.c (gdb_init): Don't call initialize_event_loop.
1645
1646 2015-02-03 Pedro Alves <palves@redhat.com>
1647
1648 * event-loop.c (clear_async_event_handler): New function.
1649 * event-loop.h (clear_async_event_handler): New declaration.
1650 * record-btrace.c (record_btrace_async): New function.
1651 (init_record_btrace_ops): Install record_btrace_async.
1652 * record-full.c (record_full_async): New function.
1653 (record_full_resume): Don't mark the async event source here.
1654 (init_record_full_ops): Install record_full_async.
1655 (record_full_core_resume): Don't mark the async event source here.
1656 (init_record_full_core_ops): Install record_full_async.
1657 * remote.c (remote_async): Mark and clear the async stop reply
1658 queue event-loop token as appropriate.
1659
1660 2015-02-03 Pedro Alves <palves@redhat.com>
1661
1662 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
1663 target_is_async_p instead of target_can_async.
1664 (linux_nat_wait): Use target_is_async_p instead of
1665 target_can_async. Don't enable async here.
1666 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
1667 target_is_async_p instead of target_can_async.
1668
1669 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
1670
1671 * varobj.h (lang_varobj_ops): Mention which return values need
1672 to be freed.
1673
1674 2015-02-02 Joel Brobecker <brobecker@adacore.com>
1675
1676 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
1677
1678 2015-02-02 Joel Brobecker <brobecker@adacore.com>
1679
1680 PR gdb/17856:
1681 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
1682 results found in the cache.
1683
1684 2015-02-02 Joel Brobecker <brobecker@adacore.com>
1685
1686 PR gdb/17854:
1687 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
1688 when allocating a new one.
1689
1690 2015-02-01 Tom Tromey <tom@tromey.com>
1691
1692 * MAINTAINERS: Remove myself.
1693
1694 2015-01-31 Doug Evans <xdje42@gmail.com>
1695
1696 * dwarf2read.c (process_structure_scope): Update setting of
1697 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
1698 * gdbtypes.c (internal_type_vptr_fieldno): New function.
1699 (set_type_vptr_fieldno): New function.
1700 (internal_type_vptr_basetype): New function.
1701 (set_type_vptr_basetype): New function.
1702 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
1703 TYPE_VPTR_BASETYPE.
1704 (allocate_cplus_struct_type): Initialize vptr_fieldno.
1705 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
1706 (print_cplus_stuff): ... moved here.
1707 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
1708 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
1709 moved to ...
1710 (struct cplus_struct_type): ... here. All uses updated.
1711 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
1712 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
1713 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
1714 * stabsread.c (read_tilde_fields): Update setting of
1715 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
1716
1717 2015-01-31 Doug Evans <xdje42@gmail.com>
1718
1719 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
1720 to self_p.
1721 (cp_print_class_member): Rename local domain to self_type.
1722 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
1723 domain_type to self_type.
1724 (set_die_type) <need_gnat_info>: Handle
1725 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
1726 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
1727 TYPE_SPECIFIC_SELF_TYPE.
1728 * gdbtypes.c (internal_type_self_type): New function.
1729 (set_type_self_type): New function.
1730 (smash_to_memberptr_type): Rename parameter domain to self_type.
1731 Update setting of TYPE_SELF_TYPE.
1732 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
1733 (smash_to_method_type): Rename parameter domain to self_type.
1734 Update setting of TYPE_SELF_TYPE.
1735 (check_stub_method): Call smash_to_method_type.
1736 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
1737 (copy_type_recursive): Ditto.
1738 * gdbtypes.h (enum type_specific_kind): New value
1739 TYPE_SPECIFIC_SELF_TYPE.
1740 (struct main_type) <type_specific>: New member self_type.
1741 (struct cplus_struct_type) <fn_field.type>: Update comment.
1742 (TYPE_SELF_TYPE): Rewrite.
1743 (internal_type_self_type, set_type_self_type): Declare.
1744 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
1745 self_type.
1746 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
1747 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
1748 TYPE_TARGET_TYPE.
1749 * stabsread.c (read_member_functions): Mark methods with
1750 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
1751 TYPE_SELF_TYPE.
1752
1753 2015-01-31 Doug Evans <xdje42@gmail.com>
1754
1755 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
1756 All uses updated.
1757
1758 2015-01-31 Doug Evans <xdje42@gmail.com>
1759
1760 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
1761 or unions. Return zero if union.
1762 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
1763 (gnuv3_rtti_type): Pass already-check_typedef'd value to
1764 gnuv3_get_vtable.
1765 (compute_vtable_size): Assert only passed structs.
1766 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
1767
1768 2015-01-31 Doug Evans <xdje42@gmail.com>
1769
1770 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
1771 kinds.
1772
1773 2015-01-31 Gary Benson <gbenson@redhat.com>
1774 Doug Evans <dje@google.com>
1775
1776 PR cli/9007
1777 PR cli/11920
1778 PR cli/15548
1779 * cli/cli-cmds.c (complete_command): Notify user if max-completions
1780 reached.
1781 * common/common-exceptions.h (enum errors)
1782 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
1783 * completer.h (get_max_completions_reached_message): New declaration.
1784 (max_completions): Likewise.
1785 (completion_tracker_t): New typedef.
1786 (new_completion_tracker): New declaration.
1787 (make_cleanup_free_completion_tracker): Likewise.
1788 (maybe_add_completion_enum): New enum.
1789 (maybe_add_completion): New declaration.
1790 (throw_max_completions_reached_error): Likewise.
1791 * completer.c (max_completions): New global variable.
1792 (new_completion_tracker): New function.
1793 (free_completion_tracker): Likewise.
1794 (make_cleanup_free_completion_tracker): Likewise.
1795 (maybe_add_completions): Likewise.
1796 (throw_max_completions_reached_error): Likewise.
1797 (complete_line): Remove duplicates and limit result to max_completions
1798 entries.
1799 (get_max_completions_reached_message): New function.
1800 (gdb_display_match_list): Handle max_completions.
1801 (_initialize_completer): New declaration and function.
1802 * symtab.c: Include completer.h.
1803 (completion_tracker): New static variable.
1804 (completion_list_add_name): Call maybe_add_completion.
1805 (default_make_symbol_completion_list_break_on_1): Renamed from
1806 default_make_symbol_completion_list_break_on. Maintain
1807 completion_tracker across calls to completion_list_add_name.
1808 (default_make_symbol_completion_list_break_on): New function.
1809 * top.c (init_main): Set rl_completion_display_matches_hook.
1810 * tui/tui-io.c: Include completer.h.
1811 (tui_old_rl_display_matches_hook): New static global.
1812 (tui_rl_display_match_list): Notify user if max-completions reached.
1813 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
1814 * NEWS (New Options): Mention set/show max-completions.
1815
1816 2015-01-31 Gary Benson <gbenson@redhat.com>
1817
1818 * symtab.c (struct add_name_data) <code>: New field.
1819 Updated comments.
1820 (add_symtab_completions): New function.
1821 (symtab_expansion_callback): Likewise.
1822 (default_make_symbol_completion_list_break_on): Set datum.code.
1823 Move minimal symbol scan before calling expand_symtabs_matching.
1824 Scan known primary symtabs for externs and statics before calling
1825 expand_symtabs_matching. Pass symtab_expansion_callback as
1826 expansion_notify argument to expand_symtabs_matching. Do not scan
1827 primary symtabs for externs and statics after calling
1828 expand_symtabs_matching.
1829
1830 2015-01-31 Gary Benson <gbenson@redhat.com>
1831
1832 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
1833 (struct quick_symbol_functions) <expand_symtabs_matching>:
1834 New argument expansion_notify. All uses updated.
1835 (expand_symtabs_matching): New argument expansion_notify.
1836 All uses updated.
1837 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1838 Also print expansion notify.
1839 * symtab.c (expand_symtabs_matching_via_partial): Call
1840 expansion_notify whenever a partial symbol table is expanded.
1841 * dwarf2read.c (dw2_expand_symtabs_matching): Call
1842 expansion_notify whenever a symbol table is instantiated.
1843
1844 2015-01-31 Doug Evans <xdje42@gmail.com>
1845
1846 * cli-out.c: #include completer.h, readline/readline.h.
1847 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
1848 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
1849 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
1850 * cli-out.h (cli_display_match_list): Declare.
1851 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
1852 (ELLIPSIS_LEN): Ditto.
1853 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
1854 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
1855 (gdb_fnprint, gdb_print_filename): Ditto.
1856 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
1857 (gdb_display_match_list): Ditto.
1858 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
1859 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
1860 (mld_beep_ftype, mld_read_key_ftype): Ditto.
1861 (match_list_displayer): New struct.
1862 (gdb_display_match_list): Declare.
1863 * top.c (init_main): Set rl_completion_display_matches_hook.
1864 * tui/tui-io.c: #include completer.h.
1865 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
1866 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
1867 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
1868 (tui_mld_getc, tui_mld_read_key): Ditto.
1869 (tui_rl_display_match_list): Rewrite.
1870 (tui_handle_resize_during_io): New arg for_completion. All callers
1871 updated.
1872
1873 2015-01-31 Doug Evans <xdje42@gmail.com>
1874
1875 Add symbol lookup cache.
1876 * NEWS: Document new options and commands.
1877 * symtab.c (symbol_cache_key): New static global.
1878 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
1879 (SYMBOL_LOOKUP_FAILED): New macro.
1880 (symbol_cache_slot_state): New enum.
1881 (block_symbol_cache): New struct.
1882 (symbol_cache): New struct.
1883 (new_symbol_cache_size, symbol_cache_size): New static globals.
1884 (hash_symbol_entry, eq_symbol_entry): New functions.
1885 (symbol_cache_byte_size, resize_symbol_cache): New functions.
1886 (make_symbol_cache, free_symbol_cache): New functions.
1887 (get_symbol_cache, symbol_cache_cleanup): New function.
1888 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
1889 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
1890 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
1891 (symbol_cache_flush, symbol_cache_dump): New functions.
1892 (maintenance_print_symbol_cache): New function.
1893 (maintenance_flush_symbol_cache): New function.
1894 (symbol_cache_stats): New function.
1895 (maintenance_print_symbol_cache_statistics): New function.
1896 (symtab_new_objfile_observer): New function.
1897 (symtab_free_objfile_observer): New function.
1898 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
1899 (_initialize_symtab): Init symbol_cache_key. New parameter
1900 maint symbol-cache-size. New maint commands print symbol-cache,
1901 print symbol-cache-statistics, flush-symbol-cache.
1902 Install new_objfile, free_objfile observers.
1903
1904 2015-01-31 Joel Brobecker <brobecker@adacore.com>
1905
1906 PR symtab/17855
1907 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
1908 to end.
1909
1910 2015-01-31 Doug Evans <xdje42@gmail.com>
1911
1912 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
1913 * auto-load.c: #include ctype.h.
1914 (struct auto_load_pspace_info): Replace member loaded_scripts with
1915 new members loaded_script_files, loaded_script_texts.
1916 (auto_load_pspace_data_cleanup): Update.
1917 (init_loaded_scripts_info): Update.
1918 (get_auto_load_pspace_data_for_loading): Update.
1919 (maybe_add_script_file): Renamed from maybe_add_script. All callers
1920 updated.
1921 (maybe_add_script_text): New function.
1922 (clear_section_scripts): Update.
1923 (source_script_file, execute_script_contents): New functions.
1924 (source_section_scripts): Add support for
1925 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
1926 (print_scripts): New function.
1927 (auto_load_info_scripts): Also print inlined scripts.
1928 (maybe_print_unsupported_script_warning): Renamed from
1929 unsupported_script_warning_print. All callers updated.
1930 (maybe_print_script_not_found_warning): Renamed from
1931 script_not_found_warning_print. All callers updated.
1932 * extension-priv.h (struct extension_language_script_ops): New member
1933 objfile_script_executor.
1934 * extension.c (ext_lang_objfile_script_executor): New function.
1935 * extension.h (objfile_script_executor_func): New typedef.
1936 (ext_lang_objfile_script_executor): Declare.
1937 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
1938 * guile/guile.c (guile_extension_script_ops): Update.
1939 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
1940 * python/python.c (python_extension_script_ops): Update.
1941 (gdbpy_execute_objfile_script): New function.
1942
1943 2015-01-31 Eli Zaretskii <eliz@gnu.org>
1944
1945 * tui/tui-io.c (tui_expand_tabs): New function.
1946 (tui_puts, tui_redisplay_readline): Expand TABs into the
1947 appropriate number of spaces.
1948 * tui/tui-regs.c: Include tui-io.h.
1949 (tui_register_format): Call tui_expand_tabs to expand TABs into
1950 the appropriate number of spaces.
1951 * tui/tui-io.h: Add prototype for tui_expand_tabs.
1952
1953 2015-01-30 Doug Evans <dje@google.com>
1954
1955 * NEWS: "info source" command now display producer string if present.
1956 * source.c (source_info): Print producer string if present.
1957
1958 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
1959
1960 * varobj.c (varobj_delete): Fix comment.
1961
1962 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
1963
1964 * varobj.c (create_child): Modify comment.
1965
1966 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
1967
1968 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
1969 parameter.
1970 (ada_name_of_variable): Same.
1971 (ada_path_expr_of_child): Same.
1972 (ada_value_of_variable): Same.
1973 (ada_value_is_changeable_p): Same.
1974 (ada_value_has_mutated): Same.
1975 * c-varobj.c (varobj_is_anonymous_child): Same.
1976 (c_is_path_expr_parent): Same.
1977 (c_number_of_children): Same.
1978 (c_name_of_variable): Same.
1979 (c_path_expr_of_child): Same.
1980 (get_type): Same.
1981 (c_value_of_variable): Same.
1982 (cplus_number_of_children): Same.
1983 (cplus_name_of_variable): Same.
1984 (cplus_path_expr_of_child): Same.
1985 (cplus_value_of_variable): Same.
1986 * jv-varobj.c (java_number_of_children): Same.
1987 (java_name_of_variable): Same.
1988 (java_path_expr_of_child): Same.
1989 (java_value_of_variable): Same.
1990 * varobj.c (number_of_children): Same.
1991 (name_of_variable): Same.
1992 (is_root_p): Same.
1993 (varobj_ensure_python_env): Same.
1994 (varobj_get_objname): Same.
1995 (varobj_get_expression): Same.
1996 (varobj_get_display_format): Same.
1997 (varobj_get_display_hint): Same.
1998 (varobj_has_more): Same.
1999 (varobj_get_thread_id): Same.
2000 (varobj_get_frozen): Same.
2001 (dynamic_varobj_has_child_method): Same.
2002 (varobj_get_gdb_type): Same.
2003 (is_path_expr_parent): Same.
2004 (varobj_default_is_path_expr_parent): Same.
2005 (varobj_get_language): Same.
2006 (varobj_get_attributes): Same.
2007 (varobj_is_dynamic_p): Same.
2008 (varobj_get_child_range): Same.
2009 (varobj_value_has_mutated): Same.
2010 (varobj_get_value_type): Same.
2011 (number_of_children): Same.
2012 (name_of_variable): Same.
2013 (check_scope): Same.
2014 (varobj_editable_p): Same.
2015 (varobj_value_is_changeable_p): Same.
2016 (varobj_floating_p): Same.
2017 (varobj_default_value_is_changeable_p): Same.
2018
2019 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
2020
2021 * varobj.c (varobj_get_path_expr): Set var->path_expr.
2022 * c-varobj.c (c_path_expr_of_child): Set local var instead of
2023 child->path_expr.
2024 (cplus_path_expr_of_child): Same.
2025
2026 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
2027
2028 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
2029 result.
2030 (mi_cmd_var_info_expression): Same.
2031 * varobj.c (varobj_get_expression): Mention in the comment that
2032 the result must by freed by the caller.
2033
2034 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
2035
2036 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
2037 varobj_get_type.
2038 (varobj_update_one): Same.
2039 * varobj.c (update_type_if_necessary): Free curr_type_str and
2040 new_type_str.
2041 (varobj_get_type): Specify in comment that the result needs to be
2042 freed by the caller.
2043
2044 2015-01-29 Doug Evans <dje@google.com>
2045
2046 PR symtab/17890
2047 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
2048
2049 2015-01-25 Mark Wielaard <mjw@redhat.com>
2050
2051 * dwarf2read.c (checkproducer): Call producer_is_gcc.
2052 * utils.c (producer_is_gcc_ge_4): Likewise.
2053 (producer_is_gcc): New function.
2054 * utils.h (producer_is_gcc): New declaration.
2055
2056 2015-01-29 Joel Brobecker <brobecker@adacore.com>
2057
2058 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
2059 kind.
2060 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
2061 parameter by "addr_stack" parameter.
2062 (resolve_dynamic_range): Replace "addr" parameter by
2063 "stack_addr" parameter. Update function documentation.
2064 Update code accordingly.
2065 (resolve_dynamic_array, resolve_dynamic_union)
2066 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
2067 (resolve_dynamic_type): Update code, following the changes made
2068 to resolve_dynamic_type_internal's interface.
2069 * dwarf2loc.h (struct property_addr_info): New.
2070 (dwarf2_evaluate_property): Replace "address" parameter
2071 by "addr_stack" parameter. Adjust function documentation.
2072 (struct dwarf2_offset_baton): New.
2073 (struct dwarf2_property_baton): Update documentation of
2074 field "referenced_type" to be more general. New field
2075 "offset_info" in union data field.
2076 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
2077 parameter by "addr_stack" parameter. Adjust code accordingly.
2078 Add support for PROP_ADDR_OFFSET properties.
2079 * dwarf2read.c (attr_to_dynamic_prop): Add support for
2080 DW_AT_data_member_location attributes as well. Use case
2081 statements instead of if/else condition.
2082
2083 2015-01-29 Joel Brobecker <brobecker@adacore.com>
2084
2085 * ada-varobj.c (ada_varobj_get_array_number_of_children):
2086 Return zero if PARENT_VALUE is NULL and parent_type's
2087 range type is dynamic.
2088
2089 2015-01-29 Joel Brobecker <brobecker@adacore.com>
2090
2091 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
2092 nonzero if the type's subtype is dynamic.
2093 (resolve_dynamic_range): Also resolve the range's subtype.
2094
2095 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
2096
2097 Pushed by Joel Brobecker <brobecker@adacore.com>.
2098 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
2099
2100 2015-01-27 Doug Evans <dje@google.com>
2101
2102 * NEWS: Mention gdb.Objfile.username.
2103 * python/py-objfile.c (objfpy_get_username): New function.
2104 (objfile_getset): Add "username".
2105
2106 2015-01-24 Mark Wielaard <mjw@redhat.com>
2107
2108 * stack.c (return_command): Markup warning message with _.
2109
2110 2015-01-24 Doug Evans <xdje42@gmail.com>
2111
2112 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
2113
2114 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2115
2116 Fix 100x slowdown regression on DWZ files.
2117 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
2118 (struct line_header): Add offset and offset_in_dwz.
2119 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
2120 (free_line_header_voidp): New declaration.
2121 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
2122 functions.
2123 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
2124 (handle_DW_AT_stmt_list): Use line_header_hash.
2125 (free_line_header_voidp): New function.
2126 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
2127 (dwarf_decode_lines): New parameter decode_mapping, use it.
2128 (dwarf2_free_objfile): Free line_header_hash.
2129
2130 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
2131
2132 PR gdb/17416
2133 * valops.c (value_rtti_indirect_type): Catch exception thrown by
2134 value_ind.
2135
2136 2015-01-15 Mark Wielaard <mjw@redhat.com>
2137
2138 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
2139 DW_AT_noreturn.
2140 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
2141 calling_convention an 8 bit bit field.
2142 (TYPE_NO_RETURN): New macro.
2143 * infcmd.c (finish_command): Query if function does not return
2144 normally.
2145 * stack.c (return_command): Likewise.
2146
2147 2015-01-23 Pedro Alves <palves@redhat.com>
2148
2149 * linux-nat.c (linux_is_async_p): New macro.
2150 (linux_nat_is_async_p):
2151 (linux_nat_terminal_inferior): Check whether the target can async
2152 instead of whether it is already async.
2153 (linux_nat_terminal_ours): Don't check whether the target is
2154 async.
2155 (linux_async_pipe): Use linux_is_async_p.
2156
2157 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2158
2159 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
2160 '-ascending'.
2161 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
2162 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
2163 Sort tp_array using tp_array_compar.
2164 (_initialize_thread): Extend thread_apply_all_command help.
2165
2166 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2167
2168 * corelow.c (core_open): Call also thread_command.
2169 * gdbthread.h (thread_command): New prototype moved from ...
2170 * thread.c (thread_command): ... here.
2171 (thread_command): Make it global.
2172
2173 2015-01-22 Pedro Alves <palves@redhat.com>
2174
2175 * configure.ac [*mingw32*]: Check $curses_found instead of
2176 $prefer_curses.
2177 * configure: Regenerate.
2178 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
2179 HAVE_NCURSES_NCURSES_H checks.
2180
2181 2015-01-22 Eli Zaretskii <eliz@gnu.org>
2182
2183 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
2184 fails with the 1st arg NULL, try again with "unknown". Don't test
2185 the "cup" capability: it isn't supported by the Windows port of
2186 ncurses, but the Windows console driver is still capable of
2187 supporting TUI.
2188
2189 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2190
2191 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
2192
2193 2015-01-22 Eli Zaretskii <eliz@gnu.org>
2194
2195 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2196 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
2197 reason that "make TAGS" is broken.
2198
2199 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
2200
2201 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
2202 and check additional store instructions.
2203
2204 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
2205
2206 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
2207
2208 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
2209
2210 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
2211 ppc_canonicalize_syscall, ppc_linux_syscall_record,
2212 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
2213 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
2214 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
2215 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
2216 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
2217 ppc_process_record_op19, ppc_process_record_op31,
2218 ppc_process_record_op59, ppc_process_record_op60,
2219 ppc_process_record_op63): Likewise.
2220
2221 2015-01-20 Joel Brobecker <brobecker@adacore.com>
2222
2223 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
2224 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
2225 strerror.
2226
2227 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
2228
2229 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
2230 ppc_process_record_op31, ppc_process_record_op59,
2231 ppc_process_record_op60, ppc_process_record_op63,
2232 ppc_process_record): Fix -Wformat warning.
2233 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
2234 Remove unused variables.
2235
2236 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
2237
2238 * MAINTAINERS (Write After Approval): Add "Chen Gang".
2239
2240 2015-01-19 Eli Zaretskii <eliz@gnu.org>
2241
2242 * configure.ac [*mingw32*]: Only add windows-termcap.o to
2243 CONFIG_OBS if not building with a curses library.
2244 * configure: Regenerate.
2245
2246 * windows-termcap.c: Include defs.h. Make the whole body empty if
2247 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
2248 HAVE_NCURSES_NCURSES_H is defined.
2249
2250 2015-01-19 Joel Brobecker <brobecker@adacore.com>
2251
2252 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
2253 from end of line to start of next line.
2254
2255 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
2256
2257 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
2258 Scan PLT stub backward for reverse debugging.
2259 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
2260
2261 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
2262 Ulrich Weigand <uweigand@de.ibm.com>
2263
2264 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
2265 gdb_target_obs.
2266 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
2267 record.
2268 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
2269 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
2270 (ppc_linux_init_abi): Set process_record, process_record_signal.
2271 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
2272 ppc_linux_record_tdep to gdbarch_tdep.
2273 (ppc_process_record): New declaration.
2274 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
2275 ppc_process_record_op19, ppc_process_record_op31,
2276 ppc_process_record_op59, ppc_process_record_op60,
2277 ppc_process_record_op63, ppc_process_record): New functions.
2278
2279 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
2280
2281 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
2282 rs6000_in_function_epilogue_frame_p and add an argument
2283 for frame_info.
2284 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
2285 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
2286 New functions.
2287 (rs6000_epilogue_frame_unwind): New.
2288 (rs6000_gdbarch_init): Append epilogue unwinder.
2289
2290 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
2291
2292 * nat/linux-personality.c: Replace "#ifndef
2293 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
2294 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
2295 systems.
2296
2297 2015-01-16 Eli Zaretskii <eliz@gnu.org>
2298
2299 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
2300 functions.
2301 (_initialize_tui_win) <border-kind, border-mode>:
2302 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
2303 (tui_set_tab_width_command): Fix the commentary.
2304
2305 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
2306
2307 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
2308 Doc fix.
2309 (tui_set_tab_width_command): Delete and recreate the source and
2310 the disassembly windows, to show the effect of the changed tab
2311 size immediately.
2312
2313 * tui/tui-data.h (LINE_PREFIX): Make shorter
2314 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
2315 "Thread NNNNN.XXXX" thread ID notation on Windows.
2316
2317 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2318
2319 Fix gcc-5 compilation.
2320 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
2321
2322 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
2323
2324 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
2325 (linux-personality.o): New rule.
2326 * common/common-defs.h: Include <stdint.h>.
2327 * config/aarch64/linux.mh (NATDEPFILES): Include
2328 linux-personality.o.
2329 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2330 * config/arm/linux.mh (NATDEPFILES): Likewise.
2331 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2332 * config/i386/linux.mh (NATDEPFILES): Likewise.
2333 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2334 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2335 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2336 * config/mips/linux.mh (NATDEPFILES): Likewise.
2337 * config/pa/linux.mh (NATDEPFILES): Likewise.
2338 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2339 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2340 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2341 * config/s390/linux.mh (NATDEPFILES): Likewise.
2342 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2343 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2344 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2345 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2346 * defs.h: Remove #include <stdint.h> (moved to
2347 common/common-defs.h).
2348 * linux-nat.c: Include nat/linux-personality.h. Remove #include
2349 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
2350 nat/linux-personality.c).
2351 (linux_nat_create_inferior): Remove code to disable address space
2352 randomization (moved to nat/linux-personality.c). Create cleanup
2353 to disable address space randomization.
2354 * nat/linux-personality.c: New file.
2355 * nat/linux-personality.h: Likewise.
2356
2357 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
2358
2359 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
2360 common/posix-strerror.c.
2361 (posix-strerror.o): New rule.
2362 (mingw-strerror.o): Likewise.
2363 * common/common-utils.h (safe_strerror): Move prototype to here,
2364 from utils.h.
2365 * common/common.host: New file.
2366 * common/mingw-strerror.c: Likewise.
2367 * common/posix-strerror.c: Likewise.
2368 * configure: Regenerated.
2369 * configure.ac: Source common/common.host. Add variable
2370 common_host_obs to gdb_host_obs.
2371 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
2372 gdb/common/posix-strerror.c when warning about the use of
2373 strerror.
2374 * mingw-hdep.c (safe_strerror): Remove definition; move it to
2375 common/mingw-strerror.c.
2376 * posix-hdep.c (safe_strerror): Remove definition; move it to
2377 common/posix-hdep.c.
2378 * utils.h (safe_strerror): Remove prototype; move to
2379 common/common-utils.h.
2380
2381 2015-01-15 Joel Brobecker <brobecker@adacore.com>
2382
2383 GDB 7.8.2 released.
2384
2385 2015-01-15 Joel Brobecker <brobecker@adacore.com>
2386
2387 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
2388 ___XA type if the array has already been fixed.
2389
2390 2015-01-14 Yao Qi <yao@codesourcery.com>
2391
2392 * Makefile.in (ppc-linux.o): New rule.
2393 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
2394 * configure.ac: AC_CHECK_FUNCS(getauxval).
2395 * config.in: Re-generated.
2396 * configure: Re-generated.
2397 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
2398 Declare.
2399 * nat/ppc-linux.c: New file.
2400 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
2401 Call ppc64_64bit_inferior_p.
2402
2403 2015-01-14 Yao Qi <yao@codesourcery.com>
2404
2405 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
2406 nat/ppc-linux.h.
2407 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
2408 (PPC_FEATURE_HAS_DFP): Likewise.
2409 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
2410 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
2411 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
2412 Include "nat/ppc-linux.h".
2413 * nat/ppc-linux.h: New file.
2414 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
2415
2416 2015-01-14 Pedro Alves <palves@redhat.com>
2417
2418 PR gdb/17525
2419 * breakpoint.c: Include "interps.h".
2420 (bpstat_do_actions_1): Also check whether the interpreter is
2421 async.
2422
2423 2015-01-14 Pedro Alves <palves@redhat.com>
2424
2425 PR cli/17828
2426 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
2427 reinstall if the interpreter is sync.
2428
2429 2015-01-13 Doug Evans <dje@google.com>
2430
2431 * objfiles.c (objfile_filename): New function.
2432 * objfiles.h (objfile_filename): Declare it.
2433 (objfile_name): Add function comment.
2434 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
2435 bfd file name (which may be realpath'd), and the original name.
2436
2437 2015-01-13 Joel Brobecker <brobecker@adacore.com>
2438
2439 * NEWS: Create a new section for the next release branch.
2440 Rename the section of the current branch, now that it has
2441 been cut.
2442
2443 2015-01-13 Joel Brobecker <brobecker@adacore.com>
2444
2445 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
2446 * version.in: Bump version to 7.9.50.DATE-cvs.
2447
2448 2015-01-13 Joel Brobecker <brobecker@adacore.com>
2449
2450 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
2451 Remove trailing new-line in argument of call to warning.
2452
2453 2015-01-13 Joel Brobecker <brobecker@adacore.com>
2454
2455 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
2456 new-line in argument of call to "warning".
2457
2458 2015-01-13 Joel Brobecker <brobecker@adacore.com>
2459
2460 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
2461 in static block, then try searching for primitive types.
2462
2463 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
2464
2465 * top.h (gdb_add_history): Declare.
2466 * top.c (command_count): New variable.
2467 (gdb_add_history): New function.
2468 (gdb_safe_append_history): New static function.
2469 (quit_force): Call it.
2470 (command_line_input): Use gdb_add_history instead of
2471 add_history.
2472 * event-top.c (command_line_handler): Likewise.
2473
2474 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
2475
2476 PR gdb/17046
2477 * darwin-nat.c: Replace <machine/setjmp.h> #include by
2478 <setjmp.h> #include.
2479
2480 2015-01-11 Doug Evans <xdje42@gmail.com>
2481
2482 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
2483
2484 2015-01-11 Doug Evans <xdje42@gmail.com>
2485
2486 PR gdb/15830
2487 * NEWS: The "maint demangle" command is renamed as "demangle".
2488 * demangle.c: #include cli/cli-utils.h, language.h.
2489 (demangle_command): New function.
2490 (_initialize_demangle): Add new command "demangle".
2491 * maint.c (maintenance_demangle): Stub out.
2492 (_initialize_maint_cmds): Update help text for "maint demangle",
2493 and mark as deprecated.
2494
2495 2015-01-11 Mark Kettenis <kettenis@gnu.org>
2496
2497 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
2498 inferior_thread is a function.
2499
2500 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
2501
2502 * Makefile.in (.y.c): Don't munge yacc's #line
2503 directives.
2504
2505 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
2506
2507 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
2508 to prompt for input.
2509 * tui/tui-hooks.c (tui_query_hook): Remove.
2510 (tui_install_hooks): Don't set deprecated_query_hook.
2511 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
2512 height calculation. Always update the command window's cur_line.
2513
2514 2015-01-09 Pedro Alves <palves@redhat.com>
2515
2516 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
2517 function.
2518 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
2519 declaration.
2520 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
2521 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
2522 stop_reason.
2523 (check_stopped_by_watchpoint): New function.
2524 (save_sigtrap): Reimplement.
2525 (linux_nat_stopped_by_watchpoint): Adjust.
2526 (linux_nat_lp_status_is_event): Delete.
2527 (stop_wait_callback): Only call save_sigtrap after storing the
2528 pending status.
2529 (status_callback): If the thread had been stopped for a breakpoint
2530 that has since been removed, discard the event and resume the LWP.
2531 (count_events_callback, select_event_lwp_callback): Use
2532 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
2533 (cancel_breakpoint): Rename to ...
2534 (check_stopped_by_breakpoint): ... this. Record whether the LWP
2535 stopped for a software breakpoint or hardware breakpoint.
2536 (select_event_lwp): Only give preference to the stepping LWP in
2537 all-stop mode. Adjust comments.
2538 (stop_and_resume_callback): Remove references to new_pending_p.
2539 (linux_nat_filter_event): Likewise. Leave exit events of the
2540 leader thread pending here. Handle signal short circuiting here.
2541 Only call save_sigtrap after storing the pending waitstatus.
2542 (linux_nat_wait_1): Remove 'retry' label. Remove references to
2543 new_pending. Don't handle leaving events the caller is not
2544 interested in pending here, nor handle signal short-circuiting
2545 here. Also give equal priority to all LWPs that have had events
2546 in non-stop mode. If reporting a software breakpoint event,
2547 unadjust the LWP's PC.
2548 * linux-nat.h (enum lwp_stop_reason): New.
2549 (struct lwp_info) <stop_pc>: New field.
2550 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
2551 (struct lwp_info) <stop_reason>: New field.
2552 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
2553
2554 2015-01-09 Pedro Alves <palves@redhat.com>
2555
2556 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
2557 Set the LWP's 'resumed' flag.
2558
2559 2015-01-09 Pedro Alves <palves@redhat.com>
2560
2561 * linux-nat.c (linux_resume_one_lwp): New function.
2562 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
2563 (linux_nat_resume): Use lwp_status_pending_p and
2564 linux_resume_one_lwp.
2565 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
2566 (linux_handle_extended_wait): Use linux_resume_one_lwp.
2567 (status_callback, running_callback): Use lwp_status_pending_p.
2568 (lwp_status_pending_p): New function.
2569 (stop_and_resume_callback): Use lwp_status_pending_p.
2570 (linux_nat_filter_event): Use linux_resume_one_lwp.
2571 (linux_nat_wait_1): Always use status_callback to look for an LWP
2572 with a pending status. Use linux_resume_one_lwp.
2573 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
2574 linux_resume_one_lwp.
2575
2576 2015-01-09 Pedro Alves <palves@redhat.com>
2577
2578 * breakpoint.c (bp_location_inserted_here_p): New function,
2579 factored out from ...
2580 (breakpoint_inserted_here_p): ... here. Use
2581 ALL_BP_LOCATIONS_AT_ADDR.
2582 (software_breakpoint_inserted_here_p): Use
2583 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
2584
2585 2014-01-09 Pedro Alves <palves@redhat.com>
2586
2587 Skip enabling event reporting if the kernel supports
2588 PTRACE_EVENT_CLONE.
2589 * linux-thread-db.c: Include "nat/linux-ptrace.h".
2590 (thread_db_use_events): New function.
2591 (try_thread_db_load_1): Check thread_db_use_events before enabling
2592 event reporting.
2593 (update_thread_state): New function.
2594 (attach_thread): Use it. Check thread_db_use_events before
2595 enabling event reporting.
2596 (thread_db_detach): Check thread_db_use_events before disabling
2597 event reporting.
2598 (find_new_threads_callback): Check thread_db_use_events before
2599 enabling event reporting. Update the thread's state if not using
2600 libthread_db events.
2601
2602 2015-01-09 Pedro Alves <palves@redhat.com>
2603
2604 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
2605 about to wait for is > 0.
2606 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
2607 the kernel thread ID is -1.
2608
2609 2015-01-09 Pedro Alves <palves@redhat.com>
2610
2611 * linux-nat.c (attach_proc_task_lwp_callback): New function.
2612 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
2613 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
2614 ptrace option flags.
2615 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
2616 field.
2617 * nat/linux-procfs.c: Include <dirent.h>.
2618 (linux_proc_get_int): New parameter "warn". Handle it.
2619 (linux_proc_get_tgid): Adjust.
2620 (linux_proc_get_tracerpid): Rename to ...
2621 (linux_proc_get_tracerpid_nowarn): ... this.
2622 (linux_proc_pid_get_state): New function, factored out from
2623 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
2624 and handle it.
2625 (linux_proc_pid_is_gone): New function.
2626 (linux_proc_pid_is_stopped): Adjust.
2627 (linux_proc_pid_is_zombie_maybe_warn)
2628 (linux_proc_pid_is_zombie_nowarn): New functions.
2629 (linux_proc_pid_is_zombie): Use
2630 linux_proc_pid_is_zombie_maybe_warn.
2631 (linux_proc_attach_tgid_threads): New function.
2632 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
2633 (linux_proc_get_tracerpid): Rename to ...
2634 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
2635 (linux_proc_pid_is_gone): New declaration.
2636 (linux_proc_pid_is_zombie): Update comment.
2637 (linux_proc_pid_is_zombie_nowarn): New declaration.
2638 (linux_proc_attach_lwp_func): New typedef.
2639 (linux_proc_attach_tgid_threads): New declaration.
2640 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
2641 use nowarn functions.
2642 (linux_ptrace_attach_fail_reason_string): Move here from
2643 gdbserver/linux-low.c and rename.
2644 (ptrace_supports_feature): If the current ptrace options are not
2645 known yet, check them now, instead of asserting.
2646 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
2647 Declare.
2648
2649 2015-01-09 Pedro Alves <palves@redhat.com>
2650
2651 * linux-thread-db.c (thread_db_find_new_threads_silently)
2652 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
2653 (find_new_threads_once): Print debug output on gdb_stdlog.
2654
2655 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
2656 Pedro Alves <palves@redhat.com>
2657
2658 * compile/compile.c: Include "gdb_wait.h".
2659 (do_rmdir): Check return value, and free 'zap'.
2660
2661 2015-01-08 Pedro Alves <palves@redhat.com>
2662 Yao Qi <yao@codesourcery.com>
2663
2664 * dwarf2loc.c (indirect_pieced_value): Don't call
2665 gdb_sign_extend. Call extract_signed_integer instead.
2666 * utils.c (gdb_sign_extend): Remove.
2667 * utils.h (gdb_sign_extend): Remove declaration.
2668
2669 2015-01-07 Pierre Muller <muller@sourceware.org>
2670
2671 PR symtab/17811
2672 * stabsread.c (define_symbol): Set language for C++ special symbols.
2673
2674 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
2675
2676 * inflow.c (initial_gdb_ttystate): Tweak comment.
2677
2678 2015-01-07 Joel Brobecker <brobecker@adacore.com>
2679
2680 * inflow.c (set_initial_gdb_ttystate): Add empty line after
2681 comment documenting function.
2682
2683 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
2684
2685 * terminal.h (set_initial_gdb_ttystate): Declare.
2686 * inflow.c (initial_gdb_ttystate): New static variable.
2687 (set_initial_gdb_ttystate): New setter.
2688 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
2689 instead of our current terminal state.
2690 * top.c (gdb_init): Call set_initial_gdb_ttystate.
2691
2692 2015-01-07 Joel Brobecker <brobecker@adacore.com>
2693
2694 * guile/scm-type.c (tyscm_array_1): Add comment.
2695 * python/py-type.c (typy_array_1): Add comment.
2696
2697 2015-01-06 Joel Brobecker <brobecker@adacore.com>
2698
2699 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
2700 error if N2 is equal to N1 - 1.
2701
2702 2015-01-06 Joel Brobecker <brobecker@adacore.com>
2703
2704 * python/py-type.c (typy_array_1): Do not raise negative-length
2705 exception if N2 is equal to N1 - 1.
2706
2707 2015-01-03 Doug Evans <xdje42@gmail.com>
2708
2709 * c-exp.y: Whitespace cleanup.
2710 (classify_inner_name): Remove extra ;.
2711
2712 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
2713
2714 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
2715 offset signed.
2716
2717 2015-01-02 Doug Evans <dje@google.com>
2718
2719 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
2720
2721 2015-01-02 Doug Evans <dje@google.com>
2722
2723 * symtab.h (struct symbol): Fix typo in comment.
2724
2725 2015-01-01 Joel Brobecker <brobecker@adacore.com>
2726
2727 Update year range in copyright notice of all files.
2728
2729 2015-01-01 Joel Brobecker <brobecker@adacore.com>
2730
2731 * top.c (print_gdb_version): Update copyright year to 2015.
2732
2733 2015-01-01 Joel Brobecker <brobecker@adacore.com>
2734
2735 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
2736
2737 For older changes see ChangeLog-2014.
2738 \f
2739 Local Variables:
2740 mode: change-log
2741 left-margin: 8
2742 fill-column: 74
2743 version-control: never
2744 coding: utf-8
2745 End: