1 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
6 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
9 * python/python.c: Set gdbpy_should_print_stack default to off.
10 (set_python): Deprecate maint set python print-stack to
12 (_initialize_python): Deprecate maint set/show python print-stack.
13 Add new prefix command, python. Add new setting, print-backtrace.
14 * NEWS: Document set python print-stack. Document default change.
16 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
18 * python/py-inferior.c (infpy_dealloc): New function.
19 (inferior_to_inferior_object): Return a new object, or a
20 new reference to the existing object.
21 (find_thread_object): Cleanup references to inferior.
22 (delete_thread_object): Ditto.
23 * python/py-infthread.c (create_thread_object): Do not increment
24 inferior reference count.
26 2011-07-08 Tom Tromey <tromey@redhat.com>
28 * dwarf2loc.c (locexpr_regname): New function.
29 (locexpr_describe_location_piece): Use it.
30 (disassemble_dwarf_expression): Add per_cu argument. Use
32 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
33 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
35 (locexpr_describe_location_1): Add per_cu argument.
36 (locexpr_describe_location): Update.
37 (loclist_describe_location): Update.
39 2011-07-08 Tom Tromey <tromey@redhat.com>
41 * dwarf2expr.c (execute_stack_op): Add QUIT.
43 2011-07-07 Hui Zhu <teawater@gmail.com>
46 2011-07-06 Hui Zhu <teawater@gmail.com>
47 * remote.c (remote_start_remote): Add TRY_CATCH for
48 remote_get_trace_status.
49 * tracepoint.c (disconnect_tracing): Ditto.
51 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
53 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
54 variables as signed, not unsigned.
56 2011-07-06 Joel Brobecker <brobecker@adacore.com>
58 * jit.c (jit_inferior_init): Reformat forward declaration.
60 2011-07-06 Matt Rice <ratmice@gmail.com>
62 * MAINTAINERS (Write After Approval): Add myself to the list.
64 2011-07-06 Hui Zhu <teawater@gmail.com>
66 * remote.c (remote_start_remote): Add TRY_CATCH for
67 remote_get_trace_status.
68 * tracepoint.c (disconnect_tracing): Ditto.
70 2011-07-05 Tom Tromey <tromey@redhat.com>
72 * symtab.c (operator_chars): Now static.
73 * linespec.c (operator_chars): Don't declare.
75 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
77 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
79 2011-07-05 Tom Tromey <tromey@redhat.com>
81 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
82 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
83 (TYPE_CPLUS_REALLY_JAVA): New macro.
84 * dwarf2read.c (process_structure_scope): Set
85 TYPE_CPLUS_REALLY_JAVA.
87 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
89 * ada-lang.c: Fix typos.
90 * amd64-tdep.c: Likewise.
91 * breakpoint.c: Likewise.
92 * cli/cli-decode.c: Likewise.
93 * findcmd.c: Likewise.
94 * inline-frame.c: Likewise.
95 * mi/mi-main.c: Likewise.
96 * minsyms.c: Likewise.
97 * monitor.c: Likewise.
98 * monitor.h: Likewise.
99 * prologue-value.c: Likewise.
100 * reverse.c: Likewise.
101 * s390-tdep.c: Likewise.
103 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
105 * jit.c (jit_inferior_init): Forward declare.
106 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
108 2011-07-04 Joel Brobecker <brobecker@adacore.com>
110 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
112 2011-07-04 Tristan Gingold <gingold@adacore.com>
114 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
115 (tcb_fieldno): Add activation_link field.
116 (get_known_tasks_addr): Moved and rewritten.
117 (get_tcb_types_info): Set activation_link field.
118 (read_known_tasks_array): Add parameter. Rewritten.
119 (read_known_tasks_list): New function.
120 (read_known_tasks): New function.
121 (ada_build_task_list): Call read_known_tasks instead of
122 read_known_tasks_array.
123 * ravenscar-thread.c: Add first_task_name constant.
124 (has_ravenscar_runtime): Check for task list too.
126 2011-07-04 Tristan Gingold <gingold@adacore.com>
128 * ada-tasks.c: Renames fieldno to actb_fieldno.
129 (ada_get_task_number): Indentation.
130 (get_tcb_types_info): Remove all parameters. Write directly
132 (ptid_from_atcb_common): Adjust.
135 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
137 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
139 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
141 * ui-out.c (ui_out_field_core_addr): Mention that the function
142 description is in the header file.
143 * ui-out.h (ui_out_field_core_addr): Document function.
145 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
147 * ui-out.c (ui_out_get_field_separator): Remove unused function.
148 * ui-out.h (ui_out_get_field_separator): Remove prototype.
150 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
152 * symtab.c (expand_line_sal): Remove empty line.
154 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
156 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
157 same way as ELFOSABI_NONE.
158 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
160 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
162 * breakpoint.c: Fix typos in comments.
163 * linespec.c: Likewise.
164 * symtab.c: Likewise.
166 2011-07-04 Joel Brobecker <brobecker@adacore.com>
168 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
169 section in separate object files.
171 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
173 Fix false GCC warning.
174 * linespec.c (decode_line_1): Initialize values.
176 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
178 * linespec.c (find_method): Accept the function type automatically only
179 if it was specified with parameter types.
181 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
183 Stop on first linespec terminator instead of eating what we can.
184 * linespec.c (is_linespec_boundary): New function.
185 (name_end): Remove function.
186 (keep_name_info): New parameter on_boundary, replace the body.
187 (decode_line_1): Provide the parameter to keep_name_info.
188 (decode_compound): Likewise. Drop the trailing java return type
191 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
193 Fall back linespec to minimal symbols.
194 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
195 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
196 (find_method, symbol_found): Change error to cplusplus_error.
198 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
200 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
202 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
203 Tom Tromey <tromey@redhat.com>
205 * dwarf2read.c (check_physname): New variable.
206 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
207 (show_check_physname): New function.
208 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
210 2011-07-01 Joel Brobecker <brobecker@adacore.com>
212 * machoread.c (macho_symfile_read): Delete OBE comment.
214 2011-07-01 Joel Brobecker <brobecker@adacore.com>
216 * machoread.c (struct macho_oso_data): Delete.
217 (current_oso): Delete.
218 (macho_relocate_common_syms): New function, mostly extracted
220 (macho_add_oso_symfile): Call macho_relocate_common_syms.
221 Remove code that sets and unset current_oso.
222 (macho_symfile_relocate): Delete handling of common symbols,
223 now moved to macho_relocate_common_syms.
225 2011-07-01 Joel Brobecker <brobecker@adacore.com>
227 * darwin-nat.c (darwin_ptrace): Add documentation.
228 Set errno to zero before calling ptrace. If ptrace returns
229 -1 and errno is zero, then change then return zero.
230 (darwin_kill_inferior): Issue a warning instead of triggering
231 a failed assertion when the PT_KILL ptrace operations returned
234 2011-07-01 Joel Brobecker <brobecker@adacore.com>
236 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
237 only when inf->private->no_ptrace.
239 2011-07-01 Joel Brobecker <brobecker@adacore.com>
241 * ada-lang.c (print_it_exception): Print temporary catchpoints
242 as "Temporary catchpoint".
243 (print_mention_exception): Likewise.
245 2011-07-01 Tom Tromey <tromey@redhat.com>
247 * jv-lang.c (java_language_defn): Use java_printchar,
249 (java_get_encoding): New function.
250 (java_emit_char): Use generic_emit_char.
251 (java_printchar): New function.
252 (java_printstr): Likewise.
254 2011-07-01 Joel Brobecker <brobecker@adacore.com>
256 * ada-typeprint.c (print_record_type): If unable to decode
257 the name of the parent type, use the encoded name.
259 2011-07-01 Jean-Charles Delay <delay@adacore.com>
261 * ada-typeprint.c (ada_print_type): Fix both PAD type and
262 pointer to constrained packed array type output.
263 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
266 2011-07-01 Jean-Charles Delay <delay@adacore.com>
268 * ada-typeprint.c (print_array_type): removed if condition on show
269 being negative for bounds printing.
271 2011-07-01 Joel Brobecker <brobecker@adacore.com>
273 * ada-lang.c (ada_identical_enum_types_p): New function.
274 (symbols_are_identical_enums): New function.
275 (remove_extra_symbols): Do nothing if NSYMS < 2.
276 Use symbols_are_identical_enums.
278 2011-07-01 Joel Brobecker <brobecker@adacore.com>
280 * ada-valprint.c (ada_value_print): Handle typedefs.
282 2011-07-01 Joel Brobecker <brobecker@adacore.com>
284 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
286 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
288 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
289 (decode_constrained_packed_array): Likewise.
290 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
292 2011-07-01 Joel Brobecker <brobecker@adacore.com>
294 * ada-exp.y (convert_char_literal): Handle typedef types.
296 2011-07-01 Joel Brobecker <brobecker@adacore.com>
298 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
300 2011-06-30 Tom Tromey <tromey@redhat.com>
302 * varobj.c (varobj_create): Call do_cleanups on early exit path.
303 * valops.c (find_overload_match): Call do_cleanups on early exit
305 * solib.c (solib_find): Call do_cleanups on early exit path.
307 2011-06-30 Tom Tromey <tromey@redhat.com>
309 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
310 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
311 return paths. Defer final do_cleanups until last return.
312 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
315 2011-06-30 Tom Tromey <tromey@redhat.com>
317 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
319 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
321 * MAINTAINERS (Write After Approval): Add myself to the list.
323 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
325 Disable epilogue unwinders on recent GCCs.
326 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
327 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
328 * dwarf2read.c (process_full_comp_unit): Initialize
329 EPILOGUE_UNWIND_VALID.
330 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
331 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
332 * symtab.h (struct symtab): New field epilogue_unwind_valid.
334 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
336 Code cleanup - reformatting.
337 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
338 (producer_is_gcc_ge_4): ... here, change the return value.
339 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
342 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
344 Fix non-only rename list for Fortran modules import.
345 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
346 cp_add_using_directive caller.
347 (cp_add_using_directive): New parameter excludes, describe it. New
348 variables ix and param. Compare if also excludes match. Allocate NEW
349 with variable size, initialize EXCLUDES there.
350 (cp_lookup_symbol_imports): New variable excludep, test
351 current->EXCLUDES with it.
352 * cp-support.h: Include vec.h.
353 (struct using_direct): New field excludes, describe it.
354 (DEF_VEC_P (const_char_ptr)): New.
355 (cp_add_using_directive): New parameter excludes.
356 * defs.h (const_char_ptr): New typedef.
357 * dwarf2read.c (read_import_statement): New variables child_die,
358 excludes and cleanups, read in excludes.
359 (read_namespace): Adjust the cp_add_using_directive caller.
361 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
364 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
365 negative comparisons.
367 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
369 * mi/mi-main.c (mi_cmd_list_features): Emit
370 breakpoint-notifications.
372 2011-06-29 Tom Tromey <tromey@redhat.com>
375 * valprint.h (generic_emit_char, generic_printstr): Declare.
376 * valprint.c (wchar_printable, append_string_as_wide)
377 (print_wchar): Move from c-lang.c.
378 (generic_emit_char): New function; mostly taken from c_emit_char.
379 (generic_printstr): New function; mostly taken from c_printstr.
380 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
381 represented as arrays.
382 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
384 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
385 identically to TYPE_CODE_INT.
386 * f-lang.c (f_get_encoding): New function.
387 (f_emit_char): Use generic_emit_char.
388 (f_printchar): Replace comment.
389 (f_printstr): Use generic_printstr.
390 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
391 "character" types specially.
392 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
394 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
396 (c_emit_char): Call generic_emit_char.
397 (c_printstr): Call generic_printstr.
399 2011-06-29 Gary Benson <gbenson@redhat.com>
401 * breakpoint.c (bpstat_what): Removed duplicated case.
403 2011-06-28 Tom Tromey <tromey@redhat.com>
405 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
407 2011-06-27 Tom Tromey <tromey@redhat.com>
409 * valops.c (find_overload_match): Call do_cleanups before early
411 * top.c (execute_command): Call do_cleanups before early return.
412 (command_loop): Likewise.
413 * stack.c (backtrace_command): Make a null cleanup early. Don't
414 conditionally call do_cleanups.
415 * python/py-value.c (TRY_CATCH): Move cleanup handling into
417 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
418 so cleanups are always run.
419 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
420 * findcmd.c (parse_find_args): Call do_cleanups on early return
422 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
423 Don't conditionally call do_cleanups.
424 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
427 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
429 * MAINTAINERS (Write After Approval): Use default email address.
431 2011-06-27 Joel Brobecker <brobecker@adacore.com>
433 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
435 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
437 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
438 saved_regs_mask and copied_regs_mask fields.
439 (sparc_record_save_insn): New prototype.
440 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
441 (sparc_record_save_insn): New function.
442 (sparc_analyze_prologue): Add head comment. Recognize store insns
443 of call-saved registers. Use OFFSET consistently. Recognize flat
444 frames and cache their settings.
445 (sparc32_skip_prologue): Handle flat frames.
446 (sparc_frame_cache): Add frame_offset to the base address.
447 (sparc32_frame_cache): Adjust to new frame description.
448 (sparc32_frame_prev_register): Likewise.
449 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
450 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
451 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
452 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
453 frame by calling sparc_record_save_insn.
454 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
455 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
456 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
458 2011-06-27 Tristan Gingold <gingold@adacore.com>
460 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
461 field by map_addr and map_len.
462 (dwarf2_read_section): Adjust for the new bfd_mmap api.
463 (munmap_section_buffer): Likewise.
465 2011-06-24 Tom Tromey <tromey@redhat.com>
467 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
468 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
469 * python/python.c (gdbpy_parameter): Make 'arg' const.
470 (execute_gdb_command): Likewise.
471 (gdbpy_decode_line): Likewise. Copy it.
472 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
473 (gdbpy_write): Make 'arg' const.
474 * python/py-type.c (typy_lookup_typename): Make 'type_name'
476 (gdbpy_lookup_type): Likewise.
477 * python/py-prettyprint.c (print_children): Make 'name' const.
478 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
479 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
481 * python/py-function.c (fnpy_init): Make 'name' const.
482 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
483 (gdbpy_string_to_argv): Make 'input' const.
484 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
486 * gdbtypes.h (lookup_typename): Update.
487 * gdbtypes.c (lookup_typename): Make 'name' const.
488 (lookup_struct): Likewise.
489 (lookup_union): Likewise.
490 (lookup_enum): Likewise.
492 2011-06-24 Tom Tromey <tromey@redhat.com>
494 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
495 gdb_thread_db.h. Move all common/ entries to be together.
496 (TAGS): Don't depend on DEPFILES.
498 2011-06-23 Yao Qi <yao@codesourcery.com>
500 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
501 * remote.c (remote_start_remote): ... here.
502 * monitor.c (monitor_open): ... here.
504 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
506 * gdbtypes.c (append_composite_type_field_aligned): Fix
507 calculation of bit position based on alignment.
509 2011-06-22 Pedro Alves <pedro@codesourcery.com>
511 * breakpoint.c (bpstat_stop_status): Call the check_status
512 breakpoint_ops method.
513 (print_one_breakpoint_location): Also print the condition for Ada
514 exception catchpoints.
515 (allocate_bp_location): New, factored out from
516 allocate_bp_location.
517 (allocate_bp_location): Adjust. Call the owner breakpoint's
518 allocate_location method, if there is one.
519 (free_bp_location): Call the locations's dtor method, if there is
521 (init_raw_breakpoint_without_location): New breakpoint_ops
523 (set_raw_breakpoint_without_location): Adjust.
524 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
525 (set_raw_breakpoint): Adjust.
526 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
527 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
528 re_set and check_status methods.
529 (init_catchpoint): Don't memset, initialize thread, addr_string
530 and enable_state. Pass the ops down to init_raw_breakpoint.
531 (install_catchpoint): Rename to ...
532 (install_breakpoint): ... this, and make extern.
533 (create_fork_vfork_event_catchpoint): Adjust.
534 (catch_exec_breakpoint_ops): Install NULL allocate_location,
535 re_set and check_status methods.
536 (create_syscall_event_catchpoint): Adjust.
537 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
538 (masked_watchpoint_breakpoint_ops): Install NULL
539 allocate_location, re_set and check_status methods.
540 (catch_exec_command_1): Adjust.
541 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
542 re_set and check_status methods.
543 (create_ada_exception_breakpoint): Rename to ...
544 (init_ada_exception_breakpoint): ... this. Add a struct
545 breakpoint parameter, and delete the exp_string, cond_string and
546 cond parameters. Use init_raw_breakpoint, and don't install or
547 mention the breakpoint yet. Don't clear breakpoint fields that
548 init_raw_breakpoint already clears.
549 (re_set_breakpoint): Delete, split into ...
550 (breakpoint_re_set_default, prepare_re_set_context): ... these new
552 (breakpoint_re_set_one): Call the breakpoint's
553 breakpoint_ops->re_set implementation, if there's one. Adjust.
554 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
555 (struct bp_location_ops): New type.
556 (struct bp_location): New field `ops'.
557 (struct breakpoint_ops): New `allocate_location', `re_set' and
558 `check_status' fields. Make `breakpoint_hit''s description match
560 (init_bp_location): Declare.
561 (breakpoint_re_set_default): Declare.
562 (create_ada_exception_breakpoint): Rename to ...
563 (init_ada_exception_breakpoint): ... this. Add a struct
564 breakpoint parameter, and delete the exp_string, cond_string and
566 (install_breakpoint): Declare.
567 * ada-lang.c: Include exceptions.h.
568 <Ada exceptions description>: Update.
569 (struct ada_catchpoint_location): New type.
570 (ada_catchpoint_location_dtor): New function.
571 (ada_catchpoint_location_ops): New global.
572 (ada_catchpoint): New type.
573 (create_excep_cond_exprs): New function.
574 (dtor_exception, allocate_location_exception, re_set_exception)
575 (should_stop_exception, check_status_exception): New functions.
576 (print_one_exception, print_mention_exception)
577 (print_recreate_exception): Adjust.
578 (dtor_catch_exception, allocate_location_catch_exception)
579 (re_set_catch_exception, check_status_catch_exception): New
581 (catch_exception_breakpoint_ops): Install them.
582 (dtor_catch_exception_unhandled)
583 (allocate_location_catch_exception_unhandled)
584 (re_set_catch_exception_unhandled)
585 (check_status_catch_exception_unhandled): New functions.
586 (catch_exception_unhandled_breakpoint_ops): Install them.
587 (dtor_catch_assert, allocate_location_catch_assert)
588 (re_set_catch_assert, check_status_catch_assert): New functions.
589 (catch_assert_breakpoint_ops): Install them.
590 (ada_exception_catchpoint_p): Delete.
591 (catch_ada_exception_command_split)
592 (ada_exception_catchpoint_cond_string): Rename exp_string
593 parameter to excep_string. Adjust.
594 (ada_parse_catchpoint_condition): Delete.
595 (ada_exception_sal): Rename the exp_string parameter to
596 excep_string. Delete the cond_string and cond parameters.
598 (ada_decode_exception_location): Rename the exp_string parameter
599 to excep_string. Delete the cond_string and cond parameters.
601 (create_ada_exception_catchpoint): New function.
602 (catch_ada_exception_command, ada_decode_assert_location)
603 (catch_assert_command): Adjust.
604 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
606 2011-06-22 Pedro Alves <pedro@codesourcery.com>
608 * ada-lang.c: Include arch-utils.h.
609 (ada_decode_exception_location): Make static.
610 (catch_ada_exception_command): Moved here from breakpoint.c.
611 (ada_decode_assert_location): Make static.
612 (catch_assert_command): Moved here from breakpoint.c.
613 (_initialize_ada_lang): Install the exception and assert
614 catchpoint commands here.
615 * ada-lang.h (ada_decode_exception_location)
616 (ada_decode_assert_location): Delete declarations.
617 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
619 (create_ada_exception_breakpoint): Make extern.
620 (catch_ada_exception_command, catch_assert_command): Moved to
622 (add_catch_command): Make extern.
623 (_initilize_breakpoint): Don't install the exception and assert
624 catchpoint commands here.
625 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
627 (add_catch_command, create_ada_exception_breakpoint): Declare.
629 2011-06-22 Pedro Alves <pedro@codesourcery.com>
631 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
632 the breakpoint to the breakpoint chain here.
633 (set_raw_breakpoint_without_location): Add the breakpoint to the
634 breakpoint chain here.
635 (init_raw_breakpoint): Adjust comments.
636 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
638 (init_catchpoint): Don't set the catchpoint's breakpoint number
640 (install_catchpoint): New function.
641 (create_fork_vfork_event_catchpoint)
642 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
643 use install_catchpoint.
645 2011-06-22 Pedro Alves <pedro@codesourcery.com>
647 * breakpoint.c (create_catchpoint_without_mention)
648 (create_catchpoint): Delete.
650 2011-06-22 Pedro Alves <pedro@codesourcery.com>
652 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
653 * breakpoint.c (init_raw_breakpoint_without_location): Remove
654 reference to exec_pathname.
655 (struct exec_catchpoint): New type.
656 (dtor_catch_exec): New function.
657 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
658 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
659 (catch_exec_command_1): Adjust to use init_catchpoint.
660 (delete_breakpoint): Remove reference to exec_pathname.
662 2011-06-22 Pedro Alves <pedro@codesourcery.com>
664 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
665 (struct breakpoint): Delete field `syscalls_to_be_caught'.
666 * breakpoint.c (init_raw_breakpoint_without_location): Remove
667 reference to syscalls_to_be_caught.
668 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
670 (struct syscall_catchpoint): New type.
671 (dtor_catch_syscall): New function.
672 (insert_catch_syscall, remove_catch_syscall)
673 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
674 (print_recreate_catch_syscall): Adjust.
675 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
676 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
677 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
678 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
679 (masked_watchpoint_breakpoint_ops)
680 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
681 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
682 there is one. Remove references to syscalls_to_be_caught.
683 (catching_syscall_number): Adjust.
684 * ada-lang.c (catch_exception_breakpoint_ops)
685 (catch_exception_unhandled_breakpoint_ops)
686 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
688 2011-06-22 Pedro Alves <pedro@codesourcery.com>
690 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
692 * breakpoint.c (init_raw_breakpoint_without_location): Remove
693 reference to forked_inferior_pid.
694 (struct fork_catchpoint): New type.
695 (breakpoint_hit_catch_fork, print_it_catch_fork)
696 (print_one_catch_fork, breakpoint_hit_catch_vfork)
697 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
698 (create_fork_vfork_event_catchpoint): Adjust to use
701 2011-06-22 Pedro Alves <pedro@codesourcery.com>
703 * breakpoint.c (add_to_breakpoint_chain)
704 (init_raw_breakpoint_without_location): New functions, factored
706 (set_raw_breakpoint_without_location): ... this one.
707 (init_raw_breakpoint): New function, factored out from
708 set_raw_breakpoint and adjusted to use
709 init_raw_breakpoint_without_location.
710 (set_raw_breakpoint): Adjust.
711 (init_catchpoint): New function, factored out from
712 create_catchpoint_without_mention and adjusted to use
714 (create_catchpoint_without_mention): Adjust.
716 2011-06-22 Tom Tromey <tromey@redhat.com>
718 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
719 argument of 0 specially.
721 2011-06-22 Yao Qi <yao@codesourcery.com>
723 * infrun.c (handle_inferior_event): Remove write-only local variable
724 `sw_single_step_trap_p'.
726 2011-06-20 Tom Tromey <tromey@redhat.com>
728 * symtab.c (lookup_language_this): End loop if block is NULL.
730 2011-06-17 Tom Tromey <tromey@redhat.com>
732 * valops.c (value_of_this): Use lookup_language_this.
733 * symtab.h (lookup_language_this): Declare.
734 * symtab.c (lookup_language_this): New function.
735 (lookup_symbol_aux): Use lookup_language_this.
736 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
738 2011-06-17 Tom Tromey <tromey@redhat.com>
740 * value.h (value_of_this): Update.
741 (value_of_local): Remove.
742 * valops.c (value_of_this): Rename from value_of_local. Change
744 * p-exp.y (exp): Update.
745 (variable): Likewise.
746 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
748 2011-06-17 Tom Tromey <tromey@redhat.com>
750 * valops.c (value_of_local): Complain if NAME is NULL.
751 * std-operator.def (OP_OBJC_SELF): Remove.
752 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
753 * objc-exp.y (name_not_typename): Use OP_THIS.
754 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
756 <OP_OBJC_SELF>: Remove.
757 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
759 2011-06-16 Tristan Gingold <gingold@adacore.com>
761 * python/py-events.h (gdb_py_events): Make it extern.
762 * python/py-evtregistry.c (gdb_py_events): Declare.
764 2011-06-16 Hui Zhu <teawater@gmail.com>
766 * remote.c (remote_trace_set_readonly_regions): Add check for
767 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
770 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
772 * arm-linux-tdep.c: Include "auxv.h".
774 (ARM_LINUX_SIZEOF_VFP): Define.
775 (arm_linux_supply_vfp): New function.
776 (arm_linux_collect_vfp): Likewise.
777 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
778 (arm_linux_fpa_regset_sections): New variable.
779 (arm_linux_vfp_regset_sections): Likewise.
780 (arm_linux_core_read_description): New function.
781 (arm_linux_init_abi): Install arm_linux_core_read_description and
782 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
783 appropriate for the architecture.
784 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
785 (tdesc_arm_with_m): Declare.
786 (tdesc_arm_with_iwmmxt): Likewise.
787 (tdesc_arm_with_vfpv2): Likewise.
788 (tdesc_arm_with_vfpv3): Likewise.
789 (tdesc_arm_with_neon): Likewise.
790 * arm-linux-nat.c: Move features/*.c includes ...
791 * arm-tdep.c: ... here.
792 * arm-linux-nat.c (arm_linux_read_description): Move initializing
793 target description data structures ...
794 * arm-tdep.c (_initialize_arm_tdep): ... here.
795 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
796 HWCAP_VFPv3D16): Move definitions ...
797 * arm-linux-tdep.h: ... here.
799 2011-06-15 Hui Zhu <teawater@gmail.com>
801 * remote.c (remote_trace_set_readonly_regions): Add a check for
804 2011-06-14 Tom Tromey <tromey@redhat.com>
806 * coffread.c (coffread_objfile): Rename from current_objfile.
807 * dbxread.c (dbxread_objfile): Rename from current_objfile.
808 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
810 2011-06-14 Tom Tromey <tromey@redhat.com>
812 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
813 (class_symtab): Remove.
814 (jv_dynamics_progspace_key): New global.
815 (jv_per_objfile_free): Reset program space data. Update assert.
817 (get_dynamics_objfile): Use and set program space data.
818 (get_java_class_symtab): Use get_dynamics_objfile.
819 (add_class_symbol): Likewise.
820 (java_link_class_type): Likewise.
821 (java_object_type, jv_clear_object_type, set_java_object_type):
823 (get_java_object_type): Update. Don't cache result.
824 (is_object_type): Don't call set_java_object_type.
825 (_initialize_java_language): Don't set jv_type_objfile_data_key;
826 initialize jv_dynamics_progspace_key.
828 2011-06-14 Tom Tromey <tromey@redhat.com>
830 * symtab.h (current_objfile): Don't declare.
831 * objfiles.h (current_objfile): Don't declare.
832 * objfiles.c (current_objfile): Remove.
833 * mdebugread.c (current_objfile): New file-scope global.
834 * dbxread.c (current_objfile): New file-scope global.
835 * coffread.c (current_objfile): New file-scope global.
837 2011-06-13 Pedro Alves <pedro@codesourcery.com>
839 * top.h (line): Rename to ...
840 (saved_command_line): ... this.
841 (linesize): Rename to ...
842 (saved_command_line_size): ... this.
843 * top.c (line): Rename to ...
844 (saved_command_line): ... this.
845 (linesize): Rename to ...
846 (saved_command_line_size): ... this.
847 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
848 * event-top.c (command_line_handler): Adjust.
849 * main.c (captured_main): Adjust.
851 2011-06-12 Mark Kettenis <kettenis@gnu.org>
853 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
854 get_frame_func instead of get_frame_pc to determine the code
855 address used to construct the frame ID.
856 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
857 (i386_epilogue_frame_this_id): Likewise.
858 (i386_epilogue_frame_prev_register): New function.
859 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
860 (i386_stack_tramp_frame_sniffer): Fix coding style.
861 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
862 (i386_gdbarch_init): Fix comments.
864 2011-06-12 Mark Kettenis <kettenis@gnu.org>
866 * i386-tdep.c (i386_match_insn_block): Use length of the proper
867 instruction when walking back through the instruction stream.
869 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
871 * symtab.c (output_partial_symbol_filename): Exchange the filename and
872 fullname parameters order.
874 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
877 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
879 * psymtab.c (map_symbol_filenames_psymtab)
880 (map_partial_symbol_filenames): Likewise.
881 * psymtab.h: Include symfile.h.
882 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
883 * symfile.h (symbol_filename_ftype): New.
884 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
885 map_symbol_filenames, clarify more the naming in comment.
887 2011-06-07 Doug Evans <dje@google.com>
889 * cc-with-index.sh: Fix typos in comment.
890 Look for ../../gdb, for fullname.exp.
892 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
893 Pedro Alves <pedro@codesourcery.com>
895 * cli/cli-cmds.c (shell_escape): Use waitpid.
896 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
898 2011-06-07 Tristan Gingold <gingold@adacore.com>
900 * xcoffread.c (dwarf2_xcoff_names): New variable.
901 (aix_process_linenos): Add a guard.
902 (xcoff_symfile_finish): Free dwarf2.
903 (xcoff_initial_scan): Add dwarf2 support.
905 2011-06-06 Pedro Alves <pedro@codesourcery.com>
907 * infcall.c (run_inferior_call): Don't mask async. Instead force
908 a synchronous wait, if the target can async.
910 * target.h (struct target_ops): Delete to_async_mask.
911 (target_async_mask): Delete.
912 * target.c (update_current_target): Delete references to to_async_mask.
913 * linux-nat.c (linux_nat_async_mask_value): Delete.
914 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
915 to linux_nat_async_mask_value.
916 (linux_nat_async_mask): Delete.
917 (linux_nat_async, linux_nat_close): Remove references to
918 linux_nat_async_mask_value.
919 * record.c (record_async_mask_value): Delete.
920 (record_async): Remove references to record_async_mask_value.
921 (record_async_mask): Delete.
922 (record_can_async_p, record_is_async_p): Remove references to
923 record_async_mask_value.
924 (init_record_ops, init_record_core_ops): Remove references to
926 * remote.c (remote_async_mask_value): Delete.
927 (init_remote_ops): Remove reference to remote_async_mask.
928 (remote_can_async_p, remote_is_async_p): Remove references to
929 remote_async_mask_value.
930 (remote_async): Remove references to remote_async_mask_value.
931 (remote_async_mask): Delete.
933 * infrun.c (fetch_inferior_event): Don't claim registers changed
934 if the current thread is already not executing.
936 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
938 From Stephen Kitt <steve@sk2.org>
939 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
940 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
942 2011-06-03 Joel Brobecker <brobecker@adacore.com>
944 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
945 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
947 2011-06-03 Tom Tromey <tromey@redhat.com>
949 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
951 * python/py-exitedevent.c (create_exited_event_object): Change
952 type of 'exit_code'. Optionally add exit_code attribute.
953 (emit_exited_event): Change type of 'exit_code'.
954 * python/py-event.h (emit_exited_event): Update.
955 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
956 * infrun.c (handle_inferior_event): Set exit code fields on
958 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
960 * inferior.c (exit_inferior_1): Initialize new fields.
962 2011-06-03 Tom Tromey <tromey@redhat.com>
964 * dwarf2expr.c (get_signed_type): New function.
965 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
967 2011-06-02 Keith Seitz <keiths@redhat.com>
969 * objc-lang.c (find_methods): Increment objfile_csym earlier.
971 2011-06-02 Pedro Alves <pedro@codesourcery.com>
973 * top.h (simplified_command_loop): Delete declaration.
975 2011-06-01 Mike Frysinger <vapier@gentoo.org>
977 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
978 gdb_sysroot to the "len" variable. Append both to "arg_buf".
980 2011-06-01 Yao Qi <yao@codesourcery.com>
982 * objfiles.h (obj_section_addr): Update reference to objfile from
984 (obj_section_endaddr): Likewise.
986 2011-06-01 Daniel Jacobowitz <drow@false.org>
988 * MAINTAINERS: Update my email address and affiliation. Also
989 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
991 2010-05-31 Keith Seitz <keiths@redhat.com>
994 * linespec.c (get_search_block): New function.
995 (find_methods): Add FILE_SYMTATB parameter and use it and
996 get_search_block to pass an appropriate block to
997 lookup_symbol_in_namespace.
998 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
999 Check if *ARGPTR starts with a filename first.
1000 If it does, call locate_first_half again to locate the next
1001 "first half" of the linespec.
1002 Pass FILE_SYMTATB to decode_objc and decode_compound.
1003 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
1004 (locate_first_half): Stop on the first colon seen.
1005 (decode_compound): Add FILE_SYMTAB parameter.
1006 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
1007 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
1008 get_search_block with lookup_symbol.
1009 (find_method): Add FILE_SYMTAB parameter and pass it to
1011 (decode_objc): Use get_search_block.
1013 2010-05-31 Keith Seitz <keiths@redhat.com>
1016 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
1017 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
1018 and CP_ANONYMOUS_NAMESPACE_LEN.
1019 (cp_is_anonymous): Likewise.
1020 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
1021 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
1022 * dwarf2read.c (namespace_name): Likewise.
1023 (fixup_partial_die): Likewise.
1024 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
1025 seen in the input, keep it.
1027 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1029 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
1030 * inf-loop.h (inferior_event_handler_wrapper): Delete.
1031 * inf-loop.c (inferior_event_handler_wrapper): Delete.
1032 (inferior_event_handler): Don't handle INF_QUIT_REQ.
1033 * remote.c (_initialize_remote): Register
1034 async_remote_interrupt_twice directly as
1035 sigint_remote_twice_token event.
1037 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1039 * target.h (enum inferior_event_type): Delete INF_ERROR.
1040 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
1042 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1044 * interps.c (interp_set): Don't cancel continuations.
1046 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1048 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
1050 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1052 * continuations.h (continuation_ftype): Add `err' parameter.
1053 Document parameters.
1054 (do_all_continuations, do_all_continuations_thread)
1055 (do_all_intermediate_continuations)
1056 (do_all_intermediate_continuations_thread)
1057 (do_all_inferior_continuations): Add `err' parameter.
1058 * continuations.c (do_my_continuations_1, do_my_continuations)
1059 (do_all_inferior_continuations, do_all_continuations_ptid)
1060 (do_all_continuations_thread_callback)
1061 (do_all_continuations_thread, do_all_continuations)
1062 (do_all_intermediate_continuations_thread_callback)
1063 (do_all_intermediate_continuations_thread)
1064 (do_all_intermediate_continuations): Add `err' parameter, and pass
1065 it down all the way to the continuations proper.
1066 * inf-loop.c (inferior_event_handler): If fetching an inferior
1067 event throws an error, don't pop the target, and still call the
1068 continuations, but with `err' set. Adjust all other continuation
1070 * breakpoint.c (until_break_command_continuation): Add `err'
1072 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
1073 issue another step if `err' is set.
1074 (struct until_next_continuation_args): New.
1075 (until_next_continuation): Add `err' parameter. Adjust.
1076 (until_next_command): Adjust.
1077 (struct finish_command_continuation_args): Add `thread' field.
1078 (finish_command_continuation): Add `err' parameter. Handle it.
1079 (finish_forward): Adjust.
1080 (attach_command_continuation): Add `err' parameter. Handle it.
1081 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
1082 cancel the continuations.
1083 * interps.c (interp_set): Adjust to cancel the continuations.
1084 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
1085 continuations rather than discarding.
1086 (free_thread): Don't clear thread inferior resources here.
1087 (delete_thread_1): Do it here instead. And do it before removing
1088 the thread from the threads list. Tag the thread as exited before
1089 clearing thread inferior resources.
1091 2011-05-30 Joel Brobecker <brobecker@adacore.com>
1093 * infcall.c (call_function_by_hand): Rephrase error message.
1095 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1097 * defs.h (struct thread_info, struct inferior): Delete forward
1099 * breakpoint.h (struct thread_info): New forward declaration.
1100 * observer.sh (struct inferior): New forward declaration.
1101 * python/python-internal.h (struct inferior): New forward
1104 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1106 * defs.h (struct continuation, continuation_ftype)
1107 (continuation_free_arg_ftype, add_continuation)
1108 (do_all_continuations, do_all_continuations_thread)
1109 (discard_all_continuations, discard_all_continuations_thread)
1110 (add_intermediate_continuation, do_all_intermediate_continuations)
1111 (do_all_intermediate_continuations_thread)
1112 (discard_all_intermediate_continuations)
1113 (discard_all_intermediate_continuations_thread)
1114 (add_inferior_continuation, do_all_inferior_continuations)
1115 (discard_all_inferior_continuations): Move to ...
1116 * continuations.h: ... this new file.
1117 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
1118 infcmd.c, inferior.c, infrun.c, interps.c: Include
1121 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1122 Doug Evans <dje@google.com>
1124 Fix PR 10970, PR 12702.
1125 * linux-nat.c (linux_lwp_is_zombie): New function.
1126 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
1127 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
1129 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1131 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
1133 (add_continuation, add_intermediate_continuation)
1134 (add_inferior_continuation): Use them.
1135 * continuations.c (struct continuation): Use them.
1136 (make_continuation_ftype): Delete.
1137 (make_continuation, add_inferior_continuation, add_continuation)
1138 (add_intermediate_continuation): Use continuation_ftype and
1139 continuation_free_arg_ftype. Rename parameters to shorter names.
1141 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1143 * continuations.c (make_continuation): Make it return void.
1144 (do_my_continuations): Rename to ...
1145 (do_my_continuations_1): ... this. Remove old_chain parameter and
1147 (do_my_continuations): New.
1148 (discard_my_continuations): Rename to ...
1149 (discard_my_continuations_1): ... this. Remove old_chain
1150 parameter and adjust.
1151 (discard_my_continuations): New.
1152 (add_inferior_continuation): Simplify.
1153 (do_all_inferior_continuations): Reimplement on top
1154 do_my_continuations.
1155 (discard_all_inferior_continuations): Simplify.
1156 (add_continuation): Simplify.
1157 (do_all_continuations_ptid): Simplify.
1158 (discard_all_continuations_thread_callback): Simplify.
1159 (add_intermediate_continuation): Simplify.
1160 (discard_all_intermediate_continuations_thread_callback):
1163 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1165 * utils.c (struct continuation, add_continuation)
1166 (add_inferior_continuation)
1167 (do_all_inferior_continuations, discard_all_inferior_continuations)
1168 (restore_thread_cleanup, do_all_continuations_ptid)
1169 (do_all_continuations_thread_callback)
1170 (do_all_continuations_thread, do_all_continuations)
1171 (discard_all_continuations_thread_callback)
1172 (discard_all_continuations_thread, discard_all_continuations)
1173 (add_intermediate_continuation)
1174 (do_all_intermediate_continuations_thread_callback)
1175 (do_all_intermediate_continuations_thread)
1176 (do_all_intermediate_continuations)
1177 (discard_all_intermediate_continuations_thread_callback)
1178 (discard_all_intermediate_continuations_thread)
1179 (discard_all_intermediate_continuations): Move to ...
1180 * continuations.c: ... this new file, and adjust to no longer
1181 implement continuations on top of cleanups.
1182 * Makefile.in (SFILES): Add continuations.c.
1183 (COMMON_OBS): Add continuations.o.
1185 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1187 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
1188 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
1189 Internal error on invalid values.
1190 * reverse.c: Don't handle EXEC_ERROR.
1191 * mi/mi-main.c: Don't handle EXEC_ERROR.
1193 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1195 * record.c: Include event-loop.h, inf-loop.h.
1196 (record_beneath_to_async): New global.
1197 (tmp_to_async): New global.
1198 (record_async_inferior_event_token): New global.
1199 (record_open_1): Don't error out if async is enabled.
1200 (record_open): Handle to_async. Create an async event source in
1202 (record_close): Delete the async event source.
1203 (record_resumed): New global.
1204 (record_execution_dir): New global.
1205 (record_resume, record_core_resume): Set them. Register the
1206 target on the event loop.
1207 (record_wait): Rename to ...
1208 (record_wait_1): ... this. Add more debug output. Handle
1209 TARGET_WNOHANG, and the target beneath returning
1210 TARGET_WAITKIND_IGNORE.
1211 (record_wait): Reimplement on top of record_wait_1.
1212 (record_async_mask_value): New global.
1213 (record_async, record_async_mask, record_can_async_p)
1214 (record_is_async_p, record_execution_direction): New functions.
1215 (init_record_ops, init_record_core_ops): Install new methods.
1216 * infrun.c (fetch_inferior_event): Temporarily switch the global
1217 execution direction to the direction the target was going.
1218 (execution_direction): Change type to int.
1219 * target.c (default_execution_direction): New function.
1220 (update_current_target): Inherit and de_fault
1221 to_execution_direction.
1222 * target.h (struct target_ops) <to_execution_direction>: New
1224 (target_execution_direction): New macro.
1225 * inferior.h (execution_direction): Change type to int.
1227 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1229 * infcall.c (call_function_by_hand): Don't allow calling functions
1230 in reverse execution mode.
1232 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1234 * infcmd.c (finish_command): Allow async finish in reverse.
1236 2011-05-26 Yao Qi <yao@codesourcery.com>
1238 * gdb_thread_db.h: Delete. Move to ...
1239 * common/gdb_thread_db.h: ... here.
1241 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1243 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
1244 function's entry point instead of a manually managed momentary
1245 breakpoint, and only ever issue one proceed call.
1246 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
1247 doing a reverse-finish, switch to stepi mode, to do another step.
1248 (insert_step_resume_breakpoint_at_sal): Make public.
1249 (normal_stop): No need to save function value return registers if
1251 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
1253 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1255 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
1256 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
1257 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
1259 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
1260 step-resume breakpoints.
1261 (print_it_typical): Handle bp_hp_step_resume.
1262 (bpstat_what): Ditto.
1263 (bptype_string): Ditto.
1264 (print_one_breakpoint_location): Ditto.
1265 (allocate_bp_location): Ditto.
1267 (breakpoint_re_set_one): Ditto.
1268 * infrun.c (handle_inferior_event): Adjust. Split
1269 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
1270 BPSTAT_WHAT_HP_STEP_RESUME.
1271 (insert_step_resume_breakpoint_at_sal): Rename to ...
1272 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
1273 parameter. Handle it.
1274 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
1275 insert_step_resume_breakpoint_at_sal_1.
1276 (insert_step_resume_breakpoint_at_frame): Rename to ...
1277 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
1278 set a high-priority step-resume breakpoint.
1279 (insert_step_resume_breakpoint_at_frame): Adjust comment.
1280 (insert_step_resume_breakpoint_at_caller): Ditto.
1282 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1284 * breakpoint.c (iterate_over_related_breakpoints): New.
1285 (do_map_delete_breakpoint): New.
1286 (delete_command): Pass do_map_delete_breakpoint to
1287 map_breakpoint_numbers.
1288 (do_disable_breakpoint): New.
1289 (do_map_disable_breakpoint): Iterate over the breakpoint's related
1291 (do_enable_breakpoint): Rename to ...
1292 (enable_breakpoint_disp): ... this.
1293 (enable_breakpoint): Adjust.
1294 (do_enable_breakpoint): New.
1295 (enable_once_breakpoint): Delete.
1296 (do_map_enable_breakpoint): New.
1297 (do_map_enable_once_breakpoint): New.
1298 (enable_once_command, enable_delete_command)
1299 (delete_trace_command): Iterate over the breakpoint's related
1302 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1304 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
1305 for ALPHA_ZERO_REGNUM.
1306 (alpha_supply_int_regs): Explicitly supply zero as the value for
1307 ALPHA_ZERO_REGNUM in the register cache.
1308 * alpha-nat.c (fetch_osf_core_registers): Ditto.
1310 2011-05-26 Yao Qi <yao@codesourcery.com>
1312 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
1314 2011-05-26 Tristan Gingold <gingold@adacore.com>
1316 * symfile.h (struct dwarf2_section_names): New type.
1317 (struct dwarf2_debug_sections): New type.
1318 (dwarf2_has_info): Add parameter.
1319 * dwarf2read.c (dwarf2_elf_names): New variable.
1320 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
1321 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
1322 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
1323 (dwarf2_has_info): Add names parameter. Pass names
1324 to dwarf2_locate_sections.
1325 (section_is_p): Rewrite using the names parameter.
1326 (dwarf2_locate_sections): Use section names from the names parameter.
1327 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
1328 * elfread.c (read_psyms): Ditto.
1329 * machoread.c (macho_symfile_read): Ditto.
1331 2011-05-25 Andreas Schwab <schwab@redhat.com>
1334 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
1336 2011-05-24 Keith Seitz <keiths@redhat.com>
1339 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
1340 (decode_compound): Unconditionally call keep_name_info.
1342 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1344 * breakpoint.c (watchpoint_check): If the watchpoint went out of
1345 scope, clear its command list.
1346 (map_breakpoint_numbers): Don't walk the related breakpoints list
1349 2011-05-24 Tom Tromey <tromey@redhat.com>
1351 * MAINTAINERS: Move Jim Blandy to past maintainers.
1353 2011-05-24 Tristan Gingold <gingold@adacore.com>
1355 * symfile.h (enum dwarf2_section_enum): New type.
1356 (dwarf2_get_section_info): New prototype.
1357 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
1358 section_name by sect. Use a switch to select the info.
1359 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
1360 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
1362 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1364 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
1365 shared library event breakpoint if there's no execution.
1367 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
1369 * breakpont.c (remove_hw_watchpoints): Remove unused function.
1370 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
1372 2011-05-23 Tom Tromey <tromey@redhat.com>
1374 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
1377 2011-05-23 Doug Evans <dje@google.com>
1379 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
1380 entry for RuntimeError to doc string.
1382 2011-05-23 Jerome Guitton <guitton@adacore.com>
1384 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
1385 sequence for probing loops.
1387 2011-05-23 Pedro Alves <pedro@codesourcery.com>
1389 * infrun.c (user_visible_resume_ptid): Fix typos in describing
1392 2011-05-21 Mark Kettenis <kettenis@gnu.org>
1394 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
1395 zero as the value for %g0 in the register cache.
1396 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
1397 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1399 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1401 * infrun.c (proceed): Set previous_inferior_ptid here.
1402 (init_wait_for_inferior): Initialize previous_inferior_ptid from
1403 inferior_ptid, not null_ptid.
1404 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
1405 (fetch_inferior_event): Nor here.
1407 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1409 * inf-loop.c (inferior_event_handler): Only output a message if
1412 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
1414 * MAINTAINERS: Update my e-mail address.
1416 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1418 * infrun.c (proceed): Switch the inferior event loop to
1419 INF_EXEC_COMPLETE if the target refused to resume from a
1422 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1424 * infcmd.c: Include "inf-loop.h".
1425 (step_once): When stepping into an inline subroutine, pretend the
1426 target has run. If the target can async, switch the inferior
1427 event loop to INF_EXEC_COMPLETE.
1428 * inferior.h (user_visible_resume_ptid): Declare.
1429 * infrun.c (user_visible_resume_ptid): New function, factored out
1432 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
1433 that the current thread is running. Merge async and sync
1436 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1438 * infcmd.c (step_1): Simplify synchronous case.
1440 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1442 * tracepoint.c: Include exceptions.h.
1443 (TFILE_PID): Move higher in file.
1444 (tfile_open): Delay pushing the tfile target until we're assured
1445 the tfile header is present in the file. Wrap reading the initial
1446 newline-terminated lines in TRY_CATCH. Pop the target if the
1447 initial setup failed. Add the tfile's thread immediately
1448 aftwards, before any non-essential setup. Don't skip
1449 post_create_inferior if there are no traceframes present in the
1451 (tfile_close): Remove redundant check for null before xfree call.
1452 (tfile_thread_alive): New function.
1453 (init_tfile_ops): Register it as to_thread_alive callback.
1455 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1457 * tracepoint.c (tfile_open): Delete #if 0'd code.
1459 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1461 Fix -readnow for -gdwarf-4 unused type units.
1462 * dwarf2read.c (struct signatured_type): Remove the field offset.
1463 (create_signatured_type_table_from_index): Remove its initialization.
1464 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
1465 instead. Add a complaint call.
1466 (process_psymtab_comp_unit): Change assignment to gdb_assert.
1467 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
1468 (lookup_signatured_type_at_offset, read_signatured_type)
1469 (write_one_signatured_type): Update the field for per_cu.
1471 2011-05-19 Tom Tromey <tromey@redhat.com>
1473 * python/py-inferior.c (python_inferior_exit): Use
1475 (python_on_resume): Likewise.
1477 2011-05-19 Matt Rice <ratmice@gmail.com>
1479 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
1481 2011-05-19 Hui Zhu <teawater@gmail.com>
1483 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
1485 2011-05-19 Hui Zhu <teawater@gmail.com>
1487 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
1489 2011-05-18 Tom Tromey <tromey@redhat.com>
1491 * dwarf2read.c (dwarf2_add_field): Constify.
1492 * value.c (value_static_field): Constify.
1493 * gdbtypes.h (struct main_type) <field.field_location.physname>:
1495 * ax-gdb.c (gen_static_field): Constify
1497 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1499 * linux-nat.c (kill_callback): Use SIGKILL first.
1501 2011-05-18 Joel Brobecker <brobecker@adacore.com>
1503 * ada-lang.c (print_it_exception): Avoid use of sprintf.
1505 2011-05-18 Tom Tromey <tromey@redhat.com>
1507 * value.c (value_fn_field): Constify.
1508 * symtab.c (gdb_mangle_name): Constify.
1509 * stabsread.c (update_method_name_from_physname): Make 'physname'
1511 * p-typeprint.c (pascal_type_print_method_args): Make arguments
1512 const. Use explicit fputc_filtered loop.
1513 (pascal_type_print_base): Constify.
1514 * p-lang.h (pascal_type_print_method_args): Update.
1515 * linespec.c (add_matching_methods): Constify.
1516 (add_constructors): Likewise.
1517 * jv-typeprint.c (java_type_print_base): Constify.
1518 * gdbtypes.h (struct cplus_struct_type)
1519 <fn_fieldlist.fn_field.physname>: Now const.
1520 * dwarf2read.c (compute_delayed_physnames): Constify.
1521 (dwarf2_add_member_fn): Likewise.
1522 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
1524 2011-05-18 Pedro Alves <pedro@codesourcery.com>
1526 * infrun.c (resume): Mention which is the current thread, and its
1527 current PC in debug output.
1528 (prepare_to_proceed): Mention the thread switching in debug
1531 2011-05-18 Tom Tromey <tromey@redhat.com>
1533 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
1534 path check. Use xmalloc and cleanups.
1535 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
1537 2011-05-17 Tom Tromey <tromey@redhat.com>
1539 * cp-valprint.c (cp_print_value_fields): Catch errors from
1542 2011-05-17 Tom Tromey <tromey@redhat.com>
1544 * dwarf2read.c (dwarf2_get_die_type): Call
1545 get_die_type_at_offset.
1546 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
1547 get_base_type function.
1549 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
1551 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
1554 2011-05-16 Doug Evans <dje@google.com>
1556 * python/py-auto-load.c (source_section_scripts): Mention objfile
1559 2011-05-15 Doug Evans <dje@google.com>
1561 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
1562 (try_thread_db_load_from_pdir): Call it. If unable to find
1563 libthread_db in directory of libpthread, see if we're looking at
1564 the separate-debug-info copy.
1566 * python/py-autoload.c (print_script): Print "Missing" instead of
1567 "No" for missing scripts.
1568 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
1570 2011-05-13 Doug Evans <dje@google.com>
1572 * ui-file.c (stdio_file_write_async_safe): Add comment.
1574 2011-05-14 Hui Zhu <teawater@gmail.com>
1576 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
1578 2011-05-13 Doug Evans <dje@google.com>
1580 Support $pdir and $sdir in libthread-db-search-path.
1581 * NEWS: Mention $sdir,$pdir.
1582 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
1583 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
1584 (try_thread_db_load_from_sdir): New function.
1585 (try_thread_db_load_from_dir): New function.
1586 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
1587 system directories if search of libthread-db-search-path fails,
1588 that is now done via $sdir.
1589 (has_libpthread): New function.
1590 (thread_db_load): Remove search for libthread_db in directory of
1591 libpthread, that is now done via $pdir.
1593 * NEWS: Mention "info auto-load-scripts".
1594 * python/py-auto-load.c (struct auto_load_pspace_info): New member
1595 script_not_found_warning_printed.
1596 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
1597 all callers updated. Initialize script_not_found_warning_printed.
1598 (get_auto_load_pspace_data_for_loading): New function.
1599 (maybe_add_script): New function.
1600 (source_section_scripts): Simplify. Only print one warning regardless
1601 of the number of auto-load scripts not found.
1602 (clear_section_scripts): Clear script_not_found_warning_printed.
1603 (auto_load_objfile_script): Record script in hash table.
1604 (count_matching_scripts): New function.
1605 (maybe_print_script): Renamed from maybe_print_section_script, all
1606 callers updated. Rewrite to use ui_out_*.
1607 (info_auto_load_scripts): Renamed from
1608 maintenance_print_section_scripts, all callers updated.
1609 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
1610 renamed as "info auto-load-scripts".
1612 2011-05-13 Tom Tromey <tromey@redhat.com>
1614 * dwarf2expr.c (read_uleb128): Cast intermediate result.
1615 (read_sleb128): Likewise.
1617 2011-05-13 Tom Tromey <tromey@redhat.com>
1619 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
1622 2011-05-13 Doug Evans <dje@google.com>
1624 * linux-nat.c (debug_linux_nat_async): Delete.
1625 Replace all references to use debug_linux_nat instead.
1626 (show_debug_linux_nat_async): Delete.
1627 (sigchld_handler): Call ui_file_write_async_safe instead of
1629 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
1630 * ui-file.c (struct ui_file): New member to_write_async_safe.
1631 (null_file_write_async_safe): New function.
1632 (ui_file_write_async_safe): New function.
1633 (set_ui_file_write_async_safe): New function.
1634 (ui_file_new): Initialize to_write_async_safe.
1635 (stdio_file_write_async_safe): New function.
1636 (struct stdio_file): New member fd.
1637 (stdio_file_new): Initialize to_write_async_safe, fd.
1638 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
1640 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
1641 (set_ui_file_write_async_safe): Declare.
1642 (ui_file_write_async_safe): Declare.
1644 2011-05-13 Tom Tromey <tromey@redhat.com>
1646 * utils.c (do_value_free): New function.
1647 (make_cleanup_value_free): Likewise.
1648 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
1650 (dwarf2_loc_desc_needs_frame): Call
1651 make_cleanup_value_free_to_mark.
1652 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
1653 * dwarf2expr.c (free_dwarf_expr_context): Don't call
1655 (new_dwarf_expr_context): Don't call value_mark.
1656 * dwarf2-frame.c (execute_stack_op): Call
1657 make_cleanup_value_free_to_mark.
1658 * defs.h (make_cleanup_value_free): Declare.
1660 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1662 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
1663 prepare_execute_command.
1664 * top.c (prepare_execute_command): Return cleanup.
1665 (execute_command): Use cleanup from prepare_execute_command.
1666 * top.h (prepare_execute_command): Change prototype to return
1668 * defs.h (struct value): Add opaque declaration.
1669 (make_cleanup_value_free_to_mark): Add prototype.
1670 * utils.c (do_value_free_to_mark): New function.
1671 (make_cleanup_value_free_to_mark): Likewise.
1673 2011-05-12 Tom Tromey <tromey@redhat.com>
1675 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
1676 cast left-hand-side to unsigned.
1678 2011-05-12 Tom Tromey <tromey@redhat.com>
1681 * value.h (value_from_contents): Declare.
1682 * value.c (value_from_contents): New function.
1683 * dwarf2read.c (dwarf_stack_op_name): Add new values.
1684 (dwarf2_get_die_type): New function.
1685 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
1686 (allocate_piece_closure): Acquire reference to values.
1687 (read_pieced_value): Update for value-based expressions.
1688 (write_pieced_value): Likewise.
1689 (free_pieced_value_closure): Call value_free as needed.
1690 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
1691 Update for value-based expressions.
1692 * dwarf2loc.h (dwarf2_get_die_type): Declare.
1693 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
1694 <get_base_type>: New field.
1695 (struct dwarf_expr_piece) <v.value>: Change type.
1696 <v.regno>: New field.
1697 (struct dwarf_expr_context) <mark>: New field.
1698 (dwarf_expr_piece, dwarf_expr_fetch): Update.
1699 (dwarf_expr_pop, dwarf_expr_push): Remove.
1700 (dwarf_expr_push_address): Declare.
1701 * dwarf2expr.c (dwarf_arch_cookie): New global.
1702 (struct dwarf_gdbarch_types): New.
1703 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
1705 (dwarf_expr_push): Change type of 'value' argument. Update. Now
1707 (dwarf_expr_push_address): New function.
1708 (dwarf_expr_pop): Now static.
1709 (dwarf_expr_fetch): Change return type.
1710 (dwarf_require_integral): New function.
1711 (dwarf_expr_fetch): Simplify.
1712 (add_piece): Update.
1713 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
1715 (execute_stack_op) <sign_ext>: Remove.
1716 Use values for DWARF stack.
1717 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
1718 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1720 (_initialize_dwarf2expr): New function.
1721 (add_piece): Update.
1722 (new_dwarf_expr_context): Set new field.
1723 (free_dwarf_expr_context): Call value_free_to_mark.
1724 * dwarf2-frame.c (no_base_type): New function.
1725 (execute_stack_op): Set get_base_type field. Update.
1727 2011-05-12 Tom Tromey <tromey@redhat.com>
1729 * dwarf2read.c (read_common_block): Fix formatting.
1731 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
1733 * breakpoint.c (disable_breakpoint): Disable all locations
1734 associated with a tracepoint on target if a trace experiment is
1736 (disable_command): Disable a specific tracepoint location on target if
1737 a trace experiment is running.
1738 (do_enable_breakpoint): Enable all locations associated with a
1739 tracepoint on target if a trace experiment is running.
1740 (enable_command) Enable a specific tracepoint location on target if a
1741 trace experiment is running.
1742 * target.c (update_current_target): Add INHERIT and de_fault clauses for
1743 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1744 to_disable_tracepoint.
1745 * target.h: Add declaration of struct bp_location.
1746 (struct target_ops): Add new functions
1747 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1748 to_disable_tracepoint to target operations.
1749 (target_supports_enable_disable_tracepoint): New macro.
1750 (target_enable_tracepoint): New macro.
1751 (target_disable_tracepoint): New macro.
1752 * remote.c (struct remote_state): Add new field.
1753 (remote_enable_disable_tracepoint_feature): New.
1754 (remote_protocol_features): Add new entry.
1755 (remote_supports_enable_disable_tracepoint): New.
1756 (remote_enable_tracepoint): New.
1757 (remote_disable_tracepoint): New.
1758 (init_remote_ops): Add remote_enable_tracepoint,
1759 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1760 to remote operations.
1761 * tracepoint.c (start_tracing): Allow tracing to start without any
1762 tracepoints enabled with just a warning if they can be re-enabled
1764 * NEWS: Add news item for the new behaviour of the enable and disable
1765 GDB commands when applied to tracepoints.
1766 Add news items for the new remote packets QTEnable and QTDisable.
1768 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1770 * config.in: Regenerate.
1771 * configure: Regenerate.
1772 * configure.ac <--with-system-readline> (for readline_echoing_p):
1774 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1775 (tui_old_rl_echoing_p): ... here.
1776 (tui_setup_io): Rename extern declaration readline_echoing_p to
1777 _rl_echoing_p. Adjust assignments for the both renames.
1779 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1781 * symtab.c (lookup_symtab): Run cleanup before returning.
1783 2011-05-11 Tom Tromey <tromey@redhat.com>
1785 * dwarf2read.c (handle_data_member_location): New function.
1786 (dwarf2_add_field): Use it.
1787 (read_common_block): Likewise.
1789 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1791 Make addrs->SECTINDEX always defined.
1792 * symfile.c (relative_addr_info_to_section_offsets): Check for
1793 SECTINDEX -1, not for zero ADDR.
1794 (addrs_section_compar): Remove checking for invalid SECTINDEX.
1795 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1796 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1799 2011-05-10 Doug Evans <dje@google.com>
1801 * linux-thread-db.c: Whitespace cleanup.
1802 (try_thread_db_load_1): Fix comment.
1804 * linux-thread-db.c (set_libthread_db_search_path): New function.
1805 (_initialize_thread_db): Add setter for libthread-db-search-path.
1807 2011-05-09 Doug Evans <dje@google.com>
1809 * NEWS: Mention --with-iconv-bin.
1810 * configure.ac: New option --with-iconv-bin.
1811 * configure: Regenerate.
1812 * config.in: Regenerate.
1813 * defs.h (relocate_gdb_directory): Declare.
1814 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1815 removed progname parameter, and exported. All callers updated.
1816 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1818 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1819 adding missing call to restore_child_signals_mask.
1821 2011-05-09 Pedro Alves <pedro@codesourcery.com>
1823 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1825 * infrun.c (proceed, start_remote): Adjust.
1826 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1827 and adjust to not handle it.
1828 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1829 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1830 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1831 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1832 * windows-nat.c (do_initial_windows_stuff): Adjust.
1833 * infcmd.c (attach_command): Adjust.
1834 (notice_new_inferior): Adjust.
1836 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1838 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1839 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1840 * spu-tdep.c (op_selb): Use correct value.
1842 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1844 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1845 "parent" parameter to symbol_file_add_from_bfd call.
1847 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1848 Thiago Jung Bauermann <bauerman@br.ibm.com>
1850 Implement support for PowerPC BookE masked watchpoints.
1851 * NEWS: Mention masked watchpoint support. Create "Changed commands"
1853 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
1854 method. Initialize to NULL in all existing breakpoint_ops instances.
1855 (struct breakpoint) <hw_wp_mask>: New field.
1856 * breakpoint.c (is_masked_watchpoint): Add prototype.
1857 (update_watchpoint): Don't set b->val for masked watchpoints. Call
1858 breakpoint's breakpoint_ops.works_in_software_mode if available.
1859 (watchpoints_triggered): Handle the case of a hardware masked
1861 (watchpoint_check): Likewise.
1862 (works_in_software_mode_watchpoint): New function.
1863 (insert_masked_watchpoint, remove_masked_watchpoint)
1864 (resources_needed_masked_watchpoint)
1865 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
1866 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
1867 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
1869 (masked_watchpoint_breakpoint_ops): New structure.
1870 (watch_command_1): Check for the existence of the `mask' parameter.
1871 Set b->ops according to the type of hardware watchpoint being created.
1872 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
1873 (ppc_linux_remove_mask_watchpoint)
1874 (ppc_linux_masked_watch_num_registers): New functions.
1875 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
1876 to_remove_mask_watchpoint and to_masked_watch_num_registers.
1877 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
1878 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
1879 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1880 (target_masked_watch_num_registers): New functions.
1881 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
1882 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
1884 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1885 (target_masked_watch_num_registers): Add prototypes.
1887 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1890 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
1891 (producer_is_gcc_ge_4_0): New function.
1892 (process_full_comp_unit): Set also symtab->locations_valid. Move the
1893 symtab->language code.
1894 (var_decode_location): Set cu->has_loclist.
1895 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
1896 skip. Intialize force_skip from locations_valid. Move the prologue
1897 skipping code into two passes.
1898 * symtab.h (struct symtab): Make the primary field a bitfield. New
1899 field locations_valid.
1901 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1903 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
1904 (classify_inner_name): Call cp_lookup_nested_type with
1906 * cp-namespace.c (cp_lookup_nested_type): New variable
1907 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
1908 type_name_no_tag_or_error with saved_parent_type.
1909 * dwarf2read.c (load_partial_dies): Read in any children of
1910 DW_TAG_typedef with complaint in such case.
1911 * gdbtypes.c (type_name_no_tag_or_error): New function.
1912 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
1913 * valops.c (destructor_name_p): New comment for parameter type. Remove
1914 type const. Make dname and cp const. Call type_name_no_tag_or_error.
1915 * value.h (destructor_name_p): Remove type const.
1917 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1919 * symtab.c (compare_symbol_name): New function.
1920 (completion_list_add_name, expand_partial_symbol_name): Call it,
1921 remove the variable ncmp.
1922 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
1925 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1927 Demote to sw watchpoint only in update_watchpoint.
1928 * breakpoint.c (update_watchpoint): Change between software and
1929 hardware watchpoint for all kinds of watchpoints, not just
1930 read/write ones. Determine b->exact value here instead of
1931 in watch_command_1. Error out if there are not enough resources
1932 for a read or access hardware watchpoint.
1933 (watch_command_1): Remove logic of checking whether there are
1934 enough resources available, since update_watchpoint will do that
1935 work now. Don't set b->exact here. Catch exceptions thrown by
1936 update_watchpoint and delete the watchpoint.
1937 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
1938 Use target_exact_watchpoints instead.
1939 (delete_breakpoint): Notify observers only if deleted watchpoint
1940 has a breakpoint number assigned to it.
1942 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
1944 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1946 2011-05-05 Jerome Guitton <guitton@adacore.com>
1948 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
1950 (i386_stack_tramp_frame_unwind): New static global.
1951 (i386_match_pattern): New function, extracted from i386_match_insn.
1952 (i386_match_insn): Use i386_match_pattern.
1953 (i386_match_insn_block): New function.
1954 (i386_tramp_chain_in_reg_insns)
1955 (i386_tramp_chain_on_stack_insns): New static variables.
1956 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
1959 2011-05-04 Joseph Myers <joseph@codesourcery.com>
1961 * configure.host (xscale*): Don't handle target.
1962 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
1965 2011-05-04 Yao Qi <yao@codesourcery.com>
1967 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
1969 2011-05-03 Joel Brobecker <brobecker@adacore.com>
1972 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
1973 | * elfread.c (elf_symtab_read): Stop memory leak.
1975 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1977 * nto-tdep.c (nto_target): Replace deprecated call to
1978 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
1980 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1982 Fix false GCC warning.
1983 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
1985 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1987 * breakpoint.c (update_watchpoint): Move code to change
1988 the enable state of breakpoint from here ...
1989 (do_enable_breakpoint): ... to here.
1991 2011-04-26 Andrew Gontarek <andrewg@cray.com>
1993 * valprint.c (val_print_array_elements): Fixed poor performance
1994 of printing very large arrays with repeat_count_threshold set
1995 to unlimited. New comment.
1997 2011-04-29 Tom Tromey <tromey@redhat.com>
1999 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
2000 (mi_parse): Likewise.
2001 * breakpoint.c (break_range_command): Use sizeof char*, not
2003 (create_breakpoint): Likewise.
2004 (parse_breakpoint_sals): Likewise.
2006 2011-04-29 Pedro Alves <pedro@codesourcery.com>
2008 * linux-nat.c (linux_child_remove_fork_catchpoint)
2009 (linux_child_remove_vfork_catchpoint)
2010 (linux_child_remove_exec_catchpoint): New functions.
2011 (linux_target_install_ops): Install them.
2013 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
2017 * varobj.c (install_default_visualizer): Do not install a
2018 visualizer if the varobj is CPLUS_FAKE_CHILD.
2019 (construct_visualizer): Likewise.
2021 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2023 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
2024 case insensitive comparison.
2026 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
2028 * infrun.c (proceed): Revert previous change.
2029 (resume): Instead, handle the case of signal delivery while stepping
2030 off a breakpoint location here, and only if software single-stepping
2031 is used. Handle nested signals.
2033 2011-04-28 Yao Qi <yao@codesourcery.com>
2035 * arm-tdep.c (copy_unmodified): Rename to ...
2036 (arm_copy_unmodified): .. this. New.
2037 (copy_preload): Move common part to ...
2038 (install_preload): .. this. New.
2039 (arm_copy_preload): New.
2040 (copy_preload_reg): Move common part to ...
2041 (install_preload_reg): ... this. New.
2042 (arm_copy_preload_reg): New.
2043 (copy_b_bl_blx): Move common part to ...
2044 (install_b_bl_blx): .. this. New.
2045 (arm_copy_b_bl_blx): New.
2046 (copy_bx_blx_reg): Move common part to ...
2047 (install_bx_blx_reg): ... this. New.
2048 (arm_copy_bx_blx_reg): New.
2049 (copy_alu_reg): Move common part to ...
2050 (install_alu_reg): ... this. New.
2051 (arm_copy_alu_reg): New.
2052 (copy_alu_shifted_reg): Move common part to ...
2053 (install_alu_shifted_reg): ... this. New.
2054 (copy_ldr_str_ldrb_strb): Move common part to ...
2055 (install_ldr_str_ldrb_strb): ... this. New.
2056 (arm_copy_ldr_str_ldrb_strb): New.
2057 (copy_copro_load_store): Move some common part to ...
2058 (install_copy_copro_load_store): ... this. New.
2059 (arm_copy_copro_load_store): New.
2061 (arm_copy_svc): Renamed from copy_svc.
2062 (copy_undef): Delete.
2063 (arm_copy_undef): Renamed from copy_undef.
2064 (decode_ext_reg_ld_st): Delete.
2065 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2066 (decode_svc_copro): Delete.
2067 (arm_decode_svc_copro): Renamed from decode_svc_copro.
2068 (copy_copro_load_store, copy_alu_imm): update callers.
2069 (copy_extra_ld_st, copy_block_xfer): Likewise.
2070 (decode_misc_memhint_neon, decode_unconditional): Likewise.
2071 (decode_miscellaneous, decode_dp_misc): Likewise.
2072 (decode_ld_st_word_ubyte, decode_media): Likewise.
2073 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
2074 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
2075 (decode_unconditional, decode_miscellaneous): Likewise.
2076 (decode_media, decode_b_bl_ldmstm): Likewise.
2077 (arm_process_displaced_insn): Likewise..
2078 (decode_misc_memhint_neon): Delete.
2079 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
2080 (decode_miscellaneous): Delete.
2081 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
2082 (decode_dp_misc): Delete.
2083 (arm_decode_dp_misc): Renamed from decode_dp_misc.
2084 (decode_ld_st_word_ubyte): Delete.
2085 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
2086 (decode_media): Delete.
2087 (arm_decode_media): Renamed from decode_media.
2088 (decode_b_bl_ldmstm): Delete.
2089 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
2090 (decode_ext_reg_ld_st): Delete.
2091 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2092 (decode_unconditional): Delete.
2093 (arm_decode_unconditional): Renamed from decode_unconditional.
2095 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2097 Case insensitive lookups implementation.
2098 * dwarf2read.c: Include ctype.h.
2099 (struct mapped_index): New field version.
2100 (mapped_index_string_hash): New parameter index_version. New comment
2101 for it. Call tolower appropriately.
2102 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
2103 Choose the right index version for mapped_index_string_hash.
2104 (dwarf2_read_index): Support also the index version 5. Initialize the
2105 new struct mapped_index field version.
2106 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
2107 (find_slot): Explain the version needs. Pass INT_MAX for the new
2109 (write_psymtabs_to_index): Produce version 5.
2110 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
2111 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
2112 * psymtab.c (lookup_partial_symbol): Find the
2113 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
2115 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
2117 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
2118 (completion_list_add_name): New variable ncmp, initialize it, use it.
2119 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
2120 * utils.c (strcmp_iw): Support case_sensitive_off.
2121 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
2122 New function comment part. New variables saved_string1,
2123 saved_string2 and case_pass. Add a proper second pass.
2125 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2127 Replace re_comp/re_exec by regcomp/regexec.
2128 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
2129 (search_symbols_name_matches): Use them, use regexec.
2130 (search_symbols): New variable retval_chain, adjust the use of
2131 old_chain against it. Replace re_comp by regcomp. Use the new struct
2132 search_symbols_data fields, use regexec instead of re_exec.
2134 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2136 Format the code for the next patch.
2137 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
2138 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
2139 New variables c1 and c2.
2141 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2143 * infrun.c (proceed): Do not single-step into signal delivery
2144 when stepping off a breakpoint location.
2145 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
2146 (insert_step_resume_breakpoint_at_caller): Likewise.
2147 (insert_step_resume_breakpoint_at_sal): Likewise.
2148 (insert_longjmp_resume_breakpoint): Likewise.
2150 2011-04-27 Yao Qi <yao@codesourcery.com>
2152 * common/linux-ptrace.h: Remove include <sys/wait.h>.
2154 2011-04-27 Joel Brobecker <brobecker@adacore.com>
2156 * procfs.c (procfs_pass_signals): Fix advance declaration.
2158 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2160 * target.h (struct target_ops): Remove to_notice_signals;
2161 add to_pass_signals.
2162 (target_notice_signals): Remove.
2163 (target_pass_signals): Add prototype.
2164 * target.c (update_current_target): Remove to_notice_signals;
2165 mention to_pass_signals.
2166 (target_pass_signals): New function.
2167 (debug_to_notice_signals): Remove.
2168 (setup_target_debug): Do not install debug_to_notice_signals.
2170 * infrun.c (signal_pass): New global.
2171 (resume): Call target_pass_signals.
2172 (handle_inferior_event): Report all signals while stepping over
2173 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
2174 are re-inserted when stepping over a signal handler.
2175 (signal_cache_update): New function.
2176 (signal_stop_update): Call it.
2177 (signal_print_update): Likewise.
2178 (signal_pass_update): Likewise.
2179 (handle_command): Call signal_cache_update and target_pass_signals
2180 instead of target_notice_signals.
2181 (_initialize_infrun): Initialize signal_pass.
2183 * linux-nat.c (pass_mask): New global.
2184 (linux_nat_pass_signals): New function.
2185 (linux_nat_create_inferior): Report all signals initially.
2186 (linux_nat_attach): Likewise.
2187 (linux_nat_resume): Use pass_mask to decide whether to directly
2188 handle an inferior signal.
2189 (linux_nat_wait_1): Likewise.
2190 (linux_nat_add_target): Install to_pass_signals callback.
2192 * nto-procfs.c (notice_signals): Remove.
2193 (procfs_resume): Do not call notice_signals.
2194 (procfs_notice_signals): Remove.
2195 (procfs_pass_signals): New function.
2196 (init_procfs_ops): Install to_pass_signals callback instead of
2197 to_notice_signals callback.
2198 (_initialize_procfs): Report all signals initially.
2200 * procfs.c (procfs_notice_signals): Remove.
2201 (procfs_pass_signals): New function.
2202 (procfs_target): Install to_pass_signals callback instead of
2203 to_notice_signals callback.
2204 (register_gdb_signals): Remove.
2205 (procfs_debug_inferior): Report all signals initially.
2206 (procfs_init_inferior): Remove redundant register_gdb_signals call.
2208 * remote.c (remote_pass_signals): Add numsigs and pass_signals
2209 parameters; use them instead of calling signal_..._state routines.
2210 (remote_notice_signals): Remove.
2211 (remote_start_remote): Report all signals initially.
2212 (remote_resume): Do not call remote_pass_signals.
2213 (_initialize_remote): Install to_pass_signals callback instead of
2214 to_notice_signals callback.
2216 2011-04-27 Pedro Alves <pedro@codesourcery.com>
2218 * breakpoint.c (user_settable_breakpoint): Delete.
2219 (user_breakpoint_p): Remove check on user_settable_breakpoint.
2220 (delete_command): Check user_breakpoint_p instead of looking at
2221 the breakpoint's type.
2222 (disable_command): Ditto.
2223 (enable_command): Ditto.
2224 (delete_trace_command): Use user_breakpoint_p instead of looking
2225 at the breakpoint number directly. When checking if there are
2226 user visible tracepoints, in order to know whether to ask the user
2227 for confirmation, check whether the breakpoint is actually a
2230 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2232 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
2235 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2237 MI breakpoint notifications.
2239 * annotate.c (breakpoint_changed): Adjust parameter type.
2240 * breakpoint.c (set_breakpoint_condition): Adjust to change
2241 in breakpoint_modified type.
2242 (breakpoint_set_commands): Likewise.
2243 (do_map_commands_command): Likewise.
2244 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
2245 changed after bumping hit count.
2246 (bpstat_stop_status): Likewise.
2247 (print_one_breakpoint_location): Don't wrap in tuple here.
2248 (print_one_breakpoint): Always print individual locations.
2249 For locations, use unnamed tuple.
2250 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
2252 (create_catchpoint, create_syscall_event_catchpoint): Call
2253 breakpoint_created obsever.
2254 (mention): Don't call breakpoint_created observer.
2255 (create_breakpoint_sal): Call breakpoint_created observer.
2256 (create_breakpoint, watch_command_1): Likewise.
2257 (create_ada_exception_breakpoint): Likewise.
2258 (delete_breakpoint): Call breakpoint_deleted breakpoint.
2259 (locations_are_equal): New.
2260 (update_breakpoint_locations): If locations were changed, notify.
2261 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
2262 Call breakpoint_modified observer.
2264 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2265 (mi_cmd_break_insert): Don't set observers for modify and delete.
2266 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
2267 (mi_breakpoint_created, mi_breakpoint_deleted)
2268 (mi_breakpoint_modified): New.
2269 (mi_interpreter_init): Hook the above.
2270 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
2271 while -break-* commands are executing.
2272 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
2273 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
2275 (mi_ui_out_impl): Hook in mi_redirect.
2276 (mi_field_skip): True to the name, skip the field, don't output
2277 a field with an empty value.
2279 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2280 (gdbpy_breakpoint_deleted): Adjust.
2281 * tui/tui-hooks.c (tui_event_create_breakpoint)
2282 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
2284 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
2286 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
2287 (procfs_remove_hw_watchpoint): Likewise.
2289 2011-04-26 Michael Walle <michael@walle.cc>
2291 * remote.c (remote_start_remote): Ack packet after sending the
2294 2011-04-26 Yao Qi <yao@codesourcery.com>
2296 * linux-nat.c: Move common macros to ...
2297 Include linux-ptrace.h.
2298 * common/linux-ptrace.h: ... here. New.
2300 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2302 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
2303 !objfile_has_partial_symbols. New comment.
2304 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
2305 SYM_READ_PSYMBOLS is not present. Extend the comment.
2306 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
2308 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2310 * defs.h (ENUM_BITFIELD): Remove.
2312 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2313 Eli Zaretskii <eliz@gnu.org>
2315 * NEWS: Document the new gdbserver --once option.
2317 2011-04-21 Jie Zhang <jzhang918@gmail.com>
2319 * MAINTAINERS: Update my email address.
2321 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2323 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
2324 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
2325 function call if __STDC_ISO_10646__ macro is defined.
2326 (intermediate_encoding): New prototype.
2327 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
2328 to generate compile time error for unsupported gdb_wchar_t size.
2329 (ENDIAN_SUFFIX): New macro.
2330 (intermediate_encoding): New function.
2332 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2334 * ada-lang.c (struct add_partial_datum): Update the comment for
2335 expand_partial_symbol_name.
2336 (ada_add_partial_symbol_completions): Rename to ...
2337 (ada_expand_partial_symbol_name): ... here, change return type, update
2338 function comment, call symbol_completion_match instead of
2339 symbol_completion_add.
2340 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
2341 and ada_expand_partial_symbol_name.
2342 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
2344 (dw2_map_symbol_names): Remove.
2345 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
2346 * psymtab.c (map_symbol_names_psymtab): Remove.
2347 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
2348 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
2350 (psym_functions): Unlist map_symbol_names_psymtab.
2351 (map_partial_symbol_names): Rename to ...
2352 (expand_partial_symbol_names): ... here, change the FUN type, call
2353 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
2354 * psymtab.h (map_partial_symbol_names): Rename to ...
2355 (expand_partial_symbol_names): ... here, change the FUN type.
2356 * symfile.h (struct quick_symbol_functions): Update the description of
2357 expand_symtabs_matching. Remove map_symbol_names.
2358 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
2359 (struct add_name_data): Update the comment for
2360 expand_partial_symbol_name.
2361 (add_partial_symbol_name): Rename to ...
2362 (expand_partial_symbol_name): ... here. Replace
2363 completion_list_add_name call by strncmp.
2364 (default_make_symbol_completion_list_break_on): Use now
2365 expand_partial_symbol_names and expand_partial_symbol_name.
2366 * symtab.h (enum search_domain): New element ALL_DOMAIN.
2368 2011-04-20 Tom Tromey <tromey@redhat.com>
2370 * dwarf2read.c (save_gdb_index_command): Replace format
2371 documentation with a pointer to the manual.
2373 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2375 * regcache.c: Include remote.h.
2376 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
2377 (regcache_dump): Handle regcache_dump_remote.
2378 (maintenance_print_remote_registers): New function.
2379 (_initialize_regcache): Install "maint print remote-registers"
2381 * remote.c (map_regcache_remote_table): New function, factored out
2383 (init_remote_state): ... here.
2384 (remote_register_number_and_offset): New.
2385 * remote.h (remote_register_number_and_offset): Declare.
2387 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2389 * regcache.c (get_thread_arch_regcache): If creating a regcache for
2390 null_ptid, assume and allow a NULL address space, instead of
2391 asking the target for the ptid's address space.
2392 * infrun.c (ptid_is_pid): Remove assertion.
2394 2011-04-19 Tom Tromey <tromey@redhat.com>
2396 * windows-tdep.c (windows_xfer_shared_library):
2397 * windows-nat.c (get_module_name, windows_make_so):
2398 * v850-tdep.c (v850_handle_pushm):
2399 * utils.c (null_cleanup, gdb_realpath):
2400 * ui-out.c (get_next_header):
2401 * tracepoint.c (clear_traceframe_info):
2402 * symtab.c (lookup_symtab):
2403 * serial.h (struct serial_ops):
2404 * mipsread.c (read_alphacoff_dynamic_symtab):
2405 * infcmd.c (print_return_value):
2406 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
2407 * f-exp.y (parse_number):
2408 * exceptions.c (catch_exceptions):
2409 * dummy-frame.c (dummy_frame_this_id):
2410 * defs.h (struct cleanup):
2411 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
2412 * arm-tdep.c (arm_push_dummy_call):
2413 * amd64-tdep.h (amd64_collect_xsave):
2414 * amd64-tdep.c (amd64_collect_xsave):
2415 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
2416 * README (typing): Remove duplicate words.
2417 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
2418 * infrun.c (siginfo_value_read): Fix typo.
2419 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
2420 * top.c (source_line_number): Add comma.
2422 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
2424 * thread.c (any_live_thread_of_process): Prioritize threads
2425 that are not executing.
2426 * gdbthread.h (any_live_thread_of_process): Update comment
2427 as per above change.
2429 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
2431 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
2432 (scan_xcoff_symtab): Likewise.
2434 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2436 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
2439 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2440 Pedro Alves <pedro@codesourcery.com>
2442 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
2443 variables to simplify code and avoid == operator at end of
2444 line as this is against GNU coding standards.
2446 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2448 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
2449 lm_name to name_lm to avoid conflict with lm_name function.
2451 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2453 ARI fixes: Use only lowercase function name for static functions.
2454 * nto-tdep.c (LM_ADDR): Rename to...
2455 (lm_addr): New function name.
2456 (nto_relocate_section_addresses): Adapt to change above.
2457 * solib-sunos.c (LM_ADDR): Rename to...
2458 (lm_addr): New function name.
2459 (LM_NEXT): Rename to...
2460 (lm_next): New function name.
2461 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
2462 function name changes above.
2463 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
2464 (lm_addr_from_link_map): New function name.
2465 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2466 (has_lm_dynamic_from_link_map): New function name.
2467 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2468 (lm_dynamic_from_link_map): New function name.
2469 (LM_ADDR_CHECK): Rename to...
2470 (lm_addr_check): New function name.
2471 (LM_NEXT): Rename to...
2472 (lm_next): New function name.
2473 (LM_PREV): Rename to...
2474 (lm_prev): New function name.
2475 (LM_NAME): Rename to...
2476 (lm_name): New function name.
2477 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
2478 (ignore_first_link_map_entry): New function name.
2479 (svr4_keep_data_in_core): Adapt to function name changes above.
2480 (svr4_current_sos): Likewise.
2481 (enable_break): Likewise.
2482 (svr4_relocate_section_addresses): Likewise.
2484 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2487 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
2488 sprintf. Simplify code and avoid loosing memory.
2489 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
2490 (call0_frame_cache): Remove && operator from end of line.
2492 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2494 Fix libraries displacement if they change whether they were prelinked.
2495 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
2496 does not match. Comment why.
2498 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2500 * corelow.c: Include wrapper.h.
2501 (core_open): Call now gdb_target_find_new_threads.
2502 * wrapper.c: Include target.h.
2503 (gdb_target_find_new_threads): New.
2504 * wrapper.h (gdb_target_find_new_threads): New declaration.
2506 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2508 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
2509 even if !TARGET_HAS_EXECUTION.
2511 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2513 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
2514 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
2515 bfd_get_synthetic_symtab.
2516 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
2517 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
2518 parameter parent, remove the call to add_separate_debug_objfile.
2519 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
2520 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2521 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
2522 parent, new comment for it, call add_separate_debug_objfile for it.
2523 (symbol_file_add_separate): Pass objfile as the parameter parent,
2524 remove the call to add_separate_debug_objfile.
2525 (symbol_file_add_from_bfd): New parameter parent, pass it.
2526 (symbol_file_add): Pass NULL to the new parameter parent.
2527 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
2529 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2531 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
2534 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2536 Fix Python access to inlined frames.
2537 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
2538 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2540 2011-04-15 Tom Tromey <tromey@redhat.com>
2542 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
2544 2011-04-15 Gary Benson <gbenson@redhat.com>
2546 * MAINTAINERS: Add myself to write-after-approval section.
2548 2011-04-14 Mike Frysinger <vapier@gentoo.org>
2550 * remote-sim.c (sim_command_completer): New function.
2551 (_initialize_remote_sim): Set completer to sim_command_completer.
2553 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2555 * breakpoint.c (print_exception_catchpoint): Rename to ...
2556 (print_it_exception_catchpoint): ... this.
2557 (gnu_v3_exception_catchpoint_ops): Update with new name
2558 for print_it_exception_catchpoint.
2560 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
2562 * MAINTAINERS: Add myself for write after approval privileges.
2564 2011-04-13 Marek Polacek <mpolacek@redhat.com>
2566 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2568 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2570 * breakpoint.c (watch_command_1): Remove colon from exp_string.
2572 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2574 * breakpoint.c (save_breakpoints): Verify whether
2575 breakpoint_ops.print_recreate is defined before calling it.
2577 2011-04-11 Gary Benson <gbenson@redhat.com>
2579 Fix failure with --enable-maintainer-mode.
2580 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
2582 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2585 * symtab.c (search_symbols): Reorder the KIND description in the
2586 function comment. Remove the unused 4th element of types, types2,
2587 types3 and types4. New gdb_assert on KIND.
2588 (symtab_symbol_info): Remove the unused 4th element of classnames.
2589 New gdb_assert on KIND.
2590 * symtab.h (enum search_domain): New warning in the enum comment.
2591 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
2594 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2596 Fix crash of gdb save-index on a STABS file.
2597 * dwarf2read.c (write_psymtabs_to_index): Return also on no
2600 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2602 Fix DW_AT_accessibility compatibility with gcc-4.6+.
2603 * dwarf2read.c: Include ctype.h.
2604 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
2606 (dwarf2_add_field): Fix new_field->accessibility by calling
2607 dwarf2_default_access_attribute. Restructure setting accessibility
2609 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
2610 is_private and is_protected by calling
2611 dwarf2_default_access_attribute.
2613 2011-04-08 Kevin Buettner <kevinb@redhat.com>
2615 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
2616 to the initialization.
2618 2011-04-08 Steve Ellcey <sje@cup.hp.com>
2620 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
2623 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
2625 Remove support for old Cygwin 1.5 versions.
2626 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
2627 function on old Cygwin version.
2628 * windows-nat.c: Remove cygwin version check and always define
2629 __USEWIDE for Cygwin compilation.
2631 2011-04-07 Yao Qi <yao@codesourcery.com>
2633 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
2635 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
2636 (arm_copy_svc): Remove parameters INSN and TO.
2637 (decode_svc_copro): Update caller.
2638 * arm-tdep.h (struct displaced_step_closure): Remove parameters
2639 from function pointer `copy_svc_os'.
2641 2011-04-07 Yao Qi <yao@codesourcery.com>
2643 * arm-tdep.c (cleanup_branch): Set a correct return address in
2644 LR for ARM and Thumb.
2646 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2649 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
2650 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
2651 in the function comment, a new note on values compatibility.
2652 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
2653 * symtab.h (SYMBOL_HASH_NEXT): New.
2655 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
2657 * ppc-linux-nat.c (check_condition): Add len output parameter.
2658 Set it based on the memory region referenced in the condition
2659 expression. Update all callers.
2661 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2663 Fix crash regression on systems featuring .gdb_index.
2664 * objfiles.c (free_objfile): Move the
2665 forget_cached_source_info_for_objfile call earlier. Comment it.
2666 Extend the comment for objfile_free_data.
2668 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2670 Fix regression of displaying the debug format.
2671 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
2674 2011-04-04 Tom Tromey <tromey@redhat.com>
2676 * cli/cli-interp.c (struct captured_execute_command_args):
2678 (do_captured_execute_command): Remove.
2679 (safe_execute_command): Use TRY_CATCH.
2680 * cli/cli-script.c (struct wrapped_read_command_file_args):
2682 (wrapped_read_command_file): Remove.
2683 (script_from_file): Use TRY_CATCH.
2684 * exceptions.c (catch_exception): Remove.
2685 * exceptions.h (catch_exception): Remove.
2686 (deprecated_throw_reason): Update comment.
2687 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
2688 argument to 'context'.
2689 (mi_execute_command): Use TRY_CATCH.
2690 * remote.c (struct start_remote_args): Remove.
2691 (remote_start_remote): Update; change arguments.
2692 (remote_open_1): Use TRY_CATCH.
2694 2011-04-04 Tom Tromey <tromey@redhat.com>
2696 * tracepoint.c (scope_info): Update.
2697 * symtab.c (decode_line_spec): Update.
2698 * python/python.c (gdbpy_decode_line): Update.
2699 * linespec.h (decode_line_1): Update.
2700 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
2701 (decode_compound, find_method, symtab_from_filename)
2702 (decode_variable): Likewise.
2703 * cli/cli-cmds.c (edit_command): Update.
2704 (list_command): Update.
2705 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
2707 (create_breakpoint): Update.
2708 (until_break_command): Update.
2709 (addr_string_to_sals): Update.
2710 (decode_line_spec_1): Update.
2712 2011-04-04 Tom Tromey <tromey@redhat.com>
2714 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
2715 (do_captured_parse_breakpoint): Remove.
2716 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
2717 Use TRY_CATCH directly.
2719 2011-04-04 Tom Tromey <tromey@redhat.com>
2721 * symtab.h (free_symtab): Remove.
2722 (forget_cached_source_info_for_objfile): Declare.
2723 * symmisc.c (free_symtab): Remove.
2724 * source.c (forget_cached_source_info_for_objfile): New function.
2725 (forget_cached_source_info): Use it.
2726 * objfiles.c (free_objfile): Simplify check before calling
2727 clear_current_source_symtab_and_line. Call
2728 forget_cached_source_info_for_objfile.
2730 2011-04-04 Tom Tromey <tromey@redhat.com>
2732 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
2733 (new_symtab): Don't set `free_code' on symtab.
2734 (new_linetable): Properly handle size==0.
2735 * symtab.h (struct symtab) <free_code, free_func>: Remove.
2736 * symmisc.c (free_symtab): Don't free the linetable. Don't call
2738 * jv-lang.c (struct jv_per_objfile_data): New.
2739 (jv_per_objfile_free): Free the data.
2740 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2741 (get_java_class_symtab): Set the `dict' field on the
2742 jv_per_objfile_data.
2743 (free_class_block): Remove.
2744 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2747 2011-04-04 Tom Tromey <tromey@redhat.com>
2749 * symfile.c (reread_symbols): Update.
2750 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2752 * objfiles.c (allocate_objfile): Update.
2753 * cp-support.h (cp_check_possible_namespace_symbols): Don't
2755 * cp-namespace.c (lookup_symbol_file): Don't call
2756 lookup_possible_namespace_symbol.
2757 (initialize_namespace_symtab, get_possible_namespace_block)
2758 (free_namespace_block, cp_check_possible_namespace_symbols)
2759 (check_possible_namespace_symbols_loop)
2760 (check_one_possible_namespace_symbol)
2761 (lookup_possible_namespace_symbol): Remove.
2762 (maintenance_cplus_namespace): Replace with notice.
2763 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2765 2011-04-04 Tom Tromey <tromey@redhat.com>
2767 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2768 * symtab.h (struct symtab) <producer, debugformat>: Now const.
2769 * symmisc.c (free_symtab): Don't free debugformat.
2770 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2771 (record_debugformat, record_producer): Document.
2772 * buildsym.c (end_symtab): Don't save debugformat and producer
2774 (end_symtab): Don't free debugformat and producer fields.
2775 (record_debugformat): Don't call xstrdup.
2776 (record_producer): Likewise.
2778 2011-04-04 Tom Tromey <tromey@redhat.com>
2780 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2781 (source_line_charpos, source_charpos_line): Remove.
2783 2011-04-04 Tom Tromey <tromey@redhat.com>
2785 * symtab.h (domain_enum): Split in two...
2786 (enum search_domain): New.
2787 (search_symbols): Update.
2788 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2789 redundant declarations.
2790 (search_symbols): Change 'kind' argument to search_domain.
2792 (print_symbol_info): Likewise.
2793 (symtab_symbol_info): Likewise.
2794 * symfile.h (struct quick_symbol_functions)
2795 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2796 <expand_symtabs_matching>: Likewise.
2797 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2798 (expand_symtabs_matching_via_partial): Update.
2799 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2800 (dw2_expand_symtabs_for_function): Update.
2801 * block.h: Moved anonymous enum...
2802 * defs.h (enum block_enum): ... here. Now named.
2804 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2806 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2807 * version.in: Bump version to 7.3.50.20110403-cvs.
2809 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2811 * NEWS: Create a new section for the next release branch.
2812 Rename the section of the current branch, now that it has
2815 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2817 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2818 for "fpscr" in target description.
2820 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2822 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2823 initialize it. Delay HASH initialization. Strip the part after open
2824 parenthesis for languages with qualifiers. Call do_cleanups.
2826 2011-04-01 Tom Tromey <tromey@redhat.com>
2828 * utils.c (report_command_stats): Don't print `-' for negative
2831 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
2833 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2834 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2837 2011-04-01 Joel Brobecker <brobecker@adacore.com>
2839 * breakpoint.h (bpdisp_text): Add declaration.
2840 * breakpoint.c (bpdisp_text): Make non-static.
2841 * ada-lang.c: #include "mi/mi-common.h".
2842 (print_it_exception): Rewrite to improve GDB/MI output.
2844 2011-04-01 Pedro Alves <pedro@codesourcery.com>
2846 * arm-tdep.h (struct address_space): Add forward declaration.
2848 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2850 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2851 * arm-tdep.c (arm_override_mode): New global.
2852 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
2853 execution mode heuristics.
2854 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
2855 second single-step breakpoint if needed, using
2856 arm_insert_single_step_breakpoint.
2857 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
2858 ARM execution mode, do not call thumb_get_next_pc_raw.
2859 (arm_get_next_pc): Encode execution mode in return value. Call
2860 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
2861 (arm_insert_single_step_breakpoint): New function.
2862 (arm_software_single_step): Call it.
2863 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
2864 argument to return execution mode of sigreturn target.
2865 (arm_linux_syscall_next_pc): Use it.
2866 (arm_linux_copy_svc): Update call.
2867 (arm_linux_software_single_step): Call
2868 arm_insert_single_step_breakpoint.
2870 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2872 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
2875 2011-03-31 Tom Tromey <tromey@redhat.com>
2877 * varobj.c (update_dynamic_varobj_children): Properly handle
2878 errors from iterator.
2880 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2882 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
2883 struct linkage name twice.
2885 2011-03-31 Tom Tromey <tromey@redhat.com>
2887 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
2888 missing ">" to message.
2890 2011-03-31 Tom Tromey <tromey@redhat.com>
2892 * varobj.c (instantiate_pretty_printer): Remove duplicate
2895 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
2897 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
2898 if neither saved value nor register available (e.g. signal frame).
2900 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2902 * macroexp.c (expand): Avoid uninitialized variable
2905 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2907 * breakpoint.c (break_range_command): Fix typo in comment.
2909 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2910 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2912 Implement support for PowerPC BookE ranged breakpoints.
2913 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
2914 * breakpoint.h (struct bp_target_info) <length>: New member
2916 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
2917 instead of struct breakpoint as argument, and also add ASPACE
2918 and BP_ADDR arguments. Update all callers.
2919 (struct breakpoint_ops) <print_one_detail>: New method.
2920 (struct breakpoint) <addr_string_range_end>: New member variable.
2921 * breakpoint.c (breakpoint_location_address_match): Add function
2923 (insert_bp_location): Set bl->target_info.length.
2924 (breakpoint_here_p): Call breakpoint_location_address_match.
2925 (moribund_breakpoint_here_p): Likewise.
2926 (regular_breakpoint_inserted_here_p): Likewise.
2927 (breakpoint_thread_match): Likewise.
2928 (bpstat_stop_status): Likewise.
2929 (bpstat_check_location): Move call to
2930 breakpoint_ops.breakpoint_hit to the top.
2931 (print_one_breakpoint_location): Call
2932 breakpoint_ops.print_one_detail if available.
2933 (breakpoint_address_match_range): New function.
2934 (breakpoint_location_address_match): Likewise.
2935 (breakpoint_locations_match): Compare the length field of the
2937 (hw_breakpoint_used_count): Count resources used by all locations
2938 in a breakpoint, and use breakpoint_ops.resources_needed if
2940 (breakpoint_hit_ranged_breakpoint): New function.
2941 (resources_needed_ranged_breakpoint): Likewise.
2942 (print_it_ranged_breakpoint): Likewise.
2943 (print_one_ranged_breakpoint): Likewise.
2944 (print_one_detail_ranged_breakpoint): Likewise.
2945 (print_mention_ranged_breakpoint): Likewise.
2946 (print_recreate_ranged_breakpoint): Likewise.
2947 (ranged_breakpoint_ops): New structure.
2948 (find_breakpoint_range_end): New function.
2949 (break_range_command): Likewise.
2950 (delete_breakpoint): Free addr_string_range_end.
2951 (update_breakpoint_locations): Add SALS_END argument. Update
2952 all callers. Calculate breakpoint length if a non-zero SALS_END
2953 is given. Call breakpoint_locations_match instead of
2954 breakpoint_address_match.
2955 (reset_breakpoint): Find SaL of the end of the range if B is a
2957 (_initialize_breakpoint): Register break-range command.
2958 * defs.h (print_core_address): Add function prototype.
2959 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
2961 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
2962 (ppc_linux_remove_hw_breakpoint): Likewise.
2963 (_initialize_ppc_linux_nat): Initialize
2964 to_ranged_break_num_registers.
2965 * target.c (update_current_target): Add comment about
2966 to_ranged_break_num_registers.
2967 (target_ranged_break_num_registers): New function.
2968 * target.h (struct target_ops) <to_ranged_break_num_registers>:
2970 (target_ranged_break_num_registers): Add function prototype.
2971 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
2972 * utils.c (print_core_address): ... here.
2974 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
2976 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
2977 variable compiler warning.
2979 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
2981 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
2983 (re_set_breakpoint): ... to here ...
2984 (addr_string_to_sals): ... and here.
2986 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2988 * Makefile.in (SFILES): Add missing C sources.
2989 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
2990 Add missing headers.
2992 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2994 * .gitignore: New file.
2996 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2998 * NEWS: Mention new cfi device simulation.
3000 2011-03-29 Tom Tromey <tromey@redhat.com>
3002 * dwarf2read.c (fixup_partial_die): Handle linkage name on
3003 otherwise anonymous types.
3004 (dwarf2_name): Likewise.
3005 * valops.c (value_struct_elt_for_reference): Refine artificial
3006 type logic. Call error if j==-1.
3008 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
3010 Fix false GCC warning.
3011 * infcall.c (find_function_addr): Initialize funaddr.
3013 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
3015 Fix mingw compilation with --enable-targets=all.
3016 * remote-mips.c (gdb_usleep.h): Include header.
3017 (mips_enter_debug): Use gdb_usleep instead of sleep.
3019 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3021 Support resolution of STT_GNU_IFUNC via breakpoints.
3022 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
3023 bp_gnu_ifunc_resolver_return.
3024 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
3025 the loop. Support bp_gnu_ifunc_resolver and
3026 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
3027 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
3029 (bptype_string, print_one_breakpoint_location): Support
3030 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
3031 (user_settable_breakpoint): Return true also for
3032 bp_gnu_ifunc_resolver.
3033 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
3034 bp_gnu_ifunc_resolver_return.
3035 (set_breakpoint_location_function): New parameter explicit_loc,
3036 describe it. Call find_pc_partial_function_gnu_ifunc with new
3037 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
3038 EXPLICIT_LOC is not set.
3039 (set_raw_breakpoint): Set EXPLICIT_LOC for
3040 set_breakpoint_location_function.
3041 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
3042 set_breakpoint_location_function.
3043 (mention): Support bp_gnu_ifunc_resolver and
3044 bp_gnu_ifunc_resolver_return.
3045 (add_location_to_breakpoint): Set EXPLICIT_LOC for
3046 set_breakpoint_location_function.
3047 (update_breakpoint_locations): Remove static.
3048 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
3049 bp_gnu_ifunc_resolver_return.
3050 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
3051 bp_gnu_ifunc_resolver_return.
3052 (update_breakpoint_locations): New declaration.
3053 * elfread.c: Include gdbthread.h and regcache.h.
3054 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
3056 (elf_gnu_ifunc_fns): Install them.
3057 * minsyms.c (stub_gnu_ifunc_resolver_stop)
3058 (stub_gnu_ifunc_resolver_return_stop): New functions.
3059 (stub_gnu_ifunc_fns): Install them.
3060 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
3061 and gnu_ifunc_resolver_return_stop.
3062 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
3064 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3066 STT_GNU_IFUNC reader implementation.
3067 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
3068 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
3069 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
3070 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
3071 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
3072 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
3073 (elf_gnu_ifunc_resolve_addr): New.
3074 (elf_symfile_read): Call elf_rel_plt_read.
3075 (elf_gnu_ifunc_fns): New.
3076 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
3077 Install elf_gnu_ifunc_fns.
3078 * infcall.c (find_function_return_type): New function.
3079 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
3080 * minsyms.c (stub_gnu_ifunc_resolve_addr)
3081 (stub_gnu_ifunc_resolve_name): New functions.
3082 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
3083 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
3084 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
3086 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3088 Code cleanup for later STT_GNU_IFUNC support.
3089 * infcall.c (find_function_addr): Remove variable code, use explicit
3090 dereferences for it. Move VALUE_TYPE initialization later.
3092 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3094 GDB find_pc_partial_function support for STT_GNU_IFUNC.
3095 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
3096 (clear_pc_function_cache): Clear it.
3097 (find_pc_partial_function): Rename to ...
3098 (find_pc_partial_function_gnu_ifunc): ... this function. New
3099 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
3100 (find_pc_partial_function): New wrapper for this function.
3101 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
3103 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3105 GDB internal type support for STT_GNU_IFUNC.
3106 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
3107 (elf_symtab_read): Set mst_text_gnu_ifunc for
3108 BSF_GNU_INDIRECT_FUNCTION.
3109 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
3110 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
3111 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
3112 nodebug_got_plt_symbol.
3113 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
3114 (TYPE_GNU_IFUNC): New.
3115 (struct main_type): New field flag_gnu_ifunc.
3116 (struct builtin_type): New field builtin_func_func.
3117 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
3118 nodebug_got_plt_symbol.
3119 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
3120 (in_gnu_ifunc_stub): New.
3121 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
3123 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
3124 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
3125 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
3127 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
3128 * symtab.c (search_symbols): Likewise.
3129 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
3130 and mst_slot_got_plt.
3131 (in_gnu_ifunc_stub): New declaration.
3133 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3135 Support a ring of related breakpoints.
3136 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
3137 other functions, add gdb_assert.
3138 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
3139 watchpoint_del_at_next_stop.
3140 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
3141 (bpstat_stop_status): Handle ring in related_breakpoint.
3142 (set_raw_breakpoint_without_location): Initialize ring in
3144 (delete_breakpoint): Handle ring in related_breakpoint, use
3145 watchpoint_del_at_next_stop.
3146 (map_breakpoint_numbers): Handle ring in related_breakpoint.
3148 2011-03-28 Tom Tromey <tromey@redhat.com>
3151 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
3152 with `language_minimal'.
3154 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
3156 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
3157 instead of checking for STT_ARM_TFUNC symbol type.
3159 2011-03-25 Tom Tromey <tromey@redhat.com>
3161 * linespec.c (symbol_found): Restore line-based result for
3162 non-LOC_LABEL symbols.
3164 2011-03-25 Kai Tietz <ktietz@redhat.com>
3166 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
3167 instead of strcmp for comparison.
3168 (tui_source_is_displayed): Likewise.
3169 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
3171 2011-03-24 Mark Wielaard <mjw@redhat.com>
3173 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
3175 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
3176 (find_partial_die_in_comp_unit): Likewise in comment.
3177 (read_attribute_value): Likewise.
3178 (lookup_die_type): Likewise.
3179 (dwarf_form_name): Likewise.
3180 (dump_die_shallow): Likewise.
3181 (follow_die_ref_or_sig): Likewise.
3183 2011-03-24 Tom Tromey <tromey@redhat.com>
3185 PR breakpoints/11816:
3186 * linespec.c (decode_line_1): Parse `function:label' linespecs.
3187 (decode_compound): Update.
3188 (find_function_symbol): New function.
3189 (decode_dollar): Update.
3190 (decode_label): Add 'function_symbol' parameter. Handle
3191 function-relative labels.
3192 (decode_variable): Update.
3193 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
3194 not its line. Set `special_display' and canonical name for
3197 2011-03-24 Tom Tromey <tromey@redhat.com>
3199 * linespec.h (struct linespec_result) <special_display>: New
3201 * breakpoint.h (struct breakpoint) <display_canonical>: New
3203 * breakpoint.c (print_breakpoint_location): Respect
3205 (create_breakpoint_sal): Add 'display_canonical' parameter.
3206 (create_breakpoints_sal): Update.
3207 (create_breakpoint): Update.
3209 2011-03-24 Tom Tromey <tromey@redhat.com>
3211 * symtab.c (decode_line_spec): Update.
3212 * linespec.c (build_canonical_line_spec): Change type of
3214 (decode_line_2, decode_line_1, decode_objc, decode_compound)
3215 (find_method, decode_all_digits, decode_dollar, decode_label)
3216 (symbol_found): Likewise.
3217 (init_linespec_result): New function.
3218 * breakpoint.c (struct captured_parse_breakpoint_args)
3219 <canonical_p>: New field, replaces addr_string_p.
3220 (create_breakpoints_sal): Add 'canonical' parameter, replacing
3222 (parse_breakpoint_sals): Likewise.
3223 (do_captured_parse_breakpoint): Update.
3224 (create_breakpoint): Use struct linespec_result.
3225 (until_break_command): Update.
3226 (breakpoint_re_set_one): Update.
3227 (decode_line_spec_1): Update.
3228 * linespec.h (struct linespec_result): New.
3229 (init_linespec_result): Declare.
3231 2011-03-23 Pedro Alves <pedro@codesourcery.com>
3233 * regcache.c (regcache_raw_read): If the target didn't supply a
3234 given raw register, mark it as unavailable.
3236 2011-03-23 Kai Tietz <ktietz@redhat.com>
3238 * breakpoint.c (clear_command): Use filename_cmp
3239 instead of strcmp for comparison.
3240 * buildsym.c (watch_main_source_file_lossage): Likewise.
3241 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
3242 checking just for slash.
3243 * dbxread.c (read_dbx_symtab): Use lbasename instead of
3244 strrchr and filename_cmp instead of strcmp for filenames.
3245 (add_old_header_file): Use filename_cmp
3246 instead of strcmp for comparison.
3247 * exec.c (exec_set_section_address): Likewise.
3248 * macrotab.c (macro_lookup_inclusion): Likewise.
3249 (macro_lookup_inclusion): Likewise.
3250 * elfread.c (_initialize_elfread): Likewise.
3251 (elfstab_offset_sections): Likewise.
3252 (elfstab_offset_sections): Use lbasename instead of
3254 * mdebugread.c (parse_partial_symbols): Likewise.
3255 (arse_partial_symbols): Use filename_(n)cmp instead of
3256 str(n)cmp for comparison.
3257 * minsyms.c (lookup_minimal_symbol): Likewise.
3258 * psymtab.c (read_psymtabs_with_filename): Likewise.
3259 * solib.c (solib_read_symbols): Likewise.
3260 (reload_shared_libraries_1): Likewise.
3261 * symmisc.c (maintenance_print_symbols): Likewise.
3262 * symfile.c (separate_debug_file_exists): Likewise.
3263 (reread_symbols): Likewise.
3264 (find_separate_debug_file_by_debuglink): Likewise.
3265 * remote-fileio.c (remote_fileio_func_rename): Likewise.
3266 * source.c (add_path): Likewise.
3267 * symtab.c (filename_seen): Likewise.
3268 (file_matches): Likewise.
3269 (print_symbol_info): Likewise.
3270 (maybe_add_partial_symtab_filename): Likewise.
3271 (make_source_files_completion_list): Likewise.
3272 * xml-syscall.c (init_sysinfo): Likewise.
3273 * windows-nat.c (_initialize_check_for_gdb_ini): Use
3274 IS_DIR_SEPARATOR for checking for trailing path separator.
3276 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3278 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
3279 label abort_expression.
3280 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
3281 DWARF_VALUE_OPTIMIZED_OUT.
3283 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3286 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
3287 to linkage_name. Invert its value. Update the function comment.
3288 (c_type_print_varspec_suffix): Invert it at the caller.
3289 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
3291 2011-03-22 Pedro Alves <pedro@codesourcery.com>
3293 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
3294 errors when reading the `stop_pc'.
3295 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
3298 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3300 * NEWS: Document gdb.Write stream keyword.
3302 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3305 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3306 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3307 (dwarf2_add_field): Fix new_field->accessibility for
3308 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3310 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3314 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
3315 other error classes. Do not print stack trace.
3317 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3319 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3320 (dwarf2_add_field): Fix new_field->accessibility for
3321 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3323 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
3325 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
3326 encountering a load via a non-SP register.
3328 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
3330 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
3331 field in returned unwinder.
3333 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3335 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
3337 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3339 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
3342 2012-03-18 Pedro Alves <pedro@codesourcery.com>
3344 * frame.c (frame_unwind_register): Throw an error if unwinding the
3346 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
3347 an unwind stop reason.
3348 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
3349 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
3350 UNWIND_UNAVAILABLE>: New.
3351 * inline-frame.c (inline_frame_unwind): Install
3352 default_frame_unwind_stop_reason.
3353 * frame-unwind.c: Include "exceptions.h".
3354 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
3355 (default_frame_unwind_stop_reason): New.
3356 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
3357 (default_frame_unwind_stop_reason): Declare.
3358 (struct frame_unwind) <stop_reason>: New function pointer.
3360 * dummy-frame.c: Install default_frame_unwind_stop_reason.
3361 * dwarf2-frame.c: Include exceptions.h.
3362 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
3363 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
3364 computing the CFA. If such an error was thrown, set
3365 unavailable_retaddr.
3366 (dwarf2_frame_unwind_stop_reason): New.
3367 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
3369 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
3370 (dwarf2_signal_frame_unwind): Ditto.
3372 * amd64-tdep.c: Include "exceptions.h".
3373 (struct amd64_frame_cache): New field "base_p".
3374 (amd64_init_frame_cache): Clear it.
3375 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
3376 Avoid reading registers with functions that throw if the register
3377 is not necessary to compute the frame base.
3378 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3379 swallowing NOT_AVAILABLE_ERROR.
3380 (amd64_frame_unwind_stop_reason): New.
3381 (amd64_frame_this_id): Don't build a frame id if the frame base
3383 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
3384 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3385 base_p if the frame base was computable.
3386 (amd64_sigtramp_frame_unwind_stop_reason): New.
3387 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
3388 frame base was unavailable.
3389 (amd64_sigtramp_frame_unwind): Install
3390 amd64_sigtramp_frame_unwind_stop_reason.
3391 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3392 base_p if the frame base was computable.
3393 (amd64_epilogue_frame_unwind_stop_reason): New.
3394 (amd64_epilogue_frame_this_id): Don't build a frame id if the
3395 frame base was unavailable.
3396 (amd64_epilogue_frame_unwind): Install
3397 amd64_epilogue_frame_unwind_stop_reason.
3398 * i386-tdep.c: Include "exceptions.h".
3399 (struct i386_frame_cache): New field "base_p".
3400 (i386_init_frame_cache): Clear it.
3401 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
3402 Avoid reading registers with functions that throw if the register
3403 is not necessary to compute the frame base.
3404 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3405 swallowing NOT_AVAILABLE_ERROR.
3406 (i386_frame_unwind_stop_reason): New.
3407 (i386_frame_this_id): Don't build a frame id if the frame base was
3409 (i386_frame_prev_register): Handle unavailable SP.
3410 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
3411 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3412 base_p if the frame base was computable.
3413 (i386_epilogue_frame_unwind_stop_reason): New.
3414 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
3415 base was unavailable.
3416 (i386_epilogue_frame_unwind): Install
3417 i386_epilogue_frame_unwind_stop_reason.
3418 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3419 base_p if the frame base was computable.
3420 (i386_sigtramp_frame_unwind_stop_reason): New.
3421 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
3422 base was unavailable.
3423 (i386_sigtramp_frame_unwind): Install
3424 i386_sigtramp_frame_unwind_stop_reason.
3425 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
3426 type's size, not the register's.
3427 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
3429 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
3430 default_frame_unwind_stop_reason.
3431 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
3432 (alpha_heuristic_frame_unwind): Ditto.
3433 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
3434 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
3435 * avr-tdep.c (avr_frame_unwind): Ditto.
3436 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
3438 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
3439 * frv-tdep.c (frv_frame_unwind): Ditto.
3440 * h8300-tdep.c (h8300_frame_unwind): Ditto.
3441 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
3442 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
3443 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
3444 (hppa_stub_frame_unwind): Ditto.
3445 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
3446 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
3447 (ia64_libunwind_frame_unwind)
3448 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
3449 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
3450 * lm32-tdep.c (lm32_frame_unwind): Ditto.
3451 * m32c-tdep.c (m32c_unwind): Ditto.
3452 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
3453 * m32r-tdep.c (m32r_frame_unwind): Ditto.
3454 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
3455 * m68k-tdep.c (m68k_frame_unwind): Ditto.
3456 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
3457 * m88k-tdep.c (m88k_frame_unwind): Ditto.
3458 * mep-tdep.c (mep_frame_unwind): Ditto.
3459 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
3460 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
3461 (mips_stub_frame_unwind): Ditto.
3462 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
3463 * moxie-tdep.c (moxie_frame_unwind): Ditto.
3464 * mt-tdep.c (mt_frame_unwind): Ditto.
3465 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
3466 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
3467 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
3468 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
3469 (s390_sigtramp_frame_unwind): Ditto.
3470 * score-tdep.c (score_prologue_unwind): Ditto.
3471 * sh-tdep.c (sh_frame_unwind): Ditto.
3472 * sh64-tdep.c (sh64_frame_unwind): Ditto.
3473 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
3474 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
3475 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
3476 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
3477 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
3478 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
3479 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
3480 (sparc64obsd_trapframe_unwind): Ditto.
3481 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
3482 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
3483 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
3484 * v850-tdep.c (v850_frame_unwind): Ditto.
3485 * vax-tdep.c (vax_frame_unwind): Ditto.
3486 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
3487 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
3488 * xtensa-tdep.c (xtensa_unwind): Ditto.
3490 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3492 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
3493 there's always a frame. Use get_frame_pc_if_available instead of
3494 get_frame_pc, and if there's no PC available, don't look up a
3497 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3499 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
3502 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3504 * tracepoint.c (set_traceframe_context): Handle unavailable PC
3507 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3509 * frame.h (frame_unwind_caller_pc_if_available): Declare.
3510 * frame.c (frame_unwind_caller_pc_if_available): New.
3511 * stack.c (frame_info): Handle unavailable PC.
3513 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3515 * frame.c (frame_unwind_pc): Rename to ...
3516 (frame_unwind_pc_if_available): ... this. New `pc' output
3517 parameter. Change return type to int. Gracefully handle
3518 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
3519 happened, or 1 otherwise.
3520 (frame_unwind_pc): Reimplement on top of
3521 frame_unwind_pc_if_available.
3522 (get_frame_func): Rename to ...
3523 (get_frame_func_if_available): New `pc' output parameter. Change
3524 return type to int. Gracefully handle the PC not being available.
3525 (get_frame_func): Reimplement on top of
3526 get_frame_func_if_available.
3527 (select_frame): Handle the PC being unavailable.
3528 (get_prev_frame): Handle the PC being unavailable.
3529 (get_frame_pc_if_available): New.
3530 (get_frame_address_in_block_if_available): New.
3531 (find_frame_sal): Handle the frame PC not being available.
3532 * frame.h (get_frame_pc_if_available): Declare.
3533 (get_frame_address_in_block_if_available): Declare.
3534 (get_frame_func_if_available): Declare.
3535 * stack.c (print_frame_info): Handle the PC being unavailable.
3536 (find_frame_funname): Ditto.
3537 (print_frame): Handle the PC being unavailable.
3538 (get_frame_language): Ditto.
3539 * blockframe.c (get_frame_block): Ditto.
3540 * macroscope.c (default_macro_scope): Ditto.
3541 * tui/tui-stack.c (tui_show_frame_info): Ditto.
3543 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3545 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
3546 NOT_AVAILABLE_ERROR when evaluating the location expression.
3548 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3550 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
3551 returning that the register piece is unavailable/optimized out.
3552 (write_pieced_value): Handle get_frame_register_bytes returning
3553 that the register piece is unavailable/optimized out when doing a
3554 read-modify write of a bitfield.
3555 * findvar.c (value_from_register): Handle get_frame_register_bytes
3556 returning that the register piece is unavailable/optimized out.
3557 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
3558 and `unavailablep'. Throw error on bad debug info. Use
3559 frame_register instead of frame_register_read, to fill in the new
3561 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
3563 * valops.c: (value_assign): Adjust, and handle
3564 get_frame_register_bytes failing.
3565 * spu-tdep.c: Include exceptions.h.
3566 (spu_software_single_step): Adjust, and handle
3567 get_frame_register_bytes failing.
3568 (spu_get_longjmp_target): Ditto.
3569 * gdbarch.sh (register_to_value): Change to return int. New
3570 parameters `optimizedp' and `unavailablep'.
3571 * gdbarch.h, gdbarch.c: Regenerate.
3572 * i386-tdep.c (i386_register_to_value): Adjust to new
3573 gdbarch_register_to_value interface.
3574 * i387-tdep.c (i387_register_to_value): Ditto.
3575 * i387-tdep.h (i387_register_to_value): Ditto.
3576 * alpha-tdep.c (alpha_register_to_value): Ditto.
3577 * ia64-tdep.c (ia64_register_to_value): Ditto.
3578 * m68k-tdep.c (m68k_register_to_value): Ditto.
3579 * mips-tdep.c (mips_register_to_value): Ditto.
3580 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
3582 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3584 * findvar.c (value_of_register): Mark the value as unavailable, if
3585 the register is unavailable.
3586 * frame.h (frame_register_unwind): New `unavailablep' parameter.
3587 (frame_register): New `unavailablep' parameter.
3588 (frame_register_read): Update comment.
3589 * frame.c (frame_register_unwind): New `unavailablep' parameter.
3590 Set it if the register is unavailable. If the register is
3591 unavailable, clear the output buffer.
3592 (frame_register): New `unavailablep' parameter. Pass it down.
3593 (frame_unwind_register): Adjust.
3594 (put_frame_register): Adjust.
3595 (frame_register_read): Adjust. Also return false if the register
3597 (frame_register_unwind_location): Adjust.
3598 * sentinel-frame.c (sentinel_frame_prev_register): If the register
3599 is unavailable, mark the value accordingly.
3600 * stack.c (frame_info): Handle unavailable registers.
3602 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3604 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
3605 simplify, using regcache_cooked_read.
3607 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3609 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
3610 (regcache_raw_read_unsigned, regcache_raw_read_signed)
3611 (regcache_raw_read_unsigned, regcache_raw_read_part)
3612 (regcache_cooked_read, regcache_cooked_read_signed)
3613 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
3614 (regcache_cooked_read_ftype): Change return to enum
3616 * regcache.c: Include exceptions.h
3617 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
3618 (do_cooked_read): Change return to enum register_status. Always
3619 forward to regcache_cooked_read.
3620 (regcache_raw_read): Change return to enum register_status. If
3621 the register is not REG_VALID, memset the buffer. Return the
3623 (regcache_raw_read_signed): Handle non-REG_VALID registers and
3624 return the register's status.
3625 (regcache_raw_read_unsigned): Ditto.
3626 (regcache_cooked_read): Change return to enum register_status.
3627 Assert that with read-only regcaches, the register's status must
3628 be known. If the regcache is read-only, and the register is not
3629 REG_VALID, memset the buffer. Return the register's status.
3630 (regcache_cooked_read_signed): Change return to enum
3631 register_status. Handle non-REG_VALID registers and return the
3633 (regcache_cooked_read_unsigned): Change return to enum
3634 register_status. Handle non-REG_VALID registers and return the
3636 (regcache_xfer_part, regcache_raw_read_part)
3637 (regcache_cooked_read_part): Change return to enum
3638 register_status. Return the register's status.
3639 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
3641 (regcache_dump): Handle unavailable cooked registers.
3642 * frame.c (do_frame_register_read): Adjust interface to match
3643 regcache_cooked_read_ftype.
3644 * gdbarch.sh (pseudo_register_read): Change return to enum
3646 * gdbarch.h, gdbarch.c: Regenerate.
3648 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
3650 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
3651 register_status. If reading a raw register indicates the raw
3652 register is not valid, return the raw register's status,
3653 otherwise, return REG_VALID.
3654 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
3655 register_status. Handle non-REG_VALID raw registers and return
3656 the register's status.
3657 * arm-tdep.c (arm_neon_quad_read)
3658 (arm_pseudo_read): Change return to enum register_status. Handle
3659 non-REG_VALID raw registers and return the register's status.
3660 * avr-tdep.c (avr_pseudo_register_read): Ditto.
3661 * frv-tdep.c (frv_pseudo_register_read): Ditto.
3662 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
3663 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
3664 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
3666 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
3667 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
3668 (m32c_part_write, m32c_cat_read, m32c_cat_write)
3669 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
3670 (m32c_pseudo_register_read): Change return to enum
3671 register_status. Adjust.
3672 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
3673 enum register_status. Return the register's status.
3674 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
3675 register_status. Return the register's status.
3676 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
3677 * mips-tdep.c (mips_pseudo_register_read): Ditto.
3678 * mt-tdep.c (mt_pseudo_register_read): Ditto.
3679 * rs6000-tdep.c (move_ev_register_func): New typedef.
3680 (e500_move_ev_register): Use it. Change return to enum
3681 register_status. Return the register's status.
3682 (do_regcache_raw_read): New function.
3683 (do_regcache_raw_write): New function.
3684 (e500_pseudo_register_read): Change return to enum
3685 register_status. Return the register's status. Use
3686 do_regcache_raw_read.
3687 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
3688 (dfp_pseudo_register_read): Change return to enum register_status.
3689 Return the register's status.
3690 (vsx_pseudo_register_read): Ditto.
3691 (efpr_pseudo_register_read): Ditto.
3692 (rs6000_pseudo_register_read): Ditto.
3693 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
3694 register_status. Return the register's status.
3695 * sh64-tdep.c (pseudo_register_read_portions): New function.
3696 (sh64_pseudo_register_read): Change return to enum
3697 register_status. Use pseudo_register_read_portions. Return the
3699 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
3700 register_status. Return the register's status.
3701 * sh-tdep.c (pseudo_register_read_portions): New function.
3702 (sh_pseudo_register_read): Change return to enum register_status.
3703 Use pseudo_register_read_portions. Return the register's status.
3704 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
3705 enum register_status. Return the register's status.
3706 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
3707 * spu-tdep.c (spu_pseudo_register_read_spu)
3708 (spu_pseudo_register_read): Ditto.
3709 * xtensa-tdep.c (xtensa_register_read_masked)
3710 (xtensa_pseudo_register_read): Ditto.
3711 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
3713 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3715 * python/py-value.c (valpy_getitem): Fix formatting of error function
3718 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3720 ARI fixes: Add missing internationalization markups throughout
3722 * darwin-nat-info.c: Ditto.
3725 * mi/mi-main.c: Ditto.
3727 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3729 ARI fixes: Add missing internationalization markups throughout
3732 * cp-name-parser.y: Ditto.
3735 * objc-exp.y: Ditto.
3738 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3740 ARI fixes: Messages should have no trailing new lines.
3741 * darwin-nat.c (mach_check_error): Remove trailing new line from
3742 warning function call message.
3743 * record.c (bfdcore_read): Idem for error call.
3745 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3747 * common/signals.c (target_signal_from_host): Add _ markup to error
3748 function call message.
3749 (target_signal_to_host): Add _ markup and remove trailing new line
3750 from warning call message.
3751 (target_signal_from_command): Add _ markup to error function call
3754 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
3758 * python/python.c (gdbpy_write): Accept a stream argument and
3759 operate to the appropriate stream.
3760 (gdbpy_flush): Likewise.
3761 (_initialize_python): Add stream constants.
3762 (finish_python_initialization): Add GdbOutputErrorFile class.
3764 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3766 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3768 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3770 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
3771 to store_signed_integer. Add debug message when relocating CALL
3772 instructions. Fix formatting of debug message.
3773 * i386-tdep.c (i386_relocate_instruction): Ditto.
3775 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3777 * target.h (struct target_ops): Remove to_lookup_symbol field.
3778 (target_lookup_symbol): Delete macro.
3779 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3780 (update_current_target, setup_target_debug): Remove handling
3781 of to_lookup_symbol target_ops field.
3782 * ada-tasks.c (get_known_tasks_addr): Remove use of
3783 target_lookup_symbol.
3784 * coffread.c (coff_symtab_read): Likewise.
3785 * dbxread.c (read_dbx_symtab): Ditto.
3787 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3790 * configure.ac: Add getthrds declaration check.
3791 * configure, config.in: Regenerate.
3792 * aix-thread.c (getthrds): Declare only if not already declared
3793 in procinfo.h. More declaration out of get_signaled_thread to
3796 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
3798 * python/py-symtab.c: Populate symtab_object_methods,
3800 (stpy_is_valid): New function.
3801 (salpy_is_valid): Ditto.
3802 * python/py-symbol.c: Declare symbol_object_methods. Populate.
3803 (sympy_is_valid): New function.
3804 * python/py-objfile.c: Declare objfile_object_methods. Populate.
3805 (objfpy_is_valid): New function.
3806 * python/py-inferior.c: Populate inferior_object_methods.
3807 (infpy_is_valid): New function.
3808 * python/py-infthread.c: Populate thread_object_methods.
3809 (thpy_is_valid): New function.
3810 * python/py-block.c: Declare block_object_methods. Populate. Declare
3811 block_iterator_object_methods. Populate.
3812 (blpy_is_valid): New function.
3813 (blpy_iter_is_valid): Ditto.
3815 2011-03-16 Keith Seitz <keiths@redhat.com>
3817 * linespec.c (find_methods): Canonicalize NAME before looking
3819 (name_end): New function.
3820 (keep_name_info): New function.
3821 (decode_line_1): Use keep_name_info.
3822 (decode_compound): Likewise.
3823 * cli/cli-utils.h (remove_trailing_whitespace): New function.
3824 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3827 * linespec.c (locate_first_half): Keep overload information, too.
3828 (decode_compound): Use a string to represent break characters
3830 If P points to a break character, do not increment it.
3831 For C++ and Java, keep overload information and relevant keywords.
3832 If we cannot find a symbol, search the minimal symbols.
3835 * linespec.c (decode_compound): Rename SAVED_ARG to
3837 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3839 Pass a valid block to lookup_symbol.
3840 (lookup_prefix_sym): Likewise.
3841 (find_method): Construct search name based on SYM_CLASS instead
3843 * psymtab.c (lookup_partial_symbol): Add language parameter.
3844 (lookup_symbol_aux_psymtabs): Likewise.
3845 Don't assume that the psymtab we found was the right one. Search
3846 for the desired symbol in the symtab to be certain.
3847 (psymtab_search_name): New function.
3848 (lookup_partial_symbol): Use psymtab_search_name.
3849 Add language parameter.
3850 (read_symtabs_for_function): Add language parameter and pass to
3851 lookup_partial_symbol.
3852 (find_symbol_file_from_partial): Likewise.
3854 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3857 * dwarf2read.c (noop_record_line): New function.
3858 (dwarf_decode_lines): Ignore line tables for GCd functions.
3860 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3862 Fix ARI warnings about new lines at the end of messages, which
3863 are unneeded as there is a new line added at the end of the message
3865 * darwin-nat.c (darwin_stop_inferior): Ditto.
3866 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
3867 * dfp.c (decimal_to_number): Ditto.
3868 * exec.c (print_section_info): Ditto.
3869 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
3870 * osdata.c (get_osdata): Ditto.
3871 * record.c (bfdcore_write): Ditto.
3872 * remote-mips.c (mips_readchar): Ditto.
3873 * remote.c (read_ptid): Ditto.
3874 * ser-mingw.c (ser_windows_raw): Ditto.
3875 * tracepoint.c (add_local_symbols): Ditto.
3876 * windows-nat.c (fake_create_process): Ditto.
3878 2011-03-16 Tom Tromey <tromey@redhat.com>
3880 * tracepoint.c (stop_tracing): Don't declare.
3881 * event-top.c (after_char_processing_hook): Add `(void)'.
3883 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
3885 * NEWS: Add Parameter sub-classing description.
3887 2011-03-16 Kai Tietz <ktietz@redhat.com>
3889 * MAINTAINERS: Update my e-mail address.
3891 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
3893 * MAINTAINERS: Add myself for write after approval privileges.
3895 2011-03-15 Michael Snyder <msnyder@vmware.com>
3897 * frame.c (find_frame_sal): Assert sym is not null.
3899 * dbxread.c (process_one_symbol): Assert 'name' is not null.
3901 * objc-lang.c (selectors_info): Check strchr for null result.
3903 * stabsread.c (define_symbol): Guard against bad stabstring input.
3905 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3907 Remove trailing spaces and tabulations from pascal language
3912 p-valprint.c: Ditto.
3914 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3916 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
3917 than LOW. Comment it.
3918 (read_partial_die): Call complaint for inappropriate zero LOWPC or
3919 HIGHPC not strictly higher than LOWPC.
3921 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3923 Fix formatting of function declarations returning a pointer in
3925 * varobj.c (varobj_add_child): Ditto.
3926 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
3927 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
3929 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3931 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
3932 for the "generic" vector ABI used with GCC 4.3 and later.
3933 (ppc64_sysv_abi_return_value): Likewise.
3935 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3937 * infcall.c (call_function_by_hand): Function return value is
3938 always a non_lval, even when using struct_return.
3940 2011-03-15 Pedro Alves <pedro@codesourcery.com>
3942 * printcmd.c (ALL_DISPLAYS_SAFE): New.
3943 (map_display_numbers): New.
3944 (do_delete_display): New.
3945 (undisplay_command): Use map_display_numbers.
3946 (do_enable_disable_display): New.
3947 (enable_disable_display_command): New function.
3948 (enable_display): Delete.
3949 (enable_display_command): New.
3950 (disable_display_command): Reimplement.
3951 (_initialize_printcmd): Adjust "enable display" command to use
3952 `enable_display_command' as callback.
3954 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3956 * NEWS: Add Python breakpoint 'stop' operation.
3958 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3960 * NEWS: Delete duplicate entry. Fix typo.
3962 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3964 Fix ARI warning about function names in first column.
3965 Put prototype declaration on same line as return type.
3966 * objc-exp.y: Ditto.
3968 * python/py-stopevent.h: Ditto.
3969 For long function names, split parameters to
3970 allow function name on same line as return type.
3971 * solib-pa64.c: Ditto.
3974 For long function declaration, use single line.
3975 * hppa-tdep.h: Ditto.
3976 * inferior.h: Ditto.
3978 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3980 * python/python.h: Declare gdbpy_should_stop and
3981 gdbpy_breakpoint_has_py_cond.
3982 * python/python.c: Add python.h to includes. Remove python.h from
3983 HAVE_PYTHON definition
3984 (gdbpy_should_stop): New dummy function.
3985 (gdbpy_breakpoint_has_py_cond): New dummy function.
3986 * python/py-breakpoint.c (bppy_init): Rewrite to allow
3987 sub-classing capabilities.
3988 (gdbpy_should_stop): New function.
3989 (gdbpy_breakpoint_has_py_cond): New function.
3990 (local_setattro): New function.
3991 * breakpoint.c (condition_command): Add check for Python 'stop'
3993 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
3994 operation function as part of stop/continue tests.
3996 2011-03-14 Tom Tromey <tromey@redhat.com>
3999 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
4000 (needs_frame_dwarf_call): Likewise.
4002 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
4004 Fix ARI warning about functions without parameters that do not
4006 * breakpoint.c (all_tracepoints): Replace () by (void).
4007 * f-exp.y (match_string_literal): Ditto.
4009 * m2-exp.y (yylex): Ditto.
4010 * mep-tdep.c (current_me_module): Ditto.
4011 (current_options): Ditto.
4012 (current_cop_data_bus_width): Ditto.
4013 (current_cr_names): Ditto.
4014 (current_cr_is_float): Ditto.
4015 (current_ccr_names): Ditto.
4016 * objc-exp.y (yylex): Ditto.
4017 * p-exp.y (yylex): Ditto.
4018 * remote.c (send_interrupt_sequence): Ditto.
4019 * tracepoint.c (current_trace_status): Ditto.
4020 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
4021 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
4023 2011-03-11 Michael Snyder <msnyder@vmware.com>
4025 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
4026 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
4027 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
4028 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
4029 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
4031 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
4032 (delete_async_event_handler): Ditto.
4034 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
4036 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
4038 * top.c (set_verbose): Assert showcmd was found.
4040 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
4042 * xtensa-tdep.c (warning_once): Correct style issues.
4044 2011-03-11 Yao Qi <yao@codesourcery.com>
4046 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
4048 2011-03-11 Andreas Schwab <schwab@redhat.com>
4050 * common/aclocal.m4: Remove.
4052 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4054 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
4055 (xtensa_write_register, xtensa_read_register): Likewise.
4056 (xtensa_hextochar): Removed.
4057 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
4059 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4061 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
4062 (xtensa_call0_frame_cache_t): Update comments. New fields added.
4063 (xtensa_alloc_frame_cache): Add initialization for new fields.
4064 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
4065 (warning_once): New function.
4066 (xtensa_insn_kind): New item c0opc_and.
4067 (call0_classify_opcode): Add the case for AND instruction.
4068 (call0_track_op): Change arguments. New local variable litbase.
4069 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
4070 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
4072 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
4073 (call0_analyze_prologue): Update the comments. Change arguments.
4074 Add the variety of updates to handle extended prologues, which now can
4075 conduct dynamic stack adjustments.
4076 (call0_frame_cache): Likewise.
4077 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
4078 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
4080 2011-03-10 Michael Snyder <msnyder@vmware.com>
4082 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
4083 (cmd_qtframe): Ditto.
4084 (cmd_qtbuffer): Ditto.
4085 (cmd_bigqtbuffer): Ditto.
4087 2011-03-10 Tom Tromey <tromey@redhat.com>
4089 * tracepoint.c (trace_actions_command): Update.
4090 * thread.c (thread_apply_command): Update.
4091 * reverse.c (delete_bookmark_command): Update.
4092 (bookmarks_info): Update.
4093 * printcmd.c (undisplay_command): Update.
4094 * memattr.c (mem_enable_command): Update.
4095 (mem_disable_command): Update.
4096 (mem_delete_command): Update.
4097 * inferior.c (detach_inferior_command): Update.
4098 (kill_inferior_command): Update.
4099 (remove_inferior_command): Update.
4100 * cli/cli-utils.h (struct get_number_or_range_state): New.
4101 (init_number_or_range): Declare.
4102 (get_number_or_range): Update.
4103 * cli/cli-utils.c (init_number_or_range): New function.
4104 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
4106 (number_is_in_list): Update.
4107 * breakpoint.h (get_tracepoint_by_number): Update.
4108 * breakpoint.c (map_breakpoint_numbers): Update for change to
4109 get_number_or_range.
4110 (find_location_by_number): Use get_number, not
4111 get_number_or_range.
4112 (trace_pass_set_count): New function.
4113 (trace_pass_command): Update for change to get_number_or_range.
4115 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
4118 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
4120 * python/py-param.c (add_setshow_generic): Add set/show callback
4121 parameters. Register Python object context.
4122 (get_show_value): New function.
4123 (get_set_value): New function.
4124 (call_doc_function): New function.
4125 (get_doc_string): Move behind get_show_value/get_set_value.
4127 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
4129 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
4131 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
4133 * xtensa-tdep.c (xtensa_read_register): Add comment.
4134 (xtensa_write_register): Likewise.
4135 (xtensa_hextochar): Add comment and update to match coding conventions.
4136 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
4137 (execute_l32e, execute_s32e, execute_code): Update comments.
4138 (xtensa_exception_handler_t): Update to match coding conventions.
4139 (xtensa_insn_kind): Likewise.
4141 2011-03-09 Michael Snyder <msnyder@vmware.com>
4143 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
4145 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4147 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
4149 2011-03-09 Tom Tromey <tromey@redhat.com>
4151 * thread.c (restore_selected_frame): Handle frame_level == -1.
4152 (make_cleanup_restore_current_thread): Use
4153 get_selected_frame_if_set.
4154 * frame.h (get_selected_frame_if_set): Declare.
4155 * frame.c (get_selected_frame_if_set): New function.
4157 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4159 * cli/cli-cmds.c (shell_escape): Use lbasename.
4160 * coffread.c (coff_start_symtab): Constify parameter.
4161 (complete_symtab): Constify `name' parameter.
4162 (coff_symtab_read): Constify `filestring' local.
4163 (coff_getfilename): Constify return and `result' local.
4165 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
4166 * linux-fork.c (info_checkpoints_command): Use lbasename.
4167 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
4168 * minsyms.c (lookup_minimal_symbol): Use lbasename.
4169 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
4170 * procfs.c (procfs_make_note_section): Use lbasename.
4171 * tui/tui-io.c (printable_part): Constity return and parameter.
4173 (print_filename): Constify parameters, and local `s'.
4174 (tui_rl_display_match_list): Constify local `temp'.
4176 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4179 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4180 Fix DWARF-3+ DW_AT_accessibility default assumption.
4181 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4182 cu->header.version >= 3.
4184 2011-03-09 Yao Qi <yao@codesourcery.com>
4186 * common/Makefile.in: Remove.
4187 * common/configure: Remove.
4188 * common/configure.ac: Remove.
4190 2011-03-09 Yao Qi <yao@codesourcery.com>
4193 2011-02-11 Yao Qi <yao@codesourcery.com>
4195 * common/Makefile.in: Add copyright header.
4197 2011-02-11 Yao Qi <yao@codesourcery.com>
4199 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4201 * configure.ac: Add common to sub dir.
4202 * configure: Regenerate.
4204 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4206 * xtensa-tdep.c (call0_ret): New function.
4207 (xtensa_skip_prologue): Speed up analysis.
4209 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4211 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
4212 while executing MI command -data-list-changed-registers.
4214 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4216 * xtensa-tdep.c (xtensa_read_register): New function.
4217 (xtensa_write_register): New function.
4218 (xtensa_find_register_by_name): New function.
4219 (xtensa_windowed_frame_cache): Update comments in type description.
4220 (xtensa_frame_cache): Likewise.
4221 (xtensa_window_interrupt_insn): New function.
4222 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
4223 (xtensa_insn_kind): Add new instructions.
4224 (rwx_special_register): New function.
4225 (call0_classify_opcode): Add new instructions to the analysis.
4226 (a0_saved, a7_saved, a11_saved): New variables.
4227 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
4228 (execute_l32e): New function.
4229 (execute_s32e): New function.
4230 (xtensa_exception_handler_t): New type.
4231 (execute_code): New function.
4232 (xtensa_window_interrupt_frame_cache): New function to conduct frame
4233 analysis for Xtensa Window Exception handlers.
4235 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4237 * xtensa-tdep.c (TX_PS): New.
4238 (windowing_enabled): Update to count for Call0 ABI.
4239 (xtensa_hextochar): New.
4240 (xtensa_init_reggroups): Make algorithm generic.
4241 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
4243 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4245 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4247 2011-03-08 Michael Snyder <msnyder@vmware.com>
4249 * i386-tdep.c (i386_follow_jump): Check return value of
4251 (i386_analyze_struct_return): Ditto.
4252 (i386_skip_probe): Ditto.
4253 (i386_match_insn): Ditto.
4254 (i386_skip_noop): Ditto.
4255 (i386_analyze_frame_setup): Ditto.
4256 (i386_analyze_register_saves): Ditto.
4257 (i386_skip_prologue): Ditto.
4258 (i386_skip_main_prologue): Ditto.
4260 * target.c (read_whatever_is_readable): Fix memory leak.
4262 * i386-tdep.c (i386_process_record): Document fall through.
4264 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4266 Fix DWARF-3+ DW_AT_accessibility default assumption.
4267 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4268 cu->header.version >= 3.
4270 2011-03-08 Pedro Alves <pedro@codesourcery.com>
4272 * remote.c (remote_check_symbols): Skip if the target has no
4275 2011-03-08 Joel Brobecker <brobecker@adacore.com>
4277 * target.c (read_whatever_is_readable): Reformat comment,
4278 with a minor typo fix. Minor reformatting of the code.
4280 2011-03-08 Yao Qi <yao@codesourcery.com>
4282 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
4283 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
4284 Use cached result instead of calling displaced_in_arm_mode again.
4285 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
4286 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
4287 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
4288 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
4289 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
4290 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
4291 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
4292 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
4293 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4294 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
4295 (arm_catch_kernel_helper_return): Likewise.
4296 * gdb/arm-tdep.h : Update function declarations.
4298 2011-03-07 Michael Snyder <msnyder@vmware.com>
4300 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
4302 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
4304 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
4306 * elfread.c (elf_symtab_read): Stop memory leak.
4308 * main.c (captured_main): Fix memory leak.
4310 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
4312 * ada-lang.c (compare_names): Call is_name_suffix with string1
4315 2011-03-07 Tom Tromey <tromey@redhat.com>
4317 * xcoffread.c (xcoff_sym_fns): Update.
4318 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
4319 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
4320 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
4321 (symbol_file_add_with_addrs_or_offsets): Likewise.
4322 (reread_symbols): Handle OBJF_PSYMTABS_READ.
4323 * somread.c (som_sym_fns): Update.
4324 * psymtab.h (require_partial_symbols): Declare.
4325 * psymtab.c (require_partial_symbols): New function.
4326 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
4327 (ALL_OBJFILE_PSYMTABS): Undef.
4328 (ALL_PSYMTABS): Move from psympriv.h.
4329 (lookup_partial_symtab, find_pc_sect_psymtab)
4330 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
4331 (find_last_source_symtab_from_partial)
4332 (forget_cached_source_info_partial)
4333 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
4334 (expand_partial_symbol_tables, read_psymtabs_with_filename)
4335 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
4336 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
4337 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
4338 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
4339 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
4340 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
4341 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
4343 * mipsread.c (ecoff_sym_fns): Update.
4344 * machoread.c (macho_sym_fns): Update.
4345 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
4346 (read_psyms): New function.
4347 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
4348 (elf_sym_fns_lazy_psyms): New global.
4349 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
4350 dwarf2_build_psymtabs.
4351 * dbxread.c (aout_sym_fns): Update.
4352 * coffread.c (coff_sym_fns): Update.
4354 2011-03-07 Tom Tromey <tromey@redhat.com>
4356 * infrun.c (print_exited_reason): Include inferior id and pid in
4359 2011-03-07 Tom Tromey <tromey@redhat.com>
4361 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
4363 (target_has_execution_1): Update.
4364 (target_has_execution_current): Declare.
4365 (target_has_execution): Call target_has_execution_current.
4366 (default_child_has_execution): Update.
4367 * target.c (default_child_has_execution): Add 'the_ptid'
4369 (target_has_execution_1): Likewise.
4370 (target_has_execution_current): New function.
4371 (add_target): Update.
4372 (init_dummy_target): Update.
4373 * remote-m32r-sdi.c (m32r_has_execution): New function.
4374 (init_m32r_ops): Use it.
4375 * record.c (record_core_has_execution): Now static. Add
4376 'the_ptid' parameter.
4377 * inferior.c (have_live_inferiors): Don't save current thread.
4378 Use target_has_execution_1.
4380 2011-03-07 Yao Qi <yao@codesourcery.com>
4382 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
4384 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4386 * elfread.c (elf_symtab_read): Minor reformatting.
4388 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4390 * objc-lang.c (selectors_info): Minor reformatting.
4392 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4394 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
4396 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4397 Michael Snyder <msnyder@vmware.com>
4399 * ada-valprint.c (ada_val_print_array): Move the declaration of
4400 "byte_order" and "elttype" inside the block where these variables
4401 are actually used. Remove some special handling for the case
4402 where "elttype" and "eltlen" are null. Replace by a comment
4403 and a couple of assertion checks.
4405 2011-03-05 Michael Snyder <msnyder@vmware.com>
4407 * source.c (add_path): Replace semicolon at end of block.
4408 * dwarf2expr.c (execute_stack_op): Ditto.
4410 2011-03-05 Mike Frysinger <vapier@gentoo.org>
4412 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
4413 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
4414 (bfin-*-*): Likewise.
4416 2011-03-05 Michael Snyder <msnyder@vmware.com>
4418 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
4419 * mdebugread.c (parse_symbol): Ditto.
4420 * parse.c (parse_exp_in_context): Ditto.
4421 * source.c (add_path): Ditto.
4422 * utils.c (gnu_debuglink_crc32): Ditto.
4423 * varobj.c (variable_language): Ditto.
4425 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
4427 2011-03-04 Michael Snyder <msnyder@vmware.com>
4429 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
4431 * symfile.c (simple_overlay_update): Check for null return value
4432 from lookup_minimal_symbol.
4434 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
4436 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4438 * eval.c (parse_and_eval_address_1): Remove function.
4439 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
4440 instead of parse_and_eval_address_1.
4441 * value.h (parse_and_eval_address_1): Remove prototype.
4443 2011-03-04 Michael Snyder <msnyder@vmware.com>
4445 * remote.c (putpkt_binary): Document that case stmt falls through.
4447 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4449 * breakpointc (print_it_typical): Move NULL check from here...
4450 (print_bp_stop_message): ... to here.
4452 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
4454 * breakpoint.c (enable_command): Use break instead of continue,
4455 and fill in a missing break.
4456 (disable_command): Ditto.
4458 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4460 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
4461 (terminal_save_ours): Remove misleading comment.
4462 (inflow_inferior_data_cleanup): Free ttystate.
4463 (inflow_inferior_exit): Likewise.
4464 (copy_terminal_info): Copy ttystate.
4466 * serial.c (serial_copy_tty_state): New function.
4467 * serial.h (serial_copy_tty_state): Add prototype.
4468 (struct serial_ops): Add copy_tty_state callback.
4469 * ser-base.c (ser_base_copy_tty_state): New function.
4470 * ser-base.h (ser_base_copy_tty_state): Add prototype.
4471 * ser-go32.c (dos_copy_tty_state): New function.
4472 (dos_ops): Install copy_tty_state callback.
4473 * ser-mingw.c (_initialize_ser_windows): Likewise.
4474 * ser-pipe.c (_initialize_ser_pipe): Likewise.
4475 * ser-unix.c (hardwire_copy_tty_state): New function.
4476 (_initialize_ser_hardwire): Install it.
4478 2011-03-04 Michael Snyder <msnyder@vmware.com>
4480 * breakpoint.c (create_breakpoint): Add missing break statement.
4482 Reverting this patch:
4483 * infcall.c (call_function_by_hand): Add break statements for lint.
4485 Reverting this patch:
4486 * cli/cli-script.c (script_from_file): Add break for lint.
4488 2011-03-04 Michael Snyder <msnyder@vmware.com>
4490 * solib.c (reload_shared_libraries_1): Close memory leak.
4492 2011-03-03 Tom Tromey <tromey@redhat.com>
4495 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
4498 2011-03-03 Michael Snyder <msnyder@vmware.com>
4500 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
4501 fields of struct 'st' to zero.
4503 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
4504 sal.pspace before calling set_current_source_symtab_and_line.
4506 2011-03-03 Yao Qi <yao@codesourcery.com>
4508 * Makefile.in (configure-common): Remove. Let Makefile
4509 in dir common to rebuild itself.
4510 (common/Makefile): Likewise.
4512 2011-03-03 Joel Brobecker <brobecker@adacore.com>
4514 * utils.c (parse_escape): Add i18n markup in error message.
4516 2011-03-03 Yao Qi <yao@codesourcery.com>
4518 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
4520 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
4521 (displaced_write_reg, displaced_read_reg): Likewise.
4522 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
4523 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4524 (cleanup_branch): Replace magic number 14 and 15 with
4525 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
4527 2011-03-02 Michael Snyder <msnyder@vmware.com>
4529 * maint.c (maintenance_do_deprecate): No need to check for NULL.
4531 * cli/cli-script.c (script_from_file): Add break for lint.
4533 * mdebugread.c (parse_partial_symbols): Fix indent.
4535 * target-descriptions.c (tdesc_gdb_type): No need to call
4536 xstrdup, callee saves a copy.
4538 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
4540 * infcall.c (call_function_by_hand): Add break statements for lint.
4542 * utils.c (parse_escape): Escape the escape char.
4544 * python/py-inferior.c (build_inferior_list): Error out if
4545 PyList_Append fails.
4546 (gdbpy_inferiors): Error out if build_inferior_list fails.
4548 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
4551 * record.c (record_restore): Move printf to before error return.
4553 2011-03-02 Yao Qi <yao@codesourcery.com>
4555 * arm-tdep.h (struct displaced_step_closure): Add two new fields
4556 is_thumb and insn_size.
4557 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
4558 on both ARM and Thumb mode.
4559 (arm_process_displaced_insn): Set is_thumb and insn_size.
4560 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
4561 (arm_displaced_step_fixup): Likewise.
4563 2011-03-01 Michael Snyder <msnyder@vmware.com>
4565 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
4567 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
4569 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
4571 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4573 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
4576 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
4577 which shadows function parameter.
4579 * tracepoint.c (create_tsv_from_upload): Superfluous call
4580 to xstrdup. Callee already calls xstrdup.
4582 * linespec.c (decode_line_1): Remove unnecessary null check.
4584 * tracepoint.c (scope_info): Fix mem leak, remove underused
4587 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
4588 superfluous null check.
4590 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
4591 (value_of_builtin_frame_fp_reg): Ditto.
4593 * event-top.c (display_gdb_prompt): Remove superfluous null check.
4595 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
4598 * linespec.c (decode_line_1): Check for null before dereference.
4600 * reverse.c (record_restore): Move null-check to before pointer
4603 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
4605 * objc-lang.c (selectors_info): Add explanitory comment.
4606 (classes_info): Ditto.
4608 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4610 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
4611 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
4612 versions of the trampoline. Handle Thumb vs. ARM addresses.
4613 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
4614 (arm_linux_init_abi): Install it.
4615 * arm-tdep.c (arm_psr_thumb_bit): Make global.
4616 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
4618 2011-02-28 Michael Snyder <msnyder@vmware.com>
4620 * ui-out.c (ui_out_field_core_addr): Make local char buffer
4621 a little bigger, to avoid possibility of an overflow.
4623 * breakpoint.c (breakpoint_adjustment_warning): Make local char
4624 buffers a little bigger, to avoid possibility of an overflow.
4626 * coffread.c (coff_getfilename): Add check to avoid overflow.
4628 * objc-lang.c (selectors_info): Add a small safety margin to
4630 (classes_info): Error out on too long REGEXP.
4632 * infrun.c (handle_inferior_event): Remove unused function call.
4634 * fork-child.c (fork_inferior): Remove ifdef'd code and
4637 * linux-thread-db.c (attach_thread): Discard unused value.
4639 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
4641 * remote.c (remote_get_noisy_reply): Discard unused value.
4642 (remote_vcont_resume): Ditto.
4643 (remote_stop_ns): Ditto.
4645 * linespec.c (decode_objc): Delete unused variable.
4647 * tui/tui-regs.c (tui_register_format): Delete unused variable.
4649 * dwarf2read.c (add_partial_symbol): Discard unused values.
4650 (read_base_type): Delete unused variable.
4652 * dbxread.c (read_dbx_symtab): Discard unused value.
4654 * eval.c (evaluate_subexp_standard): Delete unused variable,
4655 and discard unused values.
4657 * infcmd.c (_initialize_infcmd): Discard unused values.
4659 * stabsread.c (rs6000_builtin_type): Missing break statement.
4661 * dbxread.c (process_one_symbol): Discard unused value.
4663 * coffread.c (coff_end_symtab): Delete unused variable.
4665 * dwarf2read.c (dw2_get_file_names): Discard unused value.
4666 (dwarf2_add_typedef): Delete unused variable.
4667 (read_namespace): Ditto.
4668 (dwarf_decode_macros): Ditto.
4670 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
4672 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
4674 * p-valprint.c (pascal_val_print): Discard unused value.
4676 * utils.c (nquery): Call va_end before return;
4680 * proc-service.c (ps_plog): Call va_end before return.
4682 2011-02-28 Tom Tromey <tromey@redhat.com>
4684 * python/python.c (gdbpy_value_cst): New global.
4685 (_initialize_python): Initialize it.
4686 * python/python-internal.h (gdbpy_value_cst): Declare.
4687 * python/py-value.c (convert_value_from_python): Use
4690 2011-02-28 Michael Snyder <msnyder@vmware.com>
4692 * python/py-cmd.c (cmdpy_init): Fix memory leak.
4694 * breakpoint.c (catch_syscall_completer): Free malloced list.
4696 * jv-lang.c (java_primitive_type_from_name): Add missing break.
4698 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
4699 (lval_func_check_synthetic_pointer): Ditto.
4700 (lval_func_free_closure): Fix use-after-free.
4702 2011-02-28 Tom Tromey <tromey@redhat.com>
4704 * psymtab.c (expand_partial_symbol_tables): Use
4705 ALL_OBJFILE_PSYMTABS.
4707 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4709 * objc-lang.c (selectors_info): Error on too long REGEXP.
4711 2011-02-28 Michael Snyder <msnyder@vmware.com>
4713 * python/py-param.c (set_parameter_value): Add missing
4716 * linux-record.c (record_linux_system_call): Add missing
4719 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4721 * breakpoint.c (print_one_breakpoint_location): Remove unused
4722 argument PRINT_ADDRESS_BITS. Update callers.
4723 (print_one_breakpoint): Likewise.
4725 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4727 * breakpoint.c (wrap_indent_at_field): New function.
4728 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
4729 Allocate ui_stream locally instead of using STB argument.
4730 (print_one_breakpoint_location): Update call.
4731 * ui-out.c (ui_out_query_field): New function.
4732 * ui-out.h (ui_out_query_field): Add prototype.
4734 2011-02-28 Joel Brobecker <brobecker@adacore.com>
4736 From Michael Snyder <msnyder@vmware.com>
4737 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4739 2011-02-27 Michael Snyder <msnyder@vmware.com>
4741 * objc-lang.c (selectors_info): Prevent string overrun.
4743 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4746 * symtab.c (rbreak_command): Move variable 'file_name' to
4749 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4750 param with a local variable of the same name.
4752 2011-02-27 Michael Snyder <msnyder@vmware.com>
4754 * value.c (value_from_history_ref): New function.
4755 * value.h (value_from_history_ref): Export.
4756 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4757 to parse value history references.
4758 * cli/cli-utils.h (get_number_trailer): Update comment.
4760 2011-02-27 Michael Snyder <msnyder@vmware.com>
4762 * inferior.c (detach_inferior_command): Use get_number_or_range.
4763 (kill_inferior_command): Ditto.
4764 (remove_inferior_command): Ditto.
4765 (initialize_inferiors): Make command names plural.
4766 Update help strings.
4768 2011-02-27 Michael Snyder <msnyder@vmware.com>
4770 * darwin-nat-info.c: Fix comment typo.
4771 * dwarf2expr.h: Ditto.
4772 * fbsd-nat.c: Ditto.
4773 * fbsd-nat.h: Ditto.
4774 * frame-unwind.h: Ditto.
4776 * hppa-hpux-tdep.c: Ditto.
4777 * i386-linux-nat.c: Ditto.
4778 * linux-nat.c: Ditto.
4779 * nbsd-nat.c: Ditto.
4780 * nbsd-nat.h: Ditto.
4781 * ppc-linux-tdep.c: Ditto.
4784 * tui/tui-winsource.c: Ditto.
4786 2011-02-26 Michael Snyder <msnyder@vmware.com>
4788 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4790 * maint.c (maintenance_do_deprecate): Plug a memory leak.
4792 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4793 with a local variable of the same name.
4795 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
4796 param with a local variable of the same name.
4797 (i387_supply_xsave): Ditto.
4799 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4800 that it does not shadow a function parameter.
4802 * i386-nat.c (i386_length_and_rw_bits): Document that case
4803 statement is meant to fall through.
4805 * expprint.c (dump_subexp_body_standard): Document that case
4806 statement is meant to fall through.
4808 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4809 dead if statement. Condition can't be false.
4811 2011-02-25 Michael Snyder <msnyder@vmware.com>
4813 * arm-tdep.c: Fix typos in comments.
4814 * bsd-uthread.c: Ditto.
4815 * completer.c: Ditto.
4817 * cp-namespace.c: Ditto.
4818 * cp-support.c: Ditto.
4819 * cris-tdep.c: Ditto.
4821 * dwarf2read.c: Ditto.
4823 * gdbtypes.h: Ditto.
4824 * inferior.h: Ditto.
4825 * mdebugread.c: Ditto.
4826 * mips-tdep.c: Ditto.
4827 * ppc-linux-nat.c: Ditto.
4828 * ppc-linux-tdep.c: Ditto.
4829 * printcmd.c: Ditto.
4830 * sol-thread.c: Ditto.
4831 * solib-frv.c: Ditto.
4833 * sparc64-tdep.c: Ditto.
4834 * spu-tdep.c: Ditto.
4835 * stabsread.c: Ditto.
4840 * python/py-block.c: Ditto.
4841 * python/py-symbol.c: Ditto.
4842 * python/py-symtab.c: Ditto.
4843 * python/py-value.c: Ditto.
4844 * tui/tui-win.c: Ditto.
4846 2011-02-25 Michael Snyder <msnyder@vmware.com>
4848 * inferior.c (print_inferior): Accept a string instead of an int
4849 for requested_inferiors, and use get_number_or_range to parse it.
4850 (info_inferiors_command): Pass args string to print_inferior.
4851 (initialize_inferiors): Change help string for info inferiors.
4852 * inferior.h (print_inferior): Export prototype change.
4854 2011-02-25 Tom Tromey <tromey@redhat.com>
4856 * common/ax.def (invalid2): Set to 0x31.
4858 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4860 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
4862 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
4864 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
4866 2011-02-24 Michael Snyder <msnyder@vmware.com>
4868 * Makefile.in (clean): Make clean should remove generated files
4869 observer.h and observer.inc.
4871 2011-02-24 Joel Brobecker <brobecker@adacore.com>
4873 Revert the following patch (not approved yet):
4874 2011-02-21 Hui Zhu <teawater@gmail.com>
4875 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4876 * ax-gdb.c (gen_printf_expr_callback): New function.
4877 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4878 * ax-general.c (ax_memcpy): New function.
4879 (ax_print): Handle "printf".
4881 * ax.h (ax_memcpy): Forward declare.
4882 * common/ax.def (invalid2): Removed.
4883 (printf): New entry.
4884 * printcmd.c (printcmd.h): New include.
4885 (string_printf): New function.
4886 (ui_printf): Removed.
4887 (printf_command): Remove static. Call string_printf.
4888 (eval_command): Call string_printf.
4889 * printcmd.h: New file.
4890 * tracepoint.c (validate_actionline,
4891 encode_actions_1): handle printf_command.
4893 2011-02-23 Tom Tromey <tromey@redhat.com>
4895 * ax-general.c (ax_pick): Add missing newline.
4897 2011-02-23 Michael Snyder <msnyder@vmware.com>
4899 * breakpoint.c (breakpoint_1): Change first argument from an int
4900 to a char pointer, so that the function now accepts a list of
4901 breakpoints rather than just one. Use new function
4902 'number_is_in_list' to implement.
4903 (breakpoints_info): Pass char * instead of int to breakpoint_1.
4904 (watchpoints_info): Ditto.
4905 (tracepoints_info): Ditto.
4906 (maintenance_info_breakpoints): Ditto.
4907 (_initialize_breakpoint): Update help strings to reflect the fact
4908 that these functions can now take more than one argument.
4909 * cli/cli-utils.c (number_is_in_list): New function.
4910 * cli/cli-utils.h (number_is_in_list): Export.
4912 2011-02-23 Michael Snyder <msnyder@vmware.com>
4914 * memattr.c (mem_enable_command): Use get_number_or_range.
4915 (mem_disable_command): Ditto.
4916 (mem_delete_command): Ditto.
4917 (_initialize_mem): Tweak usage message to reflect multiple
4920 2011-02-22 Doug Evans <dje@google.com>
4922 Add gdb.lookup_global_symbol python function.
4924 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
4925 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
4926 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
4928 2011-02-22 Tom Tromey <tromey@redhat.com>
4930 * language.c (language_class_name_from_physname): Rename
4931 'curr_language' argument to 'lang'; use in body.
4933 2011-02-22 Michael Snyder <msnyder@vmware.com>
4935 * cli/cli-utils.c (number_is_in_list): Check for zero return.
4937 2011-02-22 Pedro Alves <pedro@codesourcery.com>
4939 * frame-unwind.h: Fix comment to mention the this frame, not the
4942 2011-02-22 Tom Tromey <tromey@redhat.com>
4944 * symfile.c (auto_solib_limit): Remove.
4945 * symfile.h (auto_solib_limit): Remove.
4947 2011-02-22 Joel Brobecker <brobecker@adacore.com>
4949 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
4951 2011-02-21 Michael Snyder <msnyder@vmware.com>
4953 * gdbthread.h (print_thread_info): Change prototype.
4954 * thread.c (print_thread_info): Accept char* instead of int for
4955 requested_threads argument. Use new function number_is_in_list
4956 to determine which threads to list.
4957 (info_threads_command): Pass char* to print_thread_info.
4958 * cli/cli-utils.c (number_is_in_list): New function.
4959 * cli/cli-utils.h (number_is_in_list): Export.
4960 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
4962 (print_one_inferior): Ditto.
4963 (mi_cmd_list_thread_groups): Ditto.
4965 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4967 * common/Makefile.in (CFLAGS): New.
4968 (COMPILE): Add $(CFLAGS).
4970 2011-02-21 Tom Tromey <tromey@redhat.com>
4972 * breakpoint.c (catch_syscall_command_1): Fix typo.
4974 2011-02-21 Tom Tromey <tromey@redhat.com>
4976 * reverse.c: Include cli-utils.h.
4977 * printcmd.c: Include cli-utils.h.
4978 (string_printf): Use skip_spaces.
4979 * cli/cli-utils.h: New file.
4980 * cli/cli-utils.c: New file.
4981 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
4982 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
4983 * breakpoint.h (get_number, get_number_or_range): Move to
4985 * breakpoint.c: Include cli-utils.h.
4986 (get_number_trailer, get_number, get_number_or_range)
4987 (ep_skip_leading_whitespace): Move to cli-utils.c.
4988 (create_breakpoint_sal, find_condition_and_thread)
4989 (decode_static_tracepoint_spec, watch_command_1)
4990 (watch_maybe_just_location, ep_parse_optional_if_clause)
4991 (catch_fork_command_1, catch_exec_command_1)
4992 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
4993 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
4994 (SUBDIR_CLI_SRCS): Add cli-utils.c.
4995 (HFILES_NO_SRCDIR): Add cli-utils.h.
4996 (cli-utils.o): New target.
4998 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5000 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
5001 before calling discard_all_inferiors.
5003 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5005 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
5006 (struct builtin_opencl_type): Remove.
5007 (builtin_opencl_type): Change return type to "struct type **".
5008 (lookup_opencl_vector_type): Update caller.
5009 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
5010 (build_opencl_types): Install plain array of "struct type *"
5011 instead of "struct builtin_opencl_type".
5013 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5014 Ulrich Weigand <uweigand@de.ibm.com>
5016 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
5017 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
5018 (struct arm_linux_hwbp_cap): New type.
5019 (arm_linux_get_hwbp_cap): New function.
5020 (arm_linux_get_hw_breakpoint_count): Likewise.
5021 (arm_linux_get_hw_watchpoint_count): Likewise.
5022 (arm_linux_can_use_hw_breakpoint): Likewise.
5023 (arm_hwbp_type): New type.
5024 (arm_hwbp_control_t): Likewise.
5025 (struct arm_linux_hw_breakpoint): Likewise.
5026 (struct arm_linux_thread_points): Likewise.
5027 (arm_threads): New global variable.
5028 (arm_linux_find_breakpoints_by_tid): New function.
5029 (arm_hwbp_control_initialize): Likewise.
5030 (arm_hwbp_control_is_enabled): Likewise.
5031 (arm_hwbp_control_disable): Likewise.
5032 (arm_linux_hw_breakpoint_initialize): Likewise.
5033 (arm_linux_get_hwbp_type): Likewise.
5034 (arm_linux_hw_watchpoint_initialize): Likewise.
5035 (arm_linux_hw_breakpoint_equal): Likewise.
5036 (arm_linux_insert_hw_breakpoint1): Likewise.
5037 (arm_linux_remove_hw_breakpoint1): Likewise.
5038 (arm_linux_insert_hw_breakpoint): Likewise.
5039 (arm_linux_remove_hw_breakpoint): Likewise.
5040 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
5041 (arm_linux_insert_watchpoint): Likewise.
5042 (arm_linux_remove_watchpoint): Likewise.
5043 (arm_linux_stopped_data_address): Likewise.
5044 (arm_linux_stopped_by_watchpoint): Likewise.
5045 (arm_linux_watchpoint_addr_within_range): Likewise.
5046 (arm_linux_new_thread): Likewise.
5047 (arm_linux_thread_exit): Likewise.
5048 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
5049 related target callbacks. Register arm_linux_new_thread and
5050 arm_linux_thread_exit.
5051 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
5052 * arm-tdep.c (arm_pc_is_thumb): Make global.
5053 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
5055 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5057 * breakpoint.c (update_watchpoint): Do not attempt to recreate
5058 per-frame locations while within a function epilogue.
5060 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5062 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
5063 to GNU coding standards.
5065 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5067 Allow use of mingw native on Windows 95 OS.
5068 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
5069 (ser_windows_close): Only call CancelIo if function exists.
5070 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
5071 to check for existence of CancelIo function in kernel32 DLL.
5073 2011-02-21 Hui Zhu <teawater@gmail.com>
5075 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5076 * ax-gdb.c (gen_printf_expr_callback): New function.
5077 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5078 * ax-general.c (ax_memcpy): New function.
5079 (ax_print): Handle "printf".
5081 * ax.h (ax_memcpy): Forward declare.
5082 * common/ax.def (invalid2): Removed.
5083 (printf): New entry.
5084 * printcmd.c (printcmd.h): New include.
5085 (string_printf): New function.
5086 (ui_printf): Removed.
5087 (printf_command): Remove static. Call string_printf.
5088 (eval_command): Call string_printf.
5089 * printcmd.h: New file.
5090 * tracepoint.c (validate_actionline,
5091 encode_actions_1): handle printf_command.
5093 2011-02-19 Michael Snyder <msnyder@vmware.com>
5095 * reverse.c (delete_one_bookmark): Argument is now bookmark
5096 id rather than pointer to bookmark struct.
5097 (delete_bookmark_command): Use get_number_or_range.
5098 (goto_bookmark_command): Parse with get_number instead of strtoul.
5099 (bookmark_1): New function. Print info for one bookmark.
5100 (bookmarks_info): Use get_number_or_range and bookmark_1.
5102 2011-02-18 Michael Snyder <msnyder@vmware.com>
5104 * thread.c (info_threads_command): Re-implement using
5105 get_number_or_range.
5106 (thread_apply_command): Ditto.
5108 2011-02-18 Tom Tromey <tromey@redhat.com>
5110 * common/ax.def: New file.
5111 * ax.h (enum agent_op): Use ax.def.
5112 * ax-general.c (aop_map): Use ax.def.
5114 2011-02-18 Tom Tromey <tromey@redhat.com>
5116 * ax-general.c (aop_map): Add pick and rot.
5117 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
5118 <DW_OP_rot>: Implement.
5119 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
5121 * ax-general.c (ax_pick): New function.
5123 2011-02-18 Tom Tromey <tromey@redhat.com>
5125 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
5127 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5128 Tom Tromey <tromey@redhat.com>
5130 * cp-support.c (make_symbol_overload_list_namespace): Do not call
5131 make_symbol_overload_list_block with NULL BLOCK.
5132 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
5134 2011-02-18 Pedro Alves <pedro@codesourcery.com>
5136 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
5137 * breakpoint.h (get_number_or_range): Declare.
5138 * printcmd.c (ALL_DISPLAYS): Declare.
5139 (delete_display): Reimplement taking a display pointer.
5140 (undisplay_command): Accept a range of displays to delete, using
5141 get_number_or_range.
5143 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5145 * c-valprint.c (c_val_print): Add embedded_offset to address
5146 for arrays of unspecified length.
5147 * p-valprint.c (pascal_val_print): Likewise.
5149 2011-02-18 Yao Qi <yao@codesourcery.com>
5151 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
5152 (arm_process_displaced_insn): .. here. Remove parameter INSN.
5153 (thumb_process_displaced_insn): New.
5154 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
5155 call to arm_process_displaced_insn.
5156 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
5158 2011-02-17 Tom Tromey <tromey@redhat.com>
5160 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
5161 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
5162 compile_dwarf_to_ax. No longer static. Call
5163 dwarf2_compile_cfa_to_ax.
5164 (locexpr_tracepoint_var_ref): Update.
5165 (loclist_tracepoint_var_ref): Update.
5166 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
5167 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
5168 argument; add 'gdbarch' and 'pc'.
5169 (dwarf2_compile_cfa_to_ax): New function.
5170 (dwarf2_frame_cache): Update.
5172 2011-02-17 Joel Brobecker <brobecker@adacore.com>
5174 * ada-lang.c (ada_type_of_array): Fix the size of the array
5175 in the case of an unconstrained packed array.
5177 2011-02-17 Yao Qi <yao@codesourcery.com>
5179 * common/Makefile.in: Add more targets for make.
5181 2011-02-16 Tom Tromey <tromey@redhat.com>
5183 * dwarf2loc.c (unimplemented): Fix typo.
5185 2011-02-16 Tom Tromey <tromey@redhat.com>
5187 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
5188 (compile_dwarf_to_ax) <default>: Use unimplemented.
5189 <DW_OP_deref>: Update.
5190 (disassemble_dwarf_expression): Update.
5191 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
5192 (decode_locdesc): Update.
5193 * dwarf2expr.h (dwarf_stack_op_name): Update.
5195 2011-02-16 Tom Tromey <tromey@redhat.com>
5197 * ax.h (struct aop_map) <name>: Now const.
5199 2011-02-16 Tom Tromey <tromey@redhat.com>
5201 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
5204 2011-02-16 Yao Qi <yao@codesourcery.com>
5206 * infrun.c (get_displaced_step_closure_by_addr): New.
5207 * inferior.h: Declare it.
5208 * arm-tdep.c: (arm_pc_is_thumb): Call
5209 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
5212 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5213 Jan Kratochvil <jan.kratochvil@redhat.com>
5216 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
5218 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5219 Jan Kratochvil <jan.kratochvil@redhat.com>
5221 * value.c (value_contents_copy_raw): Extend describing comment.
5222 Assert that the destination contents we're overwriting are wholly
5224 (value_contents_copy): Extend describing comment.
5226 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5227 Jan Kratochvil <jan.kratochvil@redhat.com>
5229 * value.c (value_available_contents_eq): Remove redundant local
5230 variables. Fix available contents comparision.
5231 * value.h (value_available_contents_eq): Extend describing
5234 2011-02-16 Yao Qi <yao@codesourcery.com>
5236 * thread.c (info_threads_command): Add missing i18n markup and remove
5239 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5241 * breakpoint.c (longjmp_names): New variable.
5242 (struct breakpoint_objfile_data): New type.
5243 (breakpoint_objfile_key): New variable.
5244 (msym_not_found): New variable.
5245 (msym_not_found_p): New predicate.
5246 (get_breakpoint_objfile_data): New function.
5247 (create_overlay_event_breakpoint): Check per-objfile cache for
5249 (create_longjmp_master_breakpoint): Likewise.
5250 (create_std_terminate_master_breakpoint): Likewise.
5251 (create_exception_master_breakpoint): Likewise.
5252 (_initialize_breakpoint): Register per-objfile data key.
5254 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5256 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
5258 (create_longjmp_master_breakpoint): Loop over longjmp names.
5259 (create_std_terminate_master_breakpoint): Const-propagate parameter
5261 (update_breakpoints_after_exec): Adjust.
5262 (breakpoint_re_set): Adjust.
5264 2011-02-15 Michael Snyder <msnyder@vmware.com>
5266 * thread.c (info_threads_command): Process arg as thread id,
5267 or list of thread ids.
5268 (thread_find_command): New command.
5269 (_initialize_thread): Document argument for info threads.
5270 Document 'thread find' command.
5271 * NEWS: Document new command "thread find".
5273 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5275 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
5276 * aclocal.m4: Regenerated with aclocal-1.11.1.
5277 * common/configure: Regenerate with autoconf-2.64.
5279 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
5281 * opencl-lang.c (build_opencl_types): Set the size of the built-in
5282 bool data type to a size of one byte.
5284 2011-02-15 Pedro Alves <pedro@codesourcery.com>
5285 Jan Kratochvil <jan.kratochvil@redhat.com>
5287 * target.c (memory_xfer_live_readonly_partial): Document where to
5288 look for interface description.
5290 2011-02-15 Yao Qi <yao@codesourcery.com>
5293 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
5294 order to store PC value on stack instead of text section.
5296 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
5298 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
5299 the EFP register set size.
5300 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
5301 data from the VMX register.
5302 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
5303 and write data from/to the VMX register.
5305 2011-02-14 Michael Snyder <msnyder@vmware.com>
5307 * command.h (enum command_class): New class 'no_set_class', for
5308 "show" commands without a corresponding "set" command.
5309 * value.c (_initialize_values): Use 'no_set_class' for "show values".
5310 * copying.c (_initialize_copying): Ditto for "show copying" and
5312 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
5314 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
5315 which there is no corresponding "set" command (eg. "show copying").
5317 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5318 Jan Kratochvil <jan.kratochvil@redhat.com>
5320 * exec.c (section_table_available_memory): Change `len' parameter
5322 * exec.h (section_table_available_memory): Ditto.
5323 * value.h (read_value_memory): Rename the `offset' parameter to
5326 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5327 Jan Kratochvil <jan.kratochvil@redhat.com>
5329 * memrange.c (compare_mem_ranges): Mention sort order in
5331 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
5332 * tracepoint.c (traceframe_available_memory): Extend comment to
5333 mention what happens to RESULT when the target does not support
5336 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5337 Jan Kratochvil <jan.kratochvil@redhat.com>
5339 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
5342 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5344 * value.c (value_bits_valid, value_bits_synthetic_pointer):
5345 No longer handle NULL values.
5347 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5349 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
5350 * value.c: Include "exceptions.h".
5351 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
5353 * cp-abi.c: Include gdb_assert.h.
5354 (baseclass_offset): Add `embedded_offset' and `val' parameters.
5355 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
5357 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
5358 parameters. No longer returns -1 on error.
5359 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
5361 * cp-valprint.c: Include exceptions.h.
5362 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
5363 the baseclass_offset. Handle unavailable base classes. Use
5364 val_print_invalid_address.
5365 * p-valprint.c: Include exceptions.h.
5366 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
5367 when fetching the baseclass_offset. No longer expect
5368 baseclass_offset returning -1. Handle unavailable base classes.
5369 Use val_print_invalid_address.
5370 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
5371 `valaddr' parameter, and change its type to gdb_byte pointer. Add
5372 `embedded_offset' and `val' parameters. Adjust.
5373 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
5374 parameter, and change its type to gdb_byte pointer. Add
5375 `embedded_offset' and `val' parameters. Adjust. No longer expect
5376 baseclass_offset returning -1.
5377 (value_dynamic_cast): Use value_contents_for_printing rather than
5378 value_contents. Adjust.
5379 (search_struct_field): No longer expect baseclass_offset returning
5381 (search_struct_method): If reading memory from the target is
5382 necessary, wrap it in a new value to pass to baseclass_offset. No
5383 longer expect baseclass_offset returning -1.
5384 (find_method_list): No longer expect baseclass_offset returning
5385 -1. Use value_contents_for_printing rather than value_contents.
5386 * valprint.c (val_print_invalid_address): New function.
5387 * valprint.h (val_print_invalid_address): Declare.
5388 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
5389 and `val' parameters. No longer expect baseclass_offset returning
5391 * gnu-v2-abi.c: Include "exceptions.h".
5392 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
5393 parameters. Handle unavailable memory. Recurse through
5394 gnuv2_baseclass_offset directly, rather than through
5395 baseclass_offset. No longer returns -1 on not found, instead
5397 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
5398 `val' parameters. Adjust.
5400 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5402 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
5403 almost but not quite adjacent.
5405 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5407 * value.h (value_entirely_available): Declare.
5408 * value.c (value_entirely_available): New function.
5409 * c-valprint.c (c_value_print): Don't try fetching the pointer's
5410 real type if the pointer is unavailable.
5412 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5414 * valops.c (value_repeat): Use read_value_memory instead of
5417 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5419 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
5420 * value.c (value_contents_copy_raw, value_contents_copy): New
5422 (value_primitive_field): Use value_contents_copy_raw instead of
5424 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
5426 (value_array, value_slice): Ditto.
5427 * valarith.c (value_subscripted_rvalue): Use
5428 value_contents_copy_raw instead of memcpy.
5430 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5432 <unavailable> references.
5434 * valops.c (get_value_at): Use value_from_contents_and_address,
5435 avoiding read_memory.
5437 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5439 * c-valprint.c (c_val_print): Print a string with unavailable
5440 contents as an array.
5442 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5444 * value.h (unpack_bits_as_long): Delete declaration.
5445 (unpack_value_bits_as_long): Declare.
5446 (unpack_value_field_as_long): Declare.
5447 (value_field_bitfield): Declare.
5448 * value.c (unpack_bits_as_long): Rename to...
5449 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
5450 value parameters. Return the extracted result in a new output
5451 parameter. If the value contents are unavailable, return false,
5452 otherwise return true.
5453 (unpack_value_bits_as_long): New.
5454 (unpack_field_as_long): Rename to...
5455 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
5456 Add embedded_offset and value parameters. Return the extracted
5457 result in a new output parameter. If the value contents are
5458 unavailable, return false, otherwise return true.
5459 (unpack_value_field_as_long): New.
5460 (unpack_field_as_long_1): New.
5461 (unpack_field_as_long): Reimplement as wrapper around
5462 unpack_value_field_as_long_1.
5463 (value_field_bitfield): New function.
5464 * valops.c (value_fetch_lazy): When fetching a bitfield, use
5465 unpack_value_bits_as_long. Mark the value as unavailable, if it
5467 * jv-valprint.c (java_print_value_fields): Use
5468 value_field_bitfield.
5469 * p-valprint.c (pascal_object_print_value_fields): Use
5470 value_field_bitfield.
5471 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
5473 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5475 * value.c (get_internalvar_integer): Also return the int value of
5476 TYPE_CODE_INT INTERNALVAR_VALUE values.
5477 (set_internalvar): Don't special case TYPE_CODE_INT.
5479 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5481 * value.c (struct internalvar) <enum internalvar_kind>: Remove
5482 INTERNALVAR_POINTER.
5484 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
5485 (set_internalvar): Remove special TYPE_CODE_PTR handling.
5486 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
5488 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5490 * value.h (value_available_contents_eq): Declare.
5491 * value.c (find_first_range_overlap): New function.
5492 (value_available_contents_eq): New function.
5493 * valprint.c (val_print_array_elements): Use
5494 value_available_contents_eq.
5495 * ada-valprint.c (val_print_packed_array_elements): Use
5496 value_available_contents_eq.
5497 * jv-valprint.c (java_value_print): Use
5498 value_available_contents_eq.
5500 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5502 * target.c (target_read_live_memory): New function.
5503 (memory_xfer_live_readonly_partial): New.
5504 (memory_xfer_partial): If reading from a traceframe, fallback to
5505 reading unavailable read-only memory from read-only regions of
5507 * tracepoint.c (disconnect_tracing): Adjust.
5508 (set_current_traceframe): New, factored out from
5509 set_traceframe_number.
5510 (set_traceframe_number): Reimplement to only change the traceframe
5511 number on the GDB side.
5512 (do_restore_current_traceframe_cleanup): Adjust.
5513 (make_cleanup_restore_traceframe_number): New.
5514 (cur_traceframe_number): New global.
5515 (tfile_open): Set cur_traceframe_number to no traceframe.
5516 (set_tfile_traceframe): New function.
5517 (tfile_trace_find): If looking up a traceframe using any method
5518 other than by number, make sure the current tfile traceframe
5519 matches gdb's current traceframe. Update the current tfile
5520 traceframe if the lookup succeeded.
5521 (tfile_fetch_registers, tfile_xfer_partial)
5522 (tfile_get_trace_state_variable_value): Make sure the remote
5523 traceframe matches gdb's current traceframe.
5524 * remote.c (remote_traceframe_number): New global.
5525 (remote_open_1): Set it to -1.
5526 (set_remote_traceframe): New function.
5527 (remote_fetch_registers, remote_store_registers)
5528 (remote_xfer_memory, remote_xfer_partial)
5529 (remote_get_trace_state_variable_value): Make sure the remote
5530 traceframe matches gdb's current traceframe.
5531 (remote_trace_find): If looking up a traceframe using any method
5532 other than by number, make sure the current remote traceframe
5533 matches gdb's current traceframe. Update the current remote
5534 traceframe if the lookup succeeded.
5535 * infrun.c (fetch_inferior_event): Adjust.
5536 * tracepoint.h (set_current_traceframe): Declare.
5537 (get_traceframe_number, set_traceframe_number): Add describing
5540 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5542 Mark pieces of values as unavailable if the corresponding memory
5545 * valops.c: Include tracepoint.h.
5546 (value_fetch_lazy): Use read_value_memory.
5547 (read_value_memory): New.
5548 * value.h (read_value_memory): Declare.
5549 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
5550 * exec.c (section_table_available_memory): New function.
5551 * exec.h (section_table_available_memory): Declare.
5553 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5555 * Makefile.in (SFILES): Add memrange.c.
5556 (HFILES_NO_SRCDIR): Add memrange.h.
5557 (COMMON_OBS): Add memrange.o.
5558 * memrange.c: New file.
5559 * memrange.h: New file.
5560 * tracepoint.c: Include memrange.h.
5561 (struct mem_range): Delete.
5562 (mem_range_s): Delete.
5563 (traceframe_available_memory): New function.
5564 * tracepoint.h (traceframe_available_memory): Declare.
5566 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5568 * target.h (struct traceframe_info): Forward declare.
5569 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
5570 (struct target_ops) <to_traceframe_info>: New field.
5571 (target_traceframe_info): New.
5572 * target.c (update_current_target): Inherit and default
5574 * remote.c (PACKET_qXfer_traceframe_info): New.
5575 (remote_protocol_features): Register qXfer:traceframe-info:read.
5576 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
5577 (remote_traceframe_info): New.
5578 (init_remote_ops): Install it.
5579 (_initialize_remote): Install "set/show remote traceframe-info"
5581 * tracepoint.h (parse_traceframe_info): Declare.
5582 * tracepoint.c (struct mem_range): New.
5583 (mem_range_s): New typedef.
5584 (struct traceframe_info): New.
5585 (traceframe_info): New global.
5586 (free_traceframe_info): New function.
5587 (clear_traceframe_info): New function.
5588 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
5590 (build_traceframe_info): New function.
5591 (tfile_traceframe_info): New function.
5592 (init_tfile_ops): Install tfile_traceframe_info.
5593 (traceframe_info_start_memory, free_result): New functions.
5594 (memory_attributes, traceframe_info_elements): New globals.
5595 (parse_traceframe_info, get_traceframe_info): New functions.
5596 * features/traceframe-info.dtd: New file.
5597 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
5599 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5601 Base support for <unavailable> value contents.
5603 * value.h (value_bytes_available): Declare.
5604 (mark_value_bytes_unavailable): Declare.
5605 * value.c (struct range): New struct.
5606 (range_s): New typedef.
5607 (ranges_overlap): New function.
5608 (range_lessthan): New function.
5609 (ranges_contain_p): New function.
5610 (struct value) <unavailable>: New field.
5611 (value_bytes_available): New function.
5612 (mark_value_bytes_unavailable): New function.
5613 (require_not_optimized_out): Constify parameter.
5614 (require_available): New function.
5615 (value_contents_all, value_contents): Require all bytes be
5617 (value_free): Free `unavailable'.
5618 (value_copy): Copy `unavailable'.
5619 * valprint.h (val_print_unavailable): Declare.
5620 * valprint.c (valprint_check_validity): Rename `offset' parameter
5621 to `embedded_offset'. If printing a scalar, check whether the
5622 value chunk is available.
5623 (val_print_unavailable): New.
5624 (val_print_scalar_formatted): Check whether the value is
5626 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
5627 pretty-printing unavailable values.
5629 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5631 Fix const/volatile qualifiers of C++ types, PR c++/12328.
5632 * c-typeprint.c (c_type_print_args): Update the function comment. New
5633 variable param_type, initialize it. Remove const/volatile qualifiers
5634 for language_cplus and !show_artificial. Use param_type.
5636 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5638 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
5639 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
5640 * symtab.h (struct symtab) <next>: Comment extension.
5642 2011-02-12 Yao Qi <yao@codesourcery.com>
5644 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
5646 2011-02-11 Yao Qi <yao@codesourcery.com>
5648 * common/Makefile.in: Add copyright header.
5650 2011-02-11 Pedro Alves <pedro@codesourcery.com>
5652 * infrun.c (proceed): Move switching out and in of tfind mode from
5654 (fetch_inferior_event): ... to here.
5656 2011-02-11 Yao Qi <yao@codesourcery.com>
5658 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5660 * configure.ac: Add common to sub dir.
5661 * configure: Regenerate.
5663 2011-02-11 Yao Qi <yao@codesourcery.com>
5667 * common/Makefile.in: New.
5668 * common/configure.ac: New.
5669 * common/aclocal.m4: New.
5670 * common/configure: Generate.
5672 2011-02-10 Pedro Alves <pedro@codesourcery.com>
5674 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
5675 side of the parenthesis.
5678 2010-07-13 Jakub Jelinek <jakub@redhat.com>
5679 * vec.h (VEC_block_remove): Fix comment.
5681 2011-02-08 Michael Snyder <msnyder@vmware.com>
5683 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
5685 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5687 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
5688 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
5691 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5694 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
5696 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
5697 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
5699 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5701 * dwarf2read.c (read_subroutine_type): Set special calling
5702 convention flag for functions compiled by IBM XL C for OpenCL.
5703 * ppc-sysv-tdep.c: Include "dwarf2.h"
5704 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
5706 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
5707 IBM OpenCL vector types calling convention.
5708 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
5709 (ppc_sysv_abi_broken_return_value): Likewise.
5710 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
5711 types calling convention.
5712 (ppc64_sysv_abi_return_value): Likewise.
5713 * spu-tdep.c: Include "dwarf2.h"
5714 (spu_return_value): Implement IBM OpenCL vector types calling
5717 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5719 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
5720 correct ABI for AltiVec vector arguments.
5722 2011-02-07 Pedro Alves <pedro@codesourcery.com>
5724 * valprint.c (val_print): Extend comment.
5725 * ada-valprint.c (ada_valprint): Rewrite comment deferring
5726 interface explanation to val_print.
5727 (ada_val_print_array): Adjust comment to current interface.
5728 (print_field_values): Adjust comment to current interface.
5729 * c-valprint.c (c_val_print): Rewrite comment deferring interface
5730 explanation to val_print.
5731 * f-valprint.c (f_val_print): Ditto.
5732 * jv-valprint.c (java_val_print): Ditto.
5733 * m2-valprint.c (m2_val_print): Ditto.
5734 * p-valprint.c (pascal_val_print): Ditto.
5736 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5738 * breakpoint.c (parse_breakpoint_sals): Fix description.
5740 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
5741 Oguz Kayral <oguzkayral@gmail.com>
5743 * python/py-inferior.c (python_on_normal_stop): New function.
5744 (python_on_resume): New function.
5745 (python_inferior_exit): New function.
5746 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5747 inferior_exit observers.
5748 * python/py-evtregistry.c: New file.
5749 * python/py-threadevent.c : New file.
5750 * python/py-event.c: New file.
5751 * python/py-evts.c: New file.
5752 * python/py-continueevent.c: New file.
5753 * python/py-bpevent.c: New file.
5754 * python/py-signalevent.c: New file.
5755 * python/py-exetiedevent.c: New file.
5756 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5757 Move struct breakpoint_object from here...
5758 * python/python-internal.h: ... to here.
5759 * python/py-event.h: New file.
5760 * python/py-events.h: New file.
5761 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5762 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5763 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5764 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5765 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5766 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5767 Add build rules for all the above.
5769 2011-02-04 Tom Tromey <tromey@redhat.com>
5771 * dwarf2read.c (dwarf2_section_empty_p): New function.
5772 (dwarf2_read_section): Use dwarf2_section_empty_p.
5773 (dwarf2_section_size): New function.
5774 (dwarf2_get_section_info): Unconditionally read section.
5775 (dwarf2_read_index): Use dwarf2_section_empty_p.
5776 (partial_read_comp_unit_head): Use dwarf2_section_size.
5777 (dwarf2_symbol_mark_computed): Likewise.
5779 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5781 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5783 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5785 * mips-linux-tdep.c: Include xml-syscall.h.
5786 (mips_linux_get_syscall_number): New function.
5787 (mips_linux_init_abi): Add calls to
5788 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5789 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5790 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5791 * syscalls/mips-n32-linux.xml: New file.
5792 * syscalls/mips-n64-linux.xml: New file.
5793 * syscalls/mips-o32-linux.xml: New file.
5795 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5797 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5798 Complain about inverted range entries.
5799 (dwarf2_record_block_ranges): Likewise.
5801 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5804 * breakpoint.c (update_watchpoint): Fix name of the
5805 update_global_location_list function.
5806 (print_one_breakpoint): Fix typo.
5807 (_initialize_breakpoint): Remove extra space in hbreak help
5809 * breakpoint.h (struct bp_location) <length>: Fix field
5812 2011-02-04 Pedro Alves <pedro@codesourcery.com>
5814 * regcache.c (registers_changed_ptid): Don't explictly always
5815 clear `current_regcache'. Only clear current_thread_ptid and
5816 current_thread_arch when PTID matches. Only reinit the frame
5817 cache if PTID matches the current inferior_ptid. Move alloca(0)
5819 (registers_changed): ... here.
5821 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
5823 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5824 starts with __stack_chk_guard as stack guard symbol.
5826 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
5828 * disasm.c (compare_lines): Handle the end of sequence markers
5829 within the line table to better support disassembling over
5830 compilation unit boundaries.
5832 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5834 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5835 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
5836 implementation even if no symbols are available.
5837 (thumb_analyze_prologue): Update call to skip_prologue_function.
5838 (arm_analyze_prologue): Likewise.
5840 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5842 * arm-tdep.c: Include "observer.h".
5843 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5844 (arm_exidx_data_key): New static variable.
5845 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5846 (struct arm_exidx_data): Likewise.
5847 (arm_exidx_data_free): New function.
5848 (arm_compare_exidx_entries): Likewise.
5849 (arm_obj_section_from_vma): Likewise.
5850 (arm_exidx_new_objfile): Likewise.
5851 (arm_find_exidx_entry): Likewise.
5852 (arm_exidx_fill_cache): Likewise.
5853 (arm_exidx_unwind_sniffer): Likewise.
5854 (arm_exidx_unwind): New global variable.
5855 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
5856 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
5857 observer. Register arm_exidx_data_key as objfile data.
5859 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5861 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
5862 due to accessing uninitialized variable. Fix indentation.
5864 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5866 * c-valprint.c (c_value_print): When doing virtual base pointer
5867 adjustment, create a new value with adjusted contents rather than
5868 changing the contents of the value being printed (and getting it
5871 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5873 * xml-support.c (xml_find_attribute): New.
5874 (xinclude_start_include): Use it.
5875 * xml-support.h (xml_find_attribute): Declare.
5876 * memory-map.c (memory_map_start_memory)
5877 (memory_map_start_property): Use xml_find_attribute.
5878 * osdata.c (osdata_start_osdata, osdata_start_column): Use
5880 * remote.c (start_thread): Use xml_find_attribute.
5881 * solib-target.c (library_list_start_segment)
5882 (library_list_start_section, library_list_start_library)
5883 (library_list_start_list): Use xml_find_attribute.
5884 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
5885 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
5886 (tdesc_start_field): Use xml_find_attribute.
5888 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
5890 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
5891 (BUILD_OCL_VTYPES): Update.
5893 2011-02-02 Joel Brobecker <brobecker@adacore.com>
5895 * configure.ac: Work around non-GNU sed limitation when computing
5896 python version number.
5897 * configure: Regenerate.
5899 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5901 Fix debug printing of TYPE_INSTANCE.
5902 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
5903 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
5905 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5907 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
5908 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
5909 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
5910 * ada-operator.inc: Rename the file to ...
5911 * ada-operator.def: ... here, wrap all the entries by macro OP.
5912 * expprint.c (op_name_standard): Remove all the entries. Include
5913 "std-operator.def" instead.
5914 * expression.h (enum exp_opcode): Include "std-operator.def" and
5915 "ada-operator.def". Move all the entries ...
5916 * std-operator.def: ... here, wrap all the entries by macro OP.
5918 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
5920 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
5921 * breakpoint.c (remove_jit_event_breakpoints): New function.
5922 * jit.c (jit_descriptor_addr): Delete.
5923 (registering_code): Delete.
5924 (clear_int): Delete.
5925 (jit_inferior_data): New variable.
5926 (struct jit_inferior_data): New type.
5927 (get_jit_inferior_data): New function.
5928 (jit_inferior_data_cleanup): New function.
5929 (jit_read_descriptor): Adjust.
5930 (jit_register_code): Adjust.
5931 (jit_breakpoint_re_set_internal): New function; move code here ...
5932 (jit_inferior_init): ... from here.
5933 (jit_breakpoint_re_set): Adjust.
5934 (jit_reset_inferior_data_and_breakpoints): New function.
5935 (jit_inferior_created_observer): Adjust.
5936 (jit_inferior_exit_hook): Adjust.
5937 (jit_executable_changed_observer): New function.
5938 (jit_event_handler): Adjust.
5939 (_initialize_jit): Adjust.
5941 2011-01-31 Michael Snyder <msnyder@vmware.com>
5943 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
5946 2011-01-31 Tom Tromey <tromey@redhat.com>
5949 * python/python.c (execute_gdb_command): Call
5950 prevent_dont_repeat.
5951 * top.c (suppress_dont_repeat): New global.
5952 (dont_repeat): Use it.
5953 (prevent_dont_repeat): New function.
5954 * command.h (prevent_dont_repeat): Declare.
5956 2011-01-31 Tom Tromey <tromey@redhat.com>
5958 * infcmd.c (finish_backward): Use breakpoint_set_silent.
5959 * python/py-breakpoint.c (bppy_set_silent): Use
5960 breakpoint_set_silent.
5961 (bppy_set_thread): Use breakpoint_set_thread.
5962 (bppy_set_task): Use breakpoint_set_task.
5963 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
5964 (breakpoint_set_task): Declare.
5965 (make_breakpoint_silent): Remove.
5966 * breakpoint.c (breakpoint_set_silent): New function.
5967 (breakpoint_set_thread): Likewise.
5968 (breakpoint_set_task): Likewise.
5969 (make_breakpoint_silent): Remove.
5971 2011-01-31 Tom Tromey <tromey@redhat.com>
5973 * breakpoint.h (user_breakpoint_p): Declare.
5974 * breakpoint.c (user_breakpoint_p): New function.
5975 (breakpoint_1): Use it.
5976 (save_breakpoints): Likewise.
5978 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5980 * configure.ac: Add handling of Python distribution on Windows.
5981 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
5982 sysconfig variables are not defined, then do not use them.
5983 On Windows, if LIBPL is not defined, then use prefix + '/libs'
5984 instead. On Windows, return all paths using forward-slashes
5985 rather than backslashes.
5987 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5989 * configure.ac: Remove fallback behavior for building
5990 against Python. Remove tweaking of Python include path.
5991 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
5992 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
5993 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
5994 Always restore CPPFLAGS and LIBS after linking test.
5995 * configure: Regenerated.
5996 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
5997 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
5998 * python/python-internal.h: Adjust includes of Python .h files.
6000 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6002 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
6005 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6007 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
6010 2011-01-31 Yao Qi <yao@codesourcery.com>
6012 * arm-linux-nat.c: Update calls to regcache_register_status
6013 instead of regcache_valid_p.
6014 * aix-thread.c: Likewise.
6015 * i386gnu-nat.c: Likewise.
6017 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6020 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
6021 touching TYPE_FIELD_ARTIFICIAL.
6023 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
6025 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
6028 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6030 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
6031 selected, don't try iterating over the traceframe's blocks.
6032 (tfile_has_stack): If there's no traceframe selected, then there's
6034 (tfile_has_registers): If there's no traceframe selected, then
6035 there's no registers.
6037 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6039 * target.c (memory_xfer_partial): No need to restore shadows if we
6040 haven't read anything.
6042 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6044 * mips-tdep.c (mips_print_register): Use get_frame_register_value
6045 and val_print_scalar_formatted.
6047 2011-01-27 Pedro Alves <pedro@codesourcery.com>
6049 * tracepoint.c (tfile_read): New.
6050 (tfile_open): Use it.
6051 (tfile_get_traceframe_address): Use it.
6052 (tfile_trace_find): Use it.
6053 (walk_blocks_callback_func): New typedef.
6054 (match_blocktype): New function.
6055 (traceframe_walk_blocks): New function.
6056 (traceframe_find_block_type): New function.
6057 (tfile_fetch_registers, tfile_xfer_partial)
6058 (tfile_get_trace_state_variable_value): Use
6059 traceframe_find_block_type and tfile_read.
6061 2011-01-26 Kevin Buettner <kevinb@redhat.com>
6063 * remote-mips.c: Add internationalization mark ups. Remove
6064 trailing \n from already marked up strings.
6066 2011-01-26 Tom Tromey <tromey@redhat.com>
6068 * python/py-prettyprint.c (print_string_repr): Clear
6069 'addressprint' option when calling val_print_string.
6070 (print_children): Handle Val_pretty_default. Clear 'addressprint'
6071 option when calling val_print_string.
6073 2011-01-26 Tom Tromey <tromey@redhat.com>
6075 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
6077 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
6079 (gdb_py_longest, gdb_py_ulongest): New typedefs.
6080 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
6081 (gdb_py_long_as_ulongest): New defines.
6082 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
6083 (gdb_py_int_as_long): Declare.
6084 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
6085 GDB_PY_LL_ARG, gdb_py_object_from_longest.
6086 (valpy_long): Add comment.
6087 * python/py-utils.c (get_addr_from_python): Use
6088 gdb_py_long_as_ulongest. Handle overflow properly.
6089 (gdb_py_object_from_longest): New function.
6090 (gdb_py_object_from_ulongest): Likewise.
6091 (gdb_py_int_as_long): Likewise.
6092 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
6093 * python/py-symtab.c (salpy_get_pc): Use
6094 gdb_py_long_from_ulongest.
6095 (salpy_get_line): Use PyInt_FromLong.
6096 * python/py-param.c (set_parameter_value): Use
6098 * python/py-lazy-string.c (stpy_get_address): Use
6099 gdb_py_long_from_ulongest.
6100 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
6101 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
6102 * python/py-breakpoint.c (bppy_set_thread): Use
6104 (bppy_set_task): Likewise.
6105 (bppy_set_ignore_count): Likewise.
6106 (bppy_set_hit_count): Likewise.
6107 * python/py-block.c (blpy_get_start): Use
6108 gdb_py_object_from_ulongest.
6109 (blpy_get_end): Likewise.
6110 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
6112 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
6115 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
6116 * gdb/solib.c (solib_read_symbols): Check for addr_low in
6117 equality test for objfile, initialize addr_low if needed.
6119 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6121 * tui/tui-regs.c (tui_register_format): Remove dead code.
6123 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6125 * printcmd.c (print_formatted): Use val_print_scalar_formatted
6126 instead of print_scalar_formatted.
6127 (print_scalar_formatted): Don't handle 's' format strings here,
6128 and add an assertion that we never see such format here.
6129 * valprint.h (val_print_scalar_formatted): Declare.
6130 * valprint.c (val_print_scalar_formatted): New.
6131 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
6132 instead of print_scalar_formatted.
6133 * jv-valprint.c (java_val_print): Ditto.
6134 * p-valprint.c (pascal_val_print): Ditto.
6135 * ada-valprint.c (ada_val_print_1): Ditto.
6136 * f-valprint.c (f_val_print): Ditto.
6137 * infcmd.c (registers_info): Ditto.
6138 * m2-valprint.c (m2_val_print): Ditto.
6140 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6142 * m2-valprint.c (print_unbounded_array): Pass
6143 value_contents_for_printing rather than value_contents, to
6144 m2_print_array_contents. Also pass in the value.
6146 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6148 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
6149 (save_gdb_index_command): Switch to .gdb_index version 4.
6151 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6153 * mi/mi-main.c (get_register): Use get_frame_register_value rather
6154 than frame_register, and always pass a valid value to val_print.
6156 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6158 Centralize printing "<optimized out>".
6160 * valprint.h (val_print_optimized_out): Declare.
6161 * cp-valprint.c (cp_print_value_fields): Use
6162 val_print_optimized_out.
6163 * jv-valprint.c (java_print_value_fields): Ditto.
6164 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6165 * printcmd.c (print_formatted): Ditto.
6166 * valprint.c (valprint_check_validity): Ditto.
6167 (value_check_printable): Ditto.
6168 (val_print_optimized_out): New.
6170 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6172 * infcmd.c (default_print_registers_info): Allocate values so to
6173 never pass a NULL value to val_print.
6175 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6177 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
6178 boolean. Make sure to always pass a value that matches the
6179 contents buffer to callees. Preserve `address' for following
6181 * value.c (value_contents_for_printing_const): New.
6182 (value_address): Constify value argument.
6183 * value.h (value_contents_for_printing_const): Declare.
6184 (value_address): Constify value argument.
6186 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6188 * regcache.c (struct regcache_descr): Rename
6189 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
6190 and sizeof_cooked_register_valid_p to
6191 sizeof_cooked_register_status.
6192 (init_regcache_descr): Adjust.
6193 (struct regcache): Rename register_valid_p field to
6195 (regcache_xmalloc_1, regcache_xfree, regcache_save)
6196 (do_cooked_read): Adjust.
6197 (regcache_valid_p): Rename to ...
6198 (regcache_register_status): ... this. Adjust.
6199 (regcache_invalidate): Adjust.
6200 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
6202 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
6203 as unavailable, not valid.
6204 (regcache_dump): Adjust.
6205 * regcache.h (enum register_status): New.
6206 (regcache_register_status): Declare.
6207 (regcache_invalidate): Delete declaration.
6208 * corelow.c (get_core_registers): Adjust.
6209 * tracepoint.c (tfile_fetch_registers): Adjust.
6210 * trad-frame.c (REG_VALUE): Rename to ...
6211 (TF_REG_VALUE): ... this.
6212 (REG_UNKNOWN): Rename to ...
6213 (TF_REG_UNKNOWN): ... this.
6214 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
6215 * mi/mi-main.c (register_changed_p): Adjust.
6217 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6219 * regcache.c (struct regcache_descr): Remove outdated comment.
6220 (init_regcache_descr): Remove sizeof_raw_register_valid_p
6222 (regcache_xmalloc): Rename to ...
6223 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
6224 Allocate the regcache type accordingly.
6225 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
6226 (regcache_xfree): Asser the source is also readonly. Copy sizeof
6227 cooked registers, not raw.
6228 (regcache_dup_no_passthrough): Delete.
6229 (get_thread_arch_regcache): Use regcache_xmalloc_1.
6230 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
6231 mention obsolete write_register_bytes.
6232 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
6234 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6236 Stop remote_read_bytes from handling partial reads itself.
6238 * remote-fileio.c: Include target.h.
6239 (remote_fileio_write_bytes): Delete.
6240 (remote_fileio_func_open, remote_fileio_func_write)
6241 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
6243 (remote_fileio_func_stat): Use target_read_memory and
6244 target_write_memory.
6245 (remote_fileio_func_gettimeofday): Use target_write_memory.
6246 (remote_fileio_func_system): Use target_read_memory.
6247 * remote.c (remote_write_bytes): Make it static.
6248 (remote_read_bytes): Don't handle partial reads here.
6249 * remote.h (remote_read_bytes): Delete declaration.
6251 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6253 Simplify XML parsing a bit.
6255 * xml-support.h (gdb_xml_parse_quick): Declare.
6256 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
6257 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
6259 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
6260 gdb_xml_create_parser_and_cleanup_1.
6261 (gdb_xml_parse_quick): New.
6262 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
6263 * osdata.c (osdata_parse): Ditto.
6264 * remote.c (remote_threads_info): Ditto.
6265 * solib-target.c (solib_target_parse_libraries): Ditto.
6266 * xml-syscall.c (syscall_parse_xml): Ditto.
6267 * xml-tdesc.c (tdesc_parse_xml): Ditto.
6269 2011-01-24 Kevin Buettner <kevinb@redhat.com>
6271 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
6272 with remote-mips.o added to gdb_target_obs.
6273 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
6275 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6277 * ada-valprint.c (val_print_packed_array_elements): Pass the
6278 correct struct value to val_print.
6279 (ada_val_print_1): Ditto.
6281 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6283 Don't lose embedded_offset in printing routines throughout.
6285 * valprint.h (val_print_array_elements): Change prototype.
6286 * valprint.c (val_print_array_elements): Add `embedded_offset'
6287 parameter, and adjust to pass it down to val_print, while passing
6288 `valaddr' or `address' unmodified. Take embedded_offset into
6289 account when checking repetitions.
6290 * c-valprint.c (c_val_print): Pass embedded_offset to
6291 val_print_array_elements instead of adjusting `valaddr' and
6293 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
6294 embedded_offset to val_print_array_elements instead of adjusting
6296 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
6297 * p-valprint.c (pascal_val_print): Pass embedded_offset to
6298 val_print_array_elements and pascal_object_print_value_fields
6299 instead of adjusting `valaddr'.
6300 (pascal_object_print_value_fields): Add `offset' parameter, and
6302 (pascal_object_print_value): Add `offset' parameter, and adjust to
6304 (pascal_object_print_static_field): Use
6305 value_contents_for_printing/value_embedded_offset, rather than
6307 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
6308 parameter, and adjust to use it. Use
6309 value_contents_for_printing/value_embedded_offset, rather than
6311 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
6312 (ada_val_print_array): Add `offset' parameter, and adjust to use
6314 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
6315 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
6316 Instead work with offsets. Use
6317 value_contents_for_printing/value_embedded_offset, rather than
6318 value_contents. Change `defer_val_int' local type to CORE_ADDR,
6319 and use value_from_pointer to extract a target pointer, rather
6320 than value_from_longest.
6321 (print_variant_part): Add `offset' parameter. Replace
6322 `outer_valaddr' parameter by a new `outer_offset' parameter.
6323 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6324 (ada_value_print): Use
6325 value_contents_for_printing/value_embedded_offset, rather than
6327 (print_record): Add `offset' parameter, and adjust to pass it
6329 (print_field_values): Add `offset' parameter. Replace
6330 `outer_valaddr' parameter by a new `outer_offset' parameter.
6331 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6332 Use value_contents_for_printing/value_embedded_offset, rather than
6334 * d-valprint.c (dynamic_array_type): Use
6335 value_contents_for_printing/value_embedded_offset, rather than
6337 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
6338 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6339 (java_print_value_fields): Take `offset' into account. Don't
6340 re-adjust `valaddr'. Instead pass down adjusted offsets.
6341 (java_val_print): Take `embedded_offset' into account. Pass it to
6342 java_print_value_fields.
6343 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
6344 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
6345 down adjusted offsets.
6346 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
6347 (f_val_print): Take `embedded_offset' into account.
6349 2011-01-21 Joel Brobecker <brobecker@adacore.com>
6351 * inflow.c: Include "gdbcmd.h".
6352 (interactive_mode): New static global, moved here from top.c.
6353 (show_interactive_mode): New function, moved here from top.c.
6354 use gdb_has_a_terminal instead of input_from_terminal_p to
6355 determine the current mode.
6356 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
6358 (_initialize_inflow): Add the "set/show interactive-mode"
6359 commands. Moved here from top.c, after having adjusted slightly
6361 * top.c (interactive_mode, show_interactive_mode): Delete, moved
6363 (input_from_terminal_p): Remove handling of "interactive-mode"
6364 setting, moved to infow.c.
6365 (init_main): Remove creation of the "set/show interactive-mode"
6366 commands, moved to inflow.c.
6368 2011-01-19 Joel Brobecker <brobecker@adacore.com>
6370 * NEWS: Add entry for native ia64-hpux support.
6372 2011-01-19 Tom Tromey <tromey@redhat.com>
6375 * thread.c (free_thread): Free 'name'.
6376 (print_thread_info): Emit thread name. Change CLI output.
6377 (thread_name_command): New function.
6378 (do_captured_thread_select): Emit newline.
6379 (_initialize_thread): Register 'thread name' command.
6380 * target.h (struct target_ops) <to_thread_name>: New field.
6381 (target_thread_name): New macro.
6382 * target.c (update_current_target): Handle to_thread_name.
6383 * python/py-infthread.c (thpy_get_name): New function.
6384 (thpy_set_name): Likewise.
6385 (thread_object_getset): Add "name".
6386 * linux-nat.c (linux_nat_thread_name): New function.
6387 (linux_nat_add_target): Set to_thread_name.
6388 * gdbthread.h (struct thread_info) <name>: New field.
6390 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6392 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
6393 (ada_val_print_1): Likewise.
6395 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6397 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
6398 upper limit address is not greater than the function end address
6399 when the upper limit could not be computed using the debugging
6402 2011-01-17 Tom Tromey <tromey@redhat.com>
6404 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
6406 * utils.c: Include gdb_regex.h.
6407 (do_regfree_cleanup): New function.
6408 (make_regfree_cleanup): Likewise.
6409 (get_regcomp_error): Likewise.
6410 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
6412 2011-01-17 Tom Tromey <tromey@redhat.com>
6414 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
6417 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6419 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
6420 for internal variables.
6421 (last_was_structop): New static variable.
6422 (COMPLETE): New token.
6423 (field_exp): New rule to group all '.' suffix handling.
6424 Add mark_struct_expression calls when approriate to be able
6425 to correctly find fields for completion.
6426 (yylex): Adapt to handle field completion and set INTVAR when
6429 2011-01-14 Yao Qi <yao@codesourcery.com>
6431 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
6432 save_reggroup, restore_reggroup and all_reggroup.
6434 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6436 * ada-valprint. (ada_printchar): Use the correct type length
6437 in call to ada_emit_char.
6438 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
6440 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6442 * solib-som.h (hpux_major_release): Declare variable here.
6443 * solib-som.c: Remove <sys/utsname.h> header.
6444 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
6445 (hpux_major_release): Make global, change default value to
6446 DEFAULT_HPUX_MAJOR_RELEASE.
6447 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
6448 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
6449 Add "solib-som.h" header.
6450 (set_hpux_major_release): New function.
6451 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
6453 2011-01-14 Mike Frysinger <vapier@gentoo.org>
6455 * configure.tgt (*-*-uclinux*): Match more Linux os targets
6457 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6459 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
6460 new-line at end of warning message.
6461 (ia64_hpux_store_register): Remove trailing new-line at end of
6463 * ia64-hpux-tdep.c: Rephrase comment.
6464 * solib-ia64-hpux.c (struct dld_info): Change type of field
6465 dld_flags from "long long" to ULONGEST.
6467 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6469 * target.h (deprecated_child_ops): Delete declaration.
6470 * target.c (deprecated_child_ops): Delete definition.
6472 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6474 * Makefile.in (hpux-thread.o): Delete rule.
6475 * configure.ac: Don't check for HPUX DCE threads support.
6476 * configure, config.in: Regenerate.
6477 * hppa-hpux-nat.c (child_suppress_run): Delete.
6478 (hppa_hpux_child_can_run): Delete.
6479 (_initialize_hppa_hpux_nat): Don't override to_can_run.
6480 * hpux-thread.c: Delete.
6482 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6484 * hpux-thread.c (hpux_pid_to_str): Delete.
6486 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6488 * ada-valprint.c (ada_emit_char): Remove strange code.
6489 Check that c is <= UCHAR_MAX before passing it to isascii.
6490 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
6492 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6494 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
6495 to the case where instream is stdin.
6497 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6499 * ia64-tdep.h (struct regcache): Forward declare.
6500 (struct ia64_infcall_ops): New struct type.
6501 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
6503 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
6504 Renames ia64_find_global_pointer.
6505 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
6506 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
6507 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
6509 (ia64_infcall_ops): New static global constant.
6510 (ia64_gdbarch_init): Set tdep->infcall_ops.
6511 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
6512 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
6513 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
6514 (ia64_hpux_dummy_code): New static global constant.
6515 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
6516 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
6517 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
6519 (ia64_hpux_infcall_ops): New static global constant.
6520 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
6521 for inferior function calls to work properly on ia64-hpux.
6523 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6525 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
6526 * ia64-tdep.h (struct frame_info): forward declaration.
6527 (struct gdbarch_tdep): Add field size_of_register_frame.
6528 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
6529 to determine the size of the register frame.
6530 (ia64_size_of_register_frame): New function.
6531 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
6532 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
6533 (IA64_HPUX_UREG_REASON): New macro.
6534 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
6536 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
6537 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
6538 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
6541 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6543 Add support for ia64-hpux.
6544 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
6545 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
6547 * configure.host: Add handling for ia64-hpux hosts. Add associated
6549 * configure.tgt: Add handling for ia64-hpux targets.
6550 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
6551 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
6552 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
6554 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6556 [ttrace] Compute thread list immediately after attach.
6557 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
6559 (inf_ttrace_attach): Use it.
6561 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6563 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
6564 if we could not determine the frame's function address. Instead,
6565 use the frame's PC, and then continue.
6567 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6569 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
6570 not already defined.
6572 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6574 * ia64-tdep.c (ia64_struct_type_p): New function.
6575 (ia64_extract_return_value): Handle integral values that are
6576 less than 8 bytes long.
6577 (ia64_push_dummy_call): Likewise.
6579 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6581 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
6582 floatformat_ia64_ext.
6583 (floatformat_ia64_ext_big): New static const.
6584 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
6586 2011-01-12 Tom Tromey <tromey@redhat.com>
6588 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
6590 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
6591 (mi_cmd_thread_list_ids): Likewise.
6592 (mi_cmd_data_list_changed_registers): Likewise.
6593 (mi_cmd_data_list_register_values): Likewise.
6594 (mi_cmd_data_write_register_values): Likewise.
6595 (mi_cmd_data_evaluate_expression): Likewise.
6596 (mi_cmd_data_read_memory): Likewise.
6597 (mi_cmd_data_read_memory_bytes): Likewise.
6598 (mi_cmd_data_write_memory): Likewise.
6599 (mi_cmd_enable_timings): Likewise.
6600 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
6601 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
6602 (mi_cmd_var_delete): Likewise.
6603 (mi_cmd_var_set_format): Likewise.
6604 (mi_cmd_var_show_format): Likewise.
6605 (mi_cmd_var_info_num_children): Likewise.
6606 (mi_cmd_var_list_children): Likewise.
6607 (mi_cmd_var_info_type): Likewise.
6608 (mi_cmd_var_info_expression): Likewise.
6609 (mi_cmd_var_show_attributes): Likewise.
6610 (mi_cmd_var_assign): Likewise.
6611 (mi_cmd_var_update): Likewise.
6612 (mi_cmd_enable_pretty_printing): Likewise.
6613 (mi_cmd_var_set_update_range): Likewise.
6614 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
6616 (mi_cmd_target_file_put): Likewise.
6617 (mi_cmd_target_file_delete): Likewise.
6618 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
6620 (mi_cmd_stack_info_depth): Likewise.
6621 (mi_cmd_stack_list_locals): Likewise.
6622 (mi_cmd_stack_list_args): Likewise.
6623 (mi_cmd_stack_select_frame): Likewise.
6624 (mi_cmd_stack_select_frame): Likewise.
6625 (mi_cmd_stack_info_frame): Likewise.
6626 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
6628 (mi_cmd_file_list_exec_source_files): Likewise.
6629 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
6630 (mi_cmd_env_cd): Likewise.
6631 (mi_cmd_env_path): Likewise.
6632 (mi_cmd_env_dir): Likewise.
6633 (mi_cmd_inferior_tty_show): Likewise.
6634 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
6635 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
6636 (mi_cmd_break_watch): Likewise.
6638 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
6640 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
6641 (ppc_linux_insert_hw_breakpoint): Likewise.
6642 (ppc_linux_remove_hw_breakpoint): Likewise.
6643 (ppc_linux_insert_watchpoint): Likewise.
6645 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6646 Jan Kratochvil <jan.kratochvil@redhat.com>
6648 PR fortran/11104 and DWARF unbound arrays detection.
6649 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
6650 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
6651 unspecified upper bound.
6652 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
6653 variables array_size_array, tmp_type and offset_item. New variable
6654 array. Remove call to f77_get_upperbound. New variables array_type
6655 and index. Call value_subscripted_rvalue for each dimenasion. Remove
6656 the final call to deprecated_set_value_type.
6658 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6660 Make value allocations more lazy.
6661 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
6662 instead of allocate_value and set_value_lazy when possible.
6663 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
6664 instead of allocate_value and set_value_lazy.
6665 * findvar.c (value_of_register_lazy): Likewise.
6666 (read_var_value): Remove V preallocation, call just check_typedef in
6667 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
6668 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
6669 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
6670 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
6671 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
6672 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
6673 the end, remove set_value_lazy there.
6674 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
6675 instead of allocate_value and set_value_lazy when possible.
6676 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
6677 * value.c (allocate_computed_value): Use allocate_value_lazy instead
6678 of allocate_value and set_value_lazy.
6679 (value_from_contents_and_address): Use allocate_value_lazy instead of
6680 allocate_value and set_value_lazy when possible.
6682 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6684 * disasm.c (dump_insns): Support dumping opcodes for MI.
6685 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
6686 dumping of instruction opcodes.
6688 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
6690 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
6693 2011-01-11 Tom Tromey <tromey@redhat.com>
6695 * thread.c (do_captured_thread_select): Emit newline before
6698 2011-01-11 Michael Snyder <msnyder@vmware.com>
6700 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
6701 * score-tdep.c: Ditto.
6702 * score-tdep.h: Ditto.
6703 * ser-base.c: Ditto.
6704 * ser-go32.c: Ditto.
6707 * ser-mingw.c: Ditto.
6708 * ser-pipe.c: Ditto.
6710 * ser-unix.c: Ditto.
6711 * sh64-tdep.c: Ditto.
6712 * shnbsd-nat.c: Ditto.
6716 * solib-darwin.c: Ditto.
6717 * solib-frv.c: Ditto.
6719 * solib-irix.c: Ditto.
6720 * solib-osf.c: Ditto.
6721 * solib-pa64.c: Ditto.
6722 * solib-som.c: Ditto.
6723 * solib-spu.c: Ditto.
6724 * solib-sunos.c: Ditto.
6725 * solib-svr4.c: Ditto.
6727 * sol-thread.c: Ditto.
6731 * sparc64-linux-tdep.c: Ditto.
6732 * sparc64-tdep.c: Ditto.
6733 * sparc-linux-nat.c: Ditto.
6734 * sparc-linux-tdep.c: Ditto.
6735 * sparc-sol2-nat.c: Ditto.
6736 * sparc-sol2-tdep.c: Ditto.
6737 * sparc-tdep.c: Ditto.
6738 * sparc-tdep.h: Ditto.
6739 * spu-tdep.c: Ditto.
6740 * stabsread.c: Ditto.
6741 * stabsread.h: Ditto.
6749 * target-descriptions.c: Ditto.
6750 * target-descriptions.h: Ditto.
6752 * target-memory.c: Ditto.
6753 * terminal.h: Ditto.
6756 * tracepoint.c: Ditto.
6757 * tracepoint.h: Ditto.
6758 * trad-frame.h: Ditto.
6759 * typeprint.c: Ditto.
6761 2011-01-11 Michael Snyder <msnyder@vmware.com>
6763 * ui-file.c: Comment cleanup, mostly periods and spaces.
6768 * v850-tdep.c: Ditto.
6769 * valarith.c: Ditto.
6771 * valprint.c: Ditto.
6772 * valprint.h: Ditto.
6777 * vax-tdep.c: Ditto.
6781 * windows-nat.c: Ditto.
6782 * windows-tdep.c: Ditto.
6783 * xcoffread.c: Ditto.
6784 * xcoffsolib.c: Ditto.
6785 * xml-support.c: Ditto.
6786 * xstormy16-tdep.c: Ditto.
6787 * xtensa-tdep.c: Ditto.
6788 * xtensa-tdep.h: Ditto.
6790 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6792 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6793 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6795 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6796 Thiago Jung Bauermann <bauerman@br.ibm.com>
6798 Implement support for PowerPC BookE ranged watchpoints.
6800 (struct breakpoint_ops) <resources_needed>: New method.
6801 Initialize to NULL in all existing breakpoint_ops instances.
6802 (struct breakpoint) <exact>: New field.
6803 (target_exact_watchpoints): Declare external global.
6804 * breakpoint.c (target_exact_watchpoints): New global flag.
6805 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6806 b->enable_state to bp_enabled before calling
6807 hw_watchpoint_used_count.
6808 (hw_watchpoint_used_count): Iterate over all bp_locations in a
6809 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
6811 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6812 if the watchpoint is exact.
6813 (resources_needed_watchpoint): New function.
6814 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6815 (watch_command_1): Set b->exact if the user asked for an exact
6816 watchpoint and one can be set.
6817 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6818 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6819 the user asks for an exact watchpoint and one can be set. Return
6820 number of needed debug registers to watch the expression.
6821 * gdbtypes.c (is_scalar_type): New function, based on
6822 valprint.c:scalar_type_p.
6823 (is_scalar_type_recursive): New function.
6824 * gdbtypes.h (is_scalar_type_recursive): Declare.
6825 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6826 handle regions when ranged watchpoints are available.
6827 (create_watchpoint_request): New function.
6828 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6829 create_watchpoint_request.
6830 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6831 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6832 `set powerpc' and `show powerpc' commands.
6833 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6834 Mention documentation comment in the target macro.
6835 (target_region_ok_for_hw_watchpoint): Document return value.
6837 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6839 * breakpoint.c (update_watchpoint): Decide on using a software or
6840 hardware watchpoint after the bp_locations are created.
6842 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6844 Convert hardware watchpoints to use breakpoint_ops.
6845 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6846 <insert_location>: ... this. Return int instead of void.
6847 Accept pointer to struct bp_location instead of pointer to
6848 struct breakpoint. Adapt all implementations.
6849 (breakpoint_ops) <remove>: Rename to...
6850 <remove_location>: ... this. Accept pointer to struct bp_location
6851 instead of pointer to struct breakpoint. Adapt all implementations.
6852 * breakpoint.c (insert_catchpoint): Delete function.
6853 (insert_bp_location): Call the watchpoint or catchpoint's
6854 breakpoint_ops.insert method.
6855 (remove_breakpoint_1): Call the watchpoint or catchpoint's
6856 breakpoint_ops.remove method.
6857 (insert_watchpoint, remove_watchpoint): New functions.
6858 (watchpoint_breakpoint_ops): New structure.
6859 (watch_command_1): Initialize the OPS field.
6860 * inf-child.c (inf_child_insert_fork_catchpoint)
6861 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
6862 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
6863 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
6865 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
6866 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
6867 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
6868 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
6869 * target.c (update_current_target): Change default implementation of
6870 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
6871 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
6872 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
6873 to_set_syscall_catchpoint to return_one.
6874 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
6875 (debug_to_insert_exec_catchpoint): Report return value.
6876 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
6877 (to_insert_exec_catchpoint): Change declaration to return int instead
6880 2011-01-11 Michael Snyder <msnyder@vmware.com>
6882 * arm-tdep.c: Internationalization.
6885 * fork-child.c: Ditto.
6886 * nto-procfs.c: Ditto.
6887 * ppc-sysv-tdep.c: Ditto.
6889 * remote-mips.c: Ditto.
6891 * rs6000-nat.c: Ditto.
6892 * rs6000-tdep.c: Ditto.
6896 * xml-support.c: Ditto.
6897 * mi/mi-cmd-break.c: Ditto.
6898 * mi/mi-cmd-var.c: Ditto.
6899 * mi/mi-interp.c: Ditto.
6900 * mi/mi-main.c: Ditto.
6902 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
6904 * remote-sim.c (gdbsim_store_register): Update API to
6905 sim_store_register to check more error conditions.
6907 2011-01-10 Michael Snyder <msnyder@vmware.com>
6909 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
6910 * nto-tdep.c: Ditto.
6911 * nto-tdep.h: Ditto.
6912 * objc-exp.y: Ditto.
6913 * objc-lang.c: Ditto.
6914 * objfiles.c: Ditto.
6915 * objfiles.h: Ditto.
6916 * observer.c: Ditto.
6917 * opencl-lang.c: Ditto.
6920 * parser-defs.h: Ditto.
6923 * posix-hdep.c: Ditto.
6924 * ppcbug-rom.c: Ditto.
6925 * ppc-linux-nat.c: Ditto.
6926 * ppc-linux-tdep.c: Ditto.
6927 * ppc-linux-tdep.h: Ditto.
6928 * ppcnbsd-tdep.c: Ditto.
6929 * ppcobsd-tdep.c: Ditto.
6930 * ppcobsd-tdep.h: Ditto.
6931 * ppc-sysv-tdep.c: Ditto.
6932 * ppc-tdep.h: Ditto.
6933 * printcmd.c: Ditto.
6934 * proc-abi.c: Ditto.
6935 * proc-flags.c: Ditto.
6937 * proc-utils.h: Ditto.
6938 * progspace.h: Ditto.
6939 * prologue-value.c: Ditto.
6940 * prologue-value.h: Ditto.
6941 * psympriv.h: Ditto.
6943 * p-typeprint.c: Ditto.
6944 * p-valprint.c: Ditto.
6945 * ravenscar-sparc-thread.c: Ditto.
6946 * ravenscar-thread.c: Ditto.
6947 * ravenscar-thread.h: Ditto.
6949 * regcache.c: Ditto.
6950 * regcache.h: Ditto.
6952 * remote-fileio.c: Ditto.
6953 * remote-fileio.h: Ditto.
6955 * remote-m32r-sdi.c: Ditto.
6956 * remote-mips.c: Ditto.
6957 * remote-sim.c: Ditto.
6958 * rs6000-aix-tdep.c: Ditto.
6959 * rs6000-nat.c: Ditto.
6960 * rs6000-tdep.c: Ditto.
6962 2011-01-10 Michael Snyder <msnyder@vmware.com>
6964 * charset.c (validate): Internationalization.
6965 * coffread.c (read_one_sym): Ditto.
6966 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
6967 * h8300-tdep.c (H8300_extract_return_value): Ditto.
6968 * inflow.c (new_tty): Ditto.
6969 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
6970 * m32c-tdep.c (m32c_return_value): Ditto.
6971 * mep-tdep.c (mep_store_return_value): Ditto.
6972 * score-tdep.c (score7_fetch_insn): Ditto.
6973 * ser-mingw.c (pipe_windows_open): Ditto.
6974 * sh64-tdep.c (sh64_extract_return_value): Ditto.
6975 * spu-tdep.c (spu_register_type): Ditto.
6976 * tracepoint.c (trace_find_command): Ditto.
6977 * valarith.c (value_pos): Ditto.
6979 2011-01-10 Joel Brobecker <brobecker@adacore.com>
6981 * ada-valprint.c (printstr): Minor comment reformatting.
6983 2011-01-08 Michael Snyder <msnyder@vmware.com>
6985 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
6988 2011-01-08 Michael Snyder <msnyder@vmware.com>
6990 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
6991 * hppa-hpux-tdep.c: Ditto.
6992 * hppa-linux-nat.c: Ditto.
6993 * hppa-linux-tdep.c: Ditto.
6994 * hppanbsd-tdep.c: Ditto.
6995 * hppa-tdep.c: Ditto.
6996 * hppa-tdep.h: Ditto.
6997 * hpux-thread.c: Ditto.
6998 * i386-cygwin-tdep.c: Ditto.
6999 * i386-darwin-nat.c: Ditto.
7000 * i386gnu-nat.c: Ditto.
7001 * i386-linux-nat.c: Ditto.
7002 * i386-linux-tdep.c: Ditto.
7003 * i386-nat.c: Ditto.
7004 * i386-nat.h: Ditto.
7005 * i386nbsd-tdep.c: Ditto.
7006 * i386-sol2-nat.c: Ditto.
7007 * i386-stub.c: Ditto.
7008 * i386-tdep.c: Ditto.
7009 * i386-tdep.h: Ditto.
7010 * i387-tdep.c: Ditto.
7011 * ia64-linux-nat.c: Ditto.
7012 * ia64-linux-tdep.c: Ditto.
7013 * ia64-tdep.c: Ditto.
7017 * inferior.c: Ditto.
7018 * inferior.h: Ditto.
7024 * iq2000-tdep.c: Ditto.
7025 * irix5-nat.c: Ditto.
7031 * jv-typeprint.c: Ditto.
7032 * jv-valprint.c: Ditto.
7033 * language.c: Ditto.
7034 * language.h: Ditto.
7035 * linespec.c: Ditto.
7036 * linux-fork.c: Ditto.
7037 * linux-nat.c: Ditto.
7038 * linux-thread-db.c: Ditto.
7039 * lm32-tdep.c: Ditto.
7041 2011-01-08 Michael Snyder <msnyder@vmware.com>
7043 * m2-exp.y: Comment cleanup, mostly periods and spaces.
7045 * m2-typeprint.c: Ditto.
7046 * m2-valprint.c: Ditto.
7047 * m32c-tdep.c: Ditto.
7048 * m32r-linux-nat.c: Ditto.
7049 * m32r-rom.c: Ditto.
7050 * m32r-tdep.c: Ditto.
7051 * m32r-tdep.h: Ditto.
7052 * m68hc11-tdep.c: Ditto.
7053 * m58klinux-nat.c: Ditto.
7054 * m68k-tdep.c: Ditto.
7055 * m88k-tdep.c: Ditto.
7056 * m88k-tdep.h: Ditto.
7057 * machoread.c: Ditto.
7058 * macrocmd.c: Ditto.
7059 * macroexp.c: Ditto.
7060 * macrotab.c: Ditto.
7063 * mdebugread.c: Ditto.
7064 * mdebugread.h: Ditto.
7067 * memory-map.h: Ditto.
7068 * mep-tdep.c: Ditto.
7069 * microblaze-rom.c: Ditto.
7070 * microblaze-tdep.c: Ditto.
7072 * mips-irix-tdep.c: Ditto.
7073 * mips-linux-nat.c: Ditto.
7074 * mips-linux-tdep.c: Ditto.
7075 * mips-linux-tdep.h: Ditto.
7076 * mipsnbsd-nat.c: Ditto.
7077 * mipsnbsd-tdep.c: Ditto.
7078 * mipsread.c: Ditto.
7079 * mips-tdep.c: Ditto.
7080 * mips-tdep.h: Ditto.
7081 * mn10300-linux-tdep.c: Ditto.
7082 * mn10300-tdep.c: Ditto.
7083 * mn10300-tdep.h: Ditto.
7086 * moxie-tdep.c: Ditto.
7087 * moxie-tdep.h: Ditto.
7090 2011-01-08 Mike Frysinger <vapier@gentoo.org>
7092 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
7094 2011-01-08 Robert Millan <rmh@gnu.org>
7096 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
7098 2011-01-07 Michael Snyder <msnyder@vmware.com>
7100 * charset.c (_initialize_charset): Fix typo in string.
7102 2011-01-07 Michael Snyder <msnyder@vmware.com>
7104 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
7106 * tui/tui-layout.c (tui_set_layout_for_display_command):
7107 Split line so that operator goes to beginning of line.
7108 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
7109 assignment out of if statement.
7111 2011-01-07 Michael Snyder <msnyder@vmware.com>
7113 * ada-lang.c: Comment cleanup, mostly periods and spaces.
7114 * ada-lang.h: Ditto.
7115 * ada-tasks.c: Ditto.
7116 * ada-valprint.c: Ditto.
7117 * aix-threads.c: Ditto.
7118 * alpha-linux-nat.c: Ditto.
7119 * alpha-linux-tdep.c: Ditto.
7120 * alpha-mdebug-tdep.c: Ditto.
7121 * alpha-nat.c: Ditto.
7122 * alpha-osf1-tdep.c: Ditto.
7123 * alpha-tdep.c: Ditto.
7124 * alphabsd-nat.c: Ditto.
7125 * alphabsd-tdep.c: Ditto.
7126 * amd64-darwin-tdep.c: Ditto.
7127 * amd64-linux-nat.c: Ditto.
7128 * amd64-linux-tdep.c: Ditto.
7129 * amd64-sol2-tdep.c: Ditto.
7130 * amd64-tdep.c: Ditto.
7131 * amd64-fbsd-tdep.c: Ditto.
7132 * amd64-nbsd-tdep.c: Ditto.
7133 * amd64-obsd-tdep.c: Ditto.
7134 * amd64-linux-nat.c: Ditto.
7135 * amd64-linux-tdep.c: Ditto.
7136 * arm-tdep.c: Ditto.
7137 * arm-tdep.h: Ditto.
7138 * armnbsd-nat.c: Ditto.
7139 * avr-tdep.c: Ditto.
7140 * bfin-tdep.c: Ditto.
7142 * c-typeprintc: Ditto.
7143 * c-valprint.c: Ditto.
7144 * coff-pe-read.h: Ditto.
7145 * coffreead.c: Ditto.
7146 * cris-tdep.c: Ditto.
7148 * darwin-nat-info.c: Ditto.
7149 * darwin-nat.c: Ditto.
7150 * dbug-rom.c: Ditto.
7154 * dec-thread.c: Ditto.
7156 * demangle.c: Ditto.
7157 * dicos-tdep.c: Ditto.
7158 * dictionary.c: Ditto.
7159 * dictionary.h: Ditto.
7160 * dink32-rom.c: Ditto.
7162 * doublest.c: Ditto.
7164 * dummy-frame.c: Ditto.
7165 * dwarf2-frame.c: Ditto.
7166 * dwarf2expr.c: Ditto.
7167 * dwarf2loc.c: Ditto.
7168 * dwarf2read.c: Ditto.
7172 * event-top.h: Ditto.
7173 * exceptions.c: Ditto.
7174 * exceptions.h: Ditto.
7176 * expprint.c: Ditto.
7177 * expression.h: Ditto.
7181 * f-typeprint.c: Ditto.
7182 * f-valprint.c: Ditto.
7183 * fbsd-nat.c: Ditto.
7185 * fork-child.c: Ditto.
7188 * frv-linux-tdep.c: Ditto.
7189 * frv-tdep.c: Ditto.
7191 * gdb-stabs.h: Ditto.
7192 * gdb_assert.h: Ditto.
7193 * gdb_string.h: Ditto.
7194 * gdb_thread_db.h: Ditto.
7195 * gdb_wait.h: Ditto.
7196 * gdbarch.sh: Ditto.
7198 * gdbthread.h: Ditto.
7199 * gdbtypes.c: Ditto.
7200 * gdbtypes.h: Ditto.
7203 * gnu-v2-abi.c: Ditto.
7204 * gnu-v3-abi.c: Ditto.
7205 * go32-nat.c: Ditto.
7206 * gdbarch.c: Regenerate.
7207 * gdbarch.h: Regenerate.
7209 2011-01-07 Michael Snyder <msnyder@vmware.com>
7211 * ax-gdb.c: Adjust some long output strings.
7212 * breakpoint.c: Ditto.
7217 * linux-nat.c: Ditto.
7218 * solib-pa64.c: Ditto.
7219 * solib-som.c: Ditto.
7221 2011-01-06 Tom Tromey <tromey@redhat.com>
7225 * python/python.c (GdbMethods): Add "newest_frame" method.
7226 * python/python-internal.h (gdbpy_newest_frame): Declare.
7227 * python/py-frame.c (gdbpy_newest_frame): New function.
7229 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
7231 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
7232 * jit.c (jit_debug): New variable.
7233 (show_jit_debug): New function.
7234 (struct target_buffer): Use ULONGEST.
7235 (bfd_open_from_target_memory): Likewise.
7236 (jit_register_code, jit_inferior_init): Add debug output.
7237 (_initialize_jit): Register "debug jit" command.
7239 2011-01-06 Tom Tromey <tromey@redhat.com>
7241 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
7242 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
7245 2011-01-06 Tom Tromey <tromey@redhat.com>
7247 * python/py-frame.c (frapy_block): Use get_frame_block.
7249 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7251 Do not stop on SIGPRIO signals by default
7252 * infrun.c (_initialize_infrun): Unset signal_stop and
7253 signal_print for TARGET_SIGNAL_PRIO.
7255 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7257 * ada-tasks.c: Fix style violation in comment.
7259 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7261 * linespec.c (decode_compound, find_method): Remove trailing \n
7262 at end of error string.
7263 * solib-irix.c (irix_current_sos): Likewise.
7264 * varobj.c (uninstall_variable): Likewise.
7266 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7268 * copyright.py: New script.
7269 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
7270 Launch emacs without exec'ing. Call copyright.py afterwards.
7272 2011-01-05 Michael Snyder <msnyder@vmware.com>
7274 * addrmap.c: Shorten lines of >= 80 columns.
7275 * arch-utils.c: Ditto.
7276 * arch-utils.h: Ditto.
7278 * ax-general.c: Ditto.
7280 * blockframe.c: Ditto.
7281 * breakpoint.c: Ditto.
7282 * buildsym.c: Ditto.
7284 * c-typeprint.c: Ditto.
7286 * coffread.c: Ditto.
7290 * cp-namespace.c: Ditto.
7291 * cp-support.c: Ditto.
7292 * dbug-rom.c: Ditto.
7297 * dictionary.c: Ditto.
7299 * doublest.c: Ditto.
7300 * dwarf2-frame.c: Ditto.
7301 * dwarf2expr.c: Ditto.
7302 * dwarf2loc.c: Ditto.
7303 * dwarf2read.c: Ditto.
7306 * event-loop.c: Ditto.
7307 * event-loop.h: Ditto.
7308 * exceptions.h: Ditto.
7310 * expprint.c: Ditto.
7311 * expression.h: Ditto.
7313 * f-valprint.c: Ditto.
7315 * frame-base.c: Ditto.
7316 * frame-unwind.c: Ditto.
7317 * frame-unwind.h: Ditto.
7321 * gdb-stabs.h: Ditto.
7322 * gdb_assert.h: Ditto.
7323 * gdb_dirent.h: Ditto.
7324 * gdb_obstack.h: Ditto.
7326 * gdbtypes.c: Ditto.
7327 * gdbtypes.h: Ditto.
7328 * inf-ttrace.c: Ditto.
7333 * inline-frame.h: Ditto.
7334 * language.c: Ditto.
7335 * language.h: Ditto.
7336 * libunwind-frame.c: Ditto.
7337 * libunwind-frame.h: Ditto.
7338 * linespec.c: Ditto.
7339 * linux-nat.c: Ditto.
7340 * linux-nat.h: Ditto.
7341 * linux-thread-db.c: Ditto.
7342 * machoread.c: Ditto.
7343 * macroexp.c: Ditto.
7344 * macrotab.c: Ditto.
7347 * mdebugread.c: Ditto.
7352 * objfiles.c: Ditto.
7353 * objfiles.h: Ditto.
7355 * p-typeprint.c: Ditto.
7356 * p-valprint.c: Ditto.
7358 * printcmd.c: Ditto.
7359 * proc-events.c: Ditto.
7361 * progspace.c: Ditto.
7362 * progspace.h: Ditto.
7363 * psympriv.h: Ditto.
7366 * regcache.c: Ditto.
7367 * regcache.h: Ditto.
7368 * remote-fileio.c: Ditto.
7370 * ser-mingw.c: Ditto.
7372 * ser-unix.c: Ditto.
7375 * solib-frv.c: Ditto.
7376 * solib-irix.c: Ditto.
7377 * solib-osf.c: Ditto.
7378 * solib-pa64.c: Ditto.
7379 * solib-som.c: Ditto.
7380 * solib-sunos.c: Ditto.
7381 * solib-svr4.c: Ditto.
7382 * solib-target.c: Ditto.
7386 * stabsread.c: Ditto.
7387 * stabsread.c: Ditto.
7390 * symfile-mem.c: Ditto.
7396 * target-descriptions.c: Ditto.
7397 * target-memory.c: Ditto.
7400 * terminal.h: Ditto.
7403 * tracepoint.c: Ditto.
7404 * tracepoint.h: Ditto.
7408 * user-regs.c: Ditto.
7409 * user-regs.h: Ditto.
7411 * valarith.c: Ditto.
7413 * valprint.c: Ditto.
7414 * valprint.h: Ditto.
7419 * xcoffread.c: Ditto.
7420 * xcoffsolib.c: Ditto.
7421 * xcoffsolib.h: Ditto.
7422 * xml-syscall.c: Ditto.
7423 * xml-tdesc.c: Ditto.
7425 2011-01-05 Michael Snyder <msnyder@vmware.com>
7427 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
7428 * cli/cli-decode.c: Ditto.
7429 * cli/cli-dump.c: Ditto.
7430 * cli/cli-logging.c: Ditto.
7431 * cli/cli-script.c: Ditto.
7432 * cli/cli-setshow.c: Ditto.
7433 * common/signals.c: Ditto.
7434 * mi/mi-cmd-break.c: Ditto.
7435 * mi/mi-cmd-disas.c: Ditto.
7436 * mi/mi-cmd-stack.c: Ditto.
7437 * mi/mi-cmd-var.c: Ditto.
7438 * mi/mi-cmds.c: Ditto.
7439 * mi/mi-common.h: Ditto.
7440 * mi/mi-console.c: Ditto.
7441 * mi/mi-interp.c: Ditto.
7442 * mi/mi-main.c: Ditto.
7443 * osf-share/cma_attr.c: Ditto.
7444 * osf-share/cma_deb_core.h: Ditto.
7445 * osf-share/cma_debug_client.h: Ditto.
7446 * osf-share/cma_handle.h: Ditto.
7447 * osf-share/cma_mutex.h: Ditto.
7448 * osf-share/cma_stack_int.h: Ditto.
7449 * osf-share/cma_tcb_defs.h: Ditto.
7450 * python/py-auto-load.c: Ditto.
7451 * python/py-breakpoint.c: Ditto.
7452 * python/py-cmd.c: Ditto.
7453 * python/py-frame.c: Ditto.
7454 * python/py-objfile.c: Ditto.
7455 * python/py-param.c: Ditto.
7456 * python/py-progspace.c: Ditto.
7457 * python/py-symbol.c: Ditto.
7458 * python/py-value.c: Ditto.
7459 * python/python-internal.h: Ditto.
7460 * python/python.c: Ditto.
7461 * tui/tui-data.c: Ditto.
7462 * tui/tui-disasm.c: Ditto.
7463 * tui/tui-hooks.c: Ditto.
7464 * tui/tui-io.c: Ditto.
7465 * tui/tui-layout.c: Ditto.
7466 * tui/tui-regs.c: Ditto.
7467 * tui/tui-source.c: Ditto.
7468 * tui/tui-stack.c: Ditto.
7469 * tui/tui-win.c: Ditto.
7470 * tui/tui-windata.c: Ditto.
7471 * tui/tui-winsource.c: Ditto.
7473 2011-01-05 Joel Brobecker <brobecker@adacore.com>
7475 * configure.ac, gdb.1: Copyright year update.
7477 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7479 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
7480 this_pc_in_block, morestack_msym and morestack_name. Check for
7481 "__morestack" minimal symbol there.
7483 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7485 * symfile.c (find_sym_fns): Add call to dont_repeat.
7487 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7489 Copyright year update in most files (performed by copyright.sh).
7491 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7493 * top.c (print_gdb_version): Update copyright year in version output.
7495 For older changes see ChangeLog-2010.
7501 version-control: never