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