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