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