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