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