1 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
5 Indent prototypes so they do not get into tags.
7 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9 Code cleanup making also optimized out values lazy.
10 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
11 allocate_optimized_out_value. Twice.
12 (loclist_read_variable) Use allocate_optimized_out_value. Once.
13 * findvar.c (read_var_value): Likewise.
14 * value.c (allocate_optimized_out_value): New function.
15 * value.h (allocate_optimized_out_value): New declaration.
17 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
19 Fix occasional crash of CTRL-C during DWARF read in.
20 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
22 2011-07-11 Tom Tromey <tromey@redhat.com>
24 * regcache.c (struct regcache_descr): Fix typo.
25 * i387-tdep.c (i387_supply_xsave): Fix typo.
27 2011-07-11 Tom Tromey <tromey@redhat.com>
29 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
30 (read_file_scope, read_type_unit_scope): Use it.
32 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
34 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
37 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
40 * python/python.c: Set gdbpy_should_print_stack default to off.
41 (set_python): Deprecate maint set python print-stack to
43 (_initialize_python): Deprecate maint set/show python print-stack.
44 Add new prefix command, python. Add new setting, print-backtrace.
45 * NEWS: Document set python print-stack. Document default change.
47 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
49 * python/py-inferior.c (infpy_dealloc): New function.
50 (inferior_to_inferior_object): Return a new object, or a
51 new reference to the existing object.
52 (find_thread_object): Cleanup references to inferior.
53 (delete_thread_object): Ditto.
54 * python/py-infthread.c (create_thread_object): Do not increment
55 inferior reference count.
57 2011-07-08 Tom Tromey <tromey@redhat.com>
59 * dwarf2loc.c (locexpr_regname): New function.
60 (locexpr_describe_location_piece): Use it.
61 (disassemble_dwarf_expression): Add per_cu argument. Use
63 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
64 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
66 (locexpr_describe_location_1): Add per_cu argument.
67 (locexpr_describe_location): Update.
68 (loclist_describe_location): Update.
70 2011-07-08 Tom Tromey <tromey@redhat.com>
72 * dwarf2expr.c (execute_stack_op): Add QUIT.
74 2011-07-07 Hui Zhu <teawater@gmail.com>
77 2011-07-06 Hui Zhu <teawater@gmail.com>
78 * remote.c (remote_start_remote): Add TRY_CATCH for
79 remote_get_trace_status.
80 * tracepoint.c (disconnect_tracing): Ditto.
82 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
84 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
85 variables as signed, not unsigned.
87 2011-07-06 Joel Brobecker <brobecker@adacore.com>
89 * jit.c (jit_inferior_init): Reformat forward declaration.
91 2011-07-06 Matt Rice <ratmice@gmail.com>
93 * MAINTAINERS (Write After Approval): Add myself to the list.
95 2011-07-06 Hui Zhu <teawater@gmail.com>
97 * remote.c (remote_start_remote): Add TRY_CATCH for
98 remote_get_trace_status.
99 * tracepoint.c (disconnect_tracing): Ditto.
101 2011-07-05 Tom Tromey <tromey@redhat.com>
103 * symtab.c (operator_chars): Now static.
104 * linespec.c (operator_chars): Don't declare.
106 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
108 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
110 2011-07-05 Tom Tromey <tromey@redhat.com>
112 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
113 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
114 (TYPE_CPLUS_REALLY_JAVA): New macro.
115 * dwarf2read.c (process_structure_scope): Set
116 TYPE_CPLUS_REALLY_JAVA.
118 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
120 * ada-lang.c: Fix typos.
121 * amd64-tdep.c: Likewise.
122 * breakpoint.c: Likewise.
123 * cli/cli-decode.c: Likewise.
124 * findcmd.c: Likewise.
125 * inline-frame.c: Likewise.
126 * mi/mi-main.c: Likewise.
127 * minsyms.c: Likewise.
128 * monitor.c: Likewise.
129 * monitor.h: Likewise.
130 * prologue-value.c: Likewise.
131 * reverse.c: Likewise.
132 * s390-tdep.c: Likewise.
134 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
136 * jit.c (jit_inferior_init): Forward declare.
137 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
139 2011-07-04 Joel Brobecker <brobecker@adacore.com>
141 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
143 2011-07-04 Tristan Gingold <gingold@adacore.com>
145 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
146 (tcb_fieldno): Add activation_link field.
147 (get_known_tasks_addr): Moved and rewritten.
148 (get_tcb_types_info): Set activation_link field.
149 (read_known_tasks_array): Add parameter. Rewritten.
150 (read_known_tasks_list): New function.
151 (read_known_tasks): New function.
152 (ada_build_task_list): Call read_known_tasks instead of
153 read_known_tasks_array.
154 * ravenscar-thread.c: Add first_task_name constant.
155 (has_ravenscar_runtime): Check for task list too.
157 2011-07-04 Tristan Gingold <gingold@adacore.com>
159 * ada-tasks.c: Renames fieldno to actb_fieldno.
160 (ada_get_task_number): Indentation.
161 (get_tcb_types_info): Remove all parameters. Write directly
163 (ptid_from_atcb_common): Adjust.
166 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
168 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
170 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
172 * ui-out.c (ui_out_field_core_addr): Mention that the function
173 description is in the header file.
174 * ui-out.h (ui_out_field_core_addr): Document function.
176 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
178 * ui-out.c (ui_out_get_field_separator): Remove unused function.
179 * ui-out.h (ui_out_get_field_separator): Remove prototype.
181 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
183 * symtab.c (expand_line_sal): Remove empty line.
185 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
187 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
188 same way as ELFOSABI_NONE.
189 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
191 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
193 * breakpoint.c: Fix typos in comments.
194 * linespec.c: Likewise.
195 * symtab.c: Likewise.
197 2011-07-04 Joel Brobecker <brobecker@adacore.com>
199 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
200 section in separate object files.
202 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
204 Fix false GCC warning.
205 * linespec.c (decode_line_1): Initialize values.
207 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
209 * linespec.c (find_method): Accept the function type automatically only
210 if it was specified with parameter types.
212 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
214 Stop on first linespec terminator instead of eating what we can.
215 * linespec.c (is_linespec_boundary): New function.
216 (name_end): Remove function.
217 (keep_name_info): New parameter on_boundary, replace the body.
218 (decode_line_1): Provide the parameter to keep_name_info.
219 (decode_compound): Likewise. Drop the trailing java return type
222 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
224 Fall back linespec to minimal symbols.
225 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
226 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
227 (find_method, symbol_found): Change error to cplusplus_error.
229 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
231 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
233 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
234 Tom Tromey <tromey@redhat.com>
236 * dwarf2read.c (check_physname): New variable.
237 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
238 (show_check_physname): New function.
239 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
241 2011-07-01 Joel Brobecker <brobecker@adacore.com>
243 * machoread.c (macho_symfile_read): Delete OBE comment.
245 2011-07-01 Joel Brobecker <brobecker@adacore.com>
247 * machoread.c (struct macho_oso_data): Delete.
248 (current_oso): Delete.
249 (macho_relocate_common_syms): New function, mostly extracted
251 (macho_add_oso_symfile): Call macho_relocate_common_syms.
252 Remove code that sets and unset current_oso.
253 (macho_symfile_relocate): Delete handling of common symbols,
254 now moved to macho_relocate_common_syms.
256 2011-07-01 Joel Brobecker <brobecker@adacore.com>
258 * darwin-nat.c (darwin_ptrace): Add documentation.
259 Set errno to zero before calling ptrace. If ptrace returns
260 -1 and errno is zero, then change then return zero.
261 (darwin_kill_inferior): Issue a warning instead of triggering
262 a failed assertion when the PT_KILL ptrace operations returned
265 2011-07-01 Joel Brobecker <brobecker@adacore.com>
267 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
268 only when inf->private->no_ptrace.
270 2011-07-01 Joel Brobecker <brobecker@adacore.com>
272 * ada-lang.c (print_it_exception): Print temporary catchpoints
273 as "Temporary catchpoint".
274 (print_mention_exception): Likewise.
276 2011-07-01 Tom Tromey <tromey@redhat.com>
278 * jv-lang.c (java_language_defn): Use java_printchar,
280 (java_get_encoding): New function.
281 (java_emit_char): Use generic_emit_char.
282 (java_printchar): New function.
283 (java_printstr): Likewise.
285 2011-07-01 Joel Brobecker <brobecker@adacore.com>
287 * ada-typeprint.c (print_record_type): If unable to decode
288 the name of the parent type, use the encoded name.
290 2011-07-01 Jean-Charles Delay <delay@adacore.com>
292 * ada-typeprint.c (ada_print_type): Fix both PAD type and
293 pointer to constrained packed array type output.
294 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
297 2011-07-01 Jean-Charles Delay <delay@adacore.com>
299 * ada-typeprint.c (print_array_type): removed if condition on show
300 being negative for bounds printing.
302 2011-07-01 Joel Brobecker <brobecker@adacore.com>
304 * ada-lang.c (ada_identical_enum_types_p): New function.
305 (symbols_are_identical_enums): New function.
306 (remove_extra_symbols): Do nothing if NSYMS < 2.
307 Use symbols_are_identical_enums.
309 2011-07-01 Joel Brobecker <brobecker@adacore.com>
311 * ada-valprint.c (ada_value_print): Handle typedefs.
313 2011-07-01 Joel Brobecker <brobecker@adacore.com>
315 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
317 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
319 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
320 (decode_constrained_packed_array): Likewise.
321 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
323 2011-07-01 Joel Brobecker <brobecker@adacore.com>
325 * ada-exp.y (convert_char_literal): Handle typedef types.
327 2011-07-01 Joel Brobecker <brobecker@adacore.com>
329 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
331 2011-06-30 Tom Tromey <tromey@redhat.com>
333 * varobj.c (varobj_create): Call do_cleanups on early exit path.
334 * valops.c (find_overload_match): Call do_cleanups on early exit
336 * solib.c (solib_find): Call do_cleanups on early exit path.
338 2011-06-30 Tom Tromey <tromey@redhat.com>
340 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
341 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
342 return paths. Defer final do_cleanups until last return.
343 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
346 2011-06-30 Tom Tromey <tromey@redhat.com>
348 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
350 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
352 * MAINTAINERS (Write After Approval): Add myself to the list.
354 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
356 Disable epilogue unwinders on recent GCCs.
357 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
358 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
359 * dwarf2read.c (process_full_comp_unit): Initialize
360 EPILOGUE_UNWIND_VALID.
361 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
362 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
363 * symtab.h (struct symtab): New field epilogue_unwind_valid.
365 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
367 Code cleanup - reformatting.
368 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
369 (producer_is_gcc_ge_4): ... here, change the return value.
370 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
373 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
375 Fix non-only rename list for Fortran modules import.
376 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
377 cp_add_using_directive caller.
378 (cp_add_using_directive): New parameter excludes, describe it. New
379 variables ix and param. Compare if also excludes match. Allocate NEW
380 with variable size, initialize EXCLUDES there.
381 (cp_lookup_symbol_imports): New variable excludep, test
382 current->EXCLUDES with it.
383 * cp-support.h: Include vec.h.
384 (struct using_direct): New field excludes, describe it.
385 (DEF_VEC_P (const_char_ptr)): New.
386 (cp_add_using_directive): New parameter excludes.
387 * defs.h (const_char_ptr): New typedef.
388 * dwarf2read.c (read_import_statement): New variables child_die,
389 excludes and cleanups, read in excludes.
390 (read_namespace): Adjust the cp_add_using_directive caller.
392 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
395 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
396 negative comparisons.
398 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
400 * mi/mi-main.c (mi_cmd_list_features): Emit
401 breakpoint-notifications.
403 2011-06-29 Tom Tromey <tromey@redhat.com>
406 * valprint.h (generic_emit_char, generic_printstr): Declare.
407 * valprint.c (wchar_printable, append_string_as_wide)
408 (print_wchar): Move from c-lang.c.
409 (generic_emit_char): New function; mostly taken from c_emit_char.
410 (generic_printstr): New function; mostly taken from c_printstr.
411 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
412 represented as arrays.
413 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
415 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
416 identically to TYPE_CODE_INT.
417 * f-lang.c (f_get_encoding): New function.
418 (f_emit_char): Use generic_emit_char.
419 (f_printchar): Replace comment.
420 (f_printstr): Use generic_printstr.
421 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
422 "character" types specially.
423 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
425 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
427 (c_emit_char): Call generic_emit_char.
428 (c_printstr): Call generic_printstr.
430 2011-06-29 Gary Benson <gbenson@redhat.com>
432 * breakpoint.c (bpstat_what): Removed duplicated case.
434 2011-06-28 Tom Tromey <tromey@redhat.com>
436 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
438 2011-06-27 Tom Tromey <tromey@redhat.com>
440 * valops.c (find_overload_match): Call do_cleanups before early
442 * top.c (execute_command): Call do_cleanups before early return.
443 (command_loop): Likewise.
444 * stack.c (backtrace_command): Make a null cleanup early. Don't
445 conditionally call do_cleanups.
446 * python/py-value.c (TRY_CATCH): Move cleanup handling into
448 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
449 so cleanups are always run.
450 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
451 * findcmd.c (parse_find_args): Call do_cleanups on early return
453 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
454 Don't conditionally call do_cleanups.
455 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
458 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
460 * MAINTAINERS (Write After Approval): Use default email address.
462 2011-06-27 Joel Brobecker <brobecker@adacore.com>
464 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
466 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
468 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
469 saved_regs_mask and copied_regs_mask fields.
470 (sparc_record_save_insn): New prototype.
471 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
472 (sparc_record_save_insn): New function.
473 (sparc_analyze_prologue): Add head comment. Recognize store insns
474 of call-saved registers. Use OFFSET consistently. Recognize flat
475 frames and cache their settings.
476 (sparc32_skip_prologue): Handle flat frames.
477 (sparc_frame_cache): Add frame_offset to the base address.
478 (sparc32_frame_cache): Adjust to new frame description.
479 (sparc32_frame_prev_register): Likewise.
480 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
481 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
482 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
483 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
484 frame by calling sparc_record_save_insn.
485 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
486 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
487 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
489 2011-06-27 Tristan Gingold <gingold@adacore.com>
491 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
492 field by map_addr and map_len.
493 (dwarf2_read_section): Adjust for the new bfd_mmap api.
494 (munmap_section_buffer): Likewise.
496 2011-06-24 Tom Tromey <tromey@redhat.com>
498 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
499 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
500 * python/python.c (gdbpy_parameter): Make 'arg' const.
501 (execute_gdb_command): Likewise.
502 (gdbpy_decode_line): Likewise. Copy it.
503 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
504 (gdbpy_write): Make 'arg' const.
505 * python/py-type.c (typy_lookup_typename): Make 'type_name'
507 (gdbpy_lookup_type): Likewise.
508 * python/py-prettyprint.c (print_children): Make 'name' const.
509 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
510 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
512 * python/py-function.c (fnpy_init): Make 'name' const.
513 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
514 (gdbpy_string_to_argv): Make 'input' const.
515 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
517 * gdbtypes.h (lookup_typename): Update.
518 * gdbtypes.c (lookup_typename): Make 'name' const.
519 (lookup_struct): Likewise.
520 (lookup_union): Likewise.
521 (lookup_enum): Likewise.
523 2011-06-24 Tom Tromey <tromey@redhat.com>
525 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
526 gdb_thread_db.h. Move all common/ entries to be together.
527 (TAGS): Don't depend on DEPFILES.
529 2011-06-23 Yao Qi <yao@codesourcery.com>
531 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
532 * remote.c (remote_start_remote): ... here.
533 * monitor.c (monitor_open): ... here.
535 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
537 * gdbtypes.c (append_composite_type_field_aligned): Fix
538 calculation of bit position based on alignment.
540 2011-06-22 Pedro Alves <pedro@codesourcery.com>
542 * breakpoint.c (bpstat_stop_status): Call the check_status
543 breakpoint_ops method.
544 (print_one_breakpoint_location): Also print the condition for Ada
545 exception catchpoints.
546 (allocate_bp_location): New, factored out from
547 allocate_bp_location.
548 (allocate_bp_location): Adjust. Call the owner breakpoint's
549 allocate_location method, if there is one.
550 (free_bp_location): Call the locations's dtor method, if there is
552 (init_raw_breakpoint_without_location): New breakpoint_ops
554 (set_raw_breakpoint_without_location): Adjust.
555 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
556 (set_raw_breakpoint): Adjust.
557 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
558 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
559 re_set and check_status methods.
560 (init_catchpoint): Don't memset, initialize thread, addr_string
561 and enable_state. Pass the ops down to init_raw_breakpoint.
562 (install_catchpoint): Rename to ...
563 (install_breakpoint): ... this, and make extern.
564 (create_fork_vfork_event_catchpoint): Adjust.
565 (catch_exec_breakpoint_ops): Install NULL allocate_location,
566 re_set and check_status methods.
567 (create_syscall_event_catchpoint): Adjust.
568 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
569 (masked_watchpoint_breakpoint_ops): Install NULL
570 allocate_location, re_set and check_status methods.
571 (catch_exec_command_1): Adjust.
572 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
573 re_set and check_status methods.
574 (create_ada_exception_breakpoint): Rename to ...
575 (init_ada_exception_breakpoint): ... this. Add a struct
576 breakpoint parameter, and delete the exp_string, cond_string and
577 cond parameters. Use init_raw_breakpoint, and don't install or
578 mention the breakpoint yet. Don't clear breakpoint fields that
579 init_raw_breakpoint already clears.
580 (re_set_breakpoint): Delete, split into ...
581 (breakpoint_re_set_default, prepare_re_set_context): ... these new
583 (breakpoint_re_set_one): Call the breakpoint's
584 breakpoint_ops->re_set implementation, if there's one. Adjust.
585 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
586 (struct bp_location_ops): New type.
587 (struct bp_location): New field `ops'.
588 (struct breakpoint_ops): New `allocate_location', `re_set' and
589 `check_status' fields. Make `breakpoint_hit''s description match
591 (init_bp_location): Declare.
592 (breakpoint_re_set_default): Declare.
593 (create_ada_exception_breakpoint): Rename to ...
594 (init_ada_exception_breakpoint): ... this. Add a struct
595 breakpoint parameter, and delete the exp_string, cond_string and
597 (install_breakpoint): Declare.
598 * ada-lang.c: Include exceptions.h.
599 <Ada exceptions description>: Update.
600 (struct ada_catchpoint_location): New type.
601 (ada_catchpoint_location_dtor): New function.
602 (ada_catchpoint_location_ops): New global.
603 (ada_catchpoint): New type.
604 (create_excep_cond_exprs): New function.
605 (dtor_exception, allocate_location_exception, re_set_exception)
606 (should_stop_exception, check_status_exception): New functions.
607 (print_one_exception, print_mention_exception)
608 (print_recreate_exception): Adjust.
609 (dtor_catch_exception, allocate_location_catch_exception)
610 (re_set_catch_exception, check_status_catch_exception): New
612 (catch_exception_breakpoint_ops): Install them.
613 (dtor_catch_exception_unhandled)
614 (allocate_location_catch_exception_unhandled)
615 (re_set_catch_exception_unhandled)
616 (check_status_catch_exception_unhandled): New functions.
617 (catch_exception_unhandled_breakpoint_ops): Install them.
618 (dtor_catch_assert, allocate_location_catch_assert)
619 (re_set_catch_assert, check_status_catch_assert): New functions.
620 (catch_assert_breakpoint_ops): Install them.
621 (ada_exception_catchpoint_p): Delete.
622 (catch_ada_exception_command_split)
623 (ada_exception_catchpoint_cond_string): Rename exp_string
624 parameter to excep_string. Adjust.
625 (ada_parse_catchpoint_condition): Delete.
626 (ada_exception_sal): Rename the exp_string parameter to
627 excep_string. Delete the cond_string and cond parameters.
629 (ada_decode_exception_location): Rename the exp_string parameter
630 to excep_string. Delete the cond_string and cond parameters.
632 (create_ada_exception_catchpoint): New function.
633 (catch_ada_exception_command, ada_decode_assert_location)
634 (catch_assert_command): Adjust.
635 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
637 2011-06-22 Pedro Alves <pedro@codesourcery.com>
639 * ada-lang.c: Include arch-utils.h.
640 (ada_decode_exception_location): Make static.
641 (catch_ada_exception_command): Moved here from breakpoint.c.
642 (ada_decode_assert_location): Make static.
643 (catch_assert_command): Moved here from breakpoint.c.
644 (_initialize_ada_lang): Install the exception and assert
645 catchpoint commands here.
646 * ada-lang.h (ada_decode_exception_location)
647 (ada_decode_assert_location): Delete declarations.
648 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
650 (create_ada_exception_breakpoint): Make extern.
651 (catch_ada_exception_command, catch_assert_command): Moved to
653 (add_catch_command): Make extern.
654 (_initilize_breakpoint): Don't install the exception and assert
655 catchpoint commands here.
656 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
658 (add_catch_command, create_ada_exception_breakpoint): Declare.
660 2011-06-22 Pedro Alves <pedro@codesourcery.com>
662 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
663 the breakpoint to the breakpoint chain here.
664 (set_raw_breakpoint_without_location): Add the breakpoint to the
665 breakpoint chain here.
666 (init_raw_breakpoint): Adjust comments.
667 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
669 (init_catchpoint): Don't set the catchpoint's breakpoint number
671 (install_catchpoint): New function.
672 (create_fork_vfork_event_catchpoint)
673 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
674 use install_catchpoint.
676 2011-06-22 Pedro Alves <pedro@codesourcery.com>
678 * breakpoint.c (create_catchpoint_without_mention)
679 (create_catchpoint): Delete.
681 2011-06-22 Pedro Alves <pedro@codesourcery.com>
683 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
684 * breakpoint.c (init_raw_breakpoint_without_location): Remove
685 reference to exec_pathname.
686 (struct exec_catchpoint): New type.
687 (dtor_catch_exec): New function.
688 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
689 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
690 (catch_exec_command_1): Adjust to use init_catchpoint.
691 (delete_breakpoint): Remove reference to exec_pathname.
693 2011-06-22 Pedro Alves <pedro@codesourcery.com>
695 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
696 (struct breakpoint): Delete field `syscalls_to_be_caught'.
697 * breakpoint.c (init_raw_breakpoint_without_location): Remove
698 reference to syscalls_to_be_caught.
699 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
701 (struct syscall_catchpoint): New type.
702 (dtor_catch_syscall): New function.
703 (insert_catch_syscall, remove_catch_syscall)
704 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
705 (print_recreate_catch_syscall): Adjust.
706 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
707 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
708 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
709 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
710 (masked_watchpoint_breakpoint_ops)
711 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
712 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
713 there is one. Remove references to syscalls_to_be_caught.
714 (catching_syscall_number): Adjust.
715 * ada-lang.c (catch_exception_breakpoint_ops)
716 (catch_exception_unhandled_breakpoint_ops)
717 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
719 2011-06-22 Pedro Alves <pedro@codesourcery.com>
721 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
723 * breakpoint.c (init_raw_breakpoint_without_location): Remove
724 reference to forked_inferior_pid.
725 (struct fork_catchpoint): New type.
726 (breakpoint_hit_catch_fork, print_it_catch_fork)
727 (print_one_catch_fork, breakpoint_hit_catch_vfork)
728 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
729 (create_fork_vfork_event_catchpoint): Adjust to use
732 2011-06-22 Pedro Alves <pedro@codesourcery.com>
734 * breakpoint.c (add_to_breakpoint_chain)
735 (init_raw_breakpoint_without_location): New functions, factored
737 (set_raw_breakpoint_without_location): ... this one.
738 (init_raw_breakpoint): New function, factored out from
739 set_raw_breakpoint and adjusted to use
740 init_raw_breakpoint_without_location.
741 (set_raw_breakpoint): Adjust.
742 (init_catchpoint): New function, factored out from
743 create_catchpoint_without_mention and adjusted to use
745 (create_catchpoint_without_mention): Adjust.
747 2011-06-22 Tom Tromey <tromey@redhat.com>
749 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
750 argument of 0 specially.
752 2011-06-22 Yao Qi <yao@codesourcery.com>
754 * infrun.c (handle_inferior_event): Remove write-only local variable
755 `sw_single_step_trap_p'.
757 2011-06-20 Tom Tromey <tromey@redhat.com>
759 * symtab.c (lookup_language_this): End loop if block is NULL.
761 2011-06-17 Tom Tromey <tromey@redhat.com>
763 * valops.c (value_of_this): Use lookup_language_this.
764 * symtab.h (lookup_language_this): Declare.
765 * symtab.c (lookup_language_this): New function.
766 (lookup_symbol_aux): Use lookup_language_this.
767 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
769 2011-06-17 Tom Tromey <tromey@redhat.com>
771 * value.h (value_of_this): Update.
772 (value_of_local): Remove.
773 * valops.c (value_of_this): Rename from value_of_local. Change
775 * p-exp.y (exp): Update.
776 (variable): Likewise.
777 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
779 2011-06-17 Tom Tromey <tromey@redhat.com>
781 * valops.c (value_of_local): Complain if NAME is NULL.
782 * std-operator.def (OP_OBJC_SELF): Remove.
783 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
784 * objc-exp.y (name_not_typename): Use OP_THIS.
785 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
787 <OP_OBJC_SELF>: Remove.
788 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
790 2011-06-16 Tristan Gingold <gingold@adacore.com>
792 * python/py-events.h (gdb_py_events): Make it extern.
793 * python/py-evtregistry.c (gdb_py_events): Declare.
795 2011-06-16 Hui Zhu <teawater@gmail.com>
797 * remote.c (remote_trace_set_readonly_regions): Add check for
798 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
801 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
803 * arm-linux-tdep.c: Include "auxv.h".
805 (ARM_LINUX_SIZEOF_VFP): Define.
806 (arm_linux_supply_vfp): New function.
807 (arm_linux_collect_vfp): Likewise.
808 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
809 (arm_linux_fpa_regset_sections): New variable.
810 (arm_linux_vfp_regset_sections): Likewise.
811 (arm_linux_core_read_description): New function.
812 (arm_linux_init_abi): Install arm_linux_core_read_description and
813 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
814 appropriate for the architecture.
815 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
816 (tdesc_arm_with_m): Declare.
817 (tdesc_arm_with_iwmmxt): Likewise.
818 (tdesc_arm_with_vfpv2): Likewise.
819 (tdesc_arm_with_vfpv3): Likewise.
820 (tdesc_arm_with_neon): Likewise.
821 * arm-linux-nat.c: Move features/*.c includes ...
822 * arm-tdep.c: ... here.
823 * arm-linux-nat.c (arm_linux_read_description): Move initializing
824 target description data structures ...
825 * arm-tdep.c (_initialize_arm_tdep): ... here.
826 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
827 HWCAP_VFPv3D16): Move definitions ...
828 * arm-linux-tdep.h: ... here.
830 2011-06-15 Hui Zhu <teawater@gmail.com>
832 * remote.c (remote_trace_set_readonly_regions): Add a check for
835 2011-06-14 Tom Tromey <tromey@redhat.com>
837 * coffread.c (coffread_objfile): Rename from current_objfile.
838 * dbxread.c (dbxread_objfile): Rename from current_objfile.
839 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
841 2011-06-14 Tom Tromey <tromey@redhat.com>
843 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
844 (class_symtab): Remove.
845 (jv_dynamics_progspace_key): New global.
846 (jv_per_objfile_free): Reset program space data. Update assert.
848 (get_dynamics_objfile): Use and set program space data.
849 (get_java_class_symtab): Use get_dynamics_objfile.
850 (add_class_symbol): Likewise.
851 (java_link_class_type): Likewise.
852 (java_object_type, jv_clear_object_type, set_java_object_type):
854 (get_java_object_type): Update. Don't cache result.
855 (is_object_type): Don't call set_java_object_type.
856 (_initialize_java_language): Don't set jv_type_objfile_data_key;
857 initialize jv_dynamics_progspace_key.
859 2011-06-14 Tom Tromey <tromey@redhat.com>
861 * symtab.h (current_objfile): Don't declare.
862 * objfiles.h (current_objfile): Don't declare.
863 * objfiles.c (current_objfile): Remove.
864 * mdebugread.c (current_objfile): New file-scope global.
865 * dbxread.c (current_objfile): New file-scope global.
866 * coffread.c (current_objfile): New file-scope global.
868 2011-06-13 Pedro Alves <pedro@codesourcery.com>
870 * top.h (line): Rename to ...
871 (saved_command_line): ... this.
872 (linesize): Rename to ...
873 (saved_command_line_size): ... this.
874 * top.c (line): Rename to ...
875 (saved_command_line): ... this.
876 (linesize): Rename to ...
877 (saved_command_line_size): ... this.
878 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
879 * event-top.c (command_line_handler): Adjust.
880 * main.c (captured_main): Adjust.
882 2011-06-12 Mark Kettenis <kettenis@gnu.org>
884 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
885 get_frame_func instead of get_frame_pc to determine the code
886 address used to construct the frame ID.
887 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
888 (i386_epilogue_frame_this_id): Likewise.
889 (i386_epilogue_frame_prev_register): New function.
890 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
891 (i386_stack_tramp_frame_sniffer): Fix coding style.
892 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
893 (i386_gdbarch_init): Fix comments.
895 2011-06-12 Mark Kettenis <kettenis@gnu.org>
897 * i386-tdep.c (i386_match_insn_block): Use length of the proper
898 instruction when walking back through the instruction stream.
900 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
902 * symtab.c (output_partial_symbol_filename): Exchange the filename and
903 fullname parameters order.
905 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
908 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
910 * psymtab.c (map_symbol_filenames_psymtab)
911 (map_partial_symbol_filenames): Likewise.
912 * psymtab.h: Include symfile.h.
913 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
914 * symfile.h (symbol_filename_ftype): New.
915 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
916 map_symbol_filenames, clarify more the naming in comment.
918 2011-06-07 Doug Evans <dje@google.com>
920 * cc-with-index.sh: Fix typos in comment.
921 Look for ../../gdb, for fullname.exp.
923 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
924 Pedro Alves <pedro@codesourcery.com>
926 * cli/cli-cmds.c (shell_escape): Use waitpid.
927 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
929 2011-06-07 Tristan Gingold <gingold@adacore.com>
931 * xcoffread.c (dwarf2_xcoff_names): New variable.
932 (aix_process_linenos): Add a guard.
933 (xcoff_symfile_finish): Free dwarf2.
934 (xcoff_initial_scan): Add dwarf2 support.
936 2011-06-06 Pedro Alves <pedro@codesourcery.com>
938 * infcall.c (run_inferior_call): Don't mask async. Instead force
939 a synchronous wait, if the target can async.
941 * target.h (struct target_ops): Delete to_async_mask.
942 (target_async_mask): Delete.
943 * target.c (update_current_target): Delete references to to_async_mask.
944 * linux-nat.c (linux_nat_async_mask_value): Delete.
945 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
946 to linux_nat_async_mask_value.
947 (linux_nat_async_mask): Delete.
948 (linux_nat_async, linux_nat_close): Remove references to
949 linux_nat_async_mask_value.
950 * record.c (record_async_mask_value): Delete.
951 (record_async): Remove references to record_async_mask_value.
952 (record_async_mask): Delete.
953 (record_can_async_p, record_is_async_p): Remove references to
954 record_async_mask_value.
955 (init_record_ops, init_record_core_ops): Remove references to
957 * remote.c (remote_async_mask_value): Delete.
958 (init_remote_ops): Remove reference to remote_async_mask.
959 (remote_can_async_p, remote_is_async_p): Remove references to
960 remote_async_mask_value.
961 (remote_async): Remove references to remote_async_mask_value.
962 (remote_async_mask): Delete.
964 * infrun.c (fetch_inferior_event): Don't claim registers changed
965 if the current thread is already not executing.
967 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
969 From Stephen Kitt <steve@sk2.org>
970 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
971 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
973 2011-06-03 Joel Brobecker <brobecker@adacore.com>
975 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
976 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
978 2011-06-03 Tom Tromey <tromey@redhat.com>
980 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
982 * python/py-exitedevent.c (create_exited_event_object): Change
983 type of 'exit_code'. Optionally add exit_code attribute.
984 (emit_exited_event): Change type of 'exit_code'.
985 * python/py-event.h (emit_exited_event): Update.
986 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
987 * infrun.c (handle_inferior_event): Set exit code fields on
989 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
991 * inferior.c (exit_inferior_1): Initialize new fields.
993 2011-06-03 Tom Tromey <tromey@redhat.com>
995 * dwarf2expr.c (get_signed_type): New function.
996 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
998 2011-06-02 Keith Seitz <keiths@redhat.com>
1000 * objc-lang.c (find_methods): Increment objfile_csym earlier.
1002 2011-06-02 Pedro Alves <pedro@codesourcery.com>
1004 * top.h (simplified_command_loop): Delete declaration.
1006 2011-06-01 Mike Frysinger <vapier@gentoo.org>
1008 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
1009 gdb_sysroot to the "len" variable. Append both to "arg_buf".
1011 2011-06-01 Yao Qi <yao@codesourcery.com>
1013 * objfiles.h (obj_section_addr): Update reference to objfile from
1015 (obj_section_endaddr): Likewise.
1017 2011-06-01 Daniel Jacobowitz <drow@false.org>
1019 * MAINTAINERS: Update my email address and affiliation. Also
1020 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
1022 2010-05-31 Keith Seitz <keiths@redhat.com>
1025 * linespec.c (get_search_block): New function.
1026 (find_methods): Add FILE_SYMTATB parameter and use it and
1027 get_search_block to pass an appropriate block to
1028 lookup_symbol_in_namespace.
1029 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
1030 Check if *ARGPTR starts with a filename first.
1031 If it does, call locate_first_half again to locate the next
1032 "first half" of the linespec.
1033 Pass FILE_SYMTATB to decode_objc and decode_compound.
1034 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
1035 (locate_first_half): Stop on the first colon seen.
1036 (decode_compound): Add FILE_SYMTAB parameter.
1037 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
1038 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
1039 get_search_block with lookup_symbol.
1040 (find_method): Add FILE_SYMTAB parameter and pass it to
1042 (decode_objc): Use get_search_block.
1044 2010-05-31 Keith Seitz <keiths@redhat.com>
1047 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
1048 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
1049 and CP_ANONYMOUS_NAMESPACE_LEN.
1050 (cp_is_anonymous): Likewise.
1051 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
1052 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
1053 * dwarf2read.c (namespace_name): Likewise.
1054 (fixup_partial_die): Likewise.
1055 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
1056 seen in the input, keep it.
1058 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1060 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
1061 * inf-loop.h (inferior_event_handler_wrapper): Delete.
1062 * inf-loop.c (inferior_event_handler_wrapper): Delete.
1063 (inferior_event_handler): Don't handle INF_QUIT_REQ.
1064 * remote.c (_initialize_remote): Register
1065 async_remote_interrupt_twice directly as
1066 sigint_remote_twice_token event.
1068 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1070 * target.h (enum inferior_event_type): Delete INF_ERROR.
1071 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
1073 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1075 * interps.c (interp_set): Don't cancel continuations.
1077 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1079 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
1081 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1083 * continuations.h (continuation_ftype): Add `err' parameter.
1084 Document parameters.
1085 (do_all_continuations, do_all_continuations_thread)
1086 (do_all_intermediate_continuations)
1087 (do_all_intermediate_continuations_thread)
1088 (do_all_inferior_continuations): Add `err' parameter.
1089 * continuations.c (do_my_continuations_1, do_my_continuations)
1090 (do_all_inferior_continuations, do_all_continuations_ptid)
1091 (do_all_continuations_thread_callback)
1092 (do_all_continuations_thread, do_all_continuations)
1093 (do_all_intermediate_continuations_thread_callback)
1094 (do_all_intermediate_continuations_thread)
1095 (do_all_intermediate_continuations): Add `err' parameter, and pass
1096 it down all the way to the continuations proper.
1097 * inf-loop.c (inferior_event_handler): If fetching an inferior
1098 event throws an error, don't pop the target, and still call the
1099 continuations, but with `err' set. Adjust all other continuation
1101 * breakpoint.c (until_break_command_continuation): Add `err'
1103 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
1104 issue another step if `err' is set.
1105 (struct until_next_continuation_args): New.
1106 (until_next_continuation): Add `err' parameter. Adjust.
1107 (until_next_command): Adjust.
1108 (struct finish_command_continuation_args): Add `thread' field.
1109 (finish_command_continuation): Add `err' parameter. Handle it.
1110 (finish_forward): Adjust.
1111 (attach_command_continuation): Add `err' parameter. Handle it.
1112 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
1113 cancel the continuations.
1114 * interps.c (interp_set): Adjust to cancel the continuations.
1115 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
1116 continuations rather than discarding.
1117 (free_thread): Don't clear thread inferior resources here.
1118 (delete_thread_1): Do it here instead. And do it before removing
1119 the thread from the threads list. Tag the thread as exited before
1120 clearing thread inferior resources.
1122 2011-05-30 Joel Brobecker <brobecker@adacore.com>
1124 * infcall.c (call_function_by_hand): Rephrase error message.
1126 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1128 * defs.h (struct thread_info, struct inferior): Delete forward
1130 * breakpoint.h (struct thread_info): New forward declaration.
1131 * observer.sh (struct inferior): New forward declaration.
1132 * python/python-internal.h (struct inferior): New forward
1135 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1137 * defs.h (struct continuation, continuation_ftype)
1138 (continuation_free_arg_ftype, add_continuation)
1139 (do_all_continuations, do_all_continuations_thread)
1140 (discard_all_continuations, discard_all_continuations_thread)
1141 (add_intermediate_continuation, do_all_intermediate_continuations)
1142 (do_all_intermediate_continuations_thread)
1143 (discard_all_intermediate_continuations)
1144 (discard_all_intermediate_continuations_thread)
1145 (add_inferior_continuation, do_all_inferior_continuations)
1146 (discard_all_inferior_continuations): Move to ...
1147 * continuations.h: ... this new file.
1148 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
1149 infcmd.c, inferior.c, infrun.c, interps.c: Include
1152 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1153 Doug Evans <dje@google.com>
1155 Fix PR 10970, PR 12702.
1156 * linux-nat.c (linux_lwp_is_zombie): New function.
1157 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
1158 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
1160 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1162 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
1164 (add_continuation, add_intermediate_continuation)
1165 (add_inferior_continuation): Use them.
1166 * continuations.c (struct continuation): Use them.
1167 (make_continuation_ftype): Delete.
1168 (make_continuation, add_inferior_continuation, add_continuation)
1169 (add_intermediate_continuation): Use continuation_ftype and
1170 continuation_free_arg_ftype. Rename parameters to shorter names.
1172 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1174 * continuations.c (make_continuation): Make it return void.
1175 (do_my_continuations): Rename to ...
1176 (do_my_continuations_1): ... this. Remove old_chain parameter and
1178 (do_my_continuations): New.
1179 (discard_my_continuations): Rename to ...
1180 (discard_my_continuations_1): ... this. Remove old_chain
1181 parameter and adjust.
1182 (discard_my_continuations): New.
1183 (add_inferior_continuation): Simplify.
1184 (do_all_inferior_continuations): Reimplement on top
1185 do_my_continuations.
1186 (discard_all_inferior_continuations): Simplify.
1187 (add_continuation): Simplify.
1188 (do_all_continuations_ptid): Simplify.
1189 (discard_all_continuations_thread_callback): Simplify.
1190 (add_intermediate_continuation): Simplify.
1191 (discard_all_intermediate_continuations_thread_callback):
1194 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1196 * utils.c (struct continuation, add_continuation)
1197 (add_inferior_continuation)
1198 (do_all_inferior_continuations, discard_all_inferior_continuations)
1199 (restore_thread_cleanup, do_all_continuations_ptid)
1200 (do_all_continuations_thread_callback)
1201 (do_all_continuations_thread, do_all_continuations)
1202 (discard_all_continuations_thread_callback)
1203 (discard_all_continuations_thread, discard_all_continuations)
1204 (add_intermediate_continuation)
1205 (do_all_intermediate_continuations_thread_callback)
1206 (do_all_intermediate_continuations_thread)
1207 (do_all_intermediate_continuations)
1208 (discard_all_intermediate_continuations_thread_callback)
1209 (discard_all_intermediate_continuations_thread)
1210 (discard_all_intermediate_continuations): Move to ...
1211 * continuations.c: ... this new file, and adjust to no longer
1212 implement continuations on top of cleanups.
1213 * Makefile.in (SFILES): Add continuations.c.
1214 (COMMON_OBS): Add continuations.o.
1216 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1218 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
1219 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
1220 Internal error on invalid values.
1221 * reverse.c: Don't handle EXEC_ERROR.
1222 * mi/mi-main.c: Don't handle EXEC_ERROR.
1224 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1226 * record.c: Include event-loop.h, inf-loop.h.
1227 (record_beneath_to_async): New global.
1228 (tmp_to_async): New global.
1229 (record_async_inferior_event_token): New global.
1230 (record_open_1): Don't error out if async is enabled.
1231 (record_open): Handle to_async. Create an async event source in
1233 (record_close): Delete the async event source.
1234 (record_resumed): New global.
1235 (record_execution_dir): New global.
1236 (record_resume, record_core_resume): Set them. Register the
1237 target on the event loop.
1238 (record_wait): Rename to ...
1239 (record_wait_1): ... this. Add more debug output. Handle
1240 TARGET_WNOHANG, and the target beneath returning
1241 TARGET_WAITKIND_IGNORE.
1242 (record_wait): Reimplement on top of record_wait_1.
1243 (record_async_mask_value): New global.
1244 (record_async, record_async_mask, record_can_async_p)
1245 (record_is_async_p, record_execution_direction): New functions.
1246 (init_record_ops, init_record_core_ops): Install new methods.
1247 * infrun.c (fetch_inferior_event): Temporarily switch the global
1248 execution direction to the direction the target was going.
1249 (execution_direction): Change type to int.
1250 * target.c (default_execution_direction): New function.
1251 (update_current_target): Inherit and de_fault
1252 to_execution_direction.
1253 * target.h (struct target_ops) <to_execution_direction>: New
1255 (target_execution_direction): New macro.
1256 * inferior.h (execution_direction): Change type to int.
1258 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1260 * infcall.c (call_function_by_hand): Don't allow calling functions
1261 in reverse execution mode.
1263 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1265 * infcmd.c (finish_command): Allow async finish in reverse.
1267 2011-05-26 Yao Qi <yao@codesourcery.com>
1269 * gdb_thread_db.h: Delete. Move to ...
1270 * common/gdb_thread_db.h: ... here.
1272 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1274 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
1275 function's entry point instead of a manually managed momentary
1276 breakpoint, and only ever issue one proceed call.
1277 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
1278 doing a reverse-finish, switch to stepi mode, to do another step.
1279 (insert_step_resume_breakpoint_at_sal): Make public.
1280 (normal_stop): No need to save function value return registers if
1282 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
1284 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1286 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
1287 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
1288 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
1290 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
1291 step-resume breakpoints.
1292 (print_it_typical): Handle bp_hp_step_resume.
1293 (bpstat_what): Ditto.
1294 (bptype_string): Ditto.
1295 (print_one_breakpoint_location): Ditto.
1296 (allocate_bp_location): Ditto.
1298 (breakpoint_re_set_one): Ditto.
1299 * infrun.c (handle_inferior_event): Adjust. Split
1300 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
1301 BPSTAT_WHAT_HP_STEP_RESUME.
1302 (insert_step_resume_breakpoint_at_sal): Rename to ...
1303 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
1304 parameter. Handle it.
1305 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
1306 insert_step_resume_breakpoint_at_sal_1.
1307 (insert_step_resume_breakpoint_at_frame): Rename to ...
1308 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
1309 set a high-priority step-resume breakpoint.
1310 (insert_step_resume_breakpoint_at_frame): Adjust comment.
1311 (insert_step_resume_breakpoint_at_caller): Ditto.
1313 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1315 * breakpoint.c (iterate_over_related_breakpoints): New.
1316 (do_map_delete_breakpoint): New.
1317 (delete_command): Pass do_map_delete_breakpoint to
1318 map_breakpoint_numbers.
1319 (do_disable_breakpoint): New.
1320 (do_map_disable_breakpoint): Iterate over the breakpoint's related
1322 (do_enable_breakpoint): Rename to ...
1323 (enable_breakpoint_disp): ... this.
1324 (enable_breakpoint): Adjust.
1325 (do_enable_breakpoint): New.
1326 (enable_once_breakpoint): Delete.
1327 (do_map_enable_breakpoint): New.
1328 (do_map_enable_once_breakpoint): New.
1329 (enable_once_command, enable_delete_command)
1330 (delete_trace_command): Iterate over the breakpoint's related
1333 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1335 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
1336 for ALPHA_ZERO_REGNUM.
1337 (alpha_supply_int_regs): Explicitly supply zero as the value for
1338 ALPHA_ZERO_REGNUM in the register cache.
1339 * alpha-nat.c (fetch_osf_core_registers): Ditto.
1341 2011-05-26 Yao Qi <yao@codesourcery.com>
1343 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
1345 2011-05-26 Tristan Gingold <gingold@adacore.com>
1347 * symfile.h (struct dwarf2_section_names): New type.
1348 (struct dwarf2_debug_sections): New type.
1349 (dwarf2_has_info): Add parameter.
1350 * dwarf2read.c (dwarf2_elf_names): New variable.
1351 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
1352 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
1353 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
1354 (dwarf2_has_info): Add names parameter. Pass names
1355 to dwarf2_locate_sections.
1356 (section_is_p): Rewrite using the names parameter.
1357 (dwarf2_locate_sections): Use section names from the names parameter.
1358 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
1359 * elfread.c (read_psyms): Ditto.
1360 * machoread.c (macho_symfile_read): Ditto.
1362 2011-05-25 Andreas Schwab <schwab@redhat.com>
1365 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
1367 2011-05-24 Keith Seitz <keiths@redhat.com>
1370 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
1371 (decode_compound): Unconditionally call keep_name_info.
1373 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1375 * breakpoint.c (watchpoint_check): If the watchpoint went out of
1376 scope, clear its command list.
1377 (map_breakpoint_numbers): Don't walk the related breakpoints list
1380 2011-05-24 Tom Tromey <tromey@redhat.com>
1382 * MAINTAINERS: Move Jim Blandy to past maintainers.
1384 2011-05-24 Tristan Gingold <gingold@adacore.com>
1386 * symfile.h (enum dwarf2_section_enum): New type.
1387 (dwarf2_get_section_info): New prototype.
1388 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
1389 section_name by sect. Use a switch to select the info.
1390 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
1391 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
1393 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1395 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
1396 shared library event breakpoint if there's no execution.
1398 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
1400 * breakpont.c (remove_hw_watchpoints): Remove unused function.
1401 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
1403 2011-05-23 Tom Tromey <tromey@redhat.com>
1405 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
1408 2011-05-23 Doug Evans <dje@google.com>
1410 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
1411 entry for RuntimeError to doc string.
1413 2011-05-23 Jerome Guitton <guitton@adacore.com>
1415 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
1416 sequence for probing loops.
1418 2011-05-23 Pedro Alves <pedro@codesourcery.com>
1420 * infrun.c (user_visible_resume_ptid): Fix typos in describing
1423 2011-05-21 Mark Kettenis <kettenis@gnu.org>
1425 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
1426 zero as the value for %g0 in the register cache.
1427 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
1428 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1430 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1432 * infrun.c (proceed): Set previous_inferior_ptid here.
1433 (init_wait_for_inferior): Initialize previous_inferior_ptid from
1434 inferior_ptid, not null_ptid.
1435 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
1436 (fetch_inferior_event): Nor here.
1438 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1440 * inf-loop.c (inferior_event_handler): Only output a message if
1443 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
1445 * MAINTAINERS: Update my e-mail address.
1447 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1449 * infrun.c (proceed): Switch the inferior event loop to
1450 INF_EXEC_COMPLETE if the target refused to resume from a
1453 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1455 * infcmd.c: Include "inf-loop.h".
1456 (step_once): When stepping into an inline subroutine, pretend the
1457 target has run. If the target can async, switch the inferior
1458 event loop to INF_EXEC_COMPLETE.
1459 * inferior.h (user_visible_resume_ptid): Declare.
1460 * infrun.c (user_visible_resume_ptid): New function, factored out
1463 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
1464 that the current thread is running. Merge async and sync
1467 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1469 * infcmd.c (step_1): Simplify synchronous case.
1471 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1473 * tracepoint.c: Include exceptions.h.
1474 (TFILE_PID): Move higher in file.
1475 (tfile_open): Delay pushing the tfile target until we're assured
1476 the tfile header is present in the file. Wrap reading the initial
1477 newline-terminated lines in TRY_CATCH. Pop the target if the
1478 initial setup failed. Add the tfile's thread immediately
1479 aftwards, before any non-essential setup. Don't skip
1480 post_create_inferior if there are no traceframes present in the
1482 (tfile_close): Remove redundant check for null before xfree call.
1483 (tfile_thread_alive): New function.
1484 (init_tfile_ops): Register it as to_thread_alive callback.
1486 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1488 * tracepoint.c (tfile_open): Delete #if 0'd code.
1490 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1492 Fix -readnow for -gdwarf-4 unused type units.
1493 * dwarf2read.c (struct signatured_type): Remove the field offset.
1494 (create_signatured_type_table_from_index): Remove its initialization.
1495 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
1496 instead. Add a complaint call.
1497 (process_psymtab_comp_unit): Change assignment to gdb_assert.
1498 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
1499 (lookup_signatured_type_at_offset, read_signatured_type)
1500 (write_one_signatured_type): Update the field for per_cu.
1502 2011-05-19 Tom Tromey <tromey@redhat.com>
1504 * python/py-inferior.c (python_inferior_exit): Use
1506 (python_on_resume): Likewise.
1508 2011-05-19 Matt Rice <ratmice@gmail.com>
1510 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
1512 2011-05-19 Hui Zhu <teawater@gmail.com>
1514 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
1516 2011-05-19 Hui Zhu <teawater@gmail.com>
1518 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
1520 2011-05-18 Tom Tromey <tromey@redhat.com>
1522 * dwarf2read.c (dwarf2_add_field): Constify.
1523 * value.c (value_static_field): Constify.
1524 * gdbtypes.h (struct main_type) <field.field_location.physname>:
1526 * ax-gdb.c (gen_static_field): Constify
1528 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1530 * linux-nat.c (kill_callback): Use SIGKILL first.
1532 2011-05-18 Joel Brobecker <brobecker@adacore.com>
1534 * ada-lang.c (print_it_exception): Avoid use of sprintf.
1536 2011-05-18 Tom Tromey <tromey@redhat.com>
1538 * value.c (value_fn_field): Constify.
1539 * symtab.c (gdb_mangle_name): Constify.
1540 * stabsread.c (update_method_name_from_physname): Make 'physname'
1542 * p-typeprint.c (pascal_type_print_method_args): Make arguments
1543 const. Use explicit fputc_filtered loop.
1544 (pascal_type_print_base): Constify.
1545 * p-lang.h (pascal_type_print_method_args): Update.
1546 * linespec.c (add_matching_methods): Constify.
1547 (add_constructors): Likewise.
1548 * jv-typeprint.c (java_type_print_base): Constify.
1549 * gdbtypes.h (struct cplus_struct_type)
1550 <fn_fieldlist.fn_field.physname>: Now const.
1551 * dwarf2read.c (compute_delayed_physnames): Constify.
1552 (dwarf2_add_member_fn): Likewise.
1553 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
1555 2011-05-18 Pedro Alves <pedro@codesourcery.com>
1557 * infrun.c (resume): Mention which is the current thread, and its
1558 current PC in debug output.
1559 (prepare_to_proceed): Mention the thread switching in debug
1562 2011-05-18 Tom Tromey <tromey@redhat.com>
1564 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
1565 path check. Use xmalloc and cleanups.
1566 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
1568 2011-05-17 Tom Tromey <tromey@redhat.com>
1570 * cp-valprint.c (cp_print_value_fields): Catch errors from
1573 2011-05-17 Tom Tromey <tromey@redhat.com>
1575 * dwarf2read.c (dwarf2_get_die_type): Call
1576 get_die_type_at_offset.
1577 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
1578 get_base_type function.
1580 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
1582 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
1585 2011-05-16 Doug Evans <dje@google.com>
1587 * python/py-auto-load.c (source_section_scripts): Mention objfile
1590 2011-05-15 Doug Evans <dje@google.com>
1592 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
1593 (try_thread_db_load_from_pdir): Call it. If unable to find
1594 libthread_db in directory of libpthread, see if we're looking at
1595 the separate-debug-info copy.
1597 * python/py-autoload.c (print_script): Print "Missing" instead of
1598 "No" for missing scripts.
1599 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
1601 2011-05-13 Doug Evans <dje@google.com>
1603 * ui-file.c (stdio_file_write_async_safe): Add comment.
1605 2011-05-14 Hui Zhu <teawater@gmail.com>
1607 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
1609 2011-05-13 Doug Evans <dje@google.com>
1611 Support $pdir and $sdir in libthread-db-search-path.
1612 * NEWS: Mention $sdir,$pdir.
1613 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
1614 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
1615 (try_thread_db_load_from_sdir): New function.
1616 (try_thread_db_load_from_dir): New function.
1617 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
1618 system directories if search of libthread-db-search-path fails,
1619 that is now done via $sdir.
1620 (has_libpthread): New function.
1621 (thread_db_load): Remove search for libthread_db in directory of
1622 libpthread, that is now done via $pdir.
1624 * NEWS: Mention "info auto-load-scripts".
1625 * python/py-auto-load.c (struct auto_load_pspace_info): New member
1626 script_not_found_warning_printed.
1627 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
1628 all callers updated. Initialize script_not_found_warning_printed.
1629 (get_auto_load_pspace_data_for_loading): New function.
1630 (maybe_add_script): New function.
1631 (source_section_scripts): Simplify. Only print one warning regardless
1632 of the number of auto-load scripts not found.
1633 (clear_section_scripts): Clear script_not_found_warning_printed.
1634 (auto_load_objfile_script): Record script in hash table.
1635 (count_matching_scripts): New function.
1636 (maybe_print_script): Renamed from maybe_print_section_script, all
1637 callers updated. Rewrite to use ui_out_*.
1638 (info_auto_load_scripts): Renamed from
1639 maintenance_print_section_scripts, all callers updated.
1640 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
1641 renamed as "info auto-load-scripts".
1643 2011-05-13 Tom Tromey <tromey@redhat.com>
1645 * dwarf2expr.c (read_uleb128): Cast intermediate result.
1646 (read_sleb128): Likewise.
1648 2011-05-13 Tom Tromey <tromey@redhat.com>
1650 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
1653 2011-05-13 Doug Evans <dje@google.com>
1655 * linux-nat.c (debug_linux_nat_async): Delete.
1656 Replace all references to use debug_linux_nat instead.
1657 (show_debug_linux_nat_async): Delete.
1658 (sigchld_handler): Call ui_file_write_async_safe instead of
1660 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
1661 * ui-file.c (struct ui_file): New member to_write_async_safe.
1662 (null_file_write_async_safe): New function.
1663 (ui_file_write_async_safe): New function.
1664 (set_ui_file_write_async_safe): New function.
1665 (ui_file_new): Initialize to_write_async_safe.
1666 (stdio_file_write_async_safe): New function.
1667 (struct stdio_file): New member fd.
1668 (stdio_file_new): Initialize to_write_async_safe, fd.
1669 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
1671 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
1672 (set_ui_file_write_async_safe): Declare.
1673 (ui_file_write_async_safe): Declare.
1675 2011-05-13 Tom Tromey <tromey@redhat.com>
1677 * utils.c (do_value_free): New function.
1678 (make_cleanup_value_free): Likewise.
1679 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
1681 (dwarf2_loc_desc_needs_frame): Call
1682 make_cleanup_value_free_to_mark.
1683 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
1684 * dwarf2expr.c (free_dwarf_expr_context): Don't call
1686 (new_dwarf_expr_context): Don't call value_mark.
1687 * dwarf2-frame.c (execute_stack_op): Call
1688 make_cleanup_value_free_to_mark.
1689 * defs.h (make_cleanup_value_free): Declare.
1691 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1693 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
1694 prepare_execute_command.
1695 * top.c (prepare_execute_command): Return cleanup.
1696 (execute_command): Use cleanup from prepare_execute_command.
1697 * top.h (prepare_execute_command): Change prototype to return
1699 * defs.h (struct value): Add opaque declaration.
1700 (make_cleanup_value_free_to_mark): Add prototype.
1701 * utils.c (do_value_free_to_mark): New function.
1702 (make_cleanup_value_free_to_mark): Likewise.
1704 2011-05-12 Tom Tromey <tromey@redhat.com>
1706 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
1707 cast left-hand-side to unsigned.
1709 2011-05-12 Tom Tromey <tromey@redhat.com>
1712 * value.h (value_from_contents): Declare.
1713 * value.c (value_from_contents): New function.
1714 * dwarf2read.c (dwarf_stack_op_name): Add new values.
1715 (dwarf2_get_die_type): New function.
1716 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
1717 (allocate_piece_closure): Acquire reference to values.
1718 (read_pieced_value): Update for value-based expressions.
1719 (write_pieced_value): Likewise.
1720 (free_pieced_value_closure): Call value_free as needed.
1721 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
1722 Update for value-based expressions.
1723 * dwarf2loc.h (dwarf2_get_die_type): Declare.
1724 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
1725 <get_base_type>: New field.
1726 (struct dwarf_expr_piece) <v.value>: Change type.
1727 <v.regno>: New field.
1728 (struct dwarf_expr_context) <mark>: New field.
1729 (dwarf_expr_piece, dwarf_expr_fetch): Update.
1730 (dwarf_expr_pop, dwarf_expr_push): Remove.
1731 (dwarf_expr_push_address): Declare.
1732 * dwarf2expr.c (dwarf_arch_cookie): New global.
1733 (struct dwarf_gdbarch_types): New.
1734 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
1736 (dwarf_expr_push): Change type of 'value' argument. Update. Now
1738 (dwarf_expr_push_address): New function.
1739 (dwarf_expr_pop): Now static.
1740 (dwarf_expr_fetch): Change return type.
1741 (dwarf_require_integral): New function.
1742 (dwarf_expr_fetch): Simplify.
1743 (add_piece): Update.
1744 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
1746 (execute_stack_op) <sign_ext>: Remove.
1747 Use values for DWARF stack.
1748 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
1749 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1751 (_initialize_dwarf2expr): New function.
1752 (add_piece): Update.
1753 (new_dwarf_expr_context): Set new field.
1754 (free_dwarf_expr_context): Call value_free_to_mark.
1755 * dwarf2-frame.c (no_base_type): New function.
1756 (execute_stack_op): Set get_base_type field. Update.
1758 2011-05-12 Tom Tromey <tromey@redhat.com>
1760 * dwarf2read.c (read_common_block): Fix formatting.
1762 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
1764 * breakpoint.c (disable_breakpoint): Disable all locations
1765 associated with a tracepoint on target if a trace experiment is
1767 (disable_command): Disable a specific tracepoint location on target if
1768 a trace experiment is running.
1769 (do_enable_breakpoint): Enable all locations associated with a
1770 tracepoint on target if a trace experiment is running.
1771 (enable_command) Enable a specific tracepoint location on target if a
1772 trace experiment is running.
1773 * target.c (update_current_target): Add INHERIT and de_fault clauses for
1774 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1775 to_disable_tracepoint.
1776 * target.h: Add declaration of struct bp_location.
1777 (struct target_ops): Add new functions
1778 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1779 to_disable_tracepoint to target operations.
1780 (target_supports_enable_disable_tracepoint): New macro.
1781 (target_enable_tracepoint): New macro.
1782 (target_disable_tracepoint): New macro.
1783 * remote.c (struct remote_state): Add new field.
1784 (remote_enable_disable_tracepoint_feature): New.
1785 (remote_protocol_features): Add new entry.
1786 (remote_supports_enable_disable_tracepoint): New.
1787 (remote_enable_tracepoint): New.
1788 (remote_disable_tracepoint): New.
1789 (init_remote_ops): Add remote_enable_tracepoint,
1790 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1791 to remote operations.
1792 * tracepoint.c (start_tracing): Allow tracing to start without any
1793 tracepoints enabled with just a warning if they can be re-enabled
1795 * NEWS: Add news item for the new behaviour of the enable and disable
1796 GDB commands when applied to tracepoints.
1797 Add news items for the new remote packets QTEnable and QTDisable.
1799 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1801 * config.in: Regenerate.
1802 * configure: Regenerate.
1803 * configure.ac <--with-system-readline> (for readline_echoing_p):
1805 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1806 (tui_old_rl_echoing_p): ... here.
1807 (tui_setup_io): Rename extern declaration readline_echoing_p to
1808 _rl_echoing_p. Adjust assignments for the both renames.
1810 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1812 * symtab.c (lookup_symtab): Run cleanup before returning.
1814 2011-05-11 Tom Tromey <tromey@redhat.com>
1816 * dwarf2read.c (handle_data_member_location): New function.
1817 (dwarf2_add_field): Use it.
1818 (read_common_block): Likewise.
1820 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1822 Make addrs->SECTINDEX always defined.
1823 * symfile.c (relative_addr_info_to_section_offsets): Check for
1824 SECTINDEX -1, not for zero ADDR.
1825 (addrs_section_compar): Remove checking for invalid SECTINDEX.
1826 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1827 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1830 2011-05-10 Doug Evans <dje@google.com>
1832 * linux-thread-db.c: Whitespace cleanup.
1833 (try_thread_db_load_1): Fix comment.
1835 * linux-thread-db.c (set_libthread_db_search_path): New function.
1836 (_initialize_thread_db): Add setter for libthread-db-search-path.
1838 2011-05-09 Doug Evans <dje@google.com>
1840 * NEWS: Mention --with-iconv-bin.
1841 * configure.ac: New option --with-iconv-bin.
1842 * configure: Regenerate.
1843 * config.in: Regenerate.
1844 * defs.h (relocate_gdb_directory): Declare.
1845 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1846 removed progname parameter, and exported. All callers updated.
1847 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1849 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1850 adding missing call to restore_child_signals_mask.
1852 2011-05-09 Pedro Alves <pedro@codesourcery.com>
1854 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1856 * infrun.c (proceed, start_remote): Adjust.
1857 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1858 and adjust to not handle it.
1859 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1860 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1861 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1862 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1863 * windows-nat.c (do_initial_windows_stuff): Adjust.
1864 * infcmd.c (attach_command): Adjust.
1865 (notice_new_inferior): Adjust.
1867 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1869 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1870 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1871 * spu-tdep.c (op_selb): Use correct value.
1873 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1875 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1876 "parent" parameter to symbol_file_add_from_bfd call.
1878 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1879 Thiago Jung Bauermann <bauerman@br.ibm.com>
1881 Implement support for PowerPC BookE masked watchpoints.
1882 * NEWS: Mention masked watchpoint support. Create "Changed commands"
1884 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
1885 method. Initialize to NULL in all existing breakpoint_ops instances.
1886 (struct breakpoint) <hw_wp_mask>: New field.
1887 * breakpoint.c (is_masked_watchpoint): Add prototype.
1888 (update_watchpoint): Don't set b->val for masked watchpoints. Call
1889 breakpoint's breakpoint_ops.works_in_software_mode if available.
1890 (watchpoints_triggered): Handle the case of a hardware masked
1892 (watchpoint_check): Likewise.
1893 (works_in_software_mode_watchpoint): New function.
1894 (insert_masked_watchpoint, remove_masked_watchpoint)
1895 (resources_needed_masked_watchpoint)
1896 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
1897 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
1898 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
1900 (masked_watchpoint_breakpoint_ops): New structure.
1901 (watch_command_1): Check for the existence of the `mask' parameter.
1902 Set b->ops according to the type of hardware watchpoint being created.
1903 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
1904 (ppc_linux_remove_mask_watchpoint)
1905 (ppc_linux_masked_watch_num_registers): New functions.
1906 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
1907 to_remove_mask_watchpoint and to_masked_watch_num_registers.
1908 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
1909 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
1910 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1911 (target_masked_watch_num_registers): New functions.
1912 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
1913 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
1915 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1916 (target_masked_watch_num_registers): Add prototypes.
1918 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1921 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
1922 (producer_is_gcc_ge_4_0): New function.
1923 (process_full_comp_unit): Set also symtab->locations_valid. Move the
1924 symtab->language code.
1925 (var_decode_location): Set cu->has_loclist.
1926 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
1927 skip. Intialize force_skip from locations_valid. Move the prologue
1928 skipping code into two passes.
1929 * symtab.h (struct symtab): Make the primary field a bitfield. New
1930 field locations_valid.
1932 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1934 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
1935 (classify_inner_name): Call cp_lookup_nested_type with
1937 * cp-namespace.c (cp_lookup_nested_type): New variable
1938 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
1939 type_name_no_tag_or_error with saved_parent_type.
1940 * dwarf2read.c (load_partial_dies): Read in any children of
1941 DW_TAG_typedef with complaint in such case.
1942 * gdbtypes.c (type_name_no_tag_or_error): New function.
1943 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
1944 * valops.c (destructor_name_p): New comment for parameter type. Remove
1945 type const. Make dname and cp const. Call type_name_no_tag_or_error.
1946 * value.h (destructor_name_p): Remove type const.
1948 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1950 * symtab.c (compare_symbol_name): New function.
1951 (completion_list_add_name, expand_partial_symbol_name): Call it,
1952 remove the variable ncmp.
1953 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
1956 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1958 Demote to sw watchpoint only in update_watchpoint.
1959 * breakpoint.c (update_watchpoint): Change between software and
1960 hardware watchpoint for all kinds of watchpoints, not just
1961 read/write ones. Determine b->exact value here instead of
1962 in watch_command_1. Error out if there are not enough resources
1963 for a read or access hardware watchpoint.
1964 (watch_command_1): Remove logic of checking whether there are
1965 enough resources available, since update_watchpoint will do that
1966 work now. Don't set b->exact here. Catch exceptions thrown by
1967 update_watchpoint and delete the watchpoint.
1968 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
1969 Use target_exact_watchpoints instead.
1970 (delete_breakpoint): Notify observers only if deleted watchpoint
1971 has a breakpoint number assigned to it.
1973 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
1975 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1977 2011-05-05 Jerome Guitton <guitton@adacore.com>
1979 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
1981 (i386_stack_tramp_frame_unwind): New static global.
1982 (i386_match_pattern): New function, extracted from i386_match_insn.
1983 (i386_match_insn): Use i386_match_pattern.
1984 (i386_match_insn_block): New function.
1985 (i386_tramp_chain_in_reg_insns)
1986 (i386_tramp_chain_on_stack_insns): New static variables.
1987 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
1990 2011-05-04 Joseph Myers <joseph@codesourcery.com>
1992 * configure.host (xscale*): Don't handle target.
1993 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
1996 2011-05-04 Yao Qi <yao@codesourcery.com>
1998 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
2000 2011-05-03 Joel Brobecker <brobecker@adacore.com>
2003 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
2004 | * elfread.c (elf_symtab_read): Stop memory leak.
2006 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2008 * nto-tdep.c (nto_target): Replace deprecated call to
2009 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
2011 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2013 Fix false GCC warning.
2014 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
2016 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
2018 * breakpoint.c (update_watchpoint): Move code to change
2019 the enable state of breakpoint from here ...
2020 (do_enable_breakpoint): ... to here.
2022 2011-04-26 Andrew Gontarek <andrewg@cray.com>
2024 * valprint.c (val_print_array_elements): Fixed poor performance
2025 of printing very large arrays with repeat_count_threshold set
2026 to unlimited. New comment.
2028 2011-04-29 Tom Tromey <tromey@redhat.com>
2030 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
2031 (mi_parse): Likewise.
2032 * breakpoint.c (break_range_command): Use sizeof char*, not
2034 (create_breakpoint): Likewise.
2035 (parse_breakpoint_sals): Likewise.
2037 2011-04-29 Pedro Alves <pedro@codesourcery.com>
2039 * linux-nat.c (linux_child_remove_fork_catchpoint)
2040 (linux_child_remove_vfork_catchpoint)
2041 (linux_child_remove_exec_catchpoint): New functions.
2042 (linux_target_install_ops): Install them.
2044 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
2048 * varobj.c (install_default_visualizer): Do not install a
2049 visualizer if the varobj is CPLUS_FAKE_CHILD.
2050 (construct_visualizer): Likewise.
2052 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2054 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
2055 case insensitive comparison.
2057 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
2059 * infrun.c (proceed): Revert previous change.
2060 (resume): Instead, handle the case of signal delivery while stepping
2061 off a breakpoint location here, and only if software single-stepping
2062 is used. Handle nested signals.
2064 2011-04-28 Yao Qi <yao@codesourcery.com>
2066 * arm-tdep.c (copy_unmodified): Rename to ...
2067 (arm_copy_unmodified): .. this. New.
2068 (copy_preload): Move common part to ...
2069 (install_preload): .. this. New.
2070 (arm_copy_preload): New.
2071 (copy_preload_reg): Move common part to ...
2072 (install_preload_reg): ... this. New.
2073 (arm_copy_preload_reg): New.
2074 (copy_b_bl_blx): Move common part to ...
2075 (install_b_bl_blx): .. this. New.
2076 (arm_copy_b_bl_blx): New.
2077 (copy_bx_blx_reg): Move common part to ...
2078 (install_bx_blx_reg): ... this. New.
2079 (arm_copy_bx_blx_reg): New.
2080 (copy_alu_reg): Move common part to ...
2081 (install_alu_reg): ... this. New.
2082 (arm_copy_alu_reg): New.
2083 (copy_alu_shifted_reg): Move common part to ...
2084 (install_alu_shifted_reg): ... this. New.
2085 (copy_ldr_str_ldrb_strb): Move common part to ...
2086 (install_ldr_str_ldrb_strb): ... this. New.
2087 (arm_copy_ldr_str_ldrb_strb): New.
2088 (copy_copro_load_store): Move some common part to ...
2089 (install_copy_copro_load_store): ... this. New.
2090 (arm_copy_copro_load_store): New.
2092 (arm_copy_svc): Renamed from copy_svc.
2093 (copy_undef): Delete.
2094 (arm_copy_undef): Renamed from copy_undef.
2095 (decode_ext_reg_ld_st): Delete.
2096 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2097 (decode_svc_copro): Delete.
2098 (arm_decode_svc_copro): Renamed from decode_svc_copro.
2099 (copy_copro_load_store, copy_alu_imm): update callers.
2100 (copy_extra_ld_st, copy_block_xfer): Likewise.
2101 (decode_misc_memhint_neon, decode_unconditional): Likewise.
2102 (decode_miscellaneous, decode_dp_misc): Likewise.
2103 (decode_ld_st_word_ubyte, decode_media): Likewise.
2104 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
2105 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
2106 (decode_unconditional, decode_miscellaneous): Likewise.
2107 (decode_media, decode_b_bl_ldmstm): Likewise.
2108 (arm_process_displaced_insn): Likewise..
2109 (decode_misc_memhint_neon): Delete.
2110 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
2111 (decode_miscellaneous): Delete.
2112 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
2113 (decode_dp_misc): Delete.
2114 (arm_decode_dp_misc): Renamed from decode_dp_misc.
2115 (decode_ld_st_word_ubyte): Delete.
2116 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
2117 (decode_media): Delete.
2118 (arm_decode_media): Renamed from decode_media.
2119 (decode_b_bl_ldmstm): Delete.
2120 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
2121 (decode_ext_reg_ld_st): Delete.
2122 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2123 (decode_unconditional): Delete.
2124 (arm_decode_unconditional): Renamed from decode_unconditional.
2126 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2128 Case insensitive lookups implementation.
2129 * dwarf2read.c: Include ctype.h.
2130 (struct mapped_index): New field version.
2131 (mapped_index_string_hash): New parameter index_version. New comment
2132 for it. Call tolower appropriately.
2133 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
2134 Choose the right index version for mapped_index_string_hash.
2135 (dwarf2_read_index): Support also the index version 5. Initialize the
2136 new struct mapped_index field version.
2137 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
2138 (find_slot): Explain the version needs. Pass INT_MAX for the new
2140 (write_psymtabs_to_index): Produce version 5.
2141 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
2142 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
2143 * psymtab.c (lookup_partial_symbol): Find the
2144 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
2146 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
2148 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
2149 (completion_list_add_name): New variable ncmp, initialize it, use it.
2150 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
2151 * utils.c (strcmp_iw): Support case_sensitive_off.
2152 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
2153 New function comment part. New variables saved_string1,
2154 saved_string2 and case_pass. Add a proper second pass.
2156 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2158 Replace re_comp/re_exec by regcomp/regexec.
2159 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
2160 (search_symbols_name_matches): Use them, use regexec.
2161 (search_symbols): New variable retval_chain, adjust the use of
2162 old_chain against it. Replace re_comp by regcomp. Use the new struct
2163 search_symbols_data fields, use regexec instead of re_exec.
2165 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2167 Format the code for the next patch.
2168 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
2169 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
2170 New variables c1 and c2.
2172 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2174 * infrun.c (proceed): Do not single-step into signal delivery
2175 when stepping off a breakpoint location.
2176 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
2177 (insert_step_resume_breakpoint_at_caller): Likewise.
2178 (insert_step_resume_breakpoint_at_sal): Likewise.
2179 (insert_longjmp_resume_breakpoint): Likewise.
2181 2011-04-27 Yao Qi <yao@codesourcery.com>
2183 * common/linux-ptrace.h: Remove include <sys/wait.h>.
2185 2011-04-27 Joel Brobecker <brobecker@adacore.com>
2187 * procfs.c (procfs_pass_signals): Fix advance declaration.
2189 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2191 * target.h (struct target_ops): Remove to_notice_signals;
2192 add to_pass_signals.
2193 (target_notice_signals): Remove.
2194 (target_pass_signals): Add prototype.
2195 * target.c (update_current_target): Remove to_notice_signals;
2196 mention to_pass_signals.
2197 (target_pass_signals): New function.
2198 (debug_to_notice_signals): Remove.
2199 (setup_target_debug): Do not install debug_to_notice_signals.
2201 * infrun.c (signal_pass): New global.
2202 (resume): Call target_pass_signals.
2203 (handle_inferior_event): Report all signals while stepping over
2204 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
2205 are re-inserted when stepping over a signal handler.
2206 (signal_cache_update): New function.
2207 (signal_stop_update): Call it.
2208 (signal_print_update): Likewise.
2209 (signal_pass_update): Likewise.
2210 (handle_command): Call signal_cache_update and target_pass_signals
2211 instead of target_notice_signals.
2212 (_initialize_infrun): Initialize signal_pass.
2214 * linux-nat.c (pass_mask): New global.
2215 (linux_nat_pass_signals): New function.
2216 (linux_nat_create_inferior): Report all signals initially.
2217 (linux_nat_attach): Likewise.
2218 (linux_nat_resume): Use pass_mask to decide whether to directly
2219 handle an inferior signal.
2220 (linux_nat_wait_1): Likewise.
2221 (linux_nat_add_target): Install to_pass_signals callback.
2223 * nto-procfs.c (notice_signals): Remove.
2224 (procfs_resume): Do not call notice_signals.
2225 (procfs_notice_signals): Remove.
2226 (procfs_pass_signals): New function.
2227 (init_procfs_ops): Install to_pass_signals callback instead of
2228 to_notice_signals callback.
2229 (_initialize_procfs): Report all signals initially.
2231 * procfs.c (procfs_notice_signals): Remove.
2232 (procfs_pass_signals): New function.
2233 (procfs_target): Install to_pass_signals callback instead of
2234 to_notice_signals callback.
2235 (register_gdb_signals): Remove.
2236 (procfs_debug_inferior): Report all signals initially.
2237 (procfs_init_inferior): Remove redundant register_gdb_signals call.
2239 * remote.c (remote_pass_signals): Add numsigs and pass_signals
2240 parameters; use them instead of calling signal_..._state routines.
2241 (remote_notice_signals): Remove.
2242 (remote_start_remote): Report all signals initially.
2243 (remote_resume): Do not call remote_pass_signals.
2244 (_initialize_remote): Install to_pass_signals callback instead of
2245 to_notice_signals callback.
2247 2011-04-27 Pedro Alves <pedro@codesourcery.com>
2249 * breakpoint.c (user_settable_breakpoint): Delete.
2250 (user_breakpoint_p): Remove check on user_settable_breakpoint.
2251 (delete_command): Check user_breakpoint_p instead of looking at
2252 the breakpoint's type.
2253 (disable_command): Ditto.
2254 (enable_command): Ditto.
2255 (delete_trace_command): Use user_breakpoint_p instead of looking
2256 at the breakpoint number directly. When checking if there are
2257 user visible tracepoints, in order to know whether to ask the user
2258 for confirmation, check whether the breakpoint is actually a
2261 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2263 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
2266 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2268 MI breakpoint notifications.
2270 * annotate.c (breakpoint_changed): Adjust parameter type.
2271 * breakpoint.c (set_breakpoint_condition): Adjust to change
2272 in breakpoint_modified type.
2273 (breakpoint_set_commands): Likewise.
2274 (do_map_commands_command): Likewise.
2275 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
2276 changed after bumping hit count.
2277 (bpstat_stop_status): Likewise.
2278 (print_one_breakpoint_location): Don't wrap in tuple here.
2279 (print_one_breakpoint): Always print individual locations.
2280 For locations, use unnamed tuple.
2281 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
2283 (create_catchpoint, create_syscall_event_catchpoint): Call
2284 breakpoint_created obsever.
2285 (mention): Don't call breakpoint_created observer.
2286 (create_breakpoint_sal): Call breakpoint_created observer.
2287 (create_breakpoint, watch_command_1): Likewise.
2288 (create_ada_exception_breakpoint): Likewise.
2289 (delete_breakpoint): Call breakpoint_deleted breakpoint.
2290 (locations_are_equal): New.
2291 (update_breakpoint_locations): If locations were changed, notify.
2292 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
2293 Call breakpoint_modified observer.
2295 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2296 (mi_cmd_break_insert): Don't set observers for modify and delete.
2297 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
2298 (mi_breakpoint_created, mi_breakpoint_deleted)
2299 (mi_breakpoint_modified): New.
2300 (mi_interpreter_init): Hook the above.
2301 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
2302 while -break-* commands are executing.
2303 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
2304 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
2306 (mi_ui_out_impl): Hook in mi_redirect.
2307 (mi_field_skip): True to the name, skip the field, don't output
2308 a field with an empty value.
2310 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2311 (gdbpy_breakpoint_deleted): Adjust.
2312 * tui/tui-hooks.c (tui_event_create_breakpoint)
2313 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
2315 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
2317 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
2318 (procfs_remove_hw_watchpoint): Likewise.
2320 2011-04-26 Michael Walle <michael@walle.cc>
2322 * remote.c (remote_start_remote): Ack packet after sending the
2325 2011-04-26 Yao Qi <yao@codesourcery.com>
2327 * linux-nat.c: Move common macros to ...
2328 Include linux-ptrace.h.
2329 * common/linux-ptrace.h: ... here. New.
2331 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2333 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
2334 !objfile_has_partial_symbols. New comment.
2335 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
2336 SYM_READ_PSYMBOLS is not present. Extend the comment.
2337 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
2339 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2341 * defs.h (ENUM_BITFIELD): Remove.
2343 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2344 Eli Zaretskii <eliz@gnu.org>
2346 * NEWS: Document the new gdbserver --once option.
2348 2011-04-21 Jie Zhang <jzhang918@gmail.com>
2350 * MAINTAINERS: Update my email address.
2352 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2354 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
2355 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
2356 function call if __STDC_ISO_10646__ macro is defined.
2357 (intermediate_encoding): New prototype.
2358 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
2359 to generate compile time error for unsupported gdb_wchar_t size.
2360 (ENDIAN_SUFFIX): New macro.
2361 (intermediate_encoding): New function.
2363 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2365 * ada-lang.c (struct add_partial_datum): Update the comment for
2366 expand_partial_symbol_name.
2367 (ada_add_partial_symbol_completions): Rename to ...
2368 (ada_expand_partial_symbol_name): ... here, change return type, update
2369 function comment, call symbol_completion_match instead of
2370 symbol_completion_add.
2371 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
2372 and ada_expand_partial_symbol_name.
2373 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
2375 (dw2_map_symbol_names): Remove.
2376 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
2377 * psymtab.c (map_symbol_names_psymtab): Remove.
2378 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
2379 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
2381 (psym_functions): Unlist map_symbol_names_psymtab.
2382 (map_partial_symbol_names): Rename to ...
2383 (expand_partial_symbol_names): ... here, change the FUN type, call
2384 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
2385 * psymtab.h (map_partial_symbol_names): Rename to ...
2386 (expand_partial_symbol_names): ... here, change the FUN type.
2387 * symfile.h (struct quick_symbol_functions): Update the description of
2388 expand_symtabs_matching. Remove map_symbol_names.
2389 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
2390 (struct add_name_data): Update the comment for
2391 expand_partial_symbol_name.
2392 (add_partial_symbol_name): Rename to ...
2393 (expand_partial_symbol_name): ... here. Replace
2394 completion_list_add_name call by strncmp.
2395 (default_make_symbol_completion_list_break_on): Use now
2396 expand_partial_symbol_names and expand_partial_symbol_name.
2397 * symtab.h (enum search_domain): New element ALL_DOMAIN.
2399 2011-04-20 Tom Tromey <tromey@redhat.com>
2401 * dwarf2read.c (save_gdb_index_command): Replace format
2402 documentation with a pointer to the manual.
2404 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2406 * regcache.c: Include remote.h.
2407 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
2408 (regcache_dump): Handle regcache_dump_remote.
2409 (maintenance_print_remote_registers): New function.
2410 (_initialize_regcache): Install "maint print remote-registers"
2412 * remote.c (map_regcache_remote_table): New function, factored out
2414 (init_remote_state): ... here.
2415 (remote_register_number_and_offset): New.
2416 * remote.h (remote_register_number_and_offset): Declare.
2418 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2420 * regcache.c (get_thread_arch_regcache): If creating a regcache for
2421 null_ptid, assume and allow a NULL address space, instead of
2422 asking the target for the ptid's address space.
2423 * infrun.c (ptid_is_pid): Remove assertion.
2425 2011-04-19 Tom Tromey <tromey@redhat.com>
2427 * windows-tdep.c (windows_xfer_shared_library):
2428 * windows-nat.c (get_module_name, windows_make_so):
2429 * v850-tdep.c (v850_handle_pushm):
2430 * utils.c (null_cleanup, gdb_realpath):
2431 * ui-out.c (get_next_header):
2432 * tracepoint.c (clear_traceframe_info):
2433 * symtab.c (lookup_symtab):
2434 * serial.h (struct serial_ops):
2435 * mipsread.c (read_alphacoff_dynamic_symtab):
2436 * infcmd.c (print_return_value):
2437 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
2438 * f-exp.y (parse_number):
2439 * exceptions.c (catch_exceptions):
2440 * dummy-frame.c (dummy_frame_this_id):
2441 * defs.h (struct cleanup):
2442 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
2443 * arm-tdep.c (arm_push_dummy_call):
2444 * amd64-tdep.h (amd64_collect_xsave):
2445 * amd64-tdep.c (amd64_collect_xsave):
2446 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
2447 * README (typing): Remove duplicate words.
2448 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
2449 * infrun.c (siginfo_value_read): Fix typo.
2450 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
2451 * top.c (source_line_number): Add comma.
2453 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
2455 * thread.c (any_live_thread_of_process): Prioritize threads
2456 that are not executing.
2457 * gdbthread.h (any_live_thread_of_process): Update comment
2458 as per above change.
2460 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
2462 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
2463 (scan_xcoff_symtab): Likewise.
2465 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2467 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
2470 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2471 Pedro Alves <pedro@codesourcery.com>
2473 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
2474 variables to simplify code and avoid == operator at end of
2475 line as this is against GNU coding standards.
2477 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2479 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
2480 lm_name to name_lm to avoid conflict with lm_name function.
2482 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2484 ARI fixes: Use only lowercase function name for static functions.
2485 * nto-tdep.c (LM_ADDR): Rename to...
2486 (lm_addr): New function name.
2487 (nto_relocate_section_addresses): Adapt to change above.
2488 * solib-sunos.c (LM_ADDR): Rename to...
2489 (lm_addr): New function name.
2490 (LM_NEXT): Rename to...
2491 (lm_next): New function name.
2492 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
2493 function name changes above.
2494 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
2495 (lm_addr_from_link_map): New function name.
2496 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2497 (has_lm_dynamic_from_link_map): New function name.
2498 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2499 (lm_dynamic_from_link_map): New function name.
2500 (LM_ADDR_CHECK): Rename to...
2501 (lm_addr_check): New function name.
2502 (LM_NEXT): Rename to...
2503 (lm_next): New function name.
2504 (LM_PREV): Rename to...
2505 (lm_prev): New function name.
2506 (LM_NAME): Rename to...
2507 (lm_name): New function name.
2508 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
2509 (ignore_first_link_map_entry): New function name.
2510 (svr4_keep_data_in_core): Adapt to function name changes above.
2511 (svr4_current_sos): Likewise.
2512 (enable_break): Likewise.
2513 (svr4_relocate_section_addresses): Likewise.
2515 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2518 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
2519 sprintf. Simplify code and avoid loosing memory.
2520 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
2521 (call0_frame_cache): Remove && operator from end of line.
2523 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2525 Fix libraries displacement if they change whether they were prelinked.
2526 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
2527 does not match. Comment why.
2529 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2531 * corelow.c: Include wrapper.h.
2532 (core_open): Call now gdb_target_find_new_threads.
2533 * wrapper.c: Include target.h.
2534 (gdb_target_find_new_threads): New.
2535 * wrapper.h (gdb_target_find_new_threads): New declaration.
2537 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2539 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
2540 even if !TARGET_HAS_EXECUTION.
2542 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2544 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
2545 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
2546 bfd_get_synthetic_symtab.
2547 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
2548 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
2549 parameter parent, remove the call to add_separate_debug_objfile.
2550 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
2551 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2552 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
2553 parent, new comment for it, call add_separate_debug_objfile for it.
2554 (symbol_file_add_separate): Pass objfile as the parameter parent,
2555 remove the call to add_separate_debug_objfile.
2556 (symbol_file_add_from_bfd): New parameter parent, pass it.
2557 (symbol_file_add): Pass NULL to the new parameter parent.
2558 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
2560 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2562 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
2565 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2567 Fix Python access to inlined frames.
2568 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
2569 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2571 2011-04-15 Tom Tromey <tromey@redhat.com>
2573 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
2575 2011-04-15 Gary Benson <gbenson@redhat.com>
2577 * MAINTAINERS: Add myself to write-after-approval section.
2579 2011-04-14 Mike Frysinger <vapier@gentoo.org>
2581 * remote-sim.c (sim_command_completer): New function.
2582 (_initialize_remote_sim): Set completer to sim_command_completer.
2584 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2586 * breakpoint.c (print_exception_catchpoint): Rename to ...
2587 (print_it_exception_catchpoint): ... this.
2588 (gnu_v3_exception_catchpoint_ops): Update with new name
2589 for print_it_exception_catchpoint.
2591 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
2593 * MAINTAINERS: Add myself for write after approval privileges.
2595 2011-04-13 Marek Polacek <mpolacek@redhat.com>
2597 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2599 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2601 * breakpoint.c (watch_command_1): Remove colon from exp_string.
2603 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2605 * breakpoint.c (save_breakpoints): Verify whether
2606 breakpoint_ops.print_recreate is defined before calling it.
2608 2011-04-11 Gary Benson <gbenson@redhat.com>
2610 Fix failure with --enable-maintainer-mode.
2611 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
2613 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2616 * symtab.c (search_symbols): Reorder the KIND description in the
2617 function comment. Remove the unused 4th element of types, types2,
2618 types3 and types4. New gdb_assert on KIND.
2619 (symtab_symbol_info): Remove the unused 4th element of classnames.
2620 New gdb_assert on KIND.
2621 * symtab.h (enum search_domain): New warning in the enum comment.
2622 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
2625 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2627 Fix crash of gdb save-index on a STABS file.
2628 * dwarf2read.c (write_psymtabs_to_index): Return also on no
2631 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2633 Fix DW_AT_accessibility compatibility with gcc-4.6+.
2634 * dwarf2read.c: Include ctype.h.
2635 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
2637 (dwarf2_add_field): Fix new_field->accessibility by calling
2638 dwarf2_default_access_attribute. Restructure setting accessibility
2640 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
2641 is_private and is_protected by calling
2642 dwarf2_default_access_attribute.
2644 2011-04-08 Kevin Buettner <kevinb@redhat.com>
2646 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
2647 to the initialization.
2649 2011-04-08 Steve Ellcey <sje@cup.hp.com>
2651 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
2654 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
2656 Remove support for old Cygwin 1.5 versions.
2657 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
2658 function on old Cygwin version.
2659 * windows-nat.c: Remove cygwin version check and always define
2660 __USEWIDE for Cygwin compilation.
2662 2011-04-07 Yao Qi <yao@codesourcery.com>
2664 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
2666 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
2667 (arm_copy_svc): Remove parameters INSN and TO.
2668 (decode_svc_copro): Update caller.
2669 * arm-tdep.h (struct displaced_step_closure): Remove parameters
2670 from function pointer `copy_svc_os'.
2672 2011-04-07 Yao Qi <yao@codesourcery.com>
2674 * arm-tdep.c (cleanup_branch): Set a correct return address in
2675 LR for ARM and Thumb.
2677 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2680 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
2681 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
2682 in the function comment, a new note on values compatibility.
2683 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
2684 * symtab.h (SYMBOL_HASH_NEXT): New.
2686 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
2688 * ppc-linux-nat.c (check_condition): Add len output parameter.
2689 Set it based on the memory region referenced in the condition
2690 expression. Update all callers.
2692 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2694 Fix crash regression on systems featuring .gdb_index.
2695 * objfiles.c (free_objfile): Move the
2696 forget_cached_source_info_for_objfile call earlier. Comment it.
2697 Extend the comment for objfile_free_data.
2699 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2701 Fix regression of displaying the debug format.
2702 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
2705 2011-04-04 Tom Tromey <tromey@redhat.com>
2707 * cli/cli-interp.c (struct captured_execute_command_args):
2709 (do_captured_execute_command): Remove.
2710 (safe_execute_command): Use TRY_CATCH.
2711 * cli/cli-script.c (struct wrapped_read_command_file_args):
2713 (wrapped_read_command_file): Remove.
2714 (script_from_file): Use TRY_CATCH.
2715 * exceptions.c (catch_exception): Remove.
2716 * exceptions.h (catch_exception): Remove.
2717 (deprecated_throw_reason): Update comment.
2718 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
2719 argument to 'context'.
2720 (mi_execute_command): Use TRY_CATCH.
2721 * remote.c (struct start_remote_args): Remove.
2722 (remote_start_remote): Update; change arguments.
2723 (remote_open_1): Use TRY_CATCH.
2725 2011-04-04 Tom Tromey <tromey@redhat.com>
2727 * tracepoint.c (scope_info): Update.
2728 * symtab.c (decode_line_spec): Update.
2729 * python/python.c (gdbpy_decode_line): Update.
2730 * linespec.h (decode_line_1): Update.
2731 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
2732 (decode_compound, find_method, symtab_from_filename)
2733 (decode_variable): Likewise.
2734 * cli/cli-cmds.c (edit_command): Update.
2735 (list_command): Update.
2736 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
2738 (create_breakpoint): Update.
2739 (until_break_command): Update.
2740 (addr_string_to_sals): Update.
2741 (decode_line_spec_1): Update.
2743 2011-04-04 Tom Tromey <tromey@redhat.com>
2745 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
2746 (do_captured_parse_breakpoint): Remove.
2747 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
2748 Use TRY_CATCH directly.
2750 2011-04-04 Tom Tromey <tromey@redhat.com>
2752 * symtab.h (free_symtab): Remove.
2753 (forget_cached_source_info_for_objfile): Declare.
2754 * symmisc.c (free_symtab): Remove.
2755 * source.c (forget_cached_source_info_for_objfile): New function.
2756 (forget_cached_source_info): Use it.
2757 * objfiles.c (free_objfile): Simplify check before calling
2758 clear_current_source_symtab_and_line. Call
2759 forget_cached_source_info_for_objfile.
2761 2011-04-04 Tom Tromey <tromey@redhat.com>
2763 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
2764 (new_symtab): Don't set `free_code' on symtab.
2765 (new_linetable): Properly handle size==0.
2766 * symtab.h (struct symtab) <free_code, free_func>: Remove.
2767 * symmisc.c (free_symtab): Don't free the linetable. Don't call
2769 * jv-lang.c (struct jv_per_objfile_data): New.
2770 (jv_per_objfile_free): Free the data.
2771 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2772 (get_java_class_symtab): Set the `dict' field on the
2773 jv_per_objfile_data.
2774 (free_class_block): Remove.
2775 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2778 2011-04-04 Tom Tromey <tromey@redhat.com>
2780 * symfile.c (reread_symbols): Update.
2781 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2783 * objfiles.c (allocate_objfile): Update.
2784 * cp-support.h (cp_check_possible_namespace_symbols): Don't
2786 * cp-namespace.c (lookup_symbol_file): Don't call
2787 lookup_possible_namespace_symbol.
2788 (initialize_namespace_symtab, get_possible_namespace_block)
2789 (free_namespace_block, cp_check_possible_namespace_symbols)
2790 (check_possible_namespace_symbols_loop)
2791 (check_one_possible_namespace_symbol)
2792 (lookup_possible_namespace_symbol): Remove.
2793 (maintenance_cplus_namespace): Replace with notice.
2794 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2796 2011-04-04 Tom Tromey <tromey@redhat.com>
2798 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2799 * symtab.h (struct symtab) <producer, debugformat>: Now const.
2800 * symmisc.c (free_symtab): Don't free debugformat.
2801 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2802 (record_debugformat, record_producer): Document.
2803 * buildsym.c (end_symtab): Don't save debugformat and producer
2805 (end_symtab): Don't free debugformat and producer fields.
2806 (record_debugformat): Don't call xstrdup.
2807 (record_producer): Likewise.
2809 2011-04-04 Tom Tromey <tromey@redhat.com>
2811 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2812 (source_line_charpos, source_charpos_line): Remove.
2814 2011-04-04 Tom Tromey <tromey@redhat.com>
2816 * symtab.h (domain_enum): Split in two...
2817 (enum search_domain): New.
2818 (search_symbols): Update.
2819 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2820 redundant declarations.
2821 (search_symbols): Change 'kind' argument to search_domain.
2823 (print_symbol_info): Likewise.
2824 (symtab_symbol_info): Likewise.
2825 * symfile.h (struct quick_symbol_functions)
2826 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2827 <expand_symtabs_matching>: Likewise.
2828 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2829 (expand_symtabs_matching_via_partial): Update.
2830 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2831 (dw2_expand_symtabs_for_function): Update.
2832 * block.h: Moved anonymous enum...
2833 * defs.h (enum block_enum): ... here. Now named.
2835 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2837 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2838 * version.in: Bump version to 7.3.50.20110403-cvs.
2840 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2842 * NEWS: Create a new section for the next release branch.
2843 Rename the section of the current branch, now that it has
2846 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2848 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2849 for "fpscr" in target description.
2851 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2853 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2854 initialize it. Delay HASH initialization. Strip the part after open
2855 parenthesis for languages with qualifiers. Call do_cleanups.
2857 2011-04-01 Tom Tromey <tromey@redhat.com>
2859 * utils.c (report_command_stats): Don't print `-' for negative
2862 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
2864 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2865 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2868 2011-04-01 Joel Brobecker <brobecker@adacore.com>
2870 * breakpoint.h (bpdisp_text): Add declaration.
2871 * breakpoint.c (bpdisp_text): Make non-static.
2872 * ada-lang.c: #include "mi/mi-common.h".
2873 (print_it_exception): Rewrite to improve GDB/MI output.
2875 2011-04-01 Pedro Alves <pedro@codesourcery.com>
2877 * arm-tdep.h (struct address_space): Add forward declaration.
2879 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2881 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2882 * arm-tdep.c (arm_override_mode): New global.
2883 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
2884 execution mode heuristics.
2885 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
2886 second single-step breakpoint if needed, using
2887 arm_insert_single_step_breakpoint.
2888 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
2889 ARM execution mode, do not call thumb_get_next_pc_raw.
2890 (arm_get_next_pc): Encode execution mode in return value. Call
2891 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
2892 (arm_insert_single_step_breakpoint): New function.
2893 (arm_software_single_step): Call it.
2894 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
2895 argument to return execution mode of sigreturn target.
2896 (arm_linux_syscall_next_pc): Use it.
2897 (arm_linux_copy_svc): Update call.
2898 (arm_linux_software_single_step): Call
2899 arm_insert_single_step_breakpoint.
2901 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2903 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
2906 2011-03-31 Tom Tromey <tromey@redhat.com>
2908 * varobj.c (update_dynamic_varobj_children): Properly handle
2909 errors from iterator.
2911 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2913 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
2914 struct linkage name twice.
2916 2011-03-31 Tom Tromey <tromey@redhat.com>
2918 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
2919 missing ">" to message.
2921 2011-03-31 Tom Tromey <tromey@redhat.com>
2923 * varobj.c (instantiate_pretty_printer): Remove duplicate
2926 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
2928 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
2929 if neither saved value nor register available (e.g. signal frame).
2931 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2933 * macroexp.c (expand): Avoid uninitialized variable
2936 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2938 * breakpoint.c (break_range_command): Fix typo in comment.
2940 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2941 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2943 Implement support for PowerPC BookE ranged breakpoints.
2944 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
2945 * breakpoint.h (struct bp_target_info) <length>: New member
2947 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
2948 instead of struct breakpoint as argument, and also add ASPACE
2949 and BP_ADDR arguments. Update all callers.
2950 (struct breakpoint_ops) <print_one_detail>: New method.
2951 (struct breakpoint) <addr_string_range_end>: New member variable.
2952 * breakpoint.c (breakpoint_location_address_match): Add function
2954 (insert_bp_location): Set bl->target_info.length.
2955 (breakpoint_here_p): Call breakpoint_location_address_match.
2956 (moribund_breakpoint_here_p): Likewise.
2957 (regular_breakpoint_inserted_here_p): Likewise.
2958 (breakpoint_thread_match): Likewise.
2959 (bpstat_stop_status): Likewise.
2960 (bpstat_check_location): Move call to
2961 breakpoint_ops.breakpoint_hit to the top.
2962 (print_one_breakpoint_location): Call
2963 breakpoint_ops.print_one_detail if available.
2964 (breakpoint_address_match_range): New function.
2965 (breakpoint_location_address_match): Likewise.
2966 (breakpoint_locations_match): Compare the length field of the
2968 (hw_breakpoint_used_count): Count resources used by all locations
2969 in a breakpoint, and use breakpoint_ops.resources_needed if
2971 (breakpoint_hit_ranged_breakpoint): New function.
2972 (resources_needed_ranged_breakpoint): Likewise.
2973 (print_it_ranged_breakpoint): Likewise.
2974 (print_one_ranged_breakpoint): Likewise.
2975 (print_one_detail_ranged_breakpoint): Likewise.
2976 (print_mention_ranged_breakpoint): Likewise.
2977 (print_recreate_ranged_breakpoint): Likewise.
2978 (ranged_breakpoint_ops): New structure.
2979 (find_breakpoint_range_end): New function.
2980 (break_range_command): Likewise.
2981 (delete_breakpoint): Free addr_string_range_end.
2982 (update_breakpoint_locations): Add SALS_END argument. Update
2983 all callers. Calculate breakpoint length if a non-zero SALS_END
2984 is given. Call breakpoint_locations_match instead of
2985 breakpoint_address_match.
2986 (reset_breakpoint): Find SaL of the end of the range if B is a
2988 (_initialize_breakpoint): Register break-range command.
2989 * defs.h (print_core_address): Add function prototype.
2990 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
2992 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
2993 (ppc_linux_remove_hw_breakpoint): Likewise.
2994 (_initialize_ppc_linux_nat): Initialize
2995 to_ranged_break_num_registers.
2996 * target.c (update_current_target): Add comment about
2997 to_ranged_break_num_registers.
2998 (target_ranged_break_num_registers): New function.
2999 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3001 (target_ranged_break_num_registers): Add function prototype.
3002 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
3003 * utils.c (print_core_address): ... here.
3005 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
3007 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
3008 variable compiler warning.
3010 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
3012 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
3014 (re_set_breakpoint): ... to here ...
3015 (addr_string_to_sals): ... and here.
3017 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
3019 * Makefile.in (SFILES): Add missing C sources.
3020 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
3021 Add missing headers.
3023 2011-03-29 Mike Frysinger <vapier@gentoo.org>
3025 * .gitignore: New file.
3027 2011-03-29 Mike Frysinger <vapier@gentoo.org>
3029 * NEWS: Mention new cfi device simulation.
3031 2011-03-29 Tom Tromey <tromey@redhat.com>
3033 * dwarf2read.c (fixup_partial_die): Handle linkage name on
3034 otherwise anonymous types.
3035 (dwarf2_name): Likewise.
3036 * valops.c (value_struct_elt_for_reference): Refine artificial
3037 type logic. Call error if j==-1.
3039 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
3041 Fix false GCC warning.
3042 * infcall.c (find_function_addr): Initialize funaddr.
3044 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
3046 Fix mingw compilation with --enable-targets=all.
3047 * remote-mips.c (gdb_usleep.h): Include header.
3048 (mips_enter_debug): Use gdb_usleep instead of sleep.
3050 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3052 Support resolution of STT_GNU_IFUNC via breakpoints.
3053 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
3054 bp_gnu_ifunc_resolver_return.
3055 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
3056 the loop. Support bp_gnu_ifunc_resolver and
3057 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
3058 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
3060 (bptype_string, print_one_breakpoint_location): Support
3061 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
3062 (user_settable_breakpoint): Return true also for
3063 bp_gnu_ifunc_resolver.
3064 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
3065 bp_gnu_ifunc_resolver_return.
3066 (set_breakpoint_location_function): New parameter explicit_loc,
3067 describe it. Call find_pc_partial_function_gnu_ifunc with new
3068 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
3069 EXPLICIT_LOC is not set.
3070 (set_raw_breakpoint): Set EXPLICIT_LOC for
3071 set_breakpoint_location_function.
3072 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
3073 set_breakpoint_location_function.
3074 (mention): Support bp_gnu_ifunc_resolver and
3075 bp_gnu_ifunc_resolver_return.
3076 (add_location_to_breakpoint): Set EXPLICIT_LOC for
3077 set_breakpoint_location_function.
3078 (update_breakpoint_locations): Remove static.
3079 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
3080 bp_gnu_ifunc_resolver_return.
3081 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
3082 bp_gnu_ifunc_resolver_return.
3083 (update_breakpoint_locations): New declaration.
3084 * elfread.c: Include gdbthread.h and regcache.h.
3085 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
3087 (elf_gnu_ifunc_fns): Install them.
3088 * minsyms.c (stub_gnu_ifunc_resolver_stop)
3089 (stub_gnu_ifunc_resolver_return_stop): New functions.
3090 (stub_gnu_ifunc_fns): Install them.
3091 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
3092 and gnu_ifunc_resolver_return_stop.
3093 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
3095 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3097 STT_GNU_IFUNC reader implementation.
3098 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
3099 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
3100 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
3101 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
3102 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
3103 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
3104 (elf_gnu_ifunc_resolve_addr): New.
3105 (elf_symfile_read): Call elf_rel_plt_read.
3106 (elf_gnu_ifunc_fns): New.
3107 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
3108 Install elf_gnu_ifunc_fns.
3109 * infcall.c (find_function_return_type): New function.
3110 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
3111 * minsyms.c (stub_gnu_ifunc_resolve_addr)
3112 (stub_gnu_ifunc_resolve_name): New functions.
3113 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
3114 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
3115 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
3117 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3119 Code cleanup for later STT_GNU_IFUNC support.
3120 * infcall.c (find_function_addr): Remove variable code, use explicit
3121 dereferences for it. Move VALUE_TYPE initialization later.
3123 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3125 GDB find_pc_partial_function support for STT_GNU_IFUNC.
3126 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
3127 (clear_pc_function_cache): Clear it.
3128 (find_pc_partial_function): Rename to ...
3129 (find_pc_partial_function_gnu_ifunc): ... this function. New
3130 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
3131 (find_pc_partial_function): New wrapper for this function.
3132 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
3134 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3136 GDB internal type support for STT_GNU_IFUNC.
3137 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
3138 (elf_symtab_read): Set mst_text_gnu_ifunc for
3139 BSF_GNU_INDIRECT_FUNCTION.
3140 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
3141 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
3142 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
3143 nodebug_got_plt_symbol.
3144 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
3145 (TYPE_GNU_IFUNC): New.
3146 (struct main_type): New field flag_gnu_ifunc.
3147 (struct builtin_type): New field builtin_func_func.
3148 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
3149 nodebug_got_plt_symbol.
3150 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
3151 (in_gnu_ifunc_stub): New.
3152 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
3154 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
3155 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
3156 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
3158 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
3159 * symtab.c (search_symbols): Likewise.
3160 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
3161 and mst_slot_got_plt.
3162 (in_gnu_ifunc_stub): New declaration.
3164 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3166 Support a ring of related breakpoints.
3167 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
3168 other functions, add gdb_assert.
3169 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
3170 watchpoint_del_at_next_stop.
3171 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
3172 (bpstat_stop_status): Handle ring in related_breakpoint.
3173 (set_raw_breakpoint_without_location): Initialize ring in
3175 (delete_breakpoint): Handle ring in related_breakpoint, use
3176 watchpoint_del_at_next_stop.
3177 (map_breakpoint_numbers): Handle ring in related_breakpoint.
3179 2011-03-28 Tom Tromey <tromey@redhat.com>
3182 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
3183 with `language_minimal'.
3185 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
3187 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
3188 instead of checking for STT_ARM_TFUNC symbol type.
3190 2011-03-25 Tom Tromey <tromey@redhat.com>
3192 * linespec.c (symbol_found): Restore line-based result for
3193 non-LOC_LABEL symbols.
3195 2011-03-25 Kai Tietz <ktietz@redhat.com>
3197 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
3198 instead of strcmp for comparison.
3199 (tui_source_is_displayed): Likewise.
3200 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
3202 2011-03-24 Mark Wielaard <mjw@redhat.com>
3204 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
3206 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
3207 (find_partial_die_in_comp_unit): Likewise in comment.
3208 (read_attribute_value): Likewise.
3209 (lookup_die_type): Likewise.
3210 (dwarf_form_name): Likewise.
3211 (dump_die_shallow): Likewise.
3212 (follow_die_ref_or_sig): Likewise.
3214 2011-03-24 Tom Tromey <tromey@redhat.com>
3216 PR breakpoints/11816:
3217 * linespec.c (decode_line_1): Parse `function:label' linespecs.
3218 (decode_compound): Update.
3219 (find_function_symbol): New function.
3220 (decode_dollar): Update.
3221 (decode_label): Add 'function_symbol' parameter. Handle
3222 function-relative labels.
3223 (decode_variable): Update.
3224 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
3225 not its line. Set `special_display' and canonical name for
3228 2011-03-24 Tom Tromey <tromey@redhat.com>
3230 * linespec.h (struct linespec_result) <special_display>: New
3232 * breakpoint.h (struct breakpoint) <display_canonical>: New
3234 * breakpoint.c (print_breakpoint_location): Respect
3236 (create_breakpoint_sal): Add 'display_canonical' parameter.
3237 (create_breakpoints_sal): Update.
3238 (create_breakpoint): Update.
3240 2011-03-24 Tom Tromey <tromey@redhat.com>
3242 * symtab.c (decode_line_spec): Update.
3243 * linespec.c (build_canonical_line_spec): Change type of
3245 (decode_line_2, decode_line_1, decode_objc, decode_compound)
3246 (find_method, decode_all_digits, decode_dollar, decode_label)
3247 (symbol_found): Likewise.
3248 (init_linespec_result): New function.
3249 * breakpoint.c (struct captured_parse_breakpoint_args)
3250 <canonical_p>: New field, replaces addr_string_p.
3251 (create_breakpoints_sal): Add 'canonical' parameter, replacing
3253 (parse_breakpoint_sals): Likewise.
3254 (do_captured_parse_breakpoint): Update.
3255 (create_breakpoint): Use struct linespec_result.
3256 (until_break_command): Update.
3257 (breakpoint_re_set_one): Update.
3258 (decode_line_spec_1): Update.
3259 * linespec.h (struct linespec_result): New.
3260 (init_linespec_result): Declare.
3262 2011-03-23 Pedro Alves <pedro@codesourcery.com>
3264 * regcache.c (regcache_raw_read): If the target didn't supply a
3265 given raw register, mark it as unavailable.
3267 2011-03-23 Kai Tietz <ktietz@redhat.com>
3269 * breakpoint.c (clear_command): Use filename_cmp
3270 instead of strcmp for comparison.
3271 * buildsym.c (watch_main_source_file_lossage): Likewise.
3272 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
3273 checking just for slash.
3274 * dbxread.c (read_dbx_symtab): Use lbasename instead of
3275 strrchr and filename_cmp instead of strcmp for filenames.
3276 (add_old_header_file): Use filename_cmp
3277 instead of strcmp for comparison.
3278 * exec.c (exec_set_section_address): Likewise.
3279 * macrotab.c (macro_lookup_inclusion): Likewise.
3280 (macro_lookup_inclusion): Likewise.
3281 * elfread.c (_initialize_elfread): Likewise.
3282 (elfstab_offset_sections): Likewise.
3283 (elfstab_offset_sections): Use lbasename instead of
3285 * mdebugread.c (parse_partial_symbols): Likewise.
3286 (arse_partial_symbols): Use filename_(n)cmp instead of
3287 str(n)cmp for comparison.
3288 * minsyms.c (lookup_minimal_symbol): Likewise.
3289 * psymtab.c (read_psymtabs_with_filename): Likewise.
3290 * solib.c (solib_read_symbols): Likewise.
3291 (reload_shared_libraries_1): Likewise.
3292 * symmisc.c (maintenance_print_symbols): Likewise.
3293 * symfile.c (separate_debug_file_exists): Likewise.
3294 (reread_symbols): Likewise.
3295 (find_separate_debug_file_by_debuglink): Likewise.
3296 * remote-fileio.c (remote_fileio_func_rename): Likewise.
3297 * source.c (add_path): Likewise.
3298 * symtab.c (filename_seen): Likewise.
3299 (file_matches): Likewise.
3300 (print_symbol_info): Likewise.
3301 (maybe_add_partial_symtab_filename): Likewise.
3302 (make_source_files_completion_list): Likewise.
3303 * xml-syscall.c (init_sysinfo): Likewise.
3304 * windows-nat.c (_initialize_check_for_gdb_ini): Use
3305 IS_DIR_SEPARATOR for checking for trailing path separator.
3307 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3309 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
3310 label abort_expression.
3311 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
3312 DWARF_VALUE_OPTIMIZED_OUT.
3314 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3317 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
3318 to linkage_name. Invert its value. Update the function comment.
3319 (c_type_print_varspec_suffix): Invert it at the caller.
3320 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
3322 2011-03-22 Pedro Alves <pedro@codesourcery.com>
3324 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
3325 errors when reading the `stop_pc'.
3326 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
3329 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3331 * NEWS: Document gdb.Write stream keyword.
3333 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3336 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3337 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3338 (dwarf2_add_field): Fix new_field->accessibility for
3339 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3341 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3345 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
3346 other error classes. Do not print stack trace.
3348 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3350 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3351 (dwarf2_add_field): Fix new_field->accessibility for
3352 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3354 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
3356 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
3357 encountering a load via a non-SP register.
3359 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
3361 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
3362 field in returned unwinder.
3364 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3366 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
3368 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3370 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
3373 2012-03-18 Pedro Alves <pedro@codesourcery.com>
3375 * frame.c (frame_unwind_register): Throw an error if unwinding the
3377 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
3378 an unwind stop reason.
3379 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
3380 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
3381 UNWIND_UNAVAILABLE>: New.
3382 * inline-frame.c (inline_frame_unwind): Install
3383 default_frame_unwind_stop_reason.
3384 * frame-unwind.c: Include "exceptions.h".
3385 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
3386 (default_frame_unwind_stop_reason): New.
3387 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
3388 (default_frame_unwind_stop_reason): Declare.
3389 (struct frame_unwind) <stop_reason>: New function pointer.
3391 * dummy-frame.c: Install default_frame_unwind_stop_reason.
3392 * dwarf2-frame.c: Include exceptions.h.
3393 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
3394 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
3395 computing the CFA. If such an error was thrown, set
3396 unavailable_retaddr.
3397 (dwarf2_frame_unwind_stop_reason): New.
3398 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
3400 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
3401 (dwarf2_signal_frame_unwind): Ditto.
3403 * amd64-tdep.c: Include "exceptions.h".
3404 (struct amd64_frame_cache): New field "base_p".
3405 (amd64_init_frame_cache): Clear it.
3406 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
3407 Avoid reading registers with functions that throw if the register
3408 is not necessary to compute the frame base.
3409 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3410 swallowing NOT_AVAILABLE_ERROR.
3411 (amd64_frame_unwind_stop_reason): New.
3412 (amd64_frame_this_id): Don't build a frame id if the frame base
3414 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
3415 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3416 base_p if the frame base was computable.
3417 (amd64_sigtramp_frame_unwind_stop_reason): New.
3418 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
3419 frame base was unavailable.
3420 (amd64_sigtramp_frame_unwind): Install
3421 amd64_sigtramp_frame_unwind_stop_reason.
3422 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3423 base_p if the frame base was computable.
3424 (amd64_epilogue_frame_unwind_stop_reason): New.
3425 (amd64_epilogue_frame_this_id): Don't build a frame id if the
3426 frame base was unavailable.
3427 (amd64_epilogue_frame_unwind): Install
3428 amd64_epilogue_frame_unwind_stop_reason.
3429 * i386-tdep.c: Include "exceptions.h".
3430 (struct i386_frame_cache): New field "base_p".
3431 (i386_init_frame_cache): Clear it.
3432 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
3433 Avoid reading registers with functions that throw if the register
3434 is not necessary to compute the frame base.
3435 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3436 swallowing NOT_AVAILABLE_ERROR.
3437 (i386_frame_unwind_stop_reason): New.
3438 (i386_frame_this_id): Don't build a frame id if the frame base was
3440 (i386_frame_prev_register): Handle unavailable SP.
3441 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
3442 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3443 base_p if the frame base was computable.
3444 (i386_epilogue_frame_unwind_stop_reason): New.
3445 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
3446 base was unavailable.
3447 (i386_epilogue_frame_unwind): Install
3448 i386_epilogue_frame_unwind_stop_reason.
3449 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3450 base_p if the frame base was computable.
3451 (i386_sigtramp_frame_unwind_stop_reason): New.
3452 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
3453 base was unavailable.
3454 (i386_sigtramp_frame_unwind): Install
3455 i386_sigtramp_frame_unwind_stop_reason.
3456 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
3457 type's size, not the register's.
3458 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
3460 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
3461 default_frame_unwind_stop_reason.
3462 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
3463 (alpha_heuristic_frame_unwind): Ditto.
3464 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
3465 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
3466 * avr-tdep.c (avr_frame_unwind): Ditto.
3467 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
3469 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
3470 * frv-tdep.c (frv_frame_unwind): Ditto.
3471 * h8300-tdep.c (h8300_frame_unwind): Ditto.
3472 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
3473 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
3474 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
3475 (hppa_stub_frame_unwind): Ditto.
3476 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
3477 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
3478 (ia64_libunwind_frame_unwind)
3479 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
3480 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
3481 * lm32-tdep.c (lm32_frame_unwind): Ditto.
3482 * m32c-tdep.c (m32c_unwind): Ditto.
3483 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
3484 * m32r-tdep.c (m32r_frame_unwind): Ditto.
3485 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
3486 * m68k-tdep.c (m68k_frame_unwind): Ditto.
3487 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
3488 * m88k-tdep.c (m88k_frame_unwind): Ditto.
3489 * mep-tdep.c (mep_frame_unwind): Ditto.
3490 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
3491 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
3492 (mips_stub_frame_unwind): Ditto.
3493 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
3494 * moxie-tdep.c (moxie_frame_unwind): Ditto.
3495 * mt-tdep.c (mt_frame_unwind): Ditto.
3496 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
3497 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
3498 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
3499 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
3500 (s390_sigtramp_frame_unwind): Ditto.
3501 * score-tdep.c (score_prologue_unwind): Ditto.
3502 * sh-tdep.c (sh_frame_unwind): Ditto.
3503 * sh64-tdep.c (sh64_frame_unwind): Ditto.
3504 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
3505 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
3506 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
3507 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
3508 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
3509 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
3510 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
3511 (sparc64obsd_trapframe_unwind): Ditto.
3512 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
3513 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
3514 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
3515 * v850-tdep.c (v850_frame_unwind): Ditto.
3516 * vax-tdep.c (vax_frame_unwind): Ditto.
3517 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
3518 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
3519 * xtensa-tdep.c (xtensa_unwind): Ditto.
3521 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3523 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
3524 there's always a frame. Use get_frame_pc_if_available instead of
3525 get_frame_pc, and if there's no PC available, don't look up a
3528 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3530 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
3533 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3535 * tracepoint.c (set_traceframe_context): Handle unavailable PC
3538 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3540 * frame.h (frame_unwind_caller_pc_if_available): Declare.
3541 * frame.c (frame_unwind_caller_pc_if_available): New.
3542 * stack.c (frame_info): Handle unavailable PC.
3544 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3546 * frame.c (frame_unwind_pc): Rename to ...
3547 (frame_unwind_pc_if_available): ... this. New `pc' output
3548 parameter. Change return type to int. Gracefully handle
3549 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
3550 happened, or 1 otherwise.
3551 (frame_unwind_pc): Reimplement on top of
3552 frame_unwind_pc_if_available.
3553 (get_frame_func): Rename to ...
3554 (get_frame_func_if_available): New `pc' output parameter. Change
3555 return type to int. Gracefully handle the PC not being available.
3556 (get_frame_func): Reimplement on top of
3557 get_frame_func_if_available.
3558 (select_frame): Handle the PC being unavailable.
3559 (get_prev_frame): Handle the PC being unavailable.
3560 (get_frame_pc_if_available): New.
3561 (get_frame_address_in_block_if_available): New.
3562 (find_frame_sal): Handle the frame PC not being available.
3563 * frame.h (get_frame_pc_if_available): Declare.
3564 (get_frame_address_in_block_if_available): Declare.
3565 (get_frame_func_if_available): Declare.
3566 * stack.c (print_frame_info): Handle the PC being unavailable.
3567 (find_frame_funname): Ditto.
3568 (print_frame): Handle the PC being unavailable.
3569 (get_frame_language): Ditto.
3570 * blockframe.c (get_frame_block): Ditto.
3571 * macroscope.c (default_macro_scope): Ditto.
3572 * tui/tui-stack.c (tui_show_frame_info): Ditto.
3574 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3576 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
3577 NOT_AVAILABLE_ERROR when evaluating the location expression.
3579 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3581 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
3582 returning that the register piece is unavailable/optimized out.
3583 (write_pieced_value): Handle get_frame_register_bytes returning
3584 that the register piece is unavailable/optimized out when doing a
3585 read-modify write of a bitfield.
3586 * findvar.c (value_from_register): Handle get_frame_register_bytes
3587 returning that the register piece is unavailable/optimized out.
3588 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
3589 and `unavailablep'. Throw error on bad debug info. Use
3590 frame_register instead of frame_register_read, to fill in the new
3592 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
3594 * valops.c: (value_assign): Adjust, and handle
3595 get_frame_register_bytes failing.
3596 * spu-tdep.c: Include exceptions.h.
3597 (spu_software_single_step): Adjust, and handle
3598 get_frame_register_bytes failing.
3599 (spu_get_longjmp_target): Ditto.
3600 * gdbarch.sh (register_to_value): Change to return int. New
3601 parameters `optimizedp' and `unavailablep'.
3602 * gdbarch.h, gdbarch.c: Regenerate.
3603 * i386-tdep.c (i386_register_to_value): Adjust to new
3604 gdbarch_register_to_value interface.
3605 * i387-tdep.c (i387_register_to_value): Ditto.
3606 * i387-tdep.h (i387_register_to_value): Ditto.
3607 * alpha-tdep.c (alpha_register_to_value): Ditto.
3608 * ia64-tdep.c (ia64_register_to_value): Ditto.
3609 * m68k-tdep.c (m68k_register_to_value): Ditto.
3610 * mips-tdep.c (mips_register_to_value): Ditto.
3611 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
3613 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3615 * findvar.c (value_of_register): Mark the value as unavailable, if
3616 the register is unavailable.
3617 * frame.h (frame_register_unwind): New `unavailablep' parameter.
3618 (frame_register): New `unavailablep' parameter.
3619 (frame_register_read): Update comment.
3620 * frame.c (frame_register_unwind): New `unavailablep' parameter.
3621 Set it if the register is unavailable. If the register is
3622 unavailable, clear the output buffer.
3623 (frame_register): New `unavailablep' parameter. Pass it down.
3624 (frame_unwind_register): Adjust.
3625 (put_frame_register): Adjust.
3626 (frame_register_read): Adjust. Also return false if the register
3628 (frame_register_unwind_location): Adjust.
3629 * sentinel-frame.c (sentinel_frame_prev_register): If the register
3630 is unavailable, mark the value accordingly.
3631 * stack.c (frame_info): Handle unavailable registers.
3633 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3635 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
3636 simplify, using regcache_cooked_read.
3638 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3640 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
3641 (regcache_raw_read_unsigned, regcache_raw_read_signed)
3642 (regcache_raw_read_unsigned, regcache_raw_read_part)
3643 (regcache_cooked_read, regcache_cooked_read_signed)
3644 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
3645 (regcache_cooked_read_ftype): Change return to enum
3647 * regcache.c: Include exceptions.h
3648 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
3649 (do_cooked_read): Change return to enum register_status. Always
3650 forward to regcache_cooked_read.
3651 (regcache_raw_read): Change return to enum register_status. If
3652 the register is not REG_VALID, memset the buffer. Return the
3654 (regcache_raw_read_signed): Handle non-REG_VALID registers and
3655 return the register's status.
3656 (regcache_raw_read_unsigned): Ditto.
3657 (regcache_cooked_read): Change return to enum register_status.
3658 Assert that with read-only regcaches, the register's status must
3659 be known. If the regcache is read-only, and the register is not
3660 REG_VALID, memset the buffer. Return the register's status.
3661 (regcache_cooked_read_signed): Change return to enum
3662 register_status. Handle non-REG_VALID registers and return the
3664 (regcache_cooked_read_unsigned): Change return to enum
3665 register_status. Handle non-REG_VALID registers and return the
3667 (regcache_xfer_part, regcache_raw_read_part)
3668 (regcache_cooked_read_part): Change return to enum
3669 register_status. Return the register's status.
3670 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
3672 (regcache_dump): Handle unavailable cooked registers.
3673 * frame.c (do_frame_register_read): Adjust interface to match
3674 regcache_cooked_read_ftype.
3675 * gdbarch.sh (pseudo_register_read): Change return to enum
3677 * gdbarch.h, gdbarch.c: Regenerate.
3679 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
3681 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
3682 register_status. If reading a raw register indicates the raw
3683 register is not valid, return the raw register's status,
3684 otherwise, return REG_VALID.
3685 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
3686 register_status. Handle non-REG_VALID raw registers and return
3687 the register's status.
3688 * arm-tdep.c (arm_neon_quad_read)
3689 (arm_pseudo_read): Change return to enum register_status. Handle
3690 non-REG_VALID raw registers and return the register's status.
3691 * avr-tdep.c (avr_pseudo_register_read): Ditto.
3692 * frv-tdep.c (frv_pseudo_register_read): Ditto.
3693 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
3694 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
3695 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
3697 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
3698 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
3699 (m32c_part_write, m32c_cat_read, m32c_cat_write)
3700 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
3701 (m32c_pseudo_register_read): Change return to enum
3702 register_status. Adjust.
3703 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
3704 enum register_status. Return the register's status.
3705 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
3706 register_status. Return the register's status.
3707 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
3708 * mips-tdep.c (mips_pseudo_register_read): Ditto.
3709 * mt-tdep.c (mt_pseudo_register_read): Ditto.
3710 * rs6000-tdep.c (move_ev_register_func): New typedef.
3711 (e500_move_ev_register): Use it. Change return to enum
3712 register_status. Return the register's status.
3713 (do_regcache_raw_read): New function.
3714 (do_regcache_raw_write): New function.
3715 (e500_pseudo_register_read): Change return to enum
3716 register_status. Return the register's status. Use
3717 do_regcache_raw_read.
3718 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
3719 (dfp_pseudo_register_read): Change return to enum register_status.
3720 Return the register's status.
3721 (vsx_pseudo_register_read): Ditto.
3722 (efpr_pseudo_register_read): Ditto.
3723 (rs6000_pseudo_register_read): Ditto.
3724 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
3725 register_status. Return the register's status.
3726 * sh64-tdep.c (pseudo_register_read_portions): New function.
3727 (sh64_pseudo_register_read): Change return to enum
3728 register_status. Use pseudo_register_read_portions. Return the
3730 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
3731 register_status. Return the register's status.
3732 * sh-tdep.c (pseudo_register_read_portions): New function.
3733 (sh_pseudo_register_read): Change return to enum register_status.
3734 Use pseudo_register_read_portions. Return the register's status.
3735 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
3736 enum register_status. Return the register's status.
3737 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
3738 * spu-tdep.c (spu_pseudo_register_read_spu)
3739 (spu_pseudo_register_read): Ditto.
3740 * xtensa-tdep.c (xtensa_register_read_masked)
3741 (xtensa_pseudo_register_read): Ditto.
3742 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
3744 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3746 * python/py-value.c (valpy_getitem): Fix formatting of error function
3749 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3751 ARI fixes: Add missing internationalization markups throughout
3753 * darwin-nat-info.c: Ditto.
3756 * mi/mi-main.c: Ditto.
3758 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3760 ARI fixes: Add missing internationalization markups throughout
3763 * cp-name-parser.y: Ditto.
3766 * objc-exp.y: Ditto.
3769 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3771 ARI fixes: Messages should have no trailing new lines.
3772 * darwin-nat.c (mach_check_error): Remove trailing new line from
3773 warning function call message.
3774 * record.c (bfdcore_read): Idem for error call.
3776 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3778 * common/signals.c (target_signal_from_host): Add _ markup to error
3779 function call message.
3780 (target_signal_to_host): Add _ markup and remove trailing new line
3781 from warning call message.
3782 (target_signal_from_command): Add _ markup to error function call
3785 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
3789 * python/python.c (gdbpy_write): Accept a stream argument and
3790 operate to the appropriate stream.
3791 (gdbpy_flush): Likewise.
3792 (_initialize_python): Add stream constants.
3793 (finish_python_initialization): Add GdbOutputErrorFile class.
3795 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3797 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3799 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3801 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
3802 to store_signed_integer. Add debug message when relocating CALL
3803 instructions. Fix formatting of debug message.
3804 * i386-tdep.c (i386_relocate_instruction): Ditto.
3806 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3808 * target.h (struct target_ops): Remove to_lookup_symbol field.
3809 (target_lookup_symbol): Delete macro.
3810 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3811 (update_current_target, setup_target_debug): Remove handling
3812 of to_lookup_symbol target_ops field.
3813 * ada-tasks.c (get_known_tasks_addr): Remove use of
3814 target_lookup_symbol.
3815 * coffread.c (coff_symtab_read): Likewise.
3816 * dbxread.c (read_dbx_symtab): Ditto.
3818 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3821 * configure.ac: Add getthrds declaration check.
3822 * configure, config.in: Regenerate.
3823 * aix-thread.c (getthrds): Declare only if not already declared
3824 in procinfo.h. More declaration out of get_signaled_thread to
3827 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
3829 * python/py-symtab.c: Populate symtab_object_methods,
3831 (stpy_is_valid): New function.
3832 (salpy_is_valid): Ditto.
3833 * python/py-symbol.c: Declare symbol_object_methods. Populate.
3834 (sympy_is_valid): New function.
3835 * python/py-objfile.c: Declare objfile_object_methods. Populate.
3836 (objfpy_is_valid): New function.
3837 * python/py-inferior.c: Populate inferior_object_methods.
3838 (infpy_is_valid): New function.
3839 * python/py-infthread.c: Populate thread_object_methods.
3840 (thpy_is_valid): New function.
3841 * python/py-block.c: Declare block_object_methods. Populate. Declare
3842 block_iterator_object_methods. Populate.
3843 (blpy_is_valid): New function.
3844 (blpy_iter_is_valid): Ditto.
3846 2011-03-16 Keith Seitz <keiths@redhat.com>
3848 * linespec.c (find_methods): Canonicalize NAME before looking
3850 (name_end): New function.
3851 (keep_name_info): New function.
3852 (decode_line_1): Use keep_name_info.
3853 (decode_compound): Likewise.
3854 * cli/cli-utils.h (remove_trailing_whitespace): New function.
3855 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3858 * linespec.c (locate_first_half): Keep overload information, too.
3859 (decode_compound): Use a string to represent break characters
3861 If P points to a break character, do not increment it.
3862 For C++ and Java, keep overload information and relevant keywords.
3863 If we cannot find a symbol, search the minimal symbols.
3866 * linespec.c (decode_compound): Rename SAVED_ARG to
3868 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3870 Pass a valid block to lookup_symbol.
3871 (lookup_prefix_sym): Likewise.
3872 (find_method): Construct search name based on SYM_CLASS instead
3874 * psymtab.c (lookup_partial_symbol): Add language parameter.
3875 (lookup_symbol_aux_psymtabs): Likewise.
3876 Don't assume that the psymtab we found was the right one. Search
3877 for the desired symbol in the symtab to be certain.
3878 (psymtab_search_name): New function.
3879 (lookup_partial_symbol): Use psymtab_search_name.
3880 Add language parameter.
3881 (read_symtabs_for_function): Add language parameter and pass to
3882 lookup_partial_symbol.
3883 (find_symbol_file_from_partial): Likewise.
3885 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3888 * dwarf2read.c (noop_record_line): New function.
3889 (dwarf_decode_lines): Ignore line tables for GCd functions.
3891 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3893 Fix ARI warnings about new lines at the end of messages, which
3894 are unneeded as there is a new line added at the end of the message
3896 * darwin-nat.c (darwin_stop_inferior): Ditto.
3897 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
3898 * dfp.c (decimal_to_number): Ditto.
3899 * exec.c (print_section_info): Ditto.
3900 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
3901 * osdata.c (get_osdata): Ditto.
3902 * record.c (bfdcore_write): Ditto.
3903 * remote-mips.c (mips_readchar): Ditto.
3904 * remote.c (read_ptid): Ditto.
3905 * ser-mingw.c (ser_windows_raw): Ditto.
3906 * tracepoint.c (add_local_symbols): Ditto.
3907 * windows-nat.c (fake_create_process): Ditto.
3909 2011-03-16 Tom Tromey <tromey@redhat.com>
3911 * tracepoint.c (stop_tracing): Don't declare.
3912 * event-top.c (after_char_processing_hook): Add `(void)'.
3914 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
3916 * NEWS: Add Parameter sub-classing description.
3918 2011-03-16 Kai Tietz <ktietz@redhat.com>
3920 * MAINTAINERS: Update my e-mail address.
3922 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
3924 * MAINTAINERS: Add myself for write after approval privileges.
3926 2011-03-15 Michael Snyder <msnyder@vmware.com>
3928 * frame.c (find_frame_sal): Assert sym is not null.
3930 * dbxread.c (process_one_symbol): Assert 'name' is not null.
3932 * objc-lang.c (selectors_info): Check strchr for null result.
3934 * stabsread.c (define_symbol): Guard against bad stabstring input.
3936 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3938 Remove trailing spaces and tabulations from pascal language
3943 p-valprint.c: Ditto.
3945 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3947 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
3948 than LOW. Comment it.
3949 (read_partial_die): Call complaint for inappropriate zero LOWPC or
3950 HIGHPC not strictly higher than LOWPC.
3952 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3954 Fix formatting of function declarations returning a pointer in
3956 * varobj.c (varobj_add_child): Ditto.
3957 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
3958 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
3960 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3962 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
3963 for the "generic" vector ABI used with GCC 4.3 and later.
3964 (ppc64_sysv_abi_return_value): Likewise.
3966 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3968 * infcall.c (call_function_by_hand): Function return value is
3969 always a non_lval, even when using struct_return.
3971 2011-03-15 Pedro Alves <pedro@codesourcery.com>
3973 * printcmd.c (ALL_DISPLAYS_SAFE): New.
3974 (map_display_numbers): New.
3975 (do_delete_display): New.
3976 (undisplay_command): Use map_display_numbers.
3977 (do_enable_disable_display): New.
3978 (enable_disable_display_command): New function.
3979 (enable_display): Delete.
3980 (enable_display_command): New.
3981 (disable_display_command): Reimplement.
3982 (_initialize_printcmd): Adjust "enable display" command to use
3983 `enable_display_command' as callback.
3985 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3987 * NEWS: Add Python breakpoint 'stop' operation.
3989 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3991 * NEWS: Delete duplicate entry. Fix typo.
3993 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3995 Fix ARI warning about function names in first column.
3996 Put prototype declaration on same line as return type.
3997 * objc-exp.y: Ditto.
3999 * python/py-stopevent.h: Ditto.
4000 For long function names, split parameters to
4001 allow function name on same line as return type.
4002 * solib-pa64.c: Ditto.
4005 For long function declaration, use single line.
4006 * hppa-tdep.h: Ditto.
4007 * inferior.h: Ditto.
4009 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4011 * python/python.h: Declare gdbpy_should_stop and
4012 gdbpy_breakpoint_has_py_cond.
4013 * python/python.c: Add python.h to includes. Remove python.h from
4014 HAVE_PYTHON definition
4015 (gdbpy_should_stop): New dummy function.
4016 (gdbpy_breakpoint_has_py_cond): New dummy function.
4017 * python/py-breakpoint.c (bppy_init): Rewrite to allow
4018 sub-classing capabilities.
4019 (gdbpy_should_stop): New function.
4020 (gdbpy_breakpoint_has_py_cond): New function.
4021 (local_setattro): New function.
4022 * breakpoint.c (condition_command): Add check for Python 'stop'
4024 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
4025 operation function as part of stop/continue tests.
4027 2011-03-14 Tom Tromey <tromey@redhat.com>
4030 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
4031 (needs_frame_dwarf_call): Likewise.
4033 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
4035 Fix ARI warning about functions without parameters that do not
4037 * breakpoint.c (all_tracepoints): Replace () by (void).
4038 * f-exp.y (match_string_literal): Ditto.
4040 * m2-exp.y (yylex): Ditto.
4041 * mep-tdep.c (current_me_module): Ditto.
4042 (current_options): Ditto.
4043 (current_cop_data_bus_width): Ditto.
4044 (current_cr_names): Ditto.
4045 (current_cr_is_float): Ditto.
4046 (current_ccr_names): Ditto.
4047 * objc-exp.y (yylex): Ditto.
4048 * p-exp.y (yylex): Ditto.
4049 * remote.c (send_interrupt_sequence): Ditto.
4050 * tracepoint.c (current_trace_status): Ditto.
4051 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
4052 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
4054 2011-03-11 Michael Snyder <msnyder@vmware.com>
4056 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
4057 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
4058 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
4059 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
4060 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
4062 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
4063 (delete_async_event_handler): Ditto.
4065 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
4067 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
4069 * top.c (set_verbose): Assert showcmd was found.
4071 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
4073 * xtensa-tdep.c (warning_once): Correct style issues.
4075 2011-03-11 Yao Qi <yao@codesourcery.com>
4077 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
4079 2011-03-11 Andreas Schwab <schwab@redhat.com>
4081 * common/aclocal.m4: Remove.
4083 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4085 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
4086 (xtensa_write_register, xtensa_read_register): Likewise.
4087 (xtensa_hextochar): Removed.
4088 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
4090 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4092 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
4093 (xtensa_call0_frame_cache_t): Update comments. New fields added.
4094 (xtensa_alloc_frame_cache): Add initialization for new fields.
4095 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
4096 (warning_once): New function.
4097 (xtensa_insn_kind): New item c0opc_and.
4098 (call0_classify_opcode): Add the case for AND instruction.
4099 (call0_track_op): Change arguments. New local variable litbase.
4100 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
4101 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
4103 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
4104 (call0_analyze_prologue): Update the comments. Change arguments.
4105 Add the variety of updates to handle extended prologues, which now can
4106 conduct dynamic stack adjustments.
4107 (call0_frame_cache): Likewise.
4108 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
4109 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
4111 2011-03-10 Michael Snyder <msnyder@vmware.com>
4113 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
4114 (cmd_qtframe): Ditto.
4115 (cmd_qtbuffer): Ditto.
4116 (cmd_bigqtbuffer): Ditto.
4118 2011-03-10 Tom Tromey <tromey@redhat.com>
4120 * tracepoint.c (trace_actions_command): Update.
4121 * thread.c (thread_apply_command): Update.
4122 * reverse.c (delete_bookmark_command): Update.
4123 (bookmarks_info): Update.
4124 * printcmd.c (undisplay_command): Update.
4125 * memattr.c (mem_enable_command): Update.
4126 (mem_disable_command): Update.
4127 (mem_delete_command): Update.
4128 * inferior.c (detach_inferior_command): Update.
4129 (kill_inferior_command): Update.
4130 (remove_inferior_command): Update.
4131 * cli/cli-utils.h (struct get_number_or_range_state): New.
4132 (init_number_or_range): Declare.
4133 (get_number_or_range): Update.
4134 * cli/cli-utils.c (init_number_or_range): New function.
4135 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
4137 (number_is_in_list): Update.
4138 * breakpoint.h (get_tracepoint_by_number): Update.
4139 * breakpoint.c (map_breakpoint_numbers): Update for change to
4140 get_number_or_range.
4141 (find_location_by_number): Use get_number, not
4142 get_number_or_range.
4143 (trace_pass_set_count): New function.
4144 (trace_pass_command): Update for change to get_number_or_range.
4146 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
4149 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
4151 * python/py-param.c (add_setshow_generic): Add set/show callback
4152 parameters. Register Python object context.
4153 (get_show_value): New function.
4154 (get_set_value): New function.
4155 (call_doc_function): New function.
4156 (get_doc_string): Move behind get_show_value/get_set_value.
4158 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
4160 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
4162 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
4164 * xtensa-tdep.c (xtensa_read_register): Add comment.
4165 (xtensa_write_register): Likewise.
4166 (xtensa_hextochar): Add comment and update to match coding conventions.
4167 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
4168 (execute_l32e, execute_s32e, execute_code): Update comments.
4169 (xtensa_exception_handler_t): Update to match coding conventions.
4170 (xtensa_insn_kind): Likewise.
4172 2011-03-09 Michael Snyder <msnyder@vmware.com>
4174 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
4176 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4178 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
4180 2011-03-09 Tom Tromey <tromey@redhat.com>
4182 * thread.c (restore_selected_frame): Handle frame_level == -1.
4183 (make_cleanup_restore_current_thread): Use
4184 get_selected_frame_if_set.
4185 * frame.h (get_selected_frame_if_set): Declare.
4186 * frame.c (get_selected_frame_if_set): New function.
4188 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4190 * cli/cli-cmds.c (shell_escape): Use lbasename.
4191 * coffread.c (coff_start_symtab): Constify parameter.
4192 (complete_symtab): Constify `name' parameter.
4193 (coff_symtab_read): Constify `filestring' local.
4194 (coff_getfilename): Constify return and `result' local.
4196 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
4197 * linux-fork.c (info_checkpoints_command): Use lbasename.
4198 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
4199 * minsyms.c (lookup_minimal_symbol): Use lbasename.
4200 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
4201 * procfs.c (procfs_make_note_section): Use lbasename.
4202 * tui/tui-io.c (printable_part): Constity return and parameter.
4204 (print_filename): Constify parameters, and local `s'.
4205 (tui_rl_display_match_list): Constify local `temp'.
4207 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4210 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4211 Fix DWARF-3+ DW_AT_accessibility default assumption.
4212 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4213 cu->header.version >= 3.
4215 2011-03-09 Yao Qi <yao@codesourcery.com>
4217 * common/Makefile.in: Remove.
4218 * common/configure: Remove.
4219 * common/configure.ac: Remove.
4221 2011-03-09 Yao Qi <yao@codesourcery.com>
4224 2011-02-11 Yao Qi <yao@codesourcery.com>
4226 * common/Makefile.in: Add copyright header.
4228 2011-02-11 Yao Qi <yao@codesourcery.com>
4230 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4232 * configure.ac: Add common to sub dir.
4233 * configure: Regenerate.
4235 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4237 * xtensa-tdep.c (call0_ret): New function.
4238 (xtensa_skip_prologue): Speed up analysis.
4240 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4242 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
4243 while executing MI command -data-list-changed-registers.
4245 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4247 * xtensa-tdep.c (xtensa_read_register): New function.
4248 (xtensa_write_register): New function.
4249 (xtensa_find_register_by_name): New function.
4250 (xtensa_windowed_frame_cache): Update comments in type description.
4251 (xtensa_frame_cache): Likewise.
4252 (xtensa_window_interrupt_insn): New function.
4253 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
4254 (xtensa_insn_kind): Add new instructions.
4255 (rwx_special_register): New function.
4256 (call0_classify_opcode): Add new instructions to the analysis.
4257 (a0_saved, a7_saved, a11_saved): New variables.
4258 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
4259 (execute_l32e): New function.
4260 (execute_s32e): New function.
4261 (xtensa_exception_handler_t): New type.
4262 (execute_code): New function.
4263 (xtensa_window_interrupt_frame_cache): New function to conduct frame
4264 analysis for Xtensa Window Exception handlers.
4266 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4268 * xtensa-tdep.c (TX_PS): New.
4269 (windowing_enabled): Update to count for Call0 ABI.
4270 (xtensa_hextochar): New.
4271 (xtensa_init_reggroups): Make algorithm generic.
4272 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
4274 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4276 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4278 2011-03-08 Michael Snyder <msnyder@vmware.com>
4280 * i386-tdep.c (i386_follow_jump): Check return value of
4282 (i386_analyze_struct_return): Ditto.
4283 (i386_skip_probe): Ditto.
4284 (i386_match_insn): Ditto.
4285 (i386_skip_noop): Ditto.
4286 (i386_analyze_frame_setup): Ditto.
4287 (i386_analyze_register_saves): Ditto.
4288 (i386_skip_prologue): Ditto.
4289 (i386_skip_main_prologue): Ditto.
4291 * target.c (read_whatever_is_readable): Fix memory leak.
4293 * i386-tdep.c (i386_process_record): Document fall through.
4295 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4297 Fix DWARF-3+ DW_AT_accessibility default assumption.
4298 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4299 cu->header.version >= 3.
4301 2011-03-08 Pedro Alves <pedro@codesourcery.com>
4303 * remote.c (remote_check_symbols): Skip if the target has no
4306 2011-03-08 Joel Brobecker <brobecker@adacore.com>
4308 * target.c (read_whatever_is_readable): Reformat comment,
4309 with a minor typo fix. Minor reformatting of the code.
4311 2011-03-08 Yao Qi <yao@codesourcery.com>
4313 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
4314 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
4315 Use cached result instead of calling displaced_in_arm_mode again.
4316 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
4317 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
4318 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
4319 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
4320 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
4321 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
4322 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
4323 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
4324 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4325 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
4326 (arm_catch_kernel_helper_return): Likewise.
4327 * gdb/arm-tdep.h : Update function declarations.
4329 2011-03-07 Michael Snyder <msnyder@vmware.com>
4331 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
4333 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
4335 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
4337 * elfread.c (elf_symtab_read): Stop memory leak.
4339 * main.c (captured_main): Fix memory leak.
4341 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
4343 * ada-lang.c (compare_names): Call is_name_suffix with string1
4346 2011-03-07 Tom Tromey <tromey@redhat.com>
4348 * xcoffread.c (xcoff_sym_fns): Update.
4349 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
4350 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
4351 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
4352 (symbol_file_add_with_addrs_or_offsets): Likewise.
4353 (reread_symbols): Handle OBJF_PSYMTABS_READ.
4354 * somread.c (som_sym_fns): Update.
4355 * psymtab.h (require_partial_symbols): Declare.
4356 * psymtab.c (require_partial_symbols): New function.
4357 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
4358 (ALL_OBJFILE_PSYMTABS): Undef.
4359 (ALL_PSYMTABS): Move from psympriv.h.
4360 (lookup_partial_symtab, find_pc_sect_psymtab)
4361 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
4362 (find_last_source_symtab_from_partial)
4363 (forget_cached_source_info_partial)
4364 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
4365 (expand_partial_symbol_tables, read_psymtabs_with_filename)
4366 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
4367 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
4368 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
4369 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
4370 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
4371 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
4372 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
4374 * mipsread.c (ecoff_sym_fns): Update.
4375 * machoread.c (macho_sym_fns): Update.
4376 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
4377 (read_psyms): New function.
4378 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
4379 (elf_sym_fns_lazy_psyms): New global.
4380 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
4381 dwarf2_build_psymtabs.
4382 * dbxread.c (aout_sym_fns): Update.
4383 * coffread.c (coff_sym_fns): Update.
4385 2011-03-07 Tom Tromey <tromey@redhat.com>
4387 * infrun.c (print_exited_reason): Include inferior id and pid in
4390 2011-03-07 Tom Tromey <tromey@redhat.com>
4392 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
4394 (target_has_execution_1): Update.
4395 (target_has_execution_current): Declare.
4396 (target_has_execution): Call target_has_execution_current.
4397 (default_child_has_execution): Update.
4398 * target.c (default_child_has_execution): Add 'the_ptid'
4400 (target_has_execution_1): Likewise.
4401 (target_has_execution_current): New function.
4402 (add_target): Update.
4403 (init_dummy_target): Update.
4404 * remote-m32r-sdi.c (m32r_has_execution): New function.
4405 (init_m32r_ops): Use it.
4406 * record.c (record_core_has_execution): Now static. Add
4407 'the_ptid' parameter.
4408 * inferior.c (have_live_inferiors): Don't save current thread.
4409 Use target_has_execution_1.
4411 2011-03-07 Yao Qi <yao@codesourcery.com>
4413 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
4415 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4417 * elfread.c (elf_symtab_read): Minor reformatting.
4419 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4421 * objc-lang.c (selectors_info): Minor reformatting.
4423 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4425 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
4427 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4428 Michael Snyder <msnyder@vmware.com>
4430 * ada-valprint.c (ada_val_print_array): Move the declaration of
4431 "byte_order" and "elttype" inside the block where these variables
4432 are actually used. Remove some special handling for the case
4433 where "elttype" and "eltlen" are null. Replace by a comment
4434 and a couple of assertion checks.
4436 2011-03-05 Michael Snyder <msnyder@vmware.com>
4438 * source.c (add_path): Replace semicolon at end of block.
4439 * dwarf2expr.c (execute_stack_op): Ditto.
4441 2011-03-05 Mike Frysinger <vapier@gentoo.org>
4443 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
4444 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
4445 (bfin-*-*): Likewise.
4447 2011-03-05 Michael Snyder <msnyder@vmware.com>
4449 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
4450 * mdebugread.c (parse_symbol): Ditto.
4451 * parse.c (parse_exp_in_context): Ditto.
4452 * source.c (add_path): Ditto.
4453 * utils.c (gnu_debuglink_crc32): Ditto.
4454 * varobj.c (variable_language): Ditto.
4456 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
4458 2011-03-04 Michael Snyder <msnyder@vmware.com>
4460 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
4462 * symfile.c (simple_overlay_update): Check for null return value
4463 from lookup_minimal_symbol.
4465 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
4467 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4469 * eval.c (parse_and_eval_address_1): Remove function.
4470 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
4471 instead of parse_and_eval_address_1.
4472 * value.h (parse_and_eval_address_1): Remove prototype.
4474 2011-03-04 Michael Snyder <msnyder@vmware.com>
4476 * remote.c (putpkt_binary): Document that case stmt falls through.
4478 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4480 * breakpointc (print_it_typical): Move NULL check from here...
4481 (print_bp_stop_message): ... to here.
4483 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
4485 * breakpoint.c (enable_command): Use break instead of continue,
4486 and fill in a missing break.
4487 (disable_command): Ditto.
4489 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4491 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
4492 (terminal_save_ours): Remove misleading comment.
4493 (inflow_inferior_data_cleanup): Free ttystate.
4494 (inflow_inferior_exit): Likewise.
4495 (copy_terminal_info): Copy ttystate.
4497 * serial.c (serial_copy_tty_state): New function.
4498 * serial.h (serial_copy_tty_state): Add prototype.
4499 (struct serial_ops): Add copy_tty_state callback.
4500 * ser-base.c (ser_base_copy_tty_state): New function.
4501 * ser-base.h (ser_base_copy_tty_state): Add prototype.
4502 * ser-go32.c (dos_copy_tty_state): New function.
4503 (dos_ops): Install copy_tty_state callback.
4504 * ser-mingw.c (_initialize_ser_windows): Likewise.
4505 * ser-pipe.c (_initialize_ser_pipe): Likewise.
4506 * ser-unix.c (hardwire_copy_tty_state): New function.
4507 (_initialize_ser_hardwire): Install it.
4509 2011-03-04 Michael Snyder <msnyder@vmware.com>
4511 * breakpoint.c (create_breakpoint): Add missing break statement.
4513 Reverting this patch:
4514 * infcall.c (call_function_by_hand): Add break statements for lint.
4516 Reverting this patch:
4517 * cli/cli-script.c (script_from_file): Add break for lint.
4519 2011-03-04 Michael Snyder <msnyder@vmware.com>
4521 * solib.c (reload_shared_libraries_1): Close memory leak.
4523 2011-03-03 Tom Tromey <tromey@redhat.com>
4526 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
4529 2011-03-03 Michael Snyder <msnyder@vmware.com>
4531 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
4532 fields of struct 'st' to zero.
4534 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
4535 sal.pspace before calling set_current_source_symtab_and_line.
4537 2011-03-03 Yao Qi <yao@codesourcery.com>
4539 * Makefile.in (configure-common): Remove. Let Makefile
4540 in dir common to rebuild itself.
4541 (common/Makefile): Likewise.
4543 2011-03-03 Joel Brobecker <brobecker@adacore.com>
4545 * utils.c (parse_escape): Add i18n markup in error message.
4547 2011-03-03 Yao Qi <yao@codesourcery.com>
4549 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
4551 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
4552 (displaced_write_reg, displaced_read_reg): Likewise.
4553 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
4554 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4555 (cleanup_branch): Replace magic number 14 and 15 with
4556 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
4558 2011-03-02 Michael Snyder <msnyder@vmware.com>
4560 * maint.c (maintenance_do_deprecate): No need to check for NULL.
4562 * cli/cli-script.c (script_from_file): Add break for lint.
4564 * mdebugread.c (parse_partial_symbols): Fix indent.
4566 * target-descriptions.c (tdesc_gdb_type): No need to call
4567 xstrdup, callee saves a copy.
4569 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
4571 * infcall.c (call_function_by_hand): Add break statements for lint.
4573 * utils.c (parse_escape): Escape the escape char.
4575 * python/py-inferior.c (build_inferior_list): Error out if
4576 PyList_Append fails.
4577 (gdbpy_inferiors): Error out if build_inferior_list fails.
4579 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
4582 * record.c (record_restore): Move printf to before error return.
4584 2011-03-02 Yao Qi <yao@codesourcery.com>
4586 * arm-tdep.h (struct displaced_step_closure): Add two new fields
4587 is_thumb and insn_size.
4588 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
4589 on both ARM and Thumb mode.
4590 (arm_process_displaced_insn): Set is_thumb and insn_size.
4591 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
4592 (arm_displaced_step_fixup): Likewise.
4594 2011-03-01 Michael Snyder <msnyder@vmware.com>
4596 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
4598 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
4600 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
4602 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4604 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
4607 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
4608 which shadows function parameter.
4610 * tracepoint.c (create_tsv_from_upload): Superfluous call
4611 to xstrdup. Callee already calls xstrdup.
4613 * linespec.c (decode_line_1): Remove unnecessary null check.
4615 * tracepoint.c (scope_info): Fix mem leak, remove underused
4618 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
4619 superfluous null check.
4621 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
4622 (value_of_builtin_frame_fp_reg): Ditto.
4624 * event-top.c (display_gdb_prompt): Remove superfluous null check.
4626 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
4629 * linespec.c (decode_line_1): Check for null before dereference.
4631 * reverse.c (record_restore): Move null-check to before pointer
4634 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
4636 * objc-lang.c (selectors_info): Add explanitory comment.
4637 (classes_info): Ditto.
4639 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4641 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
4642 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
4643 versions of the trampoline. Handle Thumb vs. ARM addresses.
4644 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
4645 (arm_linux_init_abi): Install it.
4646 * arm-tdep.c (arm_psr_thumb_bit): Make global.
4647 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
4649 2011-02-28 Michael Snyder <msnyder@vmware.com>
4651 * ui-out.c (ui_out_field_core_addr): Make local char buffer
4652 a little bigger, to avoid possibility of an overflow.
4654 * breakpoint.c (breakpoint_adjustment_warning): Make local char
4655 buffers a little bigger, to avoid possibility of an overflow.
4657 * coffread.c (coff_getfilename): Add check to avoid overflow.
4659 * objc-lang.c (selectors_info): Add a small safety margin to
4661 (classes_info): Error out on too long REGEXP.
4663 * infrun.c (handle_inferior_event): Remove unused function call.
4665 * fork-child.c (fork_inferior): Remove ifdef'd code and
4668 * linux-thread-db.c (attach_thread): Discard unused value.
4670 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
4672 * remote.c (remote_get_noisy_reply): Discard unused value.
4673 (remote_vcont_resume): Ditto.
4674 (remote_stop_ns): Ditto.
4676 * linespec.c (decode_objc): Delete unused variable.
4678 * tui/tui-regs.c (tui_register_format): Delete unused variable.
4680 * dwarf2read.c (add_partial_symbol): Discard unused values.
4681 (read_base_type): Delete unused variable.
4683 * dbxread.c (read_dbx_symtab): Discard unused value.
4685 * eval.c (evaluate_subexp_standard): Delete unused variable,
4686 and discard unused values.
4688 * infcmd.c (_initialize_infcmd): Discard unused values.
4690 * stabsread.c (rs6000_builtin_type): Missing break statement.
4692 * dbxread.c (process_one_symbol): Discard unused value.
4694 * coffread.c (coff_end_symtab): Delete unused variable.
4696 * dwarf2read.c (dw2_get_file_names): Discard unused value.
4697 (dwarf2_add_typedef): Delete unused variable.
4698 (read_namespace): Ditto.
4699 (dwarf_decode_macros): Ditto.
4701 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
4703 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
4705 * p-valprint.c (pascal_val_print): Discard unused value.
4707 * utils.c (nquery): Call va_end before return;
4711 * proc-service.c (ps_plog): Call va_end before return.
4713 2011-02-28 Tom Tromey <tromey@redhat.com>
4715 * python/python.c (gdbpy_value_cst): New global.
4716 (_initialize_python): Initialize it.
4717 * python/python-internal.h (gdbpy_value_cst): Declare.
4718 * python/py-value.c (convert_value_from_python): Use
4721 2011-02-28 Michael Snyder <msnyder@vmware.com>
4723 * python/py-cmd.c (cmdpy_init): Fix memory leak.
4725 * breakpoint.c (catch_syscall_completer): Free malloced list.
4727 * jv-lang.c (java_primitive_type_from_name): Add missing break.
4729 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
4730 (lval_func_check_synthetic_pointer): Ditto.
4731 (lval_func_free_closure): Fix use-after-free.
4733 2011-02-28 Tom Tromey <tromey@redhat.com>
4735 * psymtab.c (expand_partial_symbol_tables): Use
4736 ALL_OBJFILE_PSYMTABS.
4738 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4740 * objc-lang.c (selectors_info): Error on too long REGEXP.
4742 2011-02-28 Michael Snyder <msnyder@vmware.com>
4744 * python/py-param.c (set_parameter_value): Add missing
4747 * linux-record.c (record_linux_system_call): Add missing
4750 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4752 * breakpoint.c (print_one_breakpoint_location): Remove unused
4753 argument PRINT_ADDRESS_BITS. Update callers.
4754 (print_one_breakpoint): Likewise.
4756 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4758 * breakpoint.c (wrap_indent_at_field): New function.
4759 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
4760 Allocate ui_stream locally instead of using STB argument.
4761 (print_one_breakpoint_location): Update call.
4762 * ui-out.c (ui_out_query_field): New function.
4763 * ui-out.h (ui_out_query_field): Add prototype.
4765 2011-02-28 Joel Brobecker <brobecker@adacore.com>
4767 From Michael Snyder <msnyder@vmware.com>
4768 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4770 2011-02-27 Michael Snyder <msnyder@vmware.com>
4772 * objc-lang.c (selectors_info): Prevent string overrun.
4774 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4777 * symtab.c (rbreak_command): Move variable 'file_name' to
4780 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4781 param with a local variable of the same name.
4783 2011-02-27 Michael Snyder <msnyder@vmware.com>
4785 * value.c (value_from_history_ref): New function.
4786 * value.h (value_from_history_ref): Export.
4787 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4788 to parse value history references.
4789 * cli/cli-utils.h (get_number_trailer): Update comment.
4791 2011-02-27 Michael Snyder <msnyder@vmware.com>
4793 * inferior.c (detach_inferior_command): Use get_number_or_range.
4794 (kill_inferior_command): Ditto.
4795 (remove_inferior_command): Ditto.
4796 (initialize_inferiors): Make command names plural.
4797 Update help strings.
4799 2011-02-27 Michael Snyder <msnyder@vmware.com>
4801 * darwin-nat-info.c: Fix comment typo.
4802 * dwarf2expr.h: Ditto.
4803 * fbsd-nat.c: Ditto.
4804 * fbsd-nat.h: Ditto.
4805 * frame-unwind.h: Ditto.
4807 * hppa-hpux-tdep.c: Ditto.
4808 * i386-linux-nat.c: Ditto.
4809 * linux-nat.c: Ditto.
4810 * nbsd-nat.c: Ditto.
4811 * nbsd-nat.h: Ditto.
4812 * ppc-linux-tdep.c: Ditto.
4815 * tui/tui-winsource.c: Ditto.
4817 2011-02-26 Michael Snyder <msnyder@vmware.com>
4819 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4821 * maint.c (maintenance_do_deprecate): Plug a memory leak.
4823 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4824 with a local variable of the same name.
4826 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
4827 param with a local variable of the same name.
4828 (i387_supply_xsave): Ditto.
4830 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4831 that it does not shadow a function parameter.
4833 * i386-nat.c (i386_length_and_rw_bits): Document that case
4834 statement is meant to fall through.
4836 * expprint.c (dump_subexp_body_standard): Document that case
4837 statement is meant to fall through.
4839 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4840 dead if statement. Condition can't be false.
4842 2011-02-25 Michael Snyder <msnyder@vmware.com>
4844 * arm-tdep.c: Fix typos in comments.
4845 * bsd-uthread.c: Ditto.
4846 * completer.c: Ditto.
4848 * cp-namespace.c: Ditto.
4849 * cp-support.c: Ditto.
4850 * cris-tdep.c: Ditto.
4852 * dwarf2read.c: Ditto.
4854 * gdbtypes.h: Ditto.
4855 * inferior.h: Ditto.
4856 * mdebugread.c: Ditto.
4857 * mips-tdep.c: Ditto.
4858 * ppc-linux-nat.c: Ditto.
4859 * ppc-linux-tdep.c: Ditto.
4860 * printcmd.c: Ditto.
4861 * sol-thread.c: Ditto.
4862 * solib-frv.c: Ditto.
4864 * sparc64-tdep.c: Ditto.
4865 * spu-tdep.c: Ditto.
4866 * stabsread.c: Ditto.
4871 * python/py-block.c: Ditto.
4872 * python/py-symbol.c: Ditto.
4873 * python/py-symtab.c: Ditto.
4874 * python/py-value.c: Ditto.
4875 * tui/tui-win.c: Ditto.
4877 2011-02-25 Michael Snyder <msnyder@vmware.com>
4879 * inferior.c (print_inferior): Accept a string instead of an int
4880 for requested_inferiors, and use get_number_or_range to parse it.
4881 (info_inferiors_command): Pass args string to print_inferior.
4882 (initialize_inferiors): Change help string for info inferiors.
4883 * inferior.h (print_inferior): Export prototype change.
4885 2011-02-25 Tom Tromey <tromey@redhat.com>
4887 * common/ax.def (invalid2): Set to 0x31.
4889 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4891 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
4893 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
4895 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
4897 2011-02-24 Michael Snyder <msnyder@vmware.com>
4899 * Makefile.in (clean): Make clean should remove generated files
4900 observer.h and observer.inc.
4902 2011-02-24 Joel Brobecker <brobecker@adacore.com>
4904 Revert the following patch (not approved yet):
4905 2011-02-21 Hui Zhu <teawater@gmail.com>
4906 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4907 * ax-gdb.c (gen_printf_expr_callback): New function.
4908 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4909 * ax-general.c (ax_memcpy): New function.
4910 (ax_print): Handle "printf".
4912 * ax.h (ax_memcpy): Forward declare.
4913 * common/ax.def (invalid2): Removed.
4914 (printf): New entry.
4915 * printcmd.c (printcmd.h): New include.
4916 (string_printf): New function.
4917 (ui_printf): Removed.
4918 (printf_command): Remove static. Call string_printf.
4919 (eval_command): Call string_printf.
4920 * printcmd.h: New file.
4921 * tracepoint.c (validate_actionline,
4922 encode_actions_1): handle printf_command.
4924 2011-02-23 Tom Tromey <tromey@redhat.com>
4926 * ax-general.c (ax_pick): Add missing newline.
4928 2011-02-23 Michael Snyder <msnyder@vmware.com>
4930 * breakpoint.c (breakpoint_1): Change first argument from an int
4931 to a char pointer, so that the function now accepts a list of
4932 breakpoints rather than just one. Use new function
4933 'number_is_in_list' to implement.
4934 (breakpoints_info): Pass char * instead of int to breakpoint_1.
4935 (watchpoints_info): Ditto.
4936 (tracepoints_info): Ditto.
4937 (maintenance_info_breakpoints): Ditto.
4938 (_initialize_breakpoint): Update help strings to reflect the fact
4939 that these functions can now take more than one argument.
4940 * cli/cli-utils.c (number_is_in_list): New function.
4941 * cli/cli-utils.h (number_is_in_list): Export.
4943 2011-02-23 Michael Snyder <msnyder@vmware.com>
4945 * memattr.c (mem_enable_command): Use get_number_or_range.
4946 (mem_disable_command): Ditto.
4947 (mem_delete_command): Ditto.
4948 (_initialize_mem): Tweak usage message to reflect multiple
4951 2011-02-22 Doug Evans <dje@google.com>
4953 Add gdb.lookup_global_symbol python function.
4955 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
4956 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
4957 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
4959 2011-02-22 Tom Tromey <tromey@redhat.com>
4961 * language.c (language_class_name_from_physname): Rename
4962 'curr_language' argument to 'lang'; use in body.
4964 2011-02-22 Michael Snyder <msnyder@vmware.com>
4966 * cli/cli-utils.c (number_is_in_list): Check for zero return.
4968 2011-02-22 Pedro Alves <pedro@codesourcery.com>
4970 * frame-unwind.h: Fix comment to mention the this frame, not the
4973 2011-02-22 Tom Tromey <tromey@redhat.com>
4975 * symfile.c (auto_solib_limit): Remove.
4976 * symfile.h (auto_solib_limit): Remove.
4978 2011-02-22 Joel Brobecker <brobecker@adacore.com>
4980 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
4982 2011-02-21 Michael Snyder <msnyder@vmware.com>
4984 * gdbthread.h (print_thread_info): Change prototype.
4985 * thread.c (print_thread_info): Accept char* instead of int for
4986 requested_threads argument. Use new function number_is_in_list
4987 to determine which threads to list.
4988 (info_threads_command): Pass char* to print_thread_info.
4989 * cli/cli-utils.c (number_is_in_list): New function.
4990 * cli/cli-utils.h (number_is_in_list): Export.
4991 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
4993 (print_one_inferior): Ditto.
4994 (mi_cmd_list_thread_groups): Ditto.
4996 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4998 * common/Makefile.in (CFLAGS): New.
4999 (COMPILE): Add $(CFLAGS).
5001 2011-02-21 Tom Tromey <tromey@redhat.com>
5003 * breakpoint.c (catch_syscall_command_1): Fix typo.
5005 2011-02-21 Tom Tromey <tromey@redhat.com>
5007 * reverse.c: Include cli-utils.h.
5008 * printcmd.c: Include cli-utils.h.
5009 (string_printf): Use skip_spaces.
5010 * cli/cli-utils.h: New file.
5011 * cli/cli-utils.c: New file.
5012 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
5013 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
5014 * breakpoint.h (get_number, get_number_or_range): Move to
5016 * breakpoint.c: Include cli-utils.h.
5017 (get_number_trailer, get_number, get_number_or_range)
5018 (ep_skip_leading_whitespace): Move to cli-utils.c.
5019 (create_breakpoint_sal, find_condition_and_thread)
5020 (decode_static_tracepoint_spec, watch_command_1)
5021 (watch_maybe_just_location, ep_parse_optional_if_clause)
5022 (catch_fork_command_1, catch_exec_command_1)
5023 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
5024 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
5025 (SUBDIR_CLI_SRCS): Add cli-utils.c.
5026 (HFILES_NO_SRCDIR): Add cli-utils.h.
5027 (cli-utils.o): New target.
5029 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5031 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
5032 before calling discard_all_inferiors.
5034 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5036 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
5037 (struct builtin_opencl_type): Remove.
5038 (builtin_opencl_type): Change return type to "struct type **".
5039 (lookup_opencl_vector_type): Update caller.
5040 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
5041 (build_opencl_types): Install plain array of "struct type *"
5042 instead of "struct builtin_opencl_type".
5044 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5045 Ulrich Weigand <uweigand@de.ibm.com>
5047 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
5048 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
5049 (struct arm_linux_hwbp_cap): New type.
5050 (arm_linux_get_hwbp_cap): New function.
5051 (arm_linux_get_hw_breakpoint_count): Likewise.
5052 (arm_linux_get_hw_watchpoint_count): Likewise.
5053 (arm_linux_can_use_hw_breakpoint): Likewise.
5054 (arm_hwbp_type): New type.
5055 (arm_hwbp_control_t): Likewise.
5056 (struct arm_linux_hw_breakpoint): Likewise.
5057 (struct arm_linux_thread_points): Likewise.
5058 (arm_threads): New global variable.
5059 (arm_linux_find_breakpoints_by_tid): New function.
5060 (arm_hwbp_control_initialize): Likewise.
5061 (arm_hwbp_control_is_enabled): Likewise.
5062 (arm_hwbp_control_disable): Likewise.
5063 (arm_linux_hw_breakpoint_initialize): Likewise.
5064 (arm_linux_get_hwbp_type): Likewise.
5065 (arm_linux_hw_watchpoint_initialize): Likewise.
5066 (arm_linux_hw_breakpoint_equal): Likewise.
5067 (arm_linux_insert_hw_breakpoint1): Likewise.
5068 (arm_linux_remove_hw_breakpoint1): Likewise.
5069 (arm_linux_insert_hw_breakpoint): Likewise.
5070 (arm_linux_remove_hw_breakpoint): Likewise.
5071 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
5072 (arm_linux_insert_watchpoint): Likewise.
5073 (arm_linux_remove_watchpoint): Likewise.
5074 (arm_linux_stopped_data_address): Likewise.
5075 (arm_linux_stopped_by_watchpoint): Likewise.
5076 (arm_linux_watchpoint_addr_within_range): Likewise.
5077 (arm_linux_new_thread): Likewise.
5078 (arm_linux_thread_exit): Likewise.
5079 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
5080 related target callbacks. Register arm_linux_new_thread and
5081 arm_linux_thread_exit.
5082 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
5083 * arm-tdep.c (arm_pc_is_thumb): Make global.
5084 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
5086 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5088 * breakpoint.c (update_watchpoint): Do not attempt to recreate
5089 per-frame locations while within a function epilogue.
5091 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5093 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
5094 to GNU coding standards.
5096 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5098 Allow use of mingw native on Windows 95 OS.
5099 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
5100 (ser_windows_close): Only call CancelIo if function exists.
5101 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
5102 to check for existence of CancelIo function in kernel32 DLL.
5104 2011-02-21 Hui Zhu <teawater@gmail.com>
5106 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5107 * ax-gdb.c (gen_printf_expr_callback): New function.
5108 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5109 * ax-general.c (ax_memcpy): New function.
5110 (ax_print): Handle "printf".
5112 * ax.h (ax_memcpy): Forward declare.
5113 * common/ax.def (invalid2): Removed.
5114 (printf): New entry.
5115 * printcmd.c (printcmd.h): New include.
5116 (string_printf): New function.
5117 (ui_printf): Removed.
5118 (printf_command): Remove static. Call string_printf.
5119 (eval_command): Call string_printf.
5120 * printcmd.h: New file.
5121 * tracepoint.c (validate_actionline,
5122 encode_actions_1): handle printf_command.
5124 2011-02-19 Michael Snyder <msnyder@vmware.com>
5126 * reverse.c (delete_one_bookmark): Argument is now bookmark
5127 id rather than pointer to bookmark struct.
5128 (delete_bookmark_command): Use get_number_or_range.
5129 (goto_bookmark_command): Parse with get_number instead of strtoul.
5130 (bookmark_1): New function. Print info for one bookmark.
5131 (bookmarks_info): Use get_number_or_range and bookmark_1.
5133 2011-02-18 Michael Snyder <msnyder@vmware.com>
5135 * thread.c (info_threads_command): Re-implement using
5136 get_number_or_range.
5137 (thread_apply_command): Ditto.
5139 2011-02-18 Tom Tromey <tromey@redhat.com>
5141 * common/ax.def: New file.
5142 * ax.h (enum agent_op): Use ax.def.
5143 * ax-general.c (aop_map): Use ax.def.
5145 2011-02-18 Tom Tromey <tromey@redhat.com>
5147 * ax-general.c (aop_map): Add pick and rot.
5148 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
5149 <DW_OP_rot>: Implement.
5150 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
5152 * ax-general.c (ax_pick): New function.
5154 2011-02-18 Tom Tromey <tromey@redhat.com>
5156 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
5158 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5159 Tom Tromey <tromey@redhat.com>
5161 * cp-support.c (make_symbol_overload_list_namespace): Do not call
5162 make_symbol_overload_list_block with NULL BLOCK.
5163 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
5165 2011-02-18 Pedro Alves <pedro@codesourcery.com>
5167 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
5168 * breakpoint.h (get_number_or_range): Declare.
5169 * printcmd.c (ALL_DISPLAYS): Declare.
5170 (delete_display): Reimplement taking a display pointer.
5171 (undisplay_command): Accept a range of displays to delete, using
5172 get_number_or_range.
5174 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5176 * c-valprint.c (c_val_print): Add embedded_offset to address
5177 for arrays of unspecified length.
5178 * p-valprint.c (pascal_val_print): Likewise.
5180 2011-02-18 Yao Qi <yao@codesourcery.com>
5182 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
5183 (arm_process_displaced_insn): .. here. Remove parameter INSN.
5184 (thumb_process_displaced_insn): New.
5185 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
5186 call to arm_process_displaced_insn.
5187 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
5189 2011-02-17 Tom Tromey <tromey@redhat.com>
5191 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
5192 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
5193 compile_dwarf_to_ax. No longer static. Call
5194 dwarf2_compile_cfa_to_ax.
5195 (locexpr_tracepoint_var_ref): Update.
5196 (loclist_tracepoint_var_ref): Update.
5197 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
5198 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
5199 argument; add 'gdbarch' and 'pc'.
5200 (dwarf2_compile_cfa_to_ax): New function.
5201 (dwarf2_frame_cache): Update.
5203 2011-02-17 Joel Brobecker <brobecker@adacore.com>
5205 * ada-lang.c (ada_type_of_array): Fix the size of the array
5206 in the case of an unconstrained packed array.
5208 2011-02-17 Yao Qi <yao@codesourcery.com>
5210 * common/Makefile.in: Add more targets for make.
5212 2011-02-16 Tom Tromey <tromey@redhat.com>
5214 * dwarf2loc.c (unimplemented): Fix typo.
5216 2011-02-16 Tom Tromey <tromey@redhat.com>
5218 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
5219 (compile_dwarf_to_ax) <default>: Use unimplemented.
5220 <DW_OP_deref>: Update.
5221 (disassemble_dwarf_expression): Update.
5222 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
5223 (decode_locdesc): Update.
5224 * dwarf2expr.h (dwarf_stack_op_name): Update.
5226 2011-02-16 Tom Tromey <tromey@redhat.com>
5228 * ax.h (struct aop_map) <name>: Now const.
5230 2011-02-16 Tom Tromey <tromey@redhat.com>
5232 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
5235 2011-02-16 Yao Qi <yao@codesourcery.com>
5237 * infrun.c (get_displaced_step_closure_by_addr): New.
5238 * inferior.h: Declare it.
5239 * arm-tdep.c: (arm_pc_is_thumb): Call
5240 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
5243 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5244 Jan Kratochvil <jan.kratochvil@redhat.com>
5247 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
5249 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5250 Jan Kratochvil <jan.kratochvil@redhat.com>
5252 * value.c (value_contents_copy_raw): Extend describing comment.
5253 Assert that the destination contents we're overwriting are wholly
5255 (value_contents_copy): Extend describing comment.
5257 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5258 Jan Kratochvil <jan.kratochvil@redhat.com>
5260 * value.c (value_available_contents_eq): Remove redundant local
5261 variables. Fix available contents comparision.
5262 * value.h (value_available_contents_eq): Extend describing
5265 2011-02-16 Yao Qi <yao@codesourcery.com>
5267 * thread.c (info_threads_command): Add missing i18n markup and remove
5270 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5272 * breakpoint.c (longjmp_names): New variable.
5273 (struct breakpoint_objfile_data): New type.
5274 (breakpoint_objfile_key): New variable.
5275 (msym_not_found): New variable.
5276 (msym_not_found_p): New predicate.
5277 (get_breakpoint_objfile_data): New function.
5278 (create_overlay_event_breakpoint): Check per-objfile cache for
5280 (create_longjmp_master_breakpoint): Likewise.
5281 (create_std_terminate_master_breakpoint): Likewise.
5282 (create_exception_master_breakpoint): Likewise.
5283 (_initialize_breakpoint): Register per-objfile data key.
5285 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5287 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
5289 (create_longjmp_master_breakpoint): Loop over longjmp names.
5290 (create_std_terminate_master_breakpoint): Const-propagate parameter
5292 (update_breakpoints_after_exec): Adjust.
5293 (breakpoint_re_set): Adjust.
5295 2011-02-15 Michael Snyder <msnyder@vmware.com>
5297 * thread.c (info_threads_command): Process arg as thread id,
5298 or list of thread ids.
5299 (thread_find_command): New command.
5300 (_initialize_thread): Document argument for info threads.
5301 Document 'thread find' command.
5302 * NEWS: Document new command "thread find".
5304 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5306 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
5307 * aclocal.m4: Regenerated with aclocal-1.11.1.
5308 * common/configure: Regenerate with autoconf-2.64.
5310 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
5312 * opencl-lang.c (build_opencl_types): Set the size of the built-in
5313 bool data type to a size of one byte.
5315 2011-02-15 Pedro Alves <pedro@codesourcery.com>
5316 Jan Kratochvil <jan.kratochvil@redhat.com>
5318 * target.c (memory_xfer_live_readonly_partial): Document where to
5319 look for interface description.
5321 2011-02-15 Yao Qi <yao@codesourcery.com>
5324 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
5325 order to store PC value on stack instead of text section.
5327 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
5329 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
5330 the EFP register set size.
5331 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
5332 data from the VMX register.
5333 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
5334 and write data from/to the VMX register.
5336 2011-02-14 Michael Snyder <msnyder@vmware.com>
5338 * command.h (enum command_class): New class 'no_set_class', for
5339 "show" commands without a corresponding "set" command.
5340 * value.c (_initialize_values): Use 'no_set_class' for "show values".
5341 * copying.c (_initialize_copying): Ditto for "show copying" and
5343 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
5345 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
5346 which there is no corresponding "set" command (eg. "show copying").
5348 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5349 Jan Kratochvil <jan.kratochvil@redhat.com>
5351 * exec.c (section_table_available_memory): Change `len' parameter
5353 * exec.h (section_table_available_memory): Ditto.
5354 * value.h (read_value_memory): Rename the `offset' parameter to
5357 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5358 Jan Kratochvil <jan.kratochvil@redhat.com>
5360 * memrange.c (compare_mem_ranges): Mention sort order in
5362 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
5363 * tracepoint.c (traceframe_available_memory): Extend comment to
5364 mention what happens to RESULT when the target does not support
5367 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5368 Jan Kratochvil <jan.kratochvil@redhat.com>
5370 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
5373 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5375 * value.c (value_bits_valid, value_bits_synthetic_pointer):
5376 No longer handle NULL values.
5378 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5380 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
5381 * value.c: Include "exceptions.h".
5382 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
5384 * cp-abi.c: Include gdb_assert.h.
5385 (baseclass_offset): Add `embedded_offset' and `val' parameters.
5386 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
5388 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
5389 parameters. No longer returns -1 on error.
5390 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
5392 * cp-valprint.c: Include exceptions.h.
5393 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
5394 the baseclass_offset. Handle unavailable base classes. Use
5395 val_print_invalid_address.
5396 * p-valprint.c: Include exceptions.h.
5397 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
5398 when fetching the baseclass_offset. No longer expect
5399 baseclass_offset returning -1. Handle unavailable base classes.
5400 Use val_print_invalid_address.
5401 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
5402 `valaddr' parameter, and change its type to gdb_byte pointer. Add
5403 `embedded_offset' and `val' parameters. Adjust.
5404 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
5405 parameter, and change its type to gdb_byte pointer. Add
5406 `embedded_offset' and `val' parameters. Adjust. No longer expect
5407 baseclass_offset returning -1.
5408 (value_dynamic_cast): Use value_contents_for_printing rather than
5409 value_contents. Adjust.
5410 (search_struct_field): No longer expect baseclass_offset returning
5412 (search_struct_method): If reading memory from the target is
5413 necessary, wrap it in a new value to pass to baseclass_offset. No
5414 longer expect baseclass_offset returning -1.
5415 (find_method_list): No longer expect baseclass_offset returning
5416 -1. Use value_contents_for_printing rather than value_contents.
5417 * valprint.c (val_print_invalid_address): New function.
5418 * valprint.h (val_print_invalid_address): Declare.
5419 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
5420 and `val' parameters. No longer expect baseclass_offset returning
5422 * gnu-v2-abi.c: Include "exceptions.h".
5423 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
5424 parameters. Handle unavailable memory. Recurse through
5425 gnuv2_baseclass_offset directly, rather than through
5426 baseclass_offset. No longer returns -1 on not found, instead
5428 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
5429 `val' parameters. Adjust.
5431 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5433 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
5434 almost but not quite adjacent.
5436 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5438 * value.h (value_entirely_available): Declare.
5439 * value.c (value_entirely_available): New function.
5440 * c-valprint.c (c_value_print): Don't try fetching the pointer's
5441 real type if the pointer is unavailable.
5443 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5445 * valops.c (value_repeat): Use read_value_memory instead of
5448 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5450 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
5451 * value.c (value_contents_copy_raw, value_contents_copy): New
5453 (value_primitive_field): Use value_contents_copy_raw instead of
5455 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
5457 (value_array, value_slice): Ditto.
5458 * valarith.c (value_subscripted_rvalue): Use
5459 value_contents_copy_raw instead of memcpy.
5461 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5463 <unavailable> references.
5465 * valops.c (get_value_at): Use value_from_contents_and_address,
5466 avoiding read_memory.
5468 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5470 * c-valprint.c (c_val_print): Print a string with unavailable
5471 contents as an array.
5473 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5475 * value.h (unpack_bits_as_long): Delete declaration.
5476 (unpack_value_bits_as_long): Declare.
5477 (unpack_value_field_as_long): Declare.
5478 (value_field_bitfield): Declare.
5479 * value.c (unpack_bits_as_long): Rename to...
5480 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
5481 value parameters. Return the extracted result in a new output
5482 parameter. If the value contents are unavailable, return false,
5483 otherwise return true.
5484 (unpack_value_bits_as_long): New.
5485 (unpack_field_as_long): Rename to...
5486 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
5487 Add embedded_offset and value parameters. Return the extracted
5488 result in a new output parameter. If the value contents are
5489 unavailable, return false, otherwise return true.
5490 (unpack_value_field_as_long): New.
5491 (unpack_field_as_long_1): New.
5492 (unpack_field_as_long): Reimplement as wrapper around
5493 unpack_value_field_as_long_1.
5494 (value_field_bitfield): New function.
5495 * valops.c (value_fetch_lazy): When fetching a bitfield, use
5496 unpack_value_bits_as_long. Mark the value as unavailable, if it
5498 * jv-valprint.c (java_print_value_fields): Use
5499 value_field_bitfield.
5500 * p-valprint.c (pascal_object_print_value_fields): Use
5501 value_field_bitfield.
5502 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
5504 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5506 * value.c (get_internalvar_integer): Also return the int value of
5507 TYPE_CODE_INT INTERNALVAR_VALUE values.
5508 (set_internalvar): Don't special case TYPE_CODE_INT.
5510 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5512 * value.c (struct internalvar) <enum internalvar_kind>: Remove
5513 INTERNALVAR_POINTER.
5515 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
5516 (set_internalvar): Remove special TYPE_CODE_PTR handling.
5517 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
5519 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5521 * value.h (value_available_contents_eq): Declare.
5522 * value.c (find_first_range_overlap): New function.
5523 (value_available_contents_eq): New function.
5524 * valprint.c (val_print_array_elements): Use
5525 value_available_contents_eq.
5526 * ada-valprint.c (val_print_packed_array_elements): Use
5527 value_available_contents_eq.
5528 * jv-valprint.c (java_value_print): Use
5529 value_available_contents_eq.
5531 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5533 * target.c (target_read_live_memory): New function.
5534 (memory_xfer_live_readonly_partial): New.
5535 (memory_xfer_partial): If reading from a traceframe, fallback to
5536 reading unavailable read-only memory from read-only regions of
5538 * tracepoint.c (disconnect_tracing): Adjust.
5539 (set_current_traceframe): New, factored out from
5540 set_traceframe_number.
5541 (set_traceframe_number): Reimplement to only change the traceframe
5542 number on the GDB side.
5543 (do_restore_current_traceframe_cleanup): Adjust.
5544 (make_cleanup_restore_traceframe_number): New.
5545 (cur_traceframe_number): New global.
5546 (tfile_open): Set cur_traceframe_number to no traceframe.
5547 (set_tfile_traceframe): New function.
5548 (tfile_trace_find): If looking up a traceframe using any method
5549 other than by number, make sure the current tfile traceframe
5550 matches gdb's current traceframe. Update the current tfile
5551 traceframe if the lookup succeeded.
5552 (tfile_fetch_registers, tfile_xfer_partial)
5553 (tfile_get_trace_state_variable_value): Make sure the remote
5554 traceframe matches gdb's current traceframe.
5555 * remote.c (remote_traceframe_number): New global.
5556 (remote_open_1): Set it to -1.
5557 (set_remote_traceframe): New function.
5558 (remote_fetch_registers, remote_store_registers)
5559 (remote_xfer_memory, remote_xfer_partial)
5560 (remote_get_trace_state_variable_value): Make sure the remote
5561 traceframe matches gdb's current traceframe.
5562 (remote_trace_find): If looking up a traceframe using any method
5563 other than by number, make sure the current remote traceframe
5564 matches gdb's current traceframe. Update the current remote
5565 traceframe if the lookup succeeded.
5566 * infrun.c (fetch_inferior_event): Adjust.
5567 * tracepoint.h (set_current_traceframe): Declare.
5568 (get_traceframe_number, set_traceframe_number): Add describing
5571 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5573 Mark pieces of values as unavailable if the corresponding memory
5576 * valops.c: Include tracepoint.h.
5577 (value_fetch_lazy): Use read_value_memory.
5578 (read_value_memory): New.
5579 * value.h (read_value_memory): Declare.
5580 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
5581 * exec.c (section_table_available_memory): New function.
5582 * exec.h (section_table_available_memory): Declare.
5584 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5586 * Makefile.in (SFILES): Add memrange.c.
5587 (HFILES_NO_SRCDIR): Add memrange.h.
5588 (COMMON_OBS): Add memrange.o.
5589 * memrange.c: New file.
5590 * memrange.h: New file.
5591 * tracepoint.c: Include memrange.h.
5592 (struct mem_range): Delete.
5593 (mem_range_s): Delete.
5594 (traceframe_available_memory): New function.
5595 * tracepoint.h (traceframe_available_memory): Declare.
5597 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5599 * target.h (struct traceframe_info): Forward declare.
5600 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
5601 (struct target_ops) <to_traceframe_info>: New field.
5602 (target_traceframe_info): New.
5603 * target.c (update_current_target): Inherit and default
5605 * remote.c (PACKET_qXfer_traceframe_info): New.
5606 (remote_protocol_features): Register qXfer:traceframe-info:read.
5607 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
5608 (remote_traceframe_info): New.
5609 (init_remote_ops): Install it.
5610 (_initialize_remote): Install "set/show remote traceframe-info"
5612 * tracepoint.h (parse_traceframe_info): Declare.
5613 * tracepoint.c (struct mem_range): New.
5614 (mem_range_s): New typedef.
5615 (struct traceframe_info): New.
5616 (traceframe_info): New global.
5617 (free_traceframe_info): New function.
5618 (clear_traceframe_info): New function.
5619 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
5621 (build_traceframe_info): New function.
5622 (tfile_traceframe_info): New function.
5623 (init_tfile_ops): Install tfile_traceframe_info.
5624 (traceframe_info_start_memory, free_result): New functions.
5625 (memory_attributes, traceframe_info_elements): New globals.
5626 (parse_traceframe_info, get_traceframe_info): New functions.
5627 * features/traceframe-info.dtd: New file.
5628 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
5630 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5632 Base support for <unavailable> value contents.
5634 * value.h (value_bytes_available): Declare.
5635 (mark_value_bytes_unavailable): Declare.
5636 * value.c (struct range): New struct.
5637 (range_s): New typedef.
5638 (ranges_overlap): New function.
5639 (range_lessthan): New function.
5640 (ranges_contain_p): New function.
5641 (struct value) <unavailable>: New field.
5642 (value_bytes_available): New function.
5643 (mark_value_bytes_unavailable): New function.
5644 (require_not_optimized_out): Constify parameter.
5645 (require_available): New function.
5646 (value_contents_all, value_contents): Require all bytes be
5648 (value_free): Free `unavailable'.
5649 (value_copy): Copy `unavailable'.
5650 * valprint.h (val_print_unavailable): Declare.
5651 * valprint.c (valprint_check_validity): Rename `offset' parameter
5652 to `embedded_offset'. If printing a scalar, check whether the
5653 value chunk is available.
5654 (val_print_unavailable): New.
5655 (val_print_scalar_formatted): Check whether the value is
5657 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
5658 pretty-printing unavailable values.
5660 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5662 Fix const/volatile qualifiers of C++ types, PR c++/12328.
5663 * c-typeprint.c (c_type_print_args): Update the function comment. New
5664 variable param_type, initialize it. Remove const/volatile qualifiers
5665 for language_cplus and !show_artificial. Use param_type.
5667 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5669 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
5670 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
5671 * symtab.h (struct symtab) <next>: Comment extension.
5673 2011-02-12 Yao Qi <yao@codesourcery.com>
5675 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
5677 2011-02-11 Yao Qi <yao@codesourcery.com>
5679 * common/Makefile.in: Add copyright header.
5681 2011-02-11 Pedro Alves <pedro@codesourcery.com>
5683 * infrun.c (proceed): Move switching out and in of tfind mode from
5685 (fetch_inferior_event): ... to here.
5687 2011-02-11 Yao Qi <yao@codesourcery.com>
5689 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5691 * configure.ac: Add common to sub dir.
5692 * configure: Regenerate.
5694 2011-02-11 Yao Qi <yao@codesourcery.com>
5698 * common/Makefile.in: New.
5699 * common/configure.ac: New.
5700 * common/aclocal.m4: New.
5701 * common/configure: Generate.
5703 2011-02-10 Pedro Alves <pedro@codesourcery.com>
5705 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
5706 side of the parenthesis.
5709 2010-07-13 Jakub Jelinek <jakub@redhat.com>
5710 * vec.h (VEC_block_remove): Fix comment.
5712 2011-02-08 Michael Snyder <msnyder@vmware.com>
5714 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
5716 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5718 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
5719 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
5722 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5725 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
5727 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
5728 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
5730 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5732 * dwarf2read.c (read_subroutine_type): Set special calling
5733 convention flag for functions compiled by IBM XL C for OpenCL.
5734 * ppc-sysv-tdep.c: Include "dwarf2.h"
5735 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
5737 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
5738 IBM OpenCL vector types calling convention.
5739 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
5740 (ppc_sysv_abi_broken_return_value): Likewise.
5741 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
5742 types calling convention.
5743 (ppc64_sysv_abi_return_value): Likewise.
5744 * spu-tdep.c: Include "dwarf2.h"
5745 (spu_return_value): Implement IBM OpenCL vector types calling
5748 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5750 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
5751 correct ABI for AltiVec vector arguments.
5753 2011-02-07 Pedro Alves <pedro@codesourcery.com>
5755 * valprint.c (val_print): Extend comment.
5756 * ada-valprint.c (ada_valprint): Rewrite comment deferring
5757 interface explanation to val_print.
5758 (ada_val_print_array): Adjust comment to current interface.
5759 (print_field_values): Adjust comment to current interface.
5760 * c-valprint.c (c_val_print): Rewrite comment deferring interface
5761 explanation to val_print.
5762 * f-valprint.c (f_val_print): Ditto.
5763 * jv-valprint.c (java_val_print): Ditto.
5764 * m2-valprint.c (m2_val_print): Ditto.
5765 * p-valprint.c (pascal_val_print): Ditto.
5767 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5769 * breakpoint.c (parse_breakpoint_sals): Fix description.
5771 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
5772 Oguz Kayral <oguzkayral@gmail.com>
5774 * python/py-inferior.c (python_on_normal_stop): New function.
5775 (python_on_resume): New function.
5776 (python_inferior_exit): New function.
5777 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5778 inferior_exit observers.
5779 * python/py-evtregistry.c: New file.
5780 * python/py-threadevent.c : New file.
5781 * python/py-event.c: New file.
5782 * python/py-evts.c: New file.
5783 * python/py-continueevent.c: New file.
5784 * python/py-bpevent.c: New file.
5785 * python/py-signalevent.c: New file.
5786 * python/py-exetiedevent.c: New file.
5787 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5788 Move struct breakpoint_object from here...
5789 * python/python-internal.h: ... to here.
5790 * python/py-event.h: New file.
5791 * python/py-events.h: New file.
5792 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5793 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5794 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5795 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5796 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5797 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5798 Add build rules for all the above.
5800 2011-02-04 Tom Tromey <tromey@redhat.com>
5802 * dwarf2read.c (dwarf2_section_empty_p): New function.
5803 (dwarf2_read_section): Use dwarf2_section_empty_p.
5804 (dwarf2_section_size): New function.
5805 (dwarf2_get_section_info): Unconditionally read section.
5806 (dwarf2_read_index): Use dwarf2_section_empty_p.
5807 (partial_read_comp_unit_head): Use dwarf2_section_size.
5808 (dwarf2_symbol_mark_computed): Likewise.
5810 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5812 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5814 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5816 * mips-linux-tdep.c: Include xml-syscall.h.
5817 (mips_linux_get_syscall_number): New function.
5818 (mips_linux_init_abi): Add calls to
5819 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5820 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5821 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5822 * syscalls/mips-n32-linux.xml: New file.
5823 * syscalls/mips-n64-linux.xml: New file.
5824 * syscalls/mips-o32-linux.xml: New file.
5826 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5828 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5829 Complain about inverted range entries.
5830 (dwarf2_record_block_ranges): Likewise.
5832 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5835 * breakpoint.c (update_watchpoint): Fix name of the
5836 update_global_location_list function.
5837 (print_one_breakpoint): Fix typo.
5838 (_initialize_breakpoint): Remove extra space in hbreak help
5840 * breakpoint.h (struct bp_location) <length>: Fix field
5843 2011-02-04 Pedro Alves <pedro@codesourcery.com>
5845 * regcache.c (registers_changed_ptid): Don't explictly always
5846 clear `current_regcache'. Only clear current_thread_ptid and
5847 current_thread_arch when PTID matches. Only reinit the frame
5848 cache if PTID matches the current inferior_ptid. Move alloca(0)
5850 (registers_changed): ... here.
5852 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
5854 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5855 starts with __stack_chk_guard as stack guard symbol.
5857 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
5859 * disasm.c (compare_lines): Handle the end of sequence markers
5860 within the line table to better support disassembling over
5861 compilation unit boundaries.
5863 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5865 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5866 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
5867 implementation even if no symbols are available.
5868 (thumb_analyze_prologue): Update call to skip_prologue_function.
5869 (arm_analyze_prologue): Likewise.
5871 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5873 * arm-tdep.c: Include "observer.h".
5874 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5875 (arm_exidx_data_key): New static variable.
5876 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5877 (struct arm_exidx_data): Likewise.
5878 (arm_exidx_data_free): New function.
5879 (arm_compare_exidx_entries): Likewise.
5880 (arm_obj_section_from_vma): Likewise.
5881 (arm_exidx_new_objfile): Likewise.
5882 (arm_find_exidx_entry): Likewise.
5883 (arm_exidx_fill_cache): Likewise.
5884 (arm_exidx_unwind_sniffer): Likewise.
5885 (arm_exidx_unwind): New global variable.
5886 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
5887 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
5888 observer. Register arm_exidx_data_key as objfile data.
5890 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5892 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
5893 due to accessing uninitialized variable. Fix indentation.
5895 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5897 * c-valprint.c (c_value_print): When doing virtual base pointer
5898 adjustment, create a new value with adjusted contents rather than
5899 changing the contents of the value being printed (and getting it
5902 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5904 * xml-support.c (xml_find_attribute): New.
5905 (xinclude_start_include): Use it.
5906 * xml-support.h (xml_find_attribute): Declare.
5907 * memory-map.c (memory_map_start_memory)
5908 (memory_map_start_property): Use xml_find_attribute.
5909 * osdata.c (osdata_start_osdata, osdata_start_column): Use
5911 * remote.c (start_thread): Use xml_find_attribute.
5912 * solib-target.c (library_list_start_segment)
5913 (library_list_start_section, library_list_start_library)
5914 (library_list_start_list): Use xml_find_attribute.
5915 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
5916 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
5917 (tdesc_start_field): Use xml_find_attribute.
5919 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
5921 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
5922 (BUILD_OCL_VTYPES): Update.
5924 2011-02-02 Joel Brobecker <brobecker@adacore.com>
5926 * configure.ac: Work around non-GNU sed limitation when computing
5927 python version number.
5928 * configure: Regenerate.
5930 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5932 Fix debug printing of TYPE_INSTANCE.
5933 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
5934 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
5936 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5938 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
5939 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
5940 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
5941 * ada-operator.inc: Rename the file to ...
5942 * ada-operator.def: ... here, wrap all the entries by macro OP.
5943 * expprint.c (op_name_standard): Remove all the entries. Include
5944 "std-operator.def" instead.
5945 * expression.h (enum exp_opcode): Include "std-operator.def" and
5946 "ada-operator.def". Move all the entries ...
5947 * std-operator.def: ... here, wrap all the entries by macro OP.
5949 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
5951 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
5952 * breakpoint.c (remove_jit_event_breakpoints): New function.
5953 * jit.c (jit_descriptor_addr): Delete.
5954 (registering_code): Delete.
5955 (clear_int): Delete.
5956 (jit_inferior_data): New variable.
5957 (struct jit_inferior_data): New type.
5958 (get_jit_inferior_data): New function.
5959 (jit_inferior_data_cleanup): New function.
5960 (jit_read_descriptor): Adjust.
5961 (jit_register_code): Adjust.
5962 (jit_breakpoint_re_set_internal): New function; move code here ...
5963 (jit_inferior_init): ... from here.
5964 (jit_breakpoint_re_set): Adjust.
5965 (jit_reset_inferior_data_and_breakpoints): New function.
5966 (jit_inferior_created_observer): Adjust.
5967 (jit_inferior_exit_hook): Adjust.
5968 (jit_executable_changed_observer): New function.
5969 (jit_event_handler): Adjust.
5970 (_initialize_jit): Adjust.
5972 2011-01-31 Michael Snyder <msnyder@vmware.com>
5974 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
5977 2011-01-31 Tom Tromey <tromey@redhat.com>
5980 * python/python.c (execute_gdb_command): Call
5981 prevent_dont_repeat.
5982 * top.c (suppress_dont_repeat): New global.
5983 (dont_repeat): Use it.
5984 (prevent_dont_repeat): New function.
5985 * command.h (prevent_dont_repeat): Declare.
5987 2011-01-31 Tom Tromey <tromey@redhat.com>
5989 * infcmd.c (finish_backward): Use breakpoint_set_silent.
5990 * python/py-breakpoint.c (bppy_set_silent): Use
5991 breakpoint_set_silent.
5992 (bppy_set_thread): Use breakpoint_set_thread.
5993 (bppy_set_task): Use breakpoint_set_task.
5994 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
5995 (breakpoint_set_task): Declare.
5996 (make_breakpoint_silent): Remove.
5997 * breakpoint.c (breakpoint_set_silent): New function.
5998 (breakpoint_set_thread): Likewise.
5999 (breakpoint_set_task): Likewise.
6000 (make_breakpoint_silent): Remove.
6002 2011-01-31 Tom Tromey <tromey@redhat.com>
6004 * breakpoint.h (user_breakpoint_p): Declare.
6005 * breakpoint.c (user_breakpoint_p): New function.
6006 (breakpoint_1): Use it.
6007 (save_breakpoints): Likewise.
6009 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6011 * configure.ac: Add handling of Python distribution on Windows.
6012 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
6013 sysconfig variables are not defined, then do not use them.
6014 On Windows, if LIBPL is not defined, then use prefix + '/libs'
6015 instead. On Windows, return all paths using forward-slashes
6016 rather than backslashes.
6018 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6020 * configure.ac: Remove fallback behavior for building
6021 against Python. Remove tweaking of Python include path.
6022 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
6023 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
6024 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
6025 Always restore CPPFLAGS and LIBS after linking test.
6026 * configure: Regenerated.
6027 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
6028 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
6029 * python/python-internal.h: Adjust includes of Python .h files.
6031 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6033 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
6036 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6038 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
6041 2011-01-31 Yao Qi <yao@codesourcery.com>
6043 * arm-linux-nat.c: Update calls to regcache_register_status
6044 instead of regcache_valid_p.
6045 * aix-thread.c: Likewise.
6046 * i386gnu-nat.c: Likewise.
6048 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6051 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
6052 touching TYPE_FIELD_ARTIFICIAL.
6054 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
6056 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
6059 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6061 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
6062 selected, don't try iterating over the traceframe's blocks.
6063 (tfile_has_stack): If there's no traceframe selected, then there's
6065 (tfile_has_registers): If there's no traceframe selected, then
6066 there's no registers.
6068 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6070 * target.c (memory_xfer_partial): No need to restore shadows if we
6071 haven't read anything.
6073 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6075 * mips-tdep.c (mips_print_register): Use get_frame_register_value
6076 and val_print_scalar_formatted.
6078 2011-01-27 Pedro Alves <pedro@codesourcery.com>
6080 * tracepoint.c (tfile_read): New.
6081 (tfile_open): Use it.
6082 (tfile_get_traceframe_address): Use it.
6083 (tfile_trace_find): Use it.
6084 (walk_blocks_callback_func): New typedef.
6085 (match_blocktype): New function.
6086 (traceframe_walk_blocks): New function.
6087 (traceframe_find_block_type): New function.
6088 (tfile_fetch_registers, tfile_xfer_partial)
6089 (tfile_get_trace_state_variable_value): Use
6090 traceframe_find_block_type and tfile_read.
6092 2011-01-26 Kevin Buettner <kevinb@redhat.com>
6094 * remote-mips.c: Add internationalization mark ups. Remove
6095 trailing \n from already marked up strings.
6097 2011-01-26 Tom Tromey <tromey@redhat.com>
6099 * python/py-prettyprint.c (print_string_repr): Clear
6100 'addressprint' option when calling val_print_string.
6101 (print_children): Handle Val_pretty_default. Clear 'addressprint'
6102 option when calling val_print_string.
6104 2011-01-26 Tom Tromey <tromey@redhat.com>
6106 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
6108 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
6110 (gdb_py_longest, gdb_py_ulongest): New typedefs.
6111 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
6112 (gdb_py_long_as_ulongest): New defines.
6113 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
6114 (gdb_py_int_as_long): Declare.
6115 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
6116 GDB_PY_LL_ARG, gdb_py_object_from_longest.
6117 (valpy_long): Add comment.
6118 * python/py-utils.c (get_addr_from_python): Use
6119 gdb_py_long_as_ulongest. Handle overflow properly.
6120 (gdb_py_object_from_longest): New function.
6121 (gdb_py_object_from_ulongest): Likewise.
6122 (gdb_py_int_as_long): Likewise.
6123 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
6124 * python/py-symtab.c (salpy_get_pc): Use
6125 gdb_py_long_from_ulongest.
6126 (salpy_get_line): Use PyInt_FromLong.
6127 * python/py-param.c (set_parameter_value): Use
6129 * python/py-lazy-string.c (stpy_get_address): Use
6130 gdb_py_long_from_ulongest.
6131 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
6132 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
6133 * python/py-breakpoint.c (bppy_set_thread): Use
6135 (bppy_set_task): Likewise.
6136 (bppy_set_ignore_count): Likewise.
6137 (bppy_set_hit_count): Likewise.
6138 * python/py-block.c (blpy_get_start): Use
6139 gdb_py_object_from_ulongest.
6140 (blpy_get_end): Likewise.
6141 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
6143 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
6146 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
6147 * gdb/solib.c (solib_read_symbols): Check for addr_low in
6148 equality test for objfile, initialize addr_low if needed.
6150 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6152 * tui/tui-regs.c (tui_register_format): Remove dead code.
6154 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6156 * printcmd.c (print_formatted): Use val_print_scalar_formatted
6157 instead of print_scalar_formatted.
6158 (print_scalar_formatted): Don't handle 's' format strings here,
6159 and add an assertion that we never see such format here.
6160 * valprint.h (val_print_scalar_formatted): Declare.
6161 * valprint.c (val_print_scalar_formatted): New.
6162 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
6163 instead of print_scalar_formatted.
6164 * jv-valprint.c (java_val_print): Ditto.
6165 * p-valprint.c (pascal_val_print): Ditto.
6166 * ada-valprint.c (ada_val_print_1): Ditto.
6167 * f-valprint.c (f_val_print): Ditto.
6168 * infcmd.c (registers_info): Ditto.
6169 * m2-valprint.c (m2_val_print): Ditto.
6171 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6173 * m2-valprint.c (print_unbounded_array): Pass
6174 value_contents_for_printing rather than value_contents, to
6175 m2_print_array_contents. Also pass in the value.
6177 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6179 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
6180 (save_gdb_index_command): Switch to .gdb_index version 4.
6182 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6184 * mi/mi-main.c (get_register): Use get_frame_register_value rather
6185 than frame_register, and always pass a valid value to val_print.
6187 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6189 Centralize printing "<optimized out>".
6191 * valprint.h (val_print_optimized_out): Declare.
6192 * cp-valprint.c (cp_print_value_fields): Use
6193 val_print_optimized_out.
6194 * jv-valprint.c (java_print_value_fields): Ditto.
6195 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6196 * printcmd.c (print_formatted): Ditto.
6197 * valprint.c (valprint_check_validity): Ditto.
6198 (value_check_printable): Ditto.
6199 (val_print_optimized_out): New.
6201 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6203 * infcmd.c (default_print_registers_info): Allocate values so to
6204 never pass a NULL value to val_print.
6206 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6208 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
6209 boolean. Make sure to always pass a value that matches the
6210 contents buffer to callees. Preserve `address' for following
6212 * value.c (value_contents_for_printing_const): New.
6213 (value_address): Constify value argument.
6214 * value.h (value_contents_for_printing_const): Declare.
6215 (value_address): Constify value argument.
6217 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6219 * regcache.c (struct regcache_descr): Rename
6220 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
6221 and sizeof_cooked_register_valid_p to
6222 sizeof_cooked_register_status.
6223 (init_regcache_descr): Adjust.
6224 (struct regcache): Rename register_valid_p field to
6226 (regcache_xmalloc_1, regcache_xfree, regcache_save)
6227 (do_cooked_read): Adjust.
6228 (regcache_valid_p): Rename to ...
6229 (regcache_register_status): ... this. Adjust.
6230 (regcache_invalidate): Adjust.
6231 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
6233 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
6234 as unavailable, not valid.
6235 (regcache_dump): Adjust.
6236 * regcache.h (enum register_status): New.
6237 (regcache_register_status): Declare.
6238 (regcache_invalidate): Delete declaration.
6239 * corelow.c (get_core_registers): Adjust.
6240 * tracepoint.c (tfile_fetch_registers): Adjust.
6241 * trad-frame.c (REG_VALUE): Rename to ...
6242 (TF_REG_VALUE): ... this.
6243 (REG_UNKNOWN): Rename to ...
6244 (TF_REG_UNKNOWN): ... this.
6245 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
6246 * mi/mi-main.c (register_changed_p): Adjust.
6248 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6250 * regcache.c (struct regcache_descr): Remove outdated comment.
6251 (init_regcache_descr): Remove sizeof_raw_register_valid_p
6253 (regcache_xmalloc): Rename to ...
6254 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
6255 Allocate the regcache type accordingly.
6256 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
6257 (regcache_xfree): Asser the source is also readonly. Copy sizeof
6258 cooked registers, not raw.
6259 (regcache_dup_no_passthrough): Delete.
6260 (get_thread_arch_regcache): Use regcache_xmalloc_1.
6261 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
6262 mention obsolete write_register_bytes.
6263 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
6265 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6267 Stop remote_read_bytes from handling partial reads itself.
6269 * remote-fileio.c: Include target.h.
6270 (remote_fileio_write_bytes): Delete.
6271 (remote_fileio_func_open, remote_fileio_func_write)
6272 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
6274 (remote_fileio_func_stat): Use target_read_memory and
6275 target_write_memory.
6276 (remote_fileio_func_gettimeofday): Use target_write_memory.
6277 (remote_fileio_func_system): Use target_read_memory.
6278 * remote.c (remote_write_bytes): Make it static.
6279 (remote_read_bytes): Don't handle partial reads here.
6280 * remote.h (remote_read_bytes): Delete declaration.
6282 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6284 Simplify XML parsing a bit.
6286 * xml-support.h (gdb_xml_parse_quick): Declare.
6287 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
6288 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
6290 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
6291 gdb_xml_create_parser_and_cleanup_1.
6292 (gdb_xml_parse_quick): New.
6293 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
6294 * osdata.c (osdata_parse): Ditto.
6295 * remote.c (remote_threads_info): Ditto.
6296 * solib-target.c (solib_target_parse_libraries): Ditto.
6297 * xml-syscall.c (syscall_parse_xml): Ditto.
6298 * xml-tdesc.c (tdesc_parse_xml): Ditto.
6300 2011-01-24 Kevin Buettner <kevinb@redhat.com>
6302 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
6303 with remote-mips.o added to gdb_target_obs.
6304 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
6306 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6308 * ada-valprint.c (val_print_packed_array_elements): Pass the
6309 correct struct value to val_print.
6310 (ada_val_print_1): Ditto.
6312 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6314 Don't lose embedded_offset in printing routines throughout.
6316 * valprint.h (val_print_array_elements): Change prototype.
6317 * valprint.c (val_print_array_elements): Add `embedded_offset'
6318 parameter, and adjust to pass it down to val_print, while passing
6319 `valaddr' or `address' unmodified. Take embedded_offset into
6320 account when checking repetitions.
6321 * c-valprint.c (c_val_print): Pass embedded_offset to
6322 val_print_array_elements instead of adjusting `valaddr' and
6324 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
6325 embedded_offset to val_print_array_elements instead of adjusting
6327 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
6328 * p-valprint.c (pascal_val_print): Pass embedded_offset to
6329 val_print_array_elements and pascal_object_print_value_fields
6330 instead of adjusting `valaddr'.
6331 (pascal_object_print_value_fields): Add `offset' parameter, and
6333 (pascal_object_print_value): Add `offset' parameter, and adjust to
6335 (pascal_object_print_static_field): Use
6336 value_contents_for_printing/value_embedded_offset, rather than
6338 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
6339 parameter, and adjust to use it. Use
6340 value_contents_for_printing/value_embedded_offset, rather than
6342 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
6343 (ada_val_print_array): Add `offset' parameter, and adjust to use
6345 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
6346 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
6347 Instead work with offsets. Use
6348 value_contents_for_printing/value_embedded_offset, rather than
6349 value_contents. Change `defer_val_int' local type to CORE_ADDR,
6350 and use value_from_pointer to extract a target pointer, rather
6351 than value_from_longest.
6352 (print_variant_part): Add `offset' parameter. Replace
6353 `outer_valaddr' parameter by a new `outer_offset' parameter.
6354 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6355 (ada_value_print): Use
6356 value_contents_for_printing/value_embedded_offset, rather than
6358 (print_record): Add `offset' parameter, and adjust to pass it
6360 (print_field_values): Add `offset' parameter. Replace
6361 `outer_valaddr' parameter by a new `outer_offset' parameter.
6362 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6363 Use value_contents_for_printing/value_embedded_offset, rather than
6365 * d-valprint.c (dynamic_array_type): Use
6366 value_contents_for_printing/value_embedded_offset, rather than
6368 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
6369 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6370 (java_print_value_fields): Take `offset' into account. Don't
6371 re-adjust `valaddr'. Instead pass down adjusted offsets.
6372 (java_val_print): Take `embedded_offset' into account. Pass it to
6373 java_print_value_fields.
6374 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
6375 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
6376 down adjusted offsets.
6377 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
6378 (f_val_print): Take `embedded_offset' into account.
6380 2011-01-21 Joel Brobecker <brobecker@adacore.com>
6382 * inflow.c: Include "gdbcmd.h".
6383 (interactive_mode): New static global, moved here from top.c.
6384 (show_interactive_mode): New function, moved here from top.c.
6385 use gdb_has_a_terminal instead of input_from_terminal_p to
6386 determine the current mode.
6387 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
6389 (_initialize_inflow): Add the "set/show interactive-mode"
6390 commands. Moved here from top.c, after having adjusted slightly
6392 * top.c (interactive_mode, show_interactive_mode): Delete, moved
6394 (input_from_terminal_p): Remove handling of "interactive-mode"
6395 setting, moved to infow.c.
6396 (init_main): Remove creation of the "set/show interactive-mode"
6397 commands, moved to inflow.c.
6399 2011-01-19 Joel Brobecker <brobecker@adacore.com>
6401 * NEWS: Add entry for native ia64-hpux support.
6403 2011-01-19 Tom Tromey <tromey@redhat.com>
6406 * thread.c (free_thread): Free 'name'.
6407 (print_thread_info): Emit thread name. Change CLI output.
6408 (thread_name_command): New function.
6409 (do_captured_thread_select): Emit newline.
6410 (_initialize_thread): Register 'thread name' command.
6411 * target.h (struct target_ops) <to_thread_name>: New field.
6412 (target_thread_name): New macro.
6413 * target.c (update_current_target): Handle to_thread_name.
6414 * python/py-infthread.c (thpy_get_name): New function.
6415 (thpy_set_name): Likewise.
6416 (thread_object_getset): Add "name".
6417 * linux-nat.c (linux_nat_thread_name): New function.
6418 (linux_nat_add_target): Set to_thread_name.
6419 * gdbthread.h (struct thread_info) <name>: New field.
6421 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6423 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
6424 (ada_val_print_1): Likewise.
6426 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6428 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
6429 upper limit address is not greater than the function end address
6430 when the upper limit could not be computed using the debugging
6433 2011-01-17 Tom Tromey <tromey@redhat.com>
6435 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
6437 * utils.c: Include gdb_regex.h.
6438 (do_regfree_cleanup): New function.
6439 (make_regfree_cleanup): Likewise.
6440 (get_regcomp_error): Likewise.
6441 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
6443 2011-01-17 Tom Tromey <tromey@redhat.com>
6445 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
6448 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6450 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
6451 for internal variables.
6452 (last_was_structop): New static variable.
6453 (COMPLETE): New token.
6454 (field_exp): New rule to group all '.' suffix handling.
6455 Add mark_struct_expression calls when approriate to be able
6456 to correctly find fields for completion.
6457 (yylex): Adapt to handle field completion and set INTVAR when
6460 2011-01-14 Yao Qi <yao@codesourcery.com>
6462 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
6463 save_reggroup, restore_reggroup and all_reggroup.
6465 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6467 * ada-valprint. (ada_printchar): Use the correct type length
6468 in call to ada_emit_char.
6469 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
6471 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6473 * solib-som.h (hpux_major_release): Declare variable here.
6474 * solib-som.c: Remove <sys/utsname.h> header.
6475 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
6476 (hpux_major_release): Make global, change default value to
6477 DEFAULT_HPUX_MAJOR_RELEASE.
6478 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
6479 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
6480 Add "solib-som.h" header.
6481 (set_hpux_major_release): New function.
6482 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
6484 2011-01-14 Mike Frysinger <vapier@gentoo.org>
6486 * configure.tgt (*-*-uclinux*): Match more Linux os targets
6488 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6490 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
6491 new-line at end of warning message.
6492 (ia64_hpux_store_register): Remove trailing new-line at end of
6494 * ia64-hpux-tdep.c: Rephrase comment.
6495 * solib-ia64-hpux.c (struct dld_info): Change type of field
6496 dld_flags from "long long" to ULONGEST.
6498 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6500 * target.h (deprecated_child_ops): Delete declaration.
6501 * target.c (deprecated_child_ops): Delete definition.
6503 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6505 * Makefile.in (hpux-thread.o): Delete rule.
6506 * configure.ac: Don't check for HPUX DCE threads support.
6507 * configure, config.in: Regenerate.
6508 * hppa-hpux-nat.c (child_suppress_run): Delete.
6509 (hppa_hpux_child_can_run): Delete.
6510 (_initialize_hppa_hpux_nat): Don't override to_can_run.
6511 * hpux-thread.c: Delete.
6513 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6515 * hpux-thread.c (hpux_pid_to_str): Delete.
6517 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6519 * ada-valprint.c (ada_emit_char): Remove strange code.
6520 Check that c is <= UCHAR_MAX before passing it to isascii.
6521 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
6523 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6525 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
6526 to the case where instream is stdin.
6528 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6530 * ia64-tdep.h (struct regcache): Forward declare.
6531 (struct ia64_infcall_ops): New struct type.
6532 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
6534 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
6535 Renames ia64_find_global_pointer.
6536 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
6537 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
6538 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
6540 (ia64_infcall_ops): New static global constant.
6541 (ia64_gdbarch_init): Set tdep->infcall_ops.
6542 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
6543 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
6544 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
6545 (ia64_hpux_dummy_code): New static global constant.
6546 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
6547 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
6548 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
6550 (ia64_hpux_infcall_ops): New static global constant.
6551 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
6552 for inferior function calls to work properly on ia64-hpux.
6554 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6556 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
6557 * ia64-tdep.h (struct frame_info): forward declaration.
6558 (struct gdbarch_tdep): Add field size_of_register_frame.
6559 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
6560 to determine the size of the register frame.
6561 (ia64_size_of_register_frame): New function.
6562 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
6563 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
6564 (IA64_HPUX_UREG_REASON): New macro.
6565 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
6567 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
6568 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
6569 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
6572 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6574 Add support for ia64-hpux.
6575 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
6576 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
6578 * configure.host: Add handling for ia64-hpux hosts. Add associated
6580 * configure.tgt: Add handling for ia64-hpux targets.
6581 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
6582 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
6583 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
6585 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6587 [ttrace] Compute thread list immediately after attach.
6588 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
6590 (inf_ttrace_attach): Use it.
6592 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6594 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
6595 if we could not determine the frame's function address. Instead,
6596 use the frame's PC, and then continue.
6598 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6600 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
6601 not already defined.
6603 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6605 * ia64-tdep.c (ia64_struct_type_p): New function.
6606 (ia64_extract_return_value): Handle integral values that are
6607 less than 8 bytes long.
6608 (ia64_push_dummy_call): Likewise.
6610 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6612 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
6613 floatformat_ia64_ext.
6614 (floatformat_ia64_ext_big): New static const.
6615 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
6617 2011-01-12 Tom Tromey <tromey@redhat.com>
6619 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
6621 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
6622 (mi_cmd_thread_list_ids): Likewise.
6623 (mi_cmd_data_list_changed_registers): Likewise.
6624 (mi_cmd_data_list_register_values): Likewise.
6625 (mi_cmd_data_write_register_values): Likewise.
6626 (mi_cmd_data_evaluate_expression): Likewise.
6627 (mi_cmd_data_read_memory): Likewise.
6628 (mi_cmd_data_read_memory_bytes): Likewise.
6629 (mi_cmd_data_write_memory): Likewise.
6630 (mi_cmd_enable_timings): Likewise.
6631 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
6632 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
6633 (mi_cmd_var_delete): Likewise.
6634 (mi_cmd_var_set_format): Likewise.
6635 (mi_cmd_var_show_format): Likewise.
6636 (mi_cmd_var_info_num_children): Likewise.
6637 (mi_cmd_var_list_children): Likewise.
6638 (mi_cmd_var_info_type): Likewise.
6639 (mi_cmd_var_info_expression): Likewise.
6640 (mi_cmd_var_show_attributes): Likewise.
6641 (mi_cmd_var_assign): Likewise.
6642 (mi_cmd_var_update): Likewise.
6643 (mi_cmd_enable_pretty_printing): Likewise.
6644 (mi_cmd_var_set_update_range): Likewise.
6645 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
6647 (mi_cmd_target_file_put): Likewise.
6648 (mi_cmd_target_file_delete): Likewise.
6649 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
6651 (mi_cmd_stack_info_depth): Likewise.
6652 (mi_cmd_stack_list_locals): Likewise.
6653 (mi_cmd_stack_list_args): Likewise.
6654 (mi_cmd_stack_select_frame): Likewise.
6655 (mi_cmd_stack_select_frame): Likewise.
6656 (mi_cmd_stack_info_frame): Likewise.
6657 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
6659 (mi_cmd_file_list_exec_source_files): Likewise.
6660 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
6661 (mi_cmd_env_cd): Likewise.
6662 (mi_cmd_env_path): Likewise.
6663 (mi_cmd_env_dir): Likewise.
6664 (mi_cmd_inferior_tty_show): Likewise.
6665 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
6666 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
6667 (mi_cmd_break_watch): Likewise.
6669 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
6671 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
6672 (ppc_linux_insert_hw_breakpoint): Likewise.
6673 (ppc_linux_remove_hw_breakpoint): Likewise.
6674 (ppc_linux_insert_watchpoint): Likewise.
6676 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6677 Jan Kratochvil <jan.kratochvil@redhat.com>
6679 PR fortran/11104 and DWARF unbound arrays detection.
6680 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
6681 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
6682 unspecified upper bound.
6683 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
6684 variables array_size_array, tmp_type and offset_item. New variable
6685 array. Remove call to f77_get_upperbound. New variables array_type
6686 and index. Call value_subscripted_rvalue for each dimenasion. Remove
6687 the final call to deprecated_set_value_type.
6689 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6691 Make value allocations more lazy.
6692 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
6693 instead of allocate_value and set_value_lazy when possible.
6694 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
6695 instead of allocate_value and set_value_lazy.
6696 * findvar.c (value_of_register_lazy): Likewise.
6697 (read_var_value): Remove V preallocation, call just check_typedef in
6698 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
6699 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
6700 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
6701 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
6702 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
6703 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
6704 the end, remove set_value_lazy there.
6705 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
6706 instead of allocate_value and set_value_lazy when possible.
6707 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
6708 * value.c (allocate_computed_value): Use allocate_value_lazy instead
6709 of allocate_value and set_value_lazy.
6710 (value_from_contents_and_address): Use allocate_value_lazy instead of
6711 allocate_value and set_value_lazy when possible.
6713 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6715 * disasm.c (dump_insns): Support dumping opcodes for MI.
6716 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
6717 dumping of instruction opcodes.
6719 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
6721 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
6724 2011-01-11 Tom Tromey <tromey@redhat.com>
6726 * thread.c (do_captured_thread_select): Emit newline before
6729 2011-01-11 Michael Snyder <msnyder@vmware.com>
6731 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
6732 * score-tdep.c: Ditto.
6733 * score-tdep.h: Ditto.
6734 * ser-base.c: Ditto.
6735 * ser-go32.c: Ditto.
6738 * ser-mingw.c: Ditto.
6739 * ser-pipe.c: Ditto.
6741 * ser-unix.c: Ditto.
6742 * sh64-tdep.c: Ditto.
6743 * shnbsd-nat.c: Ditto.
6747 * solib-darwin.c: Ditto.
6748 * solib-frv.c: Ditto.
6750 * solib-irix.c: Ditto.
6751 * solib-osf.c: Ditto.
6752 * solib-pa64.c: Ditto.
6753 * solib-som.c: Ditto.
6754 * solib-spu.c: Ditto.
6755 * solib-sunos.c: Ditto.
6756 * solib-svr4.c: Ditto.
6758 * sol-thread.c: Ditto.
6762 * sparc64-linux-tdep.c: Ditto.
6763 * sparc64-tdep.c: Ditto.
6764 * sparc-linux-nat.c: Ditto.
6765 * sparc-linux-tdep.c: Ditto.
6766 * sparc-sol2-nat.c: Ditto.
6767 * sparc-sol2-tdep.c: Ditto.
6768 * sparc-tdep.c: Ditto.
6769 * sparc-tdep.h: Ditto.
6770 * spu-tdep.c: Ditto.
6771 * stabsread.c: Ditto.
6772 * stabsread.h: Ditto.
6780 * target-descriptions.c: Ditto.
6781 * target-descriptions.h: Ditto.
6783 * target-memory.c: Ditto.
6784 * terminal.h: Ditto.
6787 * tracepoint.c: Ditto.
6788 * tracepoint.h: Ditto.
6789 * trad-frame.h: Ditto.
6790 * typeprint.c: Ditto.
6792 2011-01-11 Michael Snyder <msnyder@vmware.com>
6794 * ui-file.c: Comment cleanup, mostly periods and spaces.
6799 * v850-tdep.c: Ditto.
6800 * valarith.c: Ditto.
6802 * valprint.c: Ditto.
6803 * valprint.h: Ditto.
6808 * vax-tdep.c: Ditto.
6812 * windows-nat.c: Ditto.
6813 * windows-tdep.c: Ditto.
6814 * xcoffread.c: Ditto.
6815 * xcoffsolib.c: Ditto.
6816 * xml-support.c: Ditto.
6817 * xstormy16-tdep.c: Ditto.
6818 * xtensa-tdep.c: Ditto.
6819 * xtensa-tdep.h: Ditto.
6821 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6823 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6824 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6826 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6827 Thiago Jung Bauermann <bauerman@br.ibm.com>
6829 Implement support for PowerPC BookE ranged watchpoints.
6831 (struct breakpoint_ops) <resources_needed>: New method.
6832 Initialize to NULL in all existing breakpoint_ops instances.
6833 (struct breakpoint) <exact>: New field.
6834 (target_exact_watchpoints): Declare external global.
6835 * breakpoint.c (target_exact_watchpoints): New global flag.
6836 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6837 b->enable_state to bp_enabled before calling
6838 hw_watchpoint_used_count.
6839 (hw_watchpoint_used_count): Iterate over all bp_locations in a
6840 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
6842 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6843 if the watchpoint is exact.
6844 (resources_needed_watchpoint): New function.
6845 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6846 (watch_command_1): Set b->exact if the user asked for an exact
6847 watchpoint and one can be set.
6848 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6849 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6850 the user asks for an exact watchpoint and one can be set. Return
6851 number of needed debug registers to watch the expression.
6852 * gdbtypes.c (is_scalar_type): New function, based on
6853 valprint.c:scalar_type_p.
6854 (is_scalar_type_recursive): New function.
6855 * gdbtypes.h (is_scalar_type_recursive): Declare.
6856 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6857 handle regions when ranged watchpoints are available.
6858 (create_watchpoint_request): New function.
6859 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6860 create_watchpoint_request.
6861 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6862 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6863 `set powerpc' and `show powerpc' commands.
6864 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6865 Mention documentation comment in the target macro.
6866 (target_region_ok_for_hw_watchpoint): Document return value.
6868 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6870 * breakpoint.c (update_watchpoint): Decide on using a software or
6871 hardware watchpoint after the bp_locations are created.
6873 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6875 Convert hardware watchpoints to use breakpoint_ops.
6876 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6877 <insert_location>: ... this. Return int instead of void.
6878 Accept pointer to struct bp_location instead of pointer to
6879 struct breakpoint. Adapt all implementations.
6880 (breakpoint_ops) <remove>: Rename to...
6881 <remove_location>: ... this. Accept pointer to struct bp_location
6882 instead of pointer to struct breakpoint. Adapt all implementations.
6883 * breakpoint.c (insert_catchpoint): Delete function.
6884 (insert_bp_location): Call the watchpoint or catchpoint's
6885 breakpoint_ops.insert method.
6886 (remove_breakpoint_1): Call the watchpoint or catchpoint's
6887 breakpoint_ops.remove method.
6888 (insert_watchpoint, remove_watchpoint): New functions.
6889 (watchpoint_breakpoint_ops): New structure.
6890 (watch_command_1): Initialize the OPS field.
6891 * inf-child.c (inf_child_insert_fork_catchpoint)
6892 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
6893 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
6894 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
6896 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
6897 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
6898 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
6899 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
6900 * target.c (update_current_target): Change default implementation of
6901 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
6902 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
6903 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
6904 to_set_syscall_catchpoint to return_one.
6905 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
6906 (debug_to_insert_exec_catchpoint): Report return value.
6907 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
6908 (to_insert_exec_catchpoint): Change declaration to return int instead
6911 2011-01-11 Michael Snyder <msnyder@vmware.com>
6913 * arm-tdep.c: Internationalization.
6916 * fork-child.c: Ditto.
6917 * nto-procfs.c: Ditto.
6918 * ppc-sysv-tdep.c: Ditto.
6920 * remote-mips.c: Ditto.
6922 * rs6000-nat.c: Ditto.
6923 * rs6000-tdep.c: Ditto.
6927 * xml-support.c: Ditto.
6928 * mi/mi-cmd-break.c: Ditto.
6929 * mi/mi-cmd-var.c: Ditto.
6930 * mi/mi-interp.c: Ditto.
6931 * mi/mi-main.c: Ditto.
6933 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
6935 * remote-sim.c (gdbsim_store_register): Update API to
6936 sim_store_register to check more error conditions.
6938 2011-01-10 Michael Snyder <msnyder@vmware.com>
6940 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
6941 * nto-tdep.c: Ditto.
6942 * nto-tdep.h: Ditto.
6943 * objc-exp.y: Ditto.
6944 * objc-lang.c: Ditto.
6945 * objfiles.c: Ditto.
6946 * objfiles.h: Ditto.
6947 * observer.c: Ditto.
6948 * opencl-lang.c: Ditto.
6951 * parser-defs.h: Ditto.
6954 * posix-hdep.c: Ditto.
6955 * ppcbug-rom.c: Ditto.
6956 * ppc-linux-nat.c: Ditto.
6957 * ppc-linux-tdep.c: Ditto.
6958 * ppc-linux-tdep.h: Ditto.
6959 * ppcnbsd-tdep.c: Ditto.
6960 * ppcobsd-tdep.c: Ditto.
6961 * ppcobsd-tdep.h: Ditto.
6962 * ppc-sysv-tdep.c: Ditto.
6963 * ppc-tdep.h: Ditto.
6964 * printcmd.c: Ditto.
6965 * proc-abi.c: Ditto.
6966 * proc-flags.c: Ditto.
6968 * proc-utils.h: Ditto.
6969 * progspace.h: Ditto.
6970 * prologue-value.c: Ditto.
6971 * prologue-value.h: Ditto.
6972 * psympriv.h: Ditto.
6974 * p-typeprint.c: Ditto.
6975 * p-valprint.c: Ditto.
6976 * ravenscar-sparc-thread.c: Ditto.
6977 * ravenscar-thread.c: Ditto.
6978 * ravenscar-thread.h: Ditto.
6980 * regcache.c: Ditto.
6981 * regcache.h: Ditto.
6983 * remote-fileio.c: Ditto.
6984 * remote-fileio.h: Ditto.
6986 * remote-m32r-sdi.c: Ditto.
6987 * remote-mips.c: Ditto.
6988 * remote-sim.c: Ditto.
6989 * rs6000-aix-tdep.c: Ditto.
6990 * rs6000-nat.c: Ditto.
6991 * rs6000-tdep.c: Ditto.
6993 2011-01-10 Michael Snyder <msnyder@vmware.com>
6995 * charset.c (validate): Internationalization.
6996 * coffread.c (read_one_sym): Ditto.
6997 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
6998 * h8300-tdep.c (H8300_extract_return_value): Ditto.
6999 * inflow.c (new_tty): Ditto.
7000 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
7001 * m32c-tdep.c (m32c_return_value): Ditto.
7002 * mep-tdep.c (mep_store_return_value): Ditto.
7003 * score-tdep.c (score7_fetch_insn): Ditto.
7004 * ser-mingw.c (pipe_windows_open): Ditto.
7005 * sh64-tdep.c (sh64_extract_return_value): Ditto.
7006 * spu-tdep.c (spu_register_type): Ditto.
7007 * tracepoint.c (trace_find_command): Ditto.
7008 * valarith.c (value_pos): Ditto.
7010 2011-01-10 Joel Brobecker <brobecker@adacore.com>
7012 * ada-valprint.c (printstr): Minor comment reformatting.
7014 2011-01-08 Michael Snyder <msnyder@vmware.com>
7016 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
7019 2011-01-08 Michael Snyder <msnyder@vmware.com>
7021 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
7022 * hppa-hpux-tdep.c: Ditto.
7023 * hppa-linux-nat.c: Ditto.
7024 * hppa-linux-tdep.c: Ditto.
7025 * hppanbsd-tdep.c: Ditto.
7026 * hppa-tdep.c: Ditto.
7027 * hppa-tdep.h: Ditto.
7028 * hpux-thread.c: Ditto.
7029 * i386-cygwin-tdep.c: Ditto.
7030 * i386-darwin-nat.c: Ditto.
7031 * i386gnu-nat.c: Ditto.
7032 * i386-linux-nat.c: Ditto.
7033 * i386-linux-tdep.c: Ditto.
7034 * i386-nat.c: Ditto.
7035 * i386-nat.h: Ditto.
7036 * i386nbsd-tdep.c: Ditto.
7037 * i386-sol2-nat.c: Ditto.
7038 * i386-stub.c: Ditto.
7039 * i386-tdep.c: Ditto.
7040 * i386-tdep.h: Ditto.
7041 * i387-tdep.c: Ditto.
7042 * ia64-linux-nat.c: Ditto.
7043 * ia64-linux-tdep.c: Ditto.
7044 * ia64-tdep.c: Ditto.
7048 * inferior.c: Ditto.
7049 * inferior.h: Ditto.
7055 * iq2000-tdep.c: Ditto.
7056 * irix5-nat.c: Ditto.
7062 * jv-typeprint.c: Ditto.
7063 * jv-valprint.c: Ditto.
7064 * language.c: Ditto.
7065 * language.h: Ditto.
7066 * linespec.c: Ditto.
7067 * linux-fork.c: Ditto.
7068 * linux-nat.c: Ditto.
7069 * linux-thread-db.c: Ditto.
7070 * lm32-tdep.c: Ditto.
7072 2011-01-08 Michael Snyder <msnyder@vmware.com>
7074 * m2-exp.y: Comment cleanup, mostly periods and spaces.
7076 * m2-typeprint.c: Ditto.
7077 * m2-valprint.c: Ditto.
7078 * m32c-tdep.c: Ditto.
7079 * m32r-linux-nat.c: Ditto.
7080 * m32r-rom.c: Ditto.
7081 * m32r-tdep.c: Ditto.
7082 * m32r-tdep.h: Ditto.
7083 * m68hc11-tdep.c: Ditto.
7084 * m58klinux-nat.c: Ditto.
7085 * m68k-tdep.c: Ditto.
7086 * m88k-tdep.c: Ditto.
7087 * m88k-tdep.h: Ditto.
7088 * machoread.c: Ditto.
7089 * macrocmd.c: Ditto.
7090 * macroexp.c: Ditto.
7091 * macrotab.c: Ditto.
7094 * mdebugread.c: Ditto.
7095 * mdebugread.h: Ditto.
7098 * memory-map.h: Ditto.
7099 * mep-tdep.c: Ditto.
7100 * microblaze-rom.c: Ditto.
7101 * microblaze-tdep.c: Ditto.
7103 * mips-irix-tdep.c: Ditto.
7104 * mips-linux-nat.c: Ditto.
7105 * mips-linux-tdep.c: Ditto.
7106 * mips-linux-tdep.h: Ditto.
7107 * mipsnbsd-nat.c: Ditto.
7108 * mipsnbsd-tdep.c: Ditto.
7109 * mipsread.c: Ditto.
7110 * mips-tdep.c: Ditto.
7111 * mips-tdep.h: Ditto.
7112 * mn10300-linux-tdep.c: Ditto.
7113 * mn10300-tdep.c: Ditto.
7114 * mn10300-tdep.h: Ditto.
7117 * moxie-tdep.c: Ditto.
7118 * moxie-tdep.h: Ditto.
7121 2011-01-08 Mike Frysinger <vapier@gentoo.org>
7123 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
7125 2011-01-08 Robert Millan <rmh@gnu.org>
7127 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
7129 2011-01-07 Michael Snyder <msnyder@vmware.com>
7131 * charset.c (_initialize_charset): Fix typo in string.
7133 2011-01-07 Michael Snyder <msnyder@vmware.com>
7135 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
7137 * tui/tui-layout.c (tui_set_layout_for_display_command):
7138 Split line so that operator goes to beginning of line.
7139 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
7140 assignment out of if statement.
7142 2011-01-07 Michael Snyder <msnyder@vmware.com>
7144 * ada-lang.c: Comment cleanup, mostly periods and spaces.
7145 * ada-lang.h: Ditto.
7146 * ada-tasks.c: Ditto.
7147 * ada-valprint.c: Ditto.
7148 * aix-threads.c: Ditto.
7149 * alpha-linux-nat.c: Ditto.
7150 * alpha-linux-tdep.c: Ditto.
7151 * alpha-mdebug-tdep.c: Ditto.
7152 * alpha-nat.c: Ditto.
7153 * alpha-osf1-tdep.c: Ditto.
7154 * alpha-tdep.c: Ditto.
7155 * alphabsd-nat.c: Ditto.
7156 * alphabsd-tdep.c: Ditto.
7157 * amd64-darwin-tdep.c: Ditto.
7158 * amd64-linux-nat.c: Ditto.
7159 * amd64-linux-tdep.c: Ditto.
7160 * amd64-sol2-tdep.c: Ditto.
7161 * amd64-tdep.c: Ditto.
7162 * amd64-fbsd-tdep.c: Ditto.
7163 * amd64-nbsd-tdep.c: Ditto.
7164 * amd64-obsd-tdep.c: Ditto.
7165 * amd64-linux-nat.c: Ditto.
7166 * amd64-linux-tdep.c: Ditto.
7167 * arm-tdep.c: Ditto.
7168 * arm-tdep.h: Ditto.
7169 * armnbsd-nat.c: Ditto.
7170 * avr-tdep.c: Ditto.
7171 * bfin-tdep.c: Ditto.
7173 * c-typeprintc: Ditto.
7174 * c-valprint.c: Ditto.
7175 * coff-pe-read.h: Ditto.
7176 * coffreead.c: Ditto.
7177 * cris-tdep.c: Ditto.
7179 * darwin-nat-info.c: Ditto.
7180 * darwin-nat.c: Ditto.
7181 * dbug-rom.c: Ditto.
7185 * dec-thread.c: Ditto.
7187 * demangle.c: Ditto.
7188 * dicos-tdep.c: Ditto.
7189 * dictionary.c: Ditto.
7190 * dictionary.h: Ditto.
7191 * dink32-rom.c: Ditto.
7193 * doublest.c: Ditto.
7195 * dummy-frame.c: Ditto.
7196 * dwarf2-frame.c: Ditto.
7197 * dwarf2expr.c: Ditto.
7198 * dwarf2loc.c: Ditto.
7199 * dwarf2read.c: Ditto.
7203 * event-top.h: Ditto.
7204 * exceptions.c: Ditto.
7205 * exceptions.h: Ditto.
7207 * expprint.c: Ditto.
7208 * expression.h: Ditto.
7212 * f-typeprint.c: Ditto.
7213 * f-valprint.c: Ditto.
7214 * fbsd-nat.c: Ditto.
7216 * fork-child.c: Ditto.
7219 * frv-linux-tdep.c: Ditto.
7220 * frv-tdep.c: Ditto.
7222 * gdb-stabs.h: Ditto.
7223 * gdb_assert.h: Ditto.
7224 * gdb_string.h: Ditto.
7225 * gdb_thread_db.h: Ditto.
7226 * gdb_wait.h: Ditto.
7227 * gdbarch.sh: Ditto.
7229 * gdbthread.h: Ditto.
7230 * gdbtypes.c: Ditto.
7231 * gdbtypes.h: Ditto.
7234 * gnu-v2-abi.c: Ditto.
7235 * gnu-v3-abi.c: Ditto.
7236 * go32-nat.c: Ditto.
7237 * gdbarch.c: Regenerate.
7238 * gdbarch.h: Regenerate.
7240 2011-01-07 Michael Snyder <msnyder@vmware.com>
7242 * ax-gdb.c: Adjust some long output strings.
7243 * breakpoint.c: Ditto.
7248 * linux-nat.c: Ditto.
7249 * solib-pa64.c: Ditto.
7250 * solib-som.c: Ditto.
7252 2011-01-06 Tom Tromey <tromey@redhat.com>
7256 * python/python.c (GdbMethods): Add "newest_frame" method.
7257 * python/python-internal.h (gdbpy_newest_frame): Declare.
7258 * python/py-frame.c (gdbpy_newest_frame): New function.
7260 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
7262 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
7263 * jit.c (jit_debug): New variable.
7264 (show_jit_debug): New function.
7265 (struct target_buffer): Use ULONGEST.
7266 (bfd_open_from_target_memory): Likewise.
7267 (jit_register_code, jit_inferior_init): Add debug output.
7268 (_initialize_jit): Register "debug jit" command.
7270 2011-01-06 Tom Tromey <tromey@redhat.com>
7272 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
7273 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
7276 2011-01-06 Tom Tromey <tromey@redhat.com>
7278 * python/py-frame.c (frapy_block): Use get_frame_block.
7280 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7282 Do not stop on SIGPRIO signals by default
7283 * infrun.c (_initialize_infrun): Unset signal_stop and
7284 signal_print for TARGET_SIGNAL_PRIO.
7286 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7288 * ada-tasks.c: Fix style violation in comment.
7290 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7292 * linespec.c (decode_compound, find_method): Remove trailing \n
7293 at end of error string.
7294 * solib-irix.c (irix_current_sos): Likewise.
7295 * varobj.c (uninstall_variable): Likewise.
7297 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7299 * copyright.py: New script.
7300 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
7301 Launch emacs without exec'ing. Call copyright.py afterwards.
7303 2011-01-05 Michael Snyder <msnyder@vmware.com>
7305 * addrmap.c: Shorten lines of >= 80 columns.
7306 * arch-utils.c: Ditto.
7307 * arch-utils.h: Ditto.
7309 * ax-general.c: Ditto.
7311 * blockframe.c: Ditto.
7312 * breakpoint.c: Ditto.
7313 * buildsym.c: Ditto.
7315 * c-typeprint.c: Ditto.
7317 * coffread.c: Ditto.
7321 * cp-namespace.c: Ditto.
7322 * cp-support.c: Ditto.
7323 * dbug-rom.c: Ditto.
7328 * dictionary.c: Ditto.
7330 * doublest.c: Ditto.
7331 * dwarf2-frame.c: Ditto.
7332 * dwarf2expr.c: Ditto.
7333 * dwarf2loc.c: Ditto.
7334 * dwarf2read.c: Ditto.
7337 * event-loop.c: Ditto.
7338 * event-loop.h: Ditto.
7339 * exceptions.h: Ditto.
7341 * expprint.c: Ditto.
7342 * expression.h: Ditto.
7344 * f-valprint.c: Ditto.
7346 * frame-base.c: Ditto.
7347 * frame-unwind.c: Ditto.
7348 * frame-unwind.h: Ditto.
7352 * gdb-stabs.h: Ditto.
7353 * gdb_assert.h: Ditto.
7354 * gdb_dirent.h: Ditto.
7355 * gdb_obstack.h: Ditto.
7357 * gdbtypes.c: Ditto.
7358 * gdbtypes.h: Ditto.
7359 * inf-ttrace.c: Ditto.
7364 * inline-frame.h: Ditto.
7365 * language.c: Ditto.
7366 * language.h: Ditto.
7367 * libunwind-frame.c: Ditto.
7368 * libunwind-frame.h: Ditto.
7369 * linespec.c: Ditto.
7370 * linux-nat.c: Ditto.
7371 * linux-nat.h: Ditto.
7372 * linux-thread-db.c: Ditto.
7373 * machoread.c: Ditto.
7374 * macroexp.c: Ditto.
7375 * macrotab.c: Ditto.
7378 * mdebugread.c: Ditto.
7383 * objfiles.c: Ditto.
7384 * objfiles.h: Ditto.
7386 * p-typeprint.c: Ditto.
7387 * p-valprint.c: Ditto.
7389 * printcmd.c: Ditto.
7390 * proc-events.c: Ditto.
7392 * progspace.c: Ditto.
7393 * progspace.h: Ditto.
7394 * psympriv.h: Ditto.
7397 * regcache.c: Ditto.
7398 * regcache.h: Ditto.
7399 * remote-fileio.c: Ditto.
7401 * ser-mingw.c: Ditto.
7403 * ser-unix.c: Ditto.
7406 * solib-frv.c: Ditto.
7407 * solib-irix.c: Ditto.
7408 * solib-osf.c: Ditto.
7409 * solib-pa64.c: Ditto.
7410 * solib-som.c: Ditto.
7411 * solib-sunos.c: Ditto.
7412 * solib-svr4.c: Ditto.
7413 * solib-target.c: Ditto.
7417 * stabsread.c: Ditto.
7418 * stabsread.c: Ditto.
7421 * symfile-mem.c: Ditto.
7427 * target-descriptions.c: Ditto.
7428 * target-memory.c: Ditto.
7431 * terminal.h: Ditto.
7434 * tracepoint.c: Ditto.
7435 * tracepoint.h: Ditto.
7439 * user-regs.c: Ditto.
7440 * user-regs.h: Ditto.
7442 * valarith.c: Ditto.
7444 * valprint.c: Ditto.
7445 * valprint.h: Ditto.
7450 * xcoffread.c: Ditto.
7451 * xcoffsolib.c: Ditto.
7452 * xcoffsolib.h: Ditto.
7453 * xml-syscall.c: Ditto.
7454 * xml-tdesc.c: Ditto.
7456 2011-01-05 Michael Snyder <msnyder@vmware.com>
7458 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
7459 * cli/cli-decode.c: Ditto.
7460 * cli/cli-dump.c: Ditto.
7461 * cli/cli-logging.c: Ditto.
7462 * cli/cli-script.c: Ditto.
7463 * cli/cli-setshow.c: Ditto.
7464 * common/signals.c: Ditto.
7465 * mi/mi-cmd-break.c: Ditto.
7466 * mi/mi-cmd-disas.c: Ditto.
7467 * mi/mi-cmd-stack.c: Ditto.
7468 * mi/mi-cmd-var.c: Ditto.
7469 * mi/mi-cmds.c: Ditto.
7470 * mi/mi-common.h: Ditto.
7471 * mi/mi-console.c: Ditto.
7472 * mi/mi-interp.c: Ditto.
7473 * mi/mi-main.c: Ditto.
7474 * osf-share/cma_attr.c: Ditto.
7475 * osf-share/cma_deb_core.h: Ditto.
7476 * osf-share/cma_debug_client.h: Ditto.
7477 * osf-share/cma_handle.h: Ditto.
7478 * osf-share/cma_mutex.h: Ditto.
7479 * osf-share/cma_stack_int.h: Ditto.
7480 * osf-share/cma_tcb_defs.h: Ditto.
7481 * python/py-auto-load.c: Ditto.
7482 * python/py-breakpoint.c: Ditto.
7483 * python/py-cmd.c: Ditto.
7484 * python/py-frame.c: Ditto.
7485 * python/py-objfile.c: Ditto.
7486 * python/py-param.c: Ditto.
7487 * python/py-progspace.c: Ditto.
7488 * python/py-symbol.c: Ditto.
7489 * python/py-value.c: Ditto.
7490 * python/python-internal.h: Ditto.
7491 * python/python.c: Ditto.
7492 * tui/tui-data.c: Ditto.
7493 * tui/tui-disasm.c: Ditto.
7494 * tui/tui-hooks.c: Ditto.
7495 * tui/tui-io.c: Ditto.
7496 * tui/tui-layout.c: Ditto.
7497 * tui/tui-regs.c: Ditto.
7498 * tui/tui-source.c: Ditto.
7499 * tui/tui-stack.c: Ditto.
7500 * tui/tui-win.c: Ditto.
7501 * tui/tui-windata.c: Ditto.
7502 * tui/tui-winsource.c: Ditto.
7504 2011-01-05 Joel Brobecker <brobecker@adacore.com>
7506 * configure.ac, gdb.1: Copyright year update.
7508 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7510 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
7511 this_pc_in_block, morestack_msym and morestack_name. Check for
7512 "__morestack" minimal symbol there.
7514 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7516 * symfile.c (find_sym_fns): Add call to dont_repeat.
7518 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7520 Copyright year update in most files (performed by copyright.sh).
7522 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7524 * top.c (print_gdb_version): Update copyright year in version output.
7526 For older changes see ChangeLog-2010.
7532 version-control: never