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