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