1 2011-07-14 Hui Zhu <teawater@gmail.com>
3 * remote.c (remote_get_trace_status): Initialize p.
5 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8 * remote.c (remote_get_trace_status): New variable ex. Put
9 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
11 2011-07-13 Tom Tromey <tromey@redhat.com>
13 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
14 value_from_contents for final conversion.
16 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
19 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
20 Indent prototypes so they do not get into tags.
22 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
24 Code cleanup making also optimized out values lazy.
25 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
26 allocate_optimized_out_value. Twice.
27 (loclist_read_variable) Use allocate_optimized_out_value. Once.
28 * findvar.c (read_var_value): Likewise.
29 * value.c (allocate_optimized_out_value): New function.
30 * value.h (allocate_optimized_out_value): New declaration.
32 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
34 Fix occasional crash of CTRL-C during DWARF read in.
35 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
37 2011-07-11 Tom Tromey <tromey@redhat.com>
39 * regcache.c (struct regcache_descr): Fix typo.
40 * i387-tdep.c (i387_supply_xsave): Fix typo.
42 2011-07-11 Tom Tromey <tromey@redhat.com>
44 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
45 (read_file_scope, read_type_unit_scope): Use it.
47 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
49 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
52 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
55 * python/python.c: Set gdbpy_should_print_stack default to off.
56 (set_python): Deprecate maint set python print-stack to
58 (_initialize_python): Deprecate maint set/show python print-stack.
59 Add new prefix command, python. Add new setting, print-backtrace.
60 * NEWS: Document set python print-stack. Document default change.
62 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
64 * python/py-inferior.c (infpy_dealloc): New function.
65 (inferior_to_inferior_object): Return a new object, or a
66 new reference to the existing object.
67 (find_thread_object): Cleanup references to inferior.
68 (delete_thread_object): Ditto.
69 * python/py-infthread.c (create_thread_object): Do not increment
70 inferior reference count.
72 2011-07-08 Tom Tromey <tromey@redhat.com>
74 * dwarf2loc.c (locexpr_regname): New function.
75 (locexpr_describe_location_piece): Use it.
76 (disassemble_dwarf_expression): Add per_cu argument. Use
78 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
79 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
81 (locexpr_describe_location_1): Add per_cu argument.
82 (locexpr_describe_location): Update.
83 (loclist_describe_location): Update.
85 2011-07-08 Tom Tromey <tromey@redhat.com>
87 * dwarf2expr.c (execute_stack_op): Add QUIT.
89 2011-07-07 Hui Zhu <teawater@gmail.com>
92 2011-07-06 Hui Zhu <teawater@gmail.com>
93 * remote.c (remote_start_remote): Add TRY_CATCH for
94 remote_get_trace_status.
95 * tracepoint.c (disconnect_tracing): Ditto.
97 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
99 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
100 variables as signed, not unsigned.
102 2011-07-06 Joel Brobecker <brobecker@adacore.com>
104 * jit.c (jit_inferior_init): Reformat forward declaration.
106 2011-07-06 Matt Rice <ratmice@gmail.com>
108 * MAINTAINERS (Write After Approval): Add myself to the list.
110 2011-07-06 Hui Zhu <teawater@gmail.com>
112 * remote.c (remote_start_remote): Add TRY_CATCH for
113 remote_get_trace_status.
114 * tracepoint.c (disconnect_tracing): Ditto.
116 2011-07-05 Tom Tromey <tromey@redhat.com>
118 * symtab.c (operator_chars): Now static.
119 * linespec.c (operator_chars): Don't declare.
121 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
123 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
125 2011-07-05 Tom Tromey <tromey@redhat.com>
127 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
128 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
129 (TYPE_CPLUS_REALLY_JAVA): New macro.
130 * dwarf2read.c (process_structure_scope): Set
131 TYPE_CPLUS_REALLY_JAVA.
133 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
135 * ada-lang.c: Fix typos.
136 * amd64-tdep.c: Likewise.
137 * breakpoint.c: Likewise.
138 * cli/cli-decode.c: Likewise.
139 * findcmd.c: Likewise.
140 * inline-frame.c: Likewise.
141 * mi/mi-main.c: Likewise.
142 * minsyms.c: Likewise.
143 * monitor.c: Likewise.
144 * monitor.h: Likewise.
145 * prologue-value.c: Likewise.
146 * reverse.c: Likewise.
147 * s390-tdep.c: Likewise.
149 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
151 * jit.c (jit_inferior_init): Forward declare.
152 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
154 2011-07-04 Joel Brobecker <brobecker@adacore.com>
156 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
158 2011-07-04 Tristan Gingold <gingold@adacore.com>
160 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
161 (tcb_fieldno): Add activation_link field.
162 (get_known_tasks_addr): Moved and rewritten.
163 (get_tcb_types_info): Set activation_link field.
164 (read_known_tasks_array): Add parameter. Rewritten.
165 (read_known_tasks_list): New function.
166 (read_known_tasks): New function.
167 (ada_build_task_list): Call read_known_tasks instead of
168 read_known_tasks_array.
169 * ravenscar-thread.c: Add first_task_name constant.
170 (has_ravenscar_runtime): Check for task list too.
172 2011-07-04 Tristan Gingold <gingold@adacore.com>
174 * ada-tasks.c: Renames fieldno to actb_fieldno.
175 (ada_get_task_number): Indentation.
176 (get_tcb_types_info): Remove all parameters. Write directly
178 (ptid_from_atcb_common): Adjust.
181 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
183 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
185 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
187 * ui-out.c (ui_out_field_core_addr): Mention that the function
188 description is in the header file.
189 * ui-out.h (ui_out_field_core_addr): Document function.
191 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
193 * ui-out.c (ui_out_get_field_separator): Remove unused function.
194 * ui-out.h (ui_out_get_field_separator): Remove prototype.
196 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
198 * symtab.c (expand_line_sal): Remove empty line.
200 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
202 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
203 same way as ELFOSABI_NONE.
204 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
206 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
208 * breakpoint.c: Fix typos in comments.
209 * linespec.c: Likewise.
210 * symtab.c: Likewise.
212 2011-07-04 Joel Brobecker <brobecker@adacore.com>
214 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
215 section in separate object files.
217 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
219 Fix false GCC warning.
220 * linespec.c (decode_line_1): Initialize values.
222 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
224 * linespec.c (find_method): Accept the function type automatically only
225 if it was specified with parameter types.
227 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
229 Stop on first linespec terminator instead of eating what we can.
230 * linespec.c (is_linespec_boundary): New function.
231 (name_end): Remove function.
232 (keep_name_info): New parameter on_boundary, replace the body.
233 (decode_line_1): Provide the parameter to keep_name_info.
234 (decode_compound): Likewise. Drop the trailing java return type
237 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
239 Fall back linespec to minimal symbols.
240 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
241 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
242 (find_method, symbol_found): Change error to cplusplus_error.
244 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
246 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
248 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
249 Tom Tromey <tromey@redhat.com>
251 * dwarf2read.c (check_physname): New variable.
252 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
253 (show_check_physname): New function.
254 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
256 2011-07-01 Joel Brobecker <brobecker@adacore.com>
258 * machoread.c (macho_symfile_read): Delete OBE comment.
260 2011-07-01 Joel Brobecker <brobecker@adacore.com>
262 * machoread.c (struct macho_oso_data): Delete.
263 (current_oso): Delete.
264 (macho_relocate_common_syms): New function, mostly extracted
266 (macho_add_oso_symfile): Call macho_relocate_common_syms.
267 Remove code that sets and unset current_oso.
268 (macho_symfile_relocate): Delete handling of common symbols,
269 now moved to macho_relocate_common_syms.
271 2011-07-01 Joel Brobecker <brobecker@adacore.com>
273 * darwin-nat.c (darwin_ptrace): Add documentation.
274 Set errno to zero before calling ptrace. If ptrace returns
275 -1 and errno is zero, then change then return zero.
276 (darwin_kill_inferior): Issue a warning instead of triggering
277 a failed assertion when the PT_KILL ptrace operations returned
280 2011-07-01 Joel Brobecker <brobecker@adacore.com>
282 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
283 only when inf->private->no_ptrace.
285 2011-07-01 Joel Brobecker <brobecker@adacore.com>
287 * ada-lang.c (print_it_exception): Print temporary catchpoints
288 as "Temporary catchpoint".
289 (print_mention_exception): Likewise.
291 2011-07-01 Tom Tromey <tromey@redhat.com>
293 * jv-lang.c (java_language_defn): Use java_printchar,
295 (java_get_encoding): New function.
296 (java_emit_char): Use generic_emit_char.
297 (java_printchar): New function.
298 (java_printstr): Likewise.
300 2011-07-01 Joel Brobecker <brobecker@adacore.com>
302 * ada-typeprint.c (print_record_type): If unable to decode
303 the name of the parent type, use the encoded name.
305 2011-07-01 Jean-Charles Delay <delay@adacore.com>
307 * ada-typeprint.c (ada_print_type): Fix both PAD type and
308 pointer to constrained packed array type output.
309 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
312 2011-07-01 Jean-Charles Delay <delay@adacore.com>
314 * ada-typeprint.c (print_array_type): removed if condition on show
315 being negative for bounds printing.
317 2011-07-01 Joel Brobecker <brobecker@adacore.com>
319 * ada-lang.c (ada_identical_enum_types_p): New function.
320 (symbols_are_identical_enums): New function.
321 (remove_extra_symbols): Do nothing if NSYMS < 2.
322 Use symbols_are_identical_enums.
324 2011-07-01 Joel Brobecker <brobecker@adacore.com>
326 * ada-valprint.c (ada_value_print): Handle typedefs.
328 2011-07-01 Joel Brobecker <brobecker@adacore.com>
330 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
332 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
334 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
335 (decode_constrained_packed_array): Likewise.
336 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
338 2011-07-01 Joel Brobecker <brobecker@adacore.com>
340 * ada-exp.y (convert_char_literal): Handle typedef types.
342 2011-07-01 Joel Brobecker <brobecker@adacore.com>
344 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
346 2011-06-30 Tom Tromey <tromey@redhat.com>
348 * varobj.c (varobj_create): Call do_cleanups on early exit path.
349 * valops.c (find_overload_match): Call do_cleanups on early exit
351 * solib.c (solib_find): Call do_cleanups on early exit path.
353 2011-06-30 Tom Tromey <tromey@redhat.com>
355 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
356 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
357 return paths. Defer final do_cleanups until last return.
358 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
361 2011-06-30 Tom Tromey <tromey@redhat.com>
363 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
365 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
367 * MAINTAINERS (Write After Approval): Add myself to the list.
369 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
371 Disable epilogue unwinders on recent GCCs.
372 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
373 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
374 * dwarf2read.c (process_full_comp_unit): Initialize
375 EPILOGUE_UNWIND_VALID.
376 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
377 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
378 * symtab.h (struct symtab): New field epilogue_unwind_valid.
380 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
382 Code cleanup - reformatting.
383 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
384 (producer_is_gcc_ge_4): ... here, change the return value.
385 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
388 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
390 Fix non-only rename list for Fortran modules import.
391 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
392 cp_add_using_directive caller.
393 (cp_add_using_directive): New parameter excludes, describe it. New
394 variables ix and param. Compare if also excludes match. Allocate NEW
395 with variable size, initialize EXCLUDES there.
396 (cp_lookup_symbol_imports): New variable excludep, test
397 current->EXCLUDES with it.
398 * cp-support.h: Include vec.h.
399 (struct using_direct): New field excludes, describe it.
400 (DEF_VEC_P (const_char_ptr)): New.
401 (cp_add_using_directive): New parameter excludes.
402 * defs.h (const_char_ptr): New typedef.
403 * dwarf2read.c (read_import_statement): New variables child_die,
404 excludes and cleanups, read in excludes.
405 (read_namespace): Adjust the cp_add_using_directive caller.
407 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
410 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
411 negative comparisons.
413 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
415 * mi/mi-main.c (mi_cmd_list_features): Emit
416 breakpoint-notifications.
418 2011-06-29 Tom Tromey <tromey@redhat.com>
421 * valprint.h (generic_emit_char, generic_printstr): Declare.
422 * valprint.c (wchar_printable, append_string_as_wide)
423 (print_wchar): Move from c-lang.c.
424 (generic_emit_char): New function; mostly taken from c_emit_char.
425 (generic_printstr): New function; mostly taken from c_printstr.
426 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
427 represented as arrays.
428 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
430 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
431 identically to TYPE_CODE_INT.
432 * f-lang.c (f_get_encoding): New function.
433 (f_emit_char): Use generic_emit_char.
434 (f_printchar): Replace comment.
435 (f_printstr): Use generic_printstr.
436 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
437 "character" types specially.
438 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
440 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
442 (c_emit_char): Call generic_emit_char.
443 (c_printstr): Call generic_printstr.
445 2011-06-29 Gary Benson <gbenson@redhat.com>
447 * breakpoint.c (bpstat_what): Removed duplicated case.
449 2011-06-28 Tom Tromey <tromey@redhat.com>
451 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
453 2011-06-27 Tom Tromey <tromey@redhat.com>
455 * valops.c (find_overload_match): Call do_cleanups before early
457 * top.c (execute_command): Call do_cleanups before early return.
458 (command_loop): Likewise.
459 * stack.c (backtrace_command): Make a null cleanup early. Don't
460 conditionally call do_cleanups.
461 * python/py-value.c (TRY_CATCH): Move cleanup handling into
463 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
464 so cleanups are always run.
465 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
466 * findcmd.c (parse_find_args): Call do_cleanups on early return
468 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
469 Don't conditionally call do_cleanups.
470 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
473 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
475 * MAINTAINERS (Write After Approval): Use default email address.
477 2011-06-27 Joel Brobecker <brobecker@adacore.com>
479 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
481 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
483 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
484 saved_regs_mask and copied_regs_mask fields.
485 (sparc_record_save_insn): New prototype.
486 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
487 (sparc_record_save_insn): New function.
488 (sparc_analyze_prologue): Add head comment. Recognize store insns
489 of call-saved registers. Use OFFSET consistently. Recognize flat
490 frames and cache their settings.
491 (sparc32_skip_prologue): Handle flat frames.
492 (sparc_frame_cache): Add frame_offset to the base address.
493 (sparc32_frame_cache): Adjust to new frame description.
494 (sparc32_frame_prev_register): Likewise.
495 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
496 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
497 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
498 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
499 frame by calling sparc_record_save_insn.
500 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
501 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
502 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
504 2011-06-27 Tristan Gingold <gingold@adacore.com>
506 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
507 field by map_addr and map_len.
508 (dwarf2_read_section): Adjust for the new bfd_mmap api.
509 (munmap_section_buffer): Likewise.
511 2011-06-24 Tom Tromey <tromey@redhat.com>
513 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
514 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
515 * python/python.c (gdbpy_parameter): Make 'arg' const.
516 (execute_gdb_command): Likewise.
517 (gdbpy_decode_line): Likewise. Copy it.
518 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
519 (gdbpy_write): Make 'arg' const.
520 * python/py-type.c (typy_lookup_typename): Make 'type_name'
522 (gdbpy_lookup_type): Likewise.
523 * python/py-prettyprint.c (print_children): Make 'name' const.
524 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
525 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
527 * python/py-function.c (fnpy_init): Make 'name' const.
528 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
529 (gdbpy_string_to_argv): Make 'input' const.
530 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
532 * gdbtypes.h (lookup_typename): Update.
533 * gdbtypes.c (lookup_typename): Make 'name' const.
534 (lookup_struct): Likewise.
535 (lookup_union): Likewise.
536 (lookup_enum): Likewise.
538 2011-06-24 Tom Tromey <tromey@redhat.com>
540 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
541 gdb_thread_db.h. Move all common/ entries to be together.
542 (TAGS): Don't depend on DEPFILES.
544 2011-06-23 Yao Qi <yao@codesourcery.com>
546 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
547 * remote.c (remote_start_remote): ... here.
548 * monitor.c (monitor_open): ... here.
550 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
552 * gdbtypes.c (append_composite_type_field_aligned): Fix
553 calculation of bit position based on alignment.
555 2011-06-22 Pedro Alves <pedro@codesourcery.com>
557 * breakpoint.c (bpstat_stop_status): Call the check_status
558 breakpoint_ops method.
559 (print_one_breakpoint_location): Also print the condition for Ada
560 exception catchpoints.
561 (allocate_bp_location): New, factored out from
562 allocate_bp_location.
563 (allocate_bp_location): Adjust. Call the owner breakpoint's
564 allocate_location method, if there is one.
565 (free_bp_location): Call the locations's dtor method, if there is
567 (init_raw_breakpoint_without_location): New breakpoint_ops
569 (set_raw_breakpoint_without_location): Adjust.
570 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
571 (set_raw_breakpoint): Adjust.
572 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
573 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
574 re_set and check_status methods.
575 (init_catchpoint): Don't memset, initialize thread, addr_string
576 and enable_state. Pass the ops down to init_raw_breakpoint.
577 (install_catchpoint): Rename to ...
578 (install_breakpoint): ... this, and make extern.
579 (create_fork_vfork_event_catchpoint): Adjust.
580 (catch_exec_breakpoint_ops): Install NULL allocate_location,
581 re_set and check_status methods.
582 (create_syscall_event_catchpoint): Adjust.
583 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
584 (masked_watchpoint_breakpoint_ops): Install NULL
585 allocate_location, re_set and check_status methods.
586 (catch_exec_command_1): Adjust.
587 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
588 re_set and check_status methods.
589 (create_ada_exception_breakpoint): Rename to ...
590 (init_ada_exception_breakpoint): ... this. Add a struct
591 breakpoint parameter, and delete the exp_string, cond_string and
592 cond parameters. Use init_raw_breakpoint, and don't install or
593 mention the breakpoint yet. Don't clear breakpoint fields that
594 init_raw_breakpoint already clears.
595 (re_set_breakpoint): Delete, split into ...
596 (breakpoint_re_set_default, prepare_re_set_context): ... these new
598 (breakpoint_re_set_one): Call the breakpoint's
599 breakpoint_ops->re_set implementation, if there's one. Adjust.
600 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
601 (struct bp_location_ops): New type.
602 (struct bp_location): New field `ops'.
603 (struct breakpoint_ops): New `allocate_location', `re_set' and
604 `check_status' fields. Make `breakpoint_hit''s description match
606 (init_bp_location): Declare.
607 (breakpoint_re_set_default): Declare.
608 (create_ada_exception_breakpoint): Rename to ...
609 (init_ada_exception_breakpoint): ... this. Add a struct
610 breakpoint parameter, and delete the exp_string, cond_string and
612 (install_breakpoint): Declare.
613 * ada-lang.c: Include exceptions.h.
614 <Ada exceptions description>: Update.
615 (struct ada_catchpoint_location): New type.
616 (ada_catchpoint_location_dtor): New function.
617 (ada_catchpoint_location_ops): New global.
618 (ada_catchpoint): New type.
619 (create_excep_cond_exprs): New function.
620 (dtor_exception, allocate_location_exception, re_set_exception)
621 (should_stop_exception, check_status_exception): New functions.
622 (print_one_exception, print_mention_exception)
623 (print_recreate_exception): Adjust.
624 (dtor_catch_exception, allocate_location_catch_exception)
625 (re_set_catch_exception, check_status_catch_exception): New
627 (catch_exception_breakpoint_ops): Install them.
628 (dtor_catch_exception_unhandled)
629 (allocate_location_catch_exception_unhandled)
630 (re_set_catch_exception_unhandled)
631 (check_status_catch_exception_unhandled): New functions.
632 (catch_exception_unhandled_breakpoint_ops): Install them.
633 (dtor_catch_assert, allocate_location_catch_assert)
634 (re_set_catch_assert, check_status_catch_assert): New functions.
635 (catch_assert_breakpoint_ops): Install them.
636 (ada_exception_catchpoint_p): Delete.
637 (catch_ada_exception_command_split)
638 (ada_exception_catchpoint_cond_string): Rename exp_string
639 parameter to excep_string. Adjust.
640 (ada_parse_catchpoint_condition): Delete.
641 (ada_exception_sal): Rename the exp_string parameter to
642 excep_string. Delete the cond_string and cond parameters.
644 (ada_decode_exception_location): Rename the exp_string parameter
645 to excep_string. Delete the cond_string and cond parameters.
647 (create_ada_exception_catchpoint): New function.
648 (catch_ada_exception_command, ada_decode_assert_location)
649 (catch_assert_command): Adjust.
650 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
652 2011-06-22 Pedro Alves <pedro@codesourcery.com>
654 * ada-lang.c: Include arch-utils.h.
655 (ada_decode_exception_location): Make static.
656 (catch_ada_exception_command): Moved here from breakpoint.c.
657 (ada_decode_assert_location): Make static.
658 (catch_assert_command): Moved here from breakpoint.c.
659 (_initialize_ada_lang): Install the exception and assert
660 catchpoint commands here.
661 * ada-lang.h (ada_decode_exception_location)
662 (ada_decode_assert_location): Delete declarations.
663 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
665 (create_ada_exception_breakpoint): Make extern.
666 (catch_ada_exception_command, catch_assert_command): Moved to
668 (add_catch_command): Make extern.
669 (_initilize_breakpoint): Don't install the exception and assert
670 catchpoint commands here.
671 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
673 (add_catch_command, create_ada_exception_breakpoint): Declare.
675 2011-06-22 Pedro Alves <pedro@codesourcery.com>
677 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
678 the breakpoint to the breakpoint chain here.
679 (set_raw_breakpoint_without_location): Add the breakpoint to the
680 breakpoint chain here.
681 (init_raw_breakpoint): Adjust comments.
682 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
684 (init_catchpoint): Don't set the catchpoint's breakpoint number
686 (install_catchpoint): New function.
687 (create_fork_vfork_event_catchpoint)
688 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
689 use install_catchpoint.
691 2011-06-22 Pedro Alves <pedro@codesourcery.com>
693 * breakpoint.c (create_catchpoint_without_mention)
694 (create_catchpoint): Delete.
696 2011-06-22 Pedro Alves <pedro@codesourcery.com>
698 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
699 * breakpoint.c (init_raw_breakpoint_without_location): Remove
700 reference to exec_pathname.
701 (struct exec_catchpoint): New type.
702 (dtor_catch_exec): New function.
703 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
704 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
705 (catch_exec_command_1): Adjust to use init_catchpoint.
706 (delete_breakpoint): Remove reference to exec_pathname.
708 2011-06-22 Pedro Alves <pedro@codesourcery.com>
710 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
711 (struct breakpoint): Delete field `syscalls_to_be_caught'.
712 * breakpoint.c (init_raw_breakpoint_without_location): Remove
713 reference to syscalls_to_be_caught.
714 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
716 (struct syscall_catchpoint): New type.
717 (dtor_catch_syscall): New function.
718 (insert_catch_syscall, remove_catch_syscall)
719 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
720 (print_recreate_catch_syscall): Adjust.
721 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
722 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
723 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
724 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
725 (masked_watchpoint_breakpoint_ops)
726 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
727 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
728 there is one. Remove references to syscalls_to_be_caught.
729 (catching_syscall_number): Adjust.
730 * ada-lang.c (catch_exception_breakpoint_ops)
731 (catch_exception_unhandled_breakpoint_ops)
732 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
734 2011-06-22 Pedro Alves <pedro@codesourcery.com>
736 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
738 * breakpoint.c (init_raw_breakpoint_without_location): Remove
739 reference to forked_inferior_pid.
740 (struct fork_catchpoint): New type.
741 (breakpoint_hit_catch_fork, print_it_catch_fork)
742 (print_one_catch_fork, breakpoint_hit_catch_vfork)
743 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
744 (create_fork_vfork_event_catchpoint): Adjust to use
747 2011-06-22 Pedro Alves <pedro@codesourcery.com>
749 * breakpoint.c (add_to_breakpoint_chain)
750 (init_raw_breakpoint_without_location): New functions, factored
752 (set_raw_breakpoint_without_location): ... this one.
753 (init_raw_breakpoint): New function, factored out from
754 set_raw_breakpoint and adjusted to use
755 init_raw_breakpoint_without_location.
756 (set_raw_breakpoint): Adjust.
757 (init_catchpoint): New function, factored out from
758 create_catchpoint_without_mention and adjusted to use
760 (create_catchpoint_without_mention): Adjust.
762 2011-06-22 Tom Tromey <tromey@redhat.com>
764 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
765 argument of 0 specially.
767 2011-06-22 Yao Qi <yao@codesourcery.com>
769 * infrun.c (handle_inferior_event): Remove write-only local variable
770 `sw_single_step_trap_p'.
772 2011-06-20 Tom Tromey <tromey@redhat.com>
774 * symtab.c (lookup_language_this): End loop if block is NULL.
776 2011-06-17 Tom Tromey <tromey@redhat.com>
778 * valops.c (value_of_this): Use lookup_language_this.
779 * symtab.h (lookup_language_this): Declare.
780 * symtab.c (lookup_language_this): New function.
781 (lookup_symbol_aux): Use lookup_language_this.
782 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
784 2011-06-17 Tom Tromey <tromey@redhat.com>
786 * value.h (value_of_this): Update.
787 (value_of_local): Remove.
788 * valops.c (value_of_this): Rename from value_of_local. Change
790 * p-exp.y (exp): Update.
791 (variable): Likewise.
792 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
794 2011-06-17 Tom Tromey <tromey@redhat.com>
796 * valops.c (value_of_local): Complain if NAME is NULL.
797 * std-operator.def (OP_OBJC_SELF): Remove.
798 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
799 * objc-exp.y (name_not_typename): Use OP_THIS.
800 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
802 <OP_OBJC_SELF>: Remove.
803 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
805 2011-06-16 Tristan Gingold <gingold@adacore.com>
807 * python/py-events.h (gdb_py_events): Make it extern.
808 * python/py-evtregistry.c (gdb_py_events): Declare.
810 2011-06-16 Hui Zhu <teawater@gmail.com>
812 * remote.c (remote_trace_set_readonly_regions): Add check for
813 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
816 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
818 * arm-linux-tdep.c: Include "auxv.h".
820 (ARM_LINUX_SIZEOF_VFP): Define.
821 (arm_linux_supply_vfp): New function.
822 (arm_linux_collect_vfp): Likewise.
823 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
824 (arm_linux_fpa_regset_sections): New variable.
825 (arm_linux_vfp_regset_sections): Likewise.
826 (arm_linux_core_read_description): New function.
827 (arm_linux_init_abi): Install arm_linux_core_read_description and
828 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
829 appropriate for the architecture.
830 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
831 (tdesc_arm_with_m): Declare.
832 (tdesc_arm_with_iwmmxt): Likewise.
833 (tdesc_arm_with_vfpv2): Likewise.
834 (tdesc_arm_with_vfpv3): Likewise.
835 (tdesc_arm_with_neon): Likewise.
836 * arm-linux-nat.c: Move features/*.c includes ...
837 * arm-tdep.c: ... here.
838 * arm-linux-nat.c (arm_linux_read_description): Move initializing
839 target description data structures ...
840 * arm-tdep.c (_initialize_arm_tdep): ... here.
841 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
842 HWCAP_VFPv3D16): Move definitions ...
843 * arm-linux-tdep.h: ... here.
845 2011-06-15 Hui Zhu <teawater@gmail.com>
847 * remote.c (remote_trace_set_readonly_regions): Add a check for
850 2011-06-14 Tom Tromey <tromey@redhat.com>
852 * coffread.c (coffread_objfile): Rename from current_objfile.
853 * dbxread.c (dbxread_objfile): Rename from current_objfile.
854 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
856 2011-06-14 Tom Tromey <tromey@redhat.com>
858 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
859 (class_symtab): Remove.
860 (jv_dynamics_progspace_key): New global.
861 (jv_per_objfile_free): Reset program space data. Update assert.
863 (get_dynamics_objfile): Use and set program space data.
864 (get_java_class_symtab): Use get_dynamics_objfile.
865 (add_class_symbol): Likewise.
866 (java_link_class_type): Likewise.
867 (java_object_type, jv_clear_object_type, set_java_object_type):
869 (get_java_object_type): Update. Don't cache result.
870 (is_object_type): Don't call set_java_object_type.
871 (_initialize_java_language): Don't set jv_type_objfile_data_key;
872 initialize jv_dynamics_progspace_key.
874 2011-06-14 Tom Tromey <tromey@redhat.com>
876 * symtab.h (current_objfile): Don't declare.
877 * objfiles.h (current_objfile): Don't declare.
878 * objfiles.c (current_objfile): Remove.
879 * mdebugread.c (current_objfile): New file-scope global.
880 * dbxread.c (current_objfile): New file-scope global.
881 * coffread.c (current_objfile): New file-scope global.
883 2011-06-13 Pedro Alves <pedro@codesourcery.com>
885 * top.h (line): Rename to ...
886 (saved_command_line): ... this.
887 (linesize): Rename to ...
888 (saved_command_line_size): ... this.
889 * top.c (line): Rename to ...
890 (saved_command_line): ... this.
891 (linesize): Rename to ...
892 (saved_command_line_size): ... this.
893 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
894 * event-top.c (command_line_handler): Adjust.
895 * main.c (captured_main): Adjust.
897 2011-06-12 Mark Kettenis <kettenis@gnu.org>
899 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
900 get_frame_func instead of get_frame_pc to determine the code
901 address used to construct the frame ID.
902 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
903 (i386_epilogue_frame_this_id): Likewise.
904 (i386_epilogue_frame_prev_register): New function.
905 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
906 (i386_stack_tramp_frame_sniffer): Fix coding style.
907 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
908 (i386_gdbarch_init): Fix comments.
910 2011-06-12 Mark Kettenis <kettenis@gnu.org>
912 * i386-tdep.c (i386_match_insn_block): Use length of the proper
913 instruction when walking back through the instruction stream.
915 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
917 * symtab.c (output_partial_symbol_filename): Exchange the filename and
918 fullname parameters order.
920 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
923 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
925 * psymtab.c (map_symbol_filenames_psymtab)
926 (map_partial_symbol_filenames): Likewise.
927 * psymtab.h: Include symfile.h.
928 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
929 * symfile.h (symbol_filename_ftype): New.
930 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
931 map_symbol_filenames, clarify more the naming in comment.
933 2011-06-07 Doug Evans <dje@google.com>
935 * cc-with-index.sh: Fix typos in comment.
936 Look for ../../gdb, for fullname.exp.
938 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
939 Pedro Alves <pedro@codesourcery.com>
941 * cli/cli-cmds.c (shell_escape): Use waitpid.
942 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
944 2011-06-07 Tristan Gingold <gingold@adacore.com>
946 * xcoffread.c (dwarf2_xcoff_names): New variable.
947 (aix_process_linenos): Add a guard.
948 (xcoff_symfile_finish): Free dwarf2.
949 (xcoff_initial_scan): Add dwarf2 support.
951 2011-06-06 Pedro Alves <pedro@codesourcery.com>
953 * infcall.c (run_inferior_call): Don't mask async. Instead force
954 a synchronous wait, if the target can async.
956 * target.h (struct target_ops): Delete to_async_mask.
957 (target_async_mask): Delete.
958 * target.c (update_current_target): Delete references to to_async_mask.
959 * linux-nat.c (linux_nat_async_mask_value): Delete.
960 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
961 to linux_nat_async_mask_value.
962 (linux_nat_async_mask): Delete.
963 (linux_nat_async, linux_nat_close): Remove references to
964 linux_nat_async_mask_value.
965 * record.c (record_async_mask_value): Delete.
966 (record_async): Remove references to record_async_mask_value.
967 (record_async_mask): Delete.
968 (record_can_async_p, record_is_async_p): Remove references to
969 record_async_mask_value.
970 (init_record_ops, init_record_core_ops): Remove references to
972 * remote.c (remote_async_mask_value): Delete.
973 (init_remote_ops): Remove reference to remote_async_mask.
974 (remote_can_async_p, remote_is_async_p): Remove references to
975 remote_async_mask_value.
976 (remote_async): Remove references to remote_async_mask_value.
977 (remote_async_mask): Delete.
979 * infrun.c (fetch_inferior_event): Don't claim registers changed
980 if the current thread is already not executing.
982 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
984 From Stephen Kitt <steve@sk2.org>
985 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
986 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
988 2011-06-03 Joel Brobecker <brobecker@adacore.com>
990 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
991 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
993 2011-06-03 Tom Tromey <tromey@redhat.com>
995 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
997 * python/py-exitedevent.c (create_exited_event_object): Change
998 type of 'exit_code'. Optionally add exit_code attribute.
999 (emit_exited_event): Change type of 'exit_code'.
1000 * python/py-event.h (emit_exited_event): Update.
1001 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
1002 * infrun.c (handle_inferior_event): Set exit code fields on
1004 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
1006 * inferior.c (exit_inferior_1): Initialize new fields.
1008 2011-06-03 Tom Tromey <tromey@redhat.com>
1010 * dwarf2expr.c (get_signed_type): New function.
1011 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
1013 2011-06-02 Keith Seitz <keiths@redhat.com>
1015 * objc-lang.c (find_methods): Increment objfile_csym earlier.
1017 2011-06-02 Pedro Alves <pedro@codesourcery.com>
1019 * top.h (simplified_command_loop): Delete declaration.
1021 2011-06-01 Mike Frysinger <vapier@gentoo.org>
1023 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
1024 gdb_sysroot to the "len" variable. Append both to "arg_buf".
1026 2011-06-01 Yao Qi <yao@codesourcery.com>
1028 * objfiles.h (obj_section_addr): Update reference to objfile from
1030 (obj_section_endaddr): Likewise.
1032 2011-06-01 Daniel Jacobowitz <drow@false.org>
1034 * MAINTAINERS: Update my email address and affiliation. Also
1035 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
1037 2010-05-31 Keith Seitz <keiths@redhat.com>
1040 * linespec.c (get_search_block): New function.
1041 (find_methods): Add FILE_SYMTATB parameter and use it and
1042 get_search_block to pass an appropriate block to
1043 lookup_symbol_in_namespace.
1044 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
1045 Check if *ARGPTR starts with a filename first.
1046 If it does, call locate_first_half again to locate the next
1047 "first half" of the linespec.
1048 Pass FILE_SYMTATB to decode_objc and decode_compound.
1049 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
1050 (locate_first_half): Stop on the first colon seen.
1051 (decode_compound): Add FILE_SYMTAB parameter.
1052 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
1053 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
1054 get_search_block with lookup_symbol.
1055 (find_method): Add FILE_SYMTAB parameter and pass it to
1057 (decode_objc): Use get_search_block.
1059 2010-05-31 Keith Seitz <keiths@redhat.com>
1062 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
1063 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
1064 and CP_ANONYMOUS_NAMESPACE_LEN.
1065 (cp_is_anonymous): Likewise.
1066 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
1067 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
1068 * dwarf2read.c (namespace_name): Likewise.
1069 (fixup_partial_die): Likewise.
1070 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
1071 seen in the input, keep it.
1073 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1075 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
1076 * inf-loop.h (inferior_event_handler_wrapper): Delete.
1077 * inf-loop.c (inferior_event_handler_wrapper): Delete.
1078 (inferior_event_handler): Don't handle INF_QUIT_REQ.
1079 * remote.c (_initialize_remote): Register
1080 async_remote_interrupt_twice directly as
1081 sigint_remote_twice_token event.
1083 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1085 * target.h (enum inferior_event_type): Delete INF_ERROR.
1086 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
1088 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1090 * interps.c (interp_set): Don't cancel continuations.
1092 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1094 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
1096 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1098 * continuations.h (continuation_ftype): Add `err' parameter.
1099 Document parameters.
1100 (do_all_continuations, do_all_continuations_thread)
1101 (do_all_intermediate_continuations)
1102 (do_all_intermediate_continuations_thread)
1103 (do_all_inferior_continuations): Add `err' parameter.
1104 * continuations.c (do_my_continuations_1, do_my_continuations)
1105 (do_all_inferior_continuations, do_all_continuations_ptid)
1106 (do_all_continuations_thread_callback)
1107 (do_all_continuations_thread, do_all_continuations)
1108 (do_all_intermediate_continuations_thread_callback)
1109 (do_all_intermediate_continuations_thread)
1110 (do_all_intermediate_continuations): Add `err' parameter, and pass
1111 it down all the way to the continuations proper.
1112 * inf-loop.c (inferior_event_handler): If fetching an inferior
1113 event throws an error, don't pop the target, and still call the
1114 continuations, but with `err' set. Adjust all other continuation
1116 * breakpoint.c (until_break_command_continuation): Add `err'
1118 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
1119 issue another step if `err' is set.
1120 (struct until_next_continuation_args): New.
1121 (until_next_continuation): Add `err' parameter. Adjust.
1122 (until_next_command): Adjust.
1123 (struct finish_command_continuation_args): Add `thread' field.
1124 (finish_command_continuation): Add `err' parameter. Handle it.
1125 (finish_forward): Adjust.
1126 (attach_command_continuation): Add `err' parameter. Handle it.
1127 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
1128 cancel the continuations.
1129 * interps.c (interp_set): Adjust to cancel the continuations.
1130 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
1131 continuations rather than discarding.
1132 (free_thread): Don't clear thread inferior resources here.
1133 (delete_thread_1): Do it here instead. And do it before removing
1134 the thread from the threads list. Tag the thread as exited before
1135 clearing thread inferior resources.
1137 2011-05-30 Joel Brobecker <brobecker@adacore.com>
1139 * infcall.c (call_function_by_hand): Rephrase error message.
1141 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1143 * defs.h (struct thread_info, struct inferior): Delete forward
1145 * breakpoint.h (struct thread_info): New forward declaration.
1146 * observer.sh (struct inferior): New forward declaration.
1147 * python/python-internal.h (struct inferior): New forward
1150 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1152 * defs.h (struct continuation, continuation_ftype)
1153 (continuation_free_arg_ftype, add_continuation)
1154 (do_all_continuations, do_all_continuations_thread)
1155 (discard_all_continuations, discard_all_continuations_thread)
1156 (add_intermediate_continuation, do_all_intermediate_continuations)
1157 (do_all_intermediate_continuations_thread)
1158 (discard_all_intermediate_continuations)
1159 (discard_all_intermediate_continuations_thread)
1160 (add_inferior_continuation, do_all_inferior_continuations)
1161 (discard_all_inferior_continuations): Move to ...
1162 * continuations.h: ... this new file.
1163 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
1164 infcmd.c, inferior.c, infrun.c, interps.c: Include
1167 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1168 Doug Evans <dje@google.com>
1170 Fix PR 10970, PR 12702.
1171 * linux-nat.c (linux_lwp_is_zombie): New function.
1172 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
1173 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
1175 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1177 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
1179 (add_continuation, add_intermediate_continuation)
1180 (add_inferior_continuation): Use them.
1181 * continuations.c (struct continuation): Use them.
1182 (make_continuation_ftype): Delete.
1183 (make_continuation, add_inferior_continuation, add_continuation)
1184 (add_intermediate_continuation): Use continuation_ftype and
1185 continuation_free_arg_ftype. Rename parameters to shorter names.
1187 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1189 * continuations.c (make_continuation): Make it return void.
1190 (do_my_continuations): Rename to ...
1191 (do_my_continuations_1): ... this. Remove old_chain parameter and
1193 (do_my_continuations): New.
1194 (discard_my_continuations): Rename to ...
1195 (discard_my_continuations_1): ... this. Remove old_chain
1196 parameter and adjust.
1197 (discard_my_continuations): New.
1198 (add_inferior_continuation): Simplify.
1199 (do_all_inferior_continuations): Reimplement on top
1200 do_my_continuations.
1201 (discard_all_inferior_continuations): Simplify.
1202 (add_continuation): Simplify.
1203 (do_all_continuations_ptid): Simplify.
1204 (discard_all_continuations_thread_callback): Simplify.
1205 (add_intermediate_continuation): Simplify.
1206 (discard_all_intermediate_continuations_thread_callback):
1209 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1211 * utils.c (struct continuation, add_continuation)
1212 (add_inferior_continuation)
1213 (do_all_inferior_continuations, discard_all_inferior_continuations)
1214 (restore_thread_cleanup, do_all_continuations_ptid)
1215 (do_all_continuations_thread_callback)
1216 (do_all_continuations_thread, do_all_continuations)
1217 (discard_all_continuations_thread_callback)
1218 (discard_all_continuations_thread, discard_all_continuations)
1219 (add_intermediate_continuation)
1220 (do_all_intermediate_continuations_thread_callback)
1221 (do_all_intermediate_continuations_thread)
1222 (do_all_intermediate_continuations)
1223 (discard_all_intermediate_continuations_thread_callback)
1224 (discard_all_intermediate_continuations_thread)
1225 (discard_all_intermediate_continuations): Move to ...
1226 * continuations.c: ... this new file, and adjust to no longer
1227 implement continuations on top of cleanups.
1228 * Makefile.in (SFILES): Add continuations.c.
1229 (COMMON_OBS): Add continuations.o.
1231 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1233 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
1234 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
1235 Internal error on invalid values.
1236 * reverse.c: Don't handle EXEC_ERROR.
1237 * mi/mi-main.c: Don't handle EXEC_ERROR.
1239 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1241 * record.c: Include event-loop.h, inf-loop.h.
1242 (record_beneath_to_async): New global.
1243 (tmp_to_async): New global.
1244 (record_async_inferior_event_token): New global.
1245 (record_open_1): Don't error out if async is enabled.
1246 (record_open): Handle to_async. Create an async event source in
1248 (record_close): Delete the async event source.
1249 (record_resumed): New global.
1250 (record_execution_dir): New global.
1251 (record_resume, record_core_resume): Set them. Register the
1252 target on the event loop.
1253 (record_wait): Rename to ...
1254 (record_wait_1): ... this. Add more debug output. Handle
1255 TARGET_WNOHANG, and the target beneath returning
1256 TARGET_WAITKIND_IGNORE.
1257 (record_wait): Reimplement on top of record_wait_1.
1258 (record_async_mask_value): New global.
1259 (record_async, record_async_mask, record_can_async_p)
1260 (record_is_async_p, record_execution_direction): New functions.
1261 (init_record_ops, init_record_core_ops): Install new methods.
1262 * infrun.c (fetch_inferior_event): Temporarily switch the global
1263 execution direction to the direction the target was going.
1264 (execution_direction): Change type to int.
1265 * target.c (default_execution_direction): New function.
1266 (update_current_target): Inherit and de_fault
1267 to_execution_direction.
1268 * target.h (struct target_ops) <to_execution_direction>: New
1270 (target_execution_direction): New macro.
1271 * inferior.h (execution_direction): Change type to int.
1273 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1275 * infcall.c (call_function_by_hand): Don't allow calling functions
1276 in reverse execution mode.
1278 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1280 * infcmd.c (finish_command): Allow async finish in reverse.
1282 2011-05-26 Yao Qi <yao@codesourcery.com>
1284 * gdb_thread_db.h: Delete. Move to ...
1285 * common/gdb_thread_db.h: ... here.
1287 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1289 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
1290 function's entry point instead of a manually managed momentary
1291 breakpoint, and only ever issue one proceed call.
1292 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
1293 doing a reverse-finish, switch to stepi mode, to do another step.
1294 (insert_step_resume_breakpoint_at_sal): Make public.
1295 (normal_stop): No need to save function value return registers if
1297 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
1299 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1301 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
1302 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
1303 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
1305 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
1306 step-resume breakpoints.
1307 (print_it_typical): Handle bp_hp_step_resume.
1308 (bpstat_what): Ditto.
1309 (bptype_string): Ditto.
1310 (print_one_breakpoint_location): Ditto.
1311 (allocate_bp_location): Ditto.
1313 (breakpoint_re_set_one): Ditto.
1314 * infrun.c (handle_inferior_event): Adjust. Split
1315 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
1316 BPSTAT_WHAT_HP_STEP_RESUME.
1317 (insert_step_resume_breakpoint_at_sal): Rename to ...
1318 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
1319 parameter. Handle it.
1320 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
1321 insert_step_resume_breakpoint_at_sal_1.
1322 (insert_step_resume_breakpoint_at_frame): Rename to ...
1323 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
1324 set a high-priority step-resume breakpoint.
1325 (insert_step_resume_breakpoint_at_frame): Adjust comment.
1326 (insert_step_resume_breakpoint_at_caller): Ditto.
1328 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1330 * breakpoint.c (iterate_over_related_breakpoints): New.
1331 (do_map_delete_breakpoint): New.
1332 (delete_command): Pass do_map_delete_breakpoint to
1333 map_breakpoint_numbers.
1334 (do_disable_breakpoint): New.
1335 (do_map_disable_breakpoint): Iterate over the breakpoint's related
1337 (do_enable_breakpoint): Rename to ...
1338 (enable_breakpoint_disp): ... this.
1339 (enable_breakpoint): Adjust.
1340 (do_enable_breakpoint): New.
1341 (enable_once_breakpoint): Delete.
1342 (do_map_enable_breakpoint): New.
1343 (do_map_enable_once_breakpoint): New.
1344 (enable_once_command, enable_delete_command)
1345 (delete_trace_command): Iterate over the breakpoint's related
1348 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1350 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
1351 for ALPHA_ZERO_REGNUM.
1352 (alpha_supply_int_regs): Explicitly supply zero as the value for
1353 ALPHA_ZERO_REGNUM in the register cache.
1354 * alpha-nat.c (fetch_osf_core_registers): Ditto.
1356 2011-05-26 Yao Qi <yao@codesourcery.com>
1358 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
1360 2011-05-26 Tristan Gingold <gingold@adacore.com>
1362 * symfile.h (struct dwarf2_section_names): New type.
1363 (struct dwarf2_debug_sections): New type.
1364 (dwarf2_has_info): Add parameter.
1365 * dwarf2read.c (dwarf2_elf_names): New variable.
1366 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
1367 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
1368 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
1369 (dwarf2_has_info): Add names parameter. Pass names
1370 to dwarf2_locate_sections.
1371 (section_is_p): Rewrite using the names parameter.
1372 (dwarf2_locate_sections): Use section names from the names parameter.
1373 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
1374 * elfread.c (read_psyms): Ditto.
1375 * machoread.c (macho_symfile_read): Ditto.
1377 2011-05-25 Andreas Schwab <schwab@redhat.com>
1380 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
1382 2011-05-24 Keith Seitz <keiths@redhat.com>
1385 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
1386 (decode_compound): Unconditionally call keep_name_info.
1388 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1390 * breakpoint.c (watchpoint_check): If the watchpoint went out of
1391 scope, clear its command list.
1392 (map_breakpoint_numbers): Don't walk the related breakpoints list
1395 2011-05-24 Tom Tromey <tromey@redhat.com>
1397 * MAINTAINERS: Move Jim Blandy to past maintainers.
1399 2011-05-24 Tristan Gingold <gingold@adacore.com>
1401 * symfile.h (enum dwarf2_section_enum): New type.
1402 (dwarf2_get_section_info): New prototype.
1403 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
1404 section_name by sect. Use a switch to select the info.
1405 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
1406 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
1408 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1410 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
1411 shared library event breakpoint if there's no execution.
1413 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
1415 * breakpont.c (remove_hw_watchpoints): Remove unused function.
1416 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
1418 2011-05-23 Tom Tromey <tromey@redhat.com>
1420 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
1423 2011-05-23 Doug Evans <dje@google.com>
1425 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
1426 entry for RuntimeError to doc string.
1428 2011-05-23 Jerome Guitton <guitton@adacore.com>
1430 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
1431 sequence for probing loops.
1433 2011-05-23 Pedro Alves <pedro@codesourcery.com>
1435 * infrun.c (user_visible_resume_ptid): Fix typos in describing
1438 2011-05-21 Mark Kettenis <kettenis@gnu.org>
1440 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
1441 zero as the value for %g0 in the register cache.
1442 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
1443 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1445 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1447 * infrun.c (proceed): Set previous_inferior_ptid here.
1448 (init_wait_for_inferior): Initialize previous_inferior_ptid from
1449 inferior_ptid, not null_ptid.
1450 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
1451 (fetch_inferior_event): Nor here.
1453 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1455 * inf-loop.c (inferior_event_handler): Only output a message if
1458 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
1460 * MAINTAINERS: Update my e-mail address.
1462 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1464 * infrun.c (proceed): Switch the inferior event loop to
1465 INF_EXEC_COMPLETE if the target refused to resume from a
1468 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1470 * infcmd.c: Include "inf-loop.h".
1471 (step_once): When stepping into an inline subroutine, pretend the
1472 target has run. If the target can async, switch the inferior
1473 event loop to INF_EXEC_COMPLETE.
1474 * inferior.h (user_visible_resume_ptid): Declare.
1475 * infrun.c (user_visible_resume_ptid): New function, factored out
1478 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
1479 that the current thread is running. Merge async and sync
1482 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1484 * infcmd.c (step_1): Simplify synchronous case.
1486 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1488 * tracepoint.c: Include exceptions.h.
1489 (TFILE_PID): Move higher in file.
1490 (tfile_open): Delay pushing the tfile target until we're assured
1491 the tfile header is present in the file. Wrap reading the initial
1492 newline-terminated lines in TRY_CATCH. Pop the target if the
1493 initial setup failed. Add the tfile's thread immediately
1494 aftwards, before any non-essential setup. Don't skip
1495 post_create_inferior if there are no traceframes present in the
1497 (tfile_close): Remove redundant check for null before xfree call.
1498 (tfile_thread_alive): New function.
1499 (init_tfile_ops): Register it as to_thread_alive callback.
1501 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1503 * tracepoint.c (tfile_open): Delete #if 0'd code.
1505 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1507 Fix -readnow for -gdwarf-4 unused type units.
1508 * dwarf2read.c (struct signatured_type): Remove the field offset.
1509 (create_signatured_type_table_from_index): Remove its initialization.
1510 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
1511 instead. Add a complaint call.
1512 (process_psymtab_comp_unit): Change assignment to gdb_assert.
1513 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
1514 (lookup_signatured_type_at_offset, read_signatured_type)
1515 (write_one_signatured_type): Update the field for per_cu.
1517 2011-05-19 Tom Tromey <tromey@redhat.com>
1519 * python/py-inferior.c (python_inferior_exit): Use
1521 (python_on_resume): Likewise.
1523 2011-05-19 Matt Rice <ratmice@gmail.com>
1525 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
1527 2011-05-19 Hui Zhu <teawater@gmail.com>
1529 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
1531 2011-05-19 Hui Zhu <teawater@gmail.com>
1533 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
1535 2011-05-18 Tom Tromey <tromey@redhat.com>
1537 * dwarf2read.c (dwarf2_add_field): Constify.
1538 * value.c (value_static_field): Constify.
1539 * gdbtypes.h (struct main_type) <field.field_location.physname>:
1541 * ax-gdb.c (gen_static_field): Constify
1543 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1545 * linux-nat.c (kill_callback): Use SIGKILL first.
1547 2011-05-18 Joel Brobecker <brobecker@adacore.com>
1549 * ada-lang.c (print_it_exception): Avoid use of sprintf.
1551 2011-05-18 Tom Tromey <tromey@redhat.com>
1553 * value.c (value_fn_field): Constify.
1554 * symtab.c (gdb_mangle_name): Constify.
1555 * stabsread.c (update_method_name_from_physname): Make 'physname'
1557 * p-typeprint.c (pascal_type_print_method_args): Make arguments
1558 const. Use explicit fputc_filtered loop.
1559 (pascal_type_print_base): Constify.
1560 * p-lang.h (pascal_type_print_method_args): Update.
1561 * linespec.c (add_matching_methods): Constify.
1562 (add_constructors): Likewise.
1563 * jv-typeprint.c (java_type_print_base): Constify.
1564 * gdbtypes.h (struct cplus_struct_type)
1565 <fn_fieldlist.fn_field.physname>: Now const.
1566 * dwarf2read.c (compute_delayed_physnames): Constify.
1567 (dwarf2_add_member_fn): Likewise.
1568 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
1570 2011-05-18 Pedro Alves <pedro@codesourcery.com>
1572 * infrun.c (resume): Mention which is the current thread, and its
1573 current PC in debug output.
1574 (prepare_to_proceed): Mention the thread switching in debug
1577 2011-05-18 Tom Tromey <tromey@redhat.com>
1579 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
1580 path check. Use xmalloc and cleanups.
1581 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
1583 2011-05-17 Tom Tromey <tromey@redhat.com>
1585 * cp-valprint.c (cp_print_value_fields): Catch errors from
1588 2011-05-17 Tom Tromey <tromey@redhat.com>
1590 * dwarf2read.c (dwarf2_get_die_type): Call
1591 get_die_type_at_offset.
1592 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
1593 get_base_type function.
1595 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
1597 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
1600 2011-05-16 Doug Evans <dje@google.com>
1602 * python/py-auto-load.c (source_section_scripts): Mention objfile
1605 2011-05-15 Doug Evans <dje@google.com>
1607 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
1608 (try_thread_db_load_from_pdir): Call it. If unable to find
1609 libthread_db in directory of libpthread, see if we're looking at
1610 the separate-debug-info copy.
1612 * python/py-autoload.c (print_script): Print "Missing" instead of
1613 "No" for missing scripts.
1614 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
1616 2011-05-13 Doug Evans <dje@google.com>
1618 * ui-file.c (stdio_file_write_async_safe): Add comment.
1620 2011-05-14 Hui Zhu <teawater@gmail.com>
1622 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
1624 2011-05-13 Doug Evans <dje@google.com>
1626 Support $pdir and $sdir in libthread-db-search-path.
1627 * NEWS: Mention $sdir,$pdir.
1628 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
1629 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
1630 (try_thread_db_load_from_sdir): New function.
1631 (try_thread_db_load_from_dir): New function.
1632 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
1633 system directories if search of libthread-db-search-path fails,
1634 that is now done via $sdir.
1635 (has_libpthread): New function.
1636 (thread_db_load): Remove search for libthread_db in directory of
1637 libpthread, that is now done via $pdir.
1639 * NEWS: Mention "info auto-load-scripts".
1640 * python/py-auto-load.c (struct auto_load_pspace_info): New member
1641 script_not_found_warning_printed.
1642 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
1643 all callers updated. Initialize script_not_found_warning_printed.
1644 (get_auto_load_pspace_data_for_loading): New function.
1645 (maybe_add_script): New function.
1646 (source_section_scripts): Simplify. Only print one warning regardless
1647 of the number of auto-load scripts not found.
1648 (clear_section_scripts): Clear script_not_found_warning_printed.
1649 (auto_load_objfile_script): Record script in hash table.
1650 (count_matching_scripts): New function.
1651 (maybe_print_script): Renamed from maybe_print_section_script, all
1652 callers updated. Rewrite to use ui_out_*.
1653 (info_auto_load_scripts): Renamed from
1654 maintenance_print_section_scripts, all callers updated.
1655 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
1656 renamed as "info auto-load-scripts".
1658 2011-05-13 Tom Tromey <tromey@redhat.com>
1660 * dwarf2expr.c (read_uleb128): Cast intermediate result.
1661 (read_sleb128): Likewise.
1663 2011-05-13 Tom Tromey <tromey@redhat.com>
1665 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
1668 2011-05-13 Doug Evans <dje@google.com>
1670 * linux-nat.c (debug_linux_nat_async): Delete.
1671 Replace all references to use debug_linux_nat instead.
1672 (show_debug_linux_nat_async): Delete.
1673 (sigchld_handler): Call ui_file_write_async_safe instead of
1675 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
1676 * ui-file.c (struct ui_file): New member to_write_async_safe.
1677 (null_file_write_async_safe): New function.
1678 (ui_file_write_async_safe): New function.
1679 (set_ui_file_write_async_safe): New function.
1680 (ui_file_new): Initialize to_write_async_safe.
1681 (stdio_file_write_async_safe): New function.
1682 (struct stdio_file): New member fd.
1683 (stdio_file_new): Initialize to_write_async_safe, fd.
1684 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
1686 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
1687 (set_ui_file_write_async_safe): Declare.
1688 (ui_file_write_async_safe): Declare.
1690 2011-05-13 Tom Tromey <tromey@redhat.com>
1692 * utils.c (do_value_free): New function.
1693 (make_cleanup_value_free): Likewise.
1694 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
1696 (dwarf2_loc_desc_needs_frame): Call
1697 make_cleanup_value_free_to_mark.
1698 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
1699 * dwarf2expr.c (free_dwarf_expr_context): Don't call
1701 (new_dwarf_expr_context): Don't call value_mark.
1702 * dwarf2-frame.c (execute_stack_op): Call
1703 make_cleanup_value_free_to_mark.
1704 * defs.h (make_cleanup_value_free): Declare.
1706 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1708 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
1709 prepare_execute_command.
1710 * top.c (prepare_execute_command): Return cleanup.
1711 (execute_command): Use cleanup from prepare_execute_command.
1712 * top.h (prepare_execute_command): Change prototype to return
1714 * defs.h (struct value): Add opaque declaration.
1715 (make_cleanup_value_free_to_mark): Add prototype.
1716 * utils.c (do_value_free_to_mark): New function.
1717 (make_cleanup_value_free_to_mark): Likewise.
1719 2011-05-12 Tom Tromey <tromey@redhat.com>
1721 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
1722 cast left-hand-side to unsigned.
1724 2011-05-12 Tom Tromey <tromey@redhat.com>
1727 * value.h (value_from_contents): Declare.
1728 * value.c (value_from_contents): New function.
1729 * dwarf2read.c (dwarf_stack_op_name): Add new values.
1730 (dwarf2_get_die_type): New function.
1731 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
1732 (allocate_piece_closure): Acquire reference to values.
1733 (read_pieced_value): Update for value-based expressions.
1734 (write_pieced_value): Likewise.
1735 (free_pieced_value_closure): Call value_free as needed.
1736 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
1737 Update for value-based expressions.
1738 * dwarf2loc.h (dwarf2_get_die_type): Declare.
1739 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
1740 <get_base_type>: New field.
1741 (struct dwarf_expr_piece) <v.value>: Change type.
1742 <v.regno>: New field.
1743 (struct dwarf_expr_context) <mark>: New field.
1744 (dwarf_expr_piece, dwarf_expr_fetch): Update.
1745 (dwarf_expr_pop, dwarf_expr_push): Remove.
1746 (dwarf_expr_push_address): Declare.
1747 * dwarf2expr.c (dwarf_arch_cookie): New global.
1748 (struct dwarf_gdbarch_types): New.
1749 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
1751 (dwarf_expr_push): Change type of 'value' argument. Update. Now
1753 (dwarf_expr_push_address): New function.
1754 (dwarf_expr_pop): Now static.
1755 (dwarf_expr_fetch): Change return type.
1756 (dwarf_require_integral): New function.
1757 (dwarf_expr_fetch): Simplify.
1758 (add_piece): Update.
1759 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
1761 (execute_stack_op) <sign_ext>: Remove.
1762 Use values for DWARF stack.
1763 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
1764 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1766 (_initialize_dwarf2expr): New function.
1767 (add_piece): Update.
1768 (new_dwarf_expr_context): Set new field.
1769 (free_dwarf_expr_context): Call value_free_to_mark.
1770 * dwarf2-frame.c (no_base_type): New function.
1771 (execute_stack_op): Set get_base_type field. Update.
1773 2011-05-12 Tom Tromey <tromey@redhat.com>
1775 * dwarf2read.c (read_common_block): Fix formatting.
1777 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
1779 * breakpoint.c (disable_breakpoint): Disable all locations
1780 associated with a tracepoint on target if a trace experiment is
1782 (disable_command): Disable a specific tracepoint location on target if
1783 a trace experiment is running.
1784 (do_enable_breakpoint): Enable all locations associated with a
1785 tracepoint on target if a trace experiment is running.
1786 (enable_command) Enable a specific tracepoint location on target if a
1787 trace experiment is running.
1788 * target.c (update_current_target): Add INHERIT and de_fault clauses for
1789 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1790 to_disable_tracepoint.
1791 * target.h: Add declaration of struct bp_location.
1792 (struct target_ops): Add new functions
1793 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1794 to_disable_tracepoint to target operations.
1795 (target_supports_enable_disable_tracepoint): New macro.
1796 (target_enable_tracepoint): New macro.
1797 (target_disable_tracepoint): New macro.
1798 * remote.c (struct remote_state): Add new field.
1799 (remote_enable_disable_tracepoint_feature): New.
1800 (remote_protocol_features): Add new entry.
1801 (remote_supports_enable_disable_tracepoint): New.
1802 (remote_enable_tracepoint): New.
1803 (remote_disable_tracepoint): New.
1804 (init_remote_ops): Add remote_enable_tracepoint,
1805 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1806 to remote operations.
1807 * tracepoint.c (start_tracing): Allow tracing to start without any
1808 tracepoints enabled with just a warning if they can be re-enabled
1810 * NEWS: Add news item for the new behaviour of the enable and disable
1811 GDB commands when applied to tracepoints.
1812 Add news items for the new remote packets QTEnable and QTDisable.
1814 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1816 * config.in: Regenerate.
1817 * configure: Regenerate.
1818 * configure.ac <--with-system-readline> (for readline_echoing_p):
1820 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1821 (tui_old_rl_echoing_p): ... here.
1822 (tui_setup_io): Rename extern declaration readline_echoing_p to
1823 _rl_echoing_p. Adjust assignments for the both renames.
1825 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1827 * symtab.c (lookup_symtab): Run cleanup before returning.
1829 2011-05-11 Tom Tromey <tromey@redhat.com>
1831 * dwarf2read.c (handle_data_member_location): New function.
1832 (dwarf2_add_field): Use it.
1833 (read_common_block): Likewise.
1835 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1837 Make addrs->SECTINDEX always defined.
1838 * symfile.c (relative_addr_info_to_section_offsets): Check for
1839 SECTINDEX -1, not for zero ADDR.
1840 (addrs_section_compar): Remove checking for invalid SECTINDEX.
1841 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1842 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1845 2011-05-10 Doug Evans <dje@google.com>
1847 * linux-thread-db.c: Whitespace cleanup.
1848 (try_thread_db_load_1): Fix comment.
1850 * linux-thread-db.c (set_libthread_db_search_path): New function.
1851 (_initialize_thread_db): Add setter for libthread-db-search-path.
1853 2011-05-09 Doug Evans <dje@google.com>
1855 * NEWS: Mention --with-iconv-bin.
1856 * configure.ac: New option --with-iconv-bin.
1857 * configure: Regenerate.
1858 * config.in: Regenerate.
1859 * defs.h (relocate_gdb_directory): Declare.
1860 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1861 removed progname parameter, and exported. All callers updated.
1862 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1864 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1865 adding missing call to restore_child_signals_mask.
1867 2011-05-09 Pedro Alves <pedro@codesourcery.com>
1869 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1871 * infrun.c (proceed, start_remote): Adjust.
1872 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1873 and adjust to not handle it.
1874 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1875 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1876 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1877 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1878 * windows-nat.c (do_initial_windows_stuff): Adjust.
1879 * infcmd.c (attach_command): Adjust.
1880 (notice_new_inferior): Adjust.
1882 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1884 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1885 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1886 * spu-tdep.c (op_selb): Use correct value.
1888 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1890 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1891 "parent" parameter to symbol_file_add_from_bfd call.
1893 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1894 Thiago Jung Bauermann <bauerman@br.ibm.com>
1896 Implement support for PowerPC BookE masked watchpoints.
1897 * NEWS: Mention masked watchpoint support. Create "Changed commands"
1899 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
1900 method. Initialize to NULL in all existing breakpoint_ops instances.
1901 (struct breakpoint) <hw_wp_mask>: New field.
1902 * breakpoint.c (is_masked_watchpoint): Add prototype.
1903 (update_watchpoint): Don't set b->val for masked watchpoints. Call
1904 breakpoint's breakpoint_ops.works_in_software_mode if available.
1905 (watchpoints_triggered): Handle the case of a hardware masked
1907 (watchpoint_check): Likewise.
1908 (works_in_software_mode_watchpoint): New function.
1909 (insert_masked_watchpoint, remove_masked_watchpoint)
1910 (resources_needed_masked_watchpoint)
1911 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
1912 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
1913 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
1915 (masked_watchpoint_breakpoint_ops): New structure.
1916 (watch_command_1): Check for the existence of the `mask' parameter.
1917 Set b->ops according to the type of hardware watchpoint being created.
1918 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
1919 (ppc_linux_remove_mask_watchpoint)
1920 (ppc_linux_masked_watch_num_registers): New functions.
1921 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
1922 to_remove_mask_watchpoint and to_masked_watch_num_registers.
1923 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
1924 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
1925 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1926 (target_masked_watch_num_registers): New functions.
1927 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
1928 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
1930 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1931 (target_masked_watch_num_registers): Add prototypes.
1933 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1936 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
1937 (producer_is_gcc_ge_4_0): New function.
1938 (process_full_comp_unit): Set also symtab->locations_valid. Move the
1939 symtab->language code.
1940 (var_decode_location): Set cu->has_loclist.
1941 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
1942 skip. Intialize force_skip from locations_valid. Move the prologue
1943 skipping code into two passes.
1944 * symtab.h (struct symtab): Make the primary field a bitfield. New
1945 field locations_valid.
1947 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1949 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
1950 (classify_inner_name): Call cp_lookup_nested_type with
1952 * cp-namespace.c (cp_lookup_nested_type): New variable
1953 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
1954 type_name_no_tag_or_error with saved_parent_type.
1955 * dwarf2read.c (load_partial_dies): Read in any children of
1956 DW_TAG_typedef with complaint in such case.
1957 * gdbtypes.c (type_name_no_tag_or_error): New function.
1958 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
1959 * valops.c (destructor_name_p): New comment for parameter type. Remove
1960 type const. Make dname and cp const. Call type_name_no_tag_or_error.
1961 * value.h (destructor_name_p): Remove type const.
1963 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1965 * symtab.c (compare_symbol_name): New function.
1966 (completion_list_add_name, expand_partial_symbol_name): Call it,
1967 remove the variable ncmp.
1968 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
1971 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1973 Demote to sw watchpoint only in update_watchpoint.
1974 * breakpoint.c (update_watchpoint): Change between software and
1975 hardware watchpoint for all kinds of watchpoints, not just
1976 read/write ones. Determine b->exact value here instead of
1977 in watch_command_1. Error out if there are not enough resources
1978 for a read or access hardware watchpoint.
1979 (watch_command_1): Remove logic of checking whether there are
1980 enough resources available, since update_watchpoint will do that
1981 work now. Don't set b->exact here. Catch exceptions thrown by
1982 update_watchpoint and delete the watchpoint.
1983 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
1984 Use target_exact_watchpoints instead.
1985 (delete_breakpoint): Notify observers only if deleted watchpoint
1986 has a breakpoint number assigned to it.
1988 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
1990 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1992 2011-05-05 Jerome Guitton <guitton@adacore.com>
1994 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
1996 (i386_stack_tramp_frame_unwind): New static global.
1997 (i386_match_pattern): New function, extracted from i386_match_insn.
1998 (i386_match_insn): Use i386_match_pattern.
1999 (i386_match_insn_block): New function.
2000 (i386_tramp_chain_in_reg_insns)
2001 (i386_tramp_chain_on_stack_insns): New static variables.
2002 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
2005 2011-05-04 Joseph Myers <joseph@codesourcery.com>
2007 * configure.host (xscale*): Don't handle target.
2008 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
2011 2011-05-04 Yao Qi <yao@codesourcery.com>
2013 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
2015 2011-05-03 Joel Brobecker <brobecker@adacore.com>
2018 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
2019 | * elfread.c (elf_symtab_read): Stop memory leak.
2021 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2023 * nto-tdep.c (nto_target): Replace deprecated call to
2024 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
2026 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2028 Fix false GCC warning.
2029 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
2031 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
2033 * breakpoint.c (update_watchpoint): Move code to change
2034 the enable state of breakpoint from here ...
2035 (do_enable_breakpoint): ... to here.
2037 2011-04-26 Andrew Gontarek <andrewg@cray.com>
2039 * valprint.c (val_print_array_elements): Fixed poor performance
2040 of printing very large arrays with repeat_count_threshold set
2041 to unlimited. New comment.
2043 2011-04-29 Tom Tromey <tromey@redhat.com>
2045 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
2046 (mi_parse): Likewise.
2047 * breakpoint.c (break_range_command): Use sizeof char*, not
2049 (create_breakpoint): Likewise.
2050 (parse_breakpoint_sals): Likewise.
2052 2011-04-29 Pedro Alves <pedro@codesourcery.com>
2054 * linux-nat.c (linux_child_remove_fork_catchpoint)
2055 (linux_child_remove_vfork_catchpoint)
2056 (linux_child_remove_exec_catchpoint): New functions.
2057 (linux_target_install_ops): Install them.
2059 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
2063 * varobj.c (install_default_visualizer): Do not install a
2064 visualizer if the varobj is CPLUS_FAKE_CHILD.
2065 (construct_visualizer): Likewise.
2067 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2069 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
2070 case insensitive comparison.
2072 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
2074 * infrun.c (proceed): Revert previous change.
2075 (resume): Instead, handle the case of signal delivery while stepping
2076 off a breakpoint location here, and only if software single-stepping
2077 is used. Handle nested signals.
2079 2011-04-28 Yao Qi <yao@codesourcery.com>
2081 * arm-tdep.c (copy_unmodified): Rename to ...
2082 (arm_copy_unmodified): .. this. New.
2083 (copy_preload): Move common part to ...
2084 (install_preload): .. this. New.
2085 (arm_copy_preload): New.
2086 (copy_preload_reg): Move common part to ...
2087 (install_preload_reg): ... this. New.
2088 (arm_copy_preload_reg): New.
2089 (copy_b_bl_blx): Move common part to ...
2090 (install_b_bl_blx): .. this. New.
2091 (arm_copy_b_bl_blx): New.
2092 (copy_bx_blx_reg): Move common part to ...
2093 (install_bx_blx_reg): ... this. New.
2094 (arm_copy_bx_blx_reg): New.
2095 (copy_alu_reg): Move common part to ...
2096 (install_alu_reg): ... this. New.
2097 (arm_copy_alu_reg): New.
2098 (copy_alu_shifted_reg): Move common part to ...
2099 (install_alu_shifted_reg): ... this. New.
2100 (copy_ldr_str_ldrb_strb): Move common part to ...
2101 (install_ldr_str_ldrb_strb): ... this. New.
2102 (arm_copy_ldr_str_ldrb_strb): New.
2103 (copy_copro_load_store): Move some common part to ...
2104 (install_copy_copro_load_store): ... this. New.
2105 (arm_copy_copro_load_store): New.
2107 (arm_copy_svc): Renamed from copy_svc.
2108 (copy_undef): Delete.
2109 (arm_copy_undef): Renamed from copy_undef.
2110 (decode_ext_reg_ld_st): Delete.
2111 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2112 (decode_svc_copro): Delete.
2113 (arm_decode_svc_copro): Renamed from decode_svc_copro.
2114 (copy_copro_load_store, copy_alu_imm): update callers.
2115 (copy_extra_ld_st, copy_block_xfer): Likewise.
2116 (decode_misc_memhint_neon, decode_unconditional): Likewise.
2117 (decode_miscellaneous, decode_dp_misc): Likewise.
2118 (decode_ld_st_word_ubyte, decode_media): Likewise.
2119 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
2120 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
2121 (decode_unconditional, decode_miscellaneous): Likewise.
2122 (decode_media, decode_b_bl_ldmstm): Likewise.
2123 (arm_process_displaced_insn): Likewise..
2124 (decode_misc_memhint_neon): Delete.
2125 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
2126 (decode_miscellaneous): Delete.
2127 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
2128 (decode_dp_misc): Delete.
2129 (arm_decode_dp_misc): Renamed from decode_dp_misc.
2130 (decode_ld_st_word_ubyte): Delete.
2131 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
2132 (decode_media): Delete.
2133 (arm_decode_media): Renamed from decode_media.
2134 (decode_b_bl_ldmstm): Delete.
2135 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
2136 (decode_ext_reg_ld_st): Delete.
2137 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2138 (decode_unconditional): Delete.
2139 (arm_decode_unconditional): Renamed from decode_unconditional.
2141 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2143 Case insensitive lookups implementation.
2144 * dwarf2read.c: Include ctype.h.
2145 (struct mapped_index): New field version.
2146 (mapped_index_string_hash): New parameter index_version. New comment
2147 for it. Call tolower appropriately.
2148 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
2149 Choose the right index version for mapped_index_string_hash.
2150 (dwarf2_read_index): Support also the index version 5. Initialize the
2151 new struct mapped_index field version.
2152 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
2153 (find_slot): Explain the version needs. Pass INT_MAX for the new
2155 (write_psymtabs_to_index): Produce version 5.
2156 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
2157 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
2158 * psymtab.c (lookup_partial_symbol): Find the
2159 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
2161 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
2163 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
2164 (completion_list_add_name): New variable ncmp, initialize it, use it.
2165 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
2166 * utils.c (strcmp_iw): Support case_sensitive_off.
2167 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
2168 New function comment part. New variables saved_string1,
2169 saved_string2 and case_pass. Add a proper second pass.
2171 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2173 Replace re_comp/re_exec by regcomp/regexec.
2174 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
2175 (search_symbols_name_matches): Use them, use regexec.
2176 (search_symbols): New variable retval_chain, adjust the use of
2177 old_chain against it. Replace re_comp by regcomp. Use the new struct
2178 search_symbols_data fields, use regexec instead of re_exec.
2180 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2182 Format the code for the next patch.
2183 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
2184 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
2185 New variables c1 and c2.
2187 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2189 * infrun.c (proceed): Do not single-step into signal delivery
2190 when stepping off a breakpoint location.
2191 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
2192 (insert_step_resume_breakpoint_at_caller): Likewise.
2193 (insert_step_resume_breakpoint_at_sal): Likewise.
2194 (insert_longjmp_resume_breakpoint): Likewise.
2196 2011-04-27 Yao Qi <yao@codesourcery.com>
2198 * common/linux-ptrace.h: Remove include <sys/wait.h>.
2200 2011-04-27 Joel Brobecker <brobecker@adacore.com>
2202 * procfs.c (procfs_pass_signals): Fix advance declaration.
2204 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2206 * target.h (struct target_ops): Remove to_notice_signals;
2207 add to_pass_signals.
2208 (target_notice_signals): Remove.
2209 (target_pass_signals): Add prototype.
2210 * target.c (update_current_target): Remove to_notice_signals;
2211 mention to_pass_signals.
2212 (target_pass_signals): New function.
2213 (debug_to_notice_signals): Remove.
2214 (setup_target_debug): Do not install debug_to_notice_signals.
2216 * infrun.c (signal_pass): New global.
2217 (resume): Call target_pass_signals.
2218 (handle_inferior_event): Report all signals while stepping over
2219 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
2220 are re-inserted when stepping over a signal handler.
2221 (signal_cache_update): New function.
2222 (signal_stop_update): Call it.
2223 (signal_print_update): Likewise.
2224 (signal_pass_update): Likewise.
2225 (handle_command): Call signal_cache_update and target_pass_signals
2226 instead of target_notice_signals.
2227 (_initialize_infrun): Initialize signal_pass.
2229 * linux-nat.c (pass_mask): New global.
2230 (linux_nat_pass_signals): New function.
2231 (linux_nat_create_inferior): Report all signals initially.
2232 (linux_nat_attach): Likewise.
2233 (linux_nat_resume): Use pass_mask to decide whether to directly
2234 handle an inferior signal.
2235 (linux_nat_wait_1): Likewise.
2236 (linux_nat_add_target): Install to_pass_signals callback.
2238 * nto-procfs.c (notice_signals): Remove.
2239 (procfs_resume): Do not call notice_signals.
2240 (procfs_notice_signals): Remove.
2241 (procfs_pass_signals): New function.
2242 (init_procfs_ops): Install to_pass_signals callback instead of
2243 to_notice_signals callback.
2244 (_initialize_procfs): Report all signals initially.
2246 * procfs.c (procfs_notice_signals): Remove.
2247 (procfs_pass_signals): New function.
2248 (procfs_target): Install to_pass_signals callback instead of
2249 to_notice_signals callback.
2250 (register_gdb_signals): Remove.
2251 (procfs_debug_inferior): Report all signals initially.
2252 (procfs_init_inferior): Remove redundant register_gdb_signals call.
2254 * remote.c (remote_pass_signals): Add numsigs and pass_signals
2255 parameters; use them instead of calling signal_..._state routines.
2256 (remote_notice_signals): Remove.
2257 (remote_start_remote): Report all signals initially.
2258 (remote_resume): Do not call remote_pass_signals.
2259 (_initialize_remote): Install to_pass_signals callback instead of
2260 to_notice_signals callback.
2262 2011-04-27 Pedro Alves <pedro@codesourcery.com>
2264 * breakpoint.c (user_settable_breakpoint): Delete.
2265 (user_breakpoint_p): Remove check on user_settable_breakpoint.
2266 (delete_command): Check user_breakpoint_p instead of looking at
2267 the breakpoint's type.
2268 (disable_command): Ditto.
2269 (enable_command): Ditto.
2270 (delete_trace_command): Use user_breakpoint_p instead of looking
2271 at the breakpoint number directly. When checking if there are
2272 user visible tracepoints, in order to know whether to ask the user
2273 for confirmation, check whether the breakpoint is actually a
2276 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2278 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
2281 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2283 MI breakpoint notifications.
2285 * annotate.c (breakpoint_changed): Adjust parameter type.
2286 * breakpoint.c (set_breakpoint_condition): Adjust to change
2287 in breakpoint_modified type.
2288 (breakpoint_set_commands): Likewise.
2289 (do_map_commands_command): Likewise.
2290 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
2291 changed after bumping hit count.
2292 (bpstat_stop_status): Likewise.
2293 (print_one_breakpoint_location): Don't wrap in tuple here.
2294 (print_one_breakpoint): Always print individual locations.
2295 For locations, use unnamed tuple.
2296 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
2298 (create_catchpoint, create_syscall_event_catchpoint): Call
2299 breakpoint_created obsever.
2300 (mention): Don't call breakpoint_created observer.
2301 (create_breakpoint_sal): Call breakpoint_created observer.
2302 (create_breakpoint, watch_command_1): Likewise.
2303 (create_ada_exception_breakpoint): Likewise.
2304 (delete_breakpoint): Call breakpoint_deleted breakpoint.
2305 (locations_are_equal): New.
2306 (update_breakpoint_locations): If locations were changed, notify.
2307 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
2308 Call breakpoint_modified observer.
2310 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2311 (mi_cmd_break_insert): Don't set observers for modify and delete.
2312 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
2313 (mi_breakpoint_created, mi_breakpoint_deleted)
2314 (mi_breakpoint_modified): New.
2315 (mi_interpreter_init): Hook the above.
2316 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
2317 while -break-* commands are executing.
2318 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
2319 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
2321 (mi_ui_out_impl): Hook in mi_redirect.
2322 (mi_field_skip): True to the name, skip the field, don't output
2323 a field with an empty value.
2325 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2326 (gdbpy_breakpoint_deleted): Adjust.
2327 * tui/tui-hooks.c (tui_event_create_breakpoint)
2328 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
2330 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
2332 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
2333 (procfs_remove_hw_watchpoint): Likewise.
2335 2011-04-26 Michael Walle <michael@walle.cc>
2337 * remote.c (remote_start_remote): Ack packet after sending the
2340 2011-04-26 Yao Qi <yao@codesourcery.com>
2342 * linux-nat.c: Move common macros to ...
2343 Include linux-ptrace.h.
2344 * common/linux-ptrace.h: ... here. New.
2346 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2348 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
2349 !objfile_has_partial_symbols. New comment.
2350 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
2351 SYM_READ_PSYMBOLS is not present. Extend the comment.
2352 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
2354 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2356 * defs.h (ENUM_BITFIELD): Remove.
2358 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2359 Eli Zaretskii <eliz@gnu.org>
2361 * NEWS: Document the new gdbserver --once option.
2363 2011-04-21 Jie Zhang <jzhang918@gmail.com>
2365 * MAINTAINERS: Update my email address.
2367 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2369 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
2370 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
2371 function call if __STDC_ISO_10646__ macro is defined.
2372 (intermediate_encoding): New prototype.
2373 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
2374 to generate compile time error for unsupported gdb_wchar_t size.
2375 (ENDIAN_SUFFIX): New macro.
2376 (intermediate_encoding): New function.
2378 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2380 * ada-lang.c (struct add_partial_datum): Update the comment for
2381 expand_partial_symbol_name.
2382 (ada_add_partial_symbol_completions): Rename to ...
2383 (ada_expand_partial_symbol_name): ... here, change return type, update
2384 function comment, call symbol_completion_match instead of
2385 symbol_completion_add.
2386 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
2387 and ada_expand_partial_symbol_name.
2388 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
2390 (dw2_map_symbol_names): Remove.
2391 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
2392 * psymtab.c (map_symbol_names_psymtab): Remove.
2393 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
2394 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
2396 (psym_functions): Unlist map_symbol_names_psymtab.
2397 (map_partial_symbol_names): Rename to ...
2398 (expand_partial_symbol_names): ... here, change the FUN type, call
2399 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
2400 * psymtab.h (map_partial_symbol_names): Rename to ...
2401 (expand_partial_symbol_names): ... here, change the FUN type.
2402 * symfile.h (struct quick_symbol_functions): Update the description of
2403 expand_symtabs_matching. Remove map_symbol_names.
2404 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
2405 (struct add_name_data): Update the comment for
2406 expand_partial_symbol_name.
2407 (add_partial_symbol_name): Rename to ...
2408 (expand_partial_symbol_name): ... here. Replace
2409 completion_list_add_name call by strncmp.
2410 (default_make_symbol_completion_list_break_on): Use now
2411 expand_partial_symbol_names and expand_partial_symbol_name.
2412 * symtab.h (enum search_domain): New element ALL_DOMAIN.
2414 2011-04-20 Tom Tromey <tromey@redhat.com>
2416 * dwarf2read.c (save_gdb_index_command): Replace format
2417 documentation with a pointer to the manual.
2419 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2421 * regcache.c: Include remote.h.
2422 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
2423 (regcache_dump): Handle regcache_dump_remote.
2424 (maintenance_print_remote_registers): New function.
2425 (_initialize_regcache): Install "maint print remote-registers"
2427 * remote.c (map_regcache_remote_table): New function, factored out
2429 (init_remote_state): ... here.
2430 (remote_register_number_and_offset): New.
2431 * remote.h (remote_register_number_and_offset): Declare.
2433 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2435 * regcache.c (get_thread_arch_regcache): If creating a regcache for
2436 null_ptid, assume and allow a NULL address space, instead of
2437 asking the target for the ptid's address space.
2438 * infrun.c (ptid_is_pid): Remove assertion.
2440 2011-04-19 Tom Tromey <tromey@redhat.com>
2442 * windows-tdep.c (windows_xfer_shared_library):
2443 * windows-nat.c (get_module_name, windows_make_so):
2444 * v850-tdep.c (v850_handle_pushm):
2445 * utils.c (null_cleanup, gdb_realpath):
2446 * ui-out.c (get_next_header):
2447 * tracepoint.c (clear_traceframe_info):
2448 * symtab.c (lookup_symtab):
2449 * serial.h (struct serial_ops):
2450 * mipsread.c (read_alphacoff_dynamic_symtab):
2451 * infcmd.c (print_return_value):
2452 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
2453 * f-exp.y (parse_number):
2454 * exceptions.c (catch_exceptions):
2455 * dummy-frame.c (dummy_frame_this_id):
2456 * defs.h (struct cleanup):
2457 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
2458 * arm-tdep.c (arm_push_dummy_call):
2459 * amd64-tdep.h (amd64_collect_xsave):
2460 * amd64-tdep.c (amd64_collect_xsave):
2461 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
2462 * README (typing): Remove duplicate words.
2463 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
2464 * infrun.c (siginfo_value_read): Fix typo.
2465 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
2466 * top.c (source_line_number): Add comma.
2468 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
2470 * thread.c (any_live_thread_of_process): Prioritize threads
2471 that are not executing.
2472 * gdbthread.h (any_live_thread_of_process): Update comment
2473 as per above change.
2475 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
2477 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
2478 (scan_xcoff_symtab): Likewise.
2480 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2482 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
2485 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2486 Pedro Alves <pedro@codesourcery.com>
2488 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
2489 variables to simplify code and avoid == operator at end of
2490 line as this is against GNU coding standards.
2492 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2494 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
2495 lm_name to name_lm to avoid conflict with lm_name function.
2497 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2499 ARI fixes: Use only lowercase function name for static functions.
2500 * nto-tdep.c (LM_ADDR): Rename to...
2501 (lm_addr): New function name.
2502 (nto_relocate_section_addresses): Adapt to change above.
2503 * solib-sunos.c (LM_ADDR): Rename to...
2504 (lm_addr): New function name.
2505 (LM_NEXT): Rename to...
2506 (lm_next): New function name.
2507 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
2508 function name changes above.
2509 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
2510 (lm_addr_from_link_map): New function name.
2511 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2512 (has_lm_dynamic_from_link_map): New function name.
2513 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2514 (lm_dynamic_from_link_map): New function name.
2515 (LM_ADDR_CHECK): Rename to...
2516 (lm_addr_check): New function name.
2517 (LM_NEXT): Rename to...
2518 (lm_next): New function name.
2519 (LM_PREV): Rename to...
2520 (lm_prev): New function name.
2521 (LM_NAME): Rename to...
2522 (lm_name): New function name.
2523 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
2524 (ignore_first_link_map_entry): New function name.
2525 (svr4_keep_data_in_core): Adapt to function name changes above.
2526 (svr4_current_sos): Likewise.
2527 (enable_break): Likewise.
2528 (svr4_relocate_section_addresses): Likewise.
2530 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2533 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
2534 sprintf. Simplify code and avoid loosing memory.
2535 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
2536 (call0_frame_cache): Remove && operator from end of line.
2538 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2540 Fix libraries displacement if they change whether they were prelinked.
2541 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
2542 does not match. Comment why.
2544 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2546 * corelow.c: Include wrapper.h.
2547 (core_open): Call now gdb_target_find_new_threads.
2548 * wrapper.c: Include target.h.
2549 (gdb_target_find_new_threads): New.
2550 * wrapper.h (gdb_target_find_new_threads): New declaration.
2552 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2554 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
2555 even if !TARGET_HAS_EXECUTION.
2557 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2559 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
2560 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
2561 bfd_get_synthetic_symtab.
2562 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
2563 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
2564 parameter parent, remove the call to add_separate_debug_objfile.
2565 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
2566 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2567 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
2568 parent, new comment for it, call add_separate_debug_objfile for it.
2569 (symbol_file_add_separate): Pass objfile as the parameter parent,
2570 remove the call to add_separate_debug_objfile.
2571 (symbol_file_add_from_bfd): New parameter parent, pass it.
2572 (symbol_file_add): Pass NULL to the new parameter parent.
2573 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
2575 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2577 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
2580 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2582 Fix Python access to inlined frames.
2583 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
2584 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2586 2011-04-15 Tom Tromey <tromey@redhat.com>
2588 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
2590 2011-04-15 Gary Benson <gbenson@redhat.com>
2592 * MAINTAINERS: Add myself to write-after-approval section.
2594 2011-04-14 Mike Frysinger <vapier@gentoo.org>
2596 * remote-sim.c (sim_command_completer): New function.
2597 (_initialize_remote_sim): Set completer to sim_command_completer.
2599 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2601 * breakpoint.c (print_exception_catchpoint): Rename to ...
2602 (print_it_exception_catchpoint): ... this.
2603 (gnu_v3_exception_catchpoint_ops): Update with new name
2604 for print_it_exception_catchpoint.
2606 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
2608 * MAINTAINERS: Add myself for write after approval privileges.
2610 2011-04-13 Marek Polacek <mpolacek@redhat.com>
2612 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2614 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2616 * breakpoint.c (watch_command_1): Remove colon from exp_string.
2618 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2620 * breakpoint.c (save_breakpoints): Verify whether
2621 breakpoint_ops.print_recreate is defined before calling it.
2623 2011-04-11 Gary Benson <gbenson@redhat.com>
2625 Fix failure with --enable-maintainer-mode.
2626 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
2628 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2631 * symtab.c (search_symbols): Reorder the KIND description in the
2632 function comment. Remove the unused 4th element of types, types2,
2633 types3 and types4. New gdb_assert on KIND.
2634 (symtab_symbol_info): Remove the unused 4th element of classnames.
2635 New gdb_assert on KIND.
2636 * symtab.h (enum search_domain): New warning in the enum comment.
2637 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
2640 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2642 Fix crash of gdb save-index on a STABS file.
2643 * dwarf2read.c (write_psymtabs_to_index): Return also on no
2646 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2648 Fix DW_AT_accessibility compatibility with gcc-4.6+.
2649 * dwarf2read.c: Include ctype.h.
2650 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
2652 (dwarf2_add_field): Fix new_field->accessibility by calling
2653 dwarf2_default_access_attribute. Restructure setting accessibility
2655 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
2656 is_private and is_protected by calling
2657 dwarf2_default_access_attribute.
2659 2011-04-08 Kevin Buettner <kevinb@redhat.com>
2661 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
2662 to the initialization.
2664 2011-04-08 Steve Ellcey <sje@cup.hp.com>
2666 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
2669 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
2671 Remove support for old Cygwin 1.5 versions.
2672 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
2673 function on old Cygwin version.
2674 * windows-nat.c: Remove cygwin version check and always define
2675 __USEWIDE for Cygwin compilation.
2677 2011-04-07 Yao Qi <yao@codesourcery.com>
2679 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
2681 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
2682 (arm_copy_svc): Remove parameters INSN and TO.
2683 (decode_svc_copro): Update caller.
2684 * arm-tdep.h (struct displaced_step_closure): Remove parameters
2685 from function pointer `copy_svc_os'.
2687 2011-04-07 Yao Qi <yao@codesourcery.com>
2689 * arm-tdep.c (cleanup_branch): Set a correct return address in
2690 LR for ARM and Thumb.
2692 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2695 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
2696 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
2697 in the function comment, a new note on values compatibility.
2698 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
2699 * symtab.h (SYMBOL_HASH_NEXT): New.
2701 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
2703 * ppc-linux-nat.c (check_condition): Add len output parameter.
2704 Set it based on the memory region referenced in the condition
2705 expression. Update all callers.
2707 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2709 Fix crash regression on systems featuring .gdb_index.
2710 * objfiles.c (free_objfile): Move the
2711 forget_cached_source_info_for_objfile call earlier. Comment it.
2712 Extend the comment for objfile_free_data.
2714 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2716 Fix regression of displaying the debug format.
2717 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
2720 2011-04-04 Tom Tromey <tromey@redhat.com>
2722 * cli/cli-interp.c (struct captured_execute_command_args):
2724 (do_captured_execute_command): Remove.
2725 (safe_execute_command): Use TRY_CATCH.
2726 * cli/cli-script.c (struct wrapped_read_command_file_args):
2728 (wrapped_read_command_file): Remove.
2729 (script_from_file): Use TRY_CATCH.
2730 * exceptions.c (catch_exception): Remove.
2731 * exceptions.h (catch_exception): Remove.
2732 (deprecated_throw_reason): Update comment.
2733 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
2734 argument to 'context'.
2735 (mi_execute_command): Use TRY_CATCH.
2736 * remote.c (struct start_remote_args): Remove.
2737 (remote_start_remote): Update; change arguments.
2738 (remote_open_1): Use TRY_CATCH.
2740 2011-04-04 Tom Tromey <tromey@redhat.com>
2742 * tracepoint.c (scope_info): Update.
2743 * symtab.c (decode_line_spec): Update.
2744 * python/python.c (gdbpy_decode_line): Update.
2745 * linespec.h (decode_line_1): Update.
2746 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
2747 (decode_compound, find_method, symtab_from_filename)
2748 (decode_variable): Likewise.
2749 * cli/cli-cmds.c (edit_command): Update.
2750 (list_command): Update.
2751 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
2753 (create_breakpoint): Update.
2754 (until_break_command): Update.
2755 (addr_string_to_sals): Update.
2756 (decode_line_spec_1): Update.
2758 2011-04-04 Tom Tromey <tromey@redhat.com>
2760 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
2761 (do_captured_parse_breakpoint): Remove.
2762 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
2763 Use TRY_CATCH directly.
2765 2011-04-04 Tom Tromey <tromey@redhat.com>
2767 * symtab.h (free_symtab): Remove.
2768 (forget_cached_source_info_for_objfile): Declare.
2769 * symmisc.c (free_symtab): Remove.
2770 * source.c (forget_cached_source_info_for_objfile): New function.
2771 (forget_cached_source_info): Use it.
2772 * objfiles.c (free_objfile): Simplify check before calling
2773 clear_current_source_symtab_and_line. Call
2774 forget_cached_source_info_for_objfile.
2776 2011-04-04 Tom Tromey <tromey@redhat.com>
2778 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
2779 (new_symtab): Don't set `free_code' on symtab.
2780 (new_linetable): Properly handle size==0.
2781 * symtab.h (struct symtab) <free_code, free_func>: Remove.
2782 * symmisc.c (free_symtab): Don't free the linetable. Don't call
2784 * jv-lang.c (struct jv_per_objfile_data): New.
2785 (jv_per_objfile_free): Free the data.
2786 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2787 (get_java_class_symtab): Set the `dict' field on the
2788 jv_per_objfile_data.
2789 (free_class_block): Remove.
2790 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2793 2011-04-04 Tom Tromey <tromey@redhat.com>
2795 * symfile.c (reread_symbols): Update.
2796 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2798 * objfiles.c (allocate_objfile): Update.
2799 * cp-support.h (cp_check_possible_namespace_symbols): Don't
2801 * cp-namespace.c (lookup_symbol_file): Don't call
2802 lookup_possible_namespace_symbol.
2803 (initialize_namespace_symtab, get_possible_namespace_block)
2804 (free_namespace_block, cp_check_possible_namespace_symbols)
2805 (check_possible_namespace_symbols_loop)
2806 (check_one_possible_namespace_symbol)
2807 (lookup_possible_namespace_symbol): Remove.
2808 (maintenance_cplus_namespace): Replace with notice.
2809 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2811 2011-04-04 Tom Tromey <tromey@redhat.com>
2813 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2814 * symtab.h (struct symtab) <producer, debugformat>: Now const.
2815 * symmisc.c (free_symtab): Don't free debugformat.
2816 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2817 (record_debugformat, record_producer): Document.
2818 * buildsym.c (end_symtab): Don't save debugformat and producer
2820 (end_symtab): Don't free debugformat and producer fields.
2821 (record_debugformat): Don't call xstrdup.
2822 (record_producer): Likewise.
2824 2011-04-04 Tom Tromey <tromey@redhat.com>
2826 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2827 (source_line_charpos, source_charpos_line): Remove.
2829 2011-04-04 Tom Tromey <tromey@redhat.com>
2831 * symtab.h (domain_enum): Split in two...
2832 (enum search_domain): New.
2833 (search_symbols): Update.
2834 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2835 redundant declarations.
2836 (search_symbols): Change 'kind' argument to search_domain.
2838 (print_symbol_info): Likewise.
2839 (symtab_symbol_info): Likewise.
2840 * symfile.h (struct quick_symbol_functions)
2841 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2842 <expand_symtabs_matching>: Likewise.
2843 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2844 (expand_symtabs_matching_via_partial): Update.
2845 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2846 (dw2_expand_symtabs_for_function): Update.
2847 * block.h: Moved anonymous enum...
2848 * defs.h (enum block_enum): ... here. Now named.
2850 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2852 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2853 * version.in: Bump version to 7.3.50.20110403-cvs.
2855 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2857 * NEWS: Create a new section for the next release branch.
2858 Rename the section of the current branch, now that it has
2861 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2863 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2864 for "fpscr" in target description.
2866 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2868 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2869 initialize it. Delay HASH initialization. Strip the part after open
2870 parenthesis for languages with qualifiers. Call do_cleanups.
2872 2011-04-01 Tom Tromey <tromey@redhat.com>
2874 * utils.c (report_command_stats): Don't print `-' for negative
2877 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
2879 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2880 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2883 2011-04-01 Joel Brobecker <brobecker@adacore.com>
2885 * breakpoint.h (bpdisp_text): Add declaration.
2886 * breakpoint.c (bpdisp_text): Make non-static.
2887 * ada-lang.c: #include "mi/mi-common.h".
2888 (print_it_exception): Rewrite to improve GDB/MI output.
2890 2011-04-01 Pedro Alves <pedro@codesourcery.com>
2892 * arm-tdep.h (struct address_space): Add forward declaration.
2894 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2896 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2897 * arm-tdep.c (arm_override_mode): New global.
2898 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
2899 execution mode heuristics.
2900 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
2901 second single-step breakpoint if needed, using
2902 arm_insert_single_step_breakpoint.
2903 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
2904 ARM execution mode, do not call thumb_get_next_pc_raw.
2905 (arm_get_next_pc): Encode execution mode in return value. Call
2906 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
2907 (arm_insert_single_step_breakpoint): New function.
2908 (arm_software_single_step): Call it.
2909 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
2910 argument to return execution mode of sigreturn target.
2911 (arm_linux_syscall_next_pc): Use it.
2912 (arm_linux_copy_svc): Update call.
2913 (arm_linux_software_single_step): Call
2914 arm_insert_single_step_breakpoint.
2916 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2918 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
2921 2011-03-31 Tom Tromey <tromey@redhat.com>
2923 * varobj.c (update_dynamic_varobj_children): Properly handle
2924 errors from iterator.
2926 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2928 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
2929 struct linkage name twice.
2931 2011-03-31 Tom Tromey <tromey@redhat.com>
2933 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
2934 missing ">" to message.
2936 2011-03-31 Tom Tromey <tromey@redhat.com>
2938 * varobj.c (instantiate_pretty_printer): Remove duplicate
2941 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
2943 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
2944 if neither saved value nor register available (e.g. signal frame).
2946 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2948 * macroexp.c (expand): Avoid uninitialized variable
2951 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2953 * breakpoint.c (break_range_command): Fix typo in comment.
2955 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2956 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2958 Implement support for PowerPC BookE ranged breakpoints.
2959 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
2960 * breakpoint.h (struct bp_target_info) <length>: New member
2962 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
2963 instead of struct breakpoint as argument, and also add ASPACE
2964 and BP_ADDR arguments. Update all callers.
2965 (struct breakpoint_ops) <print_one_detail>: New method.
2966 (struct breakpoint) <addr_string_range_end>: New member variable.
2967 * breakpoint.c (breakpoint_location_address_match): Add function
2969 (insert_bp_location): Set bl->target_info.length.
2970 (breakpoint_here_p): Call breakpoint_location_address_match.
2971 (moribund_breakpoint_here_p): Likewise.
2972 (regular_breakpoint_inserted_here_p): Likewise.
2973 (breakpoint_thread_match): Likewise.
2974 (bpstat_stop_status): Likewise.
2975 (bpstat_check_location): Move call to
2976 breakpoint_ops.breakpoint_hit to the top.
2977 (print_one_breakpoint_location): Call
2978 breakpoint_ops.print_one_detail if available.
2979 (breakpoint_address_match_range): New function.
2980 (breakpoint_location_address_match): Likewise.
2981 (breakpoint_locations_match): Compare the length field of the
2983 (hw_breakpoint_used_count): Count resources used by all locations
2984 in a breakpoint, and use breakpoint_ops.resources_needed if
2986 (breakpoint_hit_ranged_breakpoint): New function.
2987 (resources_needed_ranged_breakpoint): Likewise.
2988 (print_it_ranged_breakpoint): Likewise.
2989 (print_one_ranged_breakpoint): Likewise.
2990 (print_one_detail_ranged_breakpoint): Likewise.
2991 (print_mention_ranged_breakpoint): Likewise.
2992 (print_recreate_ranged_breakpoint): Likewise.
2993 (ranged_breakpoint_ops): New structure.
2994 (find_breakpoint_range_end): New function.
2995 (break_range_command): Likewise.
2996 (delete_breakpoint): Free addr_string_range_end.
2997 (update_breakpoint_locations): Add SALS_END argument. Update
2998 all callers. Calculate breakpoint length if a non-zero SALS_END
2999 is given. Call breakpoint_locations_match instead of
3000 breakpoint_address_match.
3001 (reset_breakpoint): Find SaL of the end of the range if B is a
3003 (_initialize_breakpoint): Register break-range command.
3004 * defs.h (print_core_address): Add function prototype.
3005 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
3007 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
3008 (ppc_linux_remove_hw_breakpoint): Likewise.
3009 (_initialize_ppc_linux_nat): Initialize
3010 to_ranged_break_num_registers.
3011 * target.c (update_current_target): Add comment about
3012 to_ranged_break_num_registers.
3013 (target_ranged_break_num_registers): New function.
3014 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3016 (target_ranged_break_num_registers): Add function prototype.
3017 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
3018 * utils.c (print_core_address): ... here.
3020 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
3022 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
3023 variable compiler warning.
3025 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
3027 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
3029 (re_set_breakpoint): ... to here ...
3030 (addr_string_to_sals): ... and here.
3032 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
3034 * Makefile.in (SFILES): Add missing C sources.
3035 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
3036 Add missing headers.
3038 2011-03-29 Mike Frysinger <vapier@gentoo.org>
3040 * .gitignore: New file.
3042 2011-03-29 Mike Frysinger <vapier@gentoo.org>
3044 * NEWS: Mention new cfi device simulation.
3046 2011-03-29 Tom Tromey <tromey@redhat.com>
3048 * dwarf2read.c (fixup_partial_die): Handle linkage name on
3049 otherwise anonymous types.
3050 (dwarf2_name): Likewise.
3051 * valops.c (value_struct_elt_for_reference): Refine artificial
3052 type logic. Call error if j==-1.
3054 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
3056 Fix false GCC warning.
3057 * infcall.c (find_function_addr): Initialize funaddr.
3059 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
3061 Fix mingw compilation with --enable-targets=all.
3062 * remote-mips.c (gdb_usleep.h): Include header.
3063 (mips_enter_debug): Use gdb_usleep instead of sleep.
3065 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3067 Support resolution of STT_GNU_IFUNC via breakpoints.
3068 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
3069 bp_gnu_ifunc_resolver_return.
3070 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
3071 the loop. Support bp_gnu_ifunc_resolver and
3072 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
3073 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
3075 (bptype_string, print_one_breakpoint_location): Support
3076 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
3077 (user_settable_breakpoint): Return true also for
3078 bp_gnu_ifunc_resolver.
3079 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
3080 bp_gnu_ifunc_resolver_return.
3081 (set_breakpoint_location_function): New parameter explicit_loc,
3082 describe it. Call find_pc_partial_function_gnu_ifunc with new
3083 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
3084 EXPLICIT_LOC is not set.
3085 (set_raw_breakpoint): Set EXPLICIT_LOC for
3086 set_breakpoint_location_function.
3087 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
3088 set_breakpoint_location_function.
3089 (mention): Support bp_gnu_ifunc_resolver and
3090 bp_gnu_ifunc_resolver_return.
3091 (add_location_to_breakpoint): Set EXPLICIT_LOC for
3092 set_breakpoint_location_function.
3093 (update_breakpoint_locations): Remove static.
3094 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
3095 bp_gnu_ifunc_resolver_return.
3096 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
3097 bp_gnu_ifunc_resolver_return.
3098 (update_breakpoint_locations): New declaration.
3099 * elfread.c: Include gdbthread.h and regcache.h.
3100 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
3102 (elf_gnu_ifunc_fns): Install them.
3103 * minsyms.c (stub_gnu_ifunc_resolver_stop)
3104 (stub_gnu_ifunc_resolver_return_stop): New functions.
3105 (stub_gnu_ifunc_fns): Install them.
3106 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
3107 and gnu_ifunc_resolver_return_stop.
3108 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
3110 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3112 STT_GNU_IFUNC reader implementation.
3113 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
3114 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
3115 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
3116 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
3117 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
3118 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
3119 (elf_gnu_ifunc_resolve_addr): New.
3120 (elf_symfile_read): Call elf_rel_plt_read.
3121 (elf_gnu_ifunc_fns): New.
3122 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
3123 Install elf_gnu_ifunc_fns.
3124 * infcall.c (find_function_return_type): New function.
3125 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
3126 * minsyms.c (stub_gnu_ifunc_resolve_addr)
3127 (stub_gnu_ifunc_resolve_name): New functions.
3128 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
3129 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
3130 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
3132 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3134 Code cleanup for later STT_GNU_IFUNC support.
3135 * infcall.c (find_function_addr): Remove variable code, use explicit
3136 dereferences for it. Move VALUE_TYPE initialization later.
3138 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3140 GDB find_pc_partial_function support for STT_GNU_IFUNC.
3141 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
3142 (clear_pc_function_cache): Clear it.
3143 (find_pc_partial_function): Rename to ...
3144 (find_pc_partial_function_gnu_ifunc): ... this function. New
3145 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
3146 (find_pc_partial_function): New wrapper for this function.
3147 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
3149 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3151 GDB internal type support for STT_GNU_IFUNC.
3152 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
3153 (elf_symtab_read): Set mst_text_gnu_ifunc for
3154 BSF_GNU_INDIRECT_FUNCTION.
3155 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
3156 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
3157 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
3158 nodebug_got_plt_symbol.
3159 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
3160 (TYPE_GNU_IFUNC): New.
3161 (struct main_type): New field flag_gnu_ifunc.
3162 (struct builtin_type): New field builtin_func_func.
3163 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
3164 nodebug_got_plt_symbol.
3165 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
3166 (in_gnu_ifunc_stub): New.
3167 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
3169 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
3170 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
3171 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
3173 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
3174 * symtab.c (search_symbols): Likewise.
3175 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
3176 and mst_slot_got_plt.
3177 (in_gnu_ifunc_stub): New declaration.
3179 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3181 Support a ring of related breakpoints.
3182 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
3183 other functions, add gdb_assert.
3184 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
3185 watchpoint_del_at_next_stop.
3186 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
3187 (bpstat_stop_status): Handle ring in related_breakpoint.
3188 (set_raw_breakpoint_without_location): Initialize ring in
3190 (delete_breakpoint): Handle ring in related_breakpoint, use
3191 watchpoint_del_at_next_stop.
3192 (map_breakpoint_numbers): Handle ring in related_breakpoint.
3194 2011-03-28 Tom Tromey <tromey@redhat.com>
3197 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
3198 with `language_minimal'.
3200 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
3202 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
3203 instead of checking for STT_ARM_TFUNC symbol type.
3205 2011-03-25 Tom Tromey <tromey@redhat.com>
3207 * linespec.c (symbol_found): Restore line-based result for
3208 non-LOC_LABEL symbols.
3210 2011-03-25 Kai Tietz <ktietz@redhat.com>
3212 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
3213 instead of strcmp for comparison.
3214 (tui_source_is_displayed): Likewise.
3215 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
3217 2011-03-24 Mark Wielaard <mjw@redhat.com>
3219 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
3221 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
3222 (find_partial_die_in_comp_unit): Likewise in comment.
3223 (read_attribute_value): Likewise.
3224 (lookup_die_type): Likewise.
3225 (dwarf_form_name): Likewise.
3226 (dump_die_shallow): Likewise.
3227 (follow_die_ref_or_sig): Likewise.
3229 2011-03-24 Tom Tromey <tromey@redhat.com>
3231 PR breakpoints/11816:
3232 * linespec.c (decode_line_1): Parse `function:label' linespecs.
3233 (decode_compound): Update.
3234 (find_function_symbol): New function.
3235 (decode_dollar): Update.
3236 (decode_label): Add 'function_symbol' parameter. Handle
3237 function-relative labels.
3238 (decode_variable): Update.
3239 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
3240 not its line. Set `special_display' and canonical name for
3243 2011-03-24 Tom Tromey <tromey@redhat.com>
3245 * linespec.h (struct linespec_result) <special_display>: New
3247 * breakpoint.h (struct breakpoint) <display_canonical>: New
3249 * breakpoint.c (print_breakpoint_location): Respect
3251 (create_breakpoint_sal): Add 'display_canonical' parameter.
3252 (create_breakpoints_sal): Update.
3253 (create_breakpoint): Update.
3255 2011-03-24 Tom Tromey <tromey@redhat.com>
3257 * symtab.c (decode_line_spec): Update.
3258 * linespec.c (build_canonical_line_spec): Change type of
3260 (decode_line_2, decode_line_1, decode_objc, decode_compound)
3261 (find_method, decode_all_digits, decode_dollar, decode_label)
3262 (symbol_found): Likewise.
3263 (init_linespec_result): New function.
3264 * breakpoint.c (struct captured_parse_breakpoint_args)
3265 <canonical_p>: New field, replaces addr_string_p.
3266 (create_breakpoints_sal): Add 'canonical' parameter, replacing
3268 (parse_breakpoint_sals): Likewise.
3269 (do_captured_parse_breakpoint): Update.
3270 (create_breakpoint): Use struct linespec_result.
3271 (until_break_command): Update.
3272 (breakpoint_re_set_one): Update.
3273 (decode_line_spec_1): Update.
3274 * linespec.h (struct linespec_result): New.
3275 (init_linespec_result): Declare.
3277 2011-03-23 Pedro Alves <pedro@codesourcery.com>
3279 * regcache.c (regcache_raw_read): If the target didn't supply a
3280 given raw register, mark it as unavailable.
3282 2011-03-23 Kai Tietz <ktietz@redhat.com>
3284 * breakpoint.c (clear_command): Use filename_cmp
3285 instead of strcmp for comparison.
3286 * buildsym.c (watch_main_source_file_lossage): Likewise.
3287 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
3288 checking just for slash.
3289 * dbxread.c (read_dbx_symtab): Use lbasename instead of
3290 strrchr and filename_cmp instead of strcmp for filenames.
3291 (add_old_header_file): Use filename_cmp
3292 instead of strcmp for comparison.
3293 * exec.c (exec_set_section_address): Likewise.
3294 * macrotab.c (macro_lookup_inclusion): Likewise.
3295 (macro_lookup_inclusion): Likewise.
3296 * elfread.c (_initialize_elfread): Likewise.
3297 (elfstab_offset_sections): Likewise.
3298 (elfstab_offset_sections): Use lbasename instead of
3300 * mdebugread.c (parse_partial_symbols): Likewise.
3301 (arse_partial_symbols): Use filename_(n)cmp instead of
3302 str(n)cmp for comparison.
3303 * minsyms.c (lookup_minimal_symbol): Likewise.
3304 * psymtab.c (read_psymtabs_with_filename): Likewise.
3305 * solib.c (solib_read_symbols): Likewise.
3306 (reload_shared_libraries_1): Likewise.
3307 * symmisc.c (maintenance_print_symbols): Likewise.
3308 * symfile.c (separate_debug_file_exists): Likewise.
3309 (reread_symbols): Likewise.
3310 (find_separate_debug_file_by_debuglink): Likewise.
3311 * remote-fileio.c (remote_fileio_func_rename): Likewise.
3312 * source.c (add_path): Likewise.
3313 * symtab.c (filename_seen): Likewise.
3314 (file_matches): Likewise.
3315 (print_symbol_info): Likewise.
3316 (maybe_add_partial_symtab_filename): Likewise.
3317 (make_source_files_completion_list): Likewise.
3318 * xml-syscall.c (init_sysinfo): Likewise.
3319 * windows-nat.c (_initialize_check_for_gdb_ini): Use
3320 IS_DIR_SEPARATOR for checking for trailing path separator.
3322 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3324 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
3325 label abort_expression.
3326 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
3327 DWARF_VALUE_OPTIMIZED_OUT.
3329 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3332 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
3333 to linkage_name. Invert its value. Update the function comment.
3334 (c_type_print_varspec_suffix): Invert it at the caller.
3335 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
3337 2011-03-22 Pedro Alves <pedro@codesourcery.com>
3339 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
3340 errors when reading the `stop_pc'.
3341 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
3344 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3346 * NEWS: Document gdb.Write stream keyword.
3348 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3351 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3352 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3353 (dwarf2_add_field): Fix new_field->accessibility for
3354 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3356 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3360 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
3361 other error classes. Do not print stack trace.
3363 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3365 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3366 (dwarf2_add_field): Fix new_field->accessibility for
3367 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3369 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
3371 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
3372 encountering a load via a non-SP register.
3374 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
3376 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
3377 field in returned unwinder.
3379 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3381 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
3383 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3385 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
3388 2012-03-18 Pedro Alves <pedro@codesourcery.com>
3390 * frame.c (frame_unwind_register): Throw an error if unwinding the
3392 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
3393 an unwind stop reason.
3394 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
3395 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
3396 UNWIND_UNAVAILABLE>: New.
3397 * inline-frame.c (inline_frame_unwind): Install
3398 default_frame_unwind_stop_reason.
3399 * frame-unwind.c: Include "exceptions.h".
3400 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
3401 (default_frame_unwind_stop_reason): New.
3402 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
3403 (default_frame_unwind_stop_reason): Declare.
3404 (struct frame_unwind) <stop_reason>: New function pointer.
3406 * dummy-frame.c: Install default_frame_unwind_stop_reason.
3407 * dwarf2-frame.c: Include exceptions.h.
3408 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
3409 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
3410 computing the CFA. If such an error was thrown, set
3411 unavailable_retaddr.
3412 (dwarf2_frame_unwind_stop_reason): New.
3413 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
3415 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
3416 (dwarf2_signal_frame_unwind): Ditto.
3418 * amd64-tdep.c: Include "exceptions.h".
3419 (struct amd64_frame_cache): New field "base_p".
3420 (amd64_init_frame_cache): Clear it.
3421 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
3422 Avoid reading registers with functions that throw if the register
3423 is not necessary to compute the frame base.
3424 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3425 swallowing NOT_AVAILABLE_ERROR.
3426 (amd64_frame_unwind_stop_reason): New.
3427 (amd64_frame_this_id): Don't build a frame id if the frame base
3429 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
3430 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3431 base_p if the frame base was computable.
3432 (amd64_sigtramp_frame_unwind_stop_reason): New.
3433 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
3434 frame base was unavailable.
3435 (amd64_sigtramp_frame_unwind): Install
3436 amd64_sigtramp_frame_unwind_stop_reason.
3437 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3438 base_p if the frame base was computable.
3439 (amd64_epilogue_frame_unwind_stop_reason): New.
3440 (amd64_epilogue_frame_this_id): Don't build a frame id if the
3441 frame base was unavailable.
3442 (amd64_epilogue_frame_unwind): Install
3443 amd64_epilogue_frame_unwind_stop_reason.
3444 * i386-tdep.c: Include "exceptions.h".
3445 (struct i386_frame_cache): New field "base_p".
3446 (i386_init_frame_cache): Clear it.
3447 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
3448 Avoid reading registers with functions that throw if the register
3449 is not necessary to compute the frame base.
3450 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3451 swallowing NOT_AVAILABLE_ERROR.
3452 (i386_frame_unwind_stop_reason): New.
3453 (i386_frame_this_id): Don't build a frame id if the frame base was
3455 (i386_frame_prev_register): Handle unavailable SP.
3456 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
3457 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3458 base_p if the frame base was computable.
3459 (i386_epilogue_frame_unwind_stop_reason): New.
3460 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
3461 base was unavailable.
3462 (i386_epilogue_frame_unwind): Install
3463 i386_epilogue_frame_unwind_stop_reason.
3464 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3465 base_p if the frame base was computable.
3466 (i386_sigtramp_frame_unwind_stop_reason): New.
3467 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
3468 base was unavailable.
3469 (i386_sigtramp_frame_unwind): Install
3470 i386_sigtramp_frame_unwind_stop_reason.
3471 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
3472 type's size, not the register's.
3473 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
3475 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
3476 default_frame_unwind_stop_reason.
3477 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
3478 (alpha_heuristic_frame_unwind): Ditto.
3479 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
3480 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
3481 * avr-tdep.c (avr_frame_unwind): Ditto.
3482 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
3484 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
3485 * frv-tdep.c (frv_frame_unwind): Ditto.
3486 * h8300-tdep.c (h8300_frame_unwind): Ditto.
3487 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
3488 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
3489 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
3490 (hppa_stub_frame_unwind): Ditto.
3491 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
3492 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
3493 (ia64_libunwind_frame_unwind)
3494 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
3495 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
3496 * lm32-tdep.c (lm32_frame_unwind): Ditto.
3497 * m32c-tdep.c (m32c_unwind): Ditto.
3498 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
3499 * m32r-tdep.c (m32r_frame_unwind): Ditto.
3500 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
3501 * m68k-tdep.c (m68k_frame_unwind): Ditto.
3502 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
3503 * m88k-tdep.c (m88k_frame_unwind): Ditto.
3504 * mep-tdep.c (mep_frame_unwind): Ditto.
3505 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
3506 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
3507 (mips_stub_frame_unwind): Ditto.
3508 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
3509 * moxie-tdep.c (moxie_frame_unwind): Ditto.
3510 * mt-tdep.c (mt_frame_unwind): Ditto.
3511 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
3512 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
3513 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
3514 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
3515 (s390_sigtramp_frame_unwind): Ditto.
3516 * score-tdep.c (score_prologue_unwind): Ditto.
3517 * sh-tdep.c (sh_frame_unwind): Ditto.
3518 * sh64-tdep.c (sh64_frame_unwind): Ditto.
3519 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
3520 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
3521 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
3522 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
3523 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
3524 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
3525 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
3526 (sparc64obsd_trapframe_unwind): Ditto.
3527 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
3528 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
3529 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
3530 * v850-tdep.c (v850_frame_unwind): Ditto.
3531 * vax-tdep.c (vax_frame_unwind): Ditto.
3532 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
3533 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
3534 * xtensa-tdep.c (xtensa_unwind): Ditto.
3536 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3538 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
3539 there's always a frame. Use get_frame_pc_if_available instead of
3540 get_frame_pc, and if there's no PC available, don't look up a
3543 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3545 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
3548 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3550 * tracepoint.c (set_traceframe_context): Handle unavailable PC
3553 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3555 * frame.h (frame_unwind_caller_pc_if_available): Declare.
3556 * frame.c (frame_unwind_caller_pc_if_available): New.
3557 * stack.c (frame_info): Handle unavailable PC.
3559 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3561 * frame.c (frame_unwind_pc): Rename to ...
3562 (frame_unwind_pc_if_available): ... this. New `pc' output
3563 parameter. Change return type to int. Gracefully handle
3564 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
3565 happened, or 1 otherwise.
3566 (frame_unwind_pc): Reimplement on top of
3567 frame_unwind_pc_if_available.
3568 (get_frame_func): Rename to ...
3569 (get_frame_func_if_available): New `pc' output parameter. Change
3570 return type to int. Gracefully handle the PC not being available.
3571 (get_frame_func): Reimplement on top of
3572 get_frame_func_if_available.
3573 (select_frame): Handle the PC being unavailable.
3574 (get_prev_frame): Handle the PC being unavailable.
3575 (get_frame_pc_if_available): New.
3576 (get_frame_address_in_block_if_available): New.
3577 (find_frame_sal): Handle the frame PC not being available.
3578 * frame.h (get_frame_pc_if_available): Declare.
3579 (get_frame_address_in_block_if_available): Declare.
3580 (get_frame_func_if_available): Declare.
3581 * stack.c (print_frame_info): Handle the PC being unavailable.
3582 (find_frame_funname): Ditto.
3583 (print_frame): Handle the PC being unavailable.
3584 (get_frame_language): Ditto.
3585 * blockframe.c (get_frame_block): Ditto.
3586 * macroscope.c (default_macro_scope): Ditto.
3587 * tui/tui-stack.c (tui_show_frame_info): Ditto.
3589 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3591 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
3592 NOT_AVAILABLE_ERROR when evaluating the location expression.
3594 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3596 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
3597 returning that the register piece is unavailable/optimized out.
3598 (write_pieced_value): Handle get_frame_register_bytes returning
3599 that the register piece is unavailable/optimized out when doing a
3600 read-modify write of a bitfield.
3601 * findvar.c (value_from_register): Handle get_frame_register_bytes
3602 returning that the register piece is unavailable/optimized out.
3603 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
3604 and `unavailablep'. Throw error on bad debug info. Use
3605 frame_register instead of frame_register_read, to fill in the new
3607 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
3609 * valops.c: (value_assign): Adjust, and handle
3610 get_frame_register_bytes failing.
3611 * spu-tdep.c: Include exceptions.h.
3612 (spu_software_single_step): Adjust, and handle
3613 get_frame_register_bytes failing.
3614 (spu_get_longjmp_target): Ditto.
3615 * gdbarch.sh (register_to_value): Change to return int. New
3616 parameters `optimizedp' and `unavailablep'.
3617 * gdbarch.h, gdbarch.c: Regenerate.
3618 * i386-tdep.c (i386_register_to_value): Adjust to new
3619 gdbarch_register_to_value interface.
3620 * i387-tdep.c (i387_register_to_value): Ditto.
3621 * i387-tdep.h (i387_register_to_value): Ditto.
3622 * alpha-tdep.c (alpha_register_to_value): Ditto.
3623 * ia64-tdep.c (ia64_register_to_value): Ditto.
3624 * m68k-tdep.c (m68k_register_to_value): Ditto.
3625 * mips-tdep.c (mips_register_to_value): Ditto.
3626 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
3628 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3630 * findvar.c (value_of_register): Mark the value as unavailable, if
3631 the register is unavailable.
3632 * frame.h (frame_register_unwind): New `unavailablep' parameter.
3633 (frame_register): New `unavailablep' parameter.
3634 (frame_register_read): Update comment.
3635 * frame.c (frame_register_unwind): New `unavailablep' parameter.
3636 Set it if the register is unavailable. If the register is
3637 unavailable, clear the output buffer.
3638 (frame_register): New `unavailablep' parameter. Pass it down.
3639 (frame_unwind_register): Adjust.
3640 (put_frame_register): Adjust.
3641 (frame_register_read): Adjust. Also return false if the register
3643 (frame_register_unwind_location): Adjust.
3644 * sentinel-frame.c (sentinel_frame_prev_register): If the register
3645 is unavailable, mark the value accordingly.
3646 * stack.c (frame_info): Handle unavailable registers.
3648 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3650 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
3651 simplify, using regcache_cooked_read.
3653 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3655 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
3656 (regcache_raw_read_unsigned, regcache_raw_read_signed)
3657 (regcache_raw_read_unsigned, regcache_raw_read_part)
3658 (regcache_cooked_read, regcache_cooked_read_signed)
3659 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
3660 (regcache_cooked_read_ftype): Change return to enum
3662 * regcache.c: Include exceptions.h
3663 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
3664 (do_cooked_read): Change return to enum register_status. Always
3665 forward to regcache_cooked_read.
3666 (regcache_raw_read): Change return to enum register_status. If
3667 the register is not REG_VALID, memset the buffer. Return the
3669 (regcache_raw_read_signed): Handle non-REG_VALID registers and
3670 return the register's status.
3671 (regcache_raw_read_unsigned): Ditto.
3672 (regcache_cooked_read): Change return to enum register_status.
3673 Assert that with read-only regcaches, the register's status must
3674 be known. If the regcache is read-only, and the register is not
3675 REG_VALID, memset the buffer. Return the register's status.
3676 (regcache_cooked_read_signed): Change return to enum
3677 register_status. Handle non-REG_VALID registers and return the
3679 (regcache_cooked_read_unsigned): Change return to enum
3680 register_status. Handle non-REG_VALID registers and return the
3682 (regcache_xfer_part, regcache_raw_read_part)
3683 (regcache_cooked_read_part): Change return to enum
3684 register_status. Return the register's status.
3685 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
3687 (regcache_dump): Handle unavailable cooked registers.
3688 * frame.c (do_frame_register_read): Adjust interface to match
3689 regcache_cooked_read_ftype.
3690 * gdbarch.sh (pseudo_register_read): Change return to enum
3692 * gdbarch.h, gdbarch.c: Regenerate.
3694 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
3696 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
3697 register_status. If reading a raw register indicates the raw
3698 register is not valid, return the raw register's status,
3699 otherwise, return REG_VALID.
3700 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
3701 register_status. Handle non-REG_VALID raw registers and return
3702 the register's status.
3703 * arm-tdep.c (arm_neon_quad_read)
3704 (arm_pseudo_read): Change return to enum register_status. Handle
3705 non-REG_VALID raw registers and return the register's status.
3706 * avr-tdep.c (avr_pseudo_register_read): Ditto.
3707 * frv-tdep.c (frv_pseudo_register_read): Ditto.
3708 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
3709 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
3710 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
3712 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
3713 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
3714 (m32c_part_write, m32c_cat_read, m32c_cat_write)
3715 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
3716 (m32c_pseudo_register_read): Change return to enum
3717 register_status. Adjust.
3718 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
3719 enum register_status. Return the register's status.
3720 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
3721 register_status. Return the register's status.
3722 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
3723 * mips-tdep.c (mips_pseudo_register_read): Ditto.
3724 * mt-tdep.c (mt_pseudo_register_read): Ditto.
3725 * rs6000-tdep.c (move_ev_register_func): New typedef.
3726 (e500_move_ev_register): Use it. Change return to enum
3727 register_status. Return the register's status.
3728 (do_regcache_raw_read): New function.
3729 (do_regcache_raw_write): New function.
3730 (e500_pseudo_register_read): Change return to enum
3731 register_status. Return the register's status. Use
3732 do_regcache_raw_read.
3733 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
3734 (dfp_pseudo_register_read): Change return to enum register_status.
3735 Return the register's status.
3736 (vsx_pseudo_register_read): Ditto.
3737 (efpr_pseudo_register_read): Ditto.
3738 (rs6000_pseudo_register_read): Ditto.
3739 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
3740 register_status. Return the register's status.
3741 * sh64-tdep.c (pseudo_register_read_portions): New function.
3742 (sh64_pseudo_register_read): Change return to enum
3743 register_status. Use pseudo_register_read_portions. Return the
3745 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
3746 register_status. Return the register's status.
3747 * sh-tdep.c (pseudo_register_read_portions): New function.
3748 (sh_pseudo_register_read): Change return to enum register_status.
3749 Use pseudo_register_read_portions. Return the register's status.
3750 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
3751 enum register_status. Return the register's status.
3752 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
3753 * spu-tdep.c (spu_pseudo_register_read_spu)
3754 (spu_pseudo_register_read): Ditto.
3755 * xtensa-tdep.c (xtensa_register_read_masked)
3756 (xtensa_pseudo_register_read): Ditto.
3757 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
3759 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3761 * python/py-value.c (valpy_getitem): Fix formatting of error function
3764 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3766 ARI fixes: Add missing internationalization markups throughout
3768 * darwin-nat-info.c: Ditto.
3771 * mi/mi-main.c: Ditto.
3773 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3775 ARI fixes: Add missing internationalization markups throughout
3778 * cp-name-parser.y: Ditto.
3781 * objc-exp.y: Ditto.
3784 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3786 ARI fixes: Messages should have no trailing new lines.
3787 * darwin-nat.c (mach_check_error): Remove trailing new line from
3788 warning function call message.
3789 * record.c (bfdcore_read): Idem for error call.
3791 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3793 * common/signals.c (target_signal_from_host): Add _ markup to error
3794 function call message.
3795 (target_signal_to_host): Add _ markup and remove trailing new line
3796 from warning call message.
3797 (target_signal_from_command): Add _ markup to error function call
3800 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
3804 * python/python.c (gdbpy_write): Accept a stream argument and
3805 operate to the appropriate stream.
3806 (gdbpy_flush): Likewise.
3807 (_initialize_python): Add stream constants.
3808 (finish_python_initialization): Add GdbOutputErrorFile class.
3810 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3812 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3814 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3816 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
3817 to store_signed_integer. Add debug message when relocating CALL
3818 instructions. Fix formatting of debug message.
3819 * i386-tdep.c (i386_relocate_instruction): Ditto.
3821 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3823 * target.h (struct target_ops): Remove to_lookup_symbol field.
3824 (target_lookup_symbol): Delete macro.
3825 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3826 (update_current_target, setup_target_debug): Remove handling
3827 of to_lookup_symbol target_ops field.
3828 * ada-tasks.c (get_known_tasks_addr): Remove use of
3829 target_lookup_symbol.
3830 * coffread.c (coff_symtab_read): Likewise.
3831 * dbxread.c (read_dbx_symtab): Ditto.
3833 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3836 * configure.ac: Add getthrds declaration check.
3837 * configure, config.in: Regenerate.
3838 * aix-thread.c (getthrds): Declare only if not already declared
3839 in procinfo.h. More declaration out of get_signaled_thread to
3842 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
3844 * python/py-symtab.c: Populate symtab_object_methods,
3846 (stpy_is_valid): New function.
3847 (salpy_is_valid): Ditto.
3848 * python/py-symbol.c: Declare symbol_object_methods. Populate.
3849 (sympy_is_valid): New function.
3850 * python/py-objfile.c: Declare objfile_object_methods. Populate.
3851 (objfpy_is_valid): New function.
3852 * python/py-inferior.c: Populate inferior_object_methods.
3853 (infpy_is_valid): New function.
3854 * python/py-infthread.c: Populate thread_object_methods.
3855 (thpy_is_valid): New function.
3856 * python/py-block.c: Declare block_object_methods. Populate. Declare
3857 block_iterator_object_methods. Populate.
3858 (blpy_is_valid): New function.
3859 (blpy_iter_is_valid): Ditto.
3861 2011-03-16 Keith Seitz <keiths@redhat.com>
3863 * linespec.c (find_methods): Canonicalize NAME before looking
3865 (name_end): New function.
3866 (keep_name_info): New function.
3867 (decode_line_1): Use keep_name_info.
3868 (decode_compound): Likewise.
3869 * cli/cli-utils.h (remove_trailing_whitespace): New function.
3870 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3873 * linespec.c (locate_first_half): Keep overload information, too.
3874 (decode_compound): Use a string to represent break characters
3876 If P points to a break character, do not increment it.
3877 For C++ and Java, keep overload information and relevant keywords.
3878 If we cannot find a symbol, search the minimal symbols.
3881 * linespec.c (decode_compound): Rename SAVED_ARG to
3883 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3885 Pass a valid block to lookup_symbol.
3886 (lookup_prefix_sym): Likewise.
3887 (find_method): Construct search name based on SYM_CLASS instead
3889 * psymtab.c (lookup_partial_symbol): Add language parameter.
3890 (lookup_symbol_aux_psymtabs): Likewise.
3891 Don't assume that the psymtab we found was the right one. Search
3892 for the desired symbol in the symtab to be certain.
3893 (psymtab_search_name): New function.
3894 (lookup_partial_symbol): Use psymtab_search_name.
3895 Add language parameter.
3896 (read_symtabs_for_function): Add language parameter and pass to
3897 lookup_partial_symbol.
3898 (find_symbol_file_from_partial): Likewise.
3900 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3903 * dwarf2read.c (noop_record_line): New function.
3904 (dwarf_decode_lines): Ignore line tables for GCd functions.
3906 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3908 Fix ARI warnings about new lines at the end of messages, which
3909 are unneeded as there is a new line added at the end of the message
3911 * darwin-nat.c (darwin_stop_inferior): Ditto.
3912 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
3913 * dfp.c (decimal_to_number): Ditto.
3914 * exec.c (print_section_info): Ditto.
3915 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
3916 * osdata.c (get_osdata): Ditto.
3917 * record.c (bfdcore_write): Ditto.
3918 * remote-mips.c (mips_readchar): Ditto.
3919 * remote.c (read_ptid): Ditto.
3920 * ser-mingw.c (ser_windows_raw): Ditto.
3921 * tracepoint.c (add_local_symbols): Ditto.
3922 * windows-nat.c (fake_create_process): Ditto.
3924 2011-03-16 Tom Tromey <tromey@redhat.com>
3926 * tracepoint.c (stop_tracing): Don't declare.
3927 * event-top.c (after_char_processing_hook): Add `(void)'.
3929 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
3931 * NEWS: Add Parameter sub-classing description.
3933 2011-03-16 Kai Tietz <ktietz@redhat.com>
3935 * MAINTAINERS: Update my e-mail address.
3937 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
3939 * MAINTAINERS: Add myself for write after approval privileges.
3941 2011-03-15 Michael Snyder <msnyder@vmware.com>
3943 * frame.c (find_frame_sal): Assert sym is not null.
3945 * dbxread.c (process_one_symbol): Assert 'name' is not null.
3947 * objc-lang.c (selectors_info): Check strchr for null result.
3949 * stabsread.c (define_symbol): Guard against bad stabstring input.
3951 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3953 Remove trailing spaces and tabulations from pascal language
3958 p-valprint.c: Ditto.
3960 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3962 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
3963 than LOW. Comment it.
3964 (read_partial_die): Call complaint for inappropriate zero LOWPC or
3965 HIGHPC not strictly higher than LOWPC.
3967 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3969 Fix formatting of function declarations returning a pointer in
3971 * varobj.c (varobj_add_child): Ditto.
3972 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
3973 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
3975 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3977 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
3978 for the "generic" vector ABI used with GCC 4.3 and later.
3979 (ppc64_sysv_abi_return_value): Likewise.
3981 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3983 * infcall.c (call_function_by_hand): Function return value is
3984 always a non_lval, even when using struct_return.
3986 2011-03-15 Pedro Alves <pedro@codesourcery.com>
3988 * printcmd.c (ALL_DISPLAYS_SAFE): New.
3989 (map_display_numbers): New.
3990 (do_delete_display): New.
3991 (undisplay_command): Use map_display_numbers.
3992 (do_enable_disable_display): New.
3993 (enable_disable_display_command): New function.
3994 (enable_display): Delete.
3995 (enable_display_command): New.
3996 (disable_display_command): Reimplement.
3997 (_initialize_printcmd): Adjust "enable display" command to use
3998 `enable_display_command' as callback.
4000 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4002 * NEWS: Add Python breakpoint 'stop' operation.
4004 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4006 * NEWS: Delete duplicate entry. Fix typo.
4008 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
4010 Fix ARI warning about function names in first column.
4011 Put prototype declaration on same line as return type.
4012 * objc-exp.y: Ditto.
4014 * python/py-stopevent.h: Ditto.
4015 For long function names, split parameters to
4016 allow function name on same line as return type.
4017 * solib-pa64.c: Ditto.
4020 For long function declaration, use single line.
4021 * hppa-tdep.h: Ditto.
4022 * inferior.h: Ditto.
4024 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4026 * python/python.h: Declare gdbpy_should_stop and
4027 gdbpy_breakpoint_has_py_cond.
4028 * python/python.c: Add python.h to includes. Remove python.h from
4029 HAVE_PYTHON definition
4030 (gdbpy_should_stop): New dummy function.
4031 (gdbpy_breakpoint_has_py_cond): New dummy function.
4032 * python/py-breakpoint.c (bppy_init): Rewrite to allow
4033 sub-classing capabilities.
4034 (gdbpy_should_stop): New function.
4035 (gdbpy_breakpoint_has_py_cond): New function.
4036 (local_setattro): New function.
4037 * breakpoint.c (condition_command): Add check for Python 'stop'
4039 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
4040 operation function as part of stop/continue tests.
4042 2011-03-14 Tom Tromey <tromey@redhat.com>
4045 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
4046 (needs_frame_dwarf_call): Likewise.
4048 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
4050 Fix ARI warning about functions without parameters that do not
4052 * breakpoint.c (all_tracepoints): Replace () by (void).
4053 * f-exp.y (match_string_literal): Ditto.
4055 * m2-exp.y (yylex): Ditto.
4056 * mep-tdep.c (current_me_module): Ditto.
4057 (current_options): Ditto.
4058 (current_cop_data_bus_width): Ditto.
4059 (current_cr_names): Ditto.
4060 (current_cr_is_float): Ditto.
4061 (current_ccr_names): Ditto.
4062 * objc-exp.y (yylex): Ditto.
4063 * p-exp.y (yylex): Ditto.
4064 * remote.c (send_interrupt_sequence): Ditto.
4065 * tracepoint.c (current_trace_status): Ditto.
4066 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
4067 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
4069 2011-03-11 Michael Snyder <msnyder@vmware.com>
4071 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
4072 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
4073 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
4074 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
4075 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
4077 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
4078 (delete_async_event_handler): Ditto.
4080 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
4082 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
4084 * top.c (set_verbose): Assert showcmd was found.
4086 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
4088 * xtensa-tdep.c (warning_once): Correct style issues.
4090 2011-03-11 Yao Qi <yao@codesourcery.com>
4092 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
4094 2011-03-11 Andreas Schwab <schwab@redhat.com>
4096 * common/aclocal.m4: Remove.
4098 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4100 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
4101 (xtensa_write_register, xtensa_read_register): Likewise.
4102 (xtensa_hextochar): Removed.
4103 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
4105 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4107 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
4108 (xtensa_call0_frame_cache_t): Update comments. New fields added.
4109 (xtensa_alloc_frame_cache): Add initialization for new fields.
4110 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
4111 (warning_once): New function.
4112 (xtensa_insn_kind): New item c0opc_and.
4113 (call0_classify_opcode): Add the case for AND instruction.
4114 (call0_track_op): Change arguments. New local variable litbase.
4115 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
4116 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
4118 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
4119 (call0_analyze_prologue): Update the comments. Change arguments.
4120 Add the variety of updates to handle extended prologues, which now can
4121 conduct dynamic stack adjustments.
4122 (call0_frame_cache): Likewise.
4123 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
4124 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
4126 2011-03-10 Michael Snyder <msnyder@vmware.com>
4128 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
4129 (cmd_qtframe): Ditto.
4130 (cmd_qtbuffer): Ditto.
4131 (cmd_bigqtbuffer): Ditto.
4133 2011-03-10 Tom Tromey <tromey@redhat.com>
4135 * tracepoint.c (trace_actions_command): Update.
4136 * thread.c (thread_apply_command): Update.
4137 * reverse.c (delete_bookmark_command): Update.
4138 (bookmarks_info): Update.
4139 * printcmd.c (undisplay_command): Update.
4140 * memattr.c (mem_enable_command): Update.
4141 (mem_disable_command): Update.
4142 (mem_delete_command): Update.
4143 * inferior.c (detach_inferior_command): Update.
4144 (kill_inferior_command): Update.
4145 (remove_inferior_command): Update.
4146 * cli/cli-utils.h (struct get_number_or_range_state): New.
4147 (init_number_or_range): Declare.
4148 (get_number_or_range): Update.
4149 * cli/cli-utils.c (init_number_or_range): New function.
4150 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
4152 (number_is_in_list): Update.
4153 * breakpoint.h (get_tracepoint_by_number): Update.
4154 * breakpoint.c (map_breakpoint_numbers): Update for change to
4155 get_number_or_range.
4156 (find_location_by_number): Use get_number, not
4157 get_number_or_range.
4158 (trace_pass_set_count): New function.
4159 (trace_pass_command): Update for change to get_number_or_range.
4161 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
4164 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
4166 * python/py-param.c (add_setshow_generic): Add set/show callback
4167 parameters. Register Python object context.
4168 (get_show_value): New function.
4169 (get_set_value): New function.
4170 (call_doc_function): New function.
4171 (get_doc_string): Move behind get_show_value/get_set_value.
4173 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
4175 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
4177 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
4179 * xtensa-tdep.c (xtensa_read_register): Add comment.
4180 (xtensa_write_register): Likewise.
4181 (xtensa_hextochar): Add comment and update to match coding conventions.
4182 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
4183 (execute_l32e, execute_s32e, execute_code): Update comments.
4184 (xtensa_exception_handler_t): Update to match coding conventions.
4185 (xtensa_insn_kind): Likewise.
4187 2011-03-09 Michael Snyder <msnyder@vmware.com>
4189 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
4191 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4193 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
4195 2011-03-09 Tom Tromey <tromey@redhat.com>
4197 * thread.c (restore_selected_frame): Handle frame_level == -1.
4198 (make_cleanup_restore_current_thread): Use
4199 get_selected_frame_if_set.
4200 * frame.h (get_selected_frame_if_set): Declare.
4201 * frame.c (get_selected_frame_if_set): New function.
4203 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4205 * cli/cli-cmds.c (shell_escape): Use lbasename.
4206 * coffread.c (coff_start_symtab): Constify parameter.
4207 (complete_symtab): Constify `name' parameter.
4208 (coff_symtab_read): Constify `filestring' local.
4209 (coff_getfilename): Constify return and `result' local.
4211 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
4212 * linux-fork.c (info_checkpoints_command): Use lbasename.
4213 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
4214 * minsyms.c (lookup_minimal_symbol): Use lbasename.
4215 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
4216 * procfs.c (procfs_make_note_section): Use lbasename.
4217 * tui/tui-io.c (printable_part): Constity return and parameter.
4219 (print_filename): Constify parameters, and local `s'.
4220 (tui_rl_display_match_list): Constify local `temp'.
4222 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4225 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4226 Fix DWARF-3+ DW_AT_accessibility default assumption.
4227 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4228 cu->header.version >= 3.
4230 2011-03-09 Yao Qi <yao@codesourcery.com>
4232 * common/Makefile.in: Remove.
4233 * common/configure: Remove.
4234 * common/configure.ac: Remove.
4236 2011-03-09 Yao Qi <yao@codesourcery.com>
4239 2011-02-11 Yao Qi <yao@codesourcery.com>
4241 * common/Makefile.in: Add copyright header.
4243 2011-02-11 Yao Qi <yao@codesourcery.com>
4245 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4247 * configure.ac: Add common to sub dir.
4248 * configure: Regenerate.
4250 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4252 * xtensa-tdep.c (call0_ret): New function.
4253 (xtensa_skip_prologue): Speed up analysis.
4255 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4257 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
4258 while executing MI command -data-list-changed-registers.
4260 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4262 * xtensa-tdep.c (xtensa_read_register): New function.
4263 (xtensa_write_register): New function.
4264 (xtensa_find_register_by_name): New function.
4265 (xtensa_windowed_frame_cache): Update comments in type description.
4266 (xtensa_frame_cache): Likewise.
4267 (xtensa_window_interrupt_insn): New function.
4268 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
4269 (xtensa_insn_kind): Add new instructions.
4270 (rwx_special_register): New function.
4271 (call0_classify_opcode): Add new instructions to the analysis.
4272 (a0_saved, a7_saved, a11_saved): New variables.
4273 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
4274 (execute_l32e): New function.
4275 (execute_s32e): New function.
4276 (xtensa_exception_handler_t): New type.
4277 (execute_code): New function.
4278 (xtensa_window_interrupt_frame_cache): New function to conduct frame
4279 analysis for Xtensa Window Exception handlers.
4281 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4283 * xtensa-tdep.c (TX_PS): New.
4284 (windowing_enabled): Update to count for Call0 ABI.
4285 (xtensa_hextochar): New.
4286 (xtensa_init_reggroups): Make algorithm generic.
4287 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
4289 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4291 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4293 2011-03-08 Michael Snyder <msnyder@vmware.com>
4295 * i386-tdep.c (i386_follow_jump): Check return value of
4297 (i386_analyze_struct_return): Ditto.
4298 (i386_skip_probe): Ditto.
4299 (i386_match_insn): Ditto.
4300 (i386_skip_noop): Ditto.
4301 (i386_analyze_frame_setup): Ditto.
4302 (i386_analyze_register_saves): Ditto.
4303 (i386_skip_prologue): Ditto.
4304 (i386_skip_main_prologue): Ditto.
4306 * target.c (read_whatever_is_readable): Fix memory leak.
4308 * i386-tdep.c (i386_process_record): Document fall through.
4310 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4312 Fix DWARF-3+ DW_AT_accessibility default assumption.
4313 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4314 cu->header.version >= 3.
4316 2011-03-08 Pedro Alves <pedro@codesourcery.com>
4318 * remote.c (remote_check_symbols): Skip if the target has no
4321 2011-03-08 Joel Brobecker <brobecker@adacore.com>
4323 * target.c (read_whatever_is_readable): Reformat comment,
4324 with a minor typo fix. Minor reformatting of the code.
4326 2011-03-08 Yao Qi <yao@codesourcery.com>
4328 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
4329 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
4330 Use cached result instead of calling displaced_in_arm_mode again.
4331 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
4332 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
4333 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
4334 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
4335 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
4336 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
4337 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
4338 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
4339 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4340 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
4341 (arm_catch_kernel_helper_return): Likewise.
4342 * gdb/arm-tdep.h : Update function declarations.
4344 2011-03-07 Michael Snyder <msnyder@vmware.com>
4346 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
4348 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
4350 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
4352 * elfread.c (elf_symtab_read): Stop memory leak.
4354 * main.c (captured_main): Fix memory leak.
4356 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
4358 * ada-lang.c (compare_names): Call is_name_suffix with string1
4361 2011-03-07 Tom Tromey <tromey@redhat.com>
4363 * xcoffread.c (xcoff_sym_fns): Update.
4364 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
4365 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
4366 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
4367 (symbol_file_add_with_addrs_or_offsets): Likewise.
4368 (reread_symbols): Handle OBJF_PSYMTABS_READ.
4369 * somread.c (som_sym_fns): Update.
4370 * psymtab.h (require_partial_symbols): Declare.
4371 * psymtab.c (require_partial_symbols): New function.
4372 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
4373 (ALL_OBJFILE_PSYMTABS): Undef.
4374 (ALL_PSYMTABS): Move from psympriv.h.
4375 (lookup_partial_symtab, find_pc_sect_psymtab)
4376 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
4377 (find_last_source_symtab_from_partial)
4378 (forget_cached_source_info_partial)
4379 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
4380 (expand_partial_symbol_tables, read_psymtabs_with_filename)
4381 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
4382 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
4383 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
4384 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
4385 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
4386 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
4387 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
4389 * mipsread.c (ecoff_sym_fns): Update.
4390 * machoread.c (macho_sym_fns): Update.
4391 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
4392 (read_psyms): New function.
4393 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
4394 (elf_sym_fns_lazy_psyms): New global.
4395 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
4396 dwarf2_build_psymtabs.
4397 * dbxread.c (aout_sym_fns): Update.
4398 * coffread.c (coff_sym_fns): Update.
4400 2011-03-07 Tom Tromey <tromey@redhat.com>
4402 * infrun.c (print_exited_reason): Include inferior id and pid in
4405 2011-03-07 Tom Tromey <tromey@redhat.com>
4407 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
4409 (target_has_execution_1): Update.
4410 (target_has_execution_current): Declare.
4411 (target_has_execution): Call target_has_execution_current.
4412 (default_child_has_execution): Update.
4413 * target.c (default_child_has_execution): Add 'the_ptid'
4415 (target_has_execution_1): Likewise.
4416 (target_has_execution_current): New function.
4417 (add_target): Update.
4418 (init_dummy_target): Update.
4419 * remote-m32r-sdi.c (m32r_has_execution): New function.
4420 (init_m32r_ops): Use it.
4421 * record.c (record_core_has_execution): Now static. Add
4422 'the_ptid' parameter.
4423 * inferior.c (have_live_inferiors): Don't save current thread.
4424 Use target_has_execution_1.
4426 2011-03-07 Yao Qi <yao@codesourcery.com>
4428 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
4430 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4432 * elfread.c (elf_symtab_read): Minor reformatting.
4434 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4436 * objc-lang.c (selectors_info): Minor reformatting.
4438 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4440 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
4442 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4443 Michael Snyder <msnyder@vmware.com>
4445 * ada-valprint.c (ada_val_print_array): Move the declaration of
4446 "byte_order" and "elttype" inside the block where these variables
4447 are actually used. Remove some special handling for the case
4448 where "elttype" and "eltlen" are null. Replace by a comment
4449 and a couple of assertion checks.
4451 2011-03-05 Michael Snyder <msnyder@vmware.com>
4453 * source.c (add_path): Replace semicolon at end of block.
4454 * dwarf2expr.c (execute_stack_op): Ditto.
4456 2011-03-05 Mike Frysinger <vapier@gentoo.org>
4458 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
4459 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
4460 (bfin-*-*): Likewise.
4462 2011-03-05 Michael Snyder <msnyder@vmware.com>
4464 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
4465 * mdebugread.c (parse_symbol): Ditto.
4466 * parse.c (parse_exp_in_context): Ditto.
4467 * source.c (add_path): Ditto.
4468 * utils.c (gnu_debuglink_crc32): Ditto.
4469 * varobj.c (variable_language): Ditto.
4471 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
4473 2011-03-04 Michael Snyder <msnyder@vmware.com>
4475 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
4477 * symfile.c (simple_overlay_update): Check for null return value
4478 from lookup_minimal_symbol.
4480 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
4482 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4484 * eval.c (parse_and_eval_address_1): Remove function.
4485 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
4486 instead of parse_and_eval_address_1.
4487 * value.h (parse_and_eval_address_1): Remove prototype.
4489 2011-03-04 Michael Snyder <msnyder@vmware.com>
4491 * remote.c (putpkt_binary): Document that case stmt falls through.
4493 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4495 * breakpointc (print_it_typical): Move NULL check from here...
4496 (print_bp_stop_message): ... to here.
4498 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
4500 * breakpoint.c (enable_command): Use break instead of continue,
4501 and fill in a missing break.
4502 (disable_command): Ditto.
4504 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4506 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
4507 (terminal_save_ours): Remove misleading comment.
4508 (inflow_inferior_data_cleanup): Free ttystate.
4509 (inflow_inferior_exit): Likewise.
4510 (copy_terminal_info): Copy ttystate.
4512 * serial.c (serial_copy_tty_state): New function.
4513 * serial.h (serial_copy_tty_state): Add prototype.
4514 (struct serial_ops): Add copy_tty_state callback.
4515 * ser-base.c (ser_base_copy_tty_state): New function.
4516 * ser-base.h (ser_base_copy_tty_state): Add prototype.
4517 * ser-go32.c (dos_copy_tty_state): New function.
4518 (dos_ops): Install copy_tty_state callback.
4519 * ser-mingw.c (_initialize_ser_windows): Likewise.
4520 * ser-pipe.c (_initialize_ser_pipe): Likewise.
4521 * ser-unix.c (hardwire_copy_tty_state): New function.
4522 (_initialize_ser_hardwire): Install it.
4524 2011-03-04 Michael Snyder <msnyder@vmware.com>
4526 * breakpoint.c (create_breakpoint): Add missing break statement.
4528 Reverting this patch:
4529 * infcall.c (call_function_by_hand): Add break statements for lint.
4531 Reverting this patch:
4532 * cli/cli-script.c (script_from_file): Add break for lint.
4534 2011-03-04 Michael Snyder <msnyder@vmware.com>
4536 * solib.c (reload_shared_libraries_1): Close memory leak.
4538 2011-03-03 Tom Tromey <tromey@redhat.com>
4541 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
4544 2011-03-03 Michael Snyder <msnyder@vmware.com>
4546 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
4547 fields of struct 'st' to zero.
4549 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
4550 sal.pspace before calling set_current_source_symtab_and_line.
4552 2011-03-03 Yao Qi <yao@codesourcery.com>
4554 * Makefile.in (configure-common): Remove. Let Makefile
4555 in dir common to rebuild itself.
4556 (common/Makefile): Likewise.
4558 2011-03-03 Joel Brobecker <brobecker@adacore.com>
4560 * utils.c (parse_escape): Add i18n markup in error message.
4562 2011-03-03 Yao Qi <yao@codesourcery.com>
4564 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
4566 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
4567 (displaced_write_reg, displaced_read_reg): Likewise.
4568 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
4569 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4570 (cleanup_branch): Replace magic number 14 and 15 with
4571 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
4573 2011-03-02 Michael Snyder <msnyder@vmware.com>
4575 * maint.c (maintenance_do_deprecate): No need to check for NULL.
4577 * cli/cli-script.c (script_from_file): Add break for lint.
4579 * mdebugread.c (parse_partial_symbols): Fix indent.
4581 * target-descriptions.c (tdesc_gdb_type): No need to call
4582 xstrdup, callee saves a copy.
4584 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
4586 * infcall.c (call_function_by_hand): Add break statements for lint.
4588 * utils.c (parse_escape): Escape the escape char.
4590 * python/py-inferior.c (build_inferior_list): Error out if
4591 PyList_Append fails.
4592 (gdbpy_inferiors): Error out if build_inferior_list fails.
4594 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
4597 * record.c (record_restore): Move printf to before error return.
4599 2011-03-02 Yao Qi <yao@codesourcery.com>
4601 * arm-tdep.h (struct displaced_step_closure): Add two new fields
4602 is_thumb and insn_size.
4603 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
4604 on both ARM and Thumb mode.
4605 (arm_process_displaced_insn): Set is_thumb and insn_size.
4606 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
4607 (arm_displaced_step_fixup): Likewise.
4609 2011-03-01 Michael Snyder <msnyder@vmware.com>
4611 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
4613 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
4615 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
4617 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4619 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
4622 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
4623 which shadows function parameter.
4625 * tracepoint.c (create_tsv_from_upload): Superfluous call
4626 to xstrdup. Callee already calls xstrdup.
4628 * linespec.c (decode_line_1): Remove unnecessary null check.
4630 * tracepoint.c (scope_info): Fix mem leak, remove underused
4633 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
4634 superfluous null check.
4636 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
4637 (value_of_builtin_frame_fp_reg): Ditto.
4639 * event-top.c (display_gdb_prompt): Remove superfluous null check.
4641 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
4644 * linespec.c (decode_line_1): Check for null before dereference.
4646 * reverse.c (record_restore): Move null-check to before pointer
4649 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
4651 * objc-lang.c (selectors_info): Add explanitory comment.
4652 (classes_info): Ditto.
4654 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4656 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
4657 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
4658 versions of the trampoline. Handle Thumb vs. ARM addresses.
4659 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
4660 (arm_linux_init_abi): Install it.
4661 * arm-tdep.c (arm_psr_thumb_bit): Make global.
4662 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
4664 2011-02-28 Michael Snyder <msnyder@vmware.com>
4666 * ui-out.c (ui_out_field_core_addr): Make local char buffer
4667 a little bigger, to avoid possibility of an overflow.
4669 * breakpoint.c (breakpoint_adjustment_warning): Make local char
4670 buffers a little bigger, to avoid possibility of an overflow.
4672 * coffread.c (coff_getfilename): Add check to avoid overflow.
4674 * objc-lang.c (selectors_info): Add a small safety margin to
4676 (classes_info): Error out on too long REGEXP.
4678 * infrun.c (handle_inferior_event): Remove unused function call.
4680 * fork-child.c (fork_inferior): Remove ifdef'd code and
4683 * linux-thread-db.c (attach_thread): Discard unused value.
4685 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
4687 * remote.c (remote_get_noisy_reply): Discard unused value.
4688 (remote_vcont_resume): Ditto.
4689 (remote_stop_ns): Ditto.
4691 * linespec.c (decode_objc): Delete unused variable.
4693 * tui/tui-regs.c (tui_register_format): Delete unused variable.
4695 * dwarf2read.c (add_partial_symbol): Discard unused values.
4696 (read_base_type): Delete unused variable.
4698 * dbxread.c (read_dbx_symtab): Discard unused value.
4700 * eval.c (evaluate_subexp_standard): Delete unused variable,
4701 and discard unused values.
4703 * infcmd.c (_initialize_infcmd): Discard unused values.
4705 * stabsread.c (rs6000_builtin_type): Missing break statement.
4707 * dbxread.c (process_one_symbol): Discard unused value.
4709 * coffread.c (coff_end_symtab): Delete unused variable.
4711 * dwarf2read.c (dw2_get_file_names): Discard unused value.
4712 (dwarf2_add_typedef): Delete unused variable.
4713 (read_namespace): Ditto.
4714 (dwarf_decode_macros): Ditto.
4716 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
4718 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
4720 * p-valprint.c (pascal_val_print): Discard unused value.
4722 * utils.c (nquery): Call va_end before return;
4726 * proc-service.c (ps_plog): Call va_end before return.
4728 2011-02-28 Tom Tromey <tromey@redhat.com>
4730 * python/python.c (gdbpy_value_cst): New global.
4731 (_initialize_python): Initialize it.
4732 * python/python-internal.h (gdbpy_value_cst): Declare.
4733 * python/py-value.c (convert_value_from_python): Use
4736 2011-02-28 Michael Snyder <msnyder@vmware.com>
4738 * python/py-cmd.c (cmdpy_init): Fix memory leak.
4740 * breakpoint.c (catch_syscall_completer): Free malloced list.
4742 * jv-lang.c (java_primitive_type_from_name): Add missing break.
4744 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
4745 (lval_func_check_synthetic_pointer): Ditto.
4746 (lval_func_free_closure): Fix use-after-free.
4748 2011-02-28 Tom Tromey <tromey@redhat.com>
4750 * psymtab.c (expand_partial_symbol_tables): Use
4751 ALL_OBJFILE_PSYMTABS.
4753 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4755 * objc-lang.c (selectors_info): Error on too long REGEXP.
4757 2011-02-28 Michael Snyder <msnyder@vmware.com>
4759 * python/py-param.c (set_parameter_value): Add missing
4762 * linux-record.c (record_linux_system_call): Add missing
4765 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4767 * breakpoint.c (print_one_breakpoint_location): Remove unused
4768 argument PRINT_ADDRESS_BITS. Update callers.
4769 (print_one_breakpoint): Likewise.
4771 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4773 * breakpoint.c (wrap_indent_at_field): New function.
4774 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
4775 Allocate ui_stream locally instead of using STB argument.
4776 (print_one_breakpoint_location): Update call.
4777 * ui-out.c (ui_out_query_field): New function.
4778 * ui-out.h (ui_out_query_field): Add prototype.
4780 2011-02-28 Joel Brobecker <brobecker@adacore.com>
4782 From Michael Snyder <msnyder@vmware.com>
4783 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4785 2011-02-27 Michael Snyder <msnyder@vmware.com>
4787 * objc-lang.c (selectors_info): Prevent string overrun.
4789 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4792 * symtab.c (rbreak_command): Move variable 'file_name' to
4795 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4796 param with a local variable of the same name.
4798 2011-02-27 Michael Snyder <msnyder@vmware.com>
4800 * value.c (value_from_history_ref): New function.
4801 * value.h (value_from_history_ref): Export.
4802 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4803 to parse value history references.
4804 * cli/cli-utils.h (get_number_trailer): Update comment.
4806 2011-02-27 Michael Snyder <msnyder@vmware.com>
4808 * inferior.c (detach_inferior_command): Use get_number_or_range.
4809 (kill_inferior_command): Ditto.
4810 (remove_inferior_command): Ditto.
4811 (initialize_inferiors): Make command names plural.
4812 Update help strings.
4814 2011-02-27 Michael Snyder <msnyder@vmware.com>
4816 * darwin-nat-info.c: Fix comment typo.
4817 * dwarf2expr.h: Ditto.
4818 * fbsd-nat.c: Ditto.
4819 * fbsd-nat.h: Ditto.
4820 * frame-unwind.h: Ditto.
4822 * hppa-hpux-tdep.c: Ditto.
4823 * i386-linux-nat.c: Ditto.
4824 * linux-nat.c: Ditto.
4825 * nbsd-nat.c: Ditto.
4826 * nbsd-nat.h: Ditto.
4827 * ppc-linux-tdep.c: Ditto.
4830 * tui/tui-winsource.c: Ditto.
4832 2011-02-26 Michael Snyder <msnyder@vmware.com>
4834 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4836 * maint.c (maintenance_do_deprecate): Plug a memory leak.
4838 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4839 with a local variable of the same name.
4841 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
4842 param with a local variable of the same name.
4843 (i387_supply_xsave): Ditto.
4845 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4846 that it does not shadow a function parameter.
4848 * i386-nat.c (i386_length_and_rw_bits): Document that case
4849 statement is meant to fall through.
4851 * expprint.c (dump_subexp_body_standard): Document that case
4852 statement is meant to fall through.
4854 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4855 dead if statement. Condition can't be false.
4857 2011-02-25 Michael Snyder <msnyder@vmware.com>
4859 * arm-tdep.c: Fix typos in comments.
4860 * bsd-uthread.c: Ditto.
4861 * completer.c: Ditto.
4863 * cp-namespace.c: Ditto.
4864 * cp-support.c: Ditto.
4865 * cris-tdep.c: Ditto.
4867 * dwarf2read.c: Ditto.
4869 * gdbtypes.h: Ditto.
4870 * inferior.h: Ditto.
4871 * mdebugread.c: Ditto.
4872 * mips-tdep.c: Ditto.
4873 * ppc-linux-nat.c: Ditto.
4874 * ppc-linux-tdep.c: Ditto.
4875 * printcmd.c: Ditto.
4876 * sol-thread.c: Ditto.
4877 * solib-frv.c: Ditto.
4879 * sparc64-tdep.c: Ditto.
4880 * spu-tdep.c: Ditto.
4881 * stabsread.c: Ditto.
4886 * python/py-block.c: Ditto.
4887 * python/py-symbol.c: Ditto.
4888 * python/py-symtab.c: Ditto.
4889 * python/py-value.c: Ditto.
4890 * tui/tui-win.c: Ditto.
4892 2011-02-25 Michael Snyder <msnyder@vmware.com>
4894 * inferior.c (print_inferior): Accept a string instead of an int
4895 for requested_inferiors, and use get_number_or_range to parse it.
4896 (info_inferiors_command): Pass args string to print_inferior.
4897 (initialize_inferiors): Change help string for info inferiors.
4898 * inferior.h (print_inferior): Export prototype change.
4900 2011-02-25 Tom Tromey <tromey@redhat.com>
4902 * common/ax.def (invalid2): Set to 0x31.
4904 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4906 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
4908 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
4910 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
4912 2011-02-24 Michael Snyder <msnyder@vmware.com>
4914 * Makefile.in (clean): Make clean should remove generated files
4915 observer.h and observer.inc.
4917 2011-02-24 Joel Brobecker <brobecker@adacore.com>
4919 Revert the following patch (not approved yet):
4920 2011-02-21 Hui Zhu <teawater@gmail.com>
4921 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4922 * ax-gdb.c (gen_printf_expr_callback): New function.
4923 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4924 * ax-general.c (ax_memcpy): New function.
4925 (ax_print): Handle "printf".
4927 * ax.h (ax_memcpy): Forward declare.
4928 * common/ax.def (invalid2): Removed.
4929 (printf): New entry.
4930 * printcmd.c (printcmd.h): New include.
4931 (string_printf): New function.
4932 (ui_printf): Removed.
4933 (printf_command): Remove static. Call string_printf.
4934 (eval_command): Call string_printf.
4935 * printcmd.h: New file.
4936 * tracepoint.c (validate_actionline,
4937 encode_actions_1): handle printf_command.
4939 2011-02-23 Tom Tromey <tromey@redhat.com>
4941 * ax-general.c (ax_pick): Add missing newline.
4943 2011-02-23 Michael Snyder <msnyder@vmware.com>
4945 * breakpoint.c (breakpoint_1): Change first argument from an int
4946 to a char pointer, so that the function now accepts a list of
4947 breakpoints rather than just one. Use new function
4948 'number_is_in_list' to implement.
4949 (breakpoints_info): Pass char * instead of int to breakpoint_1.
4950 (watchpoints_info): Ditto.
4951 (tracepoints_info): Ditto.
4952 (maintenance_info_breakpoints): Ditto.
4953 (_initialize_breakpoint): Update help strings to reflect the fact
4954 that these functions can now take more than one argument.
4955 * cli/cli-utils.c (number_is_in_list): New function.
4956 * cli/cli-utils.h (number_is_in_list): Export.
4958 2011-02-23 Michael Snyder <msnyder@vmware.com>
4960 * memattr.c (mem_enable_command): Use get_number_or_range.
4961 (mem_disable_command): Ditto.
4962 (mem_delete_command): Ditto.
4963 (_initialize_mem): Tweak usage message to reflect multiple
4966 2011-02-22 Doug Evans <dje@google.com>
4968 Add gdb.lookup_global_symbol python function.
4970 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
4971 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
4972 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
4974 2011-02-22 Tom Tromey <tromey@redhat.com>
4976 * language.c (language_class_name_from_physname): Rename
4977 'curr_language' argument to 'lang'; use in body.
4979 2011-02-22 Michael Snyder <msnyder@vmware.com>
4981 * cli/cli-utils.c (number_is_in_list): Check for zero return.
4983 2011-02-22 Pedro Alves <pedro@codesourcery.com>
4985 * frame-unwind.h: Fix comment to mention the this frame, not the
4988 2011-02-22 Tom Tromey <tromey@redhat.com>
4990 * symfile.c (auto_solib_limit): Remove.
4991 * symfile.h (auto_solib_limit): Remove.
4993 2011-02-22 Joel Brobecker <brobecker@adacore.com>
4995 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
4997 2011-02-21 Michael Snyder <msnyder@vmware.com>
4999 * gdbthread.h (print_thread_info): Change prototype.
5000 * thread.c (print_thread_info): Accept char* instead of int for
5001 requested_threads argument. Use new function number_is_in_list
5002 to determine which threads to list.
5003 (info_threads_command): Pass char* to print_thread_info.
5004 * cli/cli-utils.c (number_is_in_list): New function.
5005 * cli/cli-utils.h (number_is_in_list): Export.
5006 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
5008 (print_one_inferior): Ditto.
5009 (mi_cmd_list_thread_groups): Ditto.
5011 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5013 * common/Makefile.in (CFLAGS): New.
5014 (COMPILE): Add $(CFLAGS).
5016 2011-02-21 Tom Tromey <tromey@redhat.com>
5018 * breakpoint.c (catch_syscall_command_1): Fix typo.
5020 2011-02-21 Tom Tromey <tromey@redhat.com>
5022 * reverse.c: Include cli-utils.h.
5023 * printcmd.c: Include cli-utils.h.
5024 (string_printf): Use skip_spaces.
5025 * cli/cli-utils.h: New file.
5026 * cli/cli-utils.c: New file.
5027 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
5028 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
5029 * breakpoint.h (get_number, get_number_or_range): Move to
5031 * breakpoint.c: Include cli-utils.h.
5032 (get_number_trailer, get_number, get_number_or_range)
5033 (ep_skip_leading_whitespace): Move to cli-utils.c.
5034 (create_breakpoint_sal, find_condition_and_thread)
5035 (decode_static_tracepoint_spec, watch_command_1)
5036 (watch_maybe_just_location, ep_parse_optional_if_clause)
5037 (catch_fork_command_1, catch_exec_command_1)
5038 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
5039 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
5040 (SUBDIR_CLI_SRCS): Add cli-utils.c.
5041 (HFILES_NO_SRCDIR): Add cli-utils.h.
5042 (cli-utils.o): New target.
5044 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5046 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
5047 before calling discard_all_inferiors.
5049 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5051 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
5052 (struct builtin_opencl_type): Remove.
5053 (builtin_opencl_type): Change return type to "struct type **".
5054 (lookup_opencl_vector_type): Update caller.
5055 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
5056 (build_opencl_types): Install plain array of "struct type *"
5057 instead of "struct builtin_opencl_type".
5059 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5060 Ulrich Weigand <uweigand@de.ibm.com>
5062 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
5063 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
5064 (struct arm_linux_hwbp_cap): New type.
5065 (arm_linux_get_hwbp_cap): New function.
5066 (arm_linux_get_hw_breakpoint_count): Likewise.
5067 (arm_linux_get_hw_watchpoint_count): Likewise.
5068 (arm_linux_can_use_hw_breakpoint): Likewise.
5069 (arm_hwbp_type): New type.
5070 (arm_hwbp_control_t): Likewise.
5071 (struct arm_linux_hw_breakpoint): Likewise.
5072 (struct arm_linux_thread_points): Likewise.
5073 (arm_threads): New global variable.
5074 (arm_linux_find_breakpoints_by_tid): New function.
5075 (arm_hwbp_control_initialize): Likewise.
5076 (arm_hwbp_control_is_enabled): Likewise.
5077 (arm_hwbp_control_disable): Likewise.
5078 (arm_linux_hw_breakpoint_initialize): Likewise.
5079 (arm_linux_get_hwbp_type): Likewise.
5080 (arm_linux_hw_watchpoint_initialize): Likewise.
5081 (arm_linux_hw_breakpoint_equal): Likewise.
5082 (arm_linux_insert_hw_breakpoint1): Likewise.
5083 (arm_linux_remove_hw_breakpoint1): Likewise.
5084 (arm_linux_insert_hw_breakpoint): Likewise.
5085 (arm_linux_remove_hw_breakpoint): Likewise.
5086 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
5087 (arm_linux_insert_watchpoint): Likewise.
5088 (arm_linux_remove_watchpoint): Likewise.
5089 (arm_linux_stopped_data_address): Likewise.
5090 (arm_linux_stopped_by_watchpoint): Likewise.
5091 (arm_linux_watchpoint_addr_within_range): Likewise.
5092 (arm_linux_new_thread): Likewise.
5093 (arm_linux_thread_exit): Likewise.
5094 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
5095 related target callbacks. Register arm_linux_new_thread and
5096 arm_linux_thread_exit.
5097 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
5098 * arm-tdep.c (arm_pc_is_thumb): Make global.
5099 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
5101 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5103 * breakpoint.c (update_watchpoint): Do not attempt to recreate
5104 per-frame locations while within a function epilogue.
5106 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5108 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
5109 to GNU coding standards.
5111 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5113 Allow use of mingw native on Windows 95 OS.
5114 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
5115 (ser_windows_close): Only call CancelIo if function exists.
5116 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
5117 to check for existence of CancelIo function in kernel32 DLL.
5119 2011-02-21 Hui Zhu <teawater@gmail.com>
5121 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5122 * ax-gdb.c (gen_printf_expr_callback): New function.
5123 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5124 * ax-general.c (ax_memcpy): New function.
5125 (ax_print): Handle "printf".
5127 * ax.h (ax_memcpy): Forward declare.
5128 * common/ax.def (invalid2): Removed.
5129 (printf): New entry.
5130 * printcmd.c (printcmd.h): New include.
5131 (string_printf): New function.
5132 (ui_printf): Removed.
5133 (printf_command): Remove static. Call string_printf.
5134 (eval_command): Call string_printf.
5135 * printcmd.h: New file.
5136 * tracepoint.c (validate_actionline,
5137 encode_actions_1): handle printf_command.
5139 2011-02-19 Michael Snyder <msnyder@vmware.com>
5141 * reverse.c (delete_one_bookmark): Argument is now bookmark
5142 id rather than pointer to bookmark struct.
5143 (delete_bookmark_command): Use get_number_or_range.
5144 (goto_bookmark_command): Parse with get_number instead of strtoul.
5145 (bookmark_1): New function. Print info for one bookmark.
5146 (bookmarks_info): Use get_number_or_range and bookmark_1.
5148 2011-02-18 Michael Snyder <msnyder@vmware.com>
5150 * thread.c (info_threads_command): Re-implement using
5151 get_number_or_range.
5152 (thread_apply_command): Ditto.
5154 2011-02-18 Tom Tromey <tromey@redhat.com>
5156 * common/ax.def: New file.
5157 * ax.h (enum agent_op): Use ax.def.
5158 * ax-general.c (aop_map): Use ax.def.
5160 2011-02-18 Tom Tromey <tromey@redhat.com>
5162 * ax-general.c (aop_map): Add pick and rot.
5163 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
5164 <DW_OP_rot>: Implement.
5165 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
5167 * ax-general.c (ax_pick): New function.
5169 2011-02-18 Tom Tromey <tromey@redhat.com>
5171 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
5173 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5174 Tom Tromey <tromey@redhat.com>
5176 * cp-support.c (make_symbol_overload_list_namespace): Do not call
5177 make_symbol_overload_list_block with NULL BLOCK.
5178 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
5180 2011-02-18 Pedro Alves <pedro@codesourcery.com>
5182 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
5183 * breakpoint.h (get_number_or_range): Declare.
5184 * printcmd.c (ALL_DISPLAYS): Declare.
5185 (delete_display): Reimplement taking a display pointer.
5186 (undisplay_command): Accept a range of displays to delete, using
5187 get_number_or_range.
5189 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5191 * c-valprint.c (c_val_print): Add embedded_offset to address
5192 for arrays of unspecified length.
5193 * p-valprint.c (pascal_val_print): Likewise.
5195 2011-02-18 Yao Qi <yao@codesourcery.com>
5197 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
5198 (arm_process_displaced_insn): .. here. Remove parameter INSN.
5199 (thumb_process_displaced_insn): New.
5200 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
5201 call to arm_process_displaced_insn.
5202 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
5204 2011-02-17 Tom Tromey <tromey@redhat.com>
5206 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
5207 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
5208 compile_dwarf_to_ax. No longer static. Call
5209 dwarf2_compile_cfa_to_ax.
5210 (locexpr_tracepoint_var_ref): Update.
5211 (loclist_tracepoint_var_ref): Update.
5212 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
5213 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
5214 argument; add 'gdbarch' and 'pc'.
5215 (dwarf2_compile_cfa_to_ax): New function.
5216 (dwarf2_frame_cache): Update.
5218 2011-02-17 Joel Brobecker <brobecker@adacore.com>
5220 * ada-lang.c (ada_type_of_array): Fix the size of the array
5221 in the case of an unconstrained packed array.
5223 2011-02-17 Yao Qi <yao@codesourcery.com>
5225 * common/Makefile.in: Add more targets for make.
5227 2011-02-16 Tom Tromey <tromey@redhat.com>
5229 * dwarf2loc.c (unimplemented): Fix typo.
5231 2011-02-16 Tom Tromey <tromey@redhat.com>
5233 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
5234 (compile_dwarf_to_ax) <default>: Use unimplemented.
5235 <DW_OP_deref>: Update.
5236 (disassemble_dwarf_expression): Update.
5237 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
5238 (decode_locdesc): Update.
5239 * dwarf2expr.h (dwarf_stack_op_name): Update.
5241 2011-02-16 Tom Tromey <tromey@redhat.com>
5243 * ax.h (struct aop_map) <name>: Now const.
5245 2011-02-16 Tom Tromey <tromey@redhat.com>
5247 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
5250 2011-02-16 Yao Qi <yao@codesourcery.com>
5252 * infrun.c (get_displaced_step_closure_by_addr): New.
5253 * inferior.h: Declare it.
5254 * arm-tdep.c: (arm_pc_is_thumb): Call
5255 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
5258 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5259 Jan Kratochvil <jan.kratochvil@redhat.com>
5262 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
5264 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5265 Jan Kratochvil <jan.kratochvil@redhat.com>
5267 * value.c (value_contents_copy_raw): Extend describing comment.
5268 Assert that the destination contents we're overwriting are wholly
5270 (value_contents_copy): Extend describing comment.
5272 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5273 Jan Kratochvil <jan.kratochvil@redhat.com>
5275 * value.c (value_available_contents_eq): Remove redundant local
5276 variables. Fix available contents comparision.
5277 * value.h (value_available_contents_eq): Extend describing
5280 2011-02-16 Yao Qi <yao@codesourcery.com>
5282 * thread.c (info_threads_command): Add missing i18n markup and remove
5285 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5287 * breakpoint.c (longjmp_names): New variable.
5288 (struct breakpoint_objfile_data): New type.
5289 (breakpoint_objfile_key): New variable.
5290 (msym_not_found): New variable.
5291 (msym_not_found_p): New predicate.
5292 (get_breakpoint_objfile_data): New function.
5293 (create_overlay_event_breakpoint): Check per-objfile cache for
5295 (create_longjmp_master_breakpoint): Likewise.
5296 (create_std_terminate_master_breakpoint): Likewise.
5297 (create_exception_master_breakpoint): Likewise.
5298 (_initialize_breakpoint): Register per-objfile data key.
5300 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5302 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
5304 (create_longjmp_master_breakpoint): Loop over longjmp names.
5305 (create_std_terminate_master_breakpoint): Const-propagate parameter
5307 (update_breakpoints_after_exec): Adjust.
5308 (breakpoint_re_set): Adjust.
5310 2011-02-15 Michael Snyder <msnyder@vmware.com>
5312 * thread.c (info_threads_command): Process arg as thread id,
5313 or list of thread ids.
5314 (thread_find_command): New command.
5315 (_initialize_thread): Document argument for info threads.
5316 Document 'thread find' command.
5317 * NEWS: Document new command "thread find".
5319 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5321 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
5322 * aclocal.m4: Regenerated with aclocal-1.11.1.
5323 * common/configure: Regenerate with autoconf-2.64.
5325 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
5327 * opencl-lang.c (build_opencl_types): Set the size of the built-in
5328 bool data type to a size of one byte.
5330 2011-02-15 Pedro Alves <pedro@codesourcery.com>
5331 Jan Kratochvil <jan.kratochvil@redhat.com>
5333 * target.c (memory_xfer_live_readonly_partial): Document where to
5334 look for interface description.
5336 2011-02-15 Yao Qi <yao@codesourcery.com>
5339 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
5340 order to store PC value on stack instead of text section.
5342 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
5344 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
5345 the EFP register set size.
5346 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
5347 data from the VMX register.
5348 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
5349 and write data from/to the VMX register.
5351 2011-02-14 Michael Snyder <msnyder@vmware.com>
5353 * command.h (enum command_class): New class 'no_set_class', for
5354 "show" commands without a corresponding "set" command.
5355 * value.c (_initialize_values): Use 'no_set_class' for "show values".
5356 * copying.c (_initialize_copying): Ditto for "show copying" and
5358 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
5360 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
5361 which there is no corresponding "set" command (eg. "show copying").
5363 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5364 Jan Kratochvil <jan.kratochvil@redhat.com>
5366 * exec.c (section_table_available_memory): Change `len' parameter
5368 * exec.h (section_table_available_memory): Ditto.
5369 * value.h (read_value_memory): Rename the `offset' parameter to
5372 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5373 Jan Kratochvil <jan.kratochvil@redhat.com>
5375 * memrange.c (compare_mem_ranges): Mention sort order in
5377 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
5378 * tracepoint.c (traceframe_available_memory): Extend comment to
5379 mention what happens to RESULT when the target does not support
5382 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5383 Jan Kratochvil <jan.kratochvil@redhat.com>
5385 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
5388 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5390 * value.c (value_bits_valid, value_bits_synthetic_pointer):
5391 No longer handle NULL values.
5393 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5395 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
5396 * value.c: Include "exceptions.h".
5397 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
5399 * cp-abi.c: Include gdb_assert.h.
5400 (baseclass_offset): Add `embedded_offset' and `val' parameters.
5401 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
5403 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
5404 parameters. No longer returns -1 on error.
5405 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
5407 * cp-valprint.c: Include exceptions.h.
5408 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
5409 the baseclass_offset. Handle unavailable base classes. Use
5410 val_print_invalid_address.
5411 * p-valprint.c: Include exceptions.h.
5412 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
5413 when fetching the baseclass_offset. No longer expect
5414 baseclass_offset returning -1. Handle unavailable base classes.
5415 Use val_print_invalid_address.
5416 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
5417 `valaddr' parameter, and change its type to gdb_byte pointer. Add
5418 `embedded_offset' and `val' parameters. Adjust.
5419 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
5420 parameter, and change its type to gdb_byte pointer. Add
5421 `embedded_offset' and `val' parameters. Adjust. No longer expect
5422 baseclass_offset returning -1.
5423 (value_dynamic_cast): Use value_contents_for_printing rather than
5424 value_contents. Adjust.
5425 (search_struct_field): No longer expect baseclass_offset returning
5427 (search_struct_method): If reading memory from the target is
5428 necessary, wrap it in a new value to pass to baseclass_offset. No
5429 longer expect baseclass_offset returning -1.
5430 (find_method_list): No longer expect baseclass_offset returning
5431 -1. Use value_contents_for_printing rather than value_contents.
5432 * valprint.c (val_print_invalid_address): New function.
5433 * valprint.h (val_print_invalid_address): Declare.
5434 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
5435 and `val' parameters. No longer expect baseclass_offset returning
5437 * gnu-v2-abi.c: Include "exceptions.h".
5438 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
5439 parameters. Handle unavailable memory. Recurse through
5440 gnuv2_baseclass_offset directly, rather than through
5441 baseclass_offset. No longer returns -1 on not found, instead
5443 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
5444 `val' parameters. Adjust.
5446 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5448 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
5449 almost but not quite adjacent.
5451 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5453 * value.h (value_entirely_available): Declare.
5454 * value.c (value_entirely_available): New function.
5455 * c-valprint.c (c_value_print): Don't try fetching the pointer's
5456 real type if the pointer is unavailable.
5458 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5460 * valops.c (value_repeat): Use read_value_memory instead of
5463 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5465 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
5466 * value.c (value_contents_copy_raw, value_contents_copy): New
5468 (value_primitive_field): Use value_contents_copy_raw instead of
5470 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
5472 (value_array, value_slice): Ditto.
5473 * valarith.c (value_subscripted_rvalue): Use
5474 value_contents_copy_raw instead of memcpy.
5476 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5478 <unavailable> references.
5480 * valops.c (get_value_at): Use value_from_contents_and_address,
5481 avoiding read_memory.
5483 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5485 * c-valprint.c (c_val_print): Print a string with unavailable
5486 contents as an array.
5488 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5490 * value.h (unpack_bits_as_long): Delete declaration.
5491 (unpack_value_bits_as_long): Declare.
5492 (unpack_value_field_as_long): Declare.
5493 (value_field_bitfield): Declare.
5494 * value.c (unpack_bits_as_long): Rename to...
5495 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
5496 value parameters. Return the extracted result in a new output
5497 parameter. If the value contents are unavailable, return false,
5498 otherwise return true.
5499 (unpack_value_bits_as_long): New.
5500 (unpack_field_as_long): Rename to...
5501 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
5502 Add embedded_offset and value parameters. Return the extracted
5503 result in a new output parameter. If the value contents are
5504 unavailable, return false, otherwise return true.
5505 (unpack_value_field_as_long): New.
5506 (unpack_field_as_long_1): New.
5507 (unpack_field_as_long): Reimplement as wrapper around
5508 unpack_value_field_as_long_1.
5509 (value_field_bitfield): New function.
5510 * valops.c (value_fetch_lazy): When fetching a bitfield, use
5511 unpack_value_bits_as_long. Mark the value as unavailable, if it
5513 * jv-valprint.c (java_print_value_fields): Use
5514 value_field_bitfield.
5515 * p-valprint.c (pascal_object_print_value_fields): Use
5516 value_field_bitfield.
5517 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
5519 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5521 * value.c (get_internalvar_integer): Also return the int value of
5522 TYPE_CODE_INT INTERNALVAR_VALUE values.
5523 (set_internalvar): Don't special case TYPE_CODE_INT.
5525 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5527 * value.c (struct internalvar) <enum internalvar_kind>: Remove
5528 INTERNALVAR_POINTER.
5530 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
5531 (set_internalvar): Remove special TYPE_CODE_PTR handling.
5532 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
5534 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5536 * value.h (value_available_contents_eq): Declare.
5537 * value.c (find_first_range_overlap): New function.
5538 (value_available_contents_eq): New function.
5539 * valprint.c (val_print_array_elements): Use
5540 value_available_contents_eq.
5541 * ada-valprint.c (val_print_packed_array_elements): Use
5542 value_available_contents_eq.
5543 * jv-valprint.c (java_value_print): Use
5544 value_available_contents_eq.
5546 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5548 * target.c (target_read_live_memory): New function.
5549 (memory_xfer_live_readonly_partial): New.
5550 (memory_xfer_partial): If reading from a traceframe, fallback to
5551 reading unavailable read-only memory from read-only regions of
5553 * tracepoint.c (disconnect_tracing): Adjust.
5554 (set_current_traceframe): New, factored out from
5555 set_traceframe_number.
5556 (set_traceframe_number): Reimplement to only change the traceframe
5557 number on the GDB side.
5558 (do_restore_current_traceframe_cleanup): Adjust.
5559 (make_cleanup_restore_traceframe_number): New.
5560 (cur_traceframe_number): New global.
5561 (tfile_open): Set cur_traceframe_number to no traceframe.
5562 (set_tfile_traceframe): New function.
5563 (tfile_trace_find): If looking up a traceframe using any method
5564 other than by number, make sure the current tfile traceframe
5565 matches gdb's current traceframe. Update the current tfile
5566 traceframe if the lookup succeeded.
5567 (tfile_fetch_registers, tfile_xfer_partial)
5568 (tfile_get_trace_state_variable_value): Make sure the remote
5569 traceframe matches gdb's current traceframe.
5570 * remote.c (remote_traceframe_number): New global.
5571 (remote_open_1): Set it to -1.
5572 (set_remote_traceframe): New function.
5573 (remote_fetch_registers, remote_store_registers)
5574 (remote_xfer_memory, remote_xfer_partial)
5575 (remote_get_trace_state_variable_value): Make sure the remote
5576 traceframe matches gdb's current traceframe.
5577 (remote_trace_find): If looking up a traceframe using any method
5578 other than by number, make sure the current remote traceframe
5579 matches gdb's current traceframe. Update the current remote
5580 traceframe if the lookup succeeded.
5581 * infrun.c (fetch_inferior_event): Adjust.
5582 * tracepoint.h (set_current_traceframe): Declare.
5583 (get_traceframe_number, set_traceframe_number): Add describing
5586 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5588 Mark pieces of values as unavailable if the corresponding memory
5591 * valops.c: Include tracepoint.h.
5592 (value_fetch_lazy): Use read_value_memory.
5593 (read_value_memory): New.
5594 * value.h (read_value_memory): Declare.
5595 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
5596 * exec.c (section_table_available_memory): New function.
5597 * exec.h (section_table_available_memory): Declare.
5599 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5601 * Makefile.in (SFILES): Add memrange.c.
5602 (HFILES_NO_SRCDIR): Add memrange.h.
5603 (COMMON_OBS): Add memrange.o.
5604 * memrange.c: New file.
5605 * memrange.h: New file.
5606 * tracepoint.c: Include memrange.h.
5607 (struct mem_range): Delete.
5608 (mem_range_s): Delete.
5609 (traceframe_available_memory): New function.
5610 * tracepoint.h (traceframe_available_memory): Declare.
5612 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5614 * target.h (struct traceframe_info): Forward declare.
5615 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
5616 (struct target_ops) <to_traceframe_info>: New field.
5617 (target_traceframe_info): New.
5618 * target.c (update_current_target): Inherit and default
5620 * remote.c (PACKET_qXfer_traceframe_info): New.
5621 (remote_protocol_features): Register qXfer:traceframe-info:read.
5622 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
5623 (remote_traceframe_info): New.
5624 (init_remote_ops): Install it.
5625 (_initialize_remote): Install "set/show remote traceframe-info"
5627 * tracepoint.h (parse_traceframe_info): Declare.
5628 * tracepoint.c (struct mem_range): New.
5629 (mem_range_s): New typedef.
5630 (struct traceframe_info): New.
5631 (traceframe_info): New global.
5632 (free_traceframe_info): New function.
5633 (clear_traceframe_info): New function.
5634 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
5636 (build_traceframe_info): New function.
5637 (tfile_traceframe_info): New function.
5638 (init_tfile_ops): Install tfile_traceframe_info.
5639 (traceframe_info_start_memory, free_result): New functions.
5640 (memory_attributes, traceframe_info_elements): New globals.
5641 (parse_traceframe_info, get_traceframe_info): New functions.
5642 * features/traceframe-info.dtd: New file.
5643 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
5645 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5647 Base support for <unavailable> value contents.
5649 * value.h (value_bytes_available): Declare.
5650 (mark_value_bytes_unavailable): Declare.
5651 * value.c (struct range): New struct.
5652 (range_s): New typedef.
5653 (ranges_overlap): New function.
5654 (range_lessthan): New function.
5655 (ranges_contain_p): New function.
5656 (struct value) <unavailable>: New field.
5657 (value_bytes_available): New function.
5658 (mark_value_bytes_unavailable): New function.
5659 (require_not_optimized_out): Constify parameter.
5660 (require_available): New function.
5661 (value_contents_all, value_contents): Require all bytes be
5663 (value_free): Free `unavailable'.
5664 (value_copy): Copy `unavailable'.
5665 * valprint.h (val_print_unavailable): Declare.
5666 * valprint.c (valprint_check_validity): Rename `offset' parameter
5667 to `embedded_offset'. If printing a scalar, check whether the
5668 value chunk is available.
5669 (val_print_unavailable): New.
5670 (val_print_scalar_formatted): Check whether the value is
5672 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
5673 pretty-printing unavailable values.
5675 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5677 Fix const/volatile qualifiers of C++ types, PR c++/12328.
5678 * c-typeprint.c (c_type_print_args): Update the function comment. New
5679 variable param_type, initialize it. Remove const/volatile qualifiers
5680 for language_cplus and !show_artificial. Use param_type.
5682 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5684 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
5685 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
5686 * symtab.h (struct symtab) <next>: Comment extension.
5688 2011-02-12 Yao Qi <yao@codesourcery.com>
5690 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
5692 2011-02-11 Yao Qi <yao@codesourcery.com>
5694 * common/Makefile.in: Add copyright header.
5696 2011-02-11 Pedro Alves <pedro@codesourcery.com>
5698 * infrun.c (proceed): Move switching out and in of tfind mode from
5700 (fetch_inferior_event): ... to here.
5702 2011-02-11 Yao Qi <yao@codesourcery.com>
5704 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5706 * configure.ac: Add common to sub dir.
5707 * configure: Regenerate.
5709 2011-02-11 Yao Qi <yao@codesourcery.com>
5713 * common/Makefile.in: New.
5714 * common/configure.ac: New.
5715 * common/aclocal.m4: New.
5716 * common/configure: Generate.
5718 2011-02-10 Pedro Alves <pedro@codesourcery.com>
5720 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
5721 side of the parenthesis.
5724 2010-07-13 Jakub Jelinek <jakub@redhat.com>
5725 * vec.h (VEC_block_remove): Fix comment.
5727 2011-02-08 Michael Snyder <msnyder@vmware.com>
5729 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
5731 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5733 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
5734 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
5737 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5740 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
5742 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
5743 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
5745 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5747 * dwarf2read.c (read_subroutine_type): Set special calling
5748 convention flag for functions compiled by IBM XL C for OpenCL.
5749 * ppc-sysv-tdep.c: Include "dwarf2.h"
5750 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
5752 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
5753 IBM OpenCL vector types calling convention.
5754 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
5755 (ppc_sysv_abi_broken_return_value): Likewise.
5756 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
5757 types calling convention.
5758 (ppc64_sysv_abi_return_value): Likewise.
5759 * spu-tdep.c: Include "dwarf2.h"
5760 (spu_return_value): Implement IBM OpenCL vector types calling
5763 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5765 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
5766 correct ABI for AltiVec vector arguments.
5768 2011-02-07 Pedro Alves <pedro@codesourcery.com>
5770 * valprint.c (val_print): Extend comment.
5771 * ada-valprint.c (ada_valprint): Rewrite comment deferring
5772 interface explanation to val_print.
5773 (ada_val_print_array): Adjust comment to current interface.
5774 (print_field_values): Adjust comment to current interface.
5775 * c-valprint.c (c_val_print): Rewrite comment deferring interface
5776 explanation to val_print.
5777 * f-valprint.c (f_val_print): Ditto.
5778 * jv-valprint.c (java_val_print): Ditto.
5779 * m2-valprint.c (m2_val_print): Ditto.
5780 * p-valprint.c (pascal_val_print): Ditto.
5782 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5784 * breakpoint.c (parse_breakpoint_sals): Fix description.
5786 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
5787 Oguz Kayral <oguzkayral@gmail.com>
5789 * python/py-inferior.c (python_on_normal_stop): New function.
5790 (python_on_resume): New function.
5791 (python_inferior_exit): New function.
5792 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5793 inferior_exit observers.
5794 * python/py-evtregistry.c: New file.
5795 * python/py-threadevent.c : New file.
5796 * python/py-event.c: New file.
5797 * python/py-evts.c: New file.
5798 * python/py-continueevent.c: New file.
5799 * python/py-bpevent.c: New file.
5800 * python/py-signalevent.c: New file.
5801 * python/py-exetiedevent.c: New file.
5802 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5803 Move struct breakpoint_object from here...
5804 * python/python-internal.h: ... to here.
5805 * python/py-event.h: New file.
5806 * python/py-events.h: New file.
5807 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5808 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5809 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5810 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5811 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5812 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5813 Add build rules for all the above.
5815 2011-02-04 Tom Tromey <tromey@redhat.com>
5817 * dwarf2read.c (dwarf2_section_empty_p): New function.
5818 (dwarf2_read_section): Use dwarf2_section_empty_p.
5819 (dwarf2_section_size): New function.
5820 (dwarf2_get_section_info): Unconditionally read section.
5821 (dwarf2_read_index): Use dwarf2_section_empty_p.
5822 (partial_read_comp_unit_head): Use dwarf2_section_size.
5823 (dwarf2_symbol_mark_computed): Likewise.
5825 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5827 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5829 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5831 * mips-linux-tdep.c: Include xml-syscall.h.
5832 (mips_linux_get_syscall_number): New function.
5833 (mips_linux_init_abi): Add calls to
5834 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5835 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5836 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5837 * syscalls/mips-n32-linux.xml: New file.
5838 * syscalls/mips-n64-linux.xml: New file.
5839 * syscalls/mips-o32-linux.xml: New file.
5841 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5843 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5844 Complain about inverted range entries.
5845 (dwarf2_record_block_ranges): Likewise.
5847 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5850 * breakpoint.c (update_watchpoint): Fix name of the
5851 update_global_location_list function.
5852 (print_one_breakpoint): Fix typo.
5853 (_initialize_breakpoint): Remove extra space in hbreak help
5855 * breakpoint.h (struct bp_location) <length>: Fix field
5858 2011-02-04 Pedro Alves <pedro@codesourcery.com>
5860 * regcache.c (registers_changed_ptid): Don't explictly always
5861 clear `current_regcache'. Only clear current_thread_ptid and
5862 current_thread_arch when PTID matches. Only reinit the frame
5863 cache if PTID matches the current inferior_ptid. Move alloca(0)
5865 (registers_changed): ... here.
5867 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
5869 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5870 starts with __stack_chk_guard as stack guard symbol.
5872 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
5874 * disasm.c (compare_lines): Handle the end of sequence markers
5875 within the line table to better support disassembling over
5876 compilation unit boundaries.
5878 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5880 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5881 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
5882 implementation even if no symbols are available.
5883 (thumb_analyze_prologue): Update call to skip_prologue_function.
5884 (arm_analyze_prologue): Likewise.
5886 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5888 * arm-tdep.c: Include "observer.h".
5889 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5890 (arm_exidx_data_key): New static variable.
5891 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5892 (struct arm_exidx_data): Likewise.
5893 (arm_exidx_data_free): New function.
5894 (arm_compare_exidx_entries): Likewise.
5895 (arm_obj_section_from_vma): Likewise.
5896 (arm_exidx_new_objfile): Likewise.
5897 (arm_find_exidx_entry): Likewise.
5898 (arm_exidx_fill_cache): Likewise.
5899 (arm_exidx_unwind_sniffer): Likewise.
5900 (arm_exidx_unwind): New global variable.
5901 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
5902 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
5903 observer. Register arm_exidx_data_key as objfile data.
5905 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5907 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
5908 due to accessing uninitialized variable. Fix indentation.
5910 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5912 * c-valprint.c (c_value_print): When doing virtual base pointer
5913 adjustment, create a new value with adjusted contents rather than
5914 changing the contents of the value being printed (and getting it
5917 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5919 * xml-support.c (xml_find_attribute): New.
5920 (xinclude_start_include): Use it.
5921 * xml-support.h (xml_find_attribute): Declare.
5922 * memory-map.c (memory_map_start_memory)
5923 (memory_map_start_property): Use xml_find_attribute.
5924 * osdata.c (osdata_start_osdata, osdata_start_column): Use
5926 * remote.c (start_thread): Use xml_find_attribute.
5927 * solib-target.c (library_list_start_segment)
5928 (library_list_start_section, library_list_start_library)
5929 (library_list_start_list): Use xml_find_attribute.
5930 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
5931 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
5932 (tdesc_start_field): Use xml_find_attribute.
5934 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
5936 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
5937 (BUILD_OCL_VTYPES): Update.
5939 2011-02-02 Joel Brobecker <brobecker@adacore.com>
5941 * configure.ac: Work around non-GNU sed limitation when computing
5942 python version number.
5943 * configure: Regenerate.
5945 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5947 Fix debug printing of TYPE_INSTANCE.
5948 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
5949 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
5951 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5953 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
5954 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
5955 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
5956 * ada-operator.inc: Rename the file to ...
5957 * ada-operator.def: ... here, wrap all the entries by macro OP.
5958 * expprint.c (op_name_standard): Remove all the entries. Include
5959 "std-operator.def" instead.
5960 * expression.h (enum exp_opcode): Include "std-operator.def" and
5961 "ada-operator.def". Move all the entries ...
5962 * std-operator.def: ... here, wrap all the entries by macro OP.
5964 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
5966 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
5967 * breakpoint.c (remove_jit_event_breakpoints): New function.
5968 * jit.c (jit_descriptor_addr): Delete.
5969 (registering_code): Delete.
5970 (clear_int): Delete.
5971 (jit_inferior_data): New variable.
5972 (struct jit_inferior_data): New type.
5973 (get_jit_inferior_data): New function.
5974 (jit_inferior_data_cleanup): New function.
5975 (jit_read_descriptor): Adjust.
5976 (jit_register_code): Adjust.
5977 (jit_breakpoint_re_set_internal): New function; move code here ...
5978 (jit_inferior_init): ... from here.
5979 (jit_breakpoint_re_set): Adjust.
5980 (jit_reset_inferior_data_and_breakpoints): New function.
5981 (jit_inferior_created_observer): Adjust.
5982 (jit_inferior_exit_hook): Adjust.
5983 (jit_executable_changed_observer): New function.
5984 (jit_event_handler): Adjust.
5985 (_initialize_jit): Adjust.
5987 2011-01-31 Michael Snyder <msnyder@vmware.com>
5989 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
5992 2011-01-31 Tom Tromey <tromey@redhat.com>
5995 * python/python.c (execute_gdb_command): Call
5996 prevent_dont_repeat.
5997 * top.c (suppress_dont_repeat): New global.
5998 (dont_repeat): Use it.
5999 (prevent_dont_repeat): New function.
6000 * command.h (prevent_dont_repeat): Declare.
6002 2011-01-31 Tom Tromey <tromey@redhat.com>
6004 * infcmd.c (finish_backward): Use breakpoint_set_silent.
6005 * python/py-breakpoint.c (bppy_set_silent): Use
6006 breakpoint_set_silent.
6007 (bppy_set_thread): Use breakpoint_set_thread.
6008 (bppy_set_task): Use breakpoint_set_task.
6009 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
6010 (breakpoint_set_task): Declare.
6011 (make_breakpoint_silent): Remove.
6012 * breakpoint.c (breakpoint_set_silent): New function.
6013 (breakpoint_set_thread): Likewise.
6014 (breakpoint_set_task): Likewise.
6015 (make_breakpoint_silent): Remove.
6017 2011-01-31 Tom Tromey <tromey@redhat.com>
6019 * breakpoint.h (user_breakpoint_p): Declare.
6020 * breakpoint.c (user_breakpoint_p): New function.
6021 (breakpoint_1): Use it.
6022 (save_breakpoints): Likewise.
6024 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6026 * configure.ac: Add handling of Python distribution on Windows.
6027 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
6028 sysconfig variables are not defined, then do not use them.
6029 On Windows, if LIBPL is not defined, then use prefix + '/libs'
6030 instead. On Windows, return all paths using forward-slashes
6031 rather than backslashes.
6033 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6035 * configure.ac: Remove fallback behavior for building
6036 against Python. Remove tweaking of Python include path.
6037 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
6038 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
6039 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
6040 Always restore CPPFLAGS and LIBS after linking test.
6041 * configure: Regenerated.
6042 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
6043 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
6044 * python/python-internal.h: Adjust includes of Python .h files.
6046 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6048 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
6051 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6053 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
6056 2011-01-31 Yao Qi <yao@codesourcery.com>
6058 * arm-linux-nat.c: Update calls to regcache_register_status
6059 instead of regcache_valid_p.
6060 * aix-thread.c: Likewise.
6061 * i386gnu-nat.c: Likewise.
6063 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6066 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
6067 touching TYPE_FIELD_ARTIFICIAL.
6069 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
6071 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
6074 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6076 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
6077 selected, don't try iterating over the traceframe's blocks.
6078 (tfile_has_stack): If there's no traceframe selected, then there's
6080 (tfile_has_registers): If there's no traceframe selected, then
6081 there's no registers.
6083 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6085 * target.c (memory_xfer_partial): No need to restore shadows if we
6086 haven't read anything.
6088 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6090 * mips-tdep.c (mips_print_register): Use get_frame_register_value
6091 and val_print_scalar_formatted.
6093 2011-01-27 Pedro Alves <pedro@codesourcery.com>
6095 * tracepoint.c (tfile_read): New.
6096 (tfile_open): Use it.
6097 (tfile_get_traceframe_address): Use it.
6098 (tfile_trace_find): Use it.
6099 (walk_blocks_callback_func): New typedef.
6100 (match_blocktype): New function.
6101 (traceframe_walk_blocks): New function.
6102 (traceframe_find_block_type): New function.
6103 (tfile_fetch_registers, tfile_xfer_partial)
6104 (tfile_get_trace_state_variable_value): Use
6105 traceframe_find_block_type and tfile_read.
6107 2011-01-26 Kevin Buettner <kevinb@redhat.com>
6109 * remote-mips.c: Add internationalization mark ups. Remove
6110 trailing \n from already marked up strings.
6112 2011-01-26 Tom Tromey <tromey@redhat.com>
6114 * python/py-prettyprint.c (print_string_repr): Clear
6115 'addressprint' option when calling val_print_string.
6116 (print_children): Handle Val_pretty_default. Clear 'addressprint'
6117 option when calling val_print_string.
6119 2011-01-26 Tom Tromey <tromey@redhat.com>
6121 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
6123 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
6125 (gdb_py_longest, gdb_py_ulongest): New typedefs.
6126 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
6127 (gdb_py_long_as_ulongest): New defines.
6128 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
6129 (gdb_py_int_as_long): Declare.
6130 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
6131 GDB_PY_LL_ARG, gdb_py_object_from_longest.
6132 (valpy_long): Add comment.
6133 * python/py-utils.c (get_addr_from_python): Use
6134 gdb_py_long_as_ulongest. Handle overflow properly.
6135 (gdb_py_object_from_longest): New function.
6136 (gdb_py_object_from_ulongest): Likewise.
6137 (gdb_py_int_as_long): Likewise.
6138 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
6139 * python/py-symtab.c (salpy_get_pc): Use
6140 gdb_py_long_from_ulongest.
6141 (salpy_get_line): Use PyInt_FromLong.
6142 * python/py-param.c (set_parameter_value): Use
6144 * python/py-lazy-string.c (stpy_get_address): Use
6145 gdb_py_long_from_ulongest.
6146 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
6147 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
6148 * python/py-breakpoint.c (bppy_set_thread): Use
6150 (bppy_set_task): Likewise.
6151 (bppy_set_ignore_count): Likewise.
6152 (bppy_set_hit_count): Likewise.
6153 * python/py-block.c (blpy_get_start): Use
6154 gdb_py_object_from_ulongest.
6155 (blpy_get_end): Likewise.
6156 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
6158 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
6161 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
6162 * gdb/solib.c (solib_read_symbols): Check for addr_low in
6163 equality test for objfile, initialize addr_low if needed.
6165 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6167 * tui/tui-regs.c (tui_register_format): Remove dead code.
6169 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6171 * printcmd.c (print_formatted): Use val_print_scalar_formatted
6172 instead of print_scalar_formatted.
6173 (print_scalar_formatted): Don't handle 's' format strings here,
6174 and add an assertion that we never see such format here.
6175 * valprint.h (val_print_scalar_formatted): Declare.
6176 * valprint.c (val_print_scalar_formatted): New.
6177 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
6178 instead of print_scalar_formatted.
6179 * jv-valprint.c (java_val_print): Ditto.
6180 * p-valprint.c (pascal_val_print): Ditto.
6181 * ada-valprint.c (ada_val_print_1): Ditto.
6182 * f-valprint.c (f_val_print): Ditto.
6183 * infcmd.c (registers_info): Ditto.
6184 * m2-valprint.c (m2_val_print): Ditto.
6186 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6188 * m2-valprint.c (print_unbounded_array): Pass
6189 value_contents_for_printing rather than value_contents, to
6190 m2_print_array_contents. Also pass in the value.
6192 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6194 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
6195 (save_gdb_index_command): Switch to .gdb_index version 4.
6197 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6199 * mi/mi-main.c (get_register): Use get_frame_register_value rather
6200 than frame_register, and always pass a valid value to val_print.
6202 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6204 Centralize printing "<optimized out>".
6206 * valprint.h (val_print_optimized_out): Declare.
6207 * cp-valprint.c (cp_print_value_fields): Use
6208 val_print_optimized_out.
6209 * jv-valprint.c (java_print_value_fields): Ditto.
6210 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6211 * printcmd.c (print_formatted): Ditto.
6212 * valprint.c (valprint_check_validity): Ditto.
6213 (value_check_printable): Ditto.
6214 (val_print_optimized_out): New.
6216 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6218 * infcmd.c (default_print_registers_info): Allocate values so to
6219 never pass a NULL value to val_print.
6221 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6223 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
6224 boolean. Make sure to always pass a value that matches the
6225 contents buffer to callees. Preserve `address' for following
6227 * value.c (value_contents_for_printing_const): New.
6228 (value_address): Constify value argument.
6229 * value.h (value_contents_for_printing_const): Declare.
6230 (value_address): Constify value argument.
6232 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6234 * regcache.c (struct regcache_descr): Rename
6235 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
6236 and sizeof_cooked_register_valid_p to
6237 sizeof_cooked_register_status.
6238 (init_regcache_descr): Adjust.
6239 (struct regcache): Rename register_valid_p field to
6241 (regcache_xmalloc_1, regcache_xfree, regcache_save)
6242 (do_cooked_read): Adjust.
6243 (regcache_valid_p): Rename to ...
6244 (regcache_register_status): ... this. Adjust.
6245 (regcache_invalidate): Adjust.
6246 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
6248 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
6249 as unavailable, not valid.
6250 (regcache_dump): Adjust.
6251 * regcache.h (enum register_status): New.
6252 (regcache_register_status): Declare.
6253 (regcache_invalidate): Delete declaration.
6254 * corelow.c (get_core_registers): Adjust.
6255 * tracepoint.c (tfile_fetch_registers): Adjust.
6256 * trad-frame.c (REG_VALUE): Rename to ...
6257 (TF_REG_VALUE): ... this.
6258 (REG_UNKNOWN): Rename to ...
6259 (TF_REG_UNKNOWN): ... this.
6260 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
6261 * mi/mi-main.c (register_changed_p): Adjust.
6263 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6265 * regcache.c (struct regcache_descr): Remove outdated comment.
6266 (init_regcache_descr): Remove sizeof_raw_register_valid_p
6268 (regcache_xmalloc): Rename to ...
6269 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
6270 Allocate the regcache type accordingly.
6271 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
6272 (regcache_xfree): Asser the source is also readonly. Copy sizeof
6273 cooked registers, not raw.
6274 (regcache_dup_no_passthrough): Delete.
6275 (get_thread_arch_regcache): Use regcache_xmalloc_1.
6276 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
6277 mention obsolete write_register_bytes.
6278 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
6280 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6282 Stop remote_read_bytes from handling partial reads itself.
6284 * remote-fileio.c: Include target.h.
6285 (remote_fileio_write_bytes): Delete.
6286 (remote_fileio_func_open, remote_fileio_func_write)
6287 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
6289 (remote_fileio_func_stat): Use target_read_memory and
6290 target_write_memory.
6291 (remote_fileio_func_gettimeofday): Use target_write_memory.
6292 (remote_fileio_func_system): Use target_read_memory.
6293 * remote.c (remote_write_bytes): Make it static.
6294 (remote_read_bytes): Don't handle partial reads here.
6295 * remote.h (remote_read_bytes): Delete declaration.
6297 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6299 Simplify XML parsing a bit.
6301 * xml-support.h (gdb_xml_parse_quick): Declare.
6302 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
6303 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
6305 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
6306 gdb_xml_create_parser_and_cleanup_1.
6307 (gdb_xml_parse_quick): New.
6308 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
6309 * osdata.c (osdata_parse): Ditto.
6310 * remote.c (remote_threads_info): Ditto.
6311 * solib-target.c (solib_target_parse_libraries): Ditto.
6312 * xml-syscall.c (syscall_parse_xml): Ditto.
6313 * xml-tdesc.c (tdesc_parse_xml): Ditto.
6315 2011-01-24 Kevin Buettner <kevinb@redhat.com>
6317 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
6318 with remote-mips.o added to gdb_target_obs.
6319 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
6321 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6323 * ada-valprint.c (val_print_packed_array_elements): Pass the
6324 correct struct value to val_print.
6325 (ada_val_print_1): Ditto.
6327 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6329 Don't lose embedded_offset in printing routines throughout.
6331 * valprint.h (val_print_array_elements): Change prototype.
6332 * valprint.c (val_print_array_elements): Add `embedded_offset'
6333 parameter, and adjust to pass it down to val_print, while passing
6334 `valaddr' or `address' unmodified. Take embedded_offset into
6335 account when checking repetitions.
6336 * c-valprint.c (c_val_print): Pass embedded_offset to
6337 val_print_array_elements instead of adjusting `valaddr' and
6339 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
6340 embedded_offset to val_print_array_elements instead of adjusting
6342 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
6343 * p-valprint.c (pascal_val_print): Pass embedded_offset to
6344 val_print_array_elements and pascal_object_print_value_fields
6345 instead of adjusting `valaddr'.
6346 (pascal_object_print_value_fields): Add `offset' parameter, and
6348 (pascal_object_print_value): Add `offset' parameter, and adjust to
6350 (pascal_object_print_static_field): Use
6351 value_contents_for_printing/value_embedded_offset, rather than
6353 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
6354 parameter, and adjust to use it. Use
6355 value_contents_for_printing/value_embedded_offset, rather than
6357 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
6358 (ada_val_print_array): Add `offset' parameter, and adjust to use
6360 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
6361 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
6362 Instead work with offsets. Use
6363 value_contents_for_printing/value_embedded_offset, rather than
6364 value_contents. Change `defer_val_int' local type to CORE_ADDR,
6365 and use value_from_pointer to extract a target pointer, rather
6366 than value_from_longest.
6367 (print_variant_part): Add `offset' parameter. Replace
6368 `outer_valaddr' parameter by a new `outer_offset' parameter.
6369 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6370 (ada_value_print): Use
6371 value_contents_for_printing/value_embedded_offset, rather than
6373 (print_record): Add `offset' parameter, and adjust to pass it
6375 (print_field_values): Add `offset' parameter. Replace
6376 `outer_valaddr' parameter by a new `outer_offset' parameter.
6377 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6378 Use value_contents_for_printing/value_embedded_offset, rather than
6380 * d-valprint.c (dynamic_array_type): Use
6381 value_contents_for_printing/value_embedded_offset, rather than
6383 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
6384 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6385 (java_print_value_fields): Take `offset' into account. Don't
6386 re-adjust `valaddr'. Instead pass down adjusted offsets.
6387 (java_val_print): Take `embedded_offset' into account. Pass it to
6388 java_print_value_fields.
6389 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
6390 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
6391 down adjusted offsets.
6392 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
6393 (f_val_print): Take `embedded_offset' into account.
6395 2011-01-21 Joel Brobecker <brobecker@adacore.com>
6397 * inflow.c: Include "gdbcmd.h".
6398 (interactive_mode): New static global, moved here from top.c.
6399 (show_interactive_mode): New function, moved here from top.c.
6400 use gdb_has_a_terminal instead of input_from_terminal_p to
6401 determine the current mode.
6402 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
6404 (_initialize_inflow): Add the "set/show interactive-mode"
6405 commands. Moved here from top.c, after having adjusted slightly
6407 * top.c (interactive_mode, show_interactive_mode): Delete, moved
6409 (input_from_terminal_p): Remove handling of "interactive-mode"
6410 setting, moved to infow.c.
6411 (init_main): Remove creation of the "set/show interactive-mode"
6412 commands, moved to inflow.c.
6414 2011-01-19 Joel Brobecker <brobecker@adacore.com>
6416 * NEWS: Add entry for native ia64-hpux support.
6418 2011-01-19 Tom Tromey <tromey@redhat.com>
6421 * thread.c (free_thread): Free 'name'.
6422 (print_thread_info): Emit thread name. Change CLI output.
6423 (thread_name_command): New function.
6424 (do_captured_thread_select): Emit newline.
6425 (_initialize_thread): Register 'thread name' command.
6426 * target.h (struct target_ops) <to_thread_name>: New field.
6427 (target_thread_name): New macro.
6428 * target.c (update_current_target): Handle to_thread_name.
6429 * python/py-infthread.c (thpy_get_name): New function.
6430 (thpy_set_name): Likewise.
6431 (thread_object_getset): Add "name".
6432 * linux-nat.c (linux_nat_thread_name): New function.
6433 (linux_nat_add_target): Set to_thread_name.
6434 * gdbthread.h (struct thread_info) <name>: New field.
6436 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6438 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
6439 (ada_val_print_1): Likewise.
6441 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6443 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
6444 upper limit address is not greater than the function end address
6445 when the upper limit could not be computed using the debugging
6448 2011-01-17 Tom Tromey <tromey@redhat.com>
6450 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
6452 * utils.c: Include gdb_regex.h.
6453 (do_regfree_cleanup): New function.
6454 (make_regfree_cleanup): Likewise.
6455 (get_regcomp_error): Likewise.
6456 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
6458 2011-01-17 Tom Tromey <tromey@redhat.com>
6460 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
6463 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6465 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
6466 for internal variables.
6467 (last_was_structop): New static variable.
6468 (COMPLETE): New token.
6469 (field_exp): New rule to group all '.' suffix handling.
6470 Add mark_struct_expression calls when approriate to be able
6471 to correctly find fields for completion.
6472 (yylex): Adapt to handle field completion and set INTVAR when
6475 2011-01-14 Yao Qi <yao@codesourcery.com>
6477 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
6478 save_reggroup, restore_reggroup and all_reggroup.
6480 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6482 * ada-valprint. (ada_printchar): Use the correct type length
6483 in call to ada_emit_char.
6484 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
6486 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6488 * solib-som.h (hpux_major_release): Declare variable here.
6489 * solib-som.c: Remove <sys/utsname.h> header.
6490 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
6491 (hpux_major_release): Make global, change default value to
6492 DEFAULT_HPUX_MAJOR_RELEASE.
6493 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
6494 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
6495 Add "solib-som.h" header.
6496 (set_hpux_major_release): New function.
6497 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
6499 2011-01-14 Mike Frysinger <vapier@gentoo.org>
6501 * configure.tgt (*-*-uclinux*): Match more Linux os targets
6503 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6505 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
6506 new-line at end of warning message.
6507 (ia64_hpux_store_register): Remove trailing new-line at end of
6509 * ia64-hpux-tdep.c: Rephrase comment.
6510 * solib-ia64-hpux.c (struct dld_info): Change type of field
6511 dld_flags from "long long" to ULONGEST.
6513 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6515 * target.h (deprecated_child_ops): Delete declaration.
6516 * target.c (deprecated_child_ops): Delete definition.
6518 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6520 * Makefile.in (hpux-thread.o): Delete rule.
6521 * configure.ac: Don't check for HPUX DCE threads support.
6522 * configure, config.in: Regenerate.
6523 * hppa-hpux-nat.c (child_suppress_run): Delete.
6524 (hppa_hpux_child_can_run): Delete.
6525 (_initialize_hppa_hpux_nat): Don't override to_can_run.
6526 * hpux-thread.c: Delete.
6528 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6530 * hpux-thread.c (hpux_pid_to_str): Delete.
6532 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6534 * ada-valprint.c (ada_emit_char): Remove strange code.
6535 Check that c is <= UCHAR_MAX before passing it to isascii.
6536 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
6538 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6540 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
6541 to the case where instream is stdin.
6543 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6545 * ia64-tdep.h (struct regcache): Forward declare.
6546 (struct ia64_infcall_ops): New struct type.
6547 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
6549 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
6550 Renames ia64_find_global_pointer.
6551 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
6552 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
6553 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
6555 (ia64_infcall_ops): New static global constant.
6556 (ia64_gdbarch_init): Set tdep->infcall_ops.
6557 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
6558 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
6559 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
6560 (ia64_hpux_dummy_code): New static global constant.
6561 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
6562 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
6563 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
6565 (ia64_hpux_infcall_ops): New static global constant.
6566 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
6567 for inferior function calls to work properly on ia64-hpux.
6569 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6571 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
6572 * ia64-tdep.h (struct frame_info): forward declaration.
6573 (struct gdbarch_tdep): Add field size_of_register_frame.
6574 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
6575 to determine the size of the register frame.
6576 (ia64_size_of_register_frame): New function.
6577 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
6578 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
6579 (IA64_HPUX_UREG_REASON): New macro.
6580 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
6582 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
6583 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
6584 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
6587 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6589 Add support for ia64-hpux.
6590 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
6591 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
6593 * configure.host: Add handling for ia64-hpux hosts. Add associated
6595 * configure.tgt: Add handling for ia64-hpux targets.
6596 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
6597 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
6598 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
6600 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6602 [ttrace] Compute thread list immediately after attach.
6603 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
6605 (inf_ttrace_attach): Use it.
6607 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6609 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
6610 if we could not determine the frame's function address. Instead,
6611 use the frame's PC, and then continue.
6613 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6615 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
6616 not already defined.
6618 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6620 * ia64-tdep.c (ia64_struct_type_p): New function.
6621 (ia64_extract_return_value): Handle integral values that are
6622 less than 8 bytes long.
6623 (ia64_push_dummy_call): Likewise.
6625 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6627 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
6628 floatformat_ia64_ext.
6629 (floatformat_ia64_ext_big): New static const.
6630 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
6632 2011-01-12 Tom Tromey <tromey@redhat.com>
6634 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
6636 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
6637 (mi_cmd_thread_list_ids): Likewise.
6638 (mi_cmd_data_list_changed_registers): Likewise.
6639 (mi_cmd_data_list_register_values): Likewise.
6640 (mi_cmd_data_write_register_values): Likewise.
6641 (mi_cmd_data_evaluate_expression): Likewise.
6642 (mi_cmd_data_read_memory): Likewise.
6643 (mi_cmd_data_read_memory_bytes): Likewise.
6644 (mi_cmd_data_write_memory): Likewise.
6645 (mi_cmd_enable_timings): Likewise.
6646 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
6647 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
6648 (mi_cmd_var_delete): Likewise.
6649 (mi_cmd_var_set_format): Likewise.
6650 (mi_cmd_var_show_format): Likewise.
6651 (mi_cmd_var_info_num_children): Likewise.
6652 (mi_cmd_var_list_children): Likewise.
6653 (mi_cmd_var_info_type): Likewise.
6654 (mi_cmd_var_info_expression): Likewise.
6655 (mi_cmd_var_show_attributes): Likewise.
6656 (mi_cmd_var_assign): Likewise.
6657 (mi_cmd_var_update): Likewise.
6658 (mi_cmd_enable_pretty_printing): Likewise.
6659 (mi_cmd_var_set_update_range): Likewise.
6660 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
6662 (mi_cmd_target_file_put): Likewise.
6663 (mi_cmd_target_file_delete): Likewise.
6664 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
6666 (mi_cmd_stack_info_depth): Likewise.
6667 (mi_cmd_stack_list_locals): Likewise.
6668 (mi_cmd_stack_list_args): Likewise.
6669 (mi_cmd_stack_select_frame): Likewise.
6670 (mi_cmd_stack_select_frame): Likewise.
6671 (mi_cmd_stack_info_frame): Likewise.
6672 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
6674 (mi_cmd_file_list_exec_source_files): Likewise.
6675 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
6676 (mi_cmd_env_cd): Likewise.
6677 (mi_cmd_env_path): Likewise.
6678 (mi_cmd_env_dir): Likewise.
6679 (mi_cmd_inferior_tty_show): Likewise.
6680 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
6681 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
6682 (mi_cmd_break_watch): Likewise.
6684 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
6686 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
6687 (ppc_linux_insert_hw_breakpoint): Likewise.
6688 (ppc_linux_remove_hw_breakpoint): Likewise.
6689 (ppc_linux_insert_watchpoint): Likewise.
6691 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6692 Jan Kratochvil <jan.kratochvil@redhat.com>
6694 PR fortran/11104 and DWARF unbound arrays detection.
6695 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
6696 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
6697 unspecified upper bound.
6698 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
6699 variables array_size_array, tmp_type and offset_item. New variable
6700 array. Remove call to f77_get_upperbound. New variables array_type
6701 and index. Call value_subscripted_rvalue for each dimenasion. Remove
6702 the final call to deprecated_set_value_type.
6704 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6706 Make value allocations more lazy.
6707 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
6708 instead of allocate_value and set_value_lazy when possible.
6709 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
6710 instead of allocate_value and set_value_lazy.
6711 * findvar.c (value_of_register_lazy): Likewise.
6712 (read_var_value): Remove V preallocation, call just check_typedef in
6713 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
6714 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
6715 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
6716 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
6717 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
6718 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
6719 the end, remove set_value_lazy there.
6720 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
6721 instead of allocate_value and set_value_lazy when possible.
6722 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
6723 * value.c (allocate_computed_value): Use allocate_value_lazy instead
6724 of allocate_value and set_value_lazy.
6725 (value_from_contents_and_address): Use allocate_value_lazy instead of
6726 allocate_value and set_value_lazy when possible.
6728 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6730 * disasm.c (dump_insns): Support dumping opcodes for MI.
6731 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
6732 dumping of instruction opcodes.
6734 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
6736 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
6739 2011-01-11 Tom Tromey <tromey@redhat.com>
6741 * thread.c (do_captured_thread_select): Emit newline before
6744 2011-01-11 Michael Snyder <msnyder@vmware.com>
6746 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
6747 * score-tdep.c: Ditto.
6748 * score-tdep.h: Ditto.
6749 * ser-base.c: Ditto.
6750 * ser-go32.c: Ditto.
6753 * ser-mingw.c: Ditto.
6754 * ser-pipe.c: Ditto.
6756 * ser-unix.c: Ditto.
6757 * sh64-tdep.c: Ditto.
6758 * shnbsd-nat.c: Ditto.
6762 * solib-darwin.c: Ditto.
6763 * solib-frv.c: Ditto.
6765 * solib-irix.c: Ditto.
6766 * solib-osf.c: Ditto.
6767 * solib-pa64.c: Ditto.
6768 * solib-som.c: Ditto.
6769 * solib-spu.c: Ditto.
6770 * solib-sunos.c: Ditto.
6771 * solib-svr4.c: Ditto.
6773 * sol-thread.c: Ditto.
6777 * sparc64-linux-tdep.c: Ditto.
6778 * sparc64-tdep.c: Ditto.
6779 * sparc-linux-nat.c: Ditto.
6780 * sparc-linux-tdep.c: Ditto.
6781 * sparc-sol2-nat.c: Ditto.
6782 * sparc-sol2-tdep.c: Ditto.
6783 * sparc-tdep.c: Ditto.
6784 * sparc-tdep.h: Ditto.
6785 * spu-tdep.c: Ditto.
6786 * stabsread.c: Ditto.
6787 * stabsread.h: Ditto.
6795 * target-descriptions.c: Ditto.
6796 * target-descriptions.h: Ditto.
6798 * target-memory.c: Ditto.
6799 * terminal.h: Ditto.
6802 * tracepoint.c: Ditto.
6803 * tracepoint.h: Ditto.
6804 * trad-frame.h: Ditto.
6805 * typeprint.c: Ditto.
6807 2011-01-11 Michael Snyder <msnyder@vmware.com>
6809 * ui-file.c: Comment cleanup, mostly periods and spaces.
6814 * v850-tdep.c: Ditto.
6815 * valarith.c: Ditto.
6817 * valprint.c: Ditto.
6818 * valprint.h: Ditto.
6823 * vax-tdep.c: Ditto.
6827 * windows-nat.c: Ditto.
6828 * windows-tdep.c: Ditto.
6829 * xcoffread.c: Ditto.
6830 * xcoffsolib.c: Ditto.
6831 * xml-support.c: Ditto.
6832 * xstormy16-tdep.c: Ditto.
6833 * xtensa-tdep.c: Ditto.
6834 * xtensa-tdep.h: Ditto.
6836 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6838 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6839 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6841 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6842 Thiago Jung Bauermann <bauerman@br.ibm.com>
6844 Implement support for PowerPC BookE ranged watchpoints.
6846 (struct breakpoint_ops) <resources_needed>: New method.
6847 Initialize to NULL in all existing breakpoint_ops instances.
6848 (struct breakpoint) <exact>: New field.
6849 (target_exact_watchpoints): Declare external global.
6850 * breakpoint.c (target_exact_watchpoints): New global flag.
6851 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6852 b->enable_state to bp_enabled before calling
6853 hw_watchpoint_used_count.
6854 (hw_watchpoint_used_count): Iterate over all bp_locations in a
6855 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
6857 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6858 if the watchpoint is exact.
6859 (resources_needed_watchpoint): New function.
6860 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6861 (watch_command_1): Set b->exact if the user asked for an exact
6862 watchpoint and one can be set.
6863 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6864 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6865 the user asks for an exact watchpoint and one can be set. Return
6866 number of needed debug registers to watch the expression.
6867 * gdbtypes.c (is_scalar_type): New function, based on
6868 valprint.c:scalar_type_p.
6869 (is_scalar_type_recursive): New function.
6870 * gdbtypes.h (is_scalar_type_recursive): Declare.
6871 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6872 handle regions when ranged watchpoints are available.
6873 (create_watchpoint_request): New function.
6874 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6875 create_watchpoint_request.
6876 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6877 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6878 `set powerpc' and `show powerpc' commands.
6879 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6880 Mention documentation comment in the target macro.
6881 (target_region_ok_for_hw_watchpoint): Document return value.
6883 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6885 * breakpoint.c (update_watchpoint): Decide on using a software or
6886 hardware watchpoint after the bp_locations are created.
6888 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6890 Convert hardware watchpoints to use breakpoint_ops.
6891 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6892 <insert_location>: ... this. Return int instead of void.
6893 Accept pointer to struct bp_location instead of pointer to
6894 struct breakpoint. Adapt all implementations.
6895 (breakpoint_ops) <remove>: Rename to...
6896 <remove_location>: ... this. Accept pointer to struct bp_location
6897 instead of pointer to struct breakpoint. Adapt all implementations.
6898 * breakpoint.c (insert_catchpoint): Delete function.
6899 (insert_bp_location): Call the watchpoint or catchpoint's
6900 breakpoint_ops.insert method.
6901 (remove_breakpoint_1): Call the watchpoint or catchpoint's
6902 breakpoint_ops.remove method.
6903 (insert_watchpoint, remove_watchpoint): New functions.
6904 (watchpoint_breakpoint_ops): New structure.
6905 (watch_command_1): Initialize the OPS field.
6906 * inf-child.c (inf_child_insert_fork_catchpoint)
6907 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
6908 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
6909 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
6911 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
6912 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
6913 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
6914 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
6915 * target.c (update_current_target): Change default implementation of
6916 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
6917 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
6918 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
6919 to_set_syscall_catchpoint to return_one.
6920 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
6921 (debug_to_insert_exec_catchpoint): Report return value.
6922 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
6923 (to_insert_exec_catchpoint): Change declaration to return int instead
6926 2011-01-11 Michael Snyder <msnyder@vmware.com>
6928 * arm-tdep.c: Internationalization.
6931 * fork-child.c: Ditto.
6932 * nto-procfs.c: Ditto.
6933 * ppc-sysv-tdep.c: Ditto.
6935 * remote-mips.c: Ditto.
6937 * rs6000-nat.c: Ditto.
6938 * rs6000-tdep.c: Ditto.
6942 * xml-support.c: Ditto.
6943 * mi/mi-cmd-break.c: Ditto.
6944 * mi/mi-cmd-var.c: Ditto.
6945 * mi/mi-interp.c: Ditto.
6946 * mi/mi-main.c: Ditto.
6948 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
6950 * remote-sim.c (gdbsim_store_register): Update API to
6951 sim_store_register to check more error conditions.
6953 2011-01-10 Michael Snyder <msnyder@vmware.com>
6955 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
6956 * nto-tdep.c: Ditto.
6957 * nto-tdep.h: Ditto.
6958 * objc-exp.y: Ditto.
6959 * objc-lang.c: Ditto.
6960 * objfiles.c: Ditto.
6961 * objfiles.h: Ditto.
6962 * observer.c: Ditto.
6963 * opencl-lang.c: Ditto.
6966 * parser-defs.h: Ditto.
6969 * posix-hdep.c: Ditto.
6970 * ppcbug-rom.c: Ditto.
6971 * ppc-linux-nat.c: Ditto.
6972 * ppc-linux-tdep.c: Ditto.
6973 * ppc-linux-tdep.h: Ditto.
6974 * ppcnbsd-tdep.c: Ditto.
6975 * ppcobsd-tdep.c: Ditto.
6976 * ppcobsd-tdep.h: Ditto.
6977 * ppc-sysv-tdep.c: Ditto.
6978 * ppc-tdep.h: Ditto.
6979 * printcmd.c: Ditto.
6980 * proc-abi.c: Ditto.
6981 * proc-flags.c: Ditto.
6983 * proc-utils.h: Ditto.
6984 * progspace.h: Ditto.
6985 * prologue-value.c: Ditto.
6986 * prologue-value.h: Ditto.
6987 * psympriv.h: Ditto.
6989 * p-typeprint.c: Ditto.
6990 * p-valprint.c: Ditto.
6991 * ravenscar-sparc-thread.c: Ditto.
6992 * ravenscar-thread.c: Ditto.
6993 * ravenscar-thread.h: Ditto.
6995 * regcache.c: Ditto.
6996 * regcache.h: Ditto.
6998 * remote-fileio.c: Ditto.
6999 * remote-fileio.h: Ditto.
7001 * remote-m32r-sdi.c: Ditto.
7002 * remote-mips.c: Ditto.
7003 * remote-sim.c: Ditto.
7004 * rs6000-aix-tdep.c: Ditto.
7005 * rs6000-nat.c: Ditto.
7006 * rs6000-tdep.c: Ditto.
7008 2011-01-10 Michael Snyder <msnyder@vmware.com>
7010 * charset.c (validate): Internationalization.
7011 * coffread.c (read_one_sym): Ditto.
7012 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
7013 * h8300-tdep.c (H8300_extract_return_value): Ditto.
7014 * inflow.c (new_tty): Ditto.
7015 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
7016 * m32c-tdep.c (m32c_return_value): Ditto.
7017 * mep-tdep.c (mep_store_return_value): Ditto.
7018 * score-tdep.c (score7_fetch_insn): Ditto.
7019 * ser-mingw.c (pipe_windows_open): Ditto.
7020 * sh64-tdep.c (sh64_extract_return_value): Ditto.
7021 * spu-tdep.c (spu_register_type): Ditto.
7022 * tracepoint.c (trace_find_command): Ditto.
7023 * valarith.c (value_pos): Ditto.
7025 2011-01-10 Joel Brobecker <brobecker@adacore.com>
7027 * ada-valprint.c (printstr): Minor comment reformatting.
7029 2011-01-08 Michael Snyder <msnyder@vmware.com>
7031 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
7034 2011-01-08 Michael Snyder <msnyder@vmware.com>
7036 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
7037 * hppa-hpux-tdep.c: Ditto.
7038 * hppa-linux-nat.c: Ditto.
7039 * hppa-linux-tdep.c: Ditto.
7040 * hppanbsd-tdep.c: Ditto.
7041 * hppa-tdep.c: Ditto.
7042 * hppa-tdep.h: Ditto.
7043 * hpux-thread.c: Ditto.
7044 * i386-cygwin-tdep.c: Ditto.
7045 * i386-darwin-nat.c: Ditto.
7046 * i386gnu-nat.c: Ditto.
7047 * i386-linux-nat.c: Ditto.
7048 * i386-linux-tdep.c: Ditto.
7049 * i386-nat.c: Ditto.
7050 * i386-nat.h: Ditto.
7051 * i386nbsd-tdep.c: Ditto.
7052 * i386-sol2-nat.c: Ditto.
7053 * i386-stub.c: Ditto.
7054 * i386-tdep.c: Ditto.
7055 * i386-tdep.h: Ditto.
7056 * i387-tdep.c: Ditto.
7057 * ia64-linux-nat.c: Ditto.
7058 * ia64-linux-tdep.c: Ditto.
7059 * ia64-tdep.c: Ditto.
7063 * inferior.c: Ditto.
7064 * inferior.h: Ditto.
7070 * iq2000-tdep.c: Ditto.
7071 * irix5-nat.c: Ditto.
7077 * jv-typeprint.c: Ditto.
7078 * jv-valprint.c: Ditto.
7079 * language.c: Ditto.
7080 * language.h: Ditto.
7081 * linespec.c: Ditto.
7082 * linux-fork.c: Ditto.
7083 * linux-nat.c: Ditto.
7084 * linux-thread-db.c: Ditto.
7085 * lm32-tdep.c: Ditto.
7087 2011-01-08 Michael Snyder <msnyder@vmware.com>
7089 * m2-exp.y: Comment cleanup, mostly periods and spaces.
7091 * m2-typeprint.c: Ditto.
7092 * m2-valprint.c: Ditto.
7093 * m32c-tdep.c: Ditto.
7094 * m32r-linux-nat.c: Ditto.
7095 * m32r-rom.c: Ditto.
7096 * m32r-tdep.c: Ditto.
7097 * m32r-tdep.h: Ditto.
7098 * m68hc11-tdep.c: Ditto.
7099 * m58klinux-nat.c: Ditto.
7100 * m68k-tdep.c: Ditto.
7101 * m88k-tdep.c: Ditto.
7102 * m88k-tdep.h: Ditto.
7103 * machoread.c: Ditto.
7104 * macrocmd.c: Ditto.
7105 * macroexp.c: Ditto.
7106 * macrotab.c: Ditto.
7109 * mdebugread.c: Ditto.
7110 * mdebugread.h: Ditto.
7113 * memory-map.h: Ditto.
7114 * mep-tdep.c: Ditto.
7115 * microblaze-rom.c: Ditto.
7116 * microblaze-tdep.c: Ditto.
7118 * mips-irix-tdep.c: Ditto.
7119 * mips-linux-nat.c: Ditto.
7120 * mips-linux-tdep.c: Ditto.
7121 * mips-linux-tdep.h: Ditto.
7122 * mipsnbsd-nat.c: Ditto.
7123 * mipsnbsd-tdep.c: Ditto.
7124 * mipsread.c: Ditto.
7125 * mips-tdep.c: Ditto.
7126 * mips-tdep.h: Ditto.
7127 * mn10300-linux-tdep.c: Ditto.
7128 * mn10300-tdep.c: Ditto.
7129 * mn10300-tdep.h: Ditto.
7132 * moxie-tdep.c: Ditto.
7133 * moxie-tdep.h: Ditto.
7136 2011-01-08 Mike Frysinger <vapier@gentoo.org>
7138 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
7140 2011-01-08 Robert Millan <rmh@gnu.org>
7142 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
7144 2011-01-07 Michael Snyder <msnyder@vmware.com>
7146 * charset.c (_initialize_charset): Fix typo in string.
7148 2011-01-07 Michael Snyder <msnyder@vmware.com>
7150 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
7152 * tui/tui-layout.c (tui_set_layout_for_display_command):
7153 Split line so that operator goes to beginning of line.
7154 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
7155 assignment out of if statement.
7157 2011-01-07 Michael Snyder <msnyder@vmware.com>
7159 * ada-lang.c: Comment cleanup, mostly periods and spaces.
7160 * ada-lang.h: Ditto.
7161 * ada-tasks.c: Ditto.
7162 * ada-valprint.c: Ditto.
7163 * aix-threads.c: Ditto.
7164 * alpha-linux-nat.c: Ditto.
7165 * alpha-linux-tdep.c: Ditto.
7166 * alpha-mdebug-tdep.c: Ditto.
7167 * alpha-nat.c: Ditto.
7168 * alpha-osf1-tdep.c: Ditto.
7169 * alpha-tdep.c: Ditto.
7170 * alphabsd-nat.c: Ditto.
7171 * alphabsd-tdep.c: Ditto.
7172 * amd64-darwin-tdep.c: Ditto.
7173 * amd64-linux-nat.c: Ditto.
7174 * amd64-linux-tdep.c: Ditto.
7175 * amd64-sol2-tdep.c: Ditto.
7176 * amd64-tdep.c: Ditto.
7177 * amd64-fbsd-tdep.c: Ditto.
7178 * amd64-nbsd-tdep.c: Ditto.
7179 * amd64-obsd-tdep.c: Ditto.
7180 * amd64-linux-nat.c: Ditto.
7181 * amd64-linux-tdep.c: Ditto.
7182 * arm-tdep.c: Ditto.
7183 * arm-tdep.h: Ditto.
7184 * armnbsd-nat.c: Ditto.
7185 * avr-tdep.c: Ditto.
7186 * bfin-tdep.c: Ditto.
7188 * c-typeprintc: Ditto.
7189 * c-valprint.c: Ditto.
7190 * coff-pe-read.h: Ditto.
7191 * coffreead.c: Ditto.
7192 * cris-tdep.c: Ditto.
7194 * darwin-nat-info.c: Ditto.
7195 * darwin-nat.c: Ditto.
7196 * dbug-rom.c: Ditto.
7200 * dec-thread.c: Ditto.
7202 * demangle.c: Ditto.
7203 * dicos-tdep.c: Ditto.
7204 * dictionary.c: Ditto.
7205 * dictionary.h: Ditto.
7206 * dink32-rom.c: Ditto.
7208 * doublest.c: Ditto.
7210 * dummy-frame.c: Ditto.
7211 * dwarf2-frame.c: Ditto.
7212 * dwarf2expr.c: Ditto.
7213 * dwarf2loc.c: Ditto.
7214 * dwarf2read.c: Ditto.
7218 * event-top.h: Ditto.
7219 * exceptions.c: Ditto.
7220 * exceptions.h: Ditto.
7222 * expprint.c: Ditto.
7223 * expression.h: Ditto.
7227 * f-typeprint.c: Ditto.
7228 * f-valprint.c: Ditto.
7229 * fbsd-nat.c: Ditto.
7231 * fork-child.c: Ditto.
7234 * frv-linux-tdep.c: Ditto.
7235 * frv-tdep.c: Ditto.
7237 * gdb-stabs.h: Ditto.
7238 * gdb_assert.h: Ditto.
7239 * gdb_string.h: Ditto.
7240 * gdb_thread_db.h: Ditto.
7241 * gdb_wait.h: Ditto.
7242 * gdbarch.sh: Ditto.
7244 * gdbthread.h: Ditto.
7245 * gdbtypes.c: Ditto.
7246 * gdbtypes.h: Ditto.
7249 * gnu-v2-abi.c: Ditto.
7250 * gnu-v3-abi.c: Ditto.
7251 * go32-nat.c: Ditto.
7252 * gdbarch.c: Regenerate.
7253 * gdbarch.h: Regenerate.
7255 2011-01-07 Michael Snyder <msnyder@vmware.com>
7257 * ax-gdb.c: Adjust some long output strings.
7258 * breakpoint.c: Ditto.
7263 * linux-nat.c: Ditto.
7264 * solib-pa64.c: Ditto.
7265 * solib-som.c: Ditto.
7267 2011-01-06 Tom Tromey <tromey@redhat.com>
7271 * python/python.c (GdbMethods): Add "newest_frame" method.
7272 * python/python-internal.h (gdbpy_newest_frame): Declare.
7273 * python/py-frame.c (gdbpy_newest_frame): New function.
7275 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
7277 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
7278 * jit.c (jit_debug): New variable.
7279 (show_jit_debug): New function.
7280 (struct target_buffer): Use ULONGEST.
7281 (bfd_open_from_target_memory): Likewise.
7282 (jit_register_code, jit_inferior_init): Add debug output.
7283 (_initialize_jit): Register "debug jit" command.
7285 2011-01-06 Tom Tromey <tromey@redhat.com>
7287 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
7288 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
7291 2011-01-06 Tom Tromey <tromey@redhat.com>
7293 * python/py-frame.c (frapy_block): Use get_frame_block.
7295 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7297 Do not stop on SIGPRIO signals by default
7298 * infrun.c (_initialize_infrun): Unset signal_stop and
7299 signal_print for TARGET_SIGNAL_PRIO.
7301 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7303 * ada-tasks.c: Fix style violation in comment.
7305 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7307 * linespec.c (decode_compound, find_method): Remove trailing \n
7308 at end of error string.
7309 * solib-irix.c (irix_current_sos): Likewise.
7310 * varobj.c (uninstall_variable): Likewise.
7312 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7314 * copyright.py: New script.
7315 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
7316 Launch emacs without exec'ing. Call copyright.py afterwards.
7318 2011-01-05 Michael Snyder <msnyder@vmware.com>
7320 * addrmap.c: Shorten lines of >= 80 columns.
7321 * arch-utils.c: Ditto.
7322 * arch-utils.h: Ditto.
7324 * ax-general.c: Ditto.
7326 * blockframe.c: Ditto.
7327 * breakpoint.c: Ditto.
7328 * buildsym.c: Ditto.
7330 * c-typeprint.c: Ditto.
7332 * coffread.c: Ditto.
7336 * cp-namespace.c: Ditto.
7337 * cp-support.c: Ditto.
7338 * dbug-rom.c: Ditto.
7343 * dictionary.c: Ditto.
7345 * doublest.c: Ditto.
7346 * dwarf2-frame.c: Ditto.
7347 * dwarf2expr.c: Ditto.
7348 * dwarf2loc.c: Ditto.
7349 * dwarf2read.c: Ditto.
7352 * event-loop.c: Ditto.
7353 * event-loop.h: Ditto.
7354 * exceptions.h: Ditto.
7356 * expprint.c: Ditto.
7357 * expression.h: Ditto.
7359 * f-valprint.c: Ditto.
7361 * frame-base.c: Ditto.
7362 * frame-unwind.c: Ditto.
7363 * frame-unwind.h: Ditto.
7367 * gdb-stabs.h: Ditto.
7368 * gdb_assert.h: Ditto.
7369 * gdb_dirent.h: Ditto.
7370 * gdb_obstack.h: Ditto.
7372 * gdbtypes.c: Ditto.
7373 * gdbtypes.h: Ditto.
7374 * inf-ttrace.c: Ditto.
7379 * inline-frame.h: Ditto.
7380 * language.c: Ditto.
7381 * language.h: Ditto.
7382 * libunwind-frame.c: Ditto.
7383 * libunwind-frame.h: Ditto.
7384 * linespec.c: Ditto.
7385 * linux-nat.c: Ditto.
7386 * linux-nat.h: Ditto.
7387 * linux-thread-db.c: Ditto.
7388 * machoread.c: Ditto.
7389 * macroexp.c: Ditto.
7390 * macrotab.c: Ditto.
7393 * mdebugread.c: Ditto.
7398 * objfiles.c: Ditto.
7399 * objfiles.h: Ditto.
7401 * p-typeprint.c: Ditto.
7402 * p-valprint.c: Ditto.
7404 * printcmd.c: Ditto.
7405 * proc-events.c: Ditto.
7407 * progspace.c: Ditto.
7408 * progspace.h: Ditto.
7409 * psympriv.h: Ditto.
7412 * regcache.c: Ditto.
7413 * regcache.h: Ditto.
7414 * remote-fileio.c: Ditto.
7416 * ser-mingw.c: Ditto.
7418 * ser-unix.c: Ditto.
7421 * solib-frv.c: Ditto.
7422 * solib-irix.c: Ditto.
7423 * solib-osf.c: Ditto.
7424 * solib-pa64.c: Ditto.
7425 * solib-som.c: Ditto.
7426 * solib-sunos.c: Ditto.
7427 * solib-svr4.c: Ditto.
7428 * solib-target.c: Ditto.
7432 * stabsread.c: Ditto.
7433 * stabsread.c: Ditto.
7436 * symfile-mem.c: Ditto.
7442 * target-descriptions.c: Ditto.
7443 * target-memory.c: Ditto.
7446 * terminal.h: Ditto.
7449 * tracepoint.c: Ditto.
7450 * tracepoint.h: Ditto.
7454 * user-regs.c: Ditto.
7455 * user-regs.h: Ditto.
7457 * valarith.c: Ditto.
7459 * valprint.c: Ditto.
7460 * valprint.h: Ditto.
7465 * xcoffread.c: Ditto.
7466 * xcoffsolib.c: Ditto.
7467 * xcoffsolib.h: Ditto.
7468 * xml-syscall.c: Ditto.
7469 * xml-tdesc.c: Ditto.
7471 2011-01-05 Michael Snyder <msnyder@vmware.com>
7473 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
7474 * cli/cli-decode.c: Ditto.
7475 * cli/cli-dump.c: Ditto.
7476 * cli/cli-logging.c: Ditto.
7477 * cli/cli-script.c: Ditto.
7478 * cli/cli-setshow.c: Ditto.
7479 * common/signals.c: Ditto.
7480 * mi/mi-cmd-break.c: Ditto.
7481 * mi/mi-cmd-disas.c: Ditto.
7482 * mi/mi-cmd-stack.c: Ditto.
7483 * mi/mi-cmd-var.c: Ditto.
7484 * mi/mi-cmds.c: Ditto.
7485 * mi/mi-common.h: Ditto.
7486 * mi/mi-console.c: Ditto.
7487 * mi/mi-interp.c: Ditto.
7488 * mi/mi-main.c: Ditto.
7489 * osf-share/cma_attr.c: Ditto.
7490 * osf-share/cma_deb_core.h: Ditto.
7491 * osf-share/cma_debug_client.h: Ditto.
7492 * osf-share/cma_handle.h: Ditto.
7493 * osf-share/cma_mutex.h: Ditto.
7494 * osf-share/cma_stack_int.h: Ditto.
7495 * osf-share/cma_tcb_defs.h: Ditto.
7496 * python/py-auto-load.c: Ditto.
7497 * python/py-breakpoint.c: Ditto.
7498 * python/py-cmd.c: Ditto.
7499 * python/py-frame.c: Ditto.
7500 * python/py-objfile.c: Ditto.
7501 * python/py-param.c: Ditto.
7502 * python/py-progspace.c: Ditto.
7503 * python/py-symbol.c: Ditto.
7504 * python/py-value.c: Ditto.
7505 * python/python-internal.h: Ditto.
7506 * python/python.c: Ditto.
7507 * tui/tui-data.c: Ditto.
7508 * tui/tui-disasm.c: Ditto.
7509 * tui/tui-hooks.c: Ditto.
7510 * tui/tui-io.c: Ditto.
7511 * tui/tui-layout.c: Ditto.
7512 * tui/tui-regs.c: Ditto.
7513 * tui/tui-source.c: Ditto.
7514 * tui/tui-stack.c: Ditto.
7515 * tui/tui-win.c: Ditto.
7516 * tui/tui-windata.c: Ditto.
7517 * tui/tui-winsource.c: Ditto.
7519 2011-01-05 Joel Brobecker <brobecker@adacore.com>
7521 * configure.ac, gdb.1: Copyright year update.
7523 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7525 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
7526 this_pc_in_block, morestack_msym and morestack_name. Check for
7527 "__morestack" minimal symbol there.
7529 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7531 * symfile.c (find_sym_fns): Add call to dont_repeat.
7533 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7535 Copyright year update in most files (performed by copyright.sh).
7537 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7539 * top.c (print_gdb_version): Update copyright year in version output.
7541 For older changes see ChangeLog-2010.
7547 version-control: never