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