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