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