gdb/DWARF: Support for arrays whose bound is a discriminant.
[binutils-gdb.git] / gdb / ChangeLog
1 2015-01-29 Joel Brobecker <brobecker@adacore.com>
2
3 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
4 kind.
5 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
6 parameter by "addr_stack" parameter.
7 (resolve_dynamic_range): Replace "addr" parameter by
8 "stack_addr" parameter. Update function documentation.
9 Update code accordingly.
10 (resolve_dynamic_array, resolve_dynamic_union)
11 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12 (resolve_dynamic_type): Update code, following the changes made
13 to resolve_dynamic_type_internal's interface.
14 * dwarf2loc.h (struct property_addr_info): New.
15 (dwarf2_evaluate_property): Replace "address" parameter
16 by "addr_stack" parameter. Adjust function documentation.
17 (struct dwarf2_offset_baton): New.
18 (struct dwarf2_property_baton): Update documentation of
19 field "referenced_type" to be more general. New field
20 "offset_info" in union data field.
21 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
22 parameter by "addr_stack" parameter. Adjust code accordingly.
23 Add support for PROP_ADDR_OFFSET properties.
24 * dwarf2read.c (attr_to_dynamic_prop): Add support for
25 DW_AT_data_member_location attributes as well. Use case
26 statements instead of if/else condition.
27
28 2015-01-29 Joel Brobecker <brobecker@adacore.com>
29
30 * ada-varobj.c (ada_varobj_get_array_number_of_children):
31 Return zero if PARENT_VALUE is NULL and parent_type's
32 range type is dynamic.
33
34 2015-01-29 Joel Brobecker <brobecker@adacore.com>
35
36 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
37 nonzero if the type's subtype is dynamic.
38 (resolve_dynamic_range): Also resolve the range's subtype.
39
40 2015-01-29 Joel Brobecker <brobecker@adacore.com> (tiny patch)
41
42 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
43
44 2015-01-27 Doug Evans <dje@google.com>
45
46 * NEWS: Mention gdb.Objfile.username.
47 * python/py-objfile.c (objfpy_get_username): New function.
48 (objfile_getset): Add "username".
49
50 2015-01-24 Mark Wielaard <mjw@redhat.com>
51
52 * stack.c (return_command): Markup warning message with _.
53
54 2015-01-24 Doug Evans <xdje42@gmail.com>
55
56 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
57
58 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
59
60 Fix 100x slowdown regression on DWZ files.
61 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
62 (struct line_header): Add offset and offset_in_dwz.
63 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
64 (free_line_header_voidp): New declaration.
65 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
66 functions.
67 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
68 (handle_DW_AT_stmt_list): Use line_header_hash.
69 (free_line_header_voidp): New function.
70 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
71 (dwarf_decode_lines): New parameter decode_mapping, use it.
72 (dwarf2_free_objfile): Free line_header_hash.
73
74 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
75
76 PR gdb/17416
77 * valops.c (value_rtti_indirect_type): Catch exception thrown by
78 value_ind.
79
80 2015-01-15 Mark Wielaard <mjw@redhat.com>
81
82 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
83 DW_AT_noreturn.
84 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
85 calling_convention an 8 bit bit field.
86 (TYPE_NO_RETURN): New macro.
87 * infcmd.c (finish_command): Query if function does not return
88 normally.
89 * stack.c (return_command): Likewise.
90
91 2015-01-23 Pedro Alves <palves@redhat.com>
92
93 * linux-nat.c (linux_is_async_p): New macro.
94 (linux_nat_is_async_p):
95 (linux_nat_terminal_inferior): Check whether the target can async
96 instead of whether it is already async.
97 (linux_nat_terminal_ours): Don't check whether the target is
98 async.
99 (linux_async_pipe): Use linux_is_async_p.
100
101 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
102
103 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
104 '-ascending'.
105 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
106 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
107 Sort tp_array using tp_array_compar.
108 (_initialize_thread): Extend thread_apply_all_command help.
109
110 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
111
112 * corelow.c (core_open): Call also thread_command.
113 * gdbthread.h (thread_command): New prototype moved from ...
114 * thread.c (thread_command): ... here.
115 (thread_command): Make it global.
116
117 2015-01-22 Pedro Alves <palves@redhat.com>
118
119 * configure.ac [*mingw32*]: Check $curses_found instead of
120 $prefer_curses.
121 * configure: Regenerate.
122 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
123 HAVE_NCURSES_NCURSES_H checks.
124
125 2015-01-22 Eli Zaretskii <eliz@gnu.org>
126
127 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
128 fails with the 1st arg NULL, try again with "unknown". Don't test
129 the "cup" capability: it isn't supported by the Windows port of
130 ncurses, but the Windows console driver is still capable of
131 supporting TUI.
132
133 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
134
135 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
136
137 2015-01-22 Eli Zaretskii <eliz@gnu.org>
138
139 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
140 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
141 reason that "make TAGS" is broken.
142
143 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
144
145 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
146 and check additional store instructions.
147
148 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
149
150 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
151
152 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
153
154 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
155 ppc_canonicalize_syscall, ppc_linux_syscall_record,
156 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
157 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
158 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
159 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
160 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
161 ppc_process_record_op19, ppc_process_record_op31,
162 ppc_process_record_op59, ppc_process_record_op60,
163 ppc_process_record_op63): Likewise.
164
165 2015-01-20 Joel Brobecker <brobecker@adacore.com>
166
167 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
168 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
169 strerror.
170
171 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
172
173 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
174 ppc_process_record_op31, ppc_process_record_op59,
175 ppc_process_record_op60, ppc_process_record_op63,
176 ppc_process_record): Fix -Wformat warning.
177 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
178 Remove unused variables.
179
180 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
181
182 * MAINTAINERS (Write After Approval): Add "Chen Gang".
183
184 2015-01-19 Eli Zaretskii <eliz@gnu.org>
185
186 * configure.ac [*mingw32*]: Only add windows-termcap.o to
187 CONFIG_OBS if not building with a curses library.
188 * configure: Regenerate.
189
190 * windows-termcap.c: Include defs.h. Make the whole body empty if
191 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
192 HAVE_NCURSES_NCURSES_H is defined.
193
194 2015-01-19 Joel Brobecker <brobecker@adacore.com>
195
196 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
197 from end of line to start of next line.
198
199 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
200
201 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
202 Scan PLT stub backward for reverse debugging.
203 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
204
205 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
206 Ulrich Weigand <uweigand@de.ibm.com>
207
208 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
209 gdb_target_obs.
210 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
211 record.
212 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
213 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
214 (ppc_linux_init_abi): Set process_record, process_record_signal.
215 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
216 ppc_linux_record_tdep to gdbarch_tdep.
217 (ppc_process_record): New declaration.
218 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
219 ppc_process_record_op19, ppc_process_record_op31,
220 ppc_process_record_op59, ppc_process_record_op60,
221 ppc_process_record_op63, ppc_process_record): New functions.
222
223 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
224
225 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
226 rs6000_in_function_epilogue_frame_p and add an argument
227 for frame_info.
228 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
229 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
230 New functions.
231 (rs6000_epilogue_frame_unwind): New.
232 (rs6000_gdbarch_init): Append epilogue unwinder.
233
234 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
235
236 * nat/linux-personality.c: Replace "#ifndef
237 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
238 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
239 systems.
240
241 2015-01-16 Eli Zaretskii <eliz@gnu.org>
242
243 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
244 functions.
245 (_initialize_tui_win) <border-kind, border-mode>:
246 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
247 (tui_set_tab_width_command): Fix the commentary.
248
249 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
250
251 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
252 Doc fix.
253 (tui_set_tab_width_command): Delete and recreate the source and
254 the disassembly windows, to show the effect of the changed tab
255 size immediately.
256
257 * tui/tui-data.h (LINE_PREFIX): Make shorter
258 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
259 "Thread NNNNN.XXXX" thread ID notation on Windows.
260
261 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
262
263 Fix gcc-5 compilation.
264 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
265
266 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
267
268 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
269 (linux-personality.o): New rule.
270 * common/common-defs.h: Include <stdint.h>.
271 * config/aarch64/linux.mh (NATDEPFILES): Include
272 linux-personality.o.
273 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
274 * config/arm/linux.mh (NATDEPFILES): Likewise.
275 * config/i386/linux64.mh (NATDEPFILES): Likewise.
276 * config/i386/linux.mh (NATDEPFILES): Likewise.
277 * config/ia64/linux.mh (NATDEPFILES): Likewise.
278 * config/m32r/linux.mh (NATDEPFILES): Likewise.
279 * config/m68k/linux.mh (NATDEPFILES): Likewise.
280 * config/mips/linux.mh (NATDEPFILES): Likewise.
281 * config/pa/linux.mh (NATDEPFILES): Likewise.
282 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
283 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
284 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
285 * config/s390/linux.mh (NATDEPFILES): Likewise.
286 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
287 * config/sparc/linux.mh (NATDEPFILES): Likewise.
288 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
289 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
290 * defs.h: Remove #include <stdint.h> (moved to
291 common/common-defs.h).
292 * linux-nat.c: Include nat/linux-personality.h. Remove #include
293 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
294 nat/linux-personality.c).
295 (linux_nat_create_inferior): Remove code to disable address space
296 randomization (moved to nat/linux-personality.c). Create cleanup
297 to disable address space randomization.
298 * nat/linux-personality.c: New file.
299 * nat/linux-personality.h: Likewise.
300
301 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
302
303 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
304 common/posix-strerror.c.
305 (posix-strerror.o): New rule.
306 (mingw-strerror.o): Likewise.
307 * common/common-utils.h (safe_strerror): Move prototype to here,
308 from utils.h.
309 * common/common.host: New file.
310 * common/mingw-strerror.c: Likewise.
311 * common/posix-strerror.c: Likewise.
312 * configure: Regenerated.
313 * configure.ac: Source common/common.host. Add variable
314 common_host_obs to gdb_host_obs.
315 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
316 gdb/common/posix-strerror.c when warning about the use of
317 strerror.
318 * mingw-hdep.c (safe_strerror): Remove definition; move it to
319 common/mingw-strerror.c.
320 * posix-hdep.c (safe_strerror): Remove definition; move it to
321 common/posix-hdep.c.
322 * utils.h (safe_strerror): Remove prototype; move to
323 common/common-utils.h.
324
325 2015-01-15 Joel Brobecker <brobecker@adacore.com>
326
327 GDB 7.8.2 released.
328
329 2015-01-15 Joel Brobecker <brobecker@adacore.com>
330
331 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
332 ___XA type if the array has already been fixed.
333
334 2015-01-14 Yao Qi <yao@codesourcery.com>
335
336 * Makefile.in (ppc-linux.o): New rule.
337 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
338 * configure.ac: AC_CHECK_FUNCS(getauxval).
339 * config.in: Re-generated.
340 * configure: Re-generated.
341 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
342 Declare.
343 * nat/ppc-linux.c: New file.
344 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
345 Call ppc64_64bit_inferior_p.
346
347 2015-01-14 Yao Qi <yao@codesourcery.com>
348
349 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
350 nat/ppc-linux.h.
351 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
352 (PPC_FEATURE_HAS_DFP): Likewise.
353 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
354 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
355 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
356 Include "nat/ppc-linux.h".
357 * nat/ppc-linux.h: New file.
358 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
359
360 2015-01-14 Pedro Alves <palves@redhat.com>
361
362 PR gdb/17525
363 * breakpoint.c: Include "interps.h".
364 (bpstat_do_actions_1): Also check whether the interpreter is
365 async.
366
367 2015-01-14 Pedro Alves <palves@redhat.com>
368
369 PR cli/17828
370 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
371 reinstall if the interpreter is sync.
372
373 2015-01-13 Doug Evans <dje@google.com>
374
375 * objfiles.c (objfile_filename): New function.
376 * objfiles.h (objfile_filename): Declare it.
377 (objfile_name): Add function comment.
378 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
379 bfd file name (which may be realpath'd), and the original name.
380
381 2015-01-13 Joel Brobecker <brobecker@adacore.com>
382
383 * NEWS: Create a new section for the next release branch.
384 Rename the section of the current branch, now that it has
385 been cut.
386
387 2015-01-13 Joel Brobecker <brobecker@adacore.com>
388
389 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
390 * version.in: Bump version to 7.9.50.DATE-cvs.
391
392 2015-01-13 Joel Brobecker <brobecker@adacore.com>
393
394 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
395 Remove trailing new-line in argument of call to warning.
396
397 2015-01-13 Joel Brobecker <brobecker@adacore.com>
398
399 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
400 new-line in argument of call to "warning".
401
402 2015-01-13 Joel Brobecker <brobecker@adacore.com>
403
404 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
405 in static block, then try searching for primitive types.
406
407 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
408
409 * top.h (gdb_add_history): Declare.
410 * top.c (command_count): New variable.
411 (gdb_add_history): New function.
412 (gdb_safe_append_history): New static function.
413 (quit_force): Call it.
414 (command_line_input): Use gdb_add_history instead of
415 add_history.
416 * event-top.c (command_line_handler): Likewise.
417
418 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
419
420 PR gdb/17046
421 * darwin-nat.c: Replace <machine/setjmp.h> #include by
422 <setjmp.h> #include.
423
424 2015-01-11 Doug Evans <xdje42@gmail.com>
425
426 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
427
428 2015-01-11 Doug Evans <xdje42@gmail.com>
429
430 PR gdb/15830
431 * NEWS: The "maint demangle" command is renamed as "demangle".
432 * demangle.c: #include cli/cli-utils.h, language.h.
433 (demangle_command): New function.
434 (_initialize_demangle): Add new command "demangle".
435 * maint.c (maintenance_demangle): Stub out.
436 (_initialize_maint_cmds): Update help text for "maint demangle",
437 and mark as deprecated.
438
439 2015-01-11 Mark Kettenis <kettenis@gnu.org>
440
441 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
442 inferior_thread is a function.
443
444 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
445
446 * Makefile.in (.y.c): Don't munge yacc's #line
447 directives.
448
449 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
450
451 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
452 to prompt for input.
453 * tui/tui-hooks.c (tui_query_hook): Remove.
454 (tui_install_hooks): Don't set deprecated_query_hook.
455 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
456 height calculation. Always update the command window's cur_line.
457
458 2015-01-09 Pedro Alves <palves@redhat.com>
459
460 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
461 function.
462 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
463 declaration.
464 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
465 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
466 stop_reason.
467 (check_stopped_by_watchpoint): New function.
468 (save_sigtrap): Reimplement.
469 (linux_nat_stopped_by_watchpoint): Adjust.
470 (linux_nat_lp_status_is_event): Delete.
471 (stop_wait_callback): Only call save_sigtrap after storing the
472 pending status.
473 (status_callback): If the thread had been stopped for a breakpoint
474 that has since been removed, discard the event and resume the LWP.
475 (count_events_callback, select_event_lwp_callback): Use
476 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
477 (cancel_breakpoint): Rename to ...
478 (check_stopped_by_breakpoint): ... this. Record whether the LWP
479 stopped for a software breakpoint or hardware breakpoint.
480 (select_event_lwp): Only give preference to the stepping LWP in
481 all-stop mode. Adjust comments.
482 (stop_and_resume_callback): Remove references to new_pending_p.
483 (linux_nat_filter_event): Likewise. Leave exit events of the
484 leader thread pending here. Handle signal short circuiting here.
485 Only call save_sigtrap after storing the pending waitstatus.
486 (linux_nat_wait_1): Remove 'retry' label. Remove references to
487 new_pending. Don't handle leaving events the caller is not
488 interested in pending here, nor handle signal short-circuiting
489 here. Also give equal priority to all LWPs that have had events
490 in non-stop mode. If reporting a software breakpoint event,
491 unadjust the LWP's PC.
492 * linux-nat.h (enum lwp_stop_reason): New.
493 (struct lwp_info) <stop_pc>: New field.
494 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
495 (struct lwp_info) <stop_reason>: New field.
496 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
497
498 2015-01-09 Pedro Alves <palves@redhat.com>
499
500 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
501 Set the LWP's 'resumed' flag.
502
503 2015-01-09 Pedro Alves <palves@redhat.com>
504
505 * linux-nat.c (linux_resume_one_lwp): New function.
506 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
507 (linux_nat_resume): Use lwp_status_pending_p and
508 linux_resume_one_lwp.
509 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
510 (linux_handle_extended_wait): Use linux_resume_one_lwp.
511 (status_callback, running_callback): Use lwp_status_pending_p.
512 (lwp_status_pending_p): New function.
513 (stop_and_resume_callback): Use lwp_status_pending_p.
514 (linux_nat_filter_event): Use linux_resume_one_lwp.
515 (linux_nat_wait_1): Always use status_callback to look for an LWP
516 with a pending status. Use linux_resume_one_lwp.
517 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
518 linux_resume_one_lwp.
519
520 2015-01-09 Pedro Alves <palves@redhat.com>
521
522 * breakpoint.c (bp_location_inserted_here_p): New function,
523 factored out from ...
524 (breakpoint_inserted_here_p): ... here. Use
525 ALL_BP_LOCATIONS_AT_ADDR.
526 (software_breakpoint_inserted_here_p): Use
527 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
528
529 2014-01-09 Pedro Alves <palves@redhat.com>
530
531 Skip enabling event reporting if the kernel supports
532 PTRACE_EVENT_CLONE.
533 * linux-thread-db.c: Include "nat/linux-ptrace.h".
534 (thread_db_use_events): New function.
535 (try_thread_db_load_1): Check thread_db_use_events before enabling
536 event reporting.
537 (update_thread_state): New function.
538 (attach_thread): Use it. Check thread_db_use_events before
539 enabling event reporting.
540 (thread_db_detach): Check thread_db_use_events before disabling
541 event reporting.
542 (find_new_threads_callback): Check thread_db_use_events before
543 enabling event reporting. Update the thread's state if not using
544 libthread_db events.
545
546 2015-01-09 Pedro Alves <palves@redhat.com>
547
548 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
549 about to wait for is > 0.
550 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
551 the kernel thread ID is -1.
552
553 2015-01-09 Pedro Alves <palves@redhat.com>
554
555 * linux-nat.c (attach_proc_task_lwp_callback): New function.
556 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
557 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
558 ptrace option flags.
559 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
560 field.
561 * nat/linux-procfs.c: Include <dirent.h>.
562 (linux_proc_get_int): New parameter "warn". Handle it.
563 (linux_proc_get_tgid): Adjust.
564 (linux_proc_get_tracerpid): Rename to ...
565 (linux_proc_get_tracerpid_nowarn): ... this.
566 (linux_proc_pid_get_state): New function, factored out from
567 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
568 and handle it.
569 (linux_proc_pid_is_gone): New function.
570 (linux_proc_pid_is_stopped): Adjust.
571 (linux_proc_pid_is_zombie_maybe_warn)
572 (linux_proc_pid_is_zombie_nowarn): New functions.
573 (linux_proc_pid_is_zombie): Use
574 linux_proc_pid_is_zombie_maybe_warn.
575 (linux_proc_attach_tgid_threads): New function.
576 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
577 (linux_proc_get_tracerpid): Rename to ...
578 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
579 (linux_proc_pid_is_gone): New declaration.
580 (linux_proc_pid_is_zombie): Update comment.
581 (linux_proc_pid_is_zombie_nowarn): New declaration.
582 (linux_proc_attach_lwp_func): New typedef.
583 (linux_proc_attach_tgid_threads): New declaration.
584 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
585 use nowarn functions.
586 (linux_ptrace_attach_fail_reason_string): Move here from
587 gdbserver/linux-low.c and rename.
588 (ptrace_supports_feature): If the current ptrace options are not
589 known yet, check them now, instead of asserting.
590 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
591 Declare.
592
593 2015-01-09 Pedro Alves <palves@redhat.com>
594
595 * linux-thread-db.c (thread_db_find_new_threads_silently)
596 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
597 (find_new_threads_once): Print debug output on gdb_stdlog.
598
599 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
600 Pedro Alves <palves@redhat.com>
601
602 * compile/compile.c: Include "gdb_wait.h".
603 (do_rmdir): Check return value, and free 'zap'.
604
605 2015-01-08 Pedro Alves <palves@redhat.com>
606 Yao Qi <yao@codesourcery.com>
607
608 * dwarf2loc.c (indirect_pieced_value): Don't call
609 gdb_sign_extend. Call extract_signed_integer instead.
610 * utils.c (gdb_sign_extend): Remove.
611 * utils.h (gdb_sign_extend): Remove declaration.
612
613 2015-01-07 Pierre Muller <muller@sourceware.org>
614
615 PR symtab/17811
616 * stabsread.c (define_symbol): Set language for C++ special symbols.
617
618 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
619
620 * inflow.c (initial_gdb_ttystate): Tweak comment.
621
622 2015-01-07 Joel Brobecker <brobecker@adacore.com>
623
624 * inflow.c (set_initial_gdb_ttystate): Add empty line after
625 comment documenting function.
626
627 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
628
629 * terminal.h (set_initial_gdb_ttystate): Declare.
630 * inflow.c (initial_gdb_ttystate): New static variable.
631 (set_initial_gdb_ttystate): New setter.
632 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
633 instead of our current terminal state.
634 * top.c (gdb_init): Call set_initial_gdb_ttystate.
635
636 2015-01-07 Joel Brobecker <brobecker@adacore.com>
637
638 * guile/scm-type.c (tyscm_array_1): Add comment.
639 * python/py-type.c (typy_array_1): Add comment.
640
641 2015-01-06 Joel Brobecker <brobecker@adacore.com>
642
643 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
644 error if N2 is equal to N1 - 1.
645
646 2015-01-06 Joel Brobecker <brobecker@adacore.com>
647
648 * python/py-type.c (typy_array_1): Do not raise negative-length
649 exception if N2 is equal to N1 - 1.
650
651 2015-01-03 Doug Evans <xdje42@gmail.com>
652
653 * c-exp.y: Whitespace cleanup.
654 (classify_inner_name): Remove extra ;.
655
656 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
657
658 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
659 offset signed.
660
661 2015-01-02 Doug Evans <dje@google.com>
662
663 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
664
665 2015-01-02 Doug Evans <dje@google.com>
666
667 * symtab.h (struct symbol): Fix typo in comment.
668
669 2015-01-01 Joel Brobecker <brobecker@adacore.com>
670
671 Update year range in copyright notice of all files.
672
673 2015-01-01 Joel Brobecker <brobecker@adacore.com>
674
675 * top.c (print_gdb_version): Update copyright year to 2015.
676
677 2015-01-01 Joel Brobecker <brobecker@adacore.com>
678
679 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
680
681 For older changes see ChangeLog-2014.
682 \f
683 Local Variables:
684 mode: change-log
685 left-margin: 8
686 fill-column: 74
687 version-control: never
688 coding: utf-8
689 End: