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